autotool.patch 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424
  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 libnfnetlink-1.0.0.orig/aclocal.m4 libnfnetlink-1.0.0/aclocal.m4
  6. --- libnfnetlink-1.0.0.orig/aclocal.m4 2009-06-22 19:48:34.000000000 +0200
  7. +++ libnfnetlink-1.0.0/aclocal.m4 2011-02-21 18:03:03.753553604 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10.1 -*- 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, 2007, 2008 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. @@ -13,108 +13,194 @@
  18. m4_ifndef([AC_AUTOCONF_VERSION],
  19. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. -m4_if(AC_AUTOCONF_VERSION, [2.61],,
  21. -[m4_warning([this file was generated for autoconf 2.61.
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. You have another version of autoconf. It may work, but is not guaranteed to.
  25. If you have problems, you may need to regenerate the build system entirely.
  26. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. +#
  29. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  31. +# Written by Gordon Matzigkeit, 1996
  32. +#
  33. +# This file is free software; the Free Software Foundation gives
  34. +# unlimited permission to copy and/or distribute it, with or without
  35. +# modifications, as long as this notice is preserved.
  36. +
  37. +m4_define([_LT_COPYING], [dnl
  38. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40. +# Written by Gordon Matzigkeit, 1996
  41. +#
  42. +# This file is part of GNU Libtool.
  43. +#
  44. +# GNU Libtool is free software; you can redistribute it and/or
  45. +# modify it under the terms of the GNU General Public License as
  46. +# published by the Free Software Foundation; either version 2 of
  47. +# the License, or (at your option) any later version.
  48. +#
  49. +# As a special exception to the GNU General Public License,
  50. +# if you distribute this file as part of a program or library that
  51. +# is built using GNU Libtool, you may include this file under the
  52. +# same distribution terms that you use for the rest of that program.
  53. +#
  54. +# GNU Libtool is distributed in the hope that it will be useful,
  55. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. +# GNU General Public License for more details.
  58. +#
  59. +# You should have received a copy of the GNU General Public License
  60. +# along with GNU Libtool; see the file COPYING. If not, a copy
  61. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  62. +# obtained by writing to the Free Software Foundation, Inc.,
  63. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  64. +])
  65. -# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
  66. +# serial 56 LT_INIT
  67. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  68. -# -----------------------------------------------------------
  69. -# If this macro is not defined by Autoconf, define it here.
  70. -m4_ifdef([AC_PROVIDE_IFELSE],
  71. - [],
  72. - [m4_define([AC_PROVIDE_IFELSE],
  73. - [m4_ifdef([AC_PROVIDE_$1],
  74. - [$2], [$3])])])
  75. +# LT_PREREQ(VERSION)
  76. +# ------------------
  77. +# Complain and exit if this libtool version is less that VERSION.
  78. +m4_defun([LT_PREREQ],
  79. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  80. + [m4_default([$3],
  81. + [m4_fatal([Libtool version $1 or higher is required],
  82. + 63)])],
  83. + [$2])])
  84. -# AC_PROG_LIBTOOL
  85. -# ---------------
  86. -AC_DEFUN([AC_PROG_LIBTOOL],
  87. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  88. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  89. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  90. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  91. - [AC_LIBTOOL_CXX],
  92. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  93. - ])])
  94. -dnl And a similar setup for Fortran 77 support
  95. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  96. - [AC_LIBTOOL_F77],
  97. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  98. -])])
  99. -
  100. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  101. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  102. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  103. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  104. - [AC_LIBTOOL_GCJ],
  105. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [ifdef([AC_PROG_GCJ],
  110. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  111. - ifdef([A][M_PROG_GCJ],
  112. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([LT_AC_PROG_GCJ],
  114. - [define([LT_AC_PROG_GCJ],
  115. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  116. -])])# AC_PROG_LIBTOOL
  117. +# _LT_CHECK_BUILDDIR
  118. +# ------------------
  119. +# Complain if the absolute build directory name contains unusual characters
  120. +m4_defun([_LT_CHECK_BUILDDIR],
  121. +[case `pwd` in
  122. + *\ * | *\ *)
  123. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  124. +esac
  125. +])
  126. -# _AC_PROG_LIBTOOL
  127. -# ----------------
  128. -AC_DEFUN([_AC_PROG_LIBTOOL],
  129. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  130. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  133. +# LT_INIT([OPTIONS])
  134. +# ------------------
  135. +AC_DEFUN([LT_INIT],
  136. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  137. +AC_BEFORE([$0], [LT_LANG])dnl
  138. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  139. +AC_BEFORE([$0], [LTDL_INIT])dnl
  140. +m4_require([_LT_CHECK_BUILDDIR])dnl
  141. +
  142. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  143. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  144. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  145. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  146. +dnl unless we require an AC_DEFUNed macro:
  147. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  148. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  149. +AC_REQUIRE([LTVERSION_VERSION])dnl
  150. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  151. +m4_require([_LT_PROG_LTMAIN])dnl
  152. +
  153. +dnl Parse OPTIONS
  154. +_LT_SET_OPTIONS([$0], [$1])
  155. # This can be used to rebuild libtool when needed
  156. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  157. +LIBTOOL_DEPS="$ltmain"
  158. # Always use our own libtool.
  159. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  160. AC_SUBST(LIBTOOL)dnl
  161. -# Prevent multiple expansion
  162. -define([AC_PROG_LIBTOOL], [])
  163. -])# _AC_PROG_LIBTOOL
  164. +_LT_SETUP
  165. +# Only expand once:
  166. +m4_define([LT_INIT])
  167. +])# LT_INIT
  168. +
  169. +# Old names:
  170. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  171. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  172. +dnl aclocal-1.4 backwards compatibility:
  173. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  174. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  175. -# AC_LIBTOOL_SETUP
  176. -# ----------------
  177. -AC_DEFUN([AC_LIBTOOL_SETUP],
  178. -[AC_PREREQ(2.50)dnl
  179. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  180. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  181. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  182. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  183. +
  184. +# _LT_CC_BASENAME(CC)
  185. +# -------------------
  186. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  187. +m4_defun([_LT_CC_BASENAME],
  188. +[for cc_temp in $1""; do
  189. + case $cc_temp in
  190. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  191. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  192. + \-*) ;;
  193. + *) break;;
  194. + esac
  195. +done
  196. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  197. +])
  198. +
  199. +
  200. +# _LT_FILEUTILS_DEFAULTS
  201. +# ----------------------
  202. +# It is okay to use these file commands and assume they have been set
  203. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  204. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  205. +[: ${CP="cp -f"}
  206. +: ${MV="mv -f"}
  207. +: ${RM="rm -f"}
  208. +])# _LT_FILEUTILS_DEFAULTS
  209. +
  210. +
  211. +# _LT_SETUP
  212. +# ---------
  213. +m4_defun([_LT_SETUP],
  214. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  215. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  216. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  217. +_LT_DECL([], [host], [0])dnl
  218. +_LT_DECL([], [host_os], [0])dnl
  219. +dnl
  220. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  221. +_LT_DECL([], [build], [0])dnl
  222. +_LT_DECL([], [build_os], [0])dnl
  223. +dnl
  224. AC_REQUIRE([AC_PROG_CC])dnl
  225. -AC_REQUIRE([AC_PROG_LD])dnl
  226. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  227. -AC_REQUIRE([AC_PROG_NM])dnl
  228. -
  229. +AC_REQUIRE([LT_PATH_LD])dnl
  230. +AC_REQUIRE([LT_PATH_NM])dnl
  231. +dnl
  232. AC_REQUIRE([AC_PROG_LN_S])dnl
  233. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  234. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  235. -AC_REQUIRE([AC_OBJEXT])dnl
  236. -AC_REQUIRE([AC_EXEEXT])dnl
  237. +test -z "$LN_S" && LN_S="ln -s"
  238. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  239. dnl
  240. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  241. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  242. -AC_LIBTOOL_OBJDIR
  243. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  244. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  245. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  246. +dnl
  247. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  248. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  249. +m4_require([_LT_CMD_RELOAD])dnl
  250. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  251. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  252. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  253. +
  254. +_LT_CONFIG_LIBTOOL_INIT([
  255. +# See if we are running on zsh, and set the options which allow our
  256. +# commands through without removal of \ escapes INIT.
  257. +if test -n "\${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +])
  261. +if test -n "${ZSH_VERSION+set}" ; then
  262. + setopt NO_GLOB_SUBST
  263. +fi
  264. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  265. -_LT_AC_PROG_ECHO_BACKSLASH
  266. +_LT_CHECK_OBJDIR
  267. +
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -130,116 +216,653 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -_LT_REQUIRED_DARWIN_CHECKS
  354. +# Use C for the default configuration in the libtool script
  355. +LT_SUPPORTED_TAG([CC])
  356. +_LT_LANG_C_CONFIG
  357. +_LT_LANG_DEFAULT_CONFIG
  358. +_LT_CONFIG_COMMANDS
  359. +])# _LT_SETUP
  360. +
  361. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  362. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  363. -enable_win32_dll=yes, enable_win32_dll=no)
  364. -
  365. -AC_ARG_ENABLE([libtool-lock],
  366. - [AC_HELP_STRING([--disable-libtool-lock],
  367. - [avoid locking (might break parallel builds)])])
  368. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  369. +# _LT_PROG_LTMAIN
  370. +# ---------------
  371. +# Note that this code is called both from `configure', and `config.status'
  372. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  373. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  374. +# so we pass a copy along to make sure it has a sensible value anyway.
  375. +m4_defun([_LT_PROG_LTMAIN],
  376. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  377. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  378. +ltmain="$ac_aux_dir/ltmain.sh"
  379. +])# _LT_PROG_LTMAIN
  380. -AC_ARG_WITH([pic],
  381. - [AC_HELP_STRING([--with-pic],
  382. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  383. - [pic_mode="$withval"],
  384. - [pic_mode=default])
  385. -test -z "$pic_mode" && pic_mode=default
  386. -# Use C for the default configuration in the libtool script
  387. -tagname=
  388. -AC_LIBTOOL_LANG_C_CONFIG
  389. -_LT_AC_TAGCONFIG
  390. -])# AC_LIBTOOL_SETUP
  391. +
  392. +# So that we can recreate a full libtool script including additional
  393. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  394. +# in macros and then make a single call at the end using the `libtool'
  395. +# label.
  396. +
  397. +
  398. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  399. +# ----------------------------------------
  400. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  401. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  402. +[m4_ifval([$1],
  403. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  404. + [$1
  405. +])])])
  406. +
  407. +# Initialize.
  408. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  409. +
  410. +
  411. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  412. +# ------------------------------
  413. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  414. +m4_define([_LT_CONFIG_LIBTOOL],
  415. +[m4_ifval([$1],
  416. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  417. + [$1
  418. +])])])
  419. +
  420. +# Initialize.
  421. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  422. +
  423. +
  424. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  425. +# -----------------------------------------------------
  426. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  427. +[_LT_CONFIG_LIBTOOL([$1])
  428. +_LT_CONFIG_LIBTOOL_INIT([$2])
  429. +])
  430. +
  431. +
  432. +# _LT_FORMAT_COMMENT([COMMENT])
  433. +# -----------------------------
  434. +# Add leading comment marks to the start of each line, and a trailing
  435. +# full-stop to the whole comment if one is not present already.
  436. +m4_define([_LT_FORMAT_COMMENT],
  437. +[m4_ifval([$1], [
  438. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  439. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  440. +)])
  441. +
  442. +
  443. +
  444. +
  445. +
  446. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  447. +# -------------------------------------------------------------------
  448. +# CONFIGNAME is the name given to the value in the libtool script.
  449. +# VARNAME is the (base) name used in the configure script.
  450. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  451. +# VARNAME. Any other value will be used directly.
  452. +m4_define([_LT_DECL],
  453. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  454. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  455. + [m4_ifval([$1], [$1], [$2])])
  456. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  457. + m4_ifval([$4],
  458. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  459. + lt_dict_add_subkey([lt_decl_dict], [$2],
  460. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  461. +])
  462. +
  463. +
  464. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  465. +# --------------------------------------------------------
  466. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  467. +
  468. +
  469. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  470. +# ------------------------------------------------
  471. +m4_define([lt_decl_tag_varnames],
  472. +[_lt_decl_filter([tagged?], [yes], $@)])
  473. +
  474. +
  475. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  476. +# ---------------------------------------------------------
  477. +m4_define([_lt_decl_filter],
  478. +[m4_case([$#],
  479. + [0], [m4_fatal([$0: too few arguments: $#])],
  480. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  481. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  482. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  483. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  484. +])
  485. +
  486. +
  487. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  488. +# --------------------------------------------------
  489. +m4_define([lt_decl_quote_varnames],
  490. +[_lt_decl_filter([value], [1], $@)])
  491. +
  492. +
  493. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  494. +# ---------------------------------------------------
  495. +m4_define([lt_decl_dquote_varnames],
  496. +[_lt_decl_filter([value], [2], $@)])
  497. +
  498. +
  499. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  500. +# ---------------------------------------------------
  501. +m4_define([lt_decl_varnames_tagged],
  502. +[m4_assert([$# <= 2])dnl
  503. +_$0(m4_quote(m4_default([$1], [[, ]])),
  504. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  505. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  506. +m4_define([_lt_decl_varnames_tagged],
  507. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  508. +
  509. +
  510. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  511. +# ------------------------------------------------
  512. +m4_define([lt_decl_all_varnames],
  513. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  514. + m4_if([$2], [],
  515. + m4_quote(lt_decl_varnames),
  516. + m4_quote(m4_shift($@))))[]dnl
  517. +])
  518. +m4_define([_lt_decl_all_varnames],
  519. +[lt_join($@, lt_decl_varnames_tagged([$1],
  520. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  521. +])
  522. +
  523. +
  524. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  525. +# ------------------------------------
  526. +# Quote a variable value, and forward it to `config.status' so that its
  527. +# declaration there will have the same value as in `configure'. VARNAME
  528. +# must have a single quote delimited value for this to work.
  529. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  530. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  531. +
  532. +
  533. +# _LT_CONFIG_STATUS_DECLARATIONS
  534. +# ------------------------------
  535. +# We delimit libtool config variables with single quotes, so when
  536. +# we write them to config.status, we have to be sure to quote all
  537. +# embedded single quotes properly. In configure, this macro expands
  538. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  539. +#
  540. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  541. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  542. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  543. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  544. +
  545. +
  546. +# _LT_LIBTOOL_TAGS
  547. +# ----------------
  548. +# Output comment and list of tags supported by the script
  549. +m4_defun([_LT_LIBTOOL_TAGS],
  550. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  551. +available_tags="_LT_TAGS"dnl
  552. +])
  553. +
  554. +
  555. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  556. +# -----------------------------------
  557. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  558. +# expand to a commented shell variable setting:
  559. +#
  560. +# # Some comment about what VAR is for.
  561. +# visible_name=$lt_internal_name
  562. +m4_define([_LT_LIBTOOL_DECLARE],
  563. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  564. + [description])))[]dnl
  565. +m4_pushdef([_libtool_name],
  566. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  567. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  568. + [0], [_libtool_name=[$]$1],
  569. + [1], [_libtool_name=$lt_[]$1],
  570. + [2], [_libtool_name=$lt_[]$1],
  571. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  572. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  573. +])
  574. +
  575. +
  576. +# _LT_LIBTOOL_CONFIG_VARS
  577. +# -----------------------
  578. +# Produce commented declarations of non-tagged libtool config variables
  579. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  580. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  581. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  582. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  583. +[m4_foreach([_lt_var],
  584. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  585. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  586. +
  587. +
  588. +# _LT_LIBTOOL_TAG_VARS(TAG)
  589. +# -------------------------
  590. +m4_define([_LT_LIBTOOL_TAG_VARS],
  591. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  592. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  593. +
  594. +
  595. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  596. +# ------------------------------
  597. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  598. -# _LT_AC_SYS_COMPILER
  599. +# _LT_CONFIG_COMMANDS
  600. # -------------------
  601. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  602. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  603. +# variables for single and double quote escaping we saved from calls
  604. +# to _LT_DECL, we can put quote escaped variables declarations
  605. +# into `config.status', and then the shell code to quote escape them in
  606. +# for loops in `config.status'. Finally, any additional code accumulated
  607. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  608. +m4_defun([_LT_CONFIG_COMMANDS],
  609. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  610. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  611. + dnl instead of duplicating it all over again into config.status,
  612. + dnl then we will have config.status run $CONFIG_LT later, so it
  613. + dnl needs to know what name is stored there:
  614. + [AC_CONFIG_COMMANDS([libtool],
  615. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  616. + dnl If the libtool generation code is destined for config.status,
  617. + dnl expand the accumulated commands and init code now:
  618. + [AC_CONFIG_COMMANDS([libtool],
  619. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  620. +])#_LT_CONFIG_COMMANDS
  621. +
  622. +
  623. +# Initialize.
  624. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  625. +[
  626. +
  627. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  628. +# if CDPATH is set.
  629. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  630. +
  631. +sed_quote_subst='$sed_quote_subst'
  632. +double_quote_subst='$double_quote_subst'
  633. +delay_variable_subst='$delay_variable_subst'
  634. +_LT_CONFIG_STATUS_DECLARATIONS
  635. +LTCC='$LTCC'
  636. +LTCFLAGS='$LTCFLAGS'
  637. +compiler='$compiler_DEFAULT'
  638. +
  639. +# Quote evaled strings.
  640. +for var in lt_decl_all_varnames([[ \
  641. +]], lt_decl_quote_varnames); do
  642. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  643. + *[[\\\\\\\`\\"\\\$]]*)
  644. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  645. + ;;
  646. + *)
  647. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  648. + ;;
  649. + esac
  650. +done
  651. +
  652. +# Double-quote double-evaled strings.
  653. +for var in lt_decl_all_varnames([[ \
  654. +]], lt_decl_dquote_varnames); do
  655. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  656. + *[[\\\\\\\`\\"\\\$]]*)
  657. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  658. + ;;
  659. + *)
  660. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  661. + ;;
  662. + esac
  663. +done
  664. +
  665. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  666. +case \$lt_ECHO in
  667. +*'\\\[$]0 --fallback-echo"')dnl "
  668. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  669. + ;;
  670. +esac
  671. +
  672. +_LT_OUTPUT_LIBTOOL_INIT
  673. +])
  674. +
  675. +
  676. +# LT_OUTPUT
  677. +# ---------
  678. +# This macro allows early generation of the libtool script (before
  679. +# AC_OUTPUT is called), incase it is used in configure for compilation
  680. +# tests.
  681. +AC_DEFUN([LT_OUTPUT],
  682. +[: ${CONFIG_LT=./config.lt}
  683. +AC_MSG_NOTICE([creating $CONFIG_LT])
  684. +cat >"$CONFIG_LT" <<_LTEOF
  685. +#! $SHELL
  686. +# Generated by $as_me.
  687. +# Run this file to recreate a libtool stub with the current configuration.
  688. +
  689. +lt_cl_silent=false
  690. +SHELL=\${CONFIG_SHELL-$SHELL}
  691. +_LTEOF
  692. +
  693. +cat >>"$CONFIG_LT" <<\_LTEOF
  694. +AS_SHELL_SANITIZE
  695. +_AS_PREPARE
  696. +
  697. +exec AS_MESSAGE_FD>&1
  698. +exec AS_MESSAGE_LOG_FD>>config.log
  699. +{
  700. + echo
  701. + AS_BOX([Running $as_me.])
  702. +} >&AS_MESSAGE_LOG_FD
  703. +
  704. +lt_cl_help="\
  705. +\`$as_me' creates a local libtool stub from the current configuration,
  706. +for use in further configure time tests before the real libtool is
  707. +generated.
  708. +
  709. +Usage: $[0] [[OPTIONS]]
  710. +
  711. + -h, --help print this help, then exit
  712. + -V, --version print version number, then exit
  713. + -q, --quiet do not print progress messages
  714. + -d, --debug don't remove temporary files
  715. +
  716. +Report bugs to <bug-libtool@gnu.org>."
  717. +
  718. +lt_cl_version="\
  719. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  720. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  721. +configured by $[0], generated by m4_PACKAGE_STRING.
  722. +
  723. +Copyright (C) 2008 Free Software Foundation, Inc.
  724. +This config.lt script is free software; the Free Software Foundation
  725. +gives unlimited permision to copy, distribute and modify it."
  726. +
  727. +while test $[#] != 0
  728. +do
  729. + case $[1] in
  730. + --version | --v* | -V )
  731. + echo "$lt_cl_version"; exit 0 ;;
  732. + --help | --h* | -h )
  733. + echo "$lt_cl_help"; exit 0 ;;
  734. + --debug | --d* | -d )
  735. + debug=: ;;
  736. + --quiet | --q* | --silent | --s* | -q )
  737. + lt_cl_silent=: ;;
  738. +
  739. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  740. +Try \`$[0] --help' for more information.]) ;;
  741. +
  742. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  743. +Try \`$[0] --help' for more information.]) ;;
  744. + esac
  745. + shift
  746. +done
  747. +
  748. +if $lt_cl_silent; then
  749. + exec AS_MESSAGE_FD>/dev/null
  750. +fi
  751. +_LTEOF
  752. +
  753. +cat >>"$CONFIG_LT" <<_LTEOF
  754. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  755. +_LTEOF
  756. +
  757. +cat >>"$CONFIG_LT" <<\_LTEOF
  758. +AC_MSG_NOTICE([creating $ofile])
  759. +_LT_OUTPUT_LIBTOOL_COMMANDS
  760. +AS_EXIT(0)
  761. +_LTEOF
  762. +chmod +x "$CONFIG_LT"
  763. +
  764. +# configure is writing to config.log, but config.lt does its own redirection,
  765. +# appending to config.log, which fails on DOS, as config.log is still kept
  766. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  767. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  768. +if test "$no_create" != yes; then
  769. + lt_cl_success=:
  770. + test "$silent" = yes &&
  771. + lt_config_lt_args="$lt_config_lt_args --quiet"
  772. + exec AS_MESSAGE_LOG_FD>/dev/null
  773. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  774. + exec AS_MESSAGE_LOG_FD>>config.log
  775. + $lt_cl_success || AS_EXIT(1)
  776. +fi
  777. +])# LT_OUTPUT
  778. +
  779. +
  780. +# _LT_CONFIG(TAG)
  781. +# ---------------
  782. +# If TAG is the built-in tag, create an initial libtool script with a
  783. +# default configuration from the untagged config vars. Otherwise add code
  784. +# to config.status for appending the configuration named by TAG from the
  785. +# matching tagged config vars.
  786. +m4_defun([_LT_CONFIG],
  787. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  788. +_LT_CONFIG_SAVE_COMMANDS([
  789. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  790. + m4_if(_LT_TAG, [C], [
  791. + # See if we are running on zsh, and set the options which allow our
  792. + # commands through without removal of \ escapes.
  793. + if test -n "${ZSH_VERSION+set}" ; then
  794. + setopt NO_GLOB_SUBST
  795. + fi
  796. +
  797. + cfgfile="${ofile}T"
  798. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  799. + $RM "$cfgfile"
  800. +
  801. + cat <<_LT_EOF >> "$cfgfile"
  802. +#! $SHELL
  803. +
  804. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  805. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  806. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  807. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  808. +#
  809. +_LT_COPYING
  810. +_LT_LIBTOOL_TAGS
  811. +
  812. +# ### BEGIN LIBTOOL CONFIG
  813. +_LT_LIBTOOL_CONFIG_VARS
  814. +_LT_LIBTOOL_TAG_VARS
  815. +# ### END LIBTOOL CONFIG
  816. +
  817. +_LT_EOF
  818. +
  819. + case $host_os in
  820. + aix3*)
  821. + cat <<\_LT_EOF >> "$cfgfile"
  822. +# AIX sometimes has problems with the GCC collect2 program. For some
  823. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  824. +# vanish in a puff of smoke.
  825. +if test "X${COLLECT_NAMES+set}" != Xset; then
  826. + COLLECT_NAMES=
  827. + export COLLECT_NAMES
  828. +fi
  829. +_LT_EOF
  830. + ;;
  831. + esac
  832. +
  833. + _LT_PROG_LTMAIN
  834. +
  835. + # We use sed instead of cat because bash on DJGPP gets confused if
  836. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  837. + # text mode, it properly converts lines to CR/LF. This bash problem
  838. + # is reportedly fixed, but why not run on old versions too?
  839. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  840. + || (rm -f "$cfgfile"; exit 1)
  841. +
  842. + _LT_PROG_XSI_SHELLFNS
  843. +
  844. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  845. + || (rm -f "$cfgfile"; exit 1)
  846. +
  847. + mv -f "$cfgfile" "$ofile" ||
  848. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  849. + chmod +x "$ofile"
  850. +],
  851. +[cat <<_LT_EOF >> "$ofile"
  852. +
  853. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  854. +dnl in a comment (ie after a #).
  855. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  856. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  857. +# ### END LIBTOOL TAG CONFIG: $1
  858. +_LT_EOF
  859. +])dnl /m4_if
  860. +],
  861. +[m4_if([$1], [], [
  862. + PACKAGE='$PACKAGE'
  863. + VERSION='$VERSION'
  864. + TIMESTAMP='$TIMESTAMP'
  865. + RM='$RM'
  866. + ofile='$ofile'], [])
  867. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  868. +])# _LT_CONFIG
  869. +
  870. +
  871. +# LT_SUPPORTED_TAG(TAG)
  872. +# ---------------------
  873. +# Trace this macro to discover what tags are supported by the libtool
  874. +# --tag option, using:
  875. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  876. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  877. +
  878. +
  879. +# C support is built-in for now
  880. +m4_define([_LT_LANG_C_enabled], [])
  881. +m4_define([_LT_TAGS], [])
  882. +
  883. +
  884. +# LT_LANG(LANG)
  885. +# -------------
  886. +# Enable libtool support for the given language if not already enabled.
  887. +AC_DEFUN([LT_LANG],
  888. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  889. +m4_case([$1],
  890. + [C], [_LT_LANG(C)],
  891. + [C++], [_LT_LANG(CXX)],
  892. + [Java], [_LT_LANG(GCJ)],
  893. + [Fortran 77], [_LT_LANG(F77)],
  894. + [Fortran], [_LT_LANG(FC)],
  895. + [Windows Resource], [_LT_LANG(RC)],
  896. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  897. + [_LT_LANG($1)],
  898. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  899. +])# LT_LANG
  900. +
  901. +
  902. +# _LT_LANG(LANGNAME)
  903. +# ------------------
  904. +m4_defun([_LT_LANG],
  905. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  906. + [LT_SUPPORTED_TAG([$1])dnl
  907. + m4_append([_LT_TAGS], [$1 ])dnl
  908. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  909. + _LT_LANG_$1_CONFIG($1)])dnl
  910. +])# _LT_LANG
  911. +
  912. +
  913. +# _LT_LANG_DEFAULT_CONFIG
  914. +# -----------------------
  915. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  916. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  917. + [LT_LANG(CXX)],
  918. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  919. +
  920. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  921. + [LT_LANG(F77)],
  922. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  923. +
  924. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  925. + [LT_LANG(FC)],
  926. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  927. +
  928. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  929. +dnl pulling things in needlessly.
  930. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  931. + [LT_LANG(GCJ)],
  932. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  933. + [LT_LANG(GCJ)],
  934. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  935. + [LT_LANG(GCJ)],
  936. + [m4_ifdef([AC_PROG_GCJ],
  937. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  938. + m4_ifdef([A][M_PROG_GCJ],
  939. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  940. + m4_ifdef([LT_PROG_GCJ],
  941. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  942. +
  943. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  944. + [LT_LANG(RC)],
  945. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  946. +])# _LT_LANG_DEFAULT_CONFIG
  947. +
  948. +# Obsolete macros:
  949. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  950. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  951. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  952. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  953. +dnl aclocal-1.4 backwards compatibility:
  954. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  955. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  956. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  957. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  958. +
  959. +
  960. +# _LT_TAG_COMPILER
  961. +# ----------------
  962. +m4_defun([_LT_TAG_COMPILER],
  963. [AC_REQUIRE([AC_PROG_CC])dnl
  964. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  965. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  966. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  967. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  968. +
  969. # If no C compiler was specified, use CC.
  970. LTCC=${LTCC-"$CC"}
  971. @@ -248,36 +871,20 @@
  972. # Allow CC to be a program name with arguments.
  973. compiler=$CC
  974. -])# _LT_AC_SYS_COMPILER
  975. -
  976. -
  977. -# _LT_CC_BASENAME(CC)
  978. -# -------------------
  979. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  980. -AC_DEFUN([_LT_CC_BASENAME],
  981. -[for cc_temp in $1""; do
  982. - case $cc_temp in
  983. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  984. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  985. - \-*) ;;
  986. - *) break;;
  987. - esac
  988. -done
  989. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  990. -])
  991. +])# _LT_TAG_COMPILER
  992. # _LT_COMPILER_BOILERPLATE
  993. # ------------------------
  994. # Check for compiler boilerplate output or warnings with
  995. # the simple compiler test code.
  996. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  997. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  998. +m4_defun([_LT_COMPILER_BOILERPLATE],
  999. +[m4_require([_LT_DECL_SED])dnl
  1000. ac_outfile=conftest.$ac_objext
  1001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1003. _lt_compiler_boilerplate=`cat conftest.err`
  1004. -$rm conftest*
  1005. +$RM conftest*
  1006. ])# _LT_COMPILER_BOILERPLATE
  1007. @@ -285,39 +892,57 @@
  1008. # ----------------------
  1009. # Check for linker boilerplate output or warnings with
  1010. # the simple link test code.
  1011. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1012. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1013. +m4_defun([_LT_LINKER_BOILERPLATE],
  1014. +[m4_require([_LT_DECL_SED])dnl
  1015. ac_outfile=conftest.$ac_objext
  1016. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1017. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1018. _lt_linker_boilerplate=`cat conftest.err`
  1019. -$rm -r conftest*
  1020. +$RM -r conftest*
  1021. ])# _LT_LINKER_BOILERPLATE
  1022. # _LT_REQUIRED_DARWIN_CHECKS
  1023. -# --------------------------
  1024. -# Check for some things on darwin
  1025. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1026. +# -------------------------
  1027. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1028. case $host_os in
  1029. rhapsody* | darwin*)
  1030. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1031. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1032. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1033. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1034. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1035. + _LT_DECL([], [DSYMUTIL], [1],
  1036. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1037. + _LT_DECL([], [NMEDIT], [1],
  1038. + [Tool to change global to local symbols on Mac OS X])
  1039. + _LT_DECL([], [LIPO], [1],
  1040. + [Tool to manipulate fat objects and archives on Mac OS X])
  1041. + _LT_DECL([], [OTOOL], [1],
  1042. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1043. + _LT_DECL([], [OTOOL64], [1],
  1044. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1045. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1046. [lt_cv_apple_cc_single_mod=no
  1047. if test -z "${LT_MULTI_MODULE}"; then
  1048. - # By default we will add the -single_module flag. You can override
  1049. - # by either setting the environment variable LT_MULTI_MODULE
  1050. - # non-empty at configure time, or by adding -multi_module to the
  1051. - # link flags.
  1052. - echo "int foo(void){return 1;}" > conftest.c
  1053. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1054. - -dynamiclib ${wl}-single_module conftest.c
  1055. - if test -f libconftest.dylib; then
  1056. - lt_cv_apple_cc_single_mod=yes
  1057. - rm -rf libconftest.dylib*
  1058. - fi
  1059. - rm conftest.c
  1060. + # By default we will add the -single_module flag. You can override
  1061. + # by either setting the environment variable LT_MULTI_MODULE
  1062. + # non-empty at configure time, or by adding -multi_module to the
  1063. + # link flags.
  1064. + rm -rf libconftest.dylib*
  1065. + echo "int foo(void){return 1;}" > conftest.c
  1066. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1067. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1068. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1069. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1070. + _lt_result=$?
  1071. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1072. + lt_cv_apple_cc_single_mod=yes
  1073. + else
  1074. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1075. + fi
  1076. + rm -rf libconftest.dylib*
  1077. + rm -f conftest.*
  1078. fi])
  1079. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1080. [lt_cv_ld_exported_symbols_list],
  1081. @@ -326,26 +951,26 @@
  1082. echo "_main" > conftest.sym
  1083. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1084. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1085. - [lt_cv_ld_exported_symbols_list=yes],
  1086. - [lt_cv_ld_exported_symbols_list=no])
  1087. - LDFLAGS="$save_LDFLAGS"
  1088. + [lt_cv_ld_exported_symbols_list=yes],
  1089. + [lt_cv_ld_exported_symbols_list=no])
  1090. + LDFLAGS="$save_LDFLAGS"
  1091. ])
  1092. case $host_os in
  1093. - rhapsody* | darwin1.[[0123]])
  1094. + rhapsody* | darwin1.[[012]])
  1095. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1096. darwin1.*)
  1097. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1098. - darwin*)
  1099. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1100. + darwin*) # darwin 5.x on
  1101. # if running on 10.5 or later, the deployment target defaults
  1102. # to the OS version, if on x86, and 10.4, the deployment
  1103. # target defaults to 10.4. Don't you love it?
  1104. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1105. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1106. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1107. - 10.[[012]]*)
  1108. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1109. - 10.*)
  1110. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1111. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1112. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1113. + 10.[[012]]*)
  1114. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1115. + 10.*)
  1116. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1117. esac
  1118. ;;
  1119. esac
  1120. @@ -355,10 +980,10 @@
  1121. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1122. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1123. else
  1124. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1125. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1126. fi
  1127. if test "$DSYMUTIL" != ":"; then
  1128. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1129. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1130. else
  1131. _lt_dsymutil=
  1132. fi
  1133. @@ -366,16 +991,51 @@
  1134. esac
  1135. ])
  1136. -# _LT_AC_SYS_LIBPATH_AIX
  1137. -# ----------------------
  1138. -# Links a minimal program and checks the executable
  1139. +
  1140. +# _LT_DARWIN_LINKER_FEATURES
  1141. +# --------------------------
  1142. +# Checks for linker and compiler features on darwin
  1143. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1144. +[
  1145. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1146. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1147. + _LT_TAGVAR(hardcode_direct, $1)=no
  1148. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1149. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1150. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1151. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1152. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1153. + case $cc_basename in
  1154. + ifort*) _lt_dar_can_shared=yes ;;
  1155. + *) _lt_dar_can_shared=$GCC ;;
  1156. + esac
  1157. + if test "$_lt_dar_can_shared" = "yes"; then
  1158. + output_verbose_link_cmd=echo
  1159. + _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}"
  1160. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1161. + _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}"
  1162. + _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}"
  1163. + m4_if([$1], [CXX],
  1164. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1165. + _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}"
  1166. + _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}"
  1167. + fi
  1168. +],[])
  1169. + else
  1170. + _LT_TAGVAR(ld_shlibs, $1)=no
  1171. + fi
  1172. +])
  1173. +
  1174. +# _LT_SYS_MODULE_PATH_AIX
  1175. +# -----------------------
  1176. +# Links a minimal program and checks the executable
  1177. # for the system default hardcoded library path. In most cases,
  1178. # this is /usr/lib:/lib, but when the MPI compilers are used
  1179. # the location of the communication and MPI libs are included too.
  1180. # If we don't find anything, use the default library path according
  1181. # to the aix ld manual.
  1182. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1183. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1184. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1185. +[m4_require([_LT_DECL_SED])dnl
  1186. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1187. lt_aix_libpath_sed='
  1188. /Import File Strings/,/^$/ {
  1189. @@ -390,45 +1050,45 @@
  1190. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1191. fi],[])
  1192. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1193. -])# _LT_AC_SYS_LIBPATH_AIX
  1194. +])# _LT_SYS_MODULE_PATH_AIX
  1195. -# _LT_AC_SHELL_INIT(ARG)
  1196. -# ----------------------
  1197. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1198. +# _LT_SHELL_INIT(ARG)
  1199. +# -------------------
  1200. +m4_define([_LT_SHELL_INIT],
  1201. [ifdef([AC_DIVERSION_NOTICE],
  1202. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1203. [AC_DIVERT_PUSH(NOTICE)])
  1204. $1
  1205. AC_DIVERT_POP
  1206. -])# _LT_AC_SHELL_INIT
  1207. +])# _LT_SHELL_INIT
  1208. -# _LT_AC_PROG_ECHO_BACKSLASH
  1209. -# --------------------------
  1210. +# _LT_PROG_ECHO_BACKSLASH
  1211. +# -----------------------
  1212. # Add some code to the start of the generated configure script which
  1213. # will find an echo command which doesn't interpret backslashes.
  1214. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1215. -[_LT_AC_SHELL_INIT([
  1216. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1217. +[_LT_SHELL_INIT([
  1218. # Check that we are running under the correct shell.
  1219. SHELL=${CONFIG_SHELL-/bin/sh}
  1220. -case X$ECHO in
  1221. +case X$lt_ECHO in
  1222. X*--fallback-echo)
  1223. # Remove one level of quotation (which was required for Make).
  1224. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1225. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1226. ;;
  1227. esac
  1228. -echo=${ECHO-echo}
  1229. +ECHO=${lt_ECHO-echo}
  1230. if test "X[$]1" = X--no-reexec; then
  1231. # Discard the --no-reexec flag, and continue.
  1232. shift
  1233. elif test "X[$]1" = X--fallback-echo; then
  1234. # Avoid inline document here, it may be left over
  1235. :
  1236. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1237. - # Yippee, $echo works!
  1238. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1239. + # Yippee, $ECHO works!
  1240. :
  1241. else
  1242. # Restart under the correct shell.
  1243. @@ -438,9 +1098,9 @@
  1244. if test "X[$]1" = X--fallback-echo; then
  1245. # used as fallback echo
  1246. shift
  1247. - cat <<EOF
  1248. + cat <<_LT_EOF
  1249. [$]*
  1250. -EOF
  1251. +_LT_EOF
  1252. exit 0
  1253. fi
  1254. @@ -448,124 +1108,127 @@
  1255. # if CDPATH is set.
  1256. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1257. -if test -z "$ECHO"; then
  1258. -if test "X${echo_test_string+set}" != Xset; then
  1259. -# find a string as large as possible, as long as the shell can cope with it
  1260. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1261. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1262. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1263. - echo_test_string=`eval $cmd` &&
  1264. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1265. - then
  1266. - break
  1267. - fi
  1268. - done
  1269. -fi
  1270. +if test -z "$lt_ECHO"; then
  1271. + if test "X${echo_test_string+set}" != Xset; then
  1272. + # find a string as large as possible, as long as the shell can cope with it
  1273. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1274. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1275. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1276. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1277. + then
  1278. + break
  1279. + fi
  1280. + done
  1281. + fi
  1282. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1283. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1284. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1285. - :
  1286. -else
  1287. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1288. - # backslashes. This makes it impossible to quote backslashes using
  1289. - # echo "$something" | sed 's/\\/\\\\/g'
  1290. - #
  1291. - # So, first we look for a working echo in the user's PATH.
  1292. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1293. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1295. + :
  1296. + else
  1297. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1298. + # backslashes. This makes it impossible to quote backslashes using
  1299. + # echo "$something" | sed 's/\\/\\\\/g'
  1300. + #
  1301. + # So, first we look for a working echo in the user's PATH.
  1302. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1303. - for dir in $PATH /usr/ucb; do
  1304. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1305. + for dir in $PATH /usr/ucb; do
  1306. + IFS="$lt_save_ifs"
  1307. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1308. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1309. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1310. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1311. + ECHO="$dir/echo"
  1312. + break
  1313. + fi
  1314. + done
  1315. IFS="$lt_save_ifs"
  1316. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1317. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1318. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1319. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1320. - echo="$dir/echo"
  1321. - break
  1322. - fi
  1323. - done
  1324. - IFS="$lt_save_ifs"
  1325. - if test "X$echo" = Xecho; then
  1326. - # We didn't find a better echo, so look for alternatives.
  1327. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1328. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1329. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1330. - # This shell has a builtin print -r that does the trick.
  1331. - echo='print -r'
  1332. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1333. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1334. - # If we have ksh, try running configure again with it.
  1335. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1336. - export ORIGINAL_CONFIG_SHELL
  1337. - CONFIG_SHELL=/bin/ksh
  1338. - export CONFIG_SHELL
  1339. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1340. - else
  1341. - # Try using printf.
  1342. - echo='printf %s\n'
  1343. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1344. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1345. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1346. - # Cool, printf works
  1347. - :
  1348. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1349. - test "X$echo_testing_string" = 'X\t' &&
  1350. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1351. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1352. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1353. - export CONFIG_SHELL
  1354. - SHELL="$CONFIG_SHELL"
  1355. - export SHELL
  1356. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1357. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1358. - test "X$echo_testing_string" = 'X\t' &&
  1359. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1360. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1361. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1362. + if test "X$ECHO" = Xecho; then
  1363. + # We didn't find a better echo, so look for alternatives.
  1364. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1365. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1366. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1367. + # This shell has a builtin print -r that does the trick.
  1368. + ECHO='print -r'
  1369. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1370. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1371. + # If we have ksh, try running configure again with it.
  1372. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1373. + export ORIGINAL_CONFIG_SHELL
  1374. + CONFIG_SHELL=/bin/ksh
  1375. + export CONFIG_SHELL
  1376. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1377. else
  1378. - # maybe with a smaller string...
  1379. - prev=:
  1380. + # Try using printf.
  1381. + ECHO='printf %s\n'
  1382. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1383. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1384. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1385. + # Cool, printf works
  1386. + :
  1387. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1388. + test "X$echo_testing_string" = 'X\t' &&
  1389. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1390. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1391. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1392. + export CONFIG_SHELL
  1393. + SHELL="$CONFIG_SHELL"
  1394. + export SHELL
  1395. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1396. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1397. + test "X$echo_testing_string" = 'X\t' &&
  1398. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1399. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1400. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1401. + else
  1402. + # maybe with a smaller string...
  1403. + prev=:
  1404. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1405. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1406. - then
  1407. - break
  1408. - fi
  1409. - prev="$cmd"
  1410. - done
  1411. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1412. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1413. + then
  1414. + break
  1415. + fi
  1416. + prev="$cmd"
  1417. + done
  1418. - if test "$prev" != 'sed 50q "[$]0"'; then
  1419. - echo_test_string=`eval $prev`
  1420. - export echo_test_string
  1421. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1422. - else
  1423. - # Oops. We lost completely, so just stick with echo.
  1424. - echo=echo
  1425. - fi
  1426. + if test "$prev" != 'sed 50q "[$]0"'; then
  1427. + echo_test_string=`eval $prev`
  1428. + export echo_test_string
  1429. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1430. + else
  1431. + # Oops. We lost completely, so just stick with echo.
  1432. + ECHO=echo
  1433. + fi
  1434. + fi
  1435. fi
  1436. fi
  1437. fi
  1438. fi
  1439. -fi
  1440. # Copy echo and quote the copy suitably for passing to libtool from
  1441. # the Makefile, instead of quoting the original, which is used later.
  1442. -ECHO=$echo
  1443. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1444. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1445. +lt_ECHO=$ECHO
  1446. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1447. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1448. fi
  1449. -AC_SUBST(ECHO)
  1450. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1451. +AC_SUBST(lt_ECHO)
  1452. +])
  1453. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1454. +_LT_DECL([], [ECHO], [1],
  1455. + [An echo program that does not interpret backslashes])
  1456. +])# _LT_PROG_ECHO_BACKSLASH
  1457. -# _LT_AC_LOCK
  1458. -# -----------
  1459. -AC_DEFUN([_LT_AC_LOCK],
  1460. +# _LT_ENABLE_LOCK
  1461. +# ---------------
  1462. +m4_defun([_LT_ENABLE_LOCK],
  1463. [AC_ARG_ENABLE([libtool-lock],
  1464. - [AC_HELP_STRING([--disable-libtool-lock],
  1465. - [avoid locking (might break parallel builds)])])
  1466. + [AS_HELP_STRING([--disable-libtool-lock],
  1467. + [avoid locking (might break parallel builds)])])
  1468. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1469. # Some flags need to be propagated to the compiler or linker for good
  1470. @@ -576,12 +1239,12 @@
  1471. echo 'int i;' > conftest.$ac_ext
  1472. if AC_TRY_EVAL(ac_compile); then
  1473. case `/usr/bin/file conftest.$ac_objext` in
  1474. - *ELF-32*)
  1475. - HPUX_IA64_MODE="32"
  1476. - ;;
  1477. - *ELF-64*)
  1478. - HPUX_IA64_MODE="64"
  1479. - ;;
  1480. + *ELF-32*)
  1481. + HPUX_IA64_MODE="32"
  1482. + ;;
  1483. + *ELF-64*)
  1484. + HPUX_IA64_MODE="64"
  1485. + ;;
  1486. esac
  1487. fi
  1488. rm -rf conftest*
  1489. @@ -590,79 +1253,79 @@
  1490. # Find out which ABI we are using.
  1491. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1492. if AC_TRY_EVAL(ac_compile); then
  1493. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1494. - case `/usr/bin/file conftest.$ac_objext` in
  1495. - *32-bit*)
  1496. - LD="${LD-ld} -melf32bsmip"
  1497. - ;;
  1498. - *N32*)
  1499. - LD="${LD-ld} -melf32bmipn32"
  1500. - ;;
  1501. - *64-bit*)
  1502. - LD="${LD-ld} -melf64bmip"
  1503. - ;;
  1504. - esac
  1505. - else
  1506. - case `/usr/bin/file conftest.$ac_objext` in
  1507. - *32-bit*)
  1508. - LD="${LD-ld} -32"
  1509. - ;;
  1510. - *N32*)
  1511. - LD="${LD-ld} -n32"
  1512. - ;;
  1513. - *64-bit*)
  1514. - LD="${LD-ld} -64"
  1515. - ;;
  1516. - esac
  1517. - fi
  1518. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1519. + case `/usr/bin/file conftest.$ac_objext` in
  1520. + *32-bit*)
  1521. + LD="${LD-ld} -melf32bsmip"
  1522. + ;;
  1523. + *N32*)
  1524. + LD="${LD-ld} -melf32bmipn32"
  1525. + ;;
  1526. + *64-bit*)
  1527. + LD="${LD-ld} -melf64bmip"
  1528. + ;;
  1529. + esac
  1530. + else
  1531. + case `/usr/bin/file conftest.$ac_objext` in
  1532. + *32-bit*)
  1533. + LD="${LD-ld} -32"
  1534. + ;;
  1535. + *N32*)
  1536. + LD="${LD-ld} -n32"
  1537. + ;;
  1538. + *64-bit*)
  1539. + LD="${LD-ld} -64"
  1540. + ;;
  1541. + esac
  1542. + fi
  1543. fi
  1544. rm -rf conftest*
  1545. ;;
  1546. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1547. -s390*-*linux*|sparc*-*linux*)
  1548. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1549. # Find out which ABI we are using.
  1550. echo 'int i;' > conftest.$ac_ext
  1551. if AC_TRY_EVAL(ac_compile); then
  1552. case `/usr/bin/file conftest.o` in
  1553. - *32-bit*)
  1554. - case $host in
  1555. - x86_64-*kfreebsd*-gnu)
  1556. - LD="${LD-ld} -m elf_i386_fbsd"
  1557. - ;;
  1558. - x86_64-*linux*)
  1559. - LD="${LD-ld} -m elf_i386"
  1560. - ;;
  1561. - ppc64-*linux*|powerpc64-*linux*)
  1562. - LD="${LD-ld} -m elf32ppclinux"
  1563. - ;;
  1564. - s390x-*linux*)
  1565. - LD="${LD-ld} -m elf_s390"
  1566. - ;;
  1567. - sparc64-*linux*)
  1568. - LD="${LD-ld} -m elf32_sparc"
  1569. - ;;
  1570. - esac
  1571. - ;;
  1572. - *64-bit*)
  1573. - case $host in
  1574. - x86_64-*kfreebsd*-gnu)
  1575. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1576. - ;;
  1577. - x86_64-*linux*)
  1578. - LD="${LD-ld} -m elf_x86_64"
  1579. - ;;
  1580. - ppc*-*linux*|powerpc*-*linux*)
  1581. - LD="${LD-ld} -m elf64ppc"
  1582. - ;;
  1583. - s390*-*linux*)
  1584. - LD="${LD-ld} -m elf64_s390"
  1585. - ;;
  1586. - sparc*-*linux*)
  1587. - LD="${LD-ld} -m elf64_sparc"
  1588. - ;;
  1589. - esac
  1590. - ;;
  1591. + *32-bit*)
  1592. + case $host in
  1593. + x86_64-*kfreebsd*-gnu)
  1594. + LD="${LD-ld} -m elf_i386_fbsd"
  1595. + ;;
  1596. + x86_64-*linux*)
  1597. + LD="${LD-ld} -m elf_i386"
  1598. + ;;
  1599. + ppc64-*linux*|powerpc64-*linux*)
  1600. + LD="${LD-ld} -m elf32ppclinux"
  1601. + ;;
  1602. + s390x-*linux*)
  1603. + LD="${LD-ld} -m elf_s390"
  1604. + ;;
  1605. + sparc64-*linux*)
  1606. + LD="${LD-ld} -m elf32_sparc"
  1607. + ;;
  1608. + esac
  1609. + ;;
  1610. + *64-bit*)
  1611. + case $host in
  1612. + x86_64-*kfreebsd*-gnu)
  1613. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1614. + ;;
  1615. + x86_64-*linux*)
  1616. + LD="${LD-ld} -m elf_x86_64"
  1617. + ;;
  1618. + ppc*-*linux*|powerpc*-*linux*)
  1619. + LD="${LD-ld} -m elf64ppc"
  1620. + ;;
  1621. + s390*-*linux*|s390*-*tpf*)
  1622. + LD="${LD-ld} -m elf64_s390"
  1623. + ;;
  1624. + sparc*-*linux*)
  1625. + LD="${LD-ld} -m elf64_sparc"
  1626. + ;;
  1627. + esac
  1628. + ;;
  1629. esac
  1630. fi
  1631. rm -rf conftest*
  1632. @@ -674,7 +1337,7 @@
  1633. CFLAGS="$CFLAGS -belf"
  1634. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1635. [AC_LANG_PUSH(C)
  1636. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1637. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1638. AC_LANG_POP])
  1639. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1640. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1641. @@ -690,7 +1353,7 @@
  1642. case $lt_cv_prog_gnu_ld in
  1643. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1644. *)
  1645. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1646. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1647. LD="${LD-ld} -64"
  1648. fi
  1649. ;;
  1650. @@ -700,30 +1363,63 @@
  1651. fi
  1652. rm -rf conftest*
  1653. ;;
  1654. -
  1655. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1656. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1657. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1658. - AC_CHECK_TOOL(AS, as, false)
  1659. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1660. - ;;
  1661. - ])
  1662. esac
  1663. need_locks="$enable_libtool_lock"
  1664. +])# _LT_ENABLE_LOCK
  1665. +
  1666. +
  1667. +# _LT_CMD_OLD_ARCHIVE
  1668. +# -------------------
  1669. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1670. +[AC_CHECK_TOOL(AR, ar, false)
  1671. +test -z "$AR" && AR=ar
  1672. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1673. +_LT_DECL([], [AR], [1], [The archiver])
  1674. +_LT_DECL([], [AR_FLAGS], [1])
  1675. +
  1676. +AC_CHECK_TOOL(STRIP, strip, :)
  1677. +test -z "$STRIP" && STRIP=:
  1678. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1679. +
  1680. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1681. +test -z "$RANLIB" && RANLIB=:
  1682. +_LT_DECL([], [RANLIB], [1],
  1683. + [Commands used to install an old-style archive])
  1684. +
  1685. +# Determine commands to create old-style static archives.
  1686. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1687. +old_postinstall_cmds='chmod 644 $oldlib'
  1688. +old_postuninstall_cmds=
  1689. -])# _LT_AC_LOCK
  1690. +if test -n "$RANLIB"; then
  1691. + case $host_os in
  1692. + openbsd*)
  1693. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1694. + ;;
  1695. + *)
  1696. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1697. + ;;
  1698. + esac
  1699. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1700. +fi
  1701. +_LT_DECL([], [old_postinstall_cmds], [2])
  1702. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1703. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1704. + [Commands used to build an old-style archive])
  1705. +])# _LT_CMD_OLD_ARCHIVE
  1706. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1707. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1708. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1709. # ----------------------------------------------------------------
  1710. # Check whether the given compiler option works
  1711. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1712. -[AC_REQUIRE([LT_AC_PROG_SED])
  1713. +AC_DEFUN([_LT_COMPILER_OPTION],
  1714. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1715. +m4_require([_LT_DECL_SED])dnl
  1716. AC_CACHE_CHECK([$1], [$2],
  1717. [$2=no
  1718. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1719. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1721. lt_compiler_flag="$3"
  1722. # Insert the option either (1) after the last *FLAGS variable, or
  1723. @@ -743,29 +1439,35 @@
  1724. if (exit $ac_status) && test -s "$ac_outfile"; then
  1725. # The compiler can only warn and ignore the option if not recognized
  1726. # So say no if there are warnings other than the usual output.
  1727. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1728. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1729. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1730. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1731. $2=yes
  1732. fi
  1733. fi
  1734. - $rm conftest*
  1735. + $RM conftest*
  1736. ])
  1737. if test x"[$]$2" = xyes; then
  1738. - ifelse([$5], , :, [$5])
  1739. + m4_if([$5], , :, [$5])
  1740. else
  1741. - ifelse([$6], , :, [$6])
  1742. + m4_if([$6], , :, [$6])
  1743. fi
  1744. -])# AC_LIBTOOL_COMPILER_OPTION
  1745. +])# _LT_COMPILER_OPTION
  1746. -
  1747. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1748. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1749. -# ------------------------------------------------------------
  1750. -# Check whether the given compiler option works
  1751. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1752. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1753. +# Old name:
  1754. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1755. +dnl aclocal-1.4 backwards compatibility:
  1756. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1757. +
  1758. +
  1759. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1760. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1761. +# ----------------------------------------------------
  1762. +# Check whether the given linker option works
  1763. +AC_DEFUN([_LT_LINKER_OPTION],
  1764. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1765. +m4_require([_LT_DECL_SED])dnl
  1766. AC_CACHE_CHECK([$1], [$2],
  1767. [$2=no
  1768. save_LDFLAGS="$LDFLAGS"
  1769. @@ -777,7 +1479,7 @@
  1770. if test -s conftest.err; then
  1771. # Append any errors to the config.log.
  1772. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1773. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1774. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1775. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1776. if diff conftest.exp conftest.er2 >/dev/null; then
  1777. $2=yes
  1778. @@ -786,22 +1488,28 @@
  1779. $2=yes
  1780. fi
  1781. fi
  1782. - $rm -r conftest*
  1783. + $RM -r conftest*
  1784. LDFLAGS="$save_LDFLAGS"
  1785. ])
  1786. if test x"[$]$2" = xyes; then
  1787. - ifelse([$4], , :, [$4])
  1788. + m4_if([$4], , :, [$4])
  1789. else
  1790. - ifelse([$5], , :, [$5])
  1791. + m4_if([$5], , :, [$5])
  1792. fi
  1793. -])# AC_LIBTOOL_LINKER_OPTION
  1794. +])# _LT_LINKER_OPTION
  1795. +# Old name:
  1796. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1797. +dnl aclocal-1.4 backwards compatibility:
  1798. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1799. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1800. -# --------------------------
  1801. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1802. -[# find the maximum length of command line arguments
  1803. +
  1804. +# LT_CMD_MAX_LEN
  1805. +#---------------
  1806. +AC_DEFUN([LT_CMD_MAX_LEN],
  1807. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1808. +# find the maximum length of command line arguments
  1809. AC_MSG_CHECKING([the maximum length of command line arguments])
  1810. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1811. i=0
  1812. @@ -823,7 +1531,7 @@
  1813. lt_cv_sys_max_cmd_len=-1;
  1814. ;;
  1815. - cygwin* | mingw*)
  1816. + cygwin* | mingw* | cegcc*)
  1817. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1818. # about 5 minutes as the teststring grows exponentially.
  1819. # Worse, since 9x/ME are not pre-emptively multitasking,
  1820. @@ -878,7 +1586,7 @@
  1821. sysv5* | sco5v6* | sysv4.2uw2*)
  1822. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1823. if test -n "$kargmax"; then
  1824. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1825. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1826. else
  1827. lt_cv_sys_max_cmd_len=32768
  1828. fi
  1829. @@ -889,20 +1597,28 @@
  1830. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1831. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1832. else
  1833. + # Make teststring a little bigger before we do anything with it.
  1834. + # a 1K string should be a reasonable start.
  1835. + for i in 1 2 3 4 5 6 7 8 ; do
  1836. + teststring=$teststring$teststring
  1837. + done
  1838. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1839. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1840. - = "XX$teststring") >/dev/null 2>&1 &&
  1841. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1842. - lt_cv_sys_max_cmd_len=$new_result &&
  1843. + # If test is not a shell built-in, we'll probably end up computing a
  1844. + # maximum length that is only half of the actual maximum length, but
  1845. + # we can't tell.
  1846. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1847. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1848. test $i != 17 # 1/2 MB should be enough
  1849. do
  1850. i=`expr $i + 1`
  1851. teststring=$teststring$teststring
  1852. done
  1853. + # Only check the string length outside the loop.
  1854. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1855. teststring=
  1856. - # Add a significant safety factor because C++ compilers can tack on massive
  1857. - # amounts of additional arguments before passing them to the linker.
  1858. - # It appears as though 1/2 is a usable value.
  1859. + # Add a significant safety factor because C++ compilers can tack on
  1860. + # massive amounts of additional arguments before passing them to the
  1861. + # linker. It appears as though 1/2 is a usable value.
  1862. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1863. fi
  1864. ;;
  1865. @@ -913,27 +1629,35 @@
  1866. else
  1867. AC_MSG_RESULT(none)
  1868. fi
  1869. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1870. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1871. +_LT_DECL([], [max_cmd_len], [0],
  1872. + [What is the maximum length of a command?])
  1873. +])# LT_CMD_MAX_LEN
  1874. +# Old name:
  1875. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1876. +dnl aclocal-1.4 backwards compatibility:
  1877. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1878. -# _LT_AC_CHECK_DLFCN
  1879. -# ------------------
  1880. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1881. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1882. -])# _LT_AC_CHECK_DLFCN
  1883. +
  1884. +# _LT_HEADER_DLFCN
  1885. +# ----------------
  1886. +m4_defun([_LT_HEADER_DLFCN],
  1887. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1888. +])# _LT_HEADER_DLFCN
  1889. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1890. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1891. -# ---------------------------------------------------------------------
  1892. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1893. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1894. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1895. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1896. +# ----------------------------------------------------------------
  1897. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1898. +[m4_require([_LT_HEADER_DLFCN])dnl
  1899. if test "$cross_compiling" = yes; then :
  1900. [$4]
  1901. else
  1902. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1903. lt_status=$lt_dlunknown
  1904. - cat > conftest.$ac_ext <<EOF
  1905. + cat > conftest.$ac_ext <<_LT_EOF
  1906. [#line __oline__ "configure"
  1907. #include "confdefs.h"
  1908. @@ -975,10 +1699,6 @@
  1909. # endif
  1910. #endif
  1911. -#ifdef __cplusplus
  1912. -extern "C" void exit (int);
  1913. -#endif
  1914. -
  1915. void fnord() { int i=42;}
  1916. int main ()
  1917. {
  1918. @@ -994,9 +1714,9 @@
  1919. else
  1920. puts (dlerror ());
  1921. - exit (status);
  1922. + return status;
  1923. }]
  1924. -EOF
  1925. +_LT_EOF
  1926. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1927. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1928. lt_status=$?
  1929. @@ -1011,13 +1731,13 @@
  1930. fi
  1931. fi
  1932. rm -fr conftest*
  1933. -])# _LT_AC_TRY_DLOPEN_SELF
  1934. +])# _LT_TRY_DLOPEN_SELF
  1935. -# AC_LIBTOOL_DLOPEN_SELF
  1936. -# ----------------------
  1937. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1938. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1939. +# LT_SYS_DLOPEN_SELF
  1940. +# ------------------
  1941. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1942. +[m4_require([_LT_HEADER_DLFCN])dnl
  1943. if test "x$enable_dlopen" != xyes; then
  1944. enable_dlopen=unknown
  1945. enable_dlopen_self=unknown
  1946. @@ -1033,15 +1753,15 @@
  1947. lt_cv_dlopen_self=yes
  1948. ;;
  1949. - mingw* | pw32*)
  1950. + mingw* | pw32* | cegcc*)
  1951. lt_cv_dlopen="LoadLibrary"
  1952. lt_cv_dlopen_libs=
  1953. - ;;
  1954. + ;;
  1955. cygwin*)
  1956. lt_cv_dlopen="dlopen"
  1957. lt_cv_dlopen_libs=
  1958. - ;;
  1959. + ;;
  1960. darwin*)
  1961. # if libdl is installed we need to link against it
  1962. @@ -1051,7 +1771,7 @@
  1963. lt_cv_dlopen_libs=
  1964. lt_cv_dlopen_self=yes
  1965. ])
  1966. - ;;
  1967. + ;;
  1968. *)
  1969. AC_CHECK_FUNC([shl_load],
  1970. @@ -1093,7 +1813,7 @@
  1971. AC_CACHE_CHECK([whether a program can dlopen itself],
  1972. lt_cv_dlopen_self, [dnl
  1973. - _LT_AC_TRY_DLOPEN_SELF(
  1974. + _LT_TRY_DLOPEN_SELF(
  1975. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1976. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1977. ])
  1978. @@ -1101,8 +1821,8 @@
  1979. if test "x$lt_cv_dlopen_self" = xyes; then
  1980. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1981. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1982. - lt_cv_dlopen_self_static, [dnl
  1983. - _LT_AC_TRY_DLOPEN_SELF(
  1984. + lt_cv_dlopen_self_static, [dnl
  1985. + _LT_TRY_DLOPEN_SELF(
  1986. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1987. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1988. ])
  1989. @@ -1124,19 +1844,32 @@
  1990. *) enable_dlopen_self_static=unknown ;;
  1991. esac
  1992. fi
  1993. -])# AC_LIBTOOL_DLOPEN_SELF
  1994. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1995. + [Whether dlopen is supported])
  1996. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1997. + [Whether dlopen of programs is supported])
  1998. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1999. + [Whether dlopen of statically linked programs is supported])
  2000. +])# LT_SYS_DLOPEN_SELF
  2001. +
  2002. +# Old name:
  2003. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2004. +dnl aclocal-1.4 backwards compatibility:
  2005. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2006. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2007. -# ---------------------------------
  2008. -# Check to see if options -c and -o are simultaneously supported by compiler
  2009. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2010. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2011. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2012. +# _LT_COMPILER_C_O([TAGNAME])
  2013. +# ---------------------------
  2014. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2015. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2016. +m4_defun([_LT_COMPILER_C_O],
  2017. +[m4_require([_LT_DECL_SED])dnl
  2018. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2019. +m4_require([_LT_TAG_COMPILER])dnl
  2020. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2021. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2022. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2023. - $rm -r conftest 2>/dev/null
  2024. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2025. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2026. + $RM -r conftest 2>/dev/null
  2027. mkdir conftest
  2028. cd conftest
  2029. mkdir out
  2030. @@ -1160,37 +1893,41 @@
  2031. then
  2032. # The compiler can only warn and ignore the option if not recognized
  2033. # So say no if there are warnings
  2034. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2035. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2036. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2037. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2038. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2039. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2040. fi
  2041. fi
  2042. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2043. - $rm conftest*
  2044. + $RM conftest*
  2045. # SGI C++ compiler will create directory out/ii_files/ for
  2046. # template instantiation
  2047. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2048. - $rm out/* && rmdir out
  2049. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2050. + $RM out/* && rmdir out
  2051. cd ..
  2052. - rmdir conftest
  2053. - $rm conftest*
  2054. + $RM -r conftest
  2055. + $RM conftest*
  2056. ])
  2057. -])# AC_LIBTOOL_PROG_CC_C_O
  2058. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2059. + [Does compiler simultaneously support -c and -o options?])
  2060. +])# _LT_COMPILER_C_O
  2061. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2062. -# -----------------------------------------
  2063. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2064. +# ----------------------------------
  2065. # Check to see if we can do hard links to lock some files if needed
  2066. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2067. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2068. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2069. +[m4_require([_LT_ENABLE_LOCK])dnl
  2070. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2071. +_LT_COMPILER_C_O([$1])
  2072. hard_links="nottested"
  2073. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2074. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2075. # do not overwrite the value of need_locks provided by the user
  2076. AC_MSG_CHECKING([if we can lock with hard links])
  2077. hard_links=yes
  2078. - $rm conftest*
  2079. + $RM conftest*
  2080. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2081. touch conftest.a
  2082. ln conftest.a conftest.b 2>&5 || hard_links=no
  2083. @@ -1203,12 +1940,13 @@
  2084. else
  2085. need_locks=no
  2086. fi
  2087. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2088. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2089. +])# _LT_COMPILER_FILE_LOCKS
  2090. -# AC_LIBTOOL_OBJDIR
  2091. -# -----------------
  2092. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2093. +# _LT_CHECK_OBJDIR
  2094. +# ----------------
  2095. +m4_defun([_LT_CHECK_OBJDIR],
  2096. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2097. [rm -f .libs 2>/dev/null
  2098. mkdir .libs 2>/dev/null
  2099. @@ -1220,40 +1958,46 @@
  2100. fi
  2101. rmdir .libs 2>/dev/null])
  2102. objdir=$lt_cv_objdir
  2103. -])# AC_LIBTOOL_OBJDIR
  2104. +_LT_DECL([], [objdir], [0],
  2105. + [The name of the directory that contains temporary libtool files])dnl
  2106. +m4_pattern_allow([LT_OBJDIR])dnl
  2107. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2108. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2109. +])# _LT_CHECK_OBJDIR
  2110. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2111. -# ----------------------------------------------
  2112. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2113. +# --------------------------------------
  2114. # Check hardcoding attributes.
  2115. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2116. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2117. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2118. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2119. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2120. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2121. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2122. +_LT_TAGVAR(hardcode_action, $1)=
  2123. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2124. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2125. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2126. - # We can hardcode non-existant directories.
  2127. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2128. + # We can hardcode non-existent directories.
  2129. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2130. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2131. # have to relink, otherwise we might link with an installed library
  2132. # when we should be linking with a yet-to-be-installed one
  2133. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2134. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2135. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2136. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2137. # Linking always hardcodes the temporary library directory.
  2138. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2139. + _LT_TAGVAR(hardcode_action, $1)=relink
  2140. else
  2141. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2142. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2143. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2144. fi
  2145. else
  2146. # We cannot hardcode anything, or else we can only hardcode existing
  2147. # directories.
  2148. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2149. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2150. fi
  2151. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2152. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2153. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2154. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2155. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2156. # Fast installation is not supported
  2157. enable_fast_install=no
  2158. elif test "$shlibpath_overrides_runpath" = yes ||
  2159. @@ -1261,73 +2005,70 @@
  2160. # Fast installation is not necessary
  2161. enable_fast_install=needless
  2162. fi
  2163. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2164. +_LT_TAGDECL([], [hardcode_action], [0],
  2165. + [How to hardcode a shared library path into an executable])
  2166. +])# _LT_LINKER_HARDCODE_LIBPATH
  2167. -# AC_LIBTOOL_SYS_LIB_STRIP
  2168. -# ------------------------
  2169. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2170. -[striplib=
  2171. +# _LT_CMD_STRIPLIB
  2172. +# ----------------
  2173. +m4_defun([_LT_CMD_STRIPLIB],
  2174. +[m4_require([_LT_DECL_EGREP])
  2175. +striplib=
  2176. old_striplib=
  2177. AC_MSG_CHECKING([whether stripping libraries is possible])
  2178. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2179. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2180. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2181. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2182. AC_MSG_RESULT([yes])
  2183. else
  2184. # FIXME - insert some real tests, host_os isn't really good enough
  2185. case $host_os in
  2186. - darwin*)
  2187. - if test -n "$STRIP" ; then
  2188. - striplib="$STRIP -x"
  2189. - old_striplib="$STRIP -S"
  2190. - AC_MSG_RESULT([yes])
  2191. - else
  2192. - AC_MSG_RESULT([no])
  2193. -fi
  2194. - ;;
  2195. - *)
  2196. - AC_MSG_RESULT([no])
  2197. + darwin*)
  2198. + if test -n "$STRIP" ; then
  2199. + striplib="$STRIP -x"
  2200. + old_striplib="$STRIP -S"
  2201. + AC_MSG_RESULT([yes])
  2202. + else
  2203. + AC_MSG_RESULT([no])
  2204. + fi
  2205. + ;;
  2206. + *)
  2207. + AC_MSG_RESULT([no])
  2208. ;;
  2209. esac
  2210. fi
  2211. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2212. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2213. +_LT_DECL([], [striplib], [1])
  2214. +])# _LT_CMD_STRIPLIB
  2215. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2216. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2217. # -----------------------------
  2218. # PORTME Fill in your ld.so characteristics
  2219. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2220. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2221. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2222. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2223. +m4_require([_LT_DECL_EGREP])dnl
  2224. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2225. +m4_require([_LT_DECL_OBJDUMP])dnl
  2226. +m4_require([_LT_DECL_SED])dnl
  2227. AC_MSG_CHECKING([dynamic linker characteristics])
  2228. -library_names_spec=
  2229. -libname_spec='lib$name'
  2230. -soname_spec=
  2231. -shrext_cmds=".so"
  2232. -postinstall_cmds=
  2233. -postuninstall_cmds=
  2234. -finish_cmds=
  2235. -finish_eval=
  2236. -shlibpath_var=
  2237. -shlibpath_overrides_runpath=unknown
  2238. -version_type=none
  2239. -dynamic_linker="$host_os ld.so"
  2240. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2241. -m4_if($1,[],[
  2242. +m4_if([$1],
  2243. + [], [
  2244. if test "$GCC" = yes; then
  2245. case $host_os in
  2246. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2247. *) lt_awk_arg="/^libraries:/" ;;
  2248. esac
  2249. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2250. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2251. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2252. # if the path contains ";" then we assume it to be the separator
  2253. # otherwise default to the standard path separator (i.e. ":") - it is
  2254. # assumed that no part of a normal pathname contains ";" but that should
  2255. # okay in the real world where ";" in dirpaths is itself problematic.
  2256. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2257. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2258. else
  2259. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2260. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2261. fi
  2262. # Ok, now we have the path, separated by spaces, we can step through it
  2263. # and add multilib dir if necessary.
  2264. @@ -1341,7 +2082,7 @@
  2265. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2266. fi
  2267. done
  2268. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2269. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2270. BEGIN {RS=" "; FS="/|\n";} {
  2271. lt_foo="";
  2272. lt_count=0;
  2273. @@ -1361,10 +2102,23 @@
  2274. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2275. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2276. }'`
  2277. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2278. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2279. else
  2280. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2281. fi])
  2282. +library_names_spec=
  2283. +libname_spec='lib$name'
  2284. +soname_spec=
  2285. +shrext_cmds=".so"
  2286. +postinstall_cmds=
  2287. +postuninstall_cmds=
  2288. +finish_cmds=
  2289. +finish_eval=
  2290. +shlibpath_var=
  2291. +shlibpath_overrides_runpath=unknown
  2292. +version_type=none
  2293. +dynamic_linker="$host_os ld.so"
  2294. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2295. need_lib_prefix=unknown
  2296. hardcode_into_libs=no
  2297. @@ -1401,7 +2155,7 @@
  2298. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2299. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2300. echo ' yes '
  2301. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2302. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2303. :
  2304. else
  2305. can_build_shared=no
  2306. @@ -1427,9 +2181,18 @@
  2307. ;;
  2308. amigaos*)
  2309. - library_names_spec='$libname.ixlibrary $libname.a'
  2310. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2311. - 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'
  2312. + case $host_cpu in
  2313. + powerpc)
  2314. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2315. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2316. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2317. + ;;
  2318. + m68k)
  2319. + library_names_spec='$libname.ixlibrary $libname.a'
  2320. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2321. + 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'
  2322. + ;;
  2323. + esac
  2324. ;;
  2325. beos*)
  2326. @@ -1452,25 +2215,28 @@
  2327. # libtool to hard-code these into programs
  2328. ;;
  2329. -cygwin* | mingw* | pw32*)
  2330. +cygwin* | mingw* | pw32* | cegcc*)
  2331. version_type=windows
  2332. shrext_cmds=".dll"
  2333. need_version=no
  2334. need_lib_prefix=no
  2335. case $GCC,$host_os in
  2336. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2337. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2338. library_names_spec='$libname.dll.a'
  2339. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2340. postinstall_cmds='base_file=`basename \${file}`~
  2341. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2342. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2343. dldir=$destdir/`dirname \$dlpath`~
  2344. test -d \$dldir || mkdir -p \$dldir~
  2345. $install_prog $dir/$dlname \$dldir/$dlname~
  2346. - chmod a+x \$dldir/$dlname'
  2347. + chmod a+x \$dldir/$dlname~
  2348. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2349. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2350. + fi'
  2351. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2352. dlpath=$dir/\$dldll~
  2353. - $rm \$dlpath'
  2354. + $RM \$dlpath'
  2355. shlibpath_overrides_runpath=yes
  2356. case $host_os in
  2357. @@ -1479,20 +2245,20 @@
  2358. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2359. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2360. ;;
  2361. - mingw*)
  2362. + mingw* | cegcc*)
  2363. # MinGW DLLs use traditional 'lib' prefix
  2364. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2365. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2366. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2367. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2368. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2369. # It is most probably a Windows format PATH printed by
  2370. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2371. # path with ; separators, and with drive letters. We can handle the
  2372. # drive letters (cygwin fileutils understands them), so leave them,
  2373. # especially as we might pass files found there to a mingw objdump,
  2374. # which wouldn't understand a cygwinified path. Ahh.
  2375. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2376. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2377. else
  2378. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2379. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2380. fi
  2381. ;;
  2382. pw32*)
  2383. @@ -1516,13 +2282,13 @@
  2384. version_type=darwin
  2385. need_lib_prefix=no
  2386. need_version=no
  2387. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2388. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2389. soname_spec='${libname}${release}${major}$shared_ext'
  2390. shlibpath_overrides_runpath=yes
  2391. shlibpath_var=DYLD_LIBRARY_PATH
  2392. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2393. - m4_if([$1], [],[
  2394. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2395. +m4_if([$1], [],[
  2396. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2397. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2398. ;;
  2399. @@ -1615,18 +2381,18 @@
  2400. fi
  2401. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2402. ;;
  2403. - hppa*64*)
  2404. - shrext_cmds='.sl'
  2405. - hardcode_into_libs=yes
  2406. - dynamic_linker="$host_os dld.sl"
  2407. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2408. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2409. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2410. - soname_spec='${libname}${release}${shared_ext}$major'
  2411. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2412. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2413. - ;;
  2414. - *)
  2415. + hppa*64*)
  2416. + shrext_cmds='.sl'
  2417. + hardcode_into_libs=yes
  2418. + dynamic_linker="$host_os dld.sl"
  2419. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2420. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2421. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2422. + soname_spec='${libname}${release}${shared_ext}$major'
  2423. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2424. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2425. + ;;
  2426. + *)
  2427. shrext_cmds='.sl'
  2428. dynamic_linker="$host_os dld.sl"
  2429. shlibpath_var=SHLIB_PATH
  2430. @@ -1694,7 +2460,7 @@
  2431. ;;
  2432. # This must be Linux ELF.
  2433. -linux* | k*bsd*-gnu)
  2434. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2435. version_type=linux
  2436. need_lib_prefix=no
  2437. need_version=no
  2438. @@ -1703,6 +2469,17 @@
  2439. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2440. shlibpath_var=LD_LIBRARY_PATH
  2441. shlibpath_overrides_runpath=no
  2442. + # Some binutils ld are patched to set DT_RUNPATH
  2443. + save_LDFLAGS=$LDFLAGS
  2444. + save_libdir=$libdir
  2445. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2446. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2447. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2448. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2449. + [shlibpath_overrides_runpath=yes])])
  2450. + LDFLAGS=$save_LDFLAGS
  2451. + libdir=$save_libdir
  2452. +
  2453. # This implies no fast_install, which is unacceptable.
  2454. # Some rework will be needed to allow for fast_install
  2455. # before this can be enabled.
  2456. @@ -1710,7 +2487,7 @@
  2457. # Append ld.so.conf contents to the search path
  2458. if test -f /etc/ld.so.conf; then
  2459. - 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' ' '`
  2460. + 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' ' '`
  2461. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2462. fi
  2463. @@ -1739,7 +2516,7 @@
  2464. version_type=sunos
  2465. need_lib_prefix=no
  2466. need_version=no
  2467. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2468. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2470. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2471. dynamic_linker='NetBSD (a.out) ld.so'
  2472. @@ -1760,14 +2537,16 @@
  2473. shlibpath_overrides_runpath=yes
  2474. ;;
  2475. -nto-qnx*)
  2476. - version_type=linux
  2477. +*nto* | *qnx*)
  2478. + version_type=qnx
  2479. need_lib_prefix=no
  2480. need_version=no
  2481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2482. soname_spec='${libname}${release}${shared_ext}$major'
  2483. shlibpath_var=LD_LIBRARY_PATH
  2484. - shlibpath_overrides_runpath=yes
  2485. + shlibpath_overrides_runpath=no
  2486. + hardcode_into_libs=yes
  2487. + dynamic_linker='ldqnx.so'
  2488. ;;
  2489. openbsd*)
  2490. @@ -1776,13 +2555,13 @@
  2491. need_lib_prefix=no
  2492. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2493. case $host_os in
  2494. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2495. - *) need_version=no ;;
  2496. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2497. + *) need_version=no ;;
  2498. esac
  2499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2500. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2501. shlibpath_var=LD_LIBRARY_PATH
  2502. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2503. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2504. case $host_os in
  2505. openbsd2.[[89]] | openbsd2.[[89]].*)
  2506. shlibpath_overrides_runpath=no
  2507. @@ -1854,7 +2633,6 @@
  2508. sni)
  2509. shlibpath_overrides_runpath=no
  2510. need_lib_prefix=no
  2511. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2512. runpath_var=LD_RUN_PATH
  2513. ;;
  2514. siemens)
  2515. @@ -1885,13 +2663,12 @@
  2516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2517. soname_spec='${libname}${release}${shared_ext}$major'
  2518. shlibpath_var=LD_LIBRARY_PATH
  2519. + shlibpath_overrides_runpath=yes
  2520. hardcode_into_libs=yes
  2521. if test "$with_gnu_ld" = yes; then
  2522. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2523. - shlibpath_overrides_runpath=no
  2524. else
  2525. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2526. - shlibpath_overrides_runpath=yes
  2527. case $host_os in
  2528. sco3.2v5*)
  2529. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2530. @@ -1901,6 +2678,17 @@
  2531. sys_lib_dlsearch_path_spec='/usr/lib'
  2532. ;;
  2533. +tpf*)
  2534. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2535. + version_type=linux
  2536. + need_lib_prefix=no
  2537. + need_version=no
  2538. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2539. + shlibpath_var=LD_LIBRARY_PATH
  2540. + shlibpath_overrides_runpath=no
  2541. + hardcode_into_libs=yes
  2542. + ;;
  2543. +
  2544. uts4*)
  2545. version_type=linux
  2546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2547. @@ -1915,288 +2703,58 @@
  2548. AC_MSG_RESULT([$dynamic_linker])
  2549. test "$dynamic_linker" = no && can_build_shared=no
  2550. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2551. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2552. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2553. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2554. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2555. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2556. -
  2557. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2558. if test "$GCC" = yes; then
  2559. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2560. fi
  2561. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2562. -
  2563. -
  2564. -# _LT_AC_TAGCONFIG
  2565. -# ----------------
  2566. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2567. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2568. -AC_ARG_WITH([tags],
  2569. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2570. - [include additional configurations @<:@automatic@:>@])],
  2571. - [tagnames="$withval"])
  2572. -
  2573. -if test -f "$ltmain" && test -n "$tagnames"; then
  2574. - if test ! -f "${ofile}"; then
  2575. - AC_MSG_WARN([output file `$ofile' does not exist])
  2576. - fi
  2577. -
  2578. - if test -z "$LTCC"; then
  2579. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2580. - if test -z "$LTCC"; then
  2581. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2582. - else
  2583. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2584. - fi
  2585. - fi
  2586. - if test -z "$LTCFLAGS"; then
  2587. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2588. - fi
  2589. - # Extract list of available tagged configurations in $ofile.
  2590. - # Note that this assumes the entire list is on one line.
  2591. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2592. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2593. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2594. +fi
  2595. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2596. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2597. +fi
  2598. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2599. - for tagname in $tagnames; do
  2600. - IFS="$lt_save_ifs"
  2601. - # Check whether tagname contains only valid characters
  2602. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2603. - "") ;;
  2604. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2605. - ;;
  2606. - esac
  2607. +_LT_DECL([], [variables_saved_for_relink], [1],
  2608. + [Variables whose values should be saved in libtool wrapper scripts and
  2609. + restored at link time])
  2610. +_LT_DECL([], [need_lib_prefix], [0],
  2611. + [Do we need the "lib" prefix for modules?])
  2612. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2613. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2614. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2615. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2616. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2617. + [Is shlibpath searched before the hard-coded library search path?])
  2618. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2619. +_LT_DECL([], [library_names_spec], [1],
  2620. + [[List of archive names. First name is the real one, the rest are links.
  2621. + The last name is the one that the linker finds with -lNAME]])
  2622. +_LT_DECL([], [soname_spec], [1],
  2623. + [[The coded name of the library, if different from the real name]])
  2624. +_LT_DECL([], [postinstall_cmds], [2],
  2625. + [Command to use after installation of a shared archive])
  2626. +_LT_DECL([], [postuninstall_cmds], [2],
  2627. + [Command to use after uninstallation of a shared archive])
  2628. +_LT_DECL([], [finish_cmds], [2],
  2629. + [Commands used to finish a libtool library installation in a directory])
  2630. +_LT_DECL([], [finish_eval], [1],
  2631. + [[As "finish_cmds", except a single script fragment to be evaled but
  2632. + not shown]])
  2633. +_LT_DECL([], [hardcode_into_libs], [0],
  2634. + [Whether we should hardcode library paths into libraries])
  2635. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2636. + [Compile-time system search path for libraries])
  2637. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2638. + [Run-time system search path for libraries])
  2639. +])# _LT_SYS_DYNAMIC_LINKER
  2640. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2641. - then
  2642. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2643. - fi
  2644. - # Update the list of available tags.
  2645. - if test -n "$tagname"; then
  2646. - echo appending configuration tag \"$tagname\" to $ofile
  2647. -
  2648. - case $tagname in
  2649. - CXX)
  2650. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2651. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2652. - (test "X$CXX" != "Xg++"))) ; then
  2653. - AC_LIBTOOL_LANG_CXX_CONFIG
  2654. - else
  2655. - tagname=""
  2656. - fi
  2657. - ;;
  2658. -
  2659. - F77)
  2660. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2661. - AC_LIBTOOL_LANG_F77_CONFIG
  2662. - else
  2663. - tagname=""
  2664. - fi
  2665. - ;;
  2666. -
  2667. - GCJ)
  2668. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2669. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2670. - else
  2671. - tagname=""
  2672. - fi
  2673. - ;;
  2674. -
  2675. - RC)
  2676. - AC_LIBTOOL_LANG_RC_CONFIG
  2677. - ;;
  2678. -
  2679. - *)
  2680. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2681. - ;;
  2682. - esac
  2683. -
  2684. - # Append the new tag name to the list of available tags.
  2685. - if test -n "$tagname" ; then
  2686. - available_tags="$available_tags $tagname"
  2687. - fi
  2688. - fi
  2689. - done
  2690. - IFS="$lt_save_ifs"
  2691. -
  2692. - # Now substitute the updated list of available tags.
  2693. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2694. - mv "${ofile}T" "$ofile"
  2695. - chmod +x "$ofile"
  2696. - else
  2697. - rm -f "${ofile}T"
  2698. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2699. - fi
  2700. -fi
  2701. -])# _LT_AC_TAGCONFIG
  2702. -
  2703. -
  2704. -# AC_LIBTOOL_DLOPEN
  2705. -# -----------------
  2706. -# enable checks for dlopen support
  2707. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2708. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2709. -])# AC_LIBTOOL_DLOPEN
  2710. -
  2711. -
  2712. -# AC_LIBTOOL_WIN32_DLL
  2713. -# --------------------
  2714. -# declare package support for building win32 DLLs
  2715. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2716. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2717. -])# AC_LIBTOOL_WIN32_DLL
  2718. -
  2719. -
  2720. -# AC_ENABLE_SHARED([DEFAULT])
  2721. -# ---------------------------
  2722. -# implement the --enable-shared flag
  2723. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2724. -AC_DEFUN([AC_ENABLE_SHARED],
  2725. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2726. -AC_ARG_ENABLE([shared],
  2727. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2728. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2729. - [p=${PACKAGE-default}
  2730. - case $enableval in
  2731. - yes) enable_shared=yes ;;
  2732. - no) enable_shared=no ;;
  2733. - *)
  2734. - enable_shared=no
  2735. - # Look at the argument we got. We use all the common list separators.
  2736. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2737. - for pkg in $enableval; do
  2738. - IFS="$lt_save_ifs"
  2739. - if test "X$pkg" = "X$p"; then
  2740. - enable_shared=yes
  2741. - fi
  2742. - done
  2743. - IFS="$lt_save_ifs"
  2744. - ;;
  2745. - esac],
  2746. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2747. -])# AC_ENABLE_SHARED
  2748. -
  2749. -
  2750. -# AC_DISABLE_SHARED
  2751. -# -----------------
  2752. -# set the default shared flag to --disable-shared
  2753. -AC_DEFUN([AC_DISABLE_SHARED],
  2754. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2755. -AC_ENABLE_SHARED(no)
  2756. -])# AC_DISABLE_SHARED
  2757. -
  2758. -
  2759. -# AC_ENABLE_STATIC([DEFAULT])
  2760. -# ---------------------------
  2761. -# implement the --enable-static flag
  2762. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2763. -AC_DEFUN([AC_ENABLE_STATIC],
  2764. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2765. -AC_ARG_ENABLE([static],
  2766. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2767. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2768. - [p=${PACKAGE-default}
  2769. - case $enableval in
  2770. - yes) enable_static=yes ;;
  2771. - no) enable_static=no ;;
  2772. - *)
  2773. - enable_static=no
  2774. - # Look at the argument we got. We use all the common list separators.
  2775. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2776. - for pkg in $enableval; do
  2777. - IFS="$lt_save_ifs"
  2778. - if test "X$pkg" = "X$p"; then
  2779. - enable_static=yes
  2780. - fi
  2781. - done
  2782. - IFS="$lt_save_ifs"
  2783. - ;;
  2784. - esac],
  2785. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2786. -])# AC_ENABLE_STATIC
  2787. -
  2788. -
  2789. -# AC_DISABLE_STATIC
  2790. -# -----------------
  2791. -# set the default static flag to --disable-static
  2792. -AC_DEFUN([AC_DISABLE_STATIC],
  2793. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2794. -AC_ENABLE_STATIC(no)
  2795. -])# AC_DISABLE_STATIC
  2796. -
  2797. -
  2798. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2799. -# ---------------------------------
  2800. -# implement the --enable-fast-install flag
  2801. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2802. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2803. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2804. -AC_ARG_ENABLE([fast-install],
  2805. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2806. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2807. - [p=${PACKAGE-default}
  2808. - case $enableval in
  2809. - yes) enable_fast_install=yes ;;
  2810. - no) enable_fast_install=no ;;
  2811. - *)
  2812. - enable_fast_install=no
  2813. - # Look at the argument we got. We use all the common list separators.
  2814. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2815. - for pkg in $enableval; do
  2816. - IFS="$lt_save_ifs"
  2817. - if test "X$pkg" = "X$p"; then
  2818. - enable_fast_install=yes
  2819. - fi
  2820. - done
  2821. - IFS="$lt_save_ifs"
  2822. - ;;
  2823. - esac],
  2824. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2825. -])# AC_ENABLE_FAST_INSTALL
  2826. -
  2827. -
  2828. -# AC_DISABLE_FAST_INSTALL
  2829. -# -----------------------
  2830. -# set the default to --disable-fast-install
  2831. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2832. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2833. -AC_ENABLE_FAST_INSTALL(no)
  2834. -])# AC_DISABLE_FAST_INSTALL
  2835. -
  2836. -
  2837. -# AC_LIBTOOL_PICMODE([MODE])
  2838. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2839. # --------------------------
  2840. -# implement the --with-pic flag
  2841. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2842. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2843. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2844. -pic_mode=ifelse($#,1,$1,default)
  2845. -])# AC_LIBTOOL_PICMODE
  2846. -
  2847. -
  2848. -# AC_PROG_EGREP
  2849. -# -------------
  2850. -# This is predefined starting with Autoconf 2.54, so this conditional
  2851. -# definition can be removed once we require Autoconf 2.54 or later.
  2852. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2853. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2854. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2855. - then ac_cv_prog_egrep='grep -E'
  2856. - else ac_cv_prog_egrep='egrep'
  2857. - fi])
  2858. - EGREP=$ac_cv_prog_egrep
  2859. - AC_SUBST([EGREP])
  2860. -])])
  2861. -
  2862. -
  2863. -# AC_PATH_TOOL_PREFIX
  2864. -# -------------------
  2865. # find a file program which can recognize shared library
  2866. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2867. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2868. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2869. +[m4_require([_LT_DECL_EGREP])dnl
  2870. AC_MSG_CHECKING([for $1])
  2871. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2872. [case $MAGIC_CMD in
  2873. @@ -2209,7 +2767,7 @@
  2874. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2875. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2876. dnl not every word. This closes a longstanding sh security hole.
  2877. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2878. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2879. for ac_dir in $ac_dummy; do
  2880. IFS="$lt_save_ifs"
  2881. test -z "$ac_dir" && ac_dir=.
  2882. @@ -2224,7 +2782,7 @@
  2883. $EGREP "$file_magic_regex" > /dev/null; then
  2884. :
  2885. else
  2886. - cat <<EOF 1>&2
  2887. + cat <<_LT_EOF 1>&2
  2888. *** Warning: the command libtool uses to detect shared libraries,
  2889. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2890. @@ -2235,7 +2793,7 @@
  2891. *** may want to report the problem to your system manager and/or to
  2892. *** bug-libtool@gnu.org
  2893. -EOF
  2894. +_LT_EOF
  2895. fi ;;
  2896. esac
  2897. fi
  2898. @@ -2252,37 +2810,47 @@
  2899. else
  2900. AC_MSG_RESULT(no)
  2901. fi
  2902. -])# AC_PATH_TOOL_PREFIX
  2903. +_LT_DECL([], [MAGIC_CMD], [0],
  2904. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2905. +])# _LT_PATH_TOOL_PREFIX
  2906. +# Old name:
  2907. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2908. +dnl aclocal-1.4 backwards compatibility:
  2909. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2910. -# AC_PATH_MAGIC
  2911. -# -------------
  2912. +
  2913. +# _LT_PATH_MAGIC
  2914. +# --------------
  2915. # find a file program which can recognize a shared library
  2916. -AC_DEFUN([AC_PATH_MAGIC],
  2917. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2918. +m4_defun([_LT_PATH_MAGIC],
  2919. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2920. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2921. if test -n "$ac_tool_prefix"; then
  2922. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2923. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2924. else
  2925. MAGIC_CMD=:
  2926. fi
  2927. fi
  2928. -])# AC_PATH_MAGIC
  2929. +])# _LT_PATH_MAGIC
  2930. -# AC_PROG_LD
  2931. +# LT_PATH_LD
  2932. # ----------
  2933. # find the pathname to the GNU or non-GNU linker
  2934. -AC_DEFUN([AC_PROG_LD],
  2935. -[AC_ARG_WITH([gnu-ld],
  2936. - [AC_HELP_STRING([--with-gnu-ld],
  2937. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2938. - [test "$withval" = no || with_gnu_ld=yes],
  2939. - [with_gnu_ld=no])
  2940. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2941. -AC_REQUIRE([AC_PROG_CC])dnl
  2942. +AC_DEFUN([LT_PATH_LD],
  2943. +[AC_REQUIRE([AC_PROG_CC])dnl
  2944. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2945. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2946. +m4_require([_LT_DECL_SED])dnl
  2947. +m4_require([_LT_DECL_EGREP])dnl
  2948. +
  2949. +AC_ARG_WITH([gnu-ld],
  2950. + [AS_HELP_STRING([--with-gnu-ld],
  2951. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2952. + [test "$withval" = no || with_gnu_ld=yes],
  2953. + [with_gnu_ld=no])dnl
  2954. +
  2955. ac_prog=ld
  2956. if test "$GCC" = yes; then
  2957. # Check if gcc -print-prog-name=ld gives a path.
  2958. @@ -2299,9 +2867,9 @@
  2959. [[\\/]]* | ?:[[\\/]]*)
  2960. re_direlt='/[[^/]][[^/]]*/\.\./'
  2961. # Canonicalize the pathname of ld
  2962. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2963. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2964. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2965. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2966. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2967. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2968. done
  2969. test -z "$LD" && LD="$ac_prog"
  2970. ;;
  2971. @@ -2351,15 +2919,24 @@
  2972. AC_MSG_RESULT(no)
  2973. fi
  2974. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2975. -AC_PROG_LD_GNU
  2976. -])# AC_PROG_LD
  2977. +_LT_PATH_LD_GNU
  2978. +AC_SUBST([LD])
  2979. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2980. +])# LT_PATH_LD
  2981. -# AC_PROG_LD_GNU
  2982. -# --------------
  2983. -AC_DEFUN([AC_PROG_LD_GNU],
  2984. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2985. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2986. +# Old names:
  2987. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2988. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2989. +dnl aclocal-1.4 backwards compatibility:
  2990. +dnl AC_DEFUN([AM_PROG_LD], [])
  2991. +dnl AC_DEFUN([AC_PROG_LD], [])
  2992. +
  2993. +
  2994. +# _LT_PATH_LD_GNU
  2995. +#- --------------
  2996. +m4_defun([_LT_PATH_LD_GNU],
  2997. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2998. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2999. case `$LD -v 2>&1 </dev/null` in
  3000. *GNU* | *'with BFD'*)
  3001. @@ -2370,14 +2947,14 @@
  3002. ;;
  3003. esac])
  3004. with_gnu_ld=$lt_cv_prog_gnu_ld
  3005. -])# AC_PROG_LD_GNU
  3006. +])# _LT_PATH_LD_GNU
  3007. -# AC_PROG_LD_RELOAD_FLAG
  3008. -# ----------------------
  3009. +# _LT_CMD_RELOAD
  3010. +# --------------
  3011. # find reload flag for linker
  3012. # -- PORTME Some linkers may need a different reload flag.
  3013. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3014. +m4_defun([_LT_CMD_RELOAD],
  3015. [AC_CACHE_CHECK([for $LD option to reload object files],
  3016. lt_cv_ld_reload_flag,
  3017. [lt_cv_ld_reload_flag='-r'])
  3018. @@ -2396,15 +2973,19 @@
  3019. fi
  3020. ;;
  3021. esac
  3022. -])# AC_PROG_LD_RELOAD_FLAG
  3023. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3024. +_LT_DECL([], [reload_cmds], [2])dnl
  3025. +])# _LT_CMD_RELOAD
  3026. -# AC_DEPLIBS_CHECK_METHOD
  3027. -# -----------------------
  3028. +# _LT_CHECK_MAGIC_METHOD
  3029. +# ----------------------
  3030. # how to check for library dependencies
  3031. # -- PORTME fill in with the dynamic library characteristics
  3032. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3033. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3034. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3035. +[m4_require([_LT_DECL_EGREP])
  3036. +m4_require([_LT_DECL_OBJDUMP])
  3037. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3038. lt_cv_deplibs_check_method,
  3039. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3040. lt_cv_file_magic_test_file=
  3041. @@ -2454,12 +3035,18 @@
  3042. fi
  3043. ;;
  3044. +cegcc)
  3045. + # use the weaker test based on 'objdump'. See mingw*.
  3046. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3047. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3048. + ;;
  3049. +
  3050. darwin* | rhapsody*)
  3051. lt_cv_deplibs_check_method=pass_all
  3052. ;;
  3053. freebsd* | dragonfly*)
  3054. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3055. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3056. case $host_cpu in
  3057. i*86 )
  3058. # Not sure whether the presence of OpenBSD here was a mistake.
  3059. @@ -2512,12 +3099,12 @@
  3060. ;;
  3061. # This must be Linux ELF.
  3062. -linux* | k*bsd*-gnu)
  3063. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3064. lt_cv_deplibs_check_method=pass_all
  3065. ;;
  3066. netbsd* | netbsdelf*-gnu)
  3067. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3068. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3069. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3070. else
  3071. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3072. @@ -2530,12 +3117,12 @@
  3073. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3074. ;;
  3075. -nto-qnx*)
  3076. - lt_cv_deplibs_check_method=unknown
  3077. +*nto* | *qnx*)
  3078. + lt_cv_deplibs_check_method=pass_all
  3079. ;;
  3080. openbsd*)
  3081. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3082. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3083. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3084. else
  3085. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3086. @@ -2554,6 +3141,10 @@
  3087. lt_cv_deplibs_check_method=pass_all
  3088. ;;
  3089. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3090. + lt_cv_deplibs_check_method=pass_all
  3091. + ;;
  3092. +
  3093. sysv4 | sysv4.3*)
  3094. case $host_vendor in
  3095. motorola)
  3096. @@ -2581,7 +3172,7 @@
  3097. esac
  3098. ;;
  3099. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3100. +tpf*)
  3101. lt_cv_deplibs_check_method=pass_all
  3102. ;;
  3103. esac
  3104. @@ -2589,14 +3180,20 @@
  3105. file_magic_cmd=$lt_cv_file_magic_cmd
  3106. deplibs_check_method=$lt_cv_deplibs_check_method
  3107. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3108. -])# AC_DEPLIBS_CHECK_METHOD
  3109. +
  3110. +_LT_DECL([], [deplibs_check_method], [1],
  3111. + [Method to check whether dependent libraries are shared objects])
  3112. +_LT_DECL([], [file_magic_cmd], [1],
  3113. + [Command to use when deplibs_check_method == "file_magic"])
  3114. +])# _LT_CHECK_MAGIC_METHOD
  3115. -# AC_PROG_NM
  3116. +# LT_PATH_NM
  3117. # ----------
  3118. -# find the pathname to a BSD-compatible name lister
  3119. -AC_DEFUN([AC_PROG_NM],
  3120. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3121. +# find the pathname to a BSD- or MS-compatible name lister
  3122. +AC_DEFUN([LT_PATH_NM],
  3123. +[AC_REQUIRE([AC_PROG_CC])dnl
  3124. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3125. [if test -n "$NM"; then
  3126. # Let the user override the test.
  3127. lt_cv_path_NM="$NM"
  3128. @@ -2638,16 +3235,51 @@
  3129. done
  3130. IFS="$lt_save_ifs"
  3131. done
  3132. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3133. + : ${lt_cv_path_NM=no}
  3134. fi])
  3135. -NM="$lt_cv_path_NM"
  3136. -])# AC_PROG_NM
  3137. +if test "$lt_cv_path_NM" != "no"; then
  3138. + NM="$lt_cv_path_NM"
  3139. +else
  3140. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3141. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3142. + AC_SUBST([DUMPBIN])
  3143. + if test "$DUMPBIN" != ":"; then
  3144. + NM="$DUMPBIN"
  3145. + fi
  3146. +fi
  3147. +test -z "$NM" && NM=nm
  3148. +AC_SUBST([NM])
  3149. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3150. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3151. + [lt_cv_nm_interface="BSD nm"
  3152. + echo "int some_variable = 0;" > conftest.$ac_ext
  3153. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3154. + (eval "$ac_compile" 2>conftest.err)
  3155. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3156. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3157. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3158. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3159. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3160. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3161. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3162. + lt_cv_nm_interface="MS dumpbin"
  3163. + fi
  3164. + rm -f conftest*])
  3165. +])# LT_PATH_NM
  3166. +
  3167. +# Old names:
  3168. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3169. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3170. +dnl aclocal-1.4 backwards compatibility:
  3171. +dnl AC_DEFUN([AM_PROG_NM], [])
  3172. +dnl AC_DEFUN([AC_PROG_NM], [])
  3173. -# AC_CHECK_LIBM
  3174. -# -------------
  3175. +
  3176. +# LT_LIB_M
  3177. +# --------
  3178. # check for math library
  3179. -AC_DEFUN([AC_CHECK_LIBM],
  3180. +AC_DEFUN([LT_LIB_M],
  3181. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3182. LIBM=
  3183. case $host in
  3184. @@ -2662,4016 +3294,4698 @@
  3185. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3186. ;;
  3187. esac
  3188. -])# AC_CHECK_LIBM
  3189. +AC_SUBST([LIBM])
  3190. +])# LT_LIB_M
  3191. +# Old name:
  3192. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3193. +dnl aclocal-1.4 backwards compatibility:
  3194. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3195. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3196. -# -----------------------------------
  3197. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3198. -# LTDLINCL to the include flags for the libltdl header and adds
  3199. -# --enable-ltdl-convenience to the configure arguments. Note that
  3200. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3201. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3202. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3203. -# (note the single quotes!). If your package is not flat and you're not
  3204. -# using automake, define top_builddir and top_srcdir appropriately in
  3205. -# the Makefiles.
  3206. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3207. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3208. - case $enable_ltdl_convenience in
  3209. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3210. - "") enable_ltdl_convenience=yes
  3211. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3212. - esac
  3213. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3214. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3215. - # For backwards non-gettext consistent compatibility...
  3216. - INCLTDL="$LTDLINCL"
  3217. -])# AC_LIBLTDL_CONVENIENCE
  3218. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3219. +# -------------------------------
  3220. +m4_defun([_LT_COMPILER_NO_RTTI],
  3221. +[m4_require([_LT_TAG_COMPILER])dnl
  3222. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3223. -# -----------------------------------
  3224. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3225. -# LTDLINCL to the include flags for the libltdl header and adds
  3226. -# --enable-ltdl-install to the configure arguments. Note that
  3227. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3228. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3229. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3230. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3231. -# flat and you're not using automake, define top_builddir and top_srcdir
  3232. -# appropriately in the Makefiles.
  3233. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3234. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3235. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3236. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3237. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3238. - [if test x"$enable_ltdl_install" = xno; then
  3239. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3240. - else
  3241. - enable_ltdl_install=yes
  3242. - fi
  3243. - ])
  3244. - if test x"$enable_ltdl_install" = x"yes"; then
  3245. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3246. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3247. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3248. - else
  3249. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3250. - LIBLTDL="-lltdl"
  3251. - LTDLINCL=
  3252. - fi
  3253. - # For backwards non-gettext consistent compatibility...
  3254. - INCLTDL="$LTDLINCL"
  3255. -])# AC_LIBLTDL_INSTALLABLE
  3256. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3257. +if test "$GCC" = yes; then
  3258. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3259. -# AC_LIBTOOL_CXX
  3260. -# --------------
  3261. -# enable support for C++ libraries
  3262. -AC_DEFUN([AC_LIBTOOL_CXX],
  3263. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3264. -])# AC_LIBTOOL_CXX
  3265. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3266. + lt_cv_prog_compiler_rtti_exceptions,
  3267. + [-fno-rtti -fno-exceptions], [],
  3268. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3269. +fi
  3270. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3271. + [Compiler flag to turn off builtin functions])
  3272. +])# _LT_COMPILER_NO_RTTI
  3273. -# _LT_AC_LANG_CXX
  3274. -# ---------------
  3275. -AC_DEFUN([_LT_AC_LANG_CXX],
  3276. -[AC_REQUIRE([AC_PROG_CXX])
  3277. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3278. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3279. -])# _LT_AC_LANG_CXX
  3280. +# _LT_CMD_GLOBAL_SYMBOLS
  3281. +# ----------------------
  3282. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3283. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3284. +AC_REQUIRE([AC_PROG_CC])dnl
  3285. +AC_REQUIRE([LT_PATH_NM])dnl
  3286. +AC_REQUIRE([LT_PATH_LD])dnl
  3287. +m4_require([_LT_DECL_SED])dnl
  3288. +m4_require([_LT_DECL_EGREP])dnl
  3289. +m4_require([_LT_TAG_COMPILER])dnl
  3290. -# _LT_AC_PROG_CXXCPP
  3291. -# ------------------
  3292. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3293. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3294. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3295. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3296. [
  3297. -AC_REQUIRE([AC_PROG_CXX])
  3298. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3299. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3300. - (test "X$CXX" != "Xg++"))) ; then
  3301. - AC_PROG_CXXCPP
  3302. -fi
  3303. -])# _LT_AC_PROG_CXXCPP
  3304. +# These are sane defaults that work on at least a few old systems.
  3305. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3306. -# AC_LIBTOOL_F77
  3307. -# --------------
  3308. -# enable support for Fortran 77 libraries
  3309. -AC_DEFUN([AC_LIBTOOL_F77],
  3310. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3311. -])# AC_LIBTOOL_F77
  3312. +# Character class describing NM global symbol codes.
  3313. +symcode='[[BCDEGRST]]'
  3314. +# Regexp to match symbols that can be accessed directly from C.
  3315. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3316. -# _LT_AC_LANG_F77
  3317. -# ---------------
  3318. -AC_DEFUN([_LT_AC_LANG_F77],
  3319. -[AC_REQUIRE([AC_PROG_F77])
  3320. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3321. -])# _LT_AC_LANG_F77
  3322. +# Define system-specific variables.
  3323. +case $host_os in
  3324. +aix*)
  3325. + symcode='[[BCDT]]'
  3326. + ;;
  3327. +cygwin* | mingw* | pw32* | cegcc*)
  3328. + symcode='[[ABCDGISTW]]'
  3329. + ;;
  3330. +hpux*)
  3331. + if test "$host_cpu" = ia64; then
  3332. + symcode='[[ABCDEGRST]]'
  3333. + fi
  3334. + ;;
  3335. +irix* | nonstopux*)
  3336. + symcode='[[BCDEGRST]]'
  3337. + ;;
  3338. +osf*)
  3339. + symcode='[[BCDEGQRST]]'
  3340. + ;;
  3341. +solaris*)
  3342. + symcode='[[BDRT]]'
  3343. + ;;
  3344. +sco3.2v5*)
  3345. + symcode='[[DT]]'
  3346. + ;;
  3347. +sysv4.2uw2*)
  3348. + symcode='[[DT]]'
  3349. + ;;
  3350. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3351. + symcode='[[ABDT]]'
  3352. + ;;
  3353. +sysv4)
  3354. + symcode='[[DFNSTU]]'
  3355. + ;;
  3356. +esac
  3357. +# If we're using GNU nm, then use its standard symbol codes.
  3358. +case `$NM -V 2>&1` in
  3359. +*GNU* | *'with BFD'*)
  3360. + symcode='[[ABCDGIRSTW]]' ;;
  3361. +esac
  3362. -# AC_LIBTOOL_GCJ
  3363. -# --------------
  3364. -# enable support for GCJ libraries
  3365. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3366. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3367. -])# AC_LIBTOOL_GCJ
  3368. +# Transform an extracted symbol line into a proper C declaration.
  3369. +# Some systems (esp. on ia64) link data and code symbols differently,
  3370. +# so use this general approach.
  3371. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3372. +# Transform an extracted symbol line into symbol name and symbol address
  3373. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3374. +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'"
  3375. -# _LT_AC_LANG_GCJ
  3376. -# ---------------
  3377. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3378. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3379. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3380. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3381. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3382. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3383. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3384. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3385. -])# _LT_AC_LANG_GCJ
  3386. +# Handle CRLF in mingw tool chain
  3387. +opt_cr=
  3388. +case $build_os in
  3389. +mingw*)
  3390. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3391. + ;;
  3392. +esac
  3393. +# Try without a prefix underscore, then with it.
  3394. +for ac_symprfx in "" "_"; do
  3395. -# AC_LIBTOOL_RC
  3396. -# -------------
  3397. -# enable support for Windows resource files
  3398. -AC_DEFUN([AC_LIBTOOL_RC],
  3399. -[AC_REQUIRE([LT_AC_PROG_RC])
  3400. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3401. -])# AC_LIBTOOL_RC
  3402. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3403. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3404. + # Write the raw and C identifiers.
  3405. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3406. + # Fake it for dumpbin and say T for any non-static function
  3407. + # and D for any global variable.
  3408. + # Also find C++ and __fastcall symbols from MSVC++,
  3409. + # which start with @ or ?.
  3410. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3411. +" {last_section=section; section=\$ 3};"\
  3412. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3413. +" \$ 0!~/External *\|/{next};"\
  3414. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3415. +" {if(hide[section]) next};"\
  3416. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3417. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3418. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3419. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3420. +" ' prfx=^$ac_symprfx]"
  3421. + else
  3422. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3423. + fi
  3424. -# AC_LIBTOOL_LANG_C_CONFIG
  3425. -# ------------------------
  3426. -# Ensure that the configuration vars for the C compiler are
  3427. -# suitably defined. Those variables are subsequently used by
  3428. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3429. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3430. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3431. -[lt_save_CC="$CC"
  3432. -AC_LANG_PUSH(C)
  3433. + # Check to see that the pipe works correctly.
  3434. + pipe_works=no
  3435. -# Source file extension for C test sources.
  3436. -ac_ext=c
  3437. + rm -f conftest*
  3438. + cat > conftest.$ac_ext <<_LT_EOF
  3439. +#ifdef __cplusplus
  3440. +extern "C" {
  3441. +#endif
  3442. +char nm_test_var;
  3443. +void nm_test_func(void);
  3444. +void nm_test_func(void){}
  3445. +#ifdef __cplusplus
  3446. +}
  3447. +#endif
  3448. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3449. +_LT_EOF
  3450. -# Object file extension for compiled C test sources.
  3451. -objext=o
  3452. -_LT_AC_TAGVAR(objext, $1)=$objext
  3453. -
  3454. -# Code to be used in simple compile tests
  3455. -lt_simple_compile_test_code="int some_variable = 0;"
  3456. -
  3457. -# Code to be used in simple link tests
  3458. -lt_simple_link_test_code='int main(){return(0);}'
  3459. -
  3460. -_LT_AC_SYS_COMPILER
  3461. -
  3462. -# save warnings/boilerplate of simple test code
  3463. -_LT_COMPILER_BOILERPLATE
  3464. -_LT_LINKER_BOILERPLATE
  3465. -
  3466. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3467. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3468. -AC_LIBTOOL_PROG_CC_C_O($1)
  3469. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3470. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3471. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3472. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3473. -AC_LIBTOOL_SYS_LIB_STRIP
  3474. -AC_LIBTOOL_DLOPEN_SELF
  3475. -
  3476. -# Report which library types will actually be built
  3477. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3478. -AC_MSG_RESULT([$can_build_shared])
  3479. -
  3480. -AC_MSG_CHECKING([whether to build shared libraries])
  3481. -test "$can_build_shared" = "no" && enable_shared=no
  3482. -
  3483. -# On AIX, shared libraries and static libraries use the same namespace, and
  3484. -# are all built from PIC.
  3485. -case $host_os in
  3486. -aix3*)
  3487. - test "$enable_shared" = yes && enable_static=no
  3488. - if test -n "$RANLIB"; then
  3489. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3490. - postinstall_cmds='$RANLIB $lib'
  3491. - fi
  3492. - ;;
  3493. -
  3494. -aix[[4-9]]*)
  3495. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3496. - test "$enable_shared" = yes && enable_static=no
  3497. - fi
  3498. - ;;
  3499. -esac
  3500. -AC_MSG_RESULT([$enable_shared])
  3501. -
  3502. -AC_MSG_CHECKING([whether to build static libraries])
  3503. -# Make sure either enable_shared or enable_static is yes.
  3504. -test "$enable_shared" = yes || enable_static=yes
  3505. -AC_MSG_RESULT([$enable_static])
  3506. -
  3507. -AC_LIBTOOL_CONFIG($1)
  3508. -
  3509. -AC_LANG_POP
  3510. -CC="$lt_save_CC"
  3511. -])# AC_LIBTOOL_LANG_C_CONFIG
  3512. -
  3513. -
  3514. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3515. -# --------------------------
  3516. -# Ensure that the configuration vars for the C compiler are
  3517. -# suitably defined. Those variables are subsequently used by
  3518. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3519. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3520. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3521. -[AC_LANG_PUSH(C++)
  3522. -AC_REQUIRE([AC_PROG_CXX])
  3523. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3524. -
  3525. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3526. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3527. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3528. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3529. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3530. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3531. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3532. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3533. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3534. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3535. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3536. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3537. -_LT_AC_TAGVAR(module_cmds, $1)=
  3538. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3539. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3540. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3541. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3542. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3543. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3544. -
  3545. -# Dependencies to place before and after the object being linked:
  3546. -_LT_AC_TAGVAR(predep_objects, $1)=
  3547. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3548. -_LT_AC_TAGVAR(predeps, $1)=
  3549. -_LT_AC_TAGVAR(postdeps, $1)=
  3550. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3551. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3552. -
  3553. -# Source file extension for C++ test sources.
  3554. -ac_ext=cpp
  3555. -
  3556. -# Object file extension for compiled C++ test sources.
  3557. -objext=o
  3558. -_LT_AC_TAGVAR(objext, $1)=$objext
  3559. -
  3560. -# Code to be used in simple compile tests
  3561. -lt_simple_compile_test_code="int some_variable = 0;"
  3562. -
  3563. -# Code to be used in simple link tests
  3564. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3565. -
  3566. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3567. -_LT_AC_SYS_COMPILER
  3568. -
  3569. -# save warnings/boilerplate of simple test code
  3570. -_LT_COMPILER_BOILERPLATE
  3571. -_LT_LINKER_BOILERPLATE
  3572. -
  3573. -# Allow CC to be a program name with arguments.
  3574. -lt_save_CC=$CC
  3575. -lt_save_LD=$LD
  3576. -lt_save_GCC=$GCC
  3577. -GCC=$GXX
  3578. -lt_save_with_gnu_ld=$with_gnu_ld
  3579. -lt_save_path_LD=$lt_cv_path_LD
  3580. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3581. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3582. -else
  3583. - $as_unset lt_cv_prog_gnu_ld
  3584. -fi
  3585. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3586. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3587. -else
  3588. - $as_unset lt_cv_path_LD
  3589. -fi
  3590. -test -z "${LDCXX+set}" || LD=$LDCXX
  3591. -CC=${CXX-"c++"}
  3592. -compiler=$CC
  3593. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3594. -_LT_CC_BASENAME([$compiler])
  3595. -
  3596. -# We don't want -fno-exception wen compiling C++ code, so set the
  3597. -# no_builtin_flag separately
  3598. -if test "$GXX" = yes; then
  3599. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3600. -else
  3601. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3602. -fi
  3603. + if AC_TRY_EVAL(ac_compile); then
  3604. + # Now try to grab the symbols.
  3605. + nlist=conftest.nm
  3606. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3607. + # Try sorting and uniquifying the output.
  3608. + if sort "$nlist" | uniq > "$nlist"T; then
  3609. + mv -f "$nlist"T "$nlist"
  3610. + else
  3611. + rm -f "$nlist"T
  3612. + fi
  3613. -if test "$GXX" = yes; then
  3614. - # Set up default GNU C++ configuration
  3615. + # Make sure that we snagged all the symbols we need.
  3616. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3617. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3618. + cat <<_LT_EOF > conftest.$ac_ext
  3619. +#ifdef __cplusplus
  3620. +extern "C" {
  3621. +#endif
  3622. - AC_PROG_LD
  3623. +_LT_EOF
  3624. + # Now generate the symbol file.
  3625. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3626. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3627. - # archiving commands below assume that GNU ld is being used.
  3628. - if test "$with_gnu_ld" = yes; then
  3629. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3630. - _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'
  3631. + cat <<_LT_EOF >> conftest.$ac_ext
  3632. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3633. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3634. +/* The mapping between symbol names and symbols. */
  3635. +const struct {
  3636. + const char *name;
  3637. + void *address;
  3638. +}
  3639. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3640. +{
  3641. + { "@PROGRAM@", (void *) 0 },
  3642. +_LT_EOF
  3643. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3644. + cat <<\_LT_EOF >> conftest.$ac_ext
  3645. + {0, (void *) 0}
  3646. +};
  3647. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3648. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3649. - # investigate it a little bit more. (MM)
  3650. - wlarc='${wl}'
  3651. +/* This works around a problem in FreeBSD linker */
  3652. +#ifdef FREEBSD_WORKAROUND
  3653. +static const void *lt_preloaded_setup() {
  3654. + return lt__PROGRAM__LTX_preloaded_symbols;
  3655. +}
  3656. +#endif
  3657. - # ancient GNU ld didn't support --whole-archive et. al.
  3658. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3659. - grep 'no-whole-archive' > /dev/null; then
  3660. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3661. +#ifdef __cplusplus
  3662. +}
  3663. +#endif
  3664. +_LT_EOF
  3665. + # Now try linking the two files.
  3666. + mv conftest.$ac_objext conftstm.$ac_objext
  3667. + lt_save_LIBS="$LIBS"
  3668. + lt_save_CFLAGS="$CFLAGS"
  3669. + LIBS="conftstm.$ac_objext"
  3670. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3671. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3672. + pipe_works=yes
  3673. + fi
  3674. + LIBS="$lt_save_LIBS"
  3675. + CFLAGS="$lt_save_CFLAGS"
  3676. + else
  3677. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3678. + fi
  3679. + else
  3680. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3681. + fi
  3682. else
  3683. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3684. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3685. fi
  3686. else
  3687. - with_gnu_ld=no
  3688. - wlarc=
  3689. -
  3690. - # A generic and very simple default shared library creation
  3691. - # command for GNU C++ for the case where it uses the native
  3692. - # linker, instead of GNU ld. If possible, this setting should
  3693. - # overridden to take advantage of the native linker features on
  3694. - # the platform it is being used on.
  3695. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3696. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3697. + cat conftest.$ac_ext >&5
  3698. fi
  3699. + rm -rf conftest* conftst*
  3700. - # Commands to make compiler produce verbose output that lists
  3701. - # what "hidden" libraries, object files and flags are used when
  3702. - # linking a shared library.
  3703. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3704. -
  3705. + # Do not use the global_symbol_pipe unless it works.
  3706. + if test "$pipe_works" = yes; then
  3707. + break
  3708. + else
  3709. + lt_cv_sys_global_symbol_pipe=
  3710. + fi
  3711. +done
  3712. +])
  3713. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3714. + lt_cv_sys_global_symbol_to_cdecl=
  3715. +fi
  3716. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3717. + AC_MSG_RESULT(failed)
  3718. else
  3719. - GXX=no
  3720. - with_gnu_ld=no
  3721. - wlarc=
  3722. + AC_MSG_RESULT(ok)
  3723. fi
  3724. -# PORTME: fill in a description of your system's C++ link characteristics
  3725. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3726. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3727. -case $host_os in
  3728. - aix3*)
  3729. - # FIXME: insert proper C++ library support
  3730. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3731. - ;;
  3732. - aix[[4-9]]*)
  3733. - if test "$host_cpu" = ia64; then
  3734. - # On IA64, the linker does run time linking by default, so we don't
  3735. - # have to do anything special.
  3736. - aix_use_runtimelinking=no
  3737. - exp_sym_flag='-Bexport'
  3738. - no_entry_flag=""
  3739. - else
  3740. - aix_use_runtimelinking=no
  3741. -
  3742. - # Test if we are trying to use run time linking or normal
  3743. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3744. - # need to do runtime linking.
  3745. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3746. - for ld_flag in $LDFLAGS; do
  3747. - case $ld_flag in
  3748. - *-brtl*)
  3749. - aix_use_runtimelinking=yes
  3750. - break
  3751. - ;;
  3752. - esac
  3753. - done
  3754. - ;;
  3755. - esac
  3756. -
  3757. - exp_sym_flag='-bexport'
  3758. - no_entry_flag='-bnoentry'
  3759. - fi
  3760. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3761. + [Take the output of nm and produce a listing of raw symbols and C names])
  3762. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3763. + [Transform the output of nm in a proper C declaration])
  3764. +_LT_DECL([global_symbol_to_c_name_address],
  3765. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3766. + [Transform the output of nm in a C name address pair])
  3767. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3768. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3769. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3770. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3771. - # When large executables or shared objects are built, AIX ld can
  3772. - # have problems creating the table of contents. If linking a library
  3773. - # or program results in "error TOC overflow" add -mminimal-toc to
  3774. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3775. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3776. -
  3777. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3778. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3779. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3780. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3781. - if test "$GXX" = yes; then
  3782. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3783. - # We only want to do this on AIX 4.2 and lower, the check
  3784. - # below for broken collect2 doesn't work under 4.3+
  3785. - collect2name=`${CC} -print-prog-name=collect2`
  3786. - if test -f "$collect2name" && \
  3787. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3788. - then
  3789. - # We have reworked collect2
  3790. - :
  3791. - else
  3792. - # We have old collect2
  3793. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3794. - # It fails to find uninstalled libraries when the uninstalled
  3795. - # path is not listed in the libpath. Setting hardcode_minus_L
  3796. - # to unsupported forces relinking
  3797. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3798. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3799. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3800. - fi
  3801. - ;;
  3802. - esac
  3803. - shared_flag='-shared'
  3804. - if test "$aix_use_runtimelinking" = yes; then
  3805. - shared_flag="$shared_flag "'${wl}-G'
  3806. - fi
  3807. - else
  3808. - # not using gcc
  3809. - if test "$host_cpu" = ia64; then
  3810. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3811. - # chokes on -Wl,-G. The following line is correct:
  3812. - shared_flag='-G'
  3813. - else
  3814. - if test "$aix_use_runtimelinking" = yes; then
  3815. - shared_flag='${wl}-G'
  3816. - else
  3817. - shared_flag='${wl}-bM:SRE'
  3818. - fi
  3819. - fi
  3820. - fi
  3821. +# _LT_COMPILER_PIC([TAGNAME])
  3822. +# ---------------------------
  3823. +m4_defun([_LT_COMPILER_PIC],
  3824. +[m4_require([_LT_TAG_COMPILER])dnl
  3825. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3826. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3827. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3828. - # It seems that -bexpall does not export symbols beginning with
  3829. - # underscore (_), so it is better to generate a list of symbols to export.
  3830. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3831. - if test "$aix_use_runtimelinking" = yes; then
  3832. - # Warning - without using the other runtime loading flags (-brtl),
  3833. - # -berok will link without error, but may produce a broken library.
  3834. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3835. - # Determine the default libpath from the value encoded in an empty executable.
  3836. - _LT_AC_SYS_LIBPATH_AIX
  3837. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3838. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3839. +m4_if([$1], [CXX], [
  3840. + # C++ specific cases for pic, static, wl, etc.
  3841. + if test "$GXX" = yes; then
  3842. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3843. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3844. - _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"
  3845. - else
  3846. + case $host_os in
  3847. + aix*)
  3848. + # All AIX code is PIC.
  3849. if test "$host_cpu" = ia64; then
  3850. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3851. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3852. - _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"
  3853. - else
  3854. - # Determine the default libpath from the value encoded in an empty executable.
  3855. - _LT_AC_SYS_LIBPATH_AIX
  3856. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3857. - # Warning - without using the other run time loading flags,
  3858. - # -berok will link without error, but may produce a broken library.
  3859. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3860. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3861. - # Exported symbols can be pulled into shared objects from archives
  3862. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3863. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3864. - # This is similar to how AIX traditionally builds its shared libraries.
  3865. - _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'
  3866. + # AIX 5 now supports IA64 processor
  3867. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3868. fi
  3869. - fi
  3870. - ;;
  3871. -
  3872. - beos*)
  3873. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3874. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3875. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3876. - # support --undefined. This deserves some investigation. FIXME
  3877. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3878. - else
  3879. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3880. - fi
  3881. - ;;
  3882. -
  3883. - chorus*)
  3884. - case $cc_basename in
  3885. - *)
  3886. - # FIXME: insert proper C++ library support
  3887. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3888. - ;;
  3889. - esac
  3890. - ;;
  3891. + ;;
  3892. - cygwin* | mingw* | pw32*)
  3893. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3894. - # as there is no search path for DLLs.
  3895. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3896. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3897. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3898. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3899. -
  3900. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3901. - _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'
  3902. - # If the export-symbols file already is a .def file (1st line
  3903. - # is EXPORTS), use it as is; otherwise, prepend...
  3904. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3905. - cp $export_symbols $output_objdir/$soname.def;
  3906. - else
  3907. - echo EXPORTS > $output_objdir/$soname.def;
  3908. - cat $export_symbols >> $output_objdir/$soname.def;
  3909. - fi~
  3910. - $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'
  3911. - else
  3912. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3913. - fi
  3914. - ;;
  3915. - darwin* | rhapsody*)
  3916. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3917. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3918. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3919. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3920. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3921. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3922. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3923. - if test "$GXX" = yes ; then
  3924. - output_verbose_link_cmd='echo'
  3925. - _LT_AC_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}"
  3926. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3927. - _LT_AC_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}"
  3928. - _LT_AC_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}"
  3929. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3930. - _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${_lt_dsymutil}"
  3931. - _LT_AC_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}"
  3932. - fi
  3933. - else
  3934. - case $cc_basename in
  3935. - xlc*)
  3936. - output_verbose_link_cmd='echo'
  3937. - _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'
  3938. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3939. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3940. - _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}'
  3941. - _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}'
  3942. - ;;
  3943. - *)
  3944. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3945. - ;;
  3946. - esac
  3947. - fi
  3948. + amigaos*)
  3949. + case $host_cpu in
  3950. + powerpc)
  3951. + # see comment about AmigaOS4 .so support
  3952. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3953. + ;;
  3954. + m68k)
  3955. + # FIXME: we need at least 68020 code to build shared libraries, but
  3956. + # adding the `-m68020' flag to GCC prevents building anything better,
  3957. + # like `-m68040'.
  3958. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3959. ;;
  3960. + esac
  3961. + ;;
  3962. - dgux*)
  3963. - case $cc_basename in
  3964. - ec++*)
  3965. - # FIXME: insert proper C++ library support
  3966. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3967. - ;;
  3968. - ghcx*)
  3969. - # Green Hills C++ Compiler
  3970. - # FIXME: insert proper C++ library support
  3971. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3972. - ;;
  3973. - *)
  3974. - # FIXME: insert proper C++ library support
  3975. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3976. - ;;
  3977. - esac
  3978. - ;;
  3979. - freebsd[[12]]*)
  3980. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3981. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3982. - ;;
  3983. - freebsd-elf*)
  3984. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3985. - ;;
  3986. - freebsd* | dragonfly*)
  3987. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3988. - # conventions
  3989. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3990. - ;;
  3991. - gnu*)
  3992. - ;;
  3993. - hpux9*)
  3994. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3995. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3996. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3997. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3998. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3999. - # but as the default
  4000. - # location of the library.
  4001. -
  4002. - case $cc_basename in
  4003. - CC*)
  4004. - # FIXME: insert proper C++ library support
  4005. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4006. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4007. + # PIC is the default for these OSes.
  4008. ;;
  4009. - aCC*)
  4010. - _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'
  4011. - # Commands to make compiler produce verbose output that lists
  4012. - # what "hidden" libraries, object files and flags are used when
  4013. - # linking a shared library.
  4014. - #
  4015. - # There doesn't appear to be a way to prevent this compiler from
  4016. - # explicitly linking system object files so we need to strip them
  4017. - # from the output so that they don't get included in the library
  4018. - # dependencies.
  4019. - 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'
  4020. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4021. + # This hack is so that the source file can tell whether it is being
  4022. + # built for inclusion in a dll (and should export symbols for example).
  4023. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4024. + # (--disable-auto-import) libraries
  4025. + m4_if([$1], [GCJ], [],
  4026. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4027. ;;
  4028. - *)
  4029. - if test "$GXX" = yes; then
  4030. - _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'
  4031. - else
  4032. - # FIXME: insert proper C++ library support
  4033. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4034. + darwin* | rhapsody*)
  4035. + # PIC is the default on this platform
  4036. + # Common symbols not allowed in MH_DYLIB files
  4037. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4038. + ;;
  4039. + *djgpp*)
  4040. + # DJGPP does not support shared libraries at all
  4041. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4042. + ;;
  4043. + interix[[3-9]]*)
  4044. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4045. + # Instead, we relocate shared libraries at runtime.
  4046. + ;;
  4047. + sysv4*MP*)
  4048. + if test -d /usr/nec; then
  4049. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4050. fi
  4051. ;;
  4052. - esac
  4053. - ;;
  4054. - hpux10*|hpux11*)
  4055. - if test $with_gnu_ld = no; then
  4056. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4057. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4058. -
  4059. + hpux*)
  4060. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4061. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4062. + # sets the default TLS model and affects inlining.
  4063. case $host_cpu in
  4064. - hppa*64*|ia64*) ;;
  4065. + hppa*64*)
  4066. + ;;
  4067. *)
  4068. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4069. - ;;
  4070. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4071. + ;;
  4072. esac
  4073. - fi
  4074. - case $host_cpu in
  4075. - hppa*64*|ia64*)
  4076. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4077. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4078. + ;;
  4079. + *qnx* | *nto*)
  4080. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4081. + # it will coredump.
  4082. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4083. ;;
  4084. *)
  4085. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4086. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4087. - # but as the default
  4088. - # location of the library.
  4089. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4090. ;;
  4091. esac
  4092. -
  4093. - case $cc_basename in
  4094. - CC*)
  4095. - # FIXME: insert proper C++ library support
  4096. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4097. + else
  4098. + case $host_os in
  4099. + aix[[4-9]]*)
  4100. + # All AIX code is PIC.
  4101. + if test "$host_cpu" = ia64; then
  4102. + # AIX 5 now supports IA64 processor
  4103. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4104. + else
  4105. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4106. + fi
  4107. ;;
  4108. - aCC*)
  4109. - case $host_cpu in
  4110. - hppa*64*)
  4111. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4112. - ;;
  4113. - ia64*)
  4114. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4115. - ;;
  4116. - *)
  4117. - _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'
  4118. + chorus*)
  4119. + case $cc_basename in
  4120. + cxch68*)
  4121. + # Green Hills C++ Compiler
  4122. + # _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"
  4123. ;;
  4124. esac
  4125. - # Commands to make compiler produce verbose output that lists
  4126. - # what "hidden" libraries, object files and flags are used when
  4127. - # linking a shared library.
  4128. - #
  4129. - # There doesn't appear to be a way to prevent this compiler from
  4130. - # explicitly linking system object files so we need to strip them
  4131. - # from the output so that they don't get included in the library
  4132. - # dependencies.
  4133. - 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'
  4134. ;;
  4135. - *)
  4136. - if test "$GXX" = yes; then
  4137. - if test $with_gnu_ld = no; then
  4138. + dgux*)
  4139. + case $cc_basename in
  4140. + ec++*)
  4141. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4142. + ;;
  4143. + ghcx*)
  4144. + # Green Hills C++ Compiler
  4145. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4146. + ;;
  4147. + *)
  4148. + ;;
  4149. + esac
  4150. + ;;
  4151. + freebsd* | dragonfly*)
  4152. + # FreeBSD uses GNU C++
  4153. + ;;
  4154. + hpux9* | hpux10* | hpux11*)
  4155. + case $cc_basename in
  4156. + CC*)
  4157. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4158. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4159. + if test "$host_cpu" != ia64; then
  4160. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4161. + fi
  4162. + ;;
  4163. + aCC*)
  4164. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4165. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4166. case $host_cpu in
  4167. - hppa*64*)
  4168. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4169. - ;;
  4170. - ia64*)
  4171. - _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'
  4172. + hppa*64*|ia64*)
  4173. + # +Z the default
  4174. ;;
  4175. *)
  4176. - _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'
  4177. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4178. ;;
  4179. esac
  4180. - fi
  4181. - else
  4182. - # FIXME: insert proper C++ library support
  4183. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4184. - fi
  4185. - ;;
  4186. - esac
  4187. - ;;
  4188. - interix[[3-9]]*)
  4189. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4190. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4191. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4192. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4193. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4194. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4195. - # default) and relocated if they conflict, which is a slow very memory
  4196. - # consuming and fragmenting process. To avoid this, we pick a random,
  4197. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4198. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4199. - _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'
  4200. - _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'
  4201. - ;;
  4202. - irix5* | irix6*)
  4203. - case $cc_basename in
  4204. - CC*)
  4205. - # SGI C++
  4206. - _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'
  4207. -
  4208. - # Archives containing C++ object files must be created using
  4209. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4210. - # necessary to make sure instantiated templates are included
  4211. - # in the archive.
  4212. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4213. + ;;
  4214. + *)
  4215. + ;;
  4216. + esac
  4217. ;;
  4218. - *)
  4219. - if test "$GXX" = yes; then
  4220. - if test "$with_gnu_ld" = no; then
  4221. - _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'
  4222. - else
  4223. - _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'
  4224. - fi
  4225. - fi
  4226. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4227. + interix*)
  4228. + # This is c89, which is MS Visual C++ (no shared libs)
  4229. + # Anyone wants to do a port?
  4230. ;;
  4231. - esac
  4232. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4233. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4234. - ;;
  4235. - linux* | k*bsd*-gnu)
  4236. - case $cc_basename in
  4237. - KCC*)
  4238. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4239. -
  4240. - # KCC will only create a shared library if the output file
  4241. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4242. - # to its proper name (with version) after linking.
  4243. - _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'
  4244. - _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'
  4245. - # Commands to make compiler produce verbose output that lists
  4246. - # what "hidden" libraries, object files and flags are used when
  4247. - # linking a shared library.
  4248. - #
  4249. - # There doesn't appear to be a way to prevent this compiler from
  4250. - # explicitly linking system object files so we need to strip them
  4251. - # from the output so that they don't get included in the library
  4252. - # dependencies.
  4253. - 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'
  4254. -
  4255. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4256. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4257. -
  4258. - # Archives containing C++ object files must be created using
  4259. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4260. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4261. - ;;
  4262. - icpc*)
  4263. - # Intel C++
  4264. - with_gnu_ld=yes
  4265. - # version 8.0 and above of icpc choke on multiply defined symbols
  4266. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4267. - # earlier do not add the objects themselves.
  4268. - case `$CC -V 2>&1` in
  4269. - *"Version 7."*)
  4270. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4271. - _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'
  4272. - ;;
  4273. - *) # Version 8.0 or newer
  4274. - tmp_idyn=
  4275. - case $host_cpu in
  4276. - ia64*) tmp_idyn=' -i_dynamic';;
  4277. - esac
  4278. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4279. - _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'
  4280. - ;;
  4281. + irix5* | irix6* | nonstopux*)
  4282. + case $cc_basename in
  4283. + CC*)
  4284. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4285. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4286. + # CC pic flag -KPIC is the default.
  4287. + ;;
  4288. + *)
  4289. + ;;
  4290. esac
  4291. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4292. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4293. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4294. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4295. - ;;
  4296. - pgCC* | pgcpp*)
  4297. - # Portland Group C++ compiler
  4298. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4299. - _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'
  4300. -
  4301. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4302. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4303. - _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'
  4304. - ;;
  4305. - cxx*)
  4306. - # Compaq C++
  4307. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4308. - _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'
  4309. -
  4310. - runpath_var=LD_RUN_PATH
  4311. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4312. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4313. -
  4314. - # Commands to make compiler produce verbose output that lists
  4315. - # what "hidden" libraries, object files and flags are used when
  4316. - # linking a shared library.
  4317. - #
  4318. - # There doesn't appear to be a way to prevent this compiler from
  4319. - # explicitly linking system object files so we need to strip them
  4320. - # from the output so that they don't get included in the library
  4321. - # dependencies.
  4322. - 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'
  4323. ;;
  4324. - *)
  4325. - case `$CC -V 2>&1 | sed 5q` in
  4326. - *Sun\ C*)
  4327. - # Sun C++ 5.9
  4328. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4329. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4330. - _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'
  4331. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4332. - _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'
  4333. -
  4334. - # Not sure whether something based on
  4335. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4336. - # would be better.
  4337. - output_verbose_link_cmd='echo'
  4338. -
  4339. - # Archives containing C++ object files must be created using
  4340. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4341. - # necessary to make sure instantiated templates are included
  4342. - # in the archive.
  4343. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4344. - ;;
  4345. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4346. + case $cc_basename in
  4347. + KCC*)
  4348. + # KAI C++ Compiler
  4349. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4350. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4351. + ;;
  4352. + ecpc* )
  4353. + # old Intel C++ for x86_64 which still supported -KPIC.
  4354. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4355. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4356. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4357. + ;;
  4358. + icpc* )
  4359. + # Intel C++, used to be incompatible with GCC.
  4360. + # ICC 10 doesn't accept -KPIC any more.
  4361. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4362. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4363. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4364. + ;;
  4365. + pgCC* | pgcpp*)
  4366. + # Portland Group C++ compiler
  4367. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4368. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4369. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4370. + ;;
  4371. + cxx*)
  4372. + # Compaq C++
  4373. + # Make sure the PIC flag is empty. It appears that all Alpha
  4374. + # Linux and Compaq Tru64 Unix objects are PIC.
  4375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4376. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4377. + ;;
  4378. + xlc* | xlC*)
  4379. + # IBM XL 8.0 on PPC
  4380. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4381. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4382. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4383. + ;;
  4384. + *)
  4385. + case `$CC -V 2>&1 | sed 5q` in
  4386. + *Sun\ C*)
  4387. + # Sun C++ 5.9
  4388. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4389. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4390. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4391. + ;;
  4392. + esac
  4393. + ;;
  4394. esac
  4395. ;;
  4396. - esac
  4397. - ;;
  4398. - lynxos*)
  4399. - # FIXME: insert proper C++ library support
  4400. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4401. - ;;
  4402. - m88k*)
  4403. - # FIXME: insert proper C++ library support
  4404. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4405. - ;;
  4406. - mvs*)
  4407. - case $cc_basename in
  4408. - cxx*)
  4409. - # FIXME: insert proper C++ library support
  4410. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4411. - ;;
  4412. - *)
  4413. - # FIXME: insert proper C++ library support
  4414. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4415. - ;;
  4416. - esac
  4417. - ;;
  4418. - netbsd* | netbsdelf*-gnu)
  4419. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4420. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4421. - wlarc=
  4422. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4423. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4424. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4425. - fi
  4426. - # Workaround some broken pre-1.5 toolchains
  4427. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4428. - ;;
  4429. - openbsd2*)
  4430. - # C++ shared libraries are fairly broken
  4431. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4432. - ;;
  4433. - openbsd*)
  4434. - if test -f /usr/libexec/ld.so; then
  4435. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4436. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4437. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4438. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4439. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4440. - _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'
  4441. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4442. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4443. - fi
  4444. - output_verbose_link_cmd='echo'
  4445. - else
  4446. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4447. - fi
  4448. - ;;
  4449. - osf3*)
  4450. - case $cc_basename in
  4451. - KCC*)
  4452. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4453. -
  4454. - # KCC will only create a shared library if the output file
  4455. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4456. - # to its proper name (with version) after linking.
  4457. - _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'
  4458. -
  4459. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4460. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4461. -
  4462. - # Archives containing C++ object files must be created using
  4463. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4464. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4465. -
  4466. - ;;
  4467. - RCC*)
  4468. - # Rational C++ 2.4.1
  4469. - # FIXME: insert proper C++ library support
  4470. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4471. - ;;
  4472. - cxx*)
  4473. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4474. - _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'
  4475. -
  4476. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4477. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4478. -
  4479. - # Commands to make compiler produce verbose output that lists
  4480. - # what "hidden" libraries, object files and flags are used when
  4481. - # linking a shared library.
  4482. - #
  4483. - # There doesn't appear to be a way to prevent this compiler from
  4484. - # explicitly linking system object files so we need to strip them
  4485. - # from the output so that they don't get included in the library
  4486. - # dependencies.
  4487. - 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'
  4488. + lynxos*)
  4489. ;;
  4490. - *)
  4491. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4492. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4493. - _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'
  4494. -
  4495. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4496. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4497. -
  4498. - # Commands to make compiler produce verbose output that lists
  4499. - # what "hidden" libraries, object files and flags are used when
  4500. - # linking a shared library.
  4501. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4502. -
  4503. - else
  4504. - # FIXME: insert proper C++ library support
  4505. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4506. - fi
  4507. + m88k*)
  4508. ;;
  4509. - esac
  4510. - ;;
  4511. - osf4* | osf5*)
  4512. - case $cc_basename in
  4513. - KCC*)
  4514. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4515. -
  4516. - # KCC will only create a shared library if the output file
  4517. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4518. - # to its proper name (with version) after linking.
  4519. - _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'
  4520. -
  4521. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4522. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4523. -
  4524. - # Archives containing C++ object files must be created using
  4525. - # the KAI C++ compiler.
  4526. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4527. - ;;
  4528. - RCC*)
  4529. - # Rational C++ 2.4.1
  4530. - # FIXME: insert proper C++ library support
  4531. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4532. - ;;
  4533. - cxx*)
  4534. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4535. - _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'
  4536. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4537. - echo "-hidden">> $lib.exp~
  4538. - $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~
  4539. - $rm $lib.exp'
  4540. -
  4541. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4542. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4543. -
  4544. - # Commands to make compiler produce verbose output that lists
  4545. - # what "hidden" libraries, object files and flags are used when
  4546. - # linking a shared library.
  4547. - #
  4548. - # There doesn't appear to be a way to prevent this compiler from
  4549. - # explicitly linking system object files so we need to strip them
  4550. - # from the output so that they don't get included in the library
  4551. - # dependencies.
  4552. - 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'
  4553. + mvs*)
  4554. + case $cc_basename in
  4555. + cxx*)
  4556. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4557. + ;;
  4558. + *)
  4559. + ;;
  4560. + esac
  4561. ;;
  4562. - *)
  4563. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4564. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4565. - _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'
  4566. -
  4567. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4568. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4569. -
  4570. - # Commands to make compiler produce verbose output that lists
  4571. - # what "hidden" libraries, object files and flags are used when
  4572. - # linking a shared library.
  4573. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4574. -
  4575. - else
  4576. - # FIXME: insert proper C++ library support
  4577. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4578. - fi
  4579. + netbsd* | netbsdelf*-gnu)
  4580. ;;
  4581. - esac
  4582. - ;;
  4583. - psos*)
  4584. - # FIXME: insert proper C++ library support
  4585. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4586. - ;;
  4587. - sunos4*)
  4588. - case $cc_basename in
  4589. - CC*)
  4590. - # Sun C++ 4.x
  4591. - # FIXME: insert proper C++ library support
  4592. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4593. - ;;
  4594. - lcc*)
  4595. - # Lucid
  4596. - # FIXME: insert proper C++ library support
  4597. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4598. + *qnx* | *nto*)
  4599. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4600. + # it will coredump.
  4601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4602. + ;;
  4603. + osf3* | osf4* | osf5*)
  4604. + case $cc_basename in
  4605. + KCC*)
  4606. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4607. + ;;
  4608. + RCC*)
  4609. + # Rational C++ 2.4.1
  4610. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4611. + ;;
  4612. + cxx*)
  4613. + # Digital/Compaq C++
  4614. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4615. + # Make sure the PIC flag is empty. It appears that all Alpha
  4616. + # Linux and Compaq Tru64 Unix objects are PIC.
  4617. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4618. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4619. + ;;
  4620. + *)
  4621. + ;;
  4622. + esac
  4623. ;;
  4624. - *)
  4625. - # FIXME: insert proper C++ library support
  4626. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4627. + psos*)
  4628. ;;
  4629. - esac
  4630. - ;;
  4631. - solaris*)
  4632. - case $cc_basename in
  4633. - CC*)
  4634. - # Sun C++ 4.2, 5.x and Centerline C++
  4635. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4636. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4637. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4638. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4639. - $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'
  4640. -
  4641. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4642. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4643. - case $host_os in
  4644. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4645. + solaris*)
  4646. + case $cc_basename in
  4647. + CC*)
  4648. + # Sun C++ 4.2, 5.x and Centerline C++
  4649. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4650. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4651. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4652. + ;;
  4653. + gcx*)
  4654. + # Green Hills C++ Compiler
  4655. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4656. + ;;
  4657. *)
  4658. - # The compiler driver will combine and reorder linker options,
  4659. - # but understands `-z linker_flag'.
  4660. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4661. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4662. ;;
  4663. esac
  4664. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4665. -
  4666. - output_verbose_link_cmd='echo'
  4667. -
  4668. - # Archives containing C++ object files must be created using
  4669. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4670. - # necessary to make sure instantiated templates are included
  4671. - # in the archive.
  4672. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4673. - ;;
  4674. - gcx*)
  4675. - # Green Hills C++ Compiler
  4676. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4677. -
  4678. - # The C++ compiler must be used to create the archive.
  4679. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4680. ;;
  4681. - *)
  4682. - # GNU C++ compiler with Solaris linker
  4683. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4684. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4685. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4686. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4687. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4688. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4689. -
  4690. - # Commands to make compiler produce verbose output that lists
  4691. - # what "hidden" libraries, object files and flags are used when
  4692. - # linking a shared library.
  4693. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4694. - else
  4695. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4696. - # platform.
  4697. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4698. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4699. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4700. -
  4701. - # Commands to make compiler produce verbose output that lists
  4702. - # what "hidden" libraries, object files and flags are used when
  4703. - # linking a shared library.
  4704. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4705. - fi
  4706. -
  4707. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4708. - case $host_os in
  4709. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4710. + sunos4*)
  4711. + case $cc_basename in
  4712. + CC*)
  4713. + # Sun C++ 4.x
  4714. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4715. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4716. + ;;
  4717. + lcc*)
  4718. + # Lucid
  4719. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4720. + ;;
  4721. *)
  4722. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4723. ;;
  4724. - esac
  4725. - fi
  4726. - ;;
  4727. - esac
  4728. - ;;
  4729. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4730. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4731. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4732. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4733. - runpath_var='LD_RUN_PATH'
  4734. -
  4735. - case $cc_basename in
  4736. - CC*)
  4737. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4738. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4739. - ;;
  4740. - *)
  4741. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4742. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4743. + esac
  4744. ;;
  4745. - esac
  4746. - ;;
  4747. - sysv5* | sco3.2v5* | sco5v6*)
  4748. - # Note: We can NOT use -z defs as we might desire, because we do not
  4749. - # link with -lc, and that would cause any symbols used from libc to
  4750. - # always be unresolved, which means just about no library would
  4751. - # ever link correctly. If we're not using GNU ld we use -z text
  4752. - # though, which does catch some bad symbols but isn't as heavy-handed
  4753. - # as -z defs.
  4754. - # For security reasons, it is highly recommended that you always
  4755. - # use absolute paths for naming shared libraries, and exclude the
  4756. - # DT_RUNPATH tag from executables and libraries. But doing so
  4757. - # requires that you compile everything twice, which is a pain.
  4758. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4759. - # non-empty value in the environment. Most likely only useful for
  4760. - # creating official distributions of packages.
  4761. - # This is a hack until libtool officially supports absolute path
  4762. - # names for shared libraries.
  4763. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4764. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4765. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4766. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4767. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4768. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4769. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4770. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4771. - runpath_var='LD_RUN_PATH'
  4772. -
  4773. - case $cc_basename in
  4774. - CC*)
  4775. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4776. - _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'
  4777. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4778. + case $cc_basename in
  4779. + CC*)
  4780. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4781. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4782. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4783. + ;;
  4784. + esac
  4785. ;;
  4786. - *)
  4787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4788. - _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'
  4789. + tandem*)
  4790. + case $cc_basename in
  4791. + NCC*)
  4792. + # NonStop-UX NCC 3.20
  4793. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4794. + ;;
  4795. + *)
  4796. + ;;
  4797. + esac
  4798. ;;
  4799. - esac
  4800. - ;;
  4801. - tandem*)
  4802. - case $cc_basename in
  4803. - NCC*)
  4804. - # NonStop-UX NCC 3.20
  4805. - # FIXME: insert proper C++ library support
  4806. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4807. + vxworks*)
  4808. ;;
  4809. *)
  4810. - # FIXME: insert proper C++ library support
  4811. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4812. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4813. ;;
  4814. esac
  4815. - ;;
  4816. - vxworks*)
  4817. - # FIXME: insert proper C++ library support
  4818. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4819. - ;;
  4820. - *)
  4821. - # FIXME: insert proper C++ library support
  4822. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4823. - ;;
  4824. -esac
  4825. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4826. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4827. -
  4828. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4829. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4830. + fi
  4831. +],
  4832. +[
  4833. + if test "$GCC" = yes; then
  4834. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4835. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4836. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4837. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4838. -AC_LIBTOOL_PROG_CC_C_O($1)
  4839. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4840. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4841. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4842. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4843. + case $host_os in
  4844. + aix*)
  4845. + # All AIX code is PIC.
  4846. + if test "$host_cpu" = ia64; then
  4847. + # AIX 5 now supports IA64 processor
  4848. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4849. + fi
  4850. + ;;
  4851. -AC_LIBTOOL_CONFIG($1)
  4852. + amigaos*)
  4853. + case $host_cpu in
  4854. + powerpc)
  4855. + # see comment about AmigaOS4 .so support
  4856. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4857. + ;;
  4858. + m68k)
  4859. + # FIXME: we need at least 68020 code to build shared libraries, but
  4860. + # adding the `-m68020' flag to GCC prevents building anything better,
  4861. + # like `-m68040'.
  4862. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4863. + ;;
  4864. + esac
  4865. + ;;
  4866. -AC_LANG_POP
  4867. -CC=$lt_save_CC
  4868. -LDCXX=$LD
  4869. -LD=$lt_save_LD
  4870. -GCC=$lt_save_GCC
  4871. -with_gnu_ldcxx=$with_gnu_ld
  4872. -with_gnu_ld=$lt_save_with_gnu_ld
  4873. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4874. -lt_cv_path_LD=$lt_save_path_LD
  4875. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4876. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4877. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4878. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4879. + # PIC is the default for these OSes.
  4880. + ;;
  4881. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4882. -# ------------------------------------
  4883. -# Figure out "hidden" library dependencies from verbose
  4884. -# compiler output when linking a shared library.
  4885. -# Parse the compiler output and extract the necessary
  4886. -# objects, libraries and library flags.
  4887. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4888. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4889. -dnl we can't use the lt_simple_compile_test_code here,
  4890. -dnl because it contains code intended for an executable,
  4891. -dnl not a library. It's possible we should let each
  4892. -dnl tag define a new lt_????_link_test_code variable,
  4893. -dnl but it's only used here...
  4894. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4895. -int a;
  4896. -void foo (void) { a = 0; }
  4897. -EOF
  4898. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4899. -class Foo
  4900. -{
  4901. -public:
  4902. - Foo (void) { a = 0; }
  4903. -private:
  4904. - int a;
  4905. -};
  4906. -EOF
  4907. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4908. - subroutine foo
  4909. - implicit none
  4910. - integer*4 a
  4911. - a=0
  4912. - return
  4913. - end
  4914. -EOF
  4915. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4916. -public class foo {
  4917. - private int a;
  4918. - public void bar (void) {
  4919. - a = 0;
  4920. - }
  4921. -};
  4922. -EOF
  4923. -])
  4924. -dnl Parse the compiler output and extract the necessary
  4925. -dnl objects, libraries and library flags.
  4926. -if AC_TRY_EVAL(ac_compile); then
  4927. - # Parse the compiler output and extract the necessary
  4928. - # objects, libraries and library flags.
  4929. -
  4930. - # Sentinel used to keep track of whether or not we are before
  4931. - # the conftest object file.
  4932. - pre_test_object_deps_done=no
  4933. -
  4934. - # The `*' in the case matches for architectures that use `case' in
  4935. - # $output_verbose_cmd can trigger glob expansion during the loop
  4936. - # eval without this substitution.
  4937. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4938. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4939. + # This hack is so that the source file can tell whether it is being
  4940. + # built for inclusion in a dll (and should export symbols for example).
  4941. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4942. + # (--disable-auto-import) libraries
  4943. + m4_if([$1], [GCJ], [],
  4944. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4945. + ;;
  4946. - for p in `eval $output_verbose_link_cmd`; do
  4947. - case $p in
  4948. + darwin* | rhapsody*)
  4949. + # PIC is the default on this platform
  4950. + # Common symbols not allowed in MH_DYLIB files
  4951. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4952. + ;;
  4953. - -L* | -R* | -l*)
  4954. - # Some compilers place space between "-{L,R}" and the path.
  4955. - # Remove the space.
  4956. - if test $p = "-L" \
  4957. - || test $p = "-R"; then
  4958. - prev=$p
  4959. - continue
  4960. - else
  4961. - prev=
  4962. - fi
  4963. + hpux*)
  4964. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4965. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4966. + # sets the default TLS model and affects inlining.
  4967. + case $host_cpu in
  4968. + hppa*64*)
  4969. + # +Z the default
  4970. + ;;
  4971. + *)
  4972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4973. + ;;
  4974. + esac
  4975. + ;;
  4976. - if test "$pre_test_object_deps_done" = no; then
  4977. - case $p in
  4978. - -L* | -R*)
  4979. - # Internal compiler library paths should come after those
  4980. - # provided the user. The postdeps already come after the
  4981. - # user supplied libs so there is no need to process them.
  4982. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  4983. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  4984. - else
  4985. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  4986. - fi
  4987. - ;;
  4988. - # The "-l" case would never come before the object being
  4989. - # linked, so don't bother handling this case.
  4990. - esac
  4991. - else
  4992. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  4993. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  4994. - else
  4995. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  4996. - fi
  4997. - fi
  4998. - ;;
  4999. + interix[[3-9]]*)
  5000. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5001. + # Instead, we relocate shared libraries at runtime.
  5002. + ;;
  5003. - *.$objext)
  5004. - # This assumes that the test object file only shows up
  5005. - # once in the compiler output.
  5006. - if test "$p" = "conftest.$objext"; then
  5007. - pre_test_object_deps_done=yes
  5008. - continue
  5009. - fi
  5010. + msdosdjgpp*)
  5011. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5012. + # on systems that don't support them.
  5013. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5014. + enable_shared=no
  5015. + ;;
  5016. - if test "$pre_test_object_deps_done" = no; then
  5017. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5018. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5019. - else
  5020. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5021. - fi
  5022. - else
  5023. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5024. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5025. - else
  5026. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5027. - fi
  5028. - fi
  5029. - ;;
  5030. + *nto* | *qnx*)
  5031. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5032. + # it will coredump.
  5033. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5034. + ;;
  5035. - *) ;; # Ignore the rest.
  5036. + sysv4*MP*)
  5037. + if test -d /usr/nec; then
  5038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5039. + fi
  5040. + ;;
  5041. + *)
  5042. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5043. + ;;
  5044. esac
  5045. - done
  5046. + else
  5047. + # PORTME Check for flag to pass linker flags through the system compiler.
  5048. + case $host_os in
  5049. + aix*)
  5050. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5051. + if test "$host_cpu" = ia64; then
  5052. + # AIX 5 now supports IA64 processor
  5053. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5054. + else
  5055. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5056. + fi
  5057. + ;;
  5058. - # Clean up.
  5059. - rm -f a.out a.exe
  5060. -else
  5061. - echo "libtool.m4: error: problem compiling $1 test program"
  5062. -fi
  5063. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5064. + # This hack is so that the source file can tell whether it is being
  5065. + # built for inclusion in a dll (and should export symbols for example).
  5066. + m4_if([$1], [GCJ], [],
  5067. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5068. + ;;
  5069. -$rm -f confest.$objext
  5070. + hpux9* | hpux10* | hpux11*)
  5071. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5072. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5073. + # not for PA HP-UX.
  5074. + case $host_cpu in
  5075. + hppa*64*|ia64*)
  5076. + # +Z the default
  5077. + ;;
  5078. + *)
  5079. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5080. + ;;
  5081. + esac
  5082. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5083. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5084. + ;;
  5085. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  5086. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5087. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5088. -fi
  5089. + irix5* | irix6* | nonstopux*)
  5090. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5091. + # PIC (with -KPIC) is the default.
  5092. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5093. + ;;
  5094. -# PORTME: override above test on systems where it is broken
  5095. -ifelse([$1],[CXX],
  5096. -[case $host_os in
  5097. -interix[[3-9]]*)
  5098. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5099. - # hack all around it, let's just trust "g++" to DTRT.
  5100. - _LT_AC_TAGVAR(predep_objects,$1)=
  5101. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5102. - _LT_AC_TAGVAR(postdeps,$1)=
  5103. - ;;
  5104. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5105. + case $cc_basename in
  5106. + # old Intel for x86_64 which still supported -KPIC.
  5107. + ecc*)
  5108. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5109. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5110. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5111. + ;;
  5112. + # icc used to be incompatible with GCC.
  5113. + # ICC 10 doesn't accept -KPIC any more.
  5114. + icc* | ifort*)
  5115. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5116. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5118. + ;;
  5119. + # Lahey Fortran 8.1.
  5120. + lf95*)
  5121. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5122. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5123. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5124. + ;;
  5125. + pgcc* | pgf77* | pgf90* | pgf95*)
  5126. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5127. + # which looks to be a dead project)
  5128. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5129. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5130. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5131. + ;;
  5132. + ccc*)
  5133. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5134. + # All Alpha code is PIC.
  5135. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5136. + ;;
  5137. + xl*)
  5138. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5139. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5140. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5141. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5142. + ;;
  5143. + *)
  5144. + case `$CC -V 2>&1 | sed 5q` in
  5145. + *Sun\ C*)
  5146. + # Sun C 5.9
  5147. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5148. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5149. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5150. + ;;
  5151. + *Sun\ F*)
  5152. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5153. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5154. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5155. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5156. + ;;
  5157. + esac
  5158. + ;;
  5159. + esac
  5160. + ;;
  5161. -linux*)
  5162. - case `$CC -V 2>&1 | sed 5q` in
  5163. - *Sun\ C*)
  5164. - # Sun C++ 5.9
  5165. - #
  5166. - # The more standards-conforming stlport4 library is
  5167. - # incompatible with the Cstd library. Avoid specifying
  5168. - # it if it's in CXXFLAGS. Ignore libCrun as
  5169. - # -library=stlport4 depends on it.
  5170. - case " $CXX $CXXFLAGS " in
  5171. - *" -library=stlport4 "*)
  5172. - solaris_use_stlport4=yes
  5173. + newsos6)
  5174. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5175. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5176. ;;
  5177. - esac
  5178. - if test "$solaris_use_stlport4" != yes; then
  5179. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5180. - fi
  5181. - ;;
  5182. - esac
  5183. - ;;
  5184. -solaris*)
  5185. - case $cc_basename in
  5186. - CC*)
  5187. - # The more standards-conforming stlport4 library is
  5188. - # incompatible with the Cstd library. Avoid specifying
  5189. - # it if it's in CXXFLAGS. Ignore libCrun as
  5190. - # -library=stlport4 depends on it.
  5191. - case " $CXX $CXXFLAGS " in
  5192. - *" -library=stlport4 "*)
  5193. - solaris_use_stlport4=yes
  5194. + *nto* | *qnx*)
  5195. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5196. + # it will coredump.
  5197. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5198. ;;
  5199. - esac
  5200. - # Adding this requires a known-good setup of shared libraries for
  5201. - # Sun compiler versions before 5.6, else PIC objects from an old
  5202. - # archive will be linked into the output, leading to subtle bugs.
  5203. - if test "$solaris_use_stlport4" != yes; then
  5204. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5205. - fi
  5206. - ;;
  5207. - esac
  5208. - ;;
  5209. -esac
  5210. -])
  5211. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5212. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5213. -esac
  5214. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5215. + osf3* | osf4* | osf5*)
  5216. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5217. + # All OSF/1 code is PIC.
  5218. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5219. + ;;
  5220. -# AC_LIBTOOL_LANG_F77_CONFIG
  5221. -# --------------------------
  5222. -# Ensure that the configuration vars for the C compiler are
  5223. -# suitably defined. Those variables are subsequently used by
  5224. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5225. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5226. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5227. -[AC_REQUIRE([AC_PROG_F77])
  5228. -AC_LANG_PUSH(Fortran 77)
  5229. + rdos*)
  5230. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5231. + ;;
  5232. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5233. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5234. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5235. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5236. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5237. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5238. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5239. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5240. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5241. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5242. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5243. -_LT_AC_TAGVAR(module_cmds, $1)=
  5244. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5245. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5246. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5247. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5248. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5249. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5250. + solaris*)
  5251. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5252. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5253. + case $cc_basename in
  5254. + f77* | f90* | f95*)
  5255. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5256. + *)
  5257. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5258. + esac
  5259. + ;;
  5260. -# Source file extension for f77 test sources.
  5261. -ac_ext=f
  5262. + sunos4*)
  5263. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5265. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5266. + ;;
  5267. -# Object file extension for compiled f77 test sources.
  5268. -objext=o
  5269. -_LT_AC_TAGVAR(objext, $1)=$objext
  5270. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5271. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5272. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5273. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5274. + ;;
  5275. -# Code to be used in simple compile tests
  5276. -lt_simple_compile_test_code="\
  5277. - subroutine t
  5278. - return
  5279. - end
  5280. -"
  5281. + sysv4*MP*)
  5282. + if test -d /usr/nec ;then
  5283. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5284. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5285. + fi
  5286. + ;;
  5287. -# Code to be used in simple link tests
  5288. -lt_simple_link_test_code="\
  5289. - program t
  5290. - end
  5291. -"
  5292. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5293. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5294. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5295. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5296. + ;;
  5297. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5298. -_LT_AC_SYS_COMPILER
  5299. + unicos*)
  5300. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5301. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5302. + ;;
  5303. -# save warnings/boilerplate of simple test code
  5304. -_LT_COMPILER_BOILERPLATE
  5305. -_LT_LINKER_BOILERPLATE
  5306. + uts4*)
  5307. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5308. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5309. + ;;
  5310. -# Allow CC to be a program name with arguments.
  5311. -lt_save_CC="$CC"
  5312. -CC=${F77-"f77"}
  5313. -compiler=$CC
  5314. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5315. -_LT_CC_BASENAME([$compiler])
  5316. + *)
  5317. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5318. + ;;
  5319. + esac
  5320. + fi
  5321. +])
  5322. +case $host_os in
  5323. + # For platforms which do not support PIC, -DPIC is meaningless:
  5324. + *djgpp*)
  5325. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5326. + ;;
  5327. + *)
  5328. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5329. + ;;
  5330. +esac
  5331. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5332. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5333. + [How to pass a linker flag through the compiler])
  5334. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5335. -AC_MSG_RESULT([$can_build_shared])
  5336. +#
  5337. +# Check to make sure the PIC flag actually works.
  5338. +#
  5339. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5340. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5341. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5342. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5343. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5344. + "" | " "*) ;;
  5345. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5346. + esac],
  5347. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5348. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5349. +fi
  5350. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5351. + [Additional compiler flags for building library objects])
  5352. +
  5353. +#
  5354. +# Check to make sure the static flag actually works.
  5355. +#
  5356. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5357. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5358. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5359. + $lt_tmp_static_flag,
  5360. + [],
  5361. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5362. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5363. + [Compiler flag to prevent dynamic linking])
  5364. +])# _LT_COMPILER_PIC
  5365. -AC_MSG_CHECKING([whether to build shared libraries])
  5366. -test "$can_build_shared" = "no" && enable_shared=no
  5367. -# On AIX, shared libraries and static libraries use the same namespace, and
  5368. -# are all built from PIC.
  5369. -case $host_os in
  5370. -aix3*)
  5371. - test "$enable_shared" = yes && enable_static=no
  5372. - if test -n "$RANLIB"; then
  5373. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5374. - postinstall_cmds='$RANLIB $lib'
  5375. - fi
  5376. +# _LT_LINKER_SHLIBS([TAGNAME])
  5377. +# ----------------------------
  5378. +# See if the linker supports building shared libraries.
  5379. +m4_defun([_LT_LINKER_SHLIBS],
  5380. +[AC_REQUIRE([LT_PATH_LD])dnl
  5381. +AC_REQUIRE([LT_PATH_NM])dnl
  5382. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5383. +m4_require([_LT_DECL_EGREP])dnl
  5384. +m4_require([_LT_DECL_SED])dnl
  5385. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5386. +m4_require([_LT_TAG_COMPILER])dnl
  5387. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5388. +m4_if([$1], [CXX], [
  5389. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5390. + case $host_os in
  5391. + aix[[4-9]]*)
  5392. + # If we're using GNU nm, then we don't want the "-C" option.
  5393. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5394. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5395. + _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'
  5396. + else
  5397. + _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'
  5398. + fi
  5399. + ;;
  5400. + pw32*)
  5401. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5402. ;;
  5403. -aix[[4-9]]*)
  5404. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5405. - test "$enable_shared" = yes && enable_static=no
  5406. - fi
  5407. + cygwin* | mingw* | cegcc*)
  5408. + _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'
  5409. ;;
  5410. -esac
  5411. -AC_MSG_RESULT([$enable_shared])
  5412. -
  5413. -AC_MSG_CHECKING([whether to build static libraries])
  5414. -# Make sure either enable_shared or enable_static is yes.
  5415. -test "$enable_shared" = yes || enable_static=yes
  5416. -AC_MSG_RESULT([$enable_static])
  5417. -
  5418. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5419. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5420. -
  5421. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5422. -AC_LIBTOOL_PROG_CC_C_O($1)
  5423. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5424. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5425. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5426. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5427. + linux* | k*bsd*-gnu)
  5428. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5429. + ;;
  5430. + *)
  5431. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5432. + ;;
  5433. + esac
  5434. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5435. +], [
  5436. + runpath_var=
  5437. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5438. + _LT_TAGVAR(always_export_symbols, $1)=no
  5439. + _LT_TAGVAR(archive_cmds, $1)=
  5440. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5441. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5442. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5443. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5444. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5445. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5446. + _LT_TAGVAR(hardcode_direct, $1)=no
  5447. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5448. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5449. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5450. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5451. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5452. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5453. + _LT_TAGVAR(inherit_rpath, $1)=no
  5454. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5455. + _LT_TAGVAR(module_cmds, $1)=
  5456. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5457. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5458. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5459. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5460. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5461. + # include_expsyms should be a list of space-separated symbols to be *always*
  5462. + # included in the symbol list
  5463. + _LT_TAGVAR(include_expsyms, $1)=
  5464. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5465. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5466. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5467. + # as well as any symbol that contains `d'.
  5468. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5469. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5470. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5471. + # the symbol is explicitly referenced. Since portable code cannot
  5472. + # rely on this symbol name, it's probably fine to never include it in
  5473. + # preloaded symbol tables.
  5474. + # Exclude shared library initialization/finalization symbols.
  5475. +dnl Note also adjust exclude_expsyms for C++ above.
  5476. + extract_expsyms_cmds=
  5477. -AC_LIBTOOL_CONFIG($1)
  5478. + case $host_os in
  5479. + cygwin* | mingw* | pw32* | cegcc*)
  5480. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5481. + # When not using gcc, we currently assume that we are using
  5482. + # Microsoft Visual C++.
  5483. + if test "$GCC" != yes; then
  5484. + with_gnu_ld=no
  5485. + fi
  5486. + ;;
  5487. + interix*)
  5488. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5489. + with_gnu_ld=yes
  5490. + ;;
  5491. + openbsd*)
  5492. + with_gnu_ld=no
  5493. + ;;
  5494. + linux* | k*bsd*-gnu)
  5495. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5496. + ;;
  5497. + esac
  5498. -AC_LANG_POP
  5499. -CC="$lt_save_CC"
  5500. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5501. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5502. + if test "$with_gnu_ld" = yes; then
  5503. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5504. + wlarc='${wl}'
  5505. + # Set some defaults for GNU ld with shared library support. These
  5506. + # are reset later if shared libraries are not supported. Putting them
  5507. + # here allows them to be overridden if necessary.
  5508. + runpath_var=LD_RUN_PATH
  5509. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5510. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5511. + # ancient GNU ld didn't support --whole-archive et. al.
  5512. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5513. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5514. + else
  5515. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5516. + fi
  5517. + supports_anon_versioning=no
  5518. + case `$LD -v 2>&1` in
  5519. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5520. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5521. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5522. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5523. + *\ 2.11.*) ;; # other 2.11 versions
  5524. + *) supports_anon_versioning=yes ;;
  5525. + esac
  5526. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5527. -# --------------------------
  5528. -# Ensure that the configuration vars for the C compiler are
  5529. -# suitably defined. Those variables are subsequently used by
  5530. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5531. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5532. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5533. -[AC_LANG_SAVE
  5534. + # See if GNU ld supports shared libraries.
  5535. + case $host_os in
  5536. + aix[[3-9]]*)
  5537. + # On AIX/PPC, the GNU linker is very broken
  5538. + if test "$host_cpu" != ia64; then
  5539. + _LT_TAGVAR(ld_shlibs, $1)=no
  5540. + cat <<_LT_EOF 1>&2
  5541. -# Source file extension for Java test sources.
  5542. -ac_ext=java
  5543. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5544. +*** to be unable to reliably create shared libraries on AIX.
  5545. +*** Therefore, libtool is disabling shared libraries support. If you
  5546. +*** really care for shared libraries, you may want to modify your PATH
  5547. +*** so that a non-GNU linker is found, and then restart.
  5548. -# Object file extension for compiled Java test sources.
  5549. -objext=o
  5550. -_LT_AC_TAGVAR(objext, $1)=$objext
  5551. +_LT_EOF
  5552. + fi
  5553. + ;;
  5554. -# Code to be used in simple compile tests
  5555. -lt_simple_compile_test_code="class foo {}"
  5556. + amigaos*)
  5557. + case $host_cpu in
  5558. + powerpc)
  5559. + # see comment about AmigaOS4 .so support
  5560. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5561. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5562. + ;;
  5563. + m68k)
  5564. + _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)'
  5565. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5566. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5567. + ;;
  5568. + esac
  5569. + ;;
  5570. -# Code to be used in simple link tests
  5571. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5572. + beos*)
  5573. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5574. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5575. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5576. + # support --undefined. This deserves some investigation. FIXME
  5577. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5578. + else
  5579. + _LT_TAGVAR(ld_shlibs, $1)=no
  5580. + fi
  5581. + ;;
  5582. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5583. -_LT_AC_SYS_COMPILER
  5584. + cygwin* | mingw* | pw32* | cegcc*)
  5585. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5586. + # as there is no search path for DLLs.
  5587. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5588. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5589. + _LT_TAGVAR(always_export_symbols, $1)=no
  5590. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5591. + _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'
  5592. -# save warnings/boilerplate of simple test code
  5593. -_LT_COMPILER_BOILERPLATE
  5594. -_LT_LINKER_BOILERPLATE
  5595. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5596. + _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'
  5597. + # If the export-symbols file already is a .def file (1st line
  5598. + # is EXPORTS), use it as is; otherwise, prepend...
  5599. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5600. + cp $export_symbols $output_objdir/$soname.def;
  5601. + else
  5602. + echo EXPORTS > $output_objdir/$soname.def;
  5603. + cat $export_symbols >> $output_objdir/$soname.def;
  5604. + fi~
  5605. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5606. + else
  5607. + _LT_TAGVAR(ld_shlibs, $1)=no
  5608. + fi
  5609. + ;;
  5610. -# Allow CC to be a program name with arguments.
  5611. -lt_save_CC="$CC"
  5612. -CC=${GCJ-"gcj"}
  5613. -compiler=$CC
  5614. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5615. -_LT_CC_BASENAME([$compiler])
  5616. + interix[[3-9]]*)
  5617. + _LT_TAGVAR(hardcode_direct, $1)=no
  5618. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5619. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5620. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5621. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5622. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5623. + # default) and relocated if they conflict, which is a slow very memory
  5624. + # consuming and fragmenting process. To avoid this, we pick a random,
  5625. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5626. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5627. + _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'
  5628. + _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'
  5629. + ;;
  5630. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5631. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5632. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5633. + tmp_diet=no
  5634. + if test "$host_os" = linux-dietlibc; then
  5635. + case $cc_basename in
  5636. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5637. + esac
  5638. + fi
  5639. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5640. + && test "$tmp_diet" = no
  5641. + then
  5642. + tmp_addflag=
  5643. + tmp_sharedflag='-shared'
  5644. + case $cc_basename,$host_cpu in
  5645. + pgcc*) # Portland Group C compiler
  5646. + _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'
  5647. + tmp_addflag=' $pic_flag'
  5648. + ;;
  5649. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5650. + _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'
  5651. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5652. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5653. + tmp_addflag=' -i_dynamic' ;;
  5654. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5655. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5656. + ifc* | ifort*) # Intel Fortran compiler
  5657. + tmp_addflag=' -nofor_main' ;;
  5658. + lf95*) # Lahey Fortran 8.1
  5659. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5660. + tmp_sharedflag='--shared' ;;
  5661. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5662. + tmp_sharedflag='-qmkshrobj'
  5663. + tmp_addflag= ;;
  5664. + esac
  5665. + case `$CC -V 2>&1 | sed 5q` in
  5666. + *Sun\ C*) # Sun C 5.9
  5667. + _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'
  5668. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5669. + tmp_sharedflag='-G' ;;
  5670. + *Sun\ F*) # Sun Fortran 8.3
  5671. + tmp_sharedflag='-G' ;;
  5672. + esac
  5673. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5674. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5675. + if test "x$supports_anon_versioning" = xyes; then
  5676. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5677. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5678. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5679. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5680. + fi
  5681. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5682. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5683. -AC_LIBTOOL_PROG_CC_C_O($1)
  5684. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5685. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5686. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5687. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5688. + case $cc_basename in
  5689. + xlf*)
  5690. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5691. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5692. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5693. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5694. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5695. + if test "x$supports_anon_versioning" = xyes; then
  5696. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5697. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5698. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5699. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5700. + fi
  5701. + ;;
  5702. + esac
  5703. + else
  5704. + _LT_TAGVAR(ld_shlibs, $1)=no
  5705. + fi
  5706. + ;;
  5707. -AC_LIBTOOL_CONFIG($1)
  5708. + netbsd* | netbsdelf*-gnu)
  5709. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5710. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5711. + wlarc=
  5712. + else
  5713. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5714. + _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'
  5715. + fi
  5716. + ;;
  5717. -AC_LANG_RESTORE
  5718. -CC="$lt_save_CC"
  5719. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5720. + solaris*)
  5721. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5722. + _LT_TAGVAR(ld_shlibs, $1)=no
  5723. + cat <<_LT_EOF 1>&2
  5724. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5725. +*** create shared libraries on Solaris systems. Therefore, libtool
  5726. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5727. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5728. +*** your PATH or compiler configuration so that the native linker is
  5729. +*** used, and then restart.
  5730. -# AC_LIBTOOL_LANG_RC_CONFIG
  5731. -# -------------------------
  5732. -# Ensure that the configuration vars for the Windows resource compiler are
  5733. -# suitably defined. Those variables are subsequently used by
  5734. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5735. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5736. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5737. -[AC_LANG_SAVE
  5738. +_LT_EOF
  5739. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5740. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5741. + _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'
  5742. + else
  5743. + _LT_TAGVAR(ld_shlibs, $1)=no
  5744. + fi
  5745. + ;;
  5746. -# Source file extension for RC test sources.
  5747. -ac_ext=rc
  5748. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5749. + case `$LD -v 2>&1` in
  5750. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5751. + _LT_TAGVAR(ld_shlibs, $1)=no
  5752. + cat <<_LT_EOF 1>&2
  5753. -# Object file extension for compiled RC test sources.
  5754. -objext=o
  5755. -_LT_AC_TAGVAR(objext, $1)=$objext
  5756. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5757. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5758. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5759. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5760. +*** your PATH or compiler configuration so that the native linker is
  5761. +*** used, and then restart.
  5762. -# Code to be used in simple compile tests
  5763. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5764. +_LT_EOF
  5765. + ;;
  5766. + *)
  5767. + # For security reasons, it is highly recommended that you always
  5768. + # use absolute paths for naming shared libraries, and exclude the
  5769. + # DT_RUNPATH tag from executables and libraries. But doing so
  5770. + # requires that you compile everything twice, which is a pain.
  5771. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5772. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5773. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5774. + _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'
  5775. + else
  5776. + _LT_TAGVAR(ld_shlibs, $1)=no
  5777. + fi
  5778. + ;;
  5779. + esac
  5780. + ;;
  5781. -# Code to be used in simple link tests
  5782. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5783. + sunos4*)
  5784. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5785. + wlarc=
  5786. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5787. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5788. + ;;
  5789. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5790. -_LT_AC_SYS_COMPILER
  5791. -
  5792. -# save warnings/boilerplate of simple test code
  5793. -_LT_COMPILER_BOILERPLATE
  5794. -_LT_LINKER_BOILERPLATE
  5795. -
  5796. -# Allow CC to be a program name with arguments.
  5797. -lt_save_CC="$CC"
  5798. -CC=${RC-"windres"}
  5799. -compiler=$CC
  5800. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5801. -_LT_CC_BASENAME([$compiler])
  5802. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5803. -
  5804. -AC_LIBTOOL_CONFIG($1)
  5805. -
  5806. -AC_LANG_RESTORE
  5807. -CC="$lt_save_CC"
  5808. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5809. -
  5810. -
  5811. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5812. -# ----------------------------
  5813. -# If TAGNAME is not passed, then create an initial libtool script
  5814. -# with a default configuration from the untagged config vars. Otherwise
  5815. -# add code to config.status for appending the configuration named by
  5816. -# TAGNAME from the matching tagged config vars.
  5817. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5818. -[# The else clause should only fire when bootstrapping the
  5819. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5820. -# with your package, and you will get complaints that there are
  5821. -# no rules to generate ltmain.sh.
  5822. -if test -f "$ltmain"; then
  5823. - # See if we are running on zsh, and set the options which allow our commands through
  5824. - # without removal of \ escapes.
  5825. - if test -n "${ZSH_VERSION+set}" ; then
  5826. - setopt NO_GLOB_SUBST
  5827. - fi
  5828. - # Now quote all the things that may contain metacharacters while being
  5829. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5830. - # variables and quote the copies for generation of the libtool script.
  5831. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5832. - SED SHELL STRIP \
  5833. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5834. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5835. - deplibs_check_method reload_flag reload_cmds need_locks \
  5836. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5837. - lt_cv_sys_global_symbol_to_c_name_address \
  5838. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5839. - old_postinstall_cmds old_postuninstall_cmds \
  5840. - _LT_AC_TAGVAR(compiler, $1) \
  5841. - _LT_AC_TAGVAR(CC, $1) \
  5842. - _LT_AC_TAGVAR(LD, $1) \
  5843. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5844. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5845. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5846. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5847. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5848. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5849. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5850. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5851. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5852. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5853. - _LT_AC_TAGVAR(predep_objects, $1) \
  5854. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5855. - _LT_AC_TAGVAR(predeps, $1) \
  5856. - _LT_AC_TAGVAR(postdeps, $1) \
  5857. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5858. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  5859. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5860. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5861. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5862. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5863. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5864. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5865. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5866. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5867. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5868. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5869. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5870. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5871. - _LT_AC_TAGVAR(module_cmds, $1) \
  5872. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5873. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5874. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5875. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5876. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5877. -
  5878. - case $var in
  5879. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5880. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5881. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5882. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5883. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5884. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5885. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5886. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5887. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5888. - postinstall_cmds | postuninstall_cmds | \
  5889. - old_postinstall_cmds | old_postuninstall_cmds | \
  5890. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5891. - # Double-quote double-evaled strings.
  5892. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5893. - ;;
  5894. *)
  5895. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5896. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5897. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5898. + _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'
  5899. + else
  5900. + _LT_TAGVAR(ld_shlibs, $1)=no
  5901. + fi
  5902. ;;
  5903. esac
  5904. - done
  5905. -
  5906. - case $lt_echo in
  5907. - *'\[$]0 --fallback-echo"')
  5908. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5909. - ;;
  5910. - esac
  5911. -ifelse([$1], [],
  5912. - [cfgfile="${ofile}T"
  5913. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5914. - $rm -f "$cfgfile"
  5915. - AC_MSG_NOTICE([creating $ofile])],
  5916. - [cfgfile="$ofile"])
  5917. -
  5918. - cat <<__EOF__ >> "$cfgfile"
  5919. -ifelse([$1], [],
  5920. -[#! $SHELL
  5921. -
  5922. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5923. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5924. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5925. -#
  5926. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5927. -# Free Software Foundation, Inc.
  5928. -#
  5929. -# This file is part of GNU Libtool:
  5930. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5931. -#
  5932. -# This program is free software; you can redistribute it and/or modify
  5933. -# it under the terms of the GNU General Public License as published by
  5934. -# the Free Software Foundation; either version 2 of the License, or
  5935. -# (at your option) any later version.
  5936. -#
  5937. -# This program is distributed in the hope that it will be useful, but
  5938. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  5939. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5940. -# General Public License for more details.
  5941. -#
  5942. -# You should have received a copy of the GNU General Public License
  5943. -# along with this program; if not, write to the Free Software
  5944. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  5945. -#
  5946. -# As a special exception to the GNU General Public License, if you
  5947. -# distribute this file as part of a program that contains a
  5948. -# configuration script generated by Autoconf, you may include it under
  5949. -# the same distribution terms that you use for the rest of that program.
  5950. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5951. + runpath_var=
  5952. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5953. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5954. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5955. + fi
  5956. + else
  5957. + # PORTME fill in a description of your system's linker (not GNU ld)
  5958. + case $host_os in
  5959. + aix3*)
  5960. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5961. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5962. + _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'
  5963. + # Note: this linker hardcodes the directories in LIBPATH if there
  5964. + # are no directories specified by -L.
  5965. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5966. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5967. + # Neither direct hardcoding nor static linking is supported with a
  5968. + # broken collect2.
  5969. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5970. + fi
  5971. + ;;
  5972. -# A sed program that does not truncate output.
  5973. -SED=$lt_SED
  5974. + aix[[4-9]]*)
  5975. + if test "$host_cpu" = ia64; then
  5976. + # On IA64, the linker does run time linking by default, so we don't
  5977. + # have to do anything special.
  5978. + aix_use_runtimelinking=no
  5979. + exp_sym_flag='-Bexport'
  5980. + no_entry_flag=""
  5981. + else
  5982. + # If we're using GNU nm, then we don't want the "-C" option.
  5983. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5984. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5985. + _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'
  5986. + else
  5987. + _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'
  5988. + fi
  5989. + aix_use_runtimelinking=no
  5990. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5991. -Xsed="$SED -e 1s/^X//"
  5992. + # Test if we are trying to use run time linking or normal
  5993. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5994. + # need to do runtime linking.
  5995. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5996. + for ld_flag in $LDFLAGS; do
  5997. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5998. + aix_use_runtimelinking=yes
  5999. + break
  6000. + fi
  6001. + done
  6002. + ;;
  6003. + esac
  6004. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6005. -# if CDPATH is set.
  6006. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6007. + exp_sym_flag='-bexport'
  6008. + no_entry_flag='-bnoentry'
  6009. + fi
  6010. -# The names of the tagged configurations supported by this script.
  6011. -available_tags=
  6012. + # When large executables or shared objects are built, AIX ld can
  6013. + # have problems creating the table of contents. If linking a library
  6014. + # or program results in "error TOC overflow" add -mminimal-toc to
  6015. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6016. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6017. -# ### BEGIN LIBTOOL CONFIG],
  6018. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6019. + _LT_TAGVAR(archive_cmds, $1)=''
  6020. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6021. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6022. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6023. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6024. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6025. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6026. + if test "$GCC" = yes; then
  6027. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6028. + # We only want to do this on AIX 4.2 and lower, the check
  6029. + # below for broken collect2 doesn't work under 4.3+
  6030. + collect2name=`${CC} -print-prog-name=collect2`
  6031. + if test -f "$collect2name" &&
  6032. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6033. + then
  6034. + # We have reworked collect2
  6035. + :
  6036. + else
  6037. + # We have old collect2
  6038. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6039. + # It fails to find uninstalled libraries when the uninstalled
  6040. + # path is not listed in the libpath. Setting hardcode_minus_L
  6041. + # to unsupported forces relinking
  6042. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6043. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6044. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6045. + fi
  6046. + ;;
  6047. + esac
  6048. + shared_flag='-shared'
  6049. + if test "$aix_use_runtimelinking" = yes; then
  6050. + shared_flag="$shared_flag "'${wl}-G'
  6051. + fi
  6052. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6053. + else
  6054. + # not using gcc
  6055. + if test "$host_cpu" = ia64; then
  6056. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6057. + # chokes on -Wl,-G. The following line is correct:
  6058. + shared_flag='-G'
  6059. + else
  6060. + if test "$aix_use_runtimelinking" = yes; then
  6061. + shared_flag='${wl}-G'
  6062. + else
  6063. + shared_flag='${wl}-bM:SRE'
  6064. + fi
  6065. + fi
  6066. + fi
  6067. -# Shell to use when invoking shell scripts.
  6068. -SHELL=$lt_SHELL
  6069. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6070. + # It seems that -bexpall does not export symbols beginning with
  6071. + # underscore (_), so it is better to generate a list of symbols to export.
  6072. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6073. + if test "$aix_use_runtimelinking" = yes; then
  6074. + # Warning - without using the other runtime loading flags (-brtl),
  6075. + # -berok will link without error, but may produce a broken library.
  6076. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6077. + # Determine the default libpath from the value encoded in an
  6078. + # empty executable.
  6079. + _LT_SYS_MODULE_PATH_AIX
  6080. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6081. + _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"
  6082. + else
  6083. + if test "$host_cpu" = ia64; then
  6084. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6085. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6086. + _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"
  6087. + else
  6088. + # Determine the default libpath from the value encoded in an
  6089. + # empty executable.
  6090. + _LT_SYS_MODULE_PATH_AIX
  6091. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6092. + # Warning - without using the other run time loading flags,
  6093. + # -berok will link without error, but may produce a broken library.
  6094. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6095. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6096. + # Exported symbols can be pulled into shared objects from archives
  6097. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6098. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6099. + # This is similar to how AIX traditionally builds its shared libraries.
  6100. + _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'
  6101. + fi
  6102. + fi
  6103. + ;;
  6104. -# Whether or not to build shared libraries.
  6105. -build_libtool_libs=$enable_shared
  6106. + amigaos*)
  6107. + case $host_cpu in
  6108. + powerpc)
  6109. + # see comment about AmigaOS4 .so support
  6110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6111. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6112. + ;;
  6113. + m68k)
  6114. + _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)'
  6115. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6116. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6117. + ;;
  6118. + esac
  6119. + ;;
  6120. -# Whether or not to build static libraries.
  6121. -build_old_libs=$enable_static
  6122. + bsdi[[45]]*)
  6123. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6124. + ;;
  6125. -# Whether or not to add -lc for building shared libraries.
  6126. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6127. + cygwin* | mingw* | pw32* | cegcc*)
  6128. + # When not using gcc, we currently assume that we are using
  6129. + # Microsoft Visual C++.
  6130. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6131. + # no search path for DLLs.
  6132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6133. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6134. + # Tell ltmain to make .lib files, not .a files.
  6135. + libext=lib
  6136. + # Tell ltmain to make .dll files, not .so files.
  6137. + shrext_cmds=".dll"
  6138. + # FIXME: Setting linknames here is a bad hack.
  6139. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6140. + # The linker will automatically build a .lib file if we build a DLL.
  6141. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6142. + # FIXME: Should let the user specify the lib program.
  6143. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6144. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6145. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6146. + ;;
  6147. -# Whether or not to disallow shared libs when runtime libs are static
  6148. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6149. + darwin* | rhapsody*)
  6150. + _LT_DARWIN_LINKER_FEATURES($1)
  6151. + ;;
  6152. -# Whether or not to optimize for fast installation.
  6153. -fast_install=$enable_fast_install
  6154. + dgux*)
  6155. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6156. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6157. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6158. + ;;
  6159. -# The host system.
  6160. -host_alias=$host_alias
  6161. -host=$host
  6162. -host_os=$host_os
  6163. + freebsd1*)
  6164. + _LT_TAGVAR(ld_shlibs, $1)=no
  6165. + ;;
  6166. -# The build system.
  6167. -build_alias=$build_alias
  6168. -build=$build
  6169. -build_os=$build_os
  6170. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6171. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6172. + # does not break anything, and helps significantly (at the cost of a little
  6173. + # extra space).
  6174. + freebsd2.2*)
  6175. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6176. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6177. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6178. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6179. + ;;
  6180. -# An echo program that does not interpret backslashes.
  6181. -echo=$lt_echo
  6182. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6183. + freebsd2*)
  6184. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6185. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6186. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6187. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6188. + ;;
  6189. -# The archiver.
  6190. -AR=$lt_AR
  6191. -AR_FLAGS=$lt_AR_FLAGS
  6192. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6193. + freebsd* | dragonfly*)
  6194. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6195. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6196. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6197. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6198. + ;;
  6199. -# A C compiler.
  6200. -LTCC=$lt_LTCC
  6201. + hpux9*)
  6202. + if test "$GCC" = yes; then
  6203. + _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'
  6204. + else
  6205. + _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'
  6206. + fi
  6207. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6208. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6209. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6210. -# LTCC compiler flags.
  6211. -LTCFLAGS=$lt_LTCFLAGS
  6212. + # hardcode_minus_L: Not really in the search PATH,
  6213. + # but as the default location of the library.
  6214. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6215. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6216. + ;;
  6217. -# A language-specific compiler.
  6218. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6219. + hpux10*)
  6220. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6221. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6222. + else
  6223. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6224. + fi
  6225. + if test "$with_gnu_ld" = no; then
  6226. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6227. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6228. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6229. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6230. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6231. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6232. + # hardcode_minus_L: Not really in the search PATH,
  6233. + # but as the default location of the library.
  6234. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6235. + fi
  6236. + ;;
  6237. -# Is the compiler the GNU C compiler?
  6238. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6239. + hpux11*)
  6240. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6241. + case $host_cpu in
  6242. + hppa*64*)
  6243. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6244. + ;;
  6245. + ia64*)
  6246. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6247. + ;;
  6248. + *)
  6249. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6250. + ;;
  6251. + esac
  6252. + else
  6253. + case $host_cpu in
  6254. + hppa*64*)
  6255. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6256. + ;;
  6257. + ia64*)
  6258. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6259. + ;;
  6260. + *)
  6261. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6262. + ;;
  6263. + esac
  6264. + fi
  6265. + if test "$with_gnu_ld" = no; then
  6266. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6267. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6268. -# An ERE matcher.
  6269. -EGREP=$lt_EGREP
  6270. + case $host_cpu in
  6271. + hppa*64*|ia64*)
  6272. + _LT_TAGVAR(hardcode_direct, $1)=no
  6273. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6274. + ;;
  6275. + *)
  6276. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6277. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6278. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6279. -# The linker used to build libraries.
  6280. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6281. + # hardcode_minus_L: Not really in the search PATH,
  6282. + # but as the default location of the library.
  6283. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6284. + ;;
  6285. + esac
  6286. + fi
  6287. + ;;
  6288. -# Whether we need hard or soft links.
  6289. -LN_S=$lt_LN_S
  6290. + irix5* | irix6* | nonstopux*)
  6291. + if test "$GCC" = yes; then
  6292. + _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'
  6293. + # Try to use the -exported_symbol ld option, if it does not
  6294. + # work, assume that -exports_file does not work either and
  6295. + # implicitly export all symbols.
  6296. + save_LDFLAGS="$LDFLAGS"
  6297. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6298. + AC_LINK_IFELSE(int foo(void) {},
  6299. + _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'
  6300. + )
  6301. + LDFLAGS="$save_LDFLAGS"
  6302. + else
  6303. + _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'
  6304. + _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'
  6305. + fi
  6306. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6307. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6308. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6309. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6310. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6311. + ;;
  6312. -# A BSD-compatible nm program.
  6313. -NM=$lt_NM
  6314. + netbsd* | netbsdelf*-gnu)
  6315. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6316. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6317. + else
  6318. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6319. + fi
  6320. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6321. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6322. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6323. + ;;
  6324. -# A symbol stripping program
  6325. -STRIP=$lt_STRIP
  6326. + newsos6)
  6327. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6328. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6329. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6330. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6331. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6332. + ;;
  6333. -# Used to examine libraries when file_magic_cmd begins "file"
  6334. -MAGIC_CMD=$MAGIC_CMD
  6335. + *nto* | *qnx*)
  6336. + ;;
  6337. -# Used on cygwin: DLL creation program.
  6338. -DLLTOOL="$DLLTOOL"
  6339. + openbsd*)
  6340. + if test -f /usr/libexec/ld.so; then
  6341. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6342. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6343. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6344. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6345. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6346. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6347. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6348. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6349. + else
  6350. + case $host_os in
  6351. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6352. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6353. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6354. + ;;
  6355. + *)
  6356. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6357. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6358. + ;;
  6359. + esac
  6360. + fi
  6361. + else
  6362. + _LT_TAGVAR(ld_shlibs, $1)=no
  6363. + fi
  6364. + ;;
  6365. -# Used on cygwin: object dumper.
  6366. -OBJDUMP="$OBJDUMP"
  6367. + os2*)
  6368. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6369. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6370. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6371. + _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'
  6372. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6373. + ;;
  6374. -# Used on cygwin: assembler.
  6375. -AS="$AS"
  6376. + osf3*)
  6377. + if test "$GCC" = yes; then
  6378. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6379. + _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'
  6380. + else
  6381. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6382. + _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'
  6383. + fi
  6384. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6385. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6386. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6387. + ;;
  6388. -# The name of the directory that contains temporary libtool files.
  6389. -objdir=$objdir
  6390. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6391. + if test "$GCC" = yes; then
  6392. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6393. + _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'
  6394. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6395. + else
  6396. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6397. + _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'
  6398. + _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~
  6399. + $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'
  6400. -# How to create reloadable object files.
  6401. -reload_flag=$lt_reload_flag
  6402. -reload_cmds=$lt_reload_cmds
  6403. + # Both c and cxx compiler support -rpath directly
  6404. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6405. + fi
  6406. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6407. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6408. + ;;
  6409. -# How to pass a linker flag through the compiler.
  6410. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6411. -
  6412. -# Object file suffix (normally "o").
  6413. -objext="$ac_objext"
  6414. -
  6415. -# Old archive suffix (normally "a").
  6416. -libext="$libext"
  6417. + solaris*)
  6418. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6419. + if test "$GCC" = yes; then
  6420. + wlarc='${wl}'
  6421. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6422. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6423. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6424. + else
  6425. + case `$CC -V 2>&1` in
  6426. + *"Compilers 5.0"*)
  6427. + wlarc=''
  6428. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6429. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6430. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6431. + ;;
  6432. + *)
  6433. + wlarc='${wl}'
  6434. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6435. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6436. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6437. + ;;
  6438. + esac
  6439. + fi
  6440. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6441. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6442. + case $host_os in
  6443. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6444. + *)
  6445. + # The compiler driver will combine and reorder linker options,
  6446. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6447. + # but is careful enough not to reorder.
  6448. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6449. + if test "$GCC" = yes; then
  6450. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6451. + else
  6452. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6453. + fi
  6454. + ;;
  6455. + esac
  6456. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6457. + ;;
  6458. -# Shared library suffix (normally ".so").
  6459. -shrext_cmds='$shrext_cmds'
  6460. + sunos4*)
  6461. + if test "x$host_vendor" = xsequent; then
  6462. + # Use $CC to link under sequent, because it throws in some extra .o
  6463. + # files that make .init and .fini sections work.
  6464. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6465. + else
  6466. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6467. + fi
  6468. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6469. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6470. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6471. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6472. + ;;
  6473. -# Executable file suffix (normally "").
  6474. -exeext="$exeext"
  6475. + sysv4)
  6476. + case $host_vendor in
  6477. + sni)
  6478. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6479. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6480. + ;;
  6481. + siemens)
  6482. + ## LD is ld it makes a PLAMLIB
  6483. + ## CC just makes a GrossModule.
  6484. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6485. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6486. + _LT_TAGVAR(hardcode_direct, $1)=no
  6487. + ;;
  6488. + motorola)
  6489. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6490. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6491. + ;;
  6492. + esac
  6493. + runpath_var='LD_RUN_PATH'
  6494. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6495. + ;;
  6496. -# Additional compiler flags for building library objects.
  6497. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6498. -pic_mode=$pic_mode
  6499. + sysv4.3*)
  6500. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6501. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6502. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6503. + ;;
  6504. -# What is the maximum length of a command?
  6505. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6506. + sysv4*MP*)
  6507. + if test -d /usr/nec; then
  6508. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6509. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6510. + runpath_var=LD_RUN_PATH
  6511. + hardcode_runpath_var=yes
  6512. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6513. + fi
  6514. + ;;
  6515. -# Does compiler simultaneously support -c and -o options?
  6516. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6517. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6518. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6519. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6520. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6521. + runpath_var='LD_RUN_PATH'
  6522. -# Must we lock files when doing compilation?
  6523. -need_locks=$lt_need_locks
  6524. + if test "$GCC" = yes; then
  6525. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6526. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6527. + else
  6528. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6529. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6530. + fi
  6531. + ;;
  6532. -# Do we need the lib prefix for modules?
  6533. -need_lib_prefix=$need_lib_prefix
  6534. + sysv5* | sco3.2v5* | sco5v6*)
  6535. + # Note: We can NOT use -z defs as we might desire, because we do not
  6536. + # link with -lc, and that would cause any symbols used from libc to
  6537. + # always be unresolved, which means just about no library would
  6538. + # ever link correctly. If we're not using GNU ld we use -z text
  6539. + # though, which does catch some bad symbols but isn't as heavy-handed
  6540. + # as -z defs.
  6541. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6542. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6543. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6544. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6545. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6546. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6547. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6548. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6549. + runpath_var='LD_RUN_PATH'
  6550. -# Do we need a version for libraries?
  6551. -need_version=$need_version
  6552. + if test "$GCC" = yes; then
  6553. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6554. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6555. + else
  6556. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6557. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6558. + fi
  6559. + ;;
  6560. -# Whether dlopen is supported.
  6561. -dlopen_support=$enable_dlopen
  6562. + uts4*)
  6563. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6564. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6565. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6566. + ;;
  6567. -# Whether dlopen of programs is supported.
  6568. -dlopen_self=$enable_dlopen_self
  6569. + *)
  6570. + _LT_TAGVAR(ld_shlibs, $1)=no
  6571. + ;;
  6572. + esac
  6573. -# Whether dlopen of statically linked programs is supported.
  6574. -dlopen_self_static=$enable_dlopen_self_static
  6575. + if test x$host_vendor = xsni; then
  6576. + case $host in
  6577. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6578. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6579. + ;;
  6580. + esac
  6581. + fi
  6582. + fi
  6583. +])
  6584. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6585. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6586. -# Compiler flag to prevent dynamic linking.
  6587. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6588. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6589. -# Compiler flag to turn off builtin functions.
  6590. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6591. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6592. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6593. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6594. + [The commands to extract the exported symbol list from a shared archive])
  6595. -# Compiler flag to allow reflexive dlopens.
  6596. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6597. +#
  6598. +# Do we need to explicitly link libc?
  6599. +#
  6600. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6601. +x|xyes)
  6602. + # Assume -lc should be added
  6603. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6604. -# Compiler flag to generate shared objects directly from archives.
  6605. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6606. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6607. + case $_LT_TAGVAR(archive_cmds, $1) in
  6608. + *'~'*)
  6609. + # FIXME: we may have to deal with multi-command sequences.
  6610. + ;;
  6611. + '$CC '*)
  6612. + # Test whether the compiler implicitly links with -lc since on some
  6613. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6614. + # to ld, don't add -lc before -lgcc.
  6615. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6616. + $RM conftest*
  6617. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6618. -# Compiler flag to generate thread-safe objects.
  6619. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6620. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6621. + soname=conftest
  6622. + lib=conftest
  6623. + libobjs=conftest.$ac_objext
  6624. + deplibs=
  6625. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6626. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6627. + compiler_flags=-v
  6628. + linker_flags=-v
  6629. + verstring=
  6630. + output_objdir=.
  6631. + libname=conftest
  6632. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6633. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6634. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6635. + then
  6636. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6637. + else
  6638. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6639. + fi
  6640. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6641. + else
  6642. + cat conftest.err 1>&5
  6643. + fi
  6644. + $RM conftest*
  6645. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6646. + ;;
  6647. + esac
  6648. + fi
  6649. + ;;
  6650. +esac
  6651. -# Library versioning type.
  6652. -version_type=$version_type
  6653. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6654. + [Whether or not to add -lc for building shared libraries])
  6655. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6656. + [enable_shared_with_static_runtimes], [0],
  6657. + [Whether or not to disallow shared libs when runtime libs are static])
  6658. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6659. + [Compiler flag to allow reflexive dlopens])
  6660. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6661. + [Compiler flag to generate shared objects directly from archives])
  6662. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6663. + [Whether the compiler copes with passing no objects directly])
  6664. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6665. + [Create an old-style archive from a shared archive])
  6666. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6667. + [Create a temporary old-style archive to link instead of a shared archive])
  6668. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6669. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6670. +_LT_TAGDECL([], [module_cmds], [2],
  6671. + [Commands used to build a loadable module if different from building
  6672. + a shared archive.])
  6673. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6674. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6675. + [Whether we are building with GNU ld or not])
  6676. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6677. + [Flag that allows shared libraries with undefined symbols to be built])
  6678. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6679. + [Flag that enforces no undefined symbols])
  6680. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6681. + [Flag to hardcode $libdir into a binary during linking.
  6682. + This must work even if $libdir does not exist])
  6683. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6684. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6685. + during linking. This must work even if $libdir does not exist]])
  6686. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6687. + [Whether we need a single "-rpath" flag with a separated argument])
  6688. +_LT_TAGDECL([], [hardcode_direct], [0],
  6689. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6690. + DIR into the resulting binary])
  6691. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6692. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6693. + DIR into the resulting binary and the resulting library dependency is
  6694. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6695. + library is relocated])
  6696. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6697. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6698. + into the resulting binary])
  6699. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6700. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6701. + into the resulting binary])
  6702. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6703. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6704. + into the library and all subsequent libraries and executables linked
  6705. + against it])
  6706. +_LT_TAGDECL([], [inherit_rpath], [0],
  6707. + [Set to yes if linker adds runtime paths of dependent libraries
  6708. + to runtime path list])
  6709. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6710. + [Whether libtool must link a program against all its dependency libraries])
  6711. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6712. + [Fix the shell variable $srcfile for the compiler])
  6713. +_LT_TAGDECL([], [always_export_symbols], [0],
  6714. + [Set to "yes" if exported symbols are required])
  6715. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6716. + [The commands to list exported symbols])
  6717. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6718. + [Symbols that should not be listed in the preloaded symbols])
  6719. +_LT_TAGDECL([], [include_expsyms], [1],
  6720. + [Symbols that must always be exported])
  6721. +_LT_TAGDECL([], [prelink_cmds], [2],
  6722. + [Commands necessary for linking programs (against libraries) with templates])
  6723. +_LT_TAGDECL([], [file_list_spec], [1],
  6724. + [Specify filename containing input files])
  6725. +dnl FIXME: Not yet implemented
  6726. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6727. +dnl [Compiler flag to generate thread safe objects])
  6728. +])# _LT_LINKER_SHLIBS
  6729. -# Format of library name prefix.
  6730. -libname_spec=$lt_libname_spec
  6731. -# List of archive names. First name is the real one, the rest are links.
  6732. -# The last name is the one that the linker finds with -lNAME.
  6733. -library_names_spec=$lt_library_names_spec
  6734. +# _LT_LANG_C_CONFIG([TAG])
  6735. +# ------------------------
  6736. +# Ensure that the configuration variables for a C compiler are suitably
  6737. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6738. +# the compiler configuration to `libtool'.
  6739. +m4_defun([_LT_LANG_C_CONFIG],
  6740. +[m4_require([_LT_DECL_EGREP])dnl
  6741. +lt_save_CC="$CC"
  6742. +AC_LANG_PUSH(C)
  6743. -# The coded name of the library, if different from the real name.
  6744. -soname_spec=$lt_soname_spec
  6745. +# Source file extension for C test sources.
  6746. +ac_ext=c
  6747. -# Commands used to build and install an old-style archive.
  6748. -RANLIB=$lt_RANLIB
  6749. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6750. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6751. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6752. +# Object file extension for compiled C test sources.
  6753. +objext=o
  6754. +_LT_TAGVAR(objext, $1)=$objext
  6755. -# Create an old-style archive from a shared archive.
  6756. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6757. +# Code to be used in simple compile tests
  6758. +lt_simple_compile_test_code="int some_variable = 0;"
  6759. -# Create a temporary old-style archive to link instead of a shared archive.
  6760. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6761. +# Code to be used in simple link tests
  6762. +lt_simple_link_test_code='int main(){return(0);}'
  6763. -# Commands used to build and install a shared archive.
  6764. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6765. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6766. -postinstall_cmds=$lt_postinstall_cmds
  6767. -postuninstall_cmds=$lt_postuninstall_cmds
  6768. +_LT_TAG_COMPILER
  6769. +# Save the default compiler, since it gets overwritten when the other
  6770. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6771. +compiler_DEFAULT=$CC
  6772. -# Commands used to build a loadable module (assumed same as above if empty)
  6773. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6774. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6775. +# save warnings/boilerplate of simple test code
  6776. +_LT_COMPILER_BOILERPLATE
  6777. +_LT_LINKER_BOILERPLATE
  6778. -# Commands to strip libraries.
  6779. -old_striplib=$lt_old_striplib
  6780. -striplib=$lt_striplib
  6781. +if test -n "$compiler"; then
  6782. + _LT_COMPILER_NO_RTTI($1)
  6783. + _LT_COMPILER_PIC($1)
  6784. + _LT_COMPILER_C_O($1)
  6785. + _LT_COMPILER_FILE_LOCKS($1)
  6786. + _LT_LINKER_SHLIBS($1)
  6787. + _LT_SYS_DYNAMIC_LINKER($1)
  6788. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6789. + LT_SYS_DLOPEN_SELF
  6790. + _LT_CMD_STRIPLIB
  6791. +
  6792. + # Report which library types will actually be built
  6793. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6794. + AC_MSG_RESULT([$can_build_shared])
  6795. -# Dependencies to place before the objects being linked to create a
  6796. -# shared library.
  6797. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6798. + AC_MSG_CHECKING([whether to build shared libraries])
  6799. + test "$can_build_shared" = "no" && enable_shared=no
  6800. -# Dependencies to place after the objects being linked to create a
  6801. -# shared library.
  6802. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6803. + # On AIX, shared libraries and static libraries use the same namespace, and
  6804. + # are all built from PIC.
  6805. + case $host_os in
  6806. + aix3*)
  6807. + test "$enable_shared" = yes && enable_static=no
  6808. + if test -n "$RANLIB"; then
  6809. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6810. + postinstall_cmds='$RANLIB $lib'
  6811. + fi
  6812. + ;;
  6813. -# Dependencies to place before the objects being linked to create a
  6814. -# shared library.
  6815. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6816. + aix[[4-9]]*)
  6817. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6818. + test "$enable_shared" = yes && enable_static=no
  6819. + fi
  6820. + ;;
  6821. + esac
  6822. + AC_MSG_RESULT([$enable_shared])
  6823. -# Dependencies to place after the objects being linked to create a
  6824. -# shared library.
  6825. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6826. + AC_MSG_CHECKING([whether to build static libraries])
  6827. + # Make sure either enable_shared or enable_static is yes.
  6828. + test "$enable_shared" = yes || enable_static=yes
  6829. + AC_MSG_RESULT([$enable_static])
  6830. -# The directories searched by this compiler when creating a shared
  6831. -# library
  6832. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  6833. + _LT_CONFIG($1)
  6834. +fi
  6835. +AC_LANG_POP
  6836. +CC="$lt_save_CC"
  6837. +])# _LT_LANG_C_CONFIG
  6838. -# The library search path used internally by the compiler when linking
  6839. -# a shared library.
  6840. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6841. -# Method to check whether dependent libraries are shared objects.
  6842. -deplibs_check_method=$lt_deplibs_check_method
  6843. +# _LT_PROG_CXX
  6844. +# ------------
  6845. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6846. +# compiler, we have our own version here.
  6847. +m4_defun([_LT_PROG_CXX],
  6848. +[
  6849. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6850. +AC_PROG_CXX
  6851. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6852. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6853. + (test "X$CXX" != "Xg++"))) ; then
  6854. + AC_PROG_CXXCPP
  6855. +else
  6856. + _lt_caught_CXX_error=yes
  6857. +fi
  6858. +popdef([AC_MSG_ERROR])
  6859. +])# _LT_PROG_CXX
  6860. -# Command to use when deplibs_check_method == file_magic.
  6861. -file_magic_cmd=$lt_file_magic_cmd
  6862. +dnl aclocal-1.4 backwards compatibility:
  6863. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6864. -# Flag that allows shared libraries with undefined symbols to be built.
  6865. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6866. -# Flag that forces no undefined symbols.
  6867. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6868. +# _LT_LANG_CXX_CONFIG([TAG])
  6869. +# --------------------------
  6870. +# Ensure that the configuration variables for a C++ compiler are suitably
  6871. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6872. +# the compiler configuration to `libtool'.
  6873. +m4_defun([_LT_LANG_CXX_CONFIG],
  6874. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6875. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6876. +m4_require([_LT_DECL_EGREP])dnl
  6877. +
  6878. +AC_LANG_PUSH(C++)
  6879. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6880. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6881. +_LT_TAGVAR(always_export_symbols, $1)=no
  6882. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6883. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6884. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6885. +_LT_TAGVAR(hardcode_direct, $1)=no
  6886. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6887. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6888. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6889. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6890. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6891. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6892. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6893. +_LT_TAGVAR(inherit_rpath, $1)=no
  6894. +_LT_TAGVAR(module_cmds, $1)=
  6895. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6896. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6897. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6898. +_LT_TAGVAR(no_undefined_flag, $1)=
  6899. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6900. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6901. -# Commands used to finish a libtool library installation in a directory.
  6902. -finish_cmds=$lt_finish_cmds
  6903. +# Source file extension for C++ test sources.
  6904. +ac_ext=cpp
  6905. -# Same as above, but a single script fragment to be evaled but not shown.
  6906. -finish_eval=$lt_finish_eval
  6907. +# Object file extension for compiled C++ test sources.
  6908. +objext=o
  6909. +_LT_TAGVAR(objext, $1)=$objext
  6910. -# Take the output of nm and produce a listing of raw symbols and C names.
  6911. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6912. +# No sense in running all these tests if we already determined that
  6913. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6914. +# are currently assumed to apply to all compilers on this platform,
  6915. +# and will be corrupted by setting them based on a non-working compiler.
  6916. +if test "$_lt_caught_CXX_error" != yes; then
  6917. + # Code to be used in simple compile tests
  6918. + lt_simple_compile_test_code="int some_variable = 0;"
  6919. +
  6920. + # Code to be used in simple link tests
  6921. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6922. +
  6923. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6924. + _LT_TAG_COMPILER
  6925. +
  6926. + # save warnings/boilerplate of simple test code
  6927. + _LT_COMPILER_BOILERPLATE
  6928. + _LT_LINKER_BOILERPLATE
  6929. +
  6930. + # Allow CC to be a program name with arguments.
  6931. + lt_save_CC=$CC
  6932. + lt_save_LD=$LD
  6933. + lt_save_GCC=$GCC
  6934. + GCC=$GXX
  6935. + lt_save_with_gnu_ld=$with_gnu_ld
  6936. + lt_save_path_LD=$lt_cv_path_LD
  6937. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6938. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6939. + else
  6940. + $as_unset lt_cv_prog_gnu_ld
  6941. + fi
  6942. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6943. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6944. + else
  6945. + $as_unset lt_cv_path_LD
  6946. + fi
  6947. + test -z "${LDCXX+set}" || LD=$LDCXX
  6948. + CC=${CXX-"c++"}
  6949. + compiler=$CC
  6950. + _LT_TAGVAR(compiler, $1)=$CC
  6951. + _LT_CC_BASENAME([$compiler])
  6952. -# Transform the output of nm in a proper C declaration
  6953. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6954. + if test -n "$compiler"; then
  6955. + # We don't want -fno-exception when compiling C++ code, so set the
  6956. + # no_builtin_flag separately
  6957. + if test "$GXX" = yes; then
  6958. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6959. + else
  6960. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6961. + fi
  6962. -# Transform the output of nm in a C name address pair
  6963. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6964. + if test "$GXX" = yes; then
  6965. + # Set up default GNU C++ configuration
  6966. -# This is the shared library runtime path variable.
  6967. -runpath_var=$runpath_var
  6968. + LT_PATH_LD
  6969. -# This is the shared library path variable.
  6970. -shlibpath_var=$shlibpath_var
  6971. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6972. + # archiving commands below assume that GNU ld is being used.
  6973. + if test "$with_gnu_ld" = yes; then
  6974. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6975. + _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'
  6976. +
  6977. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6978. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6979. +
  6980. + # If archive_cmds runs LD, not CC, wlarc should be empty
  6981. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  6982. + # investigate it a little bit more. (MM)
  6983. + wlarc='${wl}'
  6984. +
  6985. + # ancient GNU ld didn't support --whole-archive et. al.
  6986. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  6987. + $GREP 'no-whole-archive' > /dev/null; then
  6988. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6989. + else
  6990. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6991. + fi
  6992. + else
  6993. + with_gnu_ld=no
  6994. + wlarc=
  6995. -# Is shlibpath searched before the hard-coded library search path?
  6996. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6997. + # A generic and very simple default shared library creation
  6998. + # command for GNU C++ for the case where it uses the native
  6999. + # linker, instead of GNU ld. If possible, this setting should
  7000. + # overridden to take advantage of the native linker features on
  7001. + # the platform it is being used on.
  7002. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7003. + fi
  7004. -# How to hardcode a shared library path into an executable.
  7005. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7006. + # Commands to make compiler produce verbose output that lists
  7007. + # what "hidden" libraries, object files and flags are used when
  7008. + # linking a shared library.
  7009. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7010. -# Whether we should hardcode library paths into libraries.
  7011. -hardcode_into_libs=$hardcode_into_libs
  7012. + else
  7013. + GXX=no
  7014. + with_gnu_ld=no
  7015. + wlarc=
  7016. + fi
  7017. -# Flag to hardcode \$libdir into a binary during linking.
  7018. -# This must work even if \$libdir does not exist.
  7019. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7020. + # PORTME: fill in a description of your system's C++ link characteristics
  7021. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7022. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7023. + case $host_os in
  7024. + aix3*)
  7025. + # FIXME: insert proper C++ library support
  7026. + _LT_TAGVAR(ld_shlibs, $1)=no
  7027. + ;;
  7028. + aix[[4-9]]*)
  7029. + if test "$host_cpu" = ia64; then
  7030. + # On IA64, the linker does run time linking by default, so we don't
  7031. + # have to do anything special.
  7032. + aix_use_runtimelinking=no
  7033. + exp_sym_flag='-Bexport'
  7034. + no_entry_flag=""
  7035. + else
  7036. + aix_use_runtimelinking=no
  7037. -# If ld is used when linking, flag to hardcode \$libdir into
  7038. -# a binary during linking. This must work even if \$libdir does
  7039. -# not exist.
  7040. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7041. + # Test if we are trying to use run time linking or normal
  7042. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7043. + # need to do runtime linking.
  7044. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7045. + for ld_flag in $LDFLAGS; do
  7046. + case $ld_flag in
  7047. + *-brtl*)
  7048. + aix_use_runtimelinking=yes
  7049. + break
  7050. + ;;
  7051. + esac
  7052. + done
  7053. + ;;
  7054. + esac
  7055. -# Whether we need a single -rpath flag with a separated argument.
  7056. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7057. + exp_sym_flag='-bexport'
  7058. + no_entry_flag='-bnoentry'
  7059. + fi
  7060. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7061. -# resulting binary.
  7062. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7063. + # When large executables or shared objects are built, AIX ld can
  7064. + # have problems creating the table of contents. If linking a library
  7065. + # or program results in "error TOC overflow" add -mminimal-toc to
  7066. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7067. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7068. +
  7069. + _LT_TAGVAR(archive_cmds, $1)=''
  7070. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7071. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7072. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7073. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7074. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7075. +
  7076. + if test "$GXX" = yes; then
  7077. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7078. + # We only want to do this on AIX 4.2 and lower, the check
  7079. + # below for broken collect2 doesn't work under 4.3+
  7080. + collect2name=`${CC} -print-prog-name=collect2`
  7081. + if test -f "$collect2name" &&
  7082. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7083. + then
  7084. + # We have reworked collect2
  7085. + :
  7086. + else
  7087. + # We have old collect2
  7088. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7089. + # It fails to find uninstalled libraries when the uninstalled
  7090. + # path is not listed in the libpath. Setting hardcode_minus_L
  7091. + # to unsupported forces relinking
  7092. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7093. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7094. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7095. + fi
  7096. + esac
  7097. + shared_flag='-shared'
  7098. + if test "$aix_use_runtimelinking" = yes; then
  7099. + shared_flag="$shared_flag "'${wl}-G'
  7100. + fi
  7101. + else
  7102. + # not using gcc
  7103. + if test "$host_cpu" = ia64; then
  7104. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7105. + # chokes on -Wl,-G. The following line is correct:
  7106. + shared_flag='-G'
  7107. + else
  7108. + if test "$aix_use_runtimelinking" = yes; then
  7109. + shared_flag='${wl}-G'
  7110. + else
  7111. + shared_flag='${wl}-bM:SRE'
  7112. + fi
  7113. + fi
  7114. + fi
  7115. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7116. -# resulting binary.
  7117. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7118. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7119. + # It seems that -bexpall does not export symbols beginning with
  7120. + # underscore (_), so it is better to generate a list of symbols to
  7121. + # export.
  7122. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7123. + if test "$aix_use_runtimelinking" = yes; then
  7124. + # Warning - without using the other runtime loading flags (-brtl),
  7125. + # -berok will link without error, but may produce a broken library.
  7126. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7127. + # Determine the default libpath from the value encoded in an empty
  7128. + # executable.
  7129. + _LT_SYS_MODULE_PATH_AIX
  7130. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7131. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7132. -# the resulting binary.
  7133. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7134. + _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"
  7135. + else
  7136. + if test "$host_cpu" = ia64; then
  7137. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7138. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7139. + _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"
  7140. + else
  7141. + # Determine the default libpath from the value encoded in an
  7142. + # empty executable.
  7143. + _LT_SYS_MODULE_PATH_AIX
  7144. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7145. + # Warning - without using the other run time loading flags,
  7146. + # -berok will link without error, but may produce a broken library.
  7147. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7148. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7149. + # Exported symbols can be pulled into shared objects from archives
  7150. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7151. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7152. + # This is similar to how AIX traditionally builds its shared
  7153. + # libraries.
  7154. + _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'
  7155. + fi
  7156. + fi
  7157. + ;;
  7158. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7159. -# and all subsequent libraries and executables linked against it.
  7160. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7161. + beos*)
  7162. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7163. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7164. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7165. + # support --undefined. This deserves some investigation. FIXME
  7166. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7167. + else
  7168. + _LT_TAGVAR(ld_shlibs, $1)=no
  7169. + fi
  7170. + ;;
  7171. -# Variables whose values should be saved in libtool wrapper scripts and
  7172. -# restored at relink time.
  7173. -variables_saved_for_relink="$variables_saved_for_relink"
  7174. + chorus*)
  7175. + case $cc_basename in
  7176. + *)
  7177. + # FIXME: insert proper C++ library support
  7178. + _LT_TAGVAR(ld_shlibs, $1)=no
  7179. + ;;
  7180. + esac
  7181. + ;;
  7182. -# Whether libtool must link a program against all its dependency libraries.
  7183. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7184. + cygwin* | mingw* | pw32* | cegcc*)
  7185. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7186. + # as there is no search path for DLLs.
  7187. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7188. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7189. + _LT_TAGVAR(always_export_symbols, $1)=no
  7190. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7191. +
  7192. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7193. + _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'
  7194. + # If the export-symbols file already is a .def file (1st line
  7195. + # is EXPORTS), use it as is; otherwise, prepend...
  7196. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7197. + cp $export_symbols $output_objdir/$soname.def;
  7198. + else
  7199. + echo EXPORTS > $output_objdir/$soname.def;
  7200. + cat $export_symbols >> $output_objdir/$soname.def;
  7201. + fi~
  7202. + $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'
  7203. + else
  7204. + _LT_TAGVAR(ld_shlibs, $1)=no
  7205. + fi
  7206. + ;;
  7207. + darwin* | rhapsody*)
  7208. + _LT_DARWIN_LINKER_FEATURES($1)
  7209. + ;;
  7210. -# Compile-time system search path for libraries
  7211. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7212. + dgux*)
  7213. + case $cc_basename in
  7214. + ec++*)
  7215. + # FIXME: insert proper C++ library support
  7216. + _LT_TAGVAR(ld_shlibs, $1)=no
  7217. + ;;
  7218. + ghcx*)
  7219. + # Green Hills C++ Compiler
  7220. + # FIXME: insert proper C++ library support
  7221. + _LT_TAGVAR(ld_shlibs, $1)=no
  7222. + ;;
  7223. + *)
  7224. + # FIXME: insert proper C++ library support
  7225. + _LT_TAGVAR(ld_shlibs, $1)=no
  7226. + ;;
  7227. + esac
  7228. + ;;
  7229. -# Run-time system search path for libraries
  7230. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7231. + freebsd[[12]]*)
  7232. + # C++ shared libraries reported to be fairly broken before
  7233. + # switch to ELF
  7234. + _LT_TAGVAR(ld_shlibs, $1)=no
  7235. + ;;
  7236. -# Fix the shell variable \$srcfile for the compiler.
  7237. -fix_srcfile_path=$lt_fix_srcfile_path
  7238. + freebsd-elf*)
  7239. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7240. + ;;
  7241. -# Set to yes if exported symbols are required.
  7242. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7243. + freebsd* | dragonfly*)
  7244. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7245. + # conventions
  7246. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7247. + ;;
  7248. -# The commands to list exported symbols.
  7249. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7250. + gnu*)
  7251. + ;;
  7252. -# The commands to extract the exported symbol list from a shared archive.
  7253. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7254. + hpux9*)
  7255. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7256. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7257. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7258. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7259. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7260. + # but as the default
  7261. + # location of the library.
  7262. +
  7263. + case $cc_basename in
  7264. + CC*)
  7265. + # FIXME: insert proper C++ library support
  7266. + _LT_TAGVAR(ld_shlibs, $1)=no
  7267. + ;;
  7268. + aCC*)
  7269. + _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'
  7270. + # Commands to make compiler produce verbose output that lists
  7271. + # what "hidden" libraries, object files and flags are used when
  7272. + # linking a shared library.
  7273. + #
  7274. + # There doesn't appear to be a way to prevent this compiler from
  7275. + # explicitly linking system object files so we need to strip them
  7276. + # from the output so that they don't get included in the library
  7277. + # dependencies.
  7278. + 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'
  7279. + ;;
  7280. + *)
  7281. + if test "$GXX" = yes; then
  7282. + _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'
  7283. + else
  7284. + # FIXME: insert proper C++ library support
  7285. + _LT_TAGVAR(ld_shlibs, $1)=no
  7286. + fi
  7287. + ;;
  7288. + esac
  7289. + ;;
  7290. -# Symbols that should not be listed in the preloaded symbols.
  7291. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7292. + hpux10*|hpux11*)
  7293. + if test $with_gnu_ld = no; then
  7294. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7295. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7296. +
  7297. + case $host_cpu in
  7298. + hppa*64*|ia64*)
  7299. + ;;
  7300. + *)
  7301. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7302. + ;;
  7303. + esac
  7304. + fi
  7305. + case $host_cpu in
  7306. + hppa*64*|ia64*)
  7307. + _LT_TAGVAR(hardcode_direct, $1)=no
  7308. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7309. + ;;
  7310. + *)
  7311. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7312. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7313. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7314. + # but as the default
  7315. + # location of the library.
  7316. + ;;
  7317. + esac
  7318. +
  7319. + case $cc_basename in
  7320. + CC*)
  7321. + # FIXME: insert proper C++ library support
  7322. + _LT_TAGVAR(ld_shlibs, $1)=no
  7323. + ;;
  7324. + aCC*)
  7325. + case $host_cpu in
  7326. + hppa*64*)
  7327. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7328. + ;;
  7329. + ia64*)
  7330. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7331. + ;;
  7332. + *)
  7333. + _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'
  7334. + ;;
  7335. + esac
  7336. + # Commands to make compiler produce verbose output that lists
  7337. + # what "hidden" libraries, object files and flags are used when
  7338. + # linking a shared library.
  7339. + #
  7340. + # There doesn't appear to be a way to prevent this compiler from
  7341. + # explicitly linking system object files so we need to strip them
  7342. + # from the output so that they don't get included in the library
  7343. + # dependencies.
  7344. + 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'
  7345. + ;;
  7346. + *)
  7347. + if test "$GXX" = yes; then
  7348. + if test $with_gnu_ld = no; then
  7349. + case $host_cpu in
  7350. + hppa*64*)
  7351. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7352. + ;;
  7353. + ia64*)
  7354. + _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'
  7355. + ;;
  7356. + *)
  7357. + _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'
  7358. + ;;
  7359. + esac
  7360. + fi
  7361. + else
  7362. + # FIXME: insert proper C++ library support
  7363. + _LT_TAGVAR(ld_shlibs, $1)=no
  7364. + fi
  7365. + ;;
  7366. + esac
  7367. + ;;
  7368. -# Symbols that must always be exported.
  7369. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7370. + interix[[3-9]]*)
  7371. + _LT_TAGVAR(hardcode_direct, $1)=no
  7372. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7373. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7374. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7375. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7376. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7377. + # default) and relocated if they conflict, which is a slow very memory
  7378. + # consuming and fragmenting process. To avoid this, we pick a random,
  7379. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7380. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7381. + _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'
  7382. + _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'
  7383. + ;;
  7384. + irix5* | irix6*)
  7385. + case $cc_basename in
  7386. + CC*)
  7387. + # SGI C++
  7388. + _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'
  7389. +
  7390. + # Archives containing C++ object files must be created using
  7391. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7392. + # necessary to make sure instantiated templates are included
  7393. + # in the archive.
  7394. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7395. + ;;
  7396. + *)
  7397. + if test "$GXX" = yes; then
  7398. + if test "$with_gnu_ld" = no; then
  7399. + _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'
  7400. + else
  7401. + _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'
  7402. + fi
  7403. + fi
  7404. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7405. + ;;
  7406. + esac
  7407. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7408. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7409. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7410. + ;;
  7411. -ifelse([$1],[],
  7412. -[# ### END LIBTOOL CONFIG],
  7413. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7414. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7415. + case $cc_basename in
  7416. + KCC*)
  7417. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7418. +
  7419. + # KCC will only create a shared library if the output file
  7420. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7421. + # to its proper name (with version) after linking.
  7422. + _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'
  7423. + _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'
  7424. + # Commands to make compiler produce verbose output that lists
  7425. + # what "hidden" libraries, object files and flags are used when
  7426. + # linking a shared library.
  7427. + #
  7428. + # There doesn't appear to be a way to prevent this compiler from
  7429. + # explicitly linking system object files so we need to strip them
  7430. + # from the output so that they don't get included in the library
  7431. + # dependencies.
  7432. + 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'
  7433. +
  7434. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7435. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7436. +
  7437. + # Archives containing C++ object files must be created using
  7438. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7439. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7440. + ;;
  7441. + icpc* | ecpc* )
  7442. + # Intel C++
  7443. + with_gnu_ld=yes
  7444. + # version 8.0 and above of icpc choke on multiply defined symbols
  7445. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7446. + # earlier do not add the objects themselves.
  7447. + case `$CC -V 2>&1` in
  7448. + *"Version 7."*)
  7449. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7450. + _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'
  7451. + ;;
  7452. + *) # Version 8.0 or newer
  7453. + tmp_idyn=
  7454. + case $host_cpu in
  7455. + ia64*) tmp_idyn=' -i_dynamic';;
  7456. + esac
  7457. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7458. + _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'
  7459. + ;;
  7460. + esac
  7461. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7462. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7463. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7464. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7465. + ;;
  7466. + pgCC* | pgcpp*)
  7467. + # Portland Group C++ compiler
  7468. + case `$CC -V` in
  7469. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7470. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7471. + rm -rf $tpldir~
  7472. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7473. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7474. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7475. + rm -rf $tpldir~
  7476. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7477. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7478. + $RANLIB $oldlib'
  7479. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7480. + rm -rf $tpldir~
  7481. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7482. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7483. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7484. + rm -rf $tpldir~
  7485. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7486. + $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'
  7487. + ;;
  7488. + *) # Version 6 will use weak symbols
  7489. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7490. + _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'
  7491. + ;;
  7492. + esac
  7493. -__EOF__
  7494. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7495. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7496. + _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'
  7497. + ;;
  7498. + cxx*)
  7499. + # Compaq C++
  7500. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7501. + _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'
  7502. -ifelse([$1],[], [
  7503. - case $host_os in
  7504. - aix3*)
  7505. - cat <<\EOF >> "$cfgfile"
  7506. + runpath_var=LD_RUN_PATH
  7507. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7508. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7509. -# AIX sometimes has problems with the GCC collect2 program. For some
  7510. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7511. -# vanish in a puff of smoke.
  7512. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7513. - COLLECT_NAMES=
  7514. - export COLLECT_NAMES
  7515. -fi
  7516. -EOF
  7517. - ;;
  7518. - esac
  7519. + # Commands to make compiler produce verbose output that lists
  7520. + # what "hidden" libraries, object files and flags are used when
  7521. + # linking a shared library.
  7522. + #
  7523. + # There doesn't appear to be a way to prevent this compiler from
  7524. + # explicitly linking system object files so we need to strip them
  7525. + # from the output so that they don't get included in the library
  7526. + # dependencies.
  7527. + 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'
  7528. + ;;
  7529. + xl*)
  7530. + # IBM XL 8.0 on PPC, with GNU ld
  7531. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7532. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7533. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7534. + if test "x$supports_anon_versioning" = xyes; then
  7535. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7536. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7537. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7538. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7539. + fi
  7540. + ;;
  7541. + *)
  7542. + case `$CC -V 2>&1 | sed 5q` in
  7543. + *Sun\ C*)
  7544. + # Sun C++ 5.9
  7545. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7546. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7547. + _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'
  7548. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7549. + _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'
  7550. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7551. +
  7552. + # Not sure whether something based on
  7553. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7554. + # would be better.
  7555. + output_verbose_link_cmd='echo'
  7556. +
  7557. + # Archives containing C++ object files must be created using
  7558. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7559. + # necessary to make sure instantiated templates are included
  7560. + # in the archive.
  7561. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7562. + ;;
  7563. + esac
  7564. + ;;
  7565. + esac
  7566. + ;;
  7567. - # We use sed instead of cat because bash on DJGPP gets confused if
  7568. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7569. - # text mode, it properly converts lines to CR/LF. This bash problem
  7570. - # is reportedly fixed, but why not run on old versions too?
  7571. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7572. + lynxos*)
  7573. + # FIXME: insert proper C++ library support
  7574. + _LT_TAGVAR(ld_shlibs, $1)=no
  7575. + ;;
  7576. - mv -f "$cfgfile" "$ofile" || \
  7577. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7578. - chmod +x "$ofile"
  7579. -])
  7580. -else
  7581. - # If there is no Makefile yet, we rely on a make rule to execute
  7582. - # `config.status --recheck' to rerun these tests and create the
  7583. - # libtool script then.
  7584. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7585. - if test -f "$ltmain_in"; then
  7586. - test -f Makefile && make "$ltmain"
  7587. - fi
  7588. -fi
  7589. -])# AC_LIBTOOL_CONFIG
  7590. + m88k*)
  7591. + # FIXME: insert proper C++ library support
  7592. + _LT_TAGVAR(ld_shlibs, $1)=no
  7593. + ;;
  7594. + mvs*)
  7595. + case $cc_basename in
  7596. + cxx*)
  7597. + # FIXME: insert proper C++ library support
  7598. + _LT_TAGVAR(ld_shlibs, $1)=no
  7599. + ;;
  7600. + *)
  7601. + # FIXME: insert proper C++ library support
  7602. + _LT_TAGVAR(ld_shlibs, $1)=no
  7603. + ;;
  7604. + esac
  7605. + ;;
  7606. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7607. -# -------------------------------------------
  7608. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7609. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7610. + netbsd*)
  7611. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7612. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7613. + wlarc=
  7614. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7615. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7616. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7617. + fi
  7618. + # Workaround some broken pre-1.5 toolchains
  7619. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7620. + ;;
  7621. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7622. + *nto* | *qnx*)
  7623. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7624. + ;;
  7625. -if test "$GCC" = yes; then
  7626. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7627. + openbsd2*)
  7628. + # C++ shared libraries are fairly broken
  7629. + _LT_TAGVAR(ld_shlibs, $1)=no
  7630. + ;;
  7631. +
  7632. + openbsd*)
  7633. + if test -f /usr/libexec/ld.so; then
  7634. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7635. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7636. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7637. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7638. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7639. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7640. + _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'
  7641. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7642. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7643. + fi
  7644. + output_verbose_link_cmd=echo
  7645. + else
  7646. + _LT_TAGVAR(ld_shlibs, $1)=no
  7647. + fi
  7648. + ;;
  7649. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7650. - lt_cv_prog_compiler_rtti_exceptions,
  7651. - [-fno-rtti -fno-exceptions], [],
  7652. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7653. -fi
  7654. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7655. + osf3* | osf4* | osf5*)
  7656. + case $cc_basename in
  7657. + KCC*)
  7658. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7659. +
  7660. + # KCC will only create a shared library if the output file
  7661. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7662. + # to its proper name (with version) after linking.
  7663. + _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'
  7664. +
  7665. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7666. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7667. +
  7668. + # Archives containing C++ object files must be created using
  7669. + # the KAI C++ compiler.
  7670. + case $host in
  7671. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7672. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7673. + esac
  7674. + ;;
  7675. + RCC*)
  7676. + # Rational C++ 2.4.1
  7677. + # FIXME: insert proper C++ library support
  7678. + _LT_TAGVAR(ld_shlibs, $1)=no
  7679. + ;;
  7680. + cxx*)
  7681. + case $host in
  7682. + osf3*)
  7683. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7684. + _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'
  7685. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7686. + ;;
  7687. + *)
  7688. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7689. + _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'
  7690. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7691. + echo "-hidden">> $lib.exp~
  7692. + $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~
  7693. + $RM $lib.exp'
  7694. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7695. + ;;
  7696. + esac
  7697. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7698. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7699. -# ---------------------------------
  7700. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7701. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7702. -AC_REQUIRE([LT_AC_PROG_SED])
  7703. -AC_REQUIRE([AC_PROG_NM])
  7704. -AC_REQUIRE([AC_OBJEXT])
  7705. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7706. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7707. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7708. -[
  7709. -# These are sane defaults that work on at least a few old systems.
  7710. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7711. + # Commands to make compiler produce verbose output that lists
  7712. + # what "hidden" libraries, object files and flags are used when
  7713. + # linking a shared library.
  7714. + #
  7715. + # There doesn't appear to be a way to prevent this compiler from
  7716. + # explicitly linking system object files so we need to strip them
  7717. + # from the output so that they don't get included in the library
  7718. + # dependencies.
  7719. + 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'
  7720. + ;;
  7721. + *)
  7722. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7723. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7724. + case $host in
  7725. + osf3*)
  7726. + _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'
  7727. + ;;
  7728. + *)
  7729. + _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'
  7730. + ;;
  7731. + esac
  7732. +
  7733. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7734. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7735. +
  7736. + # Commands to make compiler produce verbose output that lists
  7737. + # what "hidden" libraries, object files and flags are used when
  7738. + # linking a shared library.
  7739. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7740. +
  7741. + else
  7742. + # FIXME: insert proper C++ library support
  7743. + _LT_TAGVAR(ld_shlibs, $1)=no
  7744. + fi
  7745. + ;;
  7746. + esac
  7747. + ;;
  7748. -# Character class describing NM global symbol codes.
  7749. -symcode='[[BCDEGRST]]'
  7750. + psos*)
  7751. + # FIXME: insert proper C++ library support
  7752. + _LT_TAGVAR(ld_shlibs, $1)=no
  7753. + ;;
  7754. -# Regexp to match symbols that can be accessed directly from C.
  7755. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7756. + sunos4*)
  7757. + case $cc_basename in
  7758. + CC*)
  7759. + # Sun C++ 4.x
  7760. + # FIXME: insert proper C++ library support
  7761. + _LT_TAGVAR(ld_shlibs, $1)=no
  7762. + ;;
  7763. + lcc*)
  7764. + # Lucid
  7765. + # FIXME: insert proper C++ library support
  7766. + _LT_TAGVAR(ld_shlibs, $1)=no
  7767. + ;;
  7768. + *)
  7769. + # FIXME: insert proper C++ library support
  7770. + _LT_TAGVAR(ld_shlibs, $1)=no
  7771. + ;;
  7772. + esac
  7773. + ;;
  7774. -# Transform an extracted symbol line into a proper C declaration
  7775. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7776. + solaris*)
  7777. + case $cc_basename in
  7778. + CC*)
  7779. + # Sun C++ 4.2, 5.x and Centerline C++
  7780. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7781. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7782. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7783. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7784. + $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'
  7785. +
  7786. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7787. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7788. + case $host_os in
  7789. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7790. + *)
  7791. + # The compiler driver will combine and reorder linker options,
  7792. + # but understands `-z linker_flag'.
  7793. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7794. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7795. + ;;
  7796. + esac
  7797. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7798. -# Transform an extracted symbol line into symbol name and symbol address
  7799. -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'"
  7800. + output_verbose_link_cmd='echo'
  7801. -# Define system-specific variables.
  7802. -case $host_os in
  7803. -aix*)
  7804. - symcode='[[BCDT]]'
  7805. - ;;
  7806. -cygwin* | mingw* | pw32*)
  7807. - symcode='[[ABCDGISTW]]'
  7808. - ;;
  7809. -hpux*) # Its linker distinguishes data from code symbols
  7810. - if test "$host_cpu" = ia64; then
  7811. - symcode='[[ABCDEGRST]]'
  7812. - fi
  7813. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7814. - 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'"
  7815. - ;;
  7816. -linux* | k*bsd*-gnu)
  7817. - if test "$host_cpu" = ia64; then
  7818. - symcode='[[ABCDGIRSTW]]'
  7819. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7820. - 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'"
  7821. - fi
  7822. - ;;
  7823. -irix* | nonstopux*)
  7824. - symcode='[[BCDEGRST]]'
  7825. - ;;
  7826. -osf*)
  7827. - symcode='[[BCDEGQRST]]'
  7828. - ;;
  7829. -solaris*)
  7830. - symcode='[[BDRT]]'
  7831. - ;;
  7832. -sco3.2v5*)
  7833. - symcode='[[DT]]'
  7834. - ;;
  7835. -sysv4.2uw2*)
  7836. - symcode='[[DT]]'
  7837. - ;;
  7838. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7839. - symcode='[[ABDT]]'
  7840. - ;;
  7841. -sysv4)
  7842. - symcode='[[DFNSTU]]'
  7843. - ;;
  7844. -esac
  7845. + # Archives containing C++ object files must be created using
  7846. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7847. + # necessary to make sure instantiated templates are included
  7848. + # in the archive.
  7849. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7850. + ;;
  7851. + gcx*)
  7852. + # Green Hills C++ Compiler
  7853. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7854. -# Handle CRLF in mingw tool chain
  7855. -opt_cr=
  7856. -case $build_os in
  7857. -mingw*)
  7858. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7859. - ;;
  7860. -esac
  7861. + # The C++ compiler must be used to create the archive.
  7862. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7863. + ;;
  7864. + *)
  7865. + # GNU C++ compiler with Solaris linker
  7866. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7867. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7868. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7869. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7870. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7871. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7872. +
  7873. + # Commands to make compiler produce verbose output that lists
  7874. + # what "hidden" libraries, object files and flags are used when
  7875. + # linking a shared library.
  7876. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7877. + else
  7878. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7879. + # platform.
  7880. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7881. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7882. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7883. +
  7884. + # Commands to make compiler produce verbose output that lists
  7885. + # what "hidden" libraries, object files and flags are used when
  7886. + # linking a shared library.
  7887. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7888. + fi
  7889. +
  7890. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7891. + case $host_os in
  7892. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7893. + *)
  7894. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7895. + ;;
  7896. + esac
  7897. + fi
  7898. + ;;
  7899. + esac
  7900. + ;;
  7901. -# If we're using GNU nm, then use its standard symbol codes.
  7902. -case `$NM -V 2>&1` in
  7903. -*GNU* | *'with BFD'*)
  7904. - symcode='[[ABCDGIRSTW]]' ;;
  7905. -esac
  7906. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7907. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7908. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7909. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7910. + runpath_var='LD_RUN_PATH'
  7911. -# Try without a prefix undercore, then with it.
  7912. -for ac_symprfx in "" "_"; do
  7913. + case $cc_basename in
  7914. + CC*)
  7915. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7916. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7917. + ;;
  7918. + *)
  7919. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7920. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7921. + ;;
  7922. + esac
  7923. + ;;
  7924. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7925. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7926. + sysv5* | sco3.2v5* | sco5v6*)
  7927. + # Note: We can NOT use -z defs as we might desire, because we do not
  7928. + # link with -lc, and that would cause any symbols used from libc to
  7929. + # always be unresolved, which means just about no library would
  7930. + # ever link correctly. If we're not using GNU ld we use -z text
  7931. + # though, which does catch some bad symbols but isn't as heavy-handed
  7932. + # as -z defs.
  7933. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7934. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7935. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7936. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7937. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7938. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7939. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7940. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7941. + runpath_var='LD_RUN_PATH'
  7942. - # Write the raw and C identifiers.
  7943. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7944. + case $cc_basename in
  7945. + CC*)
  7946. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7947. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7948. + ;;
  7949. + *)
  7950. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7951. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7952. + ;;
  7953. + esac
  7954. + ;;
  7955. - # Check to see that the pipe works correctly.
  7956. - pipe_works=no
  7957. + tandem*)
  7958. + case $cc_basename in
  7959. + NCC*)
  7960. + # NonStop-UX NCC 3.20
  7961. + # FIXME: insert proper C++ library support
  7962. + _LT_TAGVAR(ld_shlibs, $1)=no
  7963. + ;;
  7964. + *)
  7965. + # FIXME: insert proper C++ library support
  7966. + _LT_TAGVAR(ld_shlibs, $1)=no
  7967. + ;;
  7968. + esac
  7969. + ;;
  7970. - rm -f conftest*
  7971. - cat > conftest.$ac_ext <<EOF
  7972. -#ifdef __cplusplus
  7973. -extern "C" {
  7974. -#endif
  7975. -char nm_test_var;
  7976. -void nm_test_func(){}
  7977. -#ifdef __cplusplus
  7978. -}
  7979. -#endif
  7980. -int main(){nm_test_var='a';nm_test_func();return(0);}
  7981. -EOF
  7982. + vxworks*)
  7983. + # FIXME: insert proper C++ library support
  7984. + _LT_TAGVAR(ld_shlibs, $1)=no
  7985. + ;;
  7986. - if AC_TRY_EVAL(ac_compile); then
  7987. - # Now try to grab the symbols.
  7988. - nlist=conftest.nm
  7989. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  7990. - # Try sorting and uniquifying the output.
  7991. - if sort "$nlist" | uniq > "$nlist"T; then
  7992. - mv -f "$nlist"T "$nlist"
  7993. - else
  7994. - rm -f "$nlist"T
  7995. - fi
  7996. + *)
  7997. + # FIXME: insert proper C++ library support
  7998. + _LT_TAGVAR(ld_shlibs, $1)=no
  7999. + ;;
  8000. + esac
  8001. - # Make sure that we snagged all the symbols we need.
  8002. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8003. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8004. - cat <<EOF > conftest.$ac_ext
  8005. -#ifdef __cplusplus
  8006. -extern "C" {
  8007. -#endif
  8008. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8009. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8010. -EOF
  8011. - # Now generate the symbol file.
  8012. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8013. + _LT_TAGVAR(GCC, $1)="$GXX"
  8014. + _LT_TAGVAR(LD, $1)="$LD"
  8015. - cat <<EOF >> conftest.$ac_ext
  8016. -#if defined (__STDC__) && __STDC__
  8017. -# define lt_ptr_t void *
  8018. -#else
  8019. -# define lt_ptr_t char *
  8020. -# define const
  8021. -#endif
  8022. + ## CAVEAT EMPTOR:
  8023. + ## There is no encapsulation within the following macros, do not change
  8024. + ## the running order or otherwise move them around unless you know exactly
  8025. + ## what you are doing...
  8026. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8027. + _LT_COMPILER_PIC($1)
  8028. + _LT_COMPILER_C_O($1)
  8029. + _LT_COMPILER_FILE_LOCKS($1)
  8030. + _LT_LINKER_SHLIBS($1)
  8031. + _LT_SYS_DYNAMIC_LINKER($1)
  8032. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8033. +
  8034. + _LT_CONFIG($1)
  8035. + fi # test -n "$compiler"
  8036. +
  8037. + CC=$lt_save_CC
  8038. + LDCXX=$LD
  8039. + LD=$lt_save_LD
  8040. + GCC=$lt_save_GCC
  8041. + with_gnu_ld=$lt_save_with_gnu_ld
  8042. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8043. + lt_cv_path_LD=$lt_save_path_LD
  8044. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8045. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8046. +fi # test "$_lt_caught_CXX_error" != yes
  8047. -/* The mapping between symbol names and symbols. */
  8048. -const struct {
  8049. - const char *name;
  8050. - lt_ptr_t address;
  8051. -}
  8052. -lt_preloaded_symbols[[]] =
  8053. +AC_LANG_POP
  8054. +])# _LT_LANG_CXX_CONFIG
  8055. +
  8056. +
  8057. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8058. +# ---------------------------------
  8059. +# Figure out "hidden" library dependencies from verbose
  8060. +# compiler output when linking a shared library.
  8061. +# Parse the compiler output and extract the necessary
  8062. +# objects, libraries and library flags.
  8063. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8064. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8065. +# Dependencies to place before and after the object being linked:
  8066. +_LT_TAGVAR(predep_objects, $1)=
  8067. +_LT_TAGVAR(postdep_objects, $1)=
  8068. +_LT_TAGVAR(predeps, $1)=
  8069. +_LT_TAGVAR(postdeps, $1)=
  8070. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8071. +
  8072. +dnl we can't use the lt_simple_compile_test_code here,
  8073. +dnl because it contains code intended for an executable,
  8074. +dnl not a library. It's possible we should let each
  8075. +dnl tag define a new lt_????_link_test_code variable,
  8076. +dnl but it's only used here...
  8077. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8078. +int a;
  8079. +void foo (void) { a = 0; }
  8080. +_LT_EOF
  8081. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8082. +class Foo
  8083. {
  8084. -EOF
  8085. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8086. - cat <<\EOF >> conftest.$ac_ext
  8087. - {0, (lt_ptr_t) 0}
  8088. +public:
  8089. + Foo (void) { a = 0; }
  8090. +private:
  8091. + int a;
  8092. +};
  8093. +_LT_EOF
  8094. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8095. + subroutine foo
  8096. + implicit none
  8097. + integer*4 a
  8098. + a=0
  8099. + return
  8100. + end
  8101. +_LT_EOF
  8102. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8103. + subroutine foo
  8104. + implicit none
  8105. + integer a
  8106. + a=0
  8107. + return
  8108. + end
  8109. +_LT_EOF
  8110. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8111. +public class foo {
  8112. + private int a;
  8113. + public void bar (void) {
  8114. + a = 0;
  8115. + }
  8116. };
  8117. +_LT_EOF
  8118. +])
  8119. +dnl Parse the compiler output and extract the necessary
  8120. +dnl objects, libraries and library flags.
  8121. +if AC_TRY_EVAL(ac_compile); then
  8122. + # Parse the compiler output and extract the necessary
  8123. + # objects, libraries and library flags.
  8124. -#ifdef __cplusplus
  8125. -}
  8126. -#endif
  8127. -EOF
  8128. - # Now try linking the two files.
  8129. - mv conftest.$ac_objext conftstm.$ac_objext
  8130. - lt_save_LIBS="$LIBS"
  8131. - lt_save_CFLAGS="$CFLAGS"
  8132. - LIBS="conftstm.$ac_objext"
  8133. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8134. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8135. - pipe_works=yes
  8136. - fi
  8137. - LIBS="$lt_save_LIBS"
  8138. - CFLAGS="$lt_save_CFLAGS"
  8139. - else
  8140. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8141. - fi
  8142. - else
  8143. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8144. - fi
  8145. - else
  8146. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8147. - fi
  8148. - else
  8149. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8150. - cat conftest.$ac_ext >&5
  8151. - fi
  8152. - rm -rf conftest* conftst*
  8153. + # Sentinel used to keep track of whether or not we are before
  8154. + # the conftest object file.
  8155. + pre_test_object_deps_done=no
  8156. - # Do not use the global_symbol_pipe unless it works.
  8157. - if test "$pipe_works" = yes; then
  8158. - break
  8159. - else
  8160. - lt_cv_sys_global_symbol_pipe=
  8161. - fi
  8162. -done
  8163. -])
  8164. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8165. - lt_cv_sys_global_symbol_to_cdecl=
  8166. -fi
  8167. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8168. - AC_MSG_RESULT(failed)
  8169. + for p in `eval "$output_verbose_link_cmd"`; do
  8170. + case $p in
  8171. +
  8172. + -L* | -R* | -l*)
  8173. + # Some compilers place space between "-{L,R}" and the path.
  8174. + # Remove the space.
  8175. + if test $p = "-L" ||
  8176. + test $p = "-R"; then
  8177. + prev=$p
  8178. + continue
  8179. + else
  8180. + prev=
  8181. + fi
  8182. +
  8183. + if test "$pre_test_object_deps_done" = no; then
  8184. + case $p in
  8185. + -L* | -R*)
  8186. + # Internal compiler library paths should come after those
  8187. + # provided the user. The postdeps already come after the
  8188. + # user supplied libs so there is no need to process them.
  8189. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8190. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8191. + else
  8192. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8193. + fi
  8194. + ;;
  8195. + # The "-l" case would never come before the object being
  8196. + # linked, so don't bother handling this case.
  8197. + esac
  8198. + else
  8199. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8200. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8201. + else
  8202. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8203. + fi
  8204. + fi
  8205. + ;;
  8206. +
  8207. + *.$objext)
  8208. + # This assumes that the test object file only shows up
  8209. + # once in the compiler output.
  8210. + if test "$p" = "conftest.$objext"; then
  8211. + pre_test_object_deps_done=yes
  8212. + continue
  8213. + fi
  8214. +
  8215. + if test "$pre_test_object_deps_done" = no; then
  8216. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8217. + _LT_TAGVAR(predep_objects, $1)="$p"
  8218. + else
  8219. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8220. + fi
  8221. + else
  8222. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8223. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8224. + else
  8225. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8226. + fi
  8227. + fi
  8228. + ;;
  8229. +
  8230. + *) ;; # Ignore the rest.
  8231. +
  8232. + esac
  8233. + done
  8234. +
  8235. + # Clean up.
  8236. + rm -f a.out a.exe
  8237. else
  8238. - AC_MSG_RESULT(ok)
  8239. + echo "libtool.m4: error: problem compiling $1 test program"
  8240. fi
  8241. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8242. +$RM -f confest.$objext
  8243. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8244. -# ---------------------------------------
  8245. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8246. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8247. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8248. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8249. +# PORTME: override above test on systems where it is broken
  8250. +m4_if([$1], [CXX],
  8251. +[case $host_os in
  8252. +interix[[3-9]]*)
  8253. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8254. + # hack all around it, let's just trust "g++" to DTRT.
  8255. + _LT_TAGVAR(predep_objects,$1)=
  8256. + _LT_TAGVAR(postdep_objects,$1)=
  8257. + _LT_TAGVAR(postdeps,$1)=
  8258. + ;;
  8259. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8260. - ifelse([$1],[CXX],[
  8261. - # C++ specific cases for pic, static, wl, etc.
  8262. - if test "$GXX" = yes; then
  8263. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8264. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8265. +linux*)
  8266. + case `$CC -V 2>&1 | sed 5q` in
  8267. + *Sun\ C*)
  8268. + # Sun C++ 5.9
  8269. - case $host_os in
  8270. - aix*)
  8271. - # All AIX code is PIC.
  8272. - if test "$host_cpu" = ia64; then
  8273. - # AIX 5 now supports IA64 processor
  8274. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8275. - fi
  8276. - ;;
  8277. - amigaos*)
  8278. - # FIXME: we need at least 68020 code to build shared libraries, but
  8279. - # adding the `-m68020' flag to GCC prevents building anything better,
  8280. - # like `-m68040'.
  8281. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8282. - ;;
  8283. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8284. - # PIC is the default for these OSes.
  8285. - ;;
  8286. - mingw* | cygwin* | os2* | pw32*)
  8287. - # This hack is so that the source file can tell whether it is being
  8288. - # built for inclusion in a dll (and should export symbols for example).
  8289. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8290. - # (--disable-auto-import) libraries
  8291. - m4_if([$1], [GCJ], [],
  8292. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8293. - ;;
  8294. - darwin* | rhapsody*)
  8295. - # PIC is the default on this platform
  8296. - # Common symbols not allowed in MH_DYLIB files
  8297. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8298. - ;;
  8299. - *djgpp*)
  8300. - # DJGPP does not support shared libraries at all
  8301. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8302. - ;;
  8303. - interix[[3-9]]*)
  8304. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8305. - # Instead, we relocate shared libraries at runtime.
  8306. - ;;
  8307. - sysv4*MP*)
  8308. - if test -d /usr/nec; then
  8309. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8310. - fi
  8311. - ;;
  8312. - hpux*)
  8313. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8314. - # not for PA HP-UX.
  8315. - case $host_cpu in
  8316. - hppa*64*|ia64*)
  8317. - ;;
  8318. - *)
  8319. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8320. - ;;
  8321. - esac
  8322. + # The more standards-conforming stlport4 library is
  8323. + # incompatible with the Cstd library. Avoid specifying
  8324. + # it if it's in CXXFLAGS. Ignore libCrun as
  8325. + # -library=stlport4 depends on it.
  8326. + case " $CXX $CXXFLAGS " in
  8327. + *" -library=stlport4 "*)
  8328. + solaris_use_stlport4=yes
  8329. ;;
  8330. - *)
  8331. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8332. + esac
  8333. +
  8334. + if test "$solaris_use_stlport4" != yes; then
  8335. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8336. + fi
  8337. + ;;
  8338. + esac
  8339. + ;;
  8340. +
  8341. +solaris*)
  8342. + case $cc_basename in
  8343. + CC*)
  8344. + # The more standards-conforming stlport4 library is
  8345. + # incompatible with the Cstd library. Avoid specifying
  8346. + # it if it's in CXXFLAGS. Ignore libCrun as
  8347. + # -library=stlport4 depends on it.
  8348. + case " $CXX $CXXFLAGS " in
  8349. + *" -library=stlport4 "*)
  8350. + solaris_use_stlport4=yes
  8351. ;;
  8352. esac
  8353. - else
  8354. +
  8355. + # Adding this requires a known-good setup of shared libraries for
  8356. + # Sun compiler versions before 5.6, else PIC objects from an old
  8357. + # archive will be linked into the output, leading to subtle bugs.
  8358. + if test "$solaris_use_stlport4" != yes; then
  8359. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8360. + fi
  8361. + ;;
  8362. + esac
  8363. + ;;
  8364. +esac
  8365. +])
  8366. +
  8367. +case " $_LT_TAGVAR(postdeps, $1) " in
  8368. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8369. +esac
  8370. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8371. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8372. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8373. +fi
  8374. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8375. + [The directories searched by this compiler when creating a shared library])
  8376. +_LT_TAGDECL([], [predep_objects], [1],
  8377. + [Dependencies to place before and after the objects being linked to
  8378. + create a shared library])
  8379. +_LT_TAGDECL([], [postdep_objects], [1])
  8380. +_LT_TAGDECL([], [predeps], [1])
  8381. +_LT_TAGDECL([], [postdeps], [1])
  8382. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8383. + [The library search path used internally by the compiler when linking
  8384. + a shared library])
  8385. +])# _LT_SYS_HIDDEN_LIBDEPS
  8386. +
  8387. +
  8388. +# _LT_PROG_F77
  8389. +# ------------
  8390. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8391. +# if there is no fortran compiler, we have our own version here.
  8392. +m4_defun([_LT_PROG_F77],
  8393. +[
  8394. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8395. +AC_PROG_F77
  8396. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8397. + _lt_disable_F77=yes
  8398. +fi
  8399. +popdef([AC_MSG_ERROR])
  8400. +])# _LT_PROG_F77
  8401. +
  8402. +dnl aclocal-1.4 backwards compatibility:
  8403. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8404. +
  8405. +
  8406. +# _LT_LANG_F77_CONFIG([TAG])
  8407. +# --------------------------
  8408. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8409. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8410. +# to write the compiler configuration to `libtool'.
  8411. +m4_defun([_LT_LANG_F77_CONFIG],
  8412. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8413. +AC_LANG_PUSH(Fortran 77)
  8414. +
  8415. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8416. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8417. +_LT_TAGVAR(always_export_symbols, $1)=no
  8418. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8419. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8420. +_LT_TAGVAR(hardcode_direct, $1)=no
  8421. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8422. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8423. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8424. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8425. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8426. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8427. +_LT_TAGVAR(inherit_rpath, $1)=no
  8428. +_LT_TAGVAR(module_cmds, $1)=
  8429. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8430. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8431. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8432. +_LT_TAGVAR(no_undefined_flag, $1)=
  8433. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8434. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8435. +
  8436. +# Source file extension for f77 test sources.
  8437. +ac_ext=f
  8438. +
  8439. +# Object file extension for compiled f77 test sources.
  8440. +objext=o
  8441. +_LT_TAGVAR(objext, $1)=$objext
  8442. +
  8443. +# No sense in running all these tests if we already determined that
  8444. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8445. +# are currently assumed to apply to all compilers on this platform,
  8446. +# and will be corrupted by setting them based on a non-working compiler.
  8447. +if test "$_lt_disable_F77" != yes; then
  8448. + # Code to be used in simple compile tests
  8449. + lt_simple_compile_test_code="\
  8450. + subroutine t
  8451. + return
  8452. + end
  8453. +"
  8454. +
  8455. + # Code to be used in simple link tests
  8456. + lt_simple_link_test_code="\
  8457. + program t
  8458. + end
  8459. +"
  8460. +
  8461. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8462. + _LT_TAG_COMPILER
  8463. +
  8464. + # save warnings/boilerplate of simple test code
  8465. + _LT_COMPILER_BOILERPLATE
  8466. + _LT_LINKER_BOILERPLATE
  8467. +
  8468. + # Allow CC to be a program name with arguments.
  8469. + lt_save_CC="$CC"
  8470. + lt_save_GCC=$GCC
  8471. + CC=${F77-"f77"}
  8472. + compiler=$CC
  8473. + _LT_TAGVAR(compiler, $1)=$CC
  8474. + _LT_CC_BASENAME([$compiler])
  8475. + GCC=$G77
  8476. + if test -n "$compiler"; then
  8477. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8478. + AC_MSG_RESULT([$can_build_shared])
  8479. +
  8480. + AC_MSG_CHECKING([whether to build shared libraries])
  8481. + test "$can_build_shared" = "no" && enable_shared=no
  8482. +
  8483. + # On AIX, shared libraries and static libraries use the same namespace, and
  8484. + # are all built from PIC.
  8485. case $host_os in
  8486. + aix3*)
  8487. + test "$enable_shared" = yes && enable_static=no
  8488. + if test -n "$RANLIB"; then
  8489. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8490. + postinstall_cmds='$RANLIB $lib'
  8491. + fi
  8492. + ;;
  8493. aix[[4-9]]*)
  8494. - # All AIX code is PIC.
  8495. - if test "$host_cpu" = ia64; then
  8496. - # AIX 5 now supports IA64 processor
  8497. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8498. - else
  8499. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8500. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8501. + test "$enable_shared" = yes && enable_static=no
  8502. fi
  8503. - ;;
  8504. - chorus*)
  8505. - case $cc_basename in
  8506. - cxch68*)
  8507. - # Green Hills C++ Compiler
  8508. - # _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"
  8509. - ;;
  8510. - esac
  8511. - ;;
  8512. - darwin*)
  8513. - # PIC is the default on this platform
  8514. - # Common symbols not allowed in MH_DYLIB files
  8515. - case $cc_basename in
  8516. - xlc*)
  8517. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8518. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8519. - ;;
  8520. - esac
  8521. - ;;
  8522. - dgux*)
  8523. - case $cc_basename in
  8524. - ec++*)
  8525. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8526. - ;;
  8527. - ghcx*)
  8528. - # Green Hills C++ Compiler
  8529. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8530. - ;;
  8531. - *)
  8532. - ;;
  8533. - esac
  8534. - ;;
  8535. - freebsd* | dragonfly*)
  8536. - # FreeBSD uses GNU C++
  8537. - ;;
  8538. - hpux9* | hpux10* | hpux11*)
  8539. - case $cc_basename in
  8540. - CC*)
  8541. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8542. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8543. - if test "$host_cpu" != ia64; then
  8544. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8545. - fi
  8546. - ;;
  8547. - aCC*)
  8548. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8549. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8550. - case $host_cpu in
  8551. - hppa*64*|ia64*)
  8552. - # +Z the default
  8553. - ;;
  8554. - *)
  8555. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8556. - ;;
  8557. - esac
  8558. - ;;
  8559. - *)
  8560. - ;;
  8561. - esac
  8562. - ;;
  8563. - interix*)
  8564. - # This is c89, which is MS Visual C++ (no shared libs)
  8565. - # Anyone wants to do a port?
  8566. - ;;
  8567. - irix5* | irix6* | nonstopux*)
  8568. - case $cc_basename in
  8569. - CC*)
  8570. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8571. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8572. - # CC pic flag -KPIC is the default.
  8573. - ;;
  8574. - *)
  8575. - ;;
  8576. - esac
  8577. - ;;
  8578. - linux* | k*bsd*-gnu)
  8579. - case $cc_basename in
  8580. - KCC*)
  8581. - # KAI C++ Compiler
  8582. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8583. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8584. - ;;
  8585. - icpc* | ecpc*)
  8586. - # Intel C++
  8587. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8588. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8589. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8590. - ;;
  8591. - pgCC* | pgcpp*)
  8592. - # Portland Group C++ compiler.
  8593. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8594. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8595. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8596. - ;;
  8597. - cxx*)
  8598. - # Compaq C++
  8599. - # Make sure the PIC flag is empty. It appears that all Alpha
  8600. - # Linux and Compaq Tru64 Unix objects are PIC.
  8601. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8602. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8603. - ;;
  8604. - *)
  8605. - case `$CC -V 2>&1 | sed 5q` in
  8606. - *Sun\ C*)
  8607. - # Sun C++ 5.9
  8608. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8609. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8610. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8611. - ;;
  8612. - esac
  8613. - ;;
  8614. - esac
  8615. - ;;
  8616. - lynxos*)
  8617. - ;;
  8618. - m88k*)
  8619. - ;;
  8620. - mvs*)
  8621. - case $cc_basename in
  8622. - cxx*)
  8623. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8624. - ;;
  8625. - *)
  8626. - ;;
  8627. - esac
  8628. - ;;
  8629. - netbsd* | netbsdelf*-gnu)
  8630. - ;;
  8631. - osf3* | osf4* | osf5*)
  8632. - case $cc_basename in
  8633. - KCC*)
  8634. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8635. - ;;
  8636. - RCC*)
  8637. - # Rational C++ 2.4.1
  8638. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8639. - ;;
  8640. - cxx*)
  8641. - # Digital/Compaq C++
  8642. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8643. - # Make sure the PIC flag is empty. It appears that all Alpha
  8644. - # Linux and Compaq Tru64 Unix objects are PIC.
  8645. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8646. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8647. - ;;
  8648. - *)
  8649. - ;;
  8650. - esac
  8651. - ;;
  8652. - psos*)
  8653. - ;;
  8654. - solaris*)
  8655. - case $cc_basename in
  8656. - CC*)
  8657. - # Sun C++ 4.2, 5.x and Centerline C++
  8658. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8659. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8660. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8661. - ;;
  8662. - gcx*)
  8663. - # Green Hills C++ Compiler
  8664. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8665. - ;;
  8666. - *)
  8667. - ;;
  8668. - esac
  8669. - ;;
  8670. - sunos4*)
  8671. - case $cc_basename in
  8672. - CC*)
  8673. - # Sun C++ 4.x
  8674. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8675. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8676. - ;;
  8677. - lcc*)
  8678. - # Lucid
  8679. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8680. - ;;
  8681. - *)
  8682. - ;;
  8683. - esac
  8684. - ;;
  8685. - tandem*)
  8686. - case $cc_basename in
  8687. - NCC*)
  8688. - # NonStop-UX NCC 3.20
  8689. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8690. - ;;
  8691. - *)
  8692. - ;;
  8693. - esac
  8694. - ;;
  8695. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8696. - case $cc_basename in
  8697. - CC*)
  8698. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8699. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8700. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8701. - ;;
  8702. - esac
  8703. - ;;
  8704. - vxworks*)
  8705. - ;;
  8706. - *)
  8707. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8708. - ;;
  8709. + ;;
  8710. esac
  8711. - fi
  8712. -],
  8713. + AC_MSG_RESULT([$enable_shared])
  8714. +
  8715. + AC_MSG_CHECKING([whether to build static libraries])
  8716. + # Make sure either enable_shared or enable_static is yes.
  8717. + test "$enable_shared" = yes || enable_static=yes
  8718. + AC_MSG_RESULT([$enable_static])
  8719. +
  8720. + _LT_TAGVAR(GCC, $1)="$G77"
  8721. + _LT_TAGVAR(LD, $1)="$LD"
  8722. +
  8723. + ## CAVEAT EMPTOR:
  8724. + ## There is no encapsulation within the following macros, do not change
  8725. + ## the running order or otherwise move them around unless you know exactly
  8726. + ## what you are doing...
  8727. + _LT_COMPILER_PIC($1)
  8728. + _LT_COMPILER_C_O($1)
  8729. + _LT_COMPILER_FILE_LOCKS($1)
  8730. + _LT_LINKER_SHLIBS($1)
  8731. + _LT_SYS_DYNAMIC_LINKER($1)
  8732. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8733. +
  8734. + _LT_CONFIG($1)
  8735. + fi # test -n "$compiler"
  8736. +
  8737. + GCC=$lt_save_GCC
  8738. + CC="$lt_save_CC"
  8739. +fi # test "$_lt_disable_F77" != yes
  8740. +
  8741. +AC_LANG_POP
  8742. +])# _LT_LANG_F77_CONFIG
  8743. +
  8744. +
  8745. +# _LT_PROG_FC
  8746. +# -----------
  8747. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8748. +# if there is no fortran compiler, we have our own version here.
  8749. +m4_defun([_LT_PROG_FC],
  8750. [
  8751. - if test "$GCC" = yes; then
  8752. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8753. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8754. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8755. +AC_PROG_FC
  8756. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8757. + _lt_disable_FC=yes
  8758. +fi
  8759. +popdef([AC_MSG_ERROR])
  8760. +])# _LT_PROG_FC
  8761. +
  8762. +dnl aclocal-1.4 backwards compatibility:
  8763. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8764. +
  8765. +
  8766. +# _LT_LANG_FC_CONFIG([TAG])
  8767. +# -------------------------
  8768. +# Ensure that the configuration variables for a Fortran compiler are
  8769. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8770. +# to write the compiler configuration to `libtool'.
  8771. +m4_defun([_LT_LANG_FC_CONFIG],
  8772. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8773. +AC_LANG_PUSH(Fortran)
  8774. +
  8775. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8776. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8777. +_LT_TAGVAR(always_export_symbols, $1)=no
  8778. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8779. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8780. +_LT_TAGVAR(hardcode_direct, $1)=no
  8781. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8782. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8783. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8784. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8785. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8786. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8787. +_LT_TAGVAR(inherit_rpath, $1)=no
  8788. +_LT_TAGVAR(module_cmds, $1)=
  8789. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8790. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8791. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8792. +_LT_TAGVAR(no_undefined_flag, $1)=
  8793. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8794. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8795. +
  8796. +# Source file extension for fc test sources.
  8797. +ac_ext=${ac_fc_srcext-f}
  8798. +
  8799. +# Object file extension for compiled fc test sources.
  8800. +objext=o
  8801. +_LT_TAGVAR(objext, $1)=$objext
  8802. +
  8803. +# No sense in running all these tests if we already determined that
  8804. +# the FC compiler isn't working. Some variables (like enable_shared)
  8805. +# are currently assumed to apply to all compilers on this platform,
  8806. +# and will be corrupted by setting them based on a non-working compiler.
  8807. +if test "$_lt_disable_FC" != yes; then
  8808. + # Code to be used in simple compile tests
  8809. + lt_simple_compile_test_code="\
  8810. + subroutine t
  8811. + return
  8812. + end
  8813. +"
  8814. +
  8815. + # Code to be used in simple link tests
  8816. + lt_simple_link_test_code="\
  8817. + program t
  8818. + end
  8819. +"
  8820. +
  8821. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8822. + _LT_TAG_COMPILER
  8823. +
  8824. + # save warnings/boilerplate of simple test code
  8825. + _LT_COMPILER_BOILERPLATE
  8826. + _LT_LINKER_BOILERPLATE
  8827. +
  8828. + # Allow CC to be a program name with arguments.
  8829. + lt_save_CC="$CC"
  8830. + lt_save_GCC=$GCC
  8831. + CC=${FC-"f95"}
  8832. + compiler=$CC
  8833. + GCC=$ac_cv_fc_compiler_gnu
  8834. +
  8835. + _LT_TAGVAR(compiler, $1)=$CC
  8836. + _LT_CC_BASENAME([$compiler])
  8837. +
  8838. + if test -n "$compiler"; then
  8839. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8840. + AC_MSG_RESULT([$can_build_shared])
  8841. +
  8842. + AC_MSG_CHECKING([whether to build shared libraries])
  8843. + test "$can_build_shared" = "no" && enable_shared=no
  8844. +
  8845. + # On AIX, shared libraries and static libraries use the same namespace, and
  8846. + # are all built from PIC.
  8847. + case $host_os in
  8848. + aix3*)
  8849. + test "$enable_shared" = yes && enable_static=no
  8850. + if test -n "$RANLIB"; then
  8851. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8852. + postinstall_cmds='$RANLIB $lib'
  8853. + fi
  8854. + ;;
  8855. + aix[[4-9]]*)
  8856. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8857. + test "$enable_shared" = yes && enable_static=no
  8858. + fi
  8859. + ;;
  8860. + esac
  8861. + AC_MSG_RESULT([$enable_shared])
  8862. +
  8863. + AC_MSG_CHECKING([whether to build static libraries])
  8864. + # Make sure either enable_shared or enable_static is yes.
  8865. + test "$enable_shared" = yes || enable_static=yes
  8866. + AC_MSG_RESULT([$enable_static])
  8867. +
  8868. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8869. + _LT_TAGVAR(LD, $1)="$LD"
  8870. +
  8871. + ## CAVEAT EMPTOR:
  8872. + ## There is no encapsulation within the following macros, do not change
  8873. + ## the running order or otherwise move them around unless you know exactly
  8874. + ## what you are doing...
  8875. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8876. + _LT_COMPILER_PIC($1)
  8877. + _LT_COMPILER_C_O($1)
  8878. + _LT_COMPILER_FILE_LOCKS($1)
  8879. + _LT_LINKER_SHLIBS($1)
  8880. + _LT_SYS_DYNAMIC_LINKER($1)
  8881. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8882. +
  8883. + _LT_CONFIG($1)
  8884. + fi # test -n "$compiler"
  8885. +
  8886. + GCC=$lt_save_GCC
  8887. + CC="$lt_save_CC"
  8888. +fi # test "$_lt_disable_FC" != yes
  8889. +
  8890. +AC_LANG_POP
  8891. +])# _LT_LANG_FC_CONFIG
  8892. +
  8893. +
  8894. +# _LT_LANG_GCJ_CONFIG([TAG])
  8895. +# --------------------------
  8896. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8897. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8898. +# to write the compiler configuration to `libtool'.
  8899. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8900. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8901. +AC_LANG_SAVE
  8902. +
  8903. +# Source file extension for Java test sources.
  8904. +ac_ext=java
  8905. +
  8906. +# Object file extension for compiled Java test sources.
  8907. +objext=o
  8908. +_LT_TAGVAR(objext, $1)=$objext
  8909. +
  8910. +# Code to be used in simple compile tests
  8911. +lt_simple_compile_test_code="class foo {}"
  8912. +
  8913. +# Code to be used in simple link tests
  8914. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8915. +
  8916. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8917. +_LT_TAG_COMPILER
  8918. +
  8919. +# save warnings/boilerplate of simple test code
  8920. +_LT_COMPILER_BOILERPLATE
  8921. +_LT_LINKER_BOILERPLATE
  8922. +
  8923. +# Allow CC to be a program name with arguments.
  8924. +lt_save_CC="$CC"
  8925. +lt_save_GCC=$GCC
  8926. +GCC=yes
  8927. +CC=${GCJ-"gcj"}
  8928. +compiler=$CC
  8929. +_LT_TAGVAR(compiler, $1)=$CC
  8930. +_LT_TAGVAR(LD, $1)="$LD"
  8931. +_LT_CC_BASENAME([$compiler])
  8932. - case $host_os in
  8933. - aix*)
  8934. - # All AIX code is PIC.
  8935. - if test "$host_cpu" = ia64; then
  8936. - # AIX 5 now supports IA64 processor
  8937. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8938. - fi
  8939. - ;;
  8940. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  8941. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8942. - amigaos*)
  8943. - # FIXME: we need at least 68020 code to build shared libraries, but
  8944. - # adding the `-m68020' flag to GCC prevents building anything better,
  8945. - # like `-m68040'.
  8946. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8947. - ;;
  8948. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8949. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8950. - # PIC is the default for these OSes.
  8951. - ;;
  8952. +if test -n "$compiler"; then
  8953. + _LT_COMPILER_NO_RTTI($1)
  8954. + _LT_COMPILER_PIC($1)
  8955. + _LT_COMPILER_C_O($1)
  8956. + _LT_COMPILER_FILE_LOCKS($1)
  8957. + _LT_LINKER_SHLIBS($1)
  8958. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8959. - mingw* | cygwin* | pw32* | os2*)
  8960. - # This hack is so that the source file can tell whether it is being
  8961. - # built for inclusion in a dll (and should export symbols for example).
  8962. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8963. - # (--disable-auto-import) libraries
  8964. - m4_if([$1], [GCJ], [],
  8965. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8966. - ;;
  8967. + _LT_CONFIG($1)
  8968. +fi
  8969. - darwin* | rhapsody*)
  8970. - # PIC is the default on this platform
  8971. - # Common symbols not allowed in MH_DYLIB files
  8972. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8973. - ;;
  8974. +AC_LANG_RESTORE
  8975. - interix[[3-9]]*)
  8976. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8977. - # Instead, we relocate shared libraries at runtime.
  8978. - ;;
  8979. +GCC=$lt_save_GCC
  8980. +CC="$lt_save_CC"
  8981. +])# _LT_LANG_GCJ_CONFIG
  8982. - msdosdjgpp*)
  8983. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  8984. - # on systems that don't support them.
  8985. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8986. - enable_shared=no
  8987. - ;;
  8988. - sysv4*MP*)
  8989. - if test -d /usr/nec; then
  8990. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8991. - fi
  8992. - ;;
  8993. +# _LT_LANG_RC_CONFIG([TAG])
  8994. +# -------------------------
  8995. +# Ensure that the configuration variables for the Windows resource compiler
  8996. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8997. +# to write the compiler configuration to `libtool'.
  8998. +m4_defun([_LT_LANG_RC_CONFIG],
  8999. +[AC_REQUIRE([LT_PROG_RC])dnl
  9000. +AC_LANG_SAVE
  9001. - hpux*)
  9002. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9003. - # not for PA HP-UX.
  9004. - case $host_cpu in
  9005. - hppa*64*|ia64*)
  9006. - # +Z the default
  9007. - ;;
  9008. - *)
  9009. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9010. - ;;
  9011. - esac
  9012. - ;;
  9013. +# Source file extension for RC test sources.
  9014. +ac_ext=rc
  9015. - *)
  9016. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9017. - ;;
  9018. - esac
  9019. - else
  9020. - # PORTME Check for flag to pass linker flags through the system compiler.
  9021. - case $host_os in
  9022. - aix*)
  9023. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9024. - if test "$host_cpu" = ia64; then
  9025. - # AIX 5 now supports IA64 processor
  9026. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9027. - else
  9028. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9029. - fi
  9030. - ;;
  9031. - darwin*)
  9032. - # PIC is the default on this platform
  9033. - # Common symbols not allowed in MH_DYLIB files
  9034. - case $cc_basename in
  9035. - xlc*)
  9036. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9037. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9038. - ;;
  9039. - esac
  9040. - ;;
  9041. +# Object file extension for compiled RC test sources.
  9042. +objext=o
  9043. +_LT_TAGVAR(objext, $1)=$objext
  9044. - mingw* | cygwin* | pw32* | os2*)
  9045. - # This hack is so that the source file can tell whether it is being
  9046. - # built for inclusion in a dll (and should export symbols for example).
  9047. - m4_if([$1], [GCJ], [],
  9048. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9049. - ;;
  9050. +# Code to be used in simple compile tests
  9051. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9052. - hpux9* | hpux10* | hpux11*)
  9053. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9054. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9055. - # not for PA HP-UX.
  9056. - case $host_cpu in
  9057. - hppa*64*|ia64*)
  9058. - # +Z the default
  9059. - ;;
  9060. - *)
  9061. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9062. - ;;
  9063. - esac
  9064. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9065. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9066. - ;;
  9067. +# Code to be used in simple link tests
  9068. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9069. - irix5* | irix6* | nonstopux*)
  9070. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9071. - # PIC (with -KPIC) is the default.
  9072. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9073. - ;;
  9074. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9075. +_LT_TAG_COMPILER
  9076. - newsos6)
  9077. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9078. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9079. - ;;
  9080. +# save warnings/boilerplate of simple test code
  9081. +_LT_COMPILER_BOILERPLATE
  9082. +_LT_LINKER_BOILERPLATE
  9083. - linux* | k*bsd*-gnu)
  9084. - case $cc_basename in
  9085. - icc* | ecc*)
  9086. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9087. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9088. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9089. - ;;
  9090. - pgcc* | pgf77* | pgf90* | pgf95*)
  9091. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9092. - # which looks to be a dead project)
  9093. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9094. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9095. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9096. - ;;
  9097. - ccc*)
  9098. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9099. - # All Alpha code is PIC.
  9100. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9101. - ;;
  9102. - *)
  9103. - case `$CC -V 2>&1 | sed 5q` in
  9104. - *Sun\ C*)
  9105. - # Sun C 5.9
  9106. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9107. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9108. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9109. - ;;
  9110. - *Sun\ F*)
  9111. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9112. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9113. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9114. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9115. - ;;
  9116. - esac
  9117. - ;;
  9118. - esac
  9119. - ;;
  9120. +# Allow CC to be a program name with arguments.
  9121. +lt_save_CC="$CC"
  9122. +lt_save_GCC=$GCC
  9123. +GCC=
  9124. +CC=${RC-"windres"}
  9125. +compiler=$CC
  9126. +_LT_TAGVAR(compiler, $1)=$CC
  9127. +_LT_CC_BASENAME([$compiler])
  9128. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9129. - osf3* | osf4* | osf5*)
  9130. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9131. - # All OSF/1 code is PIC.
  9132. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9133. - ;;
  9134. +if test -n "$compiler"; then
  9135. + :
  9136. + _LT_CONFIG($1)
  9137. +fi
  9138. - rdos*)
  9139. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9140. - ;;
  9141. +GCC=$lt_save_GCC
  9142. +AC_LANG_RESTORE
  9143. +CC="$lt_save_CC"
  9144. +])# _LT_LANG_RC_CONFIG
  9145. - solaris*)
  9146. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9147. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9148. - case $cc_basename in
  9149. - f77* | f90* | f95*)
  9150. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9151. - *)
  9152. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9153. - esac
  9154. - ;;
  9155. - sunos4*)
  9156. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9157. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9158. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9159. - ;;
  9160. +# LT_PROG_GCJ
  9161. +# -----------
  9162. +AC_DEFUN([LT_PROG_GCJ],
  9163. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9164. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9165. + [AC_CHECK_TOOL(GCJ, gcj,)
  9166. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9167. + AC_SUBST(GCJFLAGS)])])[]dnl
  9168. +])
  9169. - sysv4 | sysv4.2uw2* | sysv4.3*)
  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. +# Old name:
  9175. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9176. +dnl aclocal-1.4 backwards compatibility:
  9177. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9178. - sysv4*MP*)
  9179. - if test -d /usr/nec ;then
  9180. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9181. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9182. - fi
  9183. - ;;
  9184. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9185. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9186. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9187. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9188. - ;;
  9189. +# LT_PROG_RC
  9190. +# ----------
  9191. +AC_DEFUN([LT_PROG_RC],
  9192. +[AC_CHECK_TOOL(RC, windres,)
  9193. +])
  9194. - unicos*)
  9195. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9196. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9197. - ;;
  9198. +# Old name:
  9199. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9200. +dnl aclocal-1.4 backwards compatibility:
  9201. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9202. - uts4*)
  9203. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9204. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9205. - ;;
  9206. - *)
  9207. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9208. - ;;
  9209. - esac
  9210. - fi
  9211. +# _LT_DECL_EGREP
  9212. +# --------------
  9213. +# If we don't have a new enough Autoconf to choose the best grep
  9214. +# available, choose the one first in the user's PATH.
  9215. +m4_defun([_LT_DECL_EGREP],
  9216. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9217. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9218. +test -z "$GREP" && GREP=grep
  9219. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9220. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9221. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9222. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9223. +AC_SUBST([GREP])
  9224. ])
  9225. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9226. -#
  9227. -# Check to make sure the PIC flag actually works.
  9228. -#
  9229. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9230. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9231. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  9232. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9233. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9234. - "" | " "*) ;;
  9235. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9236. - esac],
  9237. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9238. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9239. -fi
  9240. -case $host_os in
  9241. - # For platforms which do not support PIC, -DPIC is meaningless:
  9242. - *djgpp*)
  9243. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9244. - ;;
  9245. - *)
  9246. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9247. - ;;
  9248. -esac
  9249. -#
  9250. -# Check to make sure the static flag actually works.
  9251. -#
  9252. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9253. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9254. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  9255. - $lt_tmp_static_flag,
  9256. - [],
  9257. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9258. +# _LT_DECL_OBJDUMP
  9259. +# --------------
  9260. +# If we don't have a new enough Autoconf to choose the best objdump
  9261. +# available, choose the one first in the user's PATH.
  9262. +m4_defun([_LT_DECL_OBJDUMP],
  9263. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9264. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9265. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9266. +AC_SUBST([OBJDUMP])
  9267. +])
  9268. +
  9269. +
  9270. +# _LT_DECL_SED
  9271. +# ------------
  9272. +# Check for a fully-functional sed program, that truncates
  9273. +# as few characters as possible. Prefer GNU sed if found.
  9274. +m4_defun([_LT_DECL_SED],
  9275. +[AC_PROG_SED
  9276. +test -z "$SED" && SED=sed
  9277. +Xsed="$SED -e 1s/^X//"
  9278. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9279. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9280. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9281. +])# _LT_DECL_SED
  9282. +
  9283. +m4_ifndef([AC_PROG_SED], [
  9284. +# NOTE: This macro has been submitted for inclusion into #
  9285. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9286. +# a released version of Autoconf we should remove this #
  9287. +# macro and use it instead. #
  9288. +
  9289. +m4_defun([AC_PROG_SED],
  9290. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9291. +AC_CACHE_VAL(lt_cv_path_SED,
  9292. +[# Loop through the user's path and test for sed and gsed.
  9293. +# Then use that list of sed's as ones to test for truncation.
  9294. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9295. +for as_dir in $PATH
  9296. +do
  9297. + IFS=$as_save_IFS
  9298. + test -z "$as_dir" && as_dir=.
  9299. + for lt_ac_prog in sed gsed; do
  9300. + for ac_exec_ext in '' $ac_executable_extensions; do
  9301. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9302. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9303. + fi
  9304. + done
  9305. + done
  9306. +done
  9307. +IFS=$as_save_IFS
  9308. +lt_ac_max=0
  9309. +lt_ac_count=0
  9310. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9311. +# along with /bin/sed that truncates output.
  9312. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9313. + test ! -f $lt_ac_sed && continue
  9314. + cat /dev/null > conftest.in
  9315. + lt_ac_count=0
  9316. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9317. + # Check for GNU sed and select it if it is found.
  9318. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9319. + lt_cv_path_SED=$lt_ac_sed
  9320. + break
  9321. + fi
  9322. + while true; do
  9323. + cat conftest.in conftest.in >conftest.tmp
  9324. + mv conftest.tmp conftest.in
  9325. + cp conftest.in conftest.nl
  9326. + echo >>conftest.nl
  9327. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9328. + cmp -s conftest.out conftest.nl || break
  9329. + # 10000 chars as input seems more than enough
  9330. + test $lt_ac_count -gt 10 && break
  9331. + lt_ac_count=`expr $lt_ac_count + 1`
  9332. + if test $lt_ac_count -gt $lt_ac_max; then
  9333. + lt_ac_max=$lt_ac_count
  9334. + lt_cv_path_SED=$lt_ac_sed
  9335. + fi
  9336. + done
  9337. +done
  9338. ])
  9339. +SED=$lt_cv_path_SED
  9340. +AC_SUBST([SED])
  9341. +AC_MSG_RESULT([$SED])
  9342. +])#AC_PROG_SED
  9343. +])#m4_ifndef
  9344. +
  9345. +# Old name:
  9346. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9347. +dnl aclocal-1.4 backwards compatibility:
  9348. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9349. +
  9350. +# _LT_CHECK_SHELL_FEATURES
  9351. +# ------------------------
  9352. +# Find out whether the shell is Bourne or XSI compatible,
  9353. +# or has some other useful features.
  9354. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9355. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9356. +# Try some XSI features
  9357. +xsi_shell=no
  9358. +( _lt_dummy="a/b/c"
  9359. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9360. + = c,a/b,, \
  9361. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9362. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9363. + && xsi_shell=yes
  9364. +AC_MSG_RESULT([$xsi_shell])
  9365. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9366. +
  9367. +AC_MSG_CHECKING([whether the shell understands "+="])
  9368. +lt_shell_append=no
  9369. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9370. + >/dev/null 2>&1 \
  9371. + && lt_shell_append=yes
  9372. +AC_MSG_RESULT([$lt_shell_append])
  9373. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9374. +
  9375. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9376. + lt_unset=unset
  9377. +else
  9378. + lt_unset=false
  9379. +fi
  9380. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9381. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9382. -# ------------------------------------
  9383. -# See if the linker supports building shared libraries.
  9384. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9385. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9386. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9387. -ifelse([$1],[CXX],[
  9388. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9389. - case $host_os in
  9390. - aix[[4-9]]*)
  9391. - # If we're using GNU nm, then we don't want the "-C" option.
  9392. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9393. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9394. - _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'
  9395. - else
  9396. - _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'
  9397. - fi
  9398. - ;;
  9399. - pw32*)
  9400. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9401. - ;;
  9402. - cygwin* | mingw*)
  9403. - _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'
  9404. - ;;
  9405. - linux* | k*bsd*-gnu)
  9406. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  9407. - ;;
  9408. - *)
  9409. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9410. +# test EBCDIC or ASCII
  9411. +case `echo X|tr X '\101'` in
  9412. + A) # ASCII based system
  9413. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9414. + lt_SP2NL='tr \040 \012'
  9415. + lt_NL2SP='tr \015\012 \040\040'
  9416. + ;;
  9417. + *) # EBCDIC based system
  9418. + lt_SP2NL='tr \100 \n'
  9419. + lt_NL2SP='tr \r\n \100\100'
  9420. ;;
  9421. +esac
  9422. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9423. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9424. +])# _LT_CHECK_SHELL_FEATURES
  9425. +
  9426. +
  9427. +# _LT_PROG_XSI_SHELLFNS
  9428. +# ---------------------
  9429. +# Bourne and XSI compatible variants of some useful shell functions.
  9430. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9431. +[case $xsi_shell in
  9432. + yes)
  9433. + cat << \_LT_EOF >> "$cfgfile"
  9434. +
  9435. +# func_dirname file append nondir_replacement
  9436. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9437. +# otherwise set result to NONDIR_REPLACEMENT.
  9438. +func_dirname ()
  9439. +{
  9440. + case ${1} in
  9441. + */*) func_dirname_result="${1%/*}${2}" ;;
  9442. + * ) func_dirname_result="${3}" ;;
  9443. esac
  9444. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9445. -],[
  9446. - runpath_var=
  9447. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9448. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9449. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9450. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9451. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9452. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9453. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9454. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9455. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9456. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9457. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9458. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9459. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9460. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9461. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9462. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9463. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9464. - _LT_AC_TAGVAR(module_cmds, $1)=
  9465. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9466. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9467. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9468. - # include_expsyms should be a list of space-separated symbols to be *always*
  9469. - # included in the symbol list
  9470. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9471. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9472. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9473. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9474. - # as well as any symbol that contains `d'.
  9475. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9476. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9477. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9478. - # the symbol is explicitly referenced. Since portable code cannot
  9479. - # rely on this symbol name, it's probably fine to never include it in
  9480. - # preloaded symbol tables.
  9481. - # Exclude shared library initialization/finalization symbols.
  9482. -dnl Note also adjust exclude_expsyms for C++ above.
  9483. - extract_expsyms_cmds=
  9484. - # Just being paranoid about ensuring that cc_basename is set.
  9485. - _LT_CC_BASENAME([$compiler])
  9486. - case $host_os in
  9487. - cygwin* | mingw* | pw32*)
  9488. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9489. - # When not using gcc, we currently assume that we are using
  9490. - # Microsoft Visual C++.
  9491. - if test "$GCC" != yes; then
  9492. - with_gnu_ld=no
  9493. - fi
  9494. - ;;
  9495. - interix*)
  9496. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9497. - with_gnu_ld=yes
  9498. - ;;
  9499. - openbsd*)
  9500. - with_gnu_ld=no
  9501. - ;;
  9502. +}
  9503. +
  9504. +# func_basename file
  9505. +func_basename ()
  9506. +{
  9507. + func_basename_result="${1##*/}"
  9508. +}
  9509. +
  9510. +# func_dirname_and_basename file append nondir_replacement
  9511. +# perform func_basename and func_dirname in a single function
  9512. +# call:
  9513. +# dirname: Compute the dirname of FILE. If nonempty,
  9514. +# add APPEND to the result, otherwise set result
  9515. +# to NONDIR_REPLACEMENT.
  9516. +# value returned in "$func_dirname_result"
  9517. +# basename: Compute filename of FILE.
  9518. +# value retuned in "$func_basename_result"
  9519. +# Implementation must be kept synchronized with func_dirname
  9520. +# and func_basename. For efficiency, we do not delegate to
  9521. +# those functions but instead duplicate the functionality here.
  9522. +func_dirname_and_basename ()
  9523. +{
  9524. + case ${1} in
  9525. + */*) func_dirname_result="${1%/*}${2}" ;;
  9526. + * ) func_dirname_result="${3}" ;;
  9527. esac
  9528. + func_basename_result="${1##*/}"
  9529. +}
  9530. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9531. - if test "$with_gnu_ld" = yes; then
  9532. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9533. - wlarc='${wl}'
  9534. +# func_stripname prefix suffix name
  9535. +# strip PREFIX and SUFFIX off of NAME.
  9536. +# PREFIX and SUFFIX must not contain globbing or regex special
  9537. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9538. +# dot (in which case that matches only a dot).
  9539. +func_stripname ()
  9540. +{
  9541. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9542. + # positional parameters, so assign one to ordinary parameter first.
  9543. + func_stripname_result=${3}
  9544. + func_stripname_result=${func_stripname_result#"${1}"}
  9545. + func_stripname_result=${func_stripname_result%"${2}"}
  9546. +}
  9547. - # Set some defaults for GNU ld with shared library support. These
  9548. - # are reset later if shared libraries are not supported. Putting them
  9549. - # here allows them to be overridden if necessary.
  9550. - runpath_var=LD_RUN_PATH
  9551. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9552. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9553. - # ancient GNU ld didn't support --whole-archive et. al.
  9554. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9555. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9556. - else
  9557. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9558. - fi
  9559. - supports_anon_versioning=no
  9560. - case `$LD -v 2>/dev/null` in
  9561. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9562. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9563. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9564. - *\ 2.11.*) ;; # other 2.11 versions
  9565. - *) supports_anon_versioning=yes ;;
  9566. - esac
  9567. +# func_opt_split
  9568. +func_opt_split ()
  9569. +{
  9570. + func_opt_split_opt=${1%%=*}
  9571. + func_opt_split_arg=${1#*=}
  9572. +}
  9573. - # See if GNU ld supports shared libraries.
  9574. - case $host_os in
  9575. - aix[[3-9]]*)
  9576. - # On AIX/PPC, the GNU linker is very broken
  9577. - if test "$host_cpu" != ia64; then
  9578. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9579. - cat <<EOF 1>&2
  9580. +# func_lo2o object
  9581. +func_lo2o ()
  9582. +{
  9583. + case ${1} in
  9584. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9585. + *) func_lo2o_result=${1} ;;
  9586. + esac
  9587. +}
  9588. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9589. -*** to be unable to reliably create shared libraries on AIX.
  9590. -*** Therefore, libtool is disabling shared libraries support. If you
  9591. -*** really care for shared libraries, you may want to modify your PATH
  9592. -*** so that a non-GNU linker is found, and then restart.
  9593. +# func_xform libobj-or-source
  9594. +func_xform ()
  9595. +{
  9596. + func_xform_result=${1%.*}.lo
  9597. +}
  9598. -EOF
  9599. - fi
  9600. - ;;
  9601. +# func_arith arithmetic-term...
  9602. +func_arith ()
  9603. +{
  9604. + func_arith_result=$(( $[*] ))
  9605. +}
  9606. - amigaos*)
  9607. - _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)'
  9608. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9609. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9610. -
  9611. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9612. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9613. - # to version 4, is to share data among multiple programs linked
  9614. - # with the same dynamic library. Since this doesn't match the
  9615. - # behavior of shared libraries on other platforms, we can't use
  9616. - # them.
  9617. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9618. - ;;
  9619. +# func_len string
  9620. +# STRING may not start with a hyphen.
  9621. +func_len ()
  9622. +{
  9623. + func_len_result=${#1}
  9624. +}
  9625. - beos*)
  9626. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9627. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9628. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9629. - # support --undefined. This deserves some investigation. FIXME
  9630. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9631. - else
  9632. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9633. - fi
  9634. - ;;
  9635. +_LT_EOF
  9636. + ;;
  9637. + *) # Bourne compatible functions.
  9638. + cat << \_LT_EOF >> "$cfgfile"
  9639. - cygwin* | mingw* | pw32*)
  9640. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9641. - # as there is no search path for DLLs.
  9642. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9643. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9644. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9645. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9646. - _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'
  9647. +# func_dirname file append nondir_replacement
  9648. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9649. +# otherwise set result to NONDIR_REPLACEMENT.
  9650. +func_dirname ()
  9651. +{
  9652. + # Extract subdirectory from the argument.
  9653. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9654. + if test "X$func_dirname_result" = "X${1}"; then
  9655. + func_dirname_result="${3}"
  9656. + else
  9657. + func_dirname_result="$func_dirname_result${2}"
  9658. + fi
  9659. +}
  9660. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9661. - _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'
  9662. - # If the export-symbols file already is a .def file (1st line
  9663. - # is EXPORTS), use it as is; otherwise, prepend...
  9664. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9665. - cp $export_symbols $output_objdir/$soname.def;
  9666. - else
  9667. - echo EXPORTS > $output_objdir/$soname.def;
  9668. - cat $export_symbols >> $output_objdir/$soname.def;
  9669. - fi~
  9670. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9671. - else
  9672. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9673. - fi
  9674. - ;;
  9675. +# func_basename file
  9676. +func_basename ()
  9677. +{
  9678. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9679. +}
  9680. - interix[[3-9]]*)
  9681. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9682. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9683. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9684. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9685. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9686. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9687. - # default) and relocated if they conflict, which is a slow very memory
  9688. - # consuming and fragmenting process. To avoid this, we pick a random,
  9689. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9690. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9691. - _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'
  9692. - _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'
  9693. - ;;
  9694. +dnl func_dirname_and_basename
  9695. +dnl A portable version of this function is already defined in general.m4sh
  9696. +dnl so there is no need for it here.
  9697. +
  9698. +# func_stripname prefix suffix name
  9699. +# strip PREFIX and SUFFIX off of NAME.
  9700. +# PREFIX and SUFFIX must not contain globbing or regex special
  9701. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9702. +# dot (in which case that matches only a dot).
  9703. +# func_strip_suffix prefix name
  9704. +func_stripname ()
  9705. +{
  9706. + case ${2} in
  9707. + .*) func_stripname_result=`$ECHO "X${3}" \
  9708. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9709. + *) func_stripname_result=`$ECHO "X${3}" \
  9710. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9711. + esac
  9712. +}
  9713. - gnu* | linux* | k*bsd*-gnu)
  9714. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9715. - tmp_addflag=
  9716. - case $cc_basename,$host_cpu in
  9717. - pgcc*) # Portland Group C compiler
  9718. - _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'
  9719. - tmp_addflag=' $pic_flag'
  9720. - ;;
  9721. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9722. - _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'
  9723. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9724. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9725. - tmp_addflag=' -i_dynamic' ;;
  9726. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9727. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9728. - ifc* | ifort*) # Intel Fortran compiler
  9729. - tmp_addflag=' -nofor_main' ;;
  9730. - esac
  9731. - case `$CC -V 2>&1 | sed 5q` in
  9732. - *Sun\ C*) # Sun C 5.9
  9733. - _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'
  9734. - tmp_sharedflag='-G' ;;
  9735. - *Sun\ F*) # Sun Fortran 8.3
  9736. - tmp_sharedflag='-G' ;;
  9737. - *)
  9738. - tmp_sharedflag='-shared' ;;
  9739. - esac
  9740. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9741. +# sed scripts:
  9742. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9743. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9744. - if test $supports_anon_versioning = yes; then
  9745. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9746. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9747. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9748. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9749. - fi
  9750. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  9751. - else
  9752. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9753. - fi
  9754. - ;;
  9755. +# func_opt_split
  9756. +func_opt_split ()
  9757. +{
  9758. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9759. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9760. +}
  9761. - netbsd* | netbsdelf*-gnu)
  9762. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9763. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9764. - wlarc=
  9765. - else
  9766. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9767. - _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'
  9768. - fi
  9769. - ;;
  9770. +# func_lo2o object
  9771. +func_lo2o ()
  9772. +{
  9773. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9774. +}
  9775. - solaris*)
  9776. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9777. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9778. - cat <<EOF 1>&2
  9779. +# func_xform libobj-or-source
  9780. +func_xform ()
  9781. +{
  9782. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9783. +}
  9784. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9785. -*** create shared libraries on Solaris systems. Therefore, libtool
  9786. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9787. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9788. -*** your PATH or compiler configuration so that the native linker is
  9789. -*** used, and then restart.
  9790. +# func_arith arithmetic-term...
  9791. +func_arith ()
  9792. +{
  9793. + func_arith_result=`expr "$[@]"`
  9794. +}
  9795. -EOF
  9796. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9797. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9798. - _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'
  9799. - else
  9800. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9801. - fi
  9802. - ;;
  9803. +# func_len string
  9804. +# STRING may not start with a hyphen.
  9805. +func_len ()
  9806. +{
  9807. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9808. +}
  9809. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9810. - case `$LD -v 2>&1` in
  9811. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9812. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9813. - cat <<_LT_EOF 1>&2
  9814. +_LT_EOF
  9815. +esac
  9816. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9817. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9818. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9819. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9820. -*** your PATH or compiler configuration so that the native linker is
  9821. -*** used, and then restart.
  9822. +case $lt_shell_append in
  9823. + yes)
  9824. + cat << \_LT_EOF >> "$cfgfile"
  9825. +
  9826. +# func_append var value
  9827. +# Append VALUE to the end of shell variable VAR.
  9828. +func_append ()
  9829. +{
  9830. + eval "$[1]+=\$[2]"
  9831. +}
  9832. +_LT_EOF
  9833. + ;;
  9834. + *)
  9835. + cat << \_LT_EOF >> "$cfgfile"
  9836. +
  9837. +# func_append var value
  9838. +# Append VALUE to the end of shell variable VAR.
  9839. +func_append ()
  9840. +{
  9841. + eval "$[1]=\$$[1]\$[2]"
  9842. +}
  9843. _LT_EOF
  9844. - ;;
  9845. - *)
  9846. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9847. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9848. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9849. - _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'
  9850. - else
  9851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9852. - fi
  9853. - ;;
  9854. - esac
  9855. - ;;
  9856. + ;;
  9857. + esac
  9858. +])
  9859. - sunos4*)
  9860. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9861. - wlarc=
  9862. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9863. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9864. - ;;
  9865. +# Helper functions for option handling. -*- Autoconf -*-
  9866. +#
  9867. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9868. +# Written by Gary V. Vaughan, 2004
  9869. +#
  9870. +# This file is free software; the Free Software Foundation gives
  9871. +# unlimited permission to copy and/or distribute it, with or without
  9872. +# modifications, as long as this notice is preserved.
  9873. - *)
  9874. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9875. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9876. - _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'
  9877. - else
  9878. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9879. - fi
  9880. - ;;
  9881. - esac
  9882. +# serial 6 ltoptions.m4
  9883. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9884. - runpath_var=
  9885. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9886. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9887. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9888. - fi
  9889. - else
  9890. - # PORTME fill in a description of your system's linker (not GNU ld)
  9891. - case $host_os in
  9892. - aix3*)
  9893. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9894. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9895. - _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'
  9896. - # Note: this linker hardcodes the directories in LIBPATH if there
  9897. - # are no directories specified by -L.
  9898. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9899. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9900. - # Neither direct hardcoding nor static linking is supported with a
  9901. - # broken collect2.
  9902. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9903. - fi
  9904. - ;;
  9905. +# This is to help aclocal find these macros, as it can't see m4_define.
  9906. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9907. +
  9908. +
  9909. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9910. +# ------------------------------------------
  9911. +m4_define([_LT_MANGLE_OPTION],
  9912. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9913. - aix[[4-9]]*)
  9914. - if test "$host_cpu" = ia64; then
  9915. - # On IA64, the linker does run time linking by default, so we don't
  9916. - # have to do anything special.
  9917. - aix_use_runtimelinking=no
  9918. - exp_sym_flag='-Bexport'
  9919. - no_entry_flag=""
  9920. - else
  9921. - # If we're using GNU nm, then we don't want the "-C" option.
  9922. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9923. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9924. - _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'
  9925. - else
  9926. - _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'
  9927. - fi
  9928. - aix_use_runtimelinking=no
  9929. - # Test if we are trying to use run time linking or normal
  9930. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9931. - # need to do runtime linking.
  9932. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9933. - for ld_flag in $LDFLAGS; do
  9934. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9935. - aix_use_runtimelinking=yes
  9936. - break
  9937. - fi
  9938. - done
  9939. - ;;
  9940. - esac
  9941. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9942. +# ---------------------------------------
  9943. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9944. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9945. +# saved as a flag.
  9946. +m4_define([_LT_SET_OPTION],
  9947. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9948. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9949. + _LT_MANGLE_DEFUN([$1], [$2]),
  9950. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9951. +])
  9952. - exp_sym_flag='-bexport'
  9953. - no_entry_flag='-bnoentry'
  9954. - fi
  9955. - # When large executables or shared objects are built, AIX ld can
  9956. - # have problems creating the table of contents. If linking a library
  9957. - # or program results in "error TOC overflow" add -mminimal-toc to
  9958. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9959. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9960. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9961. +# ------------------------------------------------------------
  9962. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9963. +m4_define([_LT_IF_OPTION],
  9964. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9965. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  9966. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9967. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  9968. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  9969. - if test "$GCC" = yes; then
  9970. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9971. - # We only want to do this on AIX 4.2 and lower, the check
  9972. - # below for broken collect2 doesn't work under 4.3+
  9973. - collect2name=`${CC} -print-prog-name=collect2`
  9974. - if test -f "$collect2name" && \
  9975. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  9976. - then
  9977. - # We have reworked collect2
  9978. - :
  9979. - else
  9980. - # We have old collect2
  9981. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9982. - # It fails to find uninstalled libraries when the uninstalled
  9983. - # path is not listed in the libpath. Setting hardcode_minus_L
  9984. - # to unsupported forces relinking
  9985. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9986. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9987. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9988. - fi
  9989. - ;;
  9990. - esac
  9991. - shared_flag='-shared'
  9992. - if test "$aix_use_runtimelinking" = yes; then
  9993. - shared_flag="$shared_flag "'${wl}-G'
  9994. - fi
  9995. - else
  9996. - # not using gcc
  9997. - if test "$host_cpu" = ia64; then
  9998. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9999. - # chokes on -Wl,-G. The following line is correct:
  10000. - shared_flag='-G'
  10001. - else
  10002. - if test "$aix_use_runtimelinking" = yes; then
  10003. - shared_flag='${wl}-G'
  10004. - else
  10005. - shared_flag='${wl}-bM:SRE'
  10006. - fi
  10007. - fi
  10008. - fi
  10009. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  10010. +# -------------------------------------------------------
  10011. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  10012. +# are set.
  10013. +m4_define([_LT_UNLESS_OPTIONS],
  10014. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10015. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  10016. + [m4_define([$0_found])])])[]dnl
  10017. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  10018. +])[]dnl
  10019. +])
  10020. - # It seems that -bexpall does not export symbols beginning with
  10021. - # underscore (_), so it is better to generate a list of symbols to export.
  10022. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10023. - if test "$aix_use_runtimelinking" = yes; then
  10024. - # Warning - without using the other runtime loading flags (-brtl),
  10025. - # -berok will link without error, but may produce a broken library.
  10026. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10027. - # Determine the default libpath from the value encoded in an empty executable.
  10028. - _LT_AC_SYS_LIBPATH_AIX
  10029. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10030. - _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"
  10031. - else
  10032. - if test "$host_cpu" = ia64; then
  10033. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10034. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10035. - _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"
  10036. - else
  10037. - # Determine the default libpath from the value encoded in an empty executable.
  10038. - _LT_AC_SYS_LIBPATH_AIX
  10039. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10040. - # Warning - without using the other run time loading flags,
  10041. - # -berok will link without error, but may produce a broken library.
  10042. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10043. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10044. - # Exported symbols can be pulled into shared objects from archives
  10045. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10046. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10047. - # This is similar to how AIX traditionally builds its shared libraries.
  10048. - _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'
  10049. - fi
  10050. - fi
  10051. - ;;
  10052. - amigaos*)
  10053. - _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)'
  10054. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10055. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10056. - # see comment about different semantics on the GNU ld section
  10057. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10058. - ;;
  10059. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  10060. +# ----------------------------------------
  10061. +# OPTION-LIST is a space-separated list of Libtool options associated
  10062. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  10063. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  10064. +# the unknown option and exit.
  10065. +m4_defun([_LT_SET_OPTIONS],
  10066. +[# Set options
  10067. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10068. + [_LT_SET_OPTION([$1], _LT_Option)])
  10069. +
  10070. +m4_if([$1],[LT_INIT],[
  10071. + dnl
  10072. + dnl Simply set some default values (i.e off) if boolean options were not
  10073. + dnl specified:
  10074. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  10075. + ])
  10076. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  10077. + ])
  10078. + dnl
  10079. + dnl If no reference was made to various pairs of opposing options, then
  10080. + dnl we run the default mode handler for the pair. For example, if neither
  10081. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10082. + dnl archives by default:
  10083. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10084. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10085. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10086. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10087. + [_LT_ENABLE_FAST_INSTALL])
  10088. + ])
  10089. +])# _LT_SET_OPTIONS
  10090. - bsdi[[45]]*)
  10091. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10092. - ;;
  10093. - cygwin* | mingw* | pw32*)
  10094. - # When not using gcc, we currently assume that we are using
  10095. - # Microsoft Visual C++.
  10096. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10097. - # no search path for DLLs.
  10098. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10099. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10100. - # Tell ltmain to make .lib files, not .a files.
  10101. - libext=lib
  10102. - # Tell ltmain to make .dll files, not .so files.
  10103. - shrext_cmds=".dll"
  10104. - # FIXME: Setting linknames here is a bad hack.
  10105. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10106. - # The linker will automatically build a .lib file if we build a DLL.
  10107. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10108. - # FIXME: Should let the user specify the lib program.
  10109. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10110. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10111. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10112. - ;;
  10113. - darwin* | rhapsody*)
  10114. - case $host_os in
  10115. - rhapsody* | darwin1.[[012]])
  10116. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10117. - ;;
  10118. - *) # Darwin 1.3 on
  10119. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10120. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10121. - else
  10122. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10123. - 10.[[012]])
  10124. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10125. - ;;
  10126. - 10.*)
  10127. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10128. - ;;
  10129. - esac
  10130. - fi
  10131. - ;;
  10132. - esac
  10133. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10134. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10135. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10136. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10137. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10138. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10139. - if test "$GCC" = yes ; then
  10140. - output_verbose_link_cmd='echo'
  10141. - _LT_AC_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}"
  10142. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10143. - _LT_AC_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}"
  10144. - _LT_AC_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}"
  10145. - else
  10146. - case $cc_basename in
  10147. - xlc*)
  10148. - output_verbose_link_cmd='echo'
  10149. - _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'
  10150. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10151. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10152. - _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}'
  10153. - _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}'
  10154. - ;;
  10155. - *)
  10156. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10157. - ;;
  10158. - esac
  10159. - fi
  10160. - ;;
  10161. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10162. +# -----------------------------------------
  10163. +m4_define([_LT_MANGLE_DEFUN],
  10164. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10165. - dgux*)
  10166. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10167. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10168. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10169. - ;;
  10170. - freebsd1*)
  10171. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10172. - ;;
  10173. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10174. +# -----------------------------------------------
  10175. +m4_define([LT_OPTION_DEFINE],
  10176. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10177. +])# LT_OPTION_DEFINE
  10178. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10179. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10180. - # does not break anything, and helps significantly (at the cost of a little
  10181. - # extra space).
  10182. - freebsd2.2*)
  10183. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10184. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10185. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10186. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10187. - ;;
  10188. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10189. - freebsd2*)
  10190. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10191. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10192. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10193. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10194. - ;;
  10195. +# dlopen
  10196. +# ------
  10197. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10198. +])
  10199. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10200. - freebsd* | dragonfly*)
  10201. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10202. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10203. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10204. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10205. - ;;
  10206. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10207. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10208. +AC_DIAGNOSE([obsolete],
  10209. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10210. +put the `dlopen' option into LT_INIT's first parameter.])
  10211. +])
  10212. - hpux9*)
  10213. - if test "$GCC" = yes; then
  10214. - _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'
  10215. - else
  10216. - _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'
  10217. - fi
  10218. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10219. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10220. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10221. +dnl aclocal-1.4 backwards compatibility:
  10222. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10223. - # hardcode_minus_L: Not really in the search PATH,
  10224. - # but as the default location of the library.
  10225. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10226. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10227. - ;;
  10228. - hpux10*)
  10229. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10230. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10231. - else
  10232. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10233. - fi
  10234. - if test "$with_gnu_ld" = no; then
  10235. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10236. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10237. +# win32-dll
  10238. +# ---------
  10239. +# Declare package support for building win32 dll's.
  10240. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10241. +[enable_win32_dll=yes
  10242. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10243. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10244. +case $host in
  10245. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10246. + AC_CHECK_TOOL(AS, as, false)
  10247. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10248. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10249. + ;;
  10250. +esac
  10251. - # hardcode_minus_L: Not really in the search PATH,
  10252. - # but as the default location of the library.
  10253. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10254. - fi
  10255. - ;;
  10256. +test -z "$AS" && AS=as
  10257. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10258. - hpux11*)
  10259. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10260. - case $host_cpu in
  10261. - hppa*64*)
  10262. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10263. - ;;
  10264. - ia64*)
  10265. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10266. - ;;
  10267. - *)
  10268. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10269. - ;;
  10270. - esac
  10271. - else
  10272. - case $host_cpu in
  10273. - hppa*64*)
  10274. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10275. - ;;
  10276. - ia64*)
  10277. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10278. - ;;
  10279. - *)
  10280. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10281. - ;;
  10282. - esac
  10283. - fi
  10284. - if test "$with_gnu_ld" = no; then
  10285. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10286. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10287. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10288. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10289. - case $host_cpu in
  10290. - hppa*64*|ia64*)
  10291. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10292. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10293. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10294. - ;;
  10295. - *)
  10296. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10297. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10298. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10299. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10300. +])# win32-dll
  10301. - # hardcode_minus_L: Not really in the search PATH,
  10302. - # but as the default location of the library.
  10303. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10304. - ;;
  10305. - esac
  10306. - fi
  10307. - ;;
  10308. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10309. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10310. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10311. +AC_DIAGNOSE([obsolete],
  10312. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10313. +put the `win32-dll' option into LT_INIT's first parameter.])
  10314. +])
  10315. - irix5* | irix6* | nonstopux*)
  10316. - if test "$GCC" = yes; then
  10317. - _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'
  10318. - else
  10319. - _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'
  10320. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10321. - fi
  10322. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10323. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10324. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10325. - ;;
  10326. +dnl aclocal-1.4 backwards compatibility:
  10327. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10328. - netbsd* | netbsdelf*-gnu)
  10329. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10330. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10331. - else
  10332. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10333. - fi
  10334. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10335. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10336. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10337. - ;;
  10338. - newsos6)
  10339. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10340. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10341. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10342. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10343. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10344. +# _LT_ENABLE_SHARED([DEFAULT])
  10345. +# ----------------------------
  10346. +# implement the --enable-shared flag, and supports the `shared' and
  10347. +# `disable-shared' LT_INIT options.
  10348. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10349. +m4_define([_LT_ENABLE_SHARED],
  10350. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10351. +AC_ARG_ENABLE([shared],
  10352. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10353. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10354. + [p=${PACKAGE-default}
  10355. + case $enableval in
  10356. + yes) enable_shared=yes ;;
  10357. + no) enable_shared=no ;;
  10358. + *)
  10359. + enable_shared=no
  10360. + # Look at the argument we got. We use all the common list separators.
  10361. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10362. + for pkg in $enableval; do
  10363. + IFS="$lt_save_ifs"
  10364. + if test "X$pkg" = "X$p"; then
  10365. + enable_shared=yes
  10366. + fi
  10367. + done
  10368. + IFS="$lt_save_ifs"
  10369. ;;
  10370. + esac],
  10371. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10372. - openbsd*)
  10373. - if test -f /usr/libexec/ld.so; then
  10374. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10375. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10376. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10377. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10378. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10379. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10380. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10381. - else
  10382. - case $host_os in
  10383. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10384. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10385. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10386. - ;;
  10387. - *)
  10388. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10389. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10390. - ;;
  10391. - esac
  10392. - fi
  10393. - else
  10394. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10395. - fi
  10396. - ;;
  10397. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10398. + [Whether or not to build shared libraries])
  10399. +])# _LT_ENABLE_SHARED
  10400. - os2*)
  10401. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10402. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10403. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10404. - _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'
  10405. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10406. - ;;
  10407. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10408. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10409. - osf3*)
  10410. - if test "$GCC" = yes; then
  10411. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10412. - _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'
  10413. - else
  10414. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10415. - _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'
  10416. - fi
  10417. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10418. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10419. - ;;
  10420. +# Old names:
  10421. +AC_DEFUN([AC_ENABLE_SHARED],
  10422. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10423. +])
  10424. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10425. - if test "$GCC" = yes; then
  10426. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10427. - _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'
  10428. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10429. - else
  10430. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10431. - _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'
  10432. - _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~
  10433. - $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'
  10434. +AC_DEFUN([AC_DISABLE_SHARED],
  10435. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10436. +])
  10437. - # Both c and cxx compiler support -rpath directly
  10438. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10439. - fi
  10440. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10441. - ;;
  10442. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10443. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10444. - solaris*)
  10445. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10446. - if test "$GCC" = yes; then
  10447. - wlarc='${wl}'
  10448. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10449. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10450. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10451. - else
  10452. - wlarc=''
  10453. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10454. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10455. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10456. - fi
  10457. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10458. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10459. - case $host_os in
  10460. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10461. - *)
  10462. - # The compiler driver will combine and reorder linker options,
  10463. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10464. - # but is careful enough not to reorder.
  10465. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10466. - if test "$GCC" = yes; then
  10467. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10468. - else
  10469. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10470. +dnl aclocal-1.4 backwards compatibility:
  10471. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10472. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10473. +
  10474. +
  10475. +
  10476. +# _LT_ENABLE_STATIC([DEFAULT])
  10477. +# ----------------------------
  10478. +# implement the --enable-static flag, and support the `static' and
  10479. +# `disable-static' LT_INIT options.
  10480. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10481. +m4_define([_LT_ENABLE_STATIC],
  10482. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10483. +AC_ARG_ENABLE([static],
  10484. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10485. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10486. + [p=${PACKAGE-default}
  10487. + case $enableval in
  10488. + yes) enable_static=yes ;;
  10489. + no) enable_static=no ;;
  10490. + *)
  10491. + enable_static=no
  10492. + # Look at the argument we got. We use all the common list separators.
  10493. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10494. + for pkg in $enableval; do
  10495. + IFS="$lt_save_ifs"
  10496. + if test "X$pkg" = "X$p"; then
  10497. + enable_static=yes
  10498. fi
  10499. - ;;
  10500. - esac
  10501. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10502. - ;;
  10503. -
  10504. - sunos4*)
  10505. - if test "x$host_vendor" = xsequent; then
  10506. - # Use $CC to link under sequent, because it throws in some extra .o
  10507. - # files that make .init and .fini sections work.
  10508. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10509. - else
  10510. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10511. - fi
  10512. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10513. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10514. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10515. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10516. + done
  10517. + IFS="$lt_save_ifs"
  10518. ;;
  10519. + esac],
  10520. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10521. - sysv4)
  10522. - case $host_vendor in
  10523. - sni)
  10524. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10525. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10526. - ;;
  10527. - siemens)
  10528. - ## LD is ld it makes a PLAMLIB
  10529. - ## CC just makes a GrossModule.
  10530. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10531. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10532. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10533. - ;;
  10534. - motorola)
  10535. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10536. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10537. - ;;
  10538. - esac
  10539. - runpath_var='LD_RUN_PATH'
  10540. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10541. - ;;
  10542. + _LT_DECL([build_old_libs], [enable_static], [0],
  10543. + [Whether or not to build static libraries])
  10544. +])# _LT_ENABLE_STATIC
  10545. - sysv4.3*)
  10546. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10547. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10548. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10549. - ;;
  10550. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10551. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10552. - sysv4*MP*)
  10553. - if test -d /usr/nec; then
  10554. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10555. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10556. - runpath_var=LD_RUN_PATH
  10557. - hardcode_runpath_var=yes
  10558. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10559. - fi
  10560. - ;;
  10561. +# Old names:
  10562. +AC_DEFUN([AC_ENABLE_STATIC],
  10563. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10564. +])
  10565. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10566. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10567. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10568. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10569. - runpath_var='LD_RUN_PATH'
  10570. +AC_DEFUN([AC_DISABLE_STATIC],
  10571. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10572. +])
  10573. - if test "$GCC" = yes; then
  10574. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10575. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10576. - else
  10577. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10578. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10579. - fi
  10580. - ;;
  10581. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10582. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10583. - sysv5* | sco3.2v5* | sco5v6*)
  10584. - # Note: We can NOT use -z defs as we might desire, because we do not
  10585. - # link with -lc, and that would cause any symbols used from libc to
  10586. - # always be unresolved, which means just about no library would
  10587. - # ever link correctly. If we're not using GNU ld we use -z text
  10588. - # though, which does catch some bad symbols but isn't as heavy-handed
  10589. - # as -z defs.
  10590. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10591. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10592. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10593. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10594. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10595. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10596. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10597. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10598. - runpath_var='LD_RUN_PATH'
  10599. +dnl aclocal-1.4 backwards compatibility:
  10600. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10601. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10602. - if test "$GCC" = yes; then
  10603. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10604. - _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'
  10605. - else
  10606. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10607. - _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'
  10608. - fi
  10609. - ;;
  10610. - uts4*)
  10611. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10612. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10613. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10614. - ;;
  10615. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10616. +# ----------------------------------
  10617. +# implement the --enable-fast-install flag, and support the `fast-install'
  10618. +# and `disable-fast-install' LT_INIT options.
  10619. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10620. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10621. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10622. +AC_ARG_ENABLE([fast-install],
  10623. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10624. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10625. + [p=${PACKAGE-default}
  10626. + case $enableval in
  10627. + yes) enable_fast_install=yes ;;
  10628. + no) enable_fast_install=no ;;
  10629. *)
  10630. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10631. + enable_fast_install=no
  10632. + # Look at the argument we got. We use all the common list separators.
  10633. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10634. + for pkg in $enableval; do
  10635. + IFS="$lt_save_ifs"
  10636. + if test "X$pkg" = "X$p"; then
  10637. + enable_fast_install=yes
  10638. + fi
  10639. + done
  10640. + IFS="$lt_save_ifs"
  10641. ;;
  10642. - esac
  10643. - fi
  10644. + esac],
  10645. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10646. +
  10647. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10648. + [Whether or not to optimize for fast installation])dnl
  10649. +])# _LT_ENABLE_FAST_INSTALL
  10650. +
  10651. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10652. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10653. +
  10654. +# Old names:
  10655. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10656. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10657. +AC_DIAGNOSE([obsolete],
  10658. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10659. +the `fast-install' option into LT_INIT's first parameter.])
  10660. ])
  10661. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10662. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10663. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10664. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10665. +AC_DIAGNOSE([obsolete],
  10666. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10667. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10668. +])
  10669. +
  10670. +dnl aclocal-1.4 backwards compatibility:
  10671. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10672. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10673. +
  10674. +
  10675. +# _LT_WITH_PIC([MODE])
  10676. +# --------------------
  10677. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10678. +# LT_INIT options.
  10679. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10680. +m4_define([_LT_WITH_PIC],
  10681. +[AC_ARG_WITH([pic],
  10682. + [AS_HELP_STRING([--with-pic],
  10683. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10684. + [pic_mode="$withval"],
  10685. + [pic_mode=default])
  10686. +
  10687. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10688. +
  10689. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10690. +])# _LT_WITH_PIC
  10691. +
  10692. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10693. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10694. +
  10695. +# Old name:
  10696. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10697. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10698. +AC_DIAGNOSE([obsolete],
  10699. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10700. +put the `pic-only' option into LT_INIT's first parameter.])
  10701. +])
  10702. +
  10703. +dnl aclocal-1.4 backwards compatibility:
  10704. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10705. +
  10706. +
  10707. +m4_define([_LTDL_MODE], [])
  10708. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10709. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10710. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10711. + [m4_define([_LTDL_MODE], [recursive])])
  10712. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10713. + [m4_define([_LTDL_MODE], [subproject])])
  10714. +
  10715. +m4_define([_LTDL_TYPE], [])
  10716. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10717. + [m4_define([_LTDL_TYPE], [installable])])
  10718. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10719. + [m4_define([_LTDL_TYPE], [convenience])])
  10720. +
  10721. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10722. #
  10723. -# Do we need to explicitly link libc?
  10724. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10725. +# Written by Gary V. Vaughan, 2004
  10726. #
  10727. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10728. -x|xyes)
  10729. - # Assume -lc should be added
  10730. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10731. +# This file is free software; the Free Software Foundation gives
  10732. +# unlimited permission to copy and/or distribute it, with or without
  10733. +# modifications, as long as this notice is preserved.
  10734. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10735. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10736. - *'~'*)
  10737. - # FIXME: we may have to deal with multi-command sequences.
  10738. - ;;
  10739. - '$CC '*)
  10740. - # Test whether the compiler implicitly links with -lc since on some
  10741. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10742. - # to ld, don't add -lc before -lgcc.
  10743. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10744. - $rm conftest*
  10745. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10746. +# serial 6 ltsugar.m4
  10747. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10748. - soname=conftest
  10749. - lib=conftest
  10750. - libobjs=conftest.$ac_objext
  10751. - deplibs=
  10752. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10753. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10754. - compiler_flags=-v
  10755. - linker_flags=-v
  10756. - verstring=
  10757. - output_objdir=.
  10758. - libname=conftest
  10759. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10760. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10761. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10762. - then
  10763. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10764. - else
  10765. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10766. - fi
  10767. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10768. - else
  10769. - cat conftest.err 1>&5
  10770. - fi
  10771. - $rm conftest*
  10772. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10773. - ;;
  10774. - esac
  10775. - fi
  10776. - ;;
  10777. -esac
  10778. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10779. +# This is to help aclocal find these macros, as it can't see m4_define.
  10780. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10781. -# _LT_AC_FILE_LTDLL_C
  10782. -# -------------------
  10783. -# Be careful that the start marker always follows a newline.
  10784. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10785. -# /* ltdll.c starts here */
  10786. -# #define WIN32_LEAN_AND_MEAN
  10787. -# #include <windows.h>
  10788. -# #undef WIN32_LEAN_AND_MEAN
  10789. -# #include <stdio.h>
  10790. -#
  10791. -# #ifndef __CYGWIN__
  10792. -# # ifdef __CYGWIN32__
  10793. -# # define __CYGWIN__ __CYGWIN32__
  10794. -# # endif
  10795. -# #endif
  10796. -#
  10797. -# #ifdef __cplusplus
  10798. -# extern "C" {
  10799. -# #endif
  10800. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10801. -# #ifdef __cplusplus
  10802. -# }
  10803. -# #endif
  10804. -#
  10805. -# #ifdef __CYGWIN__
  10806. -# #include <cygwin/cygwin_dll.h>
  10807. -# DECLARE_CYGWIN_DLL( DllMain );
  10808. -# #endif
  10809. -# HINSTANCE __hDllInstance_base;
  10810. -#
  10811. -# BOOL APIENTRY
  10812. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10813. -# {
  10814. -# __hDllInstance_base = hInst;
  10815. -# return TRUE;
  10816. -# }
  10817. -# /* ltdll.c ends here */
  10818. -])# _LT_AC_FILE_LTDLL_C
  10819. +# lt_join(SEP, ARG1, [ARG2...])
  10820. +# -----------------------------
  10821. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10822. +# associated separator.
  10823. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10824. +# versions in m4sugar had bugs.
  10825. +m4_define([lt_join],
  10826. +[m4_if([$#], [1], [],
  10827. + [$#], [2], [[$2]],
  10828. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10829. +m4_define([_lt_join],
  10830. +[m4_if([$#$2], [2], [],
  10831. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10832. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10833. -# ---------------------------------
  10834. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10835. +# lt_car(LIST)
  10836. +# lt_cdr(LIST)
  10837. +# ------------
  10838. +# Manipulate m4 lists.
  10839. +# These macros are necessary as long as will still need to support
  10840. +# Autoconf-2.59 which quotes differently.
  10841. +m4_define([lt_car], [[$1]])
  10842. +m4_define([lt_cdr],
  10843. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10844. + [$#], 1, [],
  10845. + [m4_dquote(m4_shift($@))])])
  10846. +m4_define([lt_unquote], $1)
  10847. +
  10848. +
  10849. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10850. +# ------------------------------------------
  10851. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10852. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10853. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10854. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10855. +# than defined and empty).
  10856. +#
  10857. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10858. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10859. +m4_define([lt_append],
  10860. +[m4_define([$1],
  10861. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10862. -# old names
  10863. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10864. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10865. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10866. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10867. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10868. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10869. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10870. -# This is just to silence aclocal about the macro not being used
  10871. -ifelse([AC_DISABLE_FAST_INSTALL])
  10872. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10873. +# ----------------------------------------------------------
  10874. +# Produce a SEP delimited list of all paired combinations of elements of
  10875. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10876. +# has the form PREFIXmINFIXSUFFIXn.
  10877. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10878. +m4_define([lt_combine],
  10879. +[m4_if(m4_eval([$# > 3]), [1],
  10880. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10881. +[[m4_foreach([_Lt_prefix], [$2],
  10882. + [m4_foreach([_Lt_suffix],
  10883. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10884. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10885. +
  10886. +
  10887. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10888. +# -----------------------------------------------------------------------
  10889. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10890. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10891. +m4_define([lt_if_append_uniq],
  10892. +[m4_ifdef([$1],
  10893. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10894. + [lt_append([$1], [$2], [$3])$4],
  10895. + [$5])],
  10896. + [lt_append([$1], [$2], [$3])$4])])
  10897. -AC_DEFUN([LT_AC_PROG_GCJ],
  10898. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10899. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10900. - AC_SUBST(GCJFLAGS)
  10901. -])
  10902. -AC_DEFUN([LT_AC_PROG_RC],
  10903. -[AC_CHECK_TOOL(RC, windres, no)
  10904. +# lt_dict_add(DICT, KEY, VALUE)
  10905. +# -----------------------------
  10906. +m4_define([lt_dict_add],
  10907. +[m4_define([$1($2)], [$3])])
  10908. +
  10909. +
  10910. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10911. +# --------------------------------------------
  10912. +m4_define([lt_dict_add_subkey],
  10913. +[m4_define([$1($2:$3)], [$4])])
  10914. +
  10915. +
  10916. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10917. +# ----------------------------------
  10918. +m4_define([lt_dict_fetch],
  10919. +[m4_ifval([$3],
  10920. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10921. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10922. +
  10923. +
  10924. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  10925. +# -----------------------------------------------------------------
  10926. +m4_define([lt_if_dict_fetch],
  10927. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  10928. + [$5],
  10929. + [$6])])
  10930. +
  10931. +
  10932. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  10933. +# --------------------------------------------------------------
  10934. +m4_define([lt_dict_filter],
  10935. +[m4_if([$5], [], [],
  10936. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  10937. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  10938. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  10939. ])
  10940. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  10941. +#
  10942. +# Copyright (C) 2004 Free Software Foundation, Inc.
  10943. +# Written by Scott James Remnant, 2004
  10944. +#
  10945. +# This file is free software; the Free Software Foundation gives
  10946. +# unlimited permission to copy and/or distribute it, with or without
  10947. +# modifications, as long as this notice is preserved.
  10948. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10949. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10950. +# Generated from ltversion.in.
  10951. -# _AS_TEST_PREPARE
  10952. -# ----------------
  10953. -m4_ifndef([_AS_TEST_PREPARE],
  10954. -[m4_defun([_AS_TEST_PREPARE],
  10955. -[if test -x / >/dev/null 2>&1; then
  10956. - as_executable_p='test -x'
  10957. -else
  10958. - as_executable_p='test -f'
  10959. -fi
  10960. -])])# _AS_TEST_PREPARE
  10961. +# serial 3017 ltversion.m4
  10962. +# This file is part of GNU Libtool
  10963. -# AS_EXECUTABLE_P
  10964. -# ---------------
  10965. -# Check whether a file is executable.
  10966. -m4_ifndef([AS_EXECUTABLE_P],
  10967. -[m4_defun([AS_EXECUTABLE_P],
  10968. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  10969. -$as_executable_p $1[]dnl
  10970. -])])# AS_EXECUTABLE_P
  10971. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  10972. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  10973. -# NOTE: This macro has been submitted for inclusion into #
  10974. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  10975. -# a released version of Autoconf we should remove this #
  10976. -# macro and use it instead. #
  10977. -# LT_AC_PROG_SED
  10978. -# --------------
  10979. -# Check for a fully-functional sed program, that truncates
  10980. -# as few characters as possible. Prefer GNU sed if found.
  10981. -AC_DEFUN([LT_AC_PROG_SED],
  10982. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  10983. -AC_CACHE_VAL(lt_cv_path_SED,
  10984. -[# Loop through the user's path and test for sed and gsed.
  10985. -# Then use that list of sed's as ones to test for truncation.
  10986. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10987. -for as_dir in $PATH
  10988. -do
  10989. - IFS=$as_save_IFS
  10990. - test -z "$as_dir" && as_dir=.
  10991. - for lt_ac_prog in sed gsed; do
  10992. - for ac_exec_ext in '' $ac_executable_extensions; do
  10993. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  10994. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10995. - fi
  10996. - done
  10997. - done
  10998. -done
  10999. -IFS=$as_save_IFS
  11000. -lt_ac_max=0
  11001. -lt_ac_count=0
  11002. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11003. -# along with /bin/sed that truncates output.
  11004. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11005. - test ! -f $lt_ac_sed && continue
  11006. - cat /dev/null > conftest.in
  11007. - lt_ac_count=0
  11008. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11009. - # Check for GNU sed and select it if it is found.
  11010. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11011. - lt_cv_path_SED=$lt_ac_sed
  11012. - break
  11013. - fi
  11014. - while true; do
  11015. - cat conftest.in conftest.in >conftest.tmp
  11016. - mv conftest.tmp conftest.in
  11017. - cp conftest.in conftest.nl
  11018. - echo >>conftest.nl
  11019. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11020. - cmp -s conftest.out conftest.nl || break
  11021. - # 10000 chars as input seems more than enough
  11022. - test $lt_ac_count -gt 10 && break
  11023. - lt_ac_count=`expr $lt_ac_count + 1`
  11024. - if test $lt_ac_count -gt $lt_ac_max; then
  11025. - lt_ac_max=$lt_ac_count
  11026. - lt_cv_path_SED=$lt_ac_sed
  11027. - fi
  11028. - done
  11029. -done
  11030. -])
  11031. -SED=$lt_cv_path_SED
  11032. -AC_SUBST([SED])
  11033. -AC_MSG_RESULT([$SED])
  11034. +AC_DEFUN([LTVERSION_VERSION],
  11035. +[macro_version='2.2.6b'
  11036. +macro_revision='1.3017'
  11037. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11038. +_LT_DECL(, macro_revision, 0)
  11039. ])
  11040. -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  11041. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11042. +#
  11043. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11044. +# Written by Scott James Remnant, 2004.
  11045. +#
  11046. +# This file is free software; the Free Software Foundation gives
  11047. +# unlimited permission to copy and/or distribute it, with or without
  11048. +# modifications, as long as this notice is preserved.
  11049. +
  11050. +# serial 4 lt~obsolete.m4
  11051. +
  11052. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11053. +#
  11054. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11055. +# which have later been changed to m4_define as they aren't part of the
  11056. +# exported API, or moved to Autoconf or Automake where they belong.
  11057. +#
  11058. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11059. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11060. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11061. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11062. +# and doesn't know about Autoconf macros at all.)
  11063. +#
  11064. +# So we provide this file, which has a silly filename so it's always
  11065. +# included after everything else. This provides aclocal with the
  11066. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11067. +# because those macros already exist, or will be overwritten later.
  11068. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11069. +#
  11070. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11071. +# Yes, that means every name once taken will need to remain here until
  11072. +# we give up compatibility with versions before 1.7, at which point
  11073. +# we need to keep only those names which we still refer to.
  11074. +
  11075. +# This is to help aclocal find these macros, as it can't see m4_define.
  11076. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11077. +
  11078. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11079. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11080. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11081. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11082. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11083. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11084. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11085. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11086. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11087. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11088. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11089. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11090. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11091. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11092. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11093. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11094. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11095. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11096. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11097. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11098. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11099. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11100. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11101. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11102. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11103. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11104. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11105. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11106. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11107. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11108. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11109. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11110. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11111. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11112. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11113. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11114. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11115. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11116. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11117. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11118. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11119. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11120. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11121. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11122. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11123. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11124. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11125. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11126. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11127. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11128. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11129. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11130. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11131. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11132. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11133. +
  11134. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11135. #
  11136. # This file is free software; the Free Software Foundation
  11137. # gives unlimited permission to copy and/or distribute it,
  11138. @@ -6683,10 +7997,10 @@
  11139. # generated from the m4 files accompanying Automake X.Y.
  11140. # (This private macro should not be called outside this file.)
  11141. AC_DEFUN([AM_AUTOMAKE_VERSION],
  11142. -[am__api_version='1.10'
  11143. +[am__api_version='1.11'
  11144. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11145. dnl require some minimum version. Point them to the right macro.
  11146. -m4_if([$1], [1.10.1], [],
  11147. +m4_if([$1], [1.11.1], [],
  11148. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11149. ])
  11150. @@ -6700,12 +8014,12 @@
  11151. # AM_SET_CURRENT_AUTOMAKE_VERSION
  11152. # -------------------------------
  11153. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11154. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11155. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11156. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11157. -[AM_AUTOMAKE_VERSION([1.10.1])dnl
  11158. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11159. m4_ifndef([AC_AUTOCONF_VERSION],
  11160. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11161. -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  11162. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11163. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11164. @@ -6762,14 +8076,14 @@
  11165. # AM_CONDITIONAL -*- Autoconf -*-
  11166. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  11167. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11168. # Free Software Foundation, Inc.
  11169. #
  11170. # This file is free software; the Free Software Foundation
  11171. # gives unlimited permission to copy and/or distribute it,
  11172. # with or without modifications, as long as this notice is preserved.
  11173. -# serial 8
  11174. +# serial 9
  11175. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11176. # -------------------------------------
  11177. @@ -6782,6 +8096,7 @@
  11178. AC_SUBST([$1_FALSE])dnl
  11179. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11180. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11181. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11182. if $2; then
  11183. $1_TRUE=
  11184. $1_FALSE='#'
  11185. @@ -6795,14 +8110,14 @@
  11186. Usually this means the macro was only invoked conditionally.]])
  11187. fi])])
  11188. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  11189. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11190. # Free Software Foundation, Inc.
  11191. #
  11192. # This file is free software; the Free Software Foundation
  11193. # gives unlimited permission to copy and/or distribute it,
  11194. # with or without modifications, as long as this notice is preserved.
  11195. -# serial 9
  11196. +# serial 10
  11197. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11198. # written in clear, in which case automake, when reading aclocal.m4,
  11199. @@ -6859,6 +8174,16 @@
  11200. if test "$am_compiler_list" = ""; then
  11201. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11202. fi
  11203. + am__universal=false
  11204. + m4_case([$1], [CC],
  11205. + [case " $depcc " in #(
  11206. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11207. + esac],
  11208. + [CXX],
  11209. + [case " $depcc " in #(
  11210. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11211. + esac])
  11212. +
  11213. for depmode in $am_compiler_list; do
  11214. # Setup a source with many dependencies, because some compilers
  11215. # like to wrap large dependency lists on column 80 (with \), and
  11216. @@ -6876,7 +8201,17 @@
  11217. done
  11218. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11219. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11220. + # mode. It turns out that the SunPro C++ compiler does not properly
  11221. + # handle `-M -o', and we need to detect this. Also, some Intel
  11222. + # versions had trouble with output in subdirs
  11223. + am__obj=sub/conftest.${OBJEXT-o}
  11224. + am__minus_obj="-o $am__obj"
  11225. case $depmode in
  11226. + gcc)
  11227. + # This depmode causes a compiler race in universal mode.
  11228. + test "$am__universal" = false || continue
  11229. + ;;
  11230. nosideeffect)
  11231. # after this tag, mechanisms are not by side-effect, so they'll
  11232. # only be used when explicitly requested
  11233. @@ -6886,19 +8221,23 @@
  11234. break
  11235. fi
  11236. ;;
  11237. + msvisualcpp | msvcmsys)
  11238. + # This compiler won't grok `-c -o', but also, the minuso test has
  11239. + # not run yet. These depmodes are late enough in the game, and
  11240. + # so weak that their functioning should not be impacted.
  11241. + am__obj=conftest.${OBJEXT-o}
  11242. + am__minus_obj=
  11243. + ;;
  11244. none) break ;;
  11245. esac
  11246. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11247. - # mode. It turns out that the SunPro C++ compiler does not properly
  11248. - # handle `-M -o', and we need to detect this.
  11249. if depmode=$depmode \
  11250. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  11251. + source=sub/conftest.c object=$am__obj \
  11252. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11253. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  11254. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11255. >/dev/null 2>conftest.err &&
  11256. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11257. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11258. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  11259. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11260. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11261. # icc doesn't choke on unknown options, it will just issue warnings
  11262. # or remarks (even with -Werror). So we grep stderr for any message
  11263. @@ -6955,57 +8294,68 @@
  11264. # Generate code to set up dependency tracking. -*- Autoconf -*-
  11265. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11266. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11267. # Free Software Foundation, Inc.
  11268. #
  11269. # This file is free software; the Free Software Foundation
  11270. # gives unlimited permission to copy and/or distribute it,
  11271. # with or without modifications, as long as this notice is preserved.
  11272. -#serial 3
  11273. +#serial 5
  11274. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  11275. # ------------------------------
  11276. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11277. -[for mf in $CONFIG_FILES; do
  11278. - # Strip MF so we end up with the name of the file.
  11279. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  11280. - # Check whether this is an Automake generated Makefile or not.
  11281. - # We used to match only the files named `Makefile.in', but
  11282. - # some people rename them; so instead we look at the file content.
  11283. - # Grep'ing the first line is not enough: some people post-process
  11284. - # each Makefile.in and add a new line on top of each file to say so.
  11285. - # Grep'ing the whole file is not good either: AIX grep has a line
  11286. - # limit of 2048, but all sed's we know have understand at least 4000.
  11287. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11288. - dirpart=`AS_DIRNAME("$mf")`
  11289. - else
  11290. - continue
  11291. - fi
  11292. - # Extract the definition of DEPDIR, am__include, and am__quote
  11293. - # from the Makefile without running `make'.
  11294. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11295. - test -z "$DEPDIR" && continue
  11296. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11297. - test -z "am__include" && continue
  11298. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11299. - # When using ansi2knr, U may be empty or an underscore; expand it
  11300. - U=`sed -n 's/^U = //p' < "$mf"`
  11301. - # Find all dependency output files, they are included files with
  11302. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  11303. - # simplest approach to changing $(DEPDIR) to its actual value in the
  11304. - # expansion.
  11305. - for file in `sed -n "
  11306. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11307. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11308. - # Make sure the directory exists.
  11309. - test -f "$dirpart/$file" && continue
  11310. - fdir=`AS_DIRNAME(["$file"])`
  11311. - AS_MKDIR_P([$dirpart/$fdir])
  11312. - # echo "creating $dirpart/$file"
  11313. - echo '# dummy' > "$dirpart/$file"
  11314. +[{
  11315. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11316. + # are listed without --file. Let's play safe and only enable the eval
  11317. + # if we detect the quoting.
  11318. + case $CONFIG_FILES in
  11319. + *\'*) eval set x "$CONFIG_FILES" ;;
  11320. + *) set x $CONFIG_FILES ;;
  11321. + esac
  11322. + shift
  11323. + for mf
  11324. + do
  11325. + # Strip MF so we end up with the name of the file.
  11326. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11327. + # Check whether this is an Automake generated Makefile or not.
  11328. + # We used to match only the files named `Makefile.in', but
  11329. + # some people rename them; so instead we look at the file content.
  11330. + # Grep'ing the first line is not enough: some people post-process
  11331. + # each Makefile.in and add a new line on top of each file to say so.
  11332. + # Grep'ing the whole file is not good either: AIX grep has a line
  11333. + # limit of 2048, but all sed's we know have understand at least 4000.
  11334. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11335. + dirpart=`AS_DIRNAME("$mf")`
  11336. + else
  11337. + continue
  11338. + fi
  11339. + # Extract the definition of DEPDIR, am__include, and am__quote
  11340. + # from the Makefile without running `make'.
  11341. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11342. + test -z "$DEPDIR" && continue
  11343. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11344. + test -z "am__include" && continue
  11345. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11346. + # When using ansi2knr, U may be empty or an underscore; expand it
  11347. + U=`sed -n 's/^U = //p' < "$mf"`
  11348. + # Find all dependency output files, they are included files with
  11349. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11350. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11351. + # expansion.
  11352. + for file in `sed -n "
  11353. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11354. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11355. + # Make sure the directory exists.
  11356. + test -f "$dirpart/$file" && continue
  11357. + fdir=`AS_DIRNAME(["$file"])`
  11358. + AS_MKDIR_P([$dirpart/$fdir])
  11359. + # echo "creating $dirpart/$file"
  11360. + echo '# dummy' > "$dirpart/$file"
  11361. + done
  11362. done
  11363. -done
  11364. +}
  11365. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11366. @@ -7025,13 +8375,13 @@
  11367. # Do all the work for Automake. -*- Autoconf -*-
  11368. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11369. -# 2005, 2006, 2008 Free Software Foundation, Inc.
  11370. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11371. #
  11372. # This file is free software; the Free Software Foundation
  11373. # gives unlimited permission to copy and/or distribute it,
  11374. # with or without modifications, as long as this notice is preserved.
  11375. -# serial 13
  11376. +# serial 16
  11377. # This macro actually does too much. Some checks are only needed if
  11378. # your package does certain things. But this isn't really a big deal.
  11379. @@ -7048,7 +8398,7 @@
  11380. # arguments mandatory, and then we can depend on a new Autoconf
  11381. # release and drop the old call support.
  11382. AC_DEFUN([AM_INIT_AUTOMAKE],
  11383. -[AC_PREREQ([2.60])dnl
  11384. +[AC_PREREQ([2.62])dnl
  11385. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11386. dnl the ones we care about.
  11387. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11388. @@ -7099,8 +8449,8 @@
  11389. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11390. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11391. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11392. -AM_PROG_INSTALL_SH
  11393. -AM_PROG_INSTALL_STRIP
  11394. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11395. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11396. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11397. # We need awk for the "check" target. The system "awk" is bad on
  11398. # some platforms.
  11399. @@ -7108,24 +8458,37 @@
  11400. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11401. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11402. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11403. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11404. - [_AM_PROG_TAR([v7])])])
  11405. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11406. + [_AM_PROG_TAR([v7])])])
  11407. _AM_IF_OPTION([no-dependencies],,
  11408. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11409. - [_AM_DEPENDENCIES(CC)],
  11410. - [define([AC_PROG_CC],
  11411. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11412. + [_AM_DEPENDENCIES(CC)],
  11413. + [define([AC_PROG_CC],
  11414. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11415. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11416. - [_AM_DEPENDENCIES(CXX)],
  11417. - [define([AC_PROG_CXX],
  11418. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11419. + [_AM_DEPENDENCIES(CXX)],
  11420. + [define([AC_PROG_CXX],
  11421. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11422. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11423. - [_AM_DEPENDENCIES(OBJC)],
  11424. - [define([AC_PROG_OBJC],
  11425. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11426. + [_AM_DEPENDENCIES(OBJC)],
  11427. + [define([AC_PROG_OBJC],
  11428. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11429. ])
  11430. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11431. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11432. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11433. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11434. +AC_CONFIG_COMMANDS_PRE(dnl
  11435. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11436. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11437. ])
  11438. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11439. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11440. +dnl mangled by Autoconf and run in a shell conditional statement.
  11441. +m4_define([_AC_COMPILER_EXEEXT],
  11442. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11443. +
  11444. # When config.status generates a header, we must update the stamp-h file.
  11445. # This file resides in the same directory as the config header
  11446. @@ -7148,7 +8511,7 @@
  11447. done
  11448. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11449. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11450. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11451. #
  11452. # This file is free software; the Free Software Foundation
  11453. # gives unlimited permission to copy and/or distribute it,
  11454. @@ -7159,7 +8522,14 @@
  11455. # Define $install_sh.
  11456. AC_DEFUN([AM_PROG_INSTALL_SH],
  11457. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11458. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  11459. +if test x"${install_sh}" != xset; then
  11460. + case $am_aux_dir in
  11461. + *\ * | *\ *)
  11462. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11463. + *)
  11464. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11465. + esac
  11466. +fi
  11467. AC_SUBST(install_sh)])
  11468. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11469. @@ -7185,13 +8555,13 @@
  11470. # Check to see how 'make' treats includes. -*- Autoconf -*-
  11471. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11472. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  11473. #
  11474. # This file is free software; the Free Software Foundation
  11475. # gives unlimited permission to copy and/or distribute it,
  11476. # with or without modifications, as long as this notice is preserved.
  11477. -# serial 3
  11478. +# serial 4
  11479. # AM_MAKE_INCLUDE()
  11480. # -----------------
  11481. @@ -7200,7 +8570,7 @@
  11482. [am_make=${MAKE-make}
  11483. cat > confinc << 'END'
  11484. am__doit:
  11485. - @echo done
  11486. + @echo this is the am__doit target
  11487. .PHONY: am__doit
  11488. END
  11489. # If we don't find an include directive, just comment out the code.
  11490. @@ -7210,24 +8580,24 @@
  11491. _am_result=none
  11492. # First try GNU make style include.
  11493. echo "include confinc" > confmf
  11494. -# We grep out `Entering directory' and `Leaving directory'
  11495. -# messages which can occur if `w' ends up in MAKEFLAGS.
  11496. -# In particular we don't look at `^make:' because GNU make might
  11497. -# be invoked under some other name (usually "gmake"), in which
  11498. -# case it prints its new name instead of `make'.
  11499. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  11500. - am__include=include
  11501. - am__quote=
  11502. - _am_result=GNU
  11503. -fi
  11504. +# Ignore all kinds of additional output from `make'.
  11505. +case `$am_make -s -f confmf 2> /dev/null` in #(
  11506. +*the\ am__doit\ target*)
  11507. + am__include=include
  11508. + am__quote=
  11509. + _am_result=GNU
  11510. + ;;
  11511. +esac
  11512. # Now try BSD make style include.
  11513. if test "$am__include" = "#"; then
  11514. echo '.include "confinc"' > confmf
  11515. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  11516. - am__include=.include
  11517. - am__quote="\""
  11518. - _am_result=BSD
  11519. - fi
  11520. + case `$am_make -s -f confmf 2> /dev/null` in #(
  11521. + *the\ am__doit\ target*)
  11522. + am__include=.include
  11523. + am__quote="\""
  11524. + _am_result=BSD
  11525. + ;;
  11526. + esac
  11527. fi
  11528. AC_SUBST([am__include])
  11529. AC_SUBST([am__quote])
  11530. @@ -7237,14 +8607,14 @@
  11531. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11532. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  11533. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11534. # Free Software Foundation, Inc.
  11535. #
  11536. # This file is free software; the Free Software Foundation
  11537. # gives unlimited permission to copy and/or distribute it,
  11538. # with or without modifications, as long as this notice is preserved.
  11539. -# serial 5
  11540. +# serial 6
  11541. # AM_MISSING_PROG(NAME, PROGRAM)
  11542. # ------------------------------
  11543. @@ -7261,7 +8631,14 @@
  11544. AC_DEFUN([AM_MISSING_HAS_RUN],
  11545. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11546. AC_REQUIRE_AUX_FILE([missing])dnl
  11547. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11548. +if test x"${MISSING+set}" != xset; then
  11549. + case $am_aux_dir in
  11550. + *\ * | *\ *)
  11551. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11552. + *)
  11553. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11554. + esac
  11555. +fi
  11556. # Use eval to expand $SHELL
  11557. if eval "$MISSING --run true"; then
  11558. am_missing_run="$MISSING --run "
  11559. @@ -7299,13 +8676,13 @@
  11560. # Helper functions for option handling. -*- Autoconf -*-
  11561. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11562. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11563. #
  11564. # This file is free software; the Free Software Foundation
  11565. # gives unlimited permission to copy and/or distribute it,
  11566. # with or without modifications, as long as this notice is preserved.
  11567. -# serial 3
  11568. +# serial 4
  11569. # _AM_MANGLE_OPTION(NAME)
  11570. # -----------------------
  11571. @@ -7322,7 +8699,7 @@
  11572. # ----------------------------------
  11573. # OPTIONS is a space-separated list of Automake options.
  11574. AC_DEFUN([_AM_SET_OPTIONS],
  11575. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11576. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11577. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11578. # -------------------------------------------
  11579. @@ -7332,14 +8709,14 @@
  11580. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  11581. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11582. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11583. # Free Software Foundation, Inc.
  11584. #
  11585. # This file is free software; the Free Software Foundation
  11586. # gives unlimited permission to copy and/or distribute it,
  11587. # with or without modifications, as long as this notice is preserved.
  11588. -# serial 4
  11589. +# serial 5
  11590. # AM_SANITY_CHECK
  11591. # ---------------
  11592. @@ -7348,16 +8725,29 @@
  11593. # Just in case
  11594. sleep 1
  11595. echo timestamp > conftest.file
  11596. +# Reject unsafe characters in $srcdir or the absolute working directory
  11597. +# name. Accept space and tab only in the latter.
  11598. +am_lf='
  11599. +'
  11600. +case `pwd` in
  11601. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11602. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11603. +esac
  11604. +case $srcdir in
  11605. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11606. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11607. +esac
  11608. +
  11609. # Do `set' in a subshell so we don't clobber the current shell's
  11610. # arguments. Must try -L first in case configure is actually a
  11611. # symlink; some systems play weird games with the mod time of symlinks
  11612. # (eg FreeBSD returns the mod time of the symlink's containing
  11613. # directory).
  11614. if (
  11615. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11616. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11617. if test "$[*]" = "X"; then
  11618. # -L didn't work.
  11619. - set X `ls -t $srcdir/configure conftest.file`
  11620. + set X `ls -t "$srcdir/configure" conftest.file`
  11621. fi
  11622. rm -f conftest.file
  11623. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11624. @@ -7410,18 +8800,25 @@
  11625. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11626. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11627. -# Copyright (C) 2006 Free Software Foundation, Inc.
  11628. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11629. #
  11630. # This file is free software; the Free Software Foundation
  11631. # gives unlimited permission to copy and/or distribute it,
  11632. # with or without modifications, as long as this notice is preserved.
  11633. +# serial 2
  11634. +
  11635. # _AM_SUBST_NOTMAKE(VARIABLE)
  11636. # ---------------------------
  11637. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11638. # This macro is traced by Automake.
  11639. AC_DEFUN([_AM_SUBST_NOTMAKE])
  11640. +# AM_SUBST_NOTMAKE(VARIABLE)
  11641. +# ---------------------------
  11642. +# Public sister of _AM_SUBST_NOTMAKE.
  11643. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11644. +
  11645. # Check how to create a tarball. -*- Autoconf -*-
  11646. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11647. diff -Nur libnfnetlink-1.0.0.orig/config.guess libnfnetlink-1.0.0/config.guess
  11648. --- libnfnetlink-1.0.0.orig/config.guess 2008-02-17 21:10:30.000000000 +0100
  11649. +++ libnfnetlink-1.0.0/config.guess 2011-02-21 18:03:05.183550807 +0100
  11650. @@ -1,10 +1,10 @@
  11651. #! /bin/sh
  11652. # Attempt to guess a canonical system name.
  11653. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11654. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  11655. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11656. # Free Software Foundation, Inc.
  11657. -timestamp='2008-01-23'
  11658. +timestamp='2009-06-10'
  11659. # This file is free software; you can redistribute it and/or modify it
  11660. # under the terms of the GNU General Public License as published by
  11661. @@ -170,7 +170,7 @@
  11662. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11663. eval $set_cc_for_build
  11664. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11665. - | grep __ELF__ >/dev/null
  11666. + | grep -q __ELF__
  11667. then
  11668. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11669. # Return netbsd for either. FIX?
  11670. @@ -324,6 +324,9 @@
  11671. case `/usr/bin/uname -p` in
  11672. sparc) echo sparc-icl-nx7; exit ;;
  11673. esac ;;
  11674. + s390x:SunOS:*:*)
  11675. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11676. + exit ;;
  11677. sun4H:SunOS:5.*:*)
  11678. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11679. exit ;;
  11680. @@ -331,7 +334,20 @@
  11681. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11682. exit ;;
  11683. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  11684. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11685. + eval $set_cc_for_build
  11686. + SUN_ARCH="i386"
  11687. + # If there is a compiler, see if it is configured for 64-bit objects.
  11688. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  11689. + # This test works for both compilers.
  11690. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  11691. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  11692. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  11693. + grep IS_64BIT_ARCH >/dev/null
  11694. + then
  11695. + SUN_ARCH="x86_64"
  11696. + fi
  11697. + fi
  11698. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11699. exit ;;
  11700. sun4*:SunOS:6*:*)
  11701. # According to config.sub, this is the proper way to canonicalize
  11702. @@ -640,7 +656,7 @@
  11703. # => hppa64-hp-hpux11.23
  11704. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  11705. - grep __LP64__ >/dev/null
  11706. + grep -q __LP64__
  11707. then
  11708. HP_ARCH="hppa2.0w"
  11709. else
  11710. @@ -796,7 +812,7 @@
  11711. x86)
  11712. echo i586-pc-interix${UNAME_RELEASE}
  11713. exit ;;
  11714. - EM64T | authenticamd)
  11715. + EM64T | authenticamd | genuineintel)
  11716. echo x86_64-unknown-interix${UNAME_RELEASE}
  11717. exit ;;
  11718. IA64)
  11719. @@ -806,6 +822,9 @@
  11720. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  11721. echo i${UNAME_MACHINE}-pc-mks
  11722. exit ;;
  11723. + 8664:Windows_NT:*)
  11724. + echo x86_64-pc-mks
  11725. + exit ;;
  11726. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  11727. # How do we know it's Interix rather than the generic POSIX subsystem?
  11728. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  11729. @@ -866,40 +885,17 @@
  11730. m68*:Linux:*:*)
  11731. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11732. exit ;;
  11733. - mips:Linux:*:*)
  11734. + mips:Linux:*:* | mips64:Linux:*:*)
  11735. eval $set_cc_for_build
  11736. sed 's/^ //' << EOF >$dummy.c
  11737. #undef CPU
  11738. - #undef mips
  11739. - #undef mipsel
  11740. + #undef ${UNAME_MACHINE}
  11741. + #undef ${UNAME_MACHINE}el
  11742. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11743. - CPU=mipsel
  11744. + CPU=${UNAME_MACHINE}el
  11745. #else
  11746. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11747. - CPU=mips
  11748. - #else
  11749. - CPU=
  11750. - #endif
  11751. - #endif
  11752. -EOF
  11753. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  11754. - /^CPU/{
  11755. - s: ::g
  11756. - p
  11757. - }'`"
  11758. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  11759. - ;;
  11760. - mips64:Linux:*:*)
  11761. - eval $set_cc_for_build
  11762. - sed 's/^ //' << EOF >$dummy.c
  11763. - #undef CPU
  11764. - #undef mips64
  11765. - #undef mips64el
  11766. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11767. - CPU=mips64el
  11768. - #else
  11769. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11770. - CPU=mips64
  11771. + CPU=${UNAME_MACHINE}
  11772. #else
  11773. CPU=
  11774. #endif
  11775. @@ -931,10 +927,13 @@
  11776. EV67) UNAME_MACHINE=alphaev67 ;;
  11777. EV68*) UNAME_MACHINE=alphaev68 ;;
  11778. esac
  11779. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  11780. + objdump --private-headers /bin/sh | grep -q ld.so.1
  11781. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  11782. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  11783. exit ;;
  11784. + padre:Linux:*:*)
  11785. + echo sparc-unknown-linux-gnu
  11786. + exit ;;
  11787. parisc:Linux:*:* | hppa:Linux:*:*)
  11788. # Look for CPU level
  11789. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  11790. @@ -982,17 +981,6 @@
  11791. elf32-i386)
  11792. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  11793. ;;
  11794. - a.out-i386-linux)
  11795. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  11796. - exit ;;
  11797. - coff-i386)
  11798. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  11799. - exit ;;
  11800. - "")
  11801. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  11802. - # one that does not give us useful --help.
  11803. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  11804. - exit ;;
  11805. esac
  11806. # Determine whether the default compiler is a.out or elf
  11807. eval $set_cc_for_build
  11808. @@ -1058,7 +1046,7 @@
  11809. i*86:syllable:*:*)
  11810. echo ${UNAME_MACHINE}-pc-syllable
  11811. exit ;;
  11812. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  11813. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  11814. echo i386-unknown-lynxos${UNAME_RELEASE}
  11815. exit ;;
  11816. i*86:*DOS:*:*)
  11817. @@ -1102,8 +1090,11 @@
  11818. pc:*:*:*)
  11819. # Left here for compatibility:
  11820. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  11821. - # the processor, so we play safe by assuming i386.
  11822. - echo i386-pc-msdosdjgpp
  11823. + # the processor, so we play safe by assuming i586.
  11824. + # Note: whatever this is, it MUST be the same as what config.sub
  11825. + # prints for the "djgpp" host, or else GDB configury will decide that
  11826. + # this is a cross-build.
  11827. + echo i586-pc-msdosdjgpp
  11828. exit ;;
  11829. Intel:Mach:3*:*)
  11830. echo i386-pc-mach3
  11831. @@ -1141,6 +1132,16 @@
  11832. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  11833. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11834. && { echo i486-ncr-sysv4; exit; } ;;
  11835. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  11836. + OS_REL='.3'
  11837. + test -r /etc/.relid \
  11838. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  11839. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11840. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  11841. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  11842. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  11843. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  11844. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  11845. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  11846. echo m68k-unknown-lynxos${UNAME_RELEASE}
  11847. exit ;;
  11848. @@ -1153,7 +1154,7 @@
  11849. rs6000:LynxOS:2.*:*)
  11850. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  11851. exit ;;
  11852. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  11853. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  11854. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  11855. exit ;;
  11856. SM[BE]S:UNIX_SV:*:*)
  11857. @@ -1216,6 +1217,9 @@
  11858. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  11859. echo i586-pc-beos
  11860. exit ;;
  11861. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  11862. + echo i586-pc-haiku
  11863. + exit ;;
  11864. SX-4:SUPER-UX:*:*)
  11865. echo sx4-nec-superux${UNAME_RELEASE}
  11866. exit ;;
  11867. @@ -1324,6 +1328,9 @@
  11868. i*86:rdos:*:*)
  11869. echo ${UNAME_MACHINE}-pc-rdos
  11870. exit ;;
  11871. + i*86:AROS:*:*)
  11872. + echo ${UNAME_MACHINE}-pc-aros
  11873. + exit ;;
  11874. esac
  11875. #echo '(No uname command or uname output not recognized.)' 1>&2
  11876. diff -Nur libnfnetlink-1.0.0.orig/config.sub libnfnetlink-1.0.0/config.sub
  11877. --- libnfnetlink-1.0.0.orig/config.sub 2008-02-17 21:10:30.000000000 +0100
  11878. +++ libnfnetlink-1.0.0/config.sub 2011-02-21 18:03:05.183550807 +0100
  11879. @@ -1,10 +1,10 @@
  11880. #! /bin/sh
  11881. # Configuration validation subroutine script.
  11882. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11883. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  11884. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11885. # Free Software Foundation, Inc.
  11886. -timestamp='2008-01-16'
  11887. +timestamp='2009-06-11'
  11888. # This file is (in principle) common to ALL GNU software.
  11889. # The presence of a machine in this file suggests that SOME GNU software
  11890. @@ -122,6 +122,7 @@
  11891. case $maybe_os in
  11892. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  11893. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  11894. + kopensolaris*-gnu* | \
  11895. storm-chaos* | os2-emx* | rtmk-nova*)
  11896. os=-$maybe_os
  11897. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  11898. @@ -152,6 +153,9 @@
  11899. os=
  11900. basic_machine=$1
  11901. ;;
  11902. + -bluegene*)
  11903. + os=-cnk
  11904. + ;;
  11905. -sim | -cisco | -oki | -wec | -winbond)
  11906. os=
  11907. basic_machine=$1
  11908. @@ -249,13 +253,16 @@
  11909. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  11910. | i370 | i860 | i960 | ia64 \
  11911. | ip2k | iq2000 \
  11912. + | lm32 \
  11913. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  11914. - | maxq | mb | microblaze | mcore | mep \
  11915. + | maxq | mb | microblaze | mcore | mep | metag \
  11916. | mips | mipsbe | mipseb | mipsel | mipsle \
  11917. | mips16 \
  11918. | mips64 | mips64el \
  11919. - | mips64vr | mips64vrel \
  11920. + | mips64octeon | mips64octeonel \
  11921. | mips64orion | mips64orionel \
  11922. + | mips64r5900 | mips64r5900el \
  11923. + | mips64vr | mips64vrel \
  11924. | mips64vr4100 | mips64vr4100el \
  11925. | mips64vr4300 | mips64vr4300el \
  11926. | mips64vr5000 | mips64vr5000el \
  11927. @@ -268,6 +275,7 @@
  11928. | mipsisa64sr71k | mipsisa64sr71kel \
  11929. | mipstx39 | mipstx39el \
  11930. | mn10200 | mn10300 \
  11931. + | moxie \
  11932. | mt \
  11933. | msp430 \
  11934. | nios | nios2 \
  11935. @@ -277,7 +285,7 @@
  11936. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  11937. | pyramid \
  11938. | score \
  11939. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  11940. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  11941. | sh64 | sh64le \
  11942. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  11943. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  11944. @@ -286,7 +294,7 @@
  11945. | v850 | v850e \
  11946. | we32k \
  11947. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  11948. - | z8k)
  11949. + | z8k | z80)
  11950. basic_machine=$basic_machine-unknown
  11951. ;;
  11952. m6811 | m68hc11 | m6812 | m68hc12)
  11953. @@ -329,14 +337,17 @@
  11954. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  11955. | i*86-* | i860-* | i960-* | ia64-* \
  11956. | ip2k-* | iq2000-* \
  11957. + | lm32-* \
  11958. | m32c-* | m32r-* | m32rle-* \
  11959. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  11960. - | m88110-* | m88k-* | maxq-* | mcore-* \
  11961. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  11962. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  11963. | mips16-* \
  11964. | mips64-* | mips64el-* \
  11965. - | mips64vr-* | mips64vrel-* \
  11966. + | mips64octeon-* | mips64octeonel-* \
  11967. | mips64orion-* | mips64orionel-* \
  11968. + | mips64r5900-* | mips64r5900el-* \
  11969. + | mips64vr-* | mips64vrel-* \
  11970. | mips64vr4100-* | mips64vr4100el-* \
  11971. | mips64vr4300-* | mips64vr4300el-* \
  11972. | mips64vr5000-* | mips64vr5000el-* \
  11973. @@ -358,20 +369,20 @@
  11974. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  11975. | pyramid-* \
  11976. | romp-* | rs6000-* \
  11977. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  11978. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  11979. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  11980. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  11981. | sparclite-* \
  11982. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  11983. | tahoe-* | thumb-* \
  11984. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  11985. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  11986. | tron-* \
  11987. | v850-* | v850e-* | vax-* \
  11988. | we32k-* \
  11989. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  11990. | xstormy16-* | xtensa*-* \
  11991. | ymp-* \
  11992. - | z8k-*)
  11993. + | z8k-* | z80-*)
  11994. ;;
  11995. # Recognize the basic CPU types without company name, with glob match.
  11996. xtensa*)
  11997. @@ -439,6 +450,10 @@
  11998. basic_machine=m68k-apollo
  11999. os=-bsd
  12000. ;;
  12001. + aros)
  12002. + basic_machine=i386-pc
  12003. + os=-aros
  12004. + ;;
  12005. aux)
  12006. basic_machine=m68k-apple
  12007. os=-aux
  12008. @@ -455,10 +470,18 @@
  12009. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  12010. os=-linux
  12011. ;;
  12012. + bluegene*)
  12013. + basic_machine=powerpc-ibm
  12014. + os=-cnk
  12015. + ;;
  12016. c90)
  12017. basic_machine=c90-cray
  12018. os=-unicos
  12019. ;;
  12020. + cegcc)
  12021. + basic_machine=arm-unknown
  12022. + os=-cegcc
  12023. + ;;
  12024. convex-c1)
  12025. basic_machine=c1-convex
  12026. os=-bsd
  12027. @@ -526,6 +549,10 @@
  12028. basic_machine=m88k-motorola
  12029. os=-sysv3
  12030. ;;
  12031. + dicos)
  12032. + basic_machine=i686-pc
  12033. + os=-dicos
  12034. + ;;
  12035. djgpp)
  12036. basic_machine=i586-pc
  12037. os=-msdosdjgpp
  12038. @@ -1128,6 +1155,10 @@
  12039. basic_machine=z8k-unknown
  12040. os=-sim
  12041. ;;
  12042. + z80-*-coff)
  12043. + basic_machine=z80-unknown
  12044. + os=-sim
  12045. + ;;
  12046. none)
  12047. basic_machine=none-none
  12048. os=-none
  12049. @@ -1166,7 +1197,7 @@
  12050. we32k)
  12051. basic_machine=we32k-att
  12052. ;;
  12053. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  12054. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  12055. basic_machine=sh-unknown
  12056. ;;
  12057. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  12058. @@ -1236,10 +1267,11 @@
  12059. # Each alternative MUST END IN A *, to match a version number.
  12060. # -sysv* is not here because it comes later, after sysvr4.
  12061. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  12062. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  12063. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  12064. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  12065. + | -kopensolaris* \
  12066. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  12067. - | -aos* \
  12068. + | -aos* | -aros* \
  12069. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  12070. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  12071. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  12072. @@ -1248,7 +1280,7 @@
  12073. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  12074. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  12075. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  12076. - | -chorusos* | -chorusrdb* \
  12077. + | -chorusos* | -chorusrdb* | -cegcc* \
  12078. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  12079. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  12080. | -uxpv* | -beos* | -mpeix* | -udk* \
  12081. @@ -1388,6 +1420,9 @@
  12082. -zvmoe)
  12083. os=-zvmoe
  12084. ;;
  12085. + -dicos*)
  12086. + os=-dicos
  12087. + ;;
  12088. -none)
  12089. ;;
  12090. *)
  12091. @@ -1585,7 +1620,7 @@
  12092. -sunos*)
  12093. vendor=sun
  12094. ;;
  12095. - -aix*)
  12096. + -cnk*|-aix*)
  12097. vendor=ibm
  12098. ;;
  12099. -beos*)
  12100. diff -Nur libnfnetlink-1.0.0.orig/configure libnfnetlink-1.0.0/configure
  12101. --- libnfnetlink-1.0.0.orig/configure 2009-06-22 19:48:37.000000000 +0200
  12102. +++ libnfnetlink-1.0.0/configure 2011-02-21 18:03:04.513553879 +0100
  12103. @@ -1,60 +1,83 @@
  12104. #! /bin/sh
  12105. # Guess values for system-dependent variables and create Makefiles.
  12106. -# Generated by GNU Autoconf 2.61 for libnfnetlink 1.0.0.
  12107. +# Generated by GNU Autoconf 2.65 for libnfnetlink 1.0.0.
  12108. +#
  12109. #
  12110. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12111. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  12112. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  12113. +# Inc.
  12114. +#
  12115. +#
  12116. # This configure script is free software; the Free Software Foundation
  12117. # gives unlimited permission to copy, distribute and modify it.
  12118. -## --------------------- ##
  12119. -## M4sh Initialization. ##
  12120. -## --------------------- ##
  12121. +## -------------------- ##
  12122. +## M4sh Initialization. ##
  12123. +## -------------------- ##
  12124. # Be more Bourne compatible
  12125. DUALCASE=1; export DUALCASE # for MKS sh
  12126. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12127. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12128. emulate sh
  12129. NULLCMD=:
  12130. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12131. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12132. # is contrary to our usage. Disable this feature.
  12133. alias -g '${1+"$@"}'='"$@"'
  12134. setopt NO_GLOB_SUBST
  12135. else
  12136. - case `(set -o) 2>/dev/null` in
  12137. - *posix*) set -o posix ;;
  12138. + case `(set -o) 2>/dev/null` in #(
  12139. + *posix*) :
  12140. + set -o posix ;; #(
  12141. + *) :
  12142. + ;;
  12143. esac
  12144. -
  12145. fi
  12146. -
  12147. -
  12148. -# PATH needs CR
  12149. -# Avoid depending upon Character Ranges.
  12150. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12151. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12152. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12153. -as_cr_digits='0123456789'
  12154. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  12155. -
  12156. -# The user is always right.
  12157. -if test "${PATH_SEPARATOR+set}" != set; then
  12158. - echo "#! /bin/sh" >conf$$.sh
  12159. - echo "exit 0" >>conf$$.sh
  12160. - chmod +x conf$$.sh
  12161. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12162. - PATH_SEPARATOR=';'
  12163. - else
  12164. - PATH_SEPARATOR=:
  12165. +as_nl='
  12166. +'
  12167. +export as_nl
  12168. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  12169. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12170. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12171. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12172. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  12173. +# but without wasting forks for bash or zsh.
  12174. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  12175. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12176. + as_echo='print -r --'
  12177. + as_echo_n='print -rn --'
  12178. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12179. + as_echo='printf %s\n'
  12180. + as_echo_n='printf %s'
  12181. +else
  12182. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12183. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12184. + as_echo_n='/usr/ucb/echo -n'
  12185. + else
  12186. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12187. + as_echo_n_body='eval
  12188. + arg=$1;
  12189. + case $arg in #(
  12190. + *"$as_nl"*)
  12191. + expr "X$arg" : "X\\(.*\\)$as_nl";
  12192. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12193. + esac;
  12194. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12195. + '
  12196. + export as_echo_n_body
  12197. + as_echo_n='sh -c $as_echo_n_body as_echo'
  12198. fi
  12199. - rm -f conf$$.sh
  12200. + export as_echo_body
  12201. + as_echo='sh -c $as_echo_body as_echo'
  12202. fi
  12203. -# Support unset when possible.
  12204. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12205. - as_unset=unset
  12206. -else
  12207. - as_unset=false
  12208. +# The user is always right.
  12209. +if test "${PATH_SEPARATOR+set}" != set; then
  12210. + PATH_SEPARATOR=:
  12211. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12212. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12213. + PATH_SEPARATOR=';'
  12214. + }
  12215. fi
  12216. @@ -63,20 +86,18 @@
  12217. # there to prevent editors from complaining about space-tab.
  12218. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12219. # splitting by setting IFS to empty value.)
  12220. -as_nl='
  12221. -'
  12222. IFS=" "" $as_nl"
  12223. # Find who we are. Look in the path if we contain no directory separator.
  12224. -case $0 in
  12225. +case $0 in #((
  12226. *[\\/]* ) as_myself=$0 ;;
  12227. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12228. for as_dir in $PATH
  12229. do
  12230. IFS=$as_save_IFS
  12231. test -z "$as_dir" && as_dir=.
  12232. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12233. -done
  12234. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12235. + done
  12236. IFS=$as_save_IFS
  12237. ;;
  12238. @@ -87,32 +108,270 @@
  12239. as_myself=$0
  12240. fi
  12241. if test ! -f "$as_myself"; then
  12242. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12243. - { (exit 1); exit 1; }
  12244. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12245. + exit 1
  12246. fi
  12247. -# Work around bugs in pre-3.0 UWIN ksh.
  12248. -for as_var in ENV MAIL MAILPATH
  12249. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12250. +# Unset variables that we do not need and which cause bugs (e.g. in
  12251. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12252. +# suppresses any "Segmentation fault" message there. '((' could
  12253. +# trigger a bug in pdksh 5.2.14.
  12254. +for as_var in BASH_ENV ENV MAIL MAILPATH
  12255. +do eval test x\${$as_var+set} = xset \
  12256. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12257. done
  12258. PS1='$ '
  12259. PS2='> '
  12260. PS4='+ '
  12261. # NLS nuisances.
  12262. -for as_var in \
  12263. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12264. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12265. - LC_TELEPHONE LC_TIME
  12266. +LC_ALL=C
  12267. +export LC_ALL
  12268. +LANGUAGE=C
  12269. +export LANGUAGE
  12270. +
  12271. +# CDPATH.
  12272. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12273. +
  12274. +if test "x$CONFIG_SHELL" = x; then
  12275. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  12276. + emulate sh
  12277. + NULLCMD=:
  12278. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  12279. + # is contrary to our usage. Disable this feature.
  12280. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  12281. + setopt NO_GLOB_SUBST
  12282. +else
  12283. + case \`(set -o) 2>/dev/null\` in #(
  12284. + *posix*) :
  12285. + set -o posix ;; #(
  12286. + *) :
  12287. + ;;
  12288. +esac
  12289. +fi
  12290. +"
  12291. + as_required="as_fn_return () { (exit \$1); }
  12292. +as_fn_success () { as_fn_return 0; }
  12293. +as_fn_failure () { as_fn_return 1; }
  12294. +as_fn_ret_success () { return 0; }
  12295. +as_fn_ret_failure () { return 1; }
  12296. +
  12297. +exitcode=0
  12298. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  12299. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  12300. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  12301. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  12302. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  12303. +
  12304. +else
  12305. + exitcode=1; echo positional parameters were not saved.
  12306. +fi
  12307. +test x\$exitcode = x0 || exit 1"
  12308. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  12309. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  12310. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  12311. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  12312. +test \$(( 1 + 1 )) = 2 || exit 1"
  12313. + if (eval "$as_required") 2>/dev/null; then :
  12314. + as_have_required=yes
  12315. +else
  12316. + as_have_required=no
  12317. +fi
  12318. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  12319. +
  12320. +else
  12321. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12322. +as_found=false
  12323. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12324. do
  12325. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12326. - eval $as_var=C; export $as_var
  12327. - else
  12328. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12329. - fi
  12330. + IFS=$as_save_IFS
  12331. + test -z "$as_dir" && as_dir=.
  12332. + as_found=:
  12333. + case $as_dir in #(
  12334. + /*)
  12335. + for as_base in sh bash ksh sh5; do
  12336. + # Try only shells that exist, to save several forks.
  12337. + as_shell=$as_dir/$as_base
  12338. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12339. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12340. + CONFIG_SHELL=$as_shell as_have_required=yes
  12341. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12342. + break 2
  12343. +fi
  12344. +fi
  12345. + done;;
  12346. + esac
  12347. + as_found=false
  12348. done
  12349. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  12350. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  12351. + CONFIG_SHELL=$SHELL as_have_required=yes
  12352. +fi; }
  12353. +IFS=$as_save_IFS
  12354. +
  12355. +
  12356. + if test "x$CONFIG_SHELL" != x; then :
  12357. + # We cannot yet assume a decent shell, so we have to provide a
  12358. + # neutralization value for shells without unset; and this also
  12359. + # works around shells that cannot unset nonexistent variables.
  12360. + BASH_ENV=/dev/null
  12361. + ENV=/dev/null
  12362. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  12363. + export CONFIG_SHELL
  12364. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  12365. +fi
  12366. +
  12367. + if test x$as_have_required = xno; then :
  12368. + $as_echo "$0: This script requires a shell more modern than all"
  12369. + $as_echo "$0: the shells that I found on your system."
  12370. + if test x${ZSH_VERSION+set} = xset ; then
  12371. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  12372. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  12373. + else
  12374. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  12375. +$0: including any error possibly output before this
  12376. +$0: message. Then install a modern shell, or manually run
  12377. +$0: the script under such a shell if you do have one."
  12378. + fi
  12379. + exit 1
  12380. +fi
  12381. +fi
  12382. +fi
  12383. +SHELL=${CONFIG_SHELL-/bin/sh}
  12384. +export SHELL
  12385. +# Unset more variables known to interfere with behavior of common tools.
  12386. +CLICOLOR_FORCE= GREP_OPTIONS=
  12387. +unset CLICOLOR_FORCE GREP_OPTIONS
  12388. +
  12389. +## --------------------- ##
  12390. +## M4sh Shell Functions. ##
  12391. +## --------------------- ##
  12392. +# as_fn_unset VAR
  12393. +# ---------------
  12394. +# Portably unset VAR.
  12395. +as_fn_unset ()
  12396. +{
  12397. + { eval $1=; unset $1;}
  12398. +}
  12399. +as_unset=as_fn_unset
  12400. +
  12401. +# as_fn_set_status STATUS
  12402. +# -----------------------
  12403. +# Set $? to STATUS, without forking.
  12404. +as_fn_set_status ()
  12405. +{
  12406. + return $1
  12407. +} # as_fn_set_status
  12408. +
  12409. +# as_fn_exit STATUS
  12410. +# -----------------
  12411. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12412. +as_fn_exit ()
  12413. +{
  12414. + set +e
  12415. + as_fn_set_status $1
  12416. + exit $1
  12417. +} # as_fn_exit
  12418. +
  12419. +# as_fn_mkdir_p
  12420. +# -------------
  12421. +# Create "$as_dir" as a directory, including parents if necessary.
  12422. +as_fn_mkdir_p ()
  12423. +{
  12424. +
  12425. + case $as_dir in #(
  12426. + -*) as_dir=./$as_dir;;
  12427. + esac
  12428. + test -d "$as_dir" || eval $as_mkdir_p || {
  12429. + as_dirs=
  12430. + while :; do
  12431. + case $as_dir in #(
  12432. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12433. + *) as_qdir=$as_dir;;
  12434. + esac
  12435. + as_dirs="'$as_qdir' $as_dirs"
  12436. + as_dir=`$as_dirname -- "$as_dir" ||
  12437. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12438. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12439. + X"$as_dir" : 'X\(//\)$' \| \
  12440. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12441. +$as_echo X"$as_dir" |
  12442. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12443. + s//\1/
  12444. + q
  12445. + }
  12446. + /^X\(\/\/\)[^/].*/{
  12447. + s//\1/
  12448. + q
  12449. + }
  12450. + /^X\(\/\/\)$/{
  12451. + s//\1/
  12452. + q
  12453. + }
  12454. + /^X\(\/\).*/{
  12455. + s//\1/
  12456. + q
  12457. + }
  12458. + s/.*/./; q'`
  12459. + test -d "$as_dir" && break
  12460. + done
  12461. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  12462. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12463. +
  12464. +
  12465. +} # as_fn_mkdir_p
  12466. +# as_fn_append VAR VALUE
  12467. +# ----------------------
  12468. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  12469. +# advantage of any shell optimizations that allow amortized linear growth over
  12470. +# repeated appends, instead of the typical quadratic growth present in naive
  12471. +# implementations.
  12472. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12473. + eval 'as_fn_append ()
  12474. + {
  12475. + eval $1+=\$2
  12476. + }'
  12477. +else
  12478. + as_fn_append ()
  12479. + {
  12480. + eval $1=\$$1\$2
  12481. + }
  12482. +fi # as_fn_append
  12483. +
  12484. +# as_fn_arith ARG...
  12485. +# ------------------
  12486. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  12487. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  12488. +# must be portable across $(()) and expr.
  12489. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12490. + eval 'as_fn_arith ()
  12491. + {
  12492. + as_val=$(( $* ))
  12493. + }'
  12494. +else
  12495. + as_fn_arith ()
  12496. + {
  12497. + as_val=`expr "$@" || test $? -eq 1`
  12498. + }
  12499. +fi # as_fn_arith
  12500. +
  12501. +
  12502. +# as_fn_error ERROR [LINENO LOG_FD]
  12503. +# ---------------------------------
  12504. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12505. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12506. +# script with status $?, using 1 if that was 0.
  12507. +as_fn_error ()
  12508. +{
  12509. + as_status=$?; test $as_status -eq 0 && as_status=1
  12510. + if test "$3"; then
  12511. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12512. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12513. + fi
  12514. + $as_echo "$as_me: error: $1" >&2
  12515. + as_fn_exit $as_status
  12516. +} # as_fn_error
  12517. -# Required to use basename.
  12518. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12519. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12520. as_expr=expr
  12521. @@ -126,13 +385,17 @@
  12522. as_basename=false
  12523. fi
  12524. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12525. + as_dirname=dirname
  12526. +else
  12527. + as_dirname=false
  12528. +fi
  12529. -# Name of the executable.
  12530. as_me=`$as_basename -- "$0" ||
  12531. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12532. X"$0" : 'X\(//\)$' \| \
  12533. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12534. -echo X/"$0" |
  12535. +$as_echo X/"$0" |
  12536. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12537. s//\1/
  12538. q
  12539. @@ -147,428 +410,142 @@
  12540. }
  12541. s/.*/./; q'`
  12542. -# CDPATH.
  12543. -$as_unset CDPATH
  12544. +# Avoid depending upon Character Ranges.
  12545. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12546. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12547. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12548. +as_cr_digits='0123456789'
  12549. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  12550. -if test "x$CONFIG_SHELL" = x; then
  12551. - if (eval ":") 2>/dev/null; then
  12552. - as_have_required=yes
  12553. -else
  12554. - as_have_required=no
  12555. -fi
  12556. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  12557. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  12558. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  12559. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  12560. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  12561. + sed -n '
  12562. + p
  12563. + /[$]LINENO/=
  12564. + ' <$as_myself |
  12565. + sed '
  12566. + s/[$]LINENO.*/&-/
  12567. + t lineno
  12568. + b
  12569. + :lineno
  12570. + N
  12571. + :loop
  12572. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12573. + t loop
  12574. + s/-\n.*//
  12575. + ' >$as_me.lineno &&
  12576. + chmod +x "$as_me.lineno" ||
  12577. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  12578. - if test $as_have_required = yes && (eval ":
  12579. -(as_func_return () {
  12580. - (exit \$1)
  12581. -}
  12582. -as_func_success () {
  12583. - as_func_return 0
  12584. -}
  12585. -as_func_failure () {
  12586. - as_func_return 1
  12587. -}
  12588. -as_func_ret_success () {
  12589. - return 0
  12590. -}
  12591. -as_func_ret_failure () {
  12592. - return 1
  12593. + # Don't try to exec as it changes $[0], causing all sort of problems
  12594. + # (the dirname of $[0] is not the place where we might find the
  12595. + # original and so on. Autoconf is especially sensitive to this).
  12596. + . "./$as_me.lineno"
  12597. + # Exit status is that of the last command.
  12598. + exit
  12599. }
  12600. -exitcode=0
  12601. -if as_func_success; then
  12602. - :
  12603. -else
  12604. - exitcode=1
  12605. - echo as_func_success failed.
  12606. -fi
  12607. +ECHO_C= ECHO_N= ECHO_T=
  12608. +case `echo -n x` in #(((((
  12609. +-n*)
  12610. + case `echo 'xy\c'` in
  12611. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12612. + xy) ECHO_C='\c';;
  12613. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12614. + ECHO_T=' ';;
  12615. + esac;;
  12616. +*)
  12617. + ECHO_N='-n';;
  12618. +esac
  12619. -if as_func_failure; then
  12620. - exitcode=1
  12621. - echo as_func_failure succeeded.
  12622. +rm -f conf$$ conf$$.exe conf$$.file
  12623. +if test -d conf$$.dir; then
  12624. + rm -f conf$$.dir/conf$$.file
  12625. +else
  12626. + rm -f conf$$.dir
  12627. + mkdir conf$$.dir 2>/dev/null
  12628. fi
  12629. -
  12630. -if as_func_ret_success; then
  12631. - :
  12632. +if (echo >conf$$.file) 2>/dev/null; then
  12633. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  12634. + as_ln_s='ln -s'
  12635. + # ... but there are two gotchas:
  12636. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12637. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12638. + # In both cases, we have to default to `cp -p'.
  12639. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12640. + as_ln_s='cp -p'
  12641. + elif ln conf$$.file conf$$ 2>/dev/null; then
  12642. + as_ln_s=ln
  12643. + else
  12644. + as_ln_s='cp -p'
  12645. + fi
  12646. else
  12647. - exitcode=1
  12648. - echo as_func_ret_success failed.
  12649. + as_ln_s='cp -p'
  12650. fi
  12651. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12652. +rmdir conf$$.dir 2>/dev/null
  12653. -if as_func_ret_failure; then
  12654. - exitcode=1
  12655. - echo as_func_ret_failure succeeded.
  12656. +if mkdir -p . 2>/dev/null; then
  12657. + as_mkdir_p='mkdir -p "$as_dir"'
  12658. +else
  12659. + test -d ./-p && rmdir ./-p
  12660. + as_mkdir_p=false
  12661. fi
  12662. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  12663. - :
  12664. +if test -x / >/dev/null 2>&1; then
  12665. + as_test_x='test -x'
  12666. else
  12667. - exitcode=1
  12668. - echo positional parameters were not saved.
  12669. + if ls -dL / >/dev/null 2>&1; then
  12670. + as_ls_L_option=L
  12671. + else
  12672. + as_ls_L_option=
  12673. + fi
  12674. + as_test_x='
  12675. + eval sh -c '\''
  12676. + if test -d "$1"; then
  12677. + test -d "$1/.";
  12678. + else
  12679. + case $1 in #(
  12680. + -*)set "./$1";;
  12681. + esac;
  12682. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12683. + ???[sx]*):;;*)false;;esac;fi
  12684. + '\'' sh
  12685. + '
  12686. fi
  12687. +as_executable_p=$as_test_x
  12688. -test \$exitcode = 0) || { (exit 1); exit 1; }
  12689. +# Sed expression to map a string onto a valid CPP name.
  12690. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12691. -(
  12692. - as_lineno_1=\$LINENO
  12693. - as_lineno_2=\$LINENO
  12694. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  12695. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  12696. -") 2> /dev/null; then
  12697. - :
  12698. -else
  12699. - as_candidate_shells=
  12700. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12701. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12702. -do
  12703. - IFS=$as_save_IFS
  12704. - test -z "$as_dir" && as_dir=.
  12705. - case $as_dir in
  12706. - /*)
  12707. - for as_base in sh bash ksh sh5; do
  12708. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  12709. - done;;
  12710. - esac
  12711. -done
  12712. -IFS=$as_save_IFS
  12713. +# Sed expression to map a string onto a valid variable name.
  12714. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12715. - for as_shell in $as_candidate_shells $SHELL; do
  12716. - # Try only shells that exist, to save several forks.
  12717. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12718. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  12719. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12720. - emulate sh
  12721. - NULLCMD=:
  12722. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12723. - # is contrary to our usage. Disable this feature.
  12724. - alias -g '${1+"$@"}'='"$@"'
  12725. - setopt NO_GLOB_SUBST
  12726. -else
  12727. - case `(set -o) 2>/dev/null` in
  12728. - *posix*) set -o posix ;;
  12729. -esac
  12730. -fi
  12731. +# Check that we are running under the correct shell.
  12732. +SHELL=${CONFIG_SHELL-/bin/sh}
  12733. +case X$lt_ECHO in
  12734. +X*--fallback-echo)
  12735. + # Remove one level of quotation (which was required for Make).
  12736. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  12737. + ;;
  12738. +esac
  12739. -:
  12740. -_ASEOF
  12741. -}; then
  12742. - CONFIG_SHELL=$as_shell
  12743. - as_have_required=yes
  12744. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  12745. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12746. - emulate sh
  12747. - NULLCMD=:
  12748. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12749. - # is contrary to our usage. Disable this feature.
  12750. - alias -g '${1+"$@"}'='"$@"'
  12751. - setopt NO_GLOB_SUBST
  12752. -else
  12753. - case `(set -o) 2>/dev/null` in
  12754. - *posix*) set -o posix ;;
  12755. -esac
  12756. -
  12757. -fi
  12758. -
  12759. -
  12760. -:
  12761. -(as_func_return () {
  12762. - (exit $1)
  12763. -}
  12764. -as_func_success () {
  12765. - as_func_return 0
  12766. -}
  12767. -as_func_failure () {
  12768. - as_func_return 1
  12769. -}
  12770. -as_func_ret_success () {
  12771. - return 0
  12772. -}
  12773. -as_func_ret_failure () {
  12774. - return 1
  12775. -}
  12776. -
  12777. -exitcode=0
  12778. -if as_func_success; then
  12779. - :
  12780. -else
  12781. - exitcode=1
  12782. - echo as_func_success failed.
  12783. -fi
  12784. -
  12785. -if as_func_failure; then
  12786. - exitcode=1
  12787. - echo as_func_failure succeeded.
  12788. -fi
  12789. -
  12790. -if as_func_ret_success; then
  12791. - :
  12792. -else
  12793. - exitcode=1
  12794. - echo as_func_ret_success failed.
  12795. -fi
  12796. -
  12797. -if as_func_ret_failure; then
  12798. - exitcode=1
  12799. - echo as_func_ret_failure succeeded.
  12800. -fi
  12801. -
  12802. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  12803. - :
  12804. -else
  12805. - exitcode=1
  12806. - echo positional parameters were not saved.
  12807. -fi
  12808. -
  12809. -test $exitcode = 0) || { (exit 1); exit 1; }
  12810. -
  12811. -(
  12812. - as_lineno_1=$LINENO
  12813. - as_lineno_2=$LINENO
  12814. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  12815. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  12816. -
  12817. -_ASEOF
  12818. -}; then
  12819. - break
  12820. -fi
  12821. -
  12822. -fi
  12823. -
  12824. - done
  12825. -
  12826. - if test "x$CONFIG_SHELL" != x; then
  12827. - for as_var in BASH_ENV ENV
  12828. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12829. - done
  12830. - export CONFIG_SHELL
  12831. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  12832. -fi
  12833. -
  12834. -
  12835. - if test $as_have_required = no; then
  12836. - echo This script requires a shell more modern than all the
  12837. - echo shells that I found on your system. Please install a
  12838. - echo modern shell, or manually run the script under such a
  12839. - echo shell if you do have one.
  12840. - { (exit 1); exit 1; }
  12841. -fi
  12842. -
  12843. -
  12844. -fi
  12845. -
  12846. -fi
  12847. -
  12848. -
  12849. -
  12850. -(eval "as_func_return () {
  12851. - (exit \$1)
  12852. -}
  12853. -as_func_success () {
  12854. - as_func_return 0
  12855. -}
  12856. -as_func_failure () {
  12857. - as_func_return 1
  12858. -}
  12859. -as_func_ret_success () {
  12860. - return 0
  12861. -}
  12862. -as_func_ret_failure () {
  12863. - return 1
  12864. -}
  12865. -
  12866. -exitcode=0
  12867. -if as_func_success; then
  12868. - :
  12869. -else
  12870. - exitcode=1
  12871. - echo as_func_success failed.
  12872. -fi
  12873. -
  12874. -if as_func_failure; then
  12875. - exitcode=1
  12876. - echo as_func_failure succeeded.
  12877. -fi
  12878. -
  12879. -if as_func_ret_success; then
  12880. - :
  12881. -else
  12882. - exitcode=1
  12883. - echo as_func_ret_success failed.
  12884. -fi
  12885. -
  12886. -if as_func_ret_failure; then
  12887. - exitcode=1
  12888. - echo as_func_ret_failure succeeded.
  12889. -fi
  12890. -
  12891. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  12892. - :
  12893. -else
  12894. - exitcode=1
  12895. - echo positional parameters were not saved.
  12896. -fi
  12897. -
  12898. -test \$exitcode = 0") || {
  12899. - echo No shell found that supports shell functions.
  12900. - echo Please tell autoconf@gnu.org about your system,
  12901. - echo including any error possibly output before this
  12902. - echo message
  12903. -}
  12904. -
  12905. -
  12906. -
  12907. - as_lineno_1=$LINENO
  12908. - as_lineno_2=$LINENO
  12909. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  12910. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12911. -
  12912. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12913. - # uniformly replaced by the line number. The first 'sed' inserts a
  12914. - # line-number line after each line using $LINENO; the second 'sed'
  12915. - # does the real work. The second script uses 'N' to pair each
  12916. - # line-number line with the line containing $LINENO, and appends
  12917. - # trailing '-' during substitution so that $LINENO is not a special
  12918. - # case at line end.
  12919. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12920. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  12921. - # E. McMahon (1931-1989) for sed's syntax. :-)
  12922. - sed -n '
  12923. - p
  12924. - /[$]LINENO/=
  12925. - ' <$as_myself |
  12926. - sed '
  12927. - s/[$]LINENO.*/&-/
  12928. - t lineno
  12929. - b
  12930. - :lineno
  12931. - N
  12932. - :loop
  12933. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12934. - t loop
  12935. - s/-\n.*//
  12936. - ' >$as_me.lineno &&
  12937. - chmod +x "$as_me.lineno" ||
  12938. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12939. - { (exit 1); exit 1; }; }
  12940. -
  12941. - # Don't try to exec as it changes $[0], causing all sort of problems
  12942. - # (the dirname of $[0] is not the place where we might find the
  12943. - # original and so on. Autoconf is especially sensitive to this).
  12944. - . "./$as_me.lineno"
  12945. - # Exit status is that of the last command.
  12946. - exit
  12947. -}
  12948. -
  12949. -
  12950. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12951. - as_dirname=dirname
  12952. -else
  12953. - as_dirname=false
  12954. -fi
  12955. -
  12956. -ECHO_C= ECHO_N= ECHO_T=
  12957. -case `echo -n x` in
  12958. --n*)
  12959. - case `echo 'x\c'` in
  12960. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12961. - *) ECHO_C='\c';;
  12962. - esac;;
  12963. -*)
  12964. - ECHO_N='-n';;
  12965. -esac
  12966. -
  12967. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  12968. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12969. - as_expr=expr
  12970. -else
  12971. - as_expr=false
  12972. -fi
  12973. -
  12974. -rm -f conf$$ conf$$.exe conf$$.file
  12975. -if test -d conf$$.dir; then
  12976. - rm -f conf$$.dir/conf$$.file
  12977. -else
  12978. - rm -f conf$$.dir
  12979. - mkdir conf$$.dir
  12980. -fi
  12981. -echo >conf$$.file
  12982. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  12983. - as_ln_s='ln -s'
  12984. - # ... but there are two gotchas:
  12985. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12986. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12987. - # In both cases, we have to default to `cp -p'.
  12988. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12989. - as_ln_s='cp -p'
  12990. -elif ln conf$$.file conf$$ 2>/dev/null; then
  12991. - as_ln_s=ln
  12992. -else
  12993. - as_ln_s='cp -p'
  12994. -fi
  12995. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12996. -rmdir conf$$.dir 2>/dev/null
  12997. -
  12998. -if mkdir -p . 2>/dev/null; then
  12999. - as_mkdir_p=:
  13000. -else
  13001. - test -d ./-p && rmdir ./-p
  13002. - as_mkdir_p=false
  13003. -fi
  13004. -
  13005. -if test -x / >/dev/null 2>&1; then
  13006. - as_test_x='test -x'
  13007. -else
  13008. - if ls -dL / >/dev/null 2>&1; then
  13009. - as_ls_L_option=L
  13010. - else
  13011. - as_ls_L_option=
  13012. - fi
  13013. - as_test_x='
  13014. - eval sh -c '\''
  13015. - if test -d "$1"; then
  13016. - test -d "$1/.";
  13017. - else
  13018. - case $1 in
  13019. - -*)set "./$1";;
  13020. - esac;
  13021. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13022. - ???[sx]*):;;*)false;;esac;fi
  13023. - '\'' sh
  13024. - '
  13025. -fi
  13026. -as_executable_p=$as_test_x
  13027. -
  13028. -# Sed expression to map a string onto a valid CPP name.
  13029. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13030. -
  13031. -# Sed expression to map a string onto a valid variable name.
  13032. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13033. -
  13034. -
  13035. -
  13036. -
  13037. -# Check that we are running under the correct shell.
  13038. -SHELL=${CONFIG_SHELL-/bin/sh}
  13039. -
  13040. -case X$ECHO in
  13041. -X*--fallback-echo)
  13042. - # Remove one level of quotation (which was required for Make).
  13043. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13044. - ;;
  13045. -esac
  13046. -
  13047. -echo=${ECHO-echo}
  13048. +ECHO=${lt_ECHO-echo}
  13049. if test "X$1" = X--no-reexec; then
  13050. # Discard the --no-reexec flag, and continue.
  13051. shift
  13052. elif test "X$1" = X--fallback-echo; then
  13053. # Avoid inline document here, it may be left over
  13054. :
  13055. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13056. - # Yippee, $echo works!
  13057. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13058. + # Yippee, $ECHO works!
  13059. :
  13060. else
  13061. # Restart under the correct shell.
  13062. @@ -578,9 +555,9 @@
  13063. if test "X$1" = X--fallback-echo; then
  13064. # used as fallback echo
  13065. shift
  13066. - cat <<EOF
  13067. + cat <<_LT_EOF
  13068. $*
  13069. -EOF
  13070. +_LT_EOF
  13071. exit 0
  13072. fi
  13073. @@ -588,122 +565,118 @@
  13074. # if CDPATH is set.
  13075. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13076. -if test -z "$ECHO"; then
  13077. -if test "X${echo_test_string+set}" != Xset; then
  13078. -# find a string as large as possible, as long as the shell can cope with it
  13079. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13080. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13081. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13082. - echo_test_string=`eval $cmd` &&
  13083. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13084. - then
  13085. - break
  13086. - fi
  13087. - done
  13088. -fi
  13089. +if test -z "$lt_ECHO"; then
  13090. + if test "X${echo_test_string+set}" != Xset; then
  13091. + # find a string as large as possible, as long as the shell can cope with it
  13092. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13093. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13094. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  13095. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  13096. + then
  13097. + break
  13098. + fi
  13099. + done
  13100. + fi
  13101. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13102. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13103. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13104. - :
  13105. -else
  13106. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13107. - # backslashes. This makes it impossible to quote backslashes using
  13108. - # echo "$something" | sed 's/\\/\\\\/g'
  13109. - #
  13110. - # So, first we look for a working echo in the user's PATH.
  13111. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13112. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13113. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13114. + :
  13115. + else
  13116. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  13117. + # backslashes. This makes it impossible to quote backslashes using
  13118. + # echo "$something" | sed 's/\\/\\\\/g'
  13119. + #
  13120. + # So, first we look for a working echo in the user's PATH.
  13121. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13122. - for dir in $PATH /usr/ucb; do
  13123. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13124. + for dir in $PATH /usr/ucb; do
  13125. + IFS="$lt_save_ifs"
  13126. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13127. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13128. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13129. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13130. + ECHO="$dir/echo"
  13131. + break
  13132. + fi
  13133. + done
  13134. IFS="$lt_save_ifs"
  13135. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13136. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13137. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13138. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13139. - echo="$dir/echo"
  13140. - break
  13141. - fi
  13142. - done
  13143. - IFS="$lt_save_ifs"
  13144. - if test "X$echo" = Xecho; then
  13145. - # We didn't find a better echo, so look for alternatives.
  13146. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13147. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13148. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13149. - # This shell has a builtin print -r that does the trick.
  13150. - echo='print -r'
  13151. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13152. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13153. - # If we have ksh, try running configure again with it.
  13154. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13155. - export ORIGINAL_CONFIG_SHELL
  13156. - CONFIG_SHELL=/bin/ksh
  13157. - export CONFIG_SHELL
  13158. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13159. - else
  13160. - # Try using printf.
  13161. - echo='printf %s\n'
  13162. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13163. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13164. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13165. - # Cool, printf works
  13166. - :
  13167. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13168. - test "X$echo_testing_string" = 'X\t' &&
  13169. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13170. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13171. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13172. - export CONFIG_SHELL
  13173. - SHELL="$CONFIG_SHELL"
  13174. - export SHELL
  13175. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13176. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13177. - test "X$echo_testing_string" = 'X\t' &&
  13178. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13179. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13180. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13181. + if test "X$ECHO" = Xecho; then
  13182. + # We didn't find a better echo, so look for alternatives.
  13183. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  13184. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  13185. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13186. + # This shell has a builtin print -r that does the trick.
  13187. + ECHO='print -r'
  13188. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  13189. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  13190. + # If we have ksh, try running configure again with it.
  13191. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13192. + export ORIGINAL_CONFIG_SHELL
  13193. + CONFIG_SHELL=/bin/ksh
  13194. + export CONFIG_SHELL
  13195. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13196. else
  13197. - # maybe with a smaller string...
  13198. - prev=:
  13199. + # Try using printf.
  13200. + ECHO='printf %s\n'
  13201. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13202. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13203. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13204. + # Cool, printf works
  13205. + :
  13206. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13207. + test "X$echo_testing_string" = 'X\t' &&
  13208. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13209. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13210. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13211. + export CONFIG_SHELL
  13212. + SHELL="$CONFIG_SHELL"
  13213. + export SHELL
  13214. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13215. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13216. + test "X$echo_testing_string" = 'X\t' &&
  13217. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13218. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13219. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13220. + else
  13221. + # maybe with a smaller string...
  13222. + prev=:
  13223. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13224. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13225. - then
  13226. - break
  13227. - fi
  13228. - prev="$cmd"
  13229. - done
  13230. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13231. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  13232. + then
  13233. + break
  13234. + fi
  13235. + prev="$cmd"
  13236. + done
  13237. - if test "$prev" != 'sed 50q "$0"'; then
  13238. - echo_test_string=`eval $prev`
  13239. - export echo_test_string
  13240. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13241. - else
  13242. - # Oops. We lost completely, so just stick with echo.
  13243. - echo=echo
  13244. - fi
  13245. + if test "$prev" != 'sed 50q "$0"'; then
  13246. + echo_test_string=`eval $prev`
  13247. + export echo_test_string
  13248. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13249. + else
  13250. + # Oops. We lost completely, so just stick with echo.
  13251. + ECHO=echo
  13252. + fi
  13253. + fi
  13254. fi
  13255. fi
  13256. fi
  13257. fi
  13258. -fi
  13259. # Copy echo and quote the copy suitably for passing to libtool from
  13260. # the Makefile, instead of quoting the original, which is used later.
  13261. -ECHO=$echo
  13262. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13263. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13264. +lt_ECHO=$ECHO
  13265. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13266. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13267. fi
  13268. -tagnames=${tagnames+${tagnames},}CXX
  13269. -
  13270. -tagnames=${tagnames+${tagnames},}F77
  13271. -
  13272. -exec 7<&0 </dev/null 6>&1
  13273. +test -n "$DJDIR" || exec 7<&0 </dev/null
  13274. +exec 6>&1
  13275. # Name of the host.
  13276. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  13277. @@ -721,7 +694,6 @@
  13278. subdirs=
  13279. MFLAGS=
  13280. MAKEFLAGS=
  13281. -SHELL=${CONFIG_SHELL-/bin/sh}
  13282. # Identity of this package.
  13283. PACKAGE_NAME='libnfnetlink'
  13284. @@ -729,6 +701,7 @@
  13285. PACKAGE_VERSION='1.0.0'
  13286. PACKAGE_STRING='libnfnetlink 1.0.0'
  13287. PACKAGE_BUGREPORT=''
  13288. +PACKAGE_URL=''
  13289. # Factoring default headers for most tests.
  13290. ac_includes_default="\
  13291. @@ -766,118 +739,131 @@
  13292. # include <unistd.h>
  13293. #endif"
  13294. -ac_subst_vars='SHELL
  13295. -PATH_SEPARATOR
  13296. -PACKAGE_NAME
  13297. -PACKAGE_TARNAME
  13298. -PACKAGE_VERSION
  13299. -PACKAGE_STRING
  13300. -PACKAGE_BUGREPORT
  13301. -exec_prefix
  13302. -prefix
  13303. -program_transform_name
  13304. -bindir
  13305. -sbindir
  13306. -libexecdir
  13307. -datarootdir
  13308. -datadir
  13309. -sysconfdir
  13310. -sharedstatedir
  13311. -localstatedir
  13312. -includedir
  13313. -oldincludedir
  13314. -docdir
  13315. -infodir
  13316. -htmldir
  13317. -dvidir
  13318. -pdfdir
  13319. -psdir
  13320. -libdir
  13321. -localedir
  13322. -mandir
  13323. -DEFS
  13324. -ECHO_C
  13325. -ECHO_N
  13326. -ECHO_T
  13327. -LIBS
  13328. -build_alias
  13329. -host_alias
  13330. -target_alias
  13331. -build
  13332. -build_cpu
  13333. -build_vendor
  13334. -build_os
  13335. -host
  13336. -host_cpu
  13337. -host_vendor
  13338. -host_os
  13339. -target
  13340. -target_cpu
  13341. -target_vendor
  13342. -target_os
  13343. -INSTALL_PROGRAM
  13344. -INSTALL_SCRIPT
  13345. -INSTALL_DATA
  13346. -am__isrc
  13347. -CYGPATH_W
  13348. -PACKAGE
  13349. -VERSION
  13350. -ACLOCAL
  13351. -AUTOCONF
  13352. -AUTOMAKE
  13353. -AUTOHEADER
  13354. -MAKEINFO
  13355. -install_sh
  13356. -STRIP
  13357. -INSTALL_STRIP_PROGRAM
  13358. -mkdir_p
  13359. -AWK
  13360. -SET_MAKE
  13361. -am__leading_dot
  13362. -AMTAR
  13363. -am__tar
  13364. -am__untar
  13365. -CC
  13366. -CFLAGS
  13367. -LDFLAGS
  13368. -CPPFLAGS
  13369. -ac_ct_CC
  13370. -EXEEXT
  13371. -OBJEXT
  13372. -DEPDIR
  13373. -am__include
  13374. -am__quote
  13375. -AMDEP_TRUE
  13376. -AMDEP_FALSE
  13377. -AMDEPBACKSLASH
  13378. -CCDEPMODE
  13379. -am__fastdepCC_TRUE
  13380. -am__fastdepCC_FALSE
  13381. -SED
  13382. -GREP
  13383. -EGREP
  13384. -LN_S
  13385. -ECHO
  13386. -AR
  13387. -RANLIB
  13388. -DSYMUTIL
  13389. -NMEDIT
  13390. +ac_subst_vars='am__EXEEXT_FALSE
  13391. +am__EXEEXT_TRUE
  13392. +LTLIBOBJS
  13393. +LIBOBJS
  13394. +LIBTOOL_DEPS
  13395. CPP
  13396. -CXX
  13397. -CXXFLAGS
  13398. -ac_ct_CXX
  13399. -CXXDEPMODE
  13400. -am__fastdepCXX_TRUE
  13401. -am__fastdepCXX_FALSE
  13402. -CXXCPP
  13403. -F77
  13404. -FFLAGS
  13405. -ac_ct_F77
  13406. +OTOOL64
  13407. +OTOOL
  13408. +LIPO
  13409. +NMEDIT
  13410. +DSYMUTIL
  13411. +lt_ECHO
  13412. +RANLIB
  13413. +AR
  13414. +OBJDUMP
  13415. +LN_S
  13416. +NM
  13417. +ac_ct_DUMPBIN
  13418. +DUMPBIN
  13419. +LD
  13420. +FGREP
  13421. +EGREP
  13422. +GREP
  13423. +SED
  13424. LIBTOOL
  13425. -LIBTOOL_DEPS
  13426. -LIBOBJS
  13427. -LTLIBOBJS'
  13428. +am__fastdepCC_FALSE
  13429. +am__fastdepCC_TRUE
  13430. +CCDEPMODE
  13431. +AMDEPBACKSLASH
  13432. +AMDEP_FALSE
  13433. +AMDEP_TRUE
  13434. +am__quote
  13435. +am__include
  13436. +DEPDIR
  13437. +OBJEXT
  13438. +EXEEXT
  13439. +ac_ct_CC
  13440. +CPPFLAGS
  13441. +LDFLAGS
  13442. +CFLAGS
  13443. +CC
  13444. +am__untar
  13445. +am__tar
  13446. +AMTAR
  13447. +am__leading_dot
  13448. +SET_MAKE
  13449. +AWK
  13450. +mkdir_p
  13451. +MKDIR_P
  13452. +INSTALL_STRIP_PROGRAM
  13453. +STRIP
  13454. +install_sh
  13455. +MAKEINFO
  13456. +AUTOHEADER
  13457. +AUTOMAKE
  13458. +AUTOCONF
  13459. +ACLOCAL
  13460. +VERSION
  13461. +PACKAGE
  13462. +CYGPATH_W
  13463. +am__isrc
  13464. +INSTALL_DATA
  13465. +INSTALL_SCRIPT
  13466. +INSTALL_PROGRAM
  13467. +target_os
  13468. +target_vendor
  13469. +target_cpu
  13470. +target
  13471. +host_os
  13472. +host_vendor
  13473. +host_cpu
  13474. +host
  13475. +build_os
  13476. +build_vendor
  13477. +build_cpu
  13478. +build
  13479. +target_alias
  13480. +host_alias
  13481. +build_alias
  13482. +LIBS
  13483. +ECHO_T
  13484. +ECHO_N
  13485. +ECHO_C
  13486. +DEFS
  13487. +mandir
  13488. +localedir
  13489. +libdir
  13490. +psdir
  13491. +pdfdir
  13492. +dvidir
  13493. +htmldir
  13494. +infodir
  13495. +docdir
  13496. +oldincludedir
  13497. +includedir
  13498. +localstatedir
  13499. +sharedstatedir
  13500. +sysconfdir
  13501. +datadir
  13502. +datarootdir
  13503. +libexecdir
  13504. +sbindir
  13505. +bindir
  13506. +program_transform_name
  13507. +prefix
  13508. +exec_prefix
  13509. +PACKAGE_URL
  13510. +PACKAGE_BUGREPORT
  13511. +PACKAGE_STRING
  13512. +PACKAGE_VERSION
  13513. +PACKAGE_TARNAME
  13514. +PACKAGE_NAME
  13515. +PATH_SEPARATOR
  13516. +SHELL'
  13517. ac_subst_files=''
  13518. +ac_user_opts='
  13519. +enable_option_checking
  13520. +enable_dependency_tracking
  13521. +enable_shared
  13522. +enable_static
  13523. +with_pic
  13524. +enable_fast_install
  13525. +with_gnu_ld
  13526. +enable_libtool_lock
  13527. +'
  13528. ac_precious_vars='build_alias
  13529. host_alias
  13530. target_alias
  13531. @@ -886,18 +872,14 @@
  13532. LDFLAGS
  13533. LIBS
  13534. CPPFLAGS
  13535. -CPP
  13536. -CXX
  13537. -CXXFLAGS
  13538. -CCC
  13539. -CXXCPP
  13540. -F77
  13541. -FFLAGS'
  13542. +CPP'
  13543. # Initialize some variables set by options.
  13544. ac_init_help=
  13545. ac_init_version=false
  13546. +ac_unrecognized_opts=
  13547. +ac_unrecognized_sep=
  13548. # The variables have the same names as the options, with
  13549. # dashes changed to underlines.
  13550. cache_file=/dev/null
  13551. @@ -996,13 +978,20 @@
  13552. datarootdir=$ac_optarg ;;
  13553. -disable-* | --disable-*)
  13554. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  13555. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  13556. # Reject names that are not valid shell variable names.
  13557. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13558. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  13559. - { (exit 1); exit 1; }; }
  13560. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  13561. - eval enable_$ac_feature=no ;;
  13562. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13563. + as_fn_error "invalid feature name: $ac_useropt"
  13564. + ac_useropt_orig=$ac_useropt
  13565. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13566. + case $ac_user_opts in
  13567. + *"
  13568. +"enable_$ac_useropt"
  13569. +"*) ;;
  13570. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  13571. + ac_unrecognized_sep=', ';;
  13572. + esac
  13573. + eval enable_$ac_useropt=no ;;
  13574. -docdir | --docdir | --docdi | --doc | --do)
  13575. ac_prev=docdir ;;
  13576. @@ -1015,13 +1004,20 @@
  13577. dvidir=$ac_optarg ;;
  13578. -enable-* | --enable-*)
  13579. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  13580. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  13581. # Reject names that are not valid shell variable names.
  13582. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13583. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  13584. - { (exit 1); exit 1; }; }
  13585. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  13586. - eval enable_$ac_feature=\$ac_optarg ;;
  13587. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13588. + as_fn_error "invalid feature name: $ac_useropt"
  13589. + ac_useropt_orig=$ac_useropt
  13590. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13591. + case $ac_user_opts in
  13592. + *"
  13593. +"enable_$ac_useropt"
  13594. +"*) ;;
  13595. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  13596. + ac_unrecognized_sep=', ';;
  13597. + esac
  13598. + eval enable_$ac_useropt=\$ac_optarg ;;
  13599. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  13600. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  13601. @@ -1212,22 +1208,36 @@
  13602. ac_init_version=: ;;
  13603. -with-* | --with-*)
  13604. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  13605. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  13606. # Reject names that are not valid shell variable names.
  13607. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13608. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  13609. - { (exit 1); exit 1; }; }
  13610. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  13611. - eval with_$ac_package=\$ac_optarg ;;
  13612. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13613. + as_fn_error "invalid package name: $ac_useropt"
  13614. + ac_useropt_orig=$ac_useropt
  13615. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13616. + case $ac_user_opts in
  13617. + *"
  13618. +"with_$ac_useropt"
  13619. +"*) ;;
  13620. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  13621. + ac_unrecognized_sep=', ';;
  13622. + esac
  13623. + eval with_$ac_useropt=\$ac_optarg ;;
  13624. -without-* | --without-*)
  13625. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  13626. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  13627. # Reject names that are not valid shell variable names.
  13628. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13629. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  13630. - { (exit 1); exit 1; }; }
  13631. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  13632. - eval with_$ac_package=no ;;
  13633. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13634. + as_fn_error "invalid package name: $ac_useropt"
  13635. + ac_useropt_orig=$ac_useropt
  13636. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13637. + case $ac_user_opts in
  13638. + *"
  13639. +"with_$ac_useropt"
  13640. +"*) ;;
  13641. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  13642. + ac_unrecognized_sep=', ';;
  13643. + esac
  13644. + eval with_$ac_useropt=no ;;
  13645. --x)
  13646. # Obsolete; use --with-x.
  13647. @@ -1247,25 +1257,25 @@
  13648. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  13649. x_libraries=$ac_optarg ;;
  13650. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  13651. -Try \`$0 --help' for more information." >&2
  13652. - { (exit 1); exit 1; }; }
  13653. + -*) as_fn_error "unrecognized option: \`$ac_option'
  13654. +Try \`$0 --help' for more information."
  13655. ;;
  13656. *=*)
  13657. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  13658. # Reject names that are not valid shell variable names.
  13659. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  13660. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  13661. - { (exit 1); exit 1; }; }
  13662. + case $ac_envvar in #(
  13663. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  13664. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  13665. + esac
  13666. eval $ac_envvar=\$ac_optarg
  13667. export $ac_envvar ;;
  13668. *)
  13669. # FIXME: should be removed in autoconf 3.0.
  13670. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  13671. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  13672. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  13673. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  13674. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  13675. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  13676. ;;
  13677. @@ -1274,23 +1284,36 @@
  13678. if test -n "$ac_prev"; then
  13679. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  13680. - { echo "$as_me: error: missing argument to $ac_option" >&2
  13681. - { (exit 1); exit 1; }; }
  13682. + as_fn_error "missing argument to $ac_option"
  13683. +fi
  13684. +
  13685. +if test -n "$ac_unrecognized_opts"; then
  13686. + case $enable_option_checking in
  13687. + no) ;;
  13688. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  13689. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  13690. + esac
  13691. fi
  13692. -# Be sure to have absolute directory names.
  13693. +# Check all directory arguments for consistency.
  13694. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  13695. datadir sysconfdir sharedstatedir localstatedir includedir \
  13696. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  13697. libdir localedir mandir
  13698. do
  13699. eval ac_val=\$$ac_var
  13700. + # Remove trailing slashes.
  13701. + case $ac_val in
  13702. + */ )
  13703. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  13704. + eval $ac_var=\$ac_val;;
  13705. + esac
  13706. + # Be sure to have absolute directory names.
  13707. case $ac_val in
  13708. [\\/$]* | ?:[\\/]* ) continue;;
  13709. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  13710. esac
  13711. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  13712. - { (exit 1); exit 1; }; }
  13713. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  13714. done
  13715. # There might be people who depend on the old broken behavior: `$host'
  13716. @@ -1304,7 +1327,7 @@
  13717. if test "x$host_alias" != x; then
  13718. if test "x$build_alias" = x; then
  13719. cross_compiling=maybe
  13720. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  13721. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  13722. If a cross compiler is detected then cross compile mode will be used." >&2
  13723. elif test "x$build_alias" != "x$host_alias"; then
  13724. cross_compiling=yes
  13725. @@ -1320,23 +1343,21 @@
  13726. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  13727. ac_ls_di=`ls -di .` &&
  13728. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  13729. - { echo "$as_me: error: Working directory cannot be determined" >&2
  13730. - { (exit 1); exit 1; }; }
  13731. + as_fn_error "working directory cannot be determined"
  13732. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  13733. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  13734. - { (exit 1); exit 1; }; }
  13735. + as_fn_error "pwd does not report name of working directory"
  13736. # Find the source files, if location was not specified.
  13737. if test -z "$srcdir"; then
  13738. ac_srcdir_defaulted=yes
  13739. # Try the directory containing this script, then the parent directory.
  13740. - ac_confdir=`$as_dirname -- "$0" ||
  13741. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13742. - X"$0" : 'X\(//\)[^/]' \| \
  13743. - X"$0" : 'X\(//\)$' \| \
  13744. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13745. -echo X"$0" |
  13746. + ac_confdir=`$as_dirname -- "$as_myself" ||
  13747. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13748. + X"$as_myself" : 'X\(//\)[^/]' \| \
  13749. + X"$as_myself" : 'X\(//\)$' \| \
  13750. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  13751. +$as_echo X"$as_myself" |
  13752. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13753. s//\1/
  13754. q
  13755. @@ -1363,13 +1384,11 @@
  13756. fi
  13757. if test ! -r "$srcdir/$ac_unique_file"; then
  13758. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  13759. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  13760. - { (exit 1); exit 1; }; }
  13761. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  13762. fi
  13763. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  13764. ac_abs_confdir=`(
  13765. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  13766. - { (exit 1); exit 1; }; }
  13767. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  13768. pwd)`
  13769. # When building in place, set srcdir=.
  13770. if test "$ac_abs_confdir" = "$ac_pwd"; then
  13771. @@ -1417,9 +1436,9 @@
  13772. Installation directories:
  13773. --prefix=PREFIX install architecture-independent files in PREFIX
  13774. - [$ac_default_prefix]
  13775. + [$ac_default_prefix]
  13776. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  13777. - [PREFIX]
  13778. + [PREFIX]
  13779. By default, \`make install' will install all the files in
  13780. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  13781. @@ -1429,25 +1448,25 @@
  13782. For better control, use the options below.
  13783. Fine tuning of the installation directories:
  13784. - --bindir=DIR user executables [EPREFIX/bin]
  13785. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  13786. - --libexecdir=DIR program executables [EPREFIX/libexec]
  13787. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  13788. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  13789. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  13790. - --libdir=DIR object code libraries [EPREFIX/lib]
  13791. - --includedir=DIR C header files [PREFIX/include]
  13792. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  13793. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  13794. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  13795. - --infodir=DIR info documentation [DATAROOTDIR/info]
  13796. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  13797. - --mandir=DIR man documentation [DATAROOTDIR/man]
  13798. - --docdir=DIR documentation root [DATAROOTDIR/doc/libnfnetlink]
  13799. - --htmldir=DIR html documentation [DOCDIR]
  13800. - --dvidir=DIR dvi documentation [DOCDIR]
  13801. - --pdfdir=DIR pdf documentation [DOCDIR]
  13802. - --psdir=DIR ps documentation [DOCDIR]
  13803. + --bindir=DIR user executables [EPREFIX/bin]
  13804. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  13805. + --libexecdir=DIR program executables [EPREFIX/libexec]
  13806. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  13807. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  13808. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  13809. + --libdir=DIR object code libraries [EPREFIX/lib]
  13810. + --includedir=DIR C header files [PREFIX/include]
  13811. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  13812. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  13813. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  13814. + --infodir=DIR info documentation [DATAROOTDIR/info]
  13815. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  13816. + --mandir=DIR man documentation [DATAROOTDIR/man]
  13817. + --docdir=DIR documentation root [DATAROOTDIR/doc/libnfnetlink]
  13818. + --htmldir=DIR html documentation [DOCDIR]
  13819. + --dvidir=DIR dvi documentation [DOCDIR]
  13820. + --pdfdir=DIR pdf documentation [DOCDIR]
  13821. + --psdir=DIR ps documentation [DOCDIR]
  13822. _ACEOF
  13823. cat <<\_ACEOF
  13824. @@ -1471,6 +1490,7 @@
  13825. cat <<\_ACEOF
  13826. Optional Features:
  13827. + --disable-option-checking ignore unrecognized --enable/--with options
  13828. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  13829. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  13830. --disable-dependency-tracking speeds up one-time build
  13831. @@ -1484,10 +1504,9 @@
  13832. Optional Packages:
  13833. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  13834. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  13835. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13836. --with-pic try to use only PIC/non-PIC objects [default=use
  13837. both]
  13838. - --with-tags[=TAGS] include additional configurations [automatic]
  13839. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13840. Some influential environment variables:
  13841. CC C compiler command
  13842. @@ -1495,18 +1514,14 @@
  13843. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  13844. nonstandard directory <lib dir>
  13845. LIBS libraries to pass to the linker, e.g. -l<library>
  13846. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  13847. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  13848. you have headers in a nonstandard directory <include dir>
  13849. CPP C preprocessor
  13850. - CXX C++ compiler command
  13851. - CXXFLAGS C++ compiler flags
  13852. - CXXCPP C++ preprocessor
  13853. - F77 Fortran 77 compiler command
  13854. - FFLAGS Fortran 77 compiler flags
  13855. Use these variables to override the choices made by `configure' or to help
  13856. it to find libraries and programs with nonstandard names/locations.
  13857. +Report bugs to the package provider.
  13858. _ACEOF
  13859. ac_status=$?
  13860. fi
  13861. @@ -1514,15 +1529,17 @@
  13862. if test "$ac_init_help" = "recursive"; then
  13863. # If there are subdirs, report their specific --help.
  13864. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  13865. - test -d "$ac_dir" || continue
  13866. + test -d "$ac_dir" ||
  13867. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  13868. + continue
  13869. ac_builddir=.
  13870. case "$ac_dir" in
  13871. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13872. *)
  13873. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13874. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13875. # A ".." for each directory in $ac_dir_suffix.
  13876. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13877. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13878. case $ac_top_builddir_sub in
  13879. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13880. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13881. @@ -1558,7 +1575,7 @@
  13882. echo &&
  13883. $SHELL "$ac_srcdir/configure" --help=recursive
  13884. else
  13885. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  13886. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  13887. fi || ac_status=$?
  13888. cd "$ac_pwd" || { ac_status=$?; break; }
  13889. done
  13890. @@ -1568,58 +1585,322 @@
  13891. if $ac_init_version; then
  13892. cat <<\_ACEOF
  13893. libnfnetlink configure 1.0.0
  13894. -generated by GNU Autoconf 2.61
  13895. +generated by GNU Autoconf 2.65
  13896. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13897. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13898. +Copyright (C) 2009 Free Software Foundation, Inc.
  13899. This configure script is free software; the Free Software Foundation
  13900. gives unlimited permission to copy, distribute and modify it.
  13901. _ACEOF
  13902. exit
  13903. fi
  13904. -cat >config.log <<_ACEOF
  13905. -This file contains any messages produced by compilers while
  13906. -running configure, to aid debugging if configure makes a mistake.
  13907. -It was created by libnfnetlink $as_me 1.0.0, which was
  13908. -generated by GNU Autoconf 2.61. Invocation command line was
  13909. +## ------------------------ ##
  13910. +## Autoconf initialization. ##
  13911. +## ------------------------ ##
  13912. +
  13913. +# ac_fn_c_try_compile LINENO
  13914. +# --------------------------
  13915. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  13916. +ac_fn_c_try_compile ()
  13917. +{
  13918. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13919. + rm -f conftest.$ac_objext
  13920. + if { { ac_try="$ac_compile"
  13921. +case "(($ac_try" in
  13922. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13923. + *) ac_try_echo=$ac_try;;
  13924. +esac
  13925. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13926. +$as_echo "$ac_try_echo"; } >&5
  13927. + (eval "$ac_compile") 2>conftest.err
  13928. + ac_status=$?
  13929. + if test -s conftest.err; then
  13930. + grep -v '^ *+' conftest.err >conftest.er1
  13931. + cat conftest.er1 >&5
  13932. + mv -f conftest.er1 conftest.err
  13933. + fi
  13934. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13935. + test $ac_status = 0; } && {
  13936. + test -z "$ac_c_werror_flag" ||
  13937. + test ! -s conftest.err
  13938. + } && test -s conftest.$ac_objext; then :
  13939. + ac_retval=0
  13940. +else
  13941. + $as_echo "$as_me: failed program was:" >&5
  13942. +sed 's/^/| /' conftest.$ac_ext >&5
  13943. - $ $0 $@
  13944. + ac_retval=1
  13945. +fi
  13946. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13947. + as_fn_set_status $ac_retval
  13948. +
  13949. +} # ac_fn_c_try_compile
  13950. +# ac_fn_c_try_link LINENO
  13951. +# -----------------------
  13952. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  13953. +ac_fn_c_try_link ()
  13954. +{
  13955. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13956. + rm -f conftest.$ac_objext conftest$ac_exeext
  13957. + if { { ac_try="$ac_link"
  13958. +case "(($ac_try" in
  13959. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13960. + *) ac_try_echo=$ac_try;;
  13961. +esac
  13962. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13963. +$as_echo "$ac_try_echo"; } >&5
  13964. + (eval "$ac_link") 2>conftest.err
  13965. + ac_status=$?
  13966. + if test -s conftest.err; then
  13967. + grep -v '^ *+' conftest.err >conftest.er1
  13968. + cat conftest.er1 >&5
  13969. + mv -f conftest.er1 conftest.err
  13970. + fi
  13971. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13972. + test $ac_status = 0; } && {
  13973. + test -z "$ac_c_werror_flag" ||
  13974. + test ! -s conftest.err
  13975. + } && test -s conftest$ac_exeext && {
  13976. + test "$cross_compiling" = yes ||
  13977. + $as_test_x conftest$ac_exeext
  13978. + }; then :
  13979. + ac_retval=0
  13980. +else
  13981. + $as_echo "$as_me: failed program was:" >&5
  13982. +sed 's/^/| /' conftest.$ac_ext >&5
  13983. +
  13984. + ac_retval=1
  13985. +fi
  13986. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  13987. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  13988. + # interfere with the next link command; also delete a directory that is
  13989. + # left behind by Apple's compiler. We do this before executing the actions.
  13990. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  13991. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13992. + as_fn_set_status $ac_retval
  13993. +
  13994. +} # ac_fn_c_try_link
  13995. +
  13996. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  13997. +# -------------------------------------------------------
  13998. +# Tests whether HEADER exists and can be compiled using the include files in
  13999. +# INCLUDES, setting the cache variable VAR accordingly.
  14000. +ac_fn_c_check_header_compile ()
  14001. +{
  14002. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14003. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14004. +$as_echo_n "checking for $2... " >&6; }
  14005. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14006. + $as_echo_n "(cached) " >&6
  14007. +else
  14008. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. +/* end confdefs.h. */
  14010. +$4
  14011. +#include <$2>
  14012. _ACEOF
  14013. -exec 5>>config.log
  14014. +if ac_fn_c_try_compile "$LINENO"; then :
  14015. + eval "$3=yes"
  14016. +else
  14017. + eval "$3=no"
  14018. +fi
  14019. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14020. +fi
  14021. +eval ac_res=\$$3
  14022. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14023. +$as_echo "$ac_res" >&6; }
  14024. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14025. +
  14026. +} # ac_fn_c_check_header_compile
  14027. +
  14028. +# ac_fn_c_try_cpp LINENO
  14029. +# ----------------------
  14030. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  14031. +ac_fn_c_try_cpp ()
  14032. {
  14033. -cat <<_ASUNAME
  14034. -## --------- ##
  14035. -## Platform. ##
  14036. -## --------- ##
  14037. -
  14038. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14039. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14040. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14041. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14042. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14043. -
  14044. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14045. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14046. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14047. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  14048. +case "(($ac_try" in
  14049. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14050. + *) ac_try_echo=$ac_try;;
  14051. +esac
  14052. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14053. +$as_echo "$ac_try_echo"; } >&5
  14054. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  14055. + ac_status=$?
  14056. + if test -s conftest.err; then
  14057. + grep -v '^ *+' conftest.err >conftest.er1
  14058. + cat conftest.er1 >&5
  14059. + mv -f conftest.er1 conftest.err
  14060. + fi
  14061. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14062. + test $ac_status = 0; } >/dev/null && {
  14063. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14064. + test ! -s conftest.err
  14065. + }; then :
  14066. + ac_retval=0
  14067. +else
  14068. + $as_echo "$as_me: failed program was:" >&5
  14069. +sed 's/^/| /' conftest.$ac_ext >&5
  14070. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14071. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14072. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14073. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14074. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14075. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14076. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14077. + ac_retval=1
  14078. +fi
  14079. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14080. + as_fn_set_status $ac_retval
  14081. -_ASUNAME
  14082. +} # ac_fn_c_try_cpp
  14083. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14084. +# ac_fn_c_try_run LINENO
  14085. +# ----------------------
  14086. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  14087. +# that executables *can* be run.
  14088. +ac_fn_c_try_run ()
  14089. +{
  14090. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14091. + if { { ac_try="$ac_link"
  14092. +case "(($ac_try" in
  14093. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14094. + *) ac_try_echo=$ac_try;;
  14095. +esac
  14096. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14097. +$as_echo "$ac_try_echo"; } >&5
  14098. + (eval "$ac_link") 2>&5
  14099. + ac_status=$?
  14100. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14101. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  14102. + { { case "(($ac_try" in
  14103. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14104. + *) ac_try_echo=$ac_try;;
  14105. +esac
  14106. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14107. +$as_echo "$ac_try_echo"; } >&5
  14108. + (eval "$ac_try") 2>&5
  14109. + ac_status=$?
  14110. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14111. + test $ac_status = 0; }; }; then :
  14112. + ac_retval=0
  14113. +else
  14114. + $as_echo "$as_me: program exited with status $ac_status" >&5
  14115. + $as_echo "$as_me: failed program was:" >&5
  14116. +sed 's/^/| /' conftest.$ac_ext >&5
  14117. +
  14118. + ac_retval=$ac_status
  14119. +fi
  14120. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14121. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14122. + as_fn_set_status $ac_retval
  14123. +
  14124. +} # ac_fn_c_try_run
  14125. +
  14126. +# ac_fn_c_check_func LINENO FUNC VAR
  14127. +# ----------------------------------
  14128. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  14129. +ac_fn_c_check_func ()
  14130. +{
  14131. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14132. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14133. +$as_echo_n "checking for $2... " >&6; }
  14134. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14135. + $as_echo_n "(cached) " >&6
  14136. +else
  14137. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14138. +/* end confdefs.h. */
  14139. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  14140. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14141. +#define $2 innocuous_$2
  14142. +
  14143. +/* System header to define __stub macros and hopefully few prototypes,
  14144. + which can conflict with char $2 (); below.
  14145. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14146. + <limits.h> exists even on freestanding compilers. */
  14147. +
  14148. +#ifdef __STDC__
  14149. +# include <limits.h>
  14150. +#else
  14151. +# include <assert.h>
  14152. +#endif
  14153. +
  14154. +#undef $2
  14155. +
  14156. +/* Override any GCC internal prototype to avoid an error.
  14157. + Use char because int might match the return type of a GCC
  14158. + builtin and then its argument prototype would still apply. */
  14159. +#ifdef __cplusplus
  14160. +extern "C"
  14161. +#endif
  14162. +char $2 ();
  14163. +/* The GNU C library defines this for functions which it implements
  14164. + to always fail with ENOSYS. Some functions are actually named
  14165. + something starting with __ and the normal name is an alias. */
  14166. +#if defined __stub_$2 || defined __stub___$2
  14167. +choke me
  14168. +#endif
  14169. +
  14170. +int
  14171. +main ()
  14172. +{
  14173. +return $2 ();
  14174. + ;
  14175. + return 0;
  14176. +}
  14177. +_ACEOF
  14178. +if ac_fn_c_try_link "$LINENO"; then :
  14179. + eval "$3=yes"
  14180. +else
  14181. + eval "$3=no"
  14182. +fi
  14183. +rm -f core conftest.err conftest.$ac_objext \
  14184. + conftest$ac_exeext conftest.$ac_ext
  14185. +fi
  14186. +eval ac_res=\$$3
  14187. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14188. +$as_echo "$ac_res" >&6; }
  14189. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14190. +
  14191. +} # ac_fn_c_check_func
  14192. +cat >config.log <<_ACEOF
  14193. +This file contains any messages produced by compilers while
  14194. +running configure, to aid debugging if configure makes a mistake.
  14195. +
  14196. +It was created by libnfnetlink $as_me 1.0.0, which was
  14197. +generated by GNU Autoconf 2.65. Invocation command line was
  14198. +
  14199. + $ $0 $@
  14200. +
  14201. +_ACEOF
  14202. +exec 5>>config.log
  14203. +{
  14204. +cat <<_ASUNAME
  14205. +## --------- ##
  14206. +## Platform. ##
  14207. +## --------- ##
  14208. +
  14209. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14210. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14211. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14212. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14213. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14214. +
  14215. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14216. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14217. +
  14218. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14219. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14220. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14221. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14222. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14223. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14224. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14225. +
  14226. +_ASUNAME
  14227. +
  14228. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14229. for as_dir in $PATH
  14230. do
  14231. IFS=$as_save_IFS
  14232. test -z "$as_dir" && as_dir=.
  14233. - echo "PATH: $as_dir"
  14234. -done
  14235. + $as_echo "PATH: $as_dir"
  14236. + done
  14237. IFS=$as_save_IFS
  14238. } >&5
  14239. @@ -1653,12 +1934,12 @@
  14240. | -silent | --silent | --silen | --sile | --sil)
  14241. continue ;;
  14242. *\'*)
  14243. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14244. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14245. esac
  14246. case $ac_pass in
  14247. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  14248. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  14249. 2)
  14250. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  14251. + as_fn_append ac_configure_args1 " '$ac_arg'"
  14252. if test $ac_must_keep_next = true; then
  14253. ac_must_keep_next=false # Got value, back to normal.
  14254. else
  14255. @@ -1674,13 +1955,13 @@
  14256. -* ) ac_must_keep_next=true ;;
  14257. esac
  14258. fi
  14259. - ac_configure_args="$ac_configure_args '$ac_arg'"
  14260. + as_fn_append ac_configure_args " '$ac_arg'"
  14261. ;;
  14262. esac
  14263. done
  14264. done
  14265. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  14266. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  14267. +{ ac_configure_args0=; unset ac_configure_args0;}
  14268. +{ ac_configure_args1=; unset ac_configure_args1;}
  14269. # When interrupted or exit'd, cleanup temporary files, and complete
  14270. # config.log. We remove comments because anyway the quotes in there
  14271. @@ -1705,12 +1986,13 @@
  14272. case $ac_val in #(
  14273. *${as_nl}*)
  14274. case $ac_var in #(
  14275. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  14276. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  14277. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14278. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14279. esac
  14280. case $ac_var in #(
  14281. _ | IFS | as_nl) ;; #(
  14282. - *) $as_unset $ac_var ;;
  14283. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14284. + *) { eval $ac_var=; unset $ac_var;} ;;
  14285. esac ;;
  14286. esac
  14287. done
  14288. @@ -1739,9 +2021,9 @@
  14289. do
  14290. eval ac_val=\$$ac_var
  14291. case $ac_val in
  14292. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14293. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14294. esac
  14295. - echo "$ac_var='\''$ac_val'\''"
  14296. + $as_echo "$ac_var='\''$ac_val'\''"
  14297. done | sort
  14298. echo
  14299. @@ -1756,9 +2038,9 @@
  14300. do
  14301. eval ac_val=\$$ac_var
  14302. case $ac_val in
  14303. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14304. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14305. esac
  14306. - echo "$ac_var='\''$ac_val'\''"
  14307. + $as_echo "$ac_var='\''$ac_val'\''"
  14308. done | sort
  14309. echo
  14310. fi
  14311. @@ -1774,83 +2056,88 @@
  14312. echo
  14313. fi
  14314. test "$ac_signal" != 0 &&
  14315. - echo "$as_me: caught signal $ac_signal"
  14316. - echo "$as_me: exit $exit_status"
  14317. + $as_echo "$as_me: caught signal $ac_signal"
  14318. + $as_echo "$as_me: exit $exit_status"
  14319. } >&5
  14320. rm -f core *.core core.conftest.* &&
  14321. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  14322. exit $exit_status
  14323. ' 0
  14324. for ac_signal in 1 2 13 15; do
  14325. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  14326. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  14327. done
  14328. ac_signal=0
  14329. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  14330. rm -f -r conftest* confdefs.h
  14331. +$as_echo "/* confdefs.h */" > confdefs.h
  14332. +
  14333. # Predefined preprocessor variables.
  14334. cat >>confdefs.h <<_ACEOF
  14335. #define PACKAGE_NAME "$PACKAGE_NAME"
  14336. _ACEOF
  14337. -
  14338. cat >>confdefs.h <<_ACEOF
  14339. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  14340. _ACEOF
  14341. -
  14342. cat >>confdefs.h <<_ACEOF
  14343. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  14344. _ACEOF
  14345. -
  14346. cat >>confdefs.h <<_ACEOF
  14347. #define PACKAGE_STRING "$PACKAGE_STRING"
  14348. _ACEOF
  14349. -
  14350. cat >>confdefs.h <<_ACEOF
  14351. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  14352. _ACEOF
  14353. +cat >>confdefs.h <<_ACEOF
  14354. +#define PACKAGE_URL "$PACKAGE_URL"
  14355. +_ACEOF
  14356. +
  14357. # Let the site file select an alternate cache file if it wants to.
  14358. -# Prefer explicitly selected file to automatically selected ones.
  14359. +# Prefer an explicitly selected file to automatically selected ones.
  14360. +ac_site_file1=NONE
  14361. +ac_site_file2=NONE
  14362. if test -n "$CONFIG_SITE"; then
  14363. - set x "$CONFIG_SITE"
  14364. + ac_site_file1=$CONFIG_SITE
  14365. elif test "x$prefix" != xNONE; then
  14366. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  14367. + ac_site_file1=$prefix/share/config.site
  14368. + ac_site_file2=$prefix/etc/config.site
  14369. else
  14370. - set x "$ac_default_prefix/share/config.site" \
  14371. - "$ac_default_prefix/etc/config.site"
  14372. + ac_site_file1=$ac_default_prefix/share/config.site
  14373. + ac_site_file2=$ac_default_prefix/etc/config.site
  14374. fi
  14375. -shift
  14376. -for ac_site_file
  14377. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  14378. do
  14379. - if test -r "$ac_site_file"; then
  14380. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  14381. -echo "$as_me: loading site script $ac_site_file" >&6;}
  14382. + test "x$ac_site_file" = xNONE && continue
  14383. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  14384. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  14385. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  14386. sed 's/^/| /' "$ac_site_file" >&5
  14387. . "$ac_site_file"
  14388. fi
  14389. done
  14390. if test -r "$cache_file"; then
  14391. - # Some versions of bash will fail to source /dev/null (special
  14392. - # files actually), so we avoid doing that.
  14393. - if test -f "$cache_file"; then
  14394. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  14395. -echo "$as_me: loading cache $cache_file" >&6;}
  14396. + # Some versions of bash will fail to source /dev/null (special files
  14397. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  14398. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  14399. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  14400. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  14401. case $cache_file in
  14402. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  14403. *) . "./$cache_file";;
  14404. esac
  14405. fi
  14406. else
  14407. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  14408. -echo "$as_me: creating cache $cache_file" >&6;}
  14409. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  14410. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  14411. >$cache_file
  14412. fi
  14413. @@ -1864,68 +2151,56 @@
  14414. eval ac_new_val=\$ac_env_${ac_var}_value
  14415. case $ac_old_set,$ac_new_set in
  14416. set,)
  14417. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14418. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  14419. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14420. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  14421. ac_cache_corrupted=: ;;
  14422. ,set)
  14423. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  14424. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  14425. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  14426. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  14427. ac_cache_corrupted=: ;;
  14428. ,);;
  14429. *)
  14430. if test "x$ac_old_val" != "x$ac_new_val"; then
  14431. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  14432. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  14433. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  14434. -echo "$as_me: former value: $ac_old_val" >&2;}
  14435. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  14436. -echo "$as_me: current value: $ac_new_val" >&2;}
  14437. - ac_cache_corrupted=:
  14438. + # differences in whitespace do not lead to failure.
  14439. + ac_old_val_w=`echo x $ac_old_val`
  14440. + ac_new_val_w=`echo x $ac_new_val`
  14441. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  14442. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  14443. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  14444. + ac_cache_corrupted=:
  14445. + else
  14446. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14447. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  14448. + eval $ac_var=\$ac_old_val
  14449. + fi
  14450. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  14451. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  14452. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  14453. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  14454. fi;;
  14455. esac
  14456. # Pass precious variables to config.status.
  14457. if test "$ac_new_set" = set; then
  14458. case $ac_new_val in
  14459. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  14460. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  14461. *) ac_arg=$ac_var=$ac_new_val ;;
  14462. esac
  14463. case " $ac_configure_args " in
  14464. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  14465. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  14466. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  14467. esac
  14468. fi
  14469. done
  14470. if $ac_cache_corrupted; then
  14471. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  14472. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  14473. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  14474. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  14475. - { (exit 1); exit 1; }; }
  14476. -fi
  14477. -
  14478. -
  14479. -
  14480. -
  14481. -
  14482. -
  14483. -
  14484. -
  14485. -
  14486. -
  14487. -
  14488. -
  14489. -
  14490. -
  14491. -
  14492. -
  14493. -
  14494. -
  14495. -
  14496. -
  14497. -
  14498. -
  14499. -
  14500. -
  14501. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14502. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14503. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  14504. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  14505. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  14506. +fi
  14507. +## -------------------- ##
  14508. +## Main body of script. ##
  14509. +## -------------------- ##
  14510. ac_ext=c
  14511. ac_cpp='$CPP $CPPFLAGS'
  14512. @@ -1937,24 +2212,16 @@
  14513. ac_aux_dir=
  14514. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  14515. - if test -f "$ac_dir/install-sh"; then
  14516. - ac_aux_dir=$ac_dir
  14517. - ac_install_sh="$ac_aux_dir/install-sh -c"
  14518. - break
  14519. - elif test -f "$ac_dir/install.sh"; then
  14520. - ac_aux_dir=$ac_dir
  14521. - ac_install_sh="$ac_aux_dir/install.sh -c"
  14522. - break
  14523. - elif test -f "$ac_dir/shtool"; then
  14524. - ac_aux_dir=$ac_dir
  14525. - ac_install_sh="$ac_aux_dir/shtool install -c"
  14526. - break
  14527. - fi
  14528. + for ac_t in install-sh install.sh shtool; do
  14529. + if test -f "$ac_dir/$ac_t"; then
  14530. + ac_aux_dir=$ac_dir
  14531. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  14532. + break 2
  14533. + fi
  14534. + done
  14535. done
  14536. if test -z "$ac_aux_dir"; then
  14537. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  14538. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  14539. - { (exit 1); exit 1; }; }
  14540. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  14541. fi
  14542. # These three variables are undocumented and unsupported,
  14543. @@ -1968,35 +2235,27 @@
  14544. # Make sure we can run config.sub.
  14545. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  14546. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  14547. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  14548. - { (exit 1); exit 1; }; }
  14549. -
  14550. -{ echo "$as_me:$LINENO: checking build system type" >&5
  14551. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  14552. -if test "${ac_cv_build+set}" = set; then
  14553. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14554. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  14555. +
  14556. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  14557. +$as_echo_n "checking build system type... " >&6; }
  14558. +if test "${ac_cv_build+set}" = set; then :
  14559. + $as_echo_n "(cached) " >&6
  14560. else
  14561. ac_build_alias=$build_alias
  14562. test "x$ac_build_alias" = x &&
  14563. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  14564. test "x$ac_build_alias" = x &&
  14565. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  14566. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  14567. - { (exit 1); exit 1; }; }
  14568. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  14569. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  14570. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  14571. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  14572. - { (exit 1); exit 1; }; }
  14573. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  14574. fi
  14575. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  14576. -echo "${ECHO_T}$ac_cv_build" >&6; }
  14577. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  14578. +$as_echo "$ac_cv_build" >&6; }
  14579. case $ac_cv_build in
  14580. *-*-*) ;;
  14581. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  14582. -echo "$as_me: error: invalid value of canonical build" >&2;}
  14583. - { (exit 1); exit 1; }; };;
  14584. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  14585. esac
  14586. build=$ac_cv_build
  14587. ac_save_IFS=$IFS; IFS='-'
  14588. @@ -2012,28 +2271,24 @@
  14589. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  14590. -{ echo "$as_me:$LINENO: checking host system type" >&5
  14591. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  14592. -if test "${ac_cv_host+set}" = set; then
  14593. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  14595. +$as_echo_n "checking host system type... " >&6; }
  14596. +if test "${ac_cv_host+set}" = set; then :
  14597. + $as_echo_n "(cached) " >&6
  14598. else
  14599. if test "x$host_alias" = x; then
  14600. ac_cv_host=$ac_cv_build
  14601. else
  14602. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  14603. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  14604. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  14605. - { (exit 1); exit 1; }; }
  14606. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  14607. fi
  14608. fi
  14609. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  14610. -echo "${ECHO_T}$ac_cv_host" >&6; }
  14611. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  14612. +$as_echo "$ac_cv_host" >&6; }
  14613. case $ac_cv_host in
  14614. *-*-*) ;;
  14615. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  14616. -echo "$as_me: error: invalid value of canonical host" >&2;}
  14617. - { (exit 1); exit 1; }; };;
  14618. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  14619. esac
  14620. host=$ac_cv_host
  14621. ac_save_IFS=$IFS; IFS='-'
  14622. @@ -2049,28 +2304,24 @@
  14623. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  14624. -{ echo "$as_me:$LINENO: checking target system type" >&5
  14625. -echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  14626. -if test "${ac_cv_target+set}" = set; then
  14627. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  14629. +$as_echo_n "checking target system type... " >&6; }
  14630. +if test "${ac_cv_target+set}" = set; then :
  14631. + $as_echo_n "(cached) " >&6
  14632. else
  14633. if test "x$target_alias" = x; then
  14634. ac_cv_target=$ac_cv_host
  14635. else
  14636. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  14637. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  14638. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  14639. - { (exit 1); exit 1; }; }
  14640. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  14641. fi
  14642. fi
  14643. -{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  14644. -echo "${ECHO_T}$ac_cv_target" >&6; }
  14645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  14646. +$as_echo "$ac_cv_target" >&6; }
  14647. case $ac_cv_target in
  14648. *-*-*) ;;
  14649. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  14650. -echo "$as_me: error: invalid value of canonical target" >&2;}
  14651. - { (exit 1); exit 1; }; };;
  14652. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  14653. esac
  14654. target=$ac_cv_target
  14655. ac_save_IFS=$IFS; IFS='-'
  14656. @@ -2093,7 +2344,8 @@
  14657. NONENONEs,x,x, &&
  14658. program_prefix=${target_alias}-
  14659. -am__api_version='1.10'
  14660. +
  14661. +am__api_version='1.11'
  14662. # Find a good install program. We prefer a C program (faster),
  14663. # so one script is as good as another. But avoid the broken or
  14664. @@ -2108,22 +2360,23 @@
  14665. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14666. # OS/2's system install, which has a completely different semantic
  14667. # ./install, which can be erroneously created by make from ./install.sh.
  14668. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  14669. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  14670. +# Reject install programs that cannot install multiple files.
  14671. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14672. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  14673. if test -z "$INSTALL"; then
  14674. -if test "${ac_cv_path_install+set}" = set; then
  14675. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14676. +if test "${ac_cv_path_install+set}" = set; then :
  14677. + $as_echo_n "(cached) " >&6
  14678. else
  14679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14680. for as_dir in $PATH
  14681. do
  14682. IFS=$as_save_IFS
  14683. test -z "$as_dir" && as_dir=.
  14684. - # Account for people who put trailing slashes in PATH elements.
  14685. -case $as_dir/ in
  14686. - ./ | .// | /cC/* | \
  14687. + # Account for people who put trailing slashes in PATH elements.
  14688. +case $as_dir/ in #((
  14689. + ./ | .// | /[cC]/* | \
  14690. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14691. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  14692. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14693. /usr/ucb/* ) ;;
  14694. *)
  14695. # OSF1 and SCO ODT 3.0 have their own names for install.
  14696. @@ -2141,17 +2394,29 @@
  14697. # program-specific install script used by HP pwplus--don't use.
  14698. :
  14699. else
  14700. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14701. - break 3
  14702. + rm -rf conftest.one conftest.two conftest.dir
  14703. + echo one > conftest.one
  14704. + echo two > conftest.two
  14705. + mkdir conftest.dir
  14706. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14707. + test -s conftest.one && test -s conftest.two &&
  14708. + test -s conftest.dir/conftest.one &&
  14709. + test -s conftest.dir/conftest.two
  14710. + then
  14711. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14712. + break 3
  14713. + fi
  14714. fi
  14715. fi
  14716. done
  14717. done
  14718. ;;
  14719. esac
  14720. -done
  14721. +
  14722. + done
  14723. IFS=$as_save_IFS
  14724. +rm -rf conftest.one conftest.two conftest.dir
  14725. fi
  14726. if test "${ac_cv_path_install+set}" = set; then
  14727. @@ -2164,8 +2429,8 @@
  14728. INSTALL=$ac_install_sh
  14729. fi
  14730. fi
  14731. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  14732. -echo "${ECHO_T}$INSTALL" >&6; }
  14733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14734. +$as_echo "$INSTALL" >&6; }
  14735. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14736. # It thinks the first close brace ends the variable substitution.
  14737. @@ -2175,21 +2440,34 @@
  14738. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14739. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  14740. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  14741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  14742. +$as_echo_n "checking whether build environment is sane... " >&6; }
  14743. # Just in case
  14744. sleep 1
  14745. echo timestamp > conftest.file
  14746. +# Reject unsafe characters in $srcdir or the absolute working directory
  14747. +# name. Accept space and tab only in the latter.
  14748. +am_lf='
  14749. +'
  14750. +case `pwd` in
  14751. + *[\\\"\#\$\&\'\`$am_lf]*)
  14752. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  14753. +esac
  14754. +case $srcdir in
  14755. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  14756. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  14757. +esac
  14758. +
  14759. # Do `set' in a subshell so we don't clobber the current shell's
  14760. # arguments. Must try -L first in case configure is actually a
  14761. # symlink; some systems play weird games with the mod time of symlinks
  14762. # (eg FreeBSD returns the mod time of the symlink's containing
  14763. # directory).
  14764. if (
  14765. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  14766. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  14767. if test "$*" = "X"; then
  14768. # -L didn't work.
  14769. - set X `ls -t $srcdir/configure conftest.file`
  14770. + set X `ls -t "$srcdir/configure" conftest.file`
  14771. fi
  14772. rm -f conftest.file
  14773. if test "$*" != "X $srcdir/configure conftest.file" \
  14774. @@ -2199,11 +2477,8 @@
  14775. # if, for instance, CONFIG_SHELL is bash and it inherits a
  14776. # broken ls alias from the environment. This has actually
  14777. # happened. Such a system could not be considered "sane".
  14778. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  14779. -alias in your environment" >&5
  14780. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  14781. -alias in your environment" >&2;}
  14782. - { (exit 1); exit 1; }; }
  14783. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  14784. +alias in your environment" "$LINENO" 5
  14785. fi
  14786. test "$2" = conftest.file
  14787. @@ -2212,52 +2487,162 @@
  14788. # Ok.
  14789. :
  14790. else
  14791. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  14792. -Check your system clock" >&5
  14793. -echo "$as_me: error: newly created file is older than distributed files!
  14794. -Check your system clock" >&2;}
  14795. - { (exit 1); exit 1; }; }
  14796. + as_fn_error "newly created file is older than distributed files!
  14797. +Check your system clock" "$LINENO" 5
  14798. fi
  14799. -{ echo "$as_me:$LINENO: result: yes" >&5
  14800. -echo "${ECHO_T}yes" >&6; }
  14801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14802. +$as_echo "yes" >&6; }
  14803. test "$program_prefix" != NONE &&
  14804. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  14805. # Use a double $ so make ignores it.
  14806. test "$program_suffix" != NONE &&
  14807. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  14808. -# Double any \ or $. echo might interpret backslashes.
  14809. +# Double any \ or $.
  14810. # By default was `s,x,x', remove it if useless.
  14811. -cat <<\_ACEOF >conftest.sed
  14812. -s/[\\$]/&&/g;s/;s,x,x,$//
  14813. -_ACEOF
  14814. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  14815. -rm -f conftest.sed
  14816. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  14817. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  14818. # expand $ac_aux_dir to an absolute path
  14819. am_aux_dir=`cd $ac_aux_dir && pwd`
  14820. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  14821. +if test x"${MISSING+set}" != xset; then
  14822. + case $am_aux_dir in
  14823. + *\ * | *\ *)
  14824. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  14825. + *)
  14826. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  14827. + esac
  14828. +fi
  14829. # Use eval to expand $SHELL
  14830. if eval "$MISSING --run true"; then
  14831. am_missing_run="$MISSING --run "
  14832. else
  14833. am_missing_run=
  14834. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  14835. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  14836. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  14837. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  14838. +fi
  14839. +
  14840. +if test x"${install_sh}" != xset; then
  14841. + case $am_aux_dir in
  14842. + *\ * | *\ *)
  14843. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  14844. + *)
  14845. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  14846. + esac
  14847. +fi
  14848. +
  14849. +# Installed binaries are usually stripped using `strip' when the user
  14850. +# run `make install-strip'. However `strip' might not be the right
  14851. +# tool to use in cross-compilation environments, therefore Automake
  14852. +# will honor the `STRIP' environment variable to overrule this program.
  14853. +if test "$cross_compiling" != no; then
  14854. + if test -n "$ac_tool_prefix"; then
  14855. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14856. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14857. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14858. +$as_echo_n "checking for $ac_word... " >&6; }
  14859. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  14860. + $as_echo_n "(cached) " >&6
  14861. +else
  14862. + if test -n "$STRIP"; then
  14863. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14864. +else
  14865. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14866. +for as_dir in $PATH
  14867. +do
  14868. + IFS=$as_save_IFS
  14869. + test -z "$as_dir" && as_dir=.
  14870. + for ac_exec_ext in '' $ac_executable_extensions; do
  14871. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14872. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14873. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14874. + break 2
  14875. + fi
  14876. +done
  14877. + done
  14878. +IFS=$as_save_IFS
  14879. +
  14880. +fi
  14881. +fi
  14882. +STRIP=$ac_cv_prog_STRIP
  14883. +if test -n "$STRIP"; then
  14884. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  14885. +$as_echo "$STRIP" >&6; }
  14886. +else
  14887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14888. +$as_echo "no" >&6; }
  14889. +fi
  14890. +
  14891. +
  14892. fi
  14893. +if test -z "$ac_cv_prog_STRIP"; then
  14894. + ac_ct_STRIP=$STRIP
  14895. + # Extract the first word of "strip", so it can be a program name with args.
  14896. +set dummy strip; ac_word=$2
  14897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14898. +$as_echo_n "checking for $ac_word... " >&6; }
  14899. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  14900. + $as_echo_n "(cached) " >&6
  14901. +else
  14902. + if test -n "$ac_ct_STRIP"; then
  14903. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14904. +else
  14905. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14906. +for as_dir in $PATH
  14907. +do
  14908. + IFS=$as_save_IFS
  14909. + test -z "$as_dir" && as_dir=.
  14910. + for ac_exec_ext in '' $ac_executable_extensions; do
  14911. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14912. + ac_cv_prog_ac_ct_STRIP="strip"
  14913. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14914. + break 2
  14915. + fi
  14916. +done
  14917. + done
  14918. +IFS=$as_save_IFS
  14919. +
  14920. +fi
  14921. +fi
  14922. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14923. +if test -n "$ac_ct_STRIP"; then
  14924. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  14925. +$as_echo "$ac_ct_STRIP" >&6; }
  14926. +else
  14927. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14928. +$as_echo "no" >&6; }
  14929. +fi
  14930. +
  14931. + if test "x$ac_ct_STRIP" = x; then
  14932. + STRIP=":"
  14933. + else
  14934. + case $cross_compiling:$ac_tool_warned in
  14935. +yes:)
  14936. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14937. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14938. +ac_tool_warned=yes ;;
  14939. +esac
  14940. + STRIP=$ac_ct_STRIP
  14941. + fi
  14942. +else
  14943. + STRIP="$ac_cv_prog_STRIP"
  14944. +fi
  14945. +
  14946. +fi
  14947. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  14948. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  14949. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  14950. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  14951. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  14952. if test -z "$MKDIR_P"; then
  14953. - if test "${ac_cv_path_mkdir+set}" = set; then
  14954. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14955. + if test "${ac_cv_path_mkdir+set}" = set; then :
  14956. + $as_echo_n "(cached) " >&6
  14957. else
  14958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14959. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  14960. do
  14961. IFS=$as_save_IFS
  14962. test -z "$as_dir" && as_dir=.
  14963. - for ac_prog in mkdir gmkdir; do
  14964. + for ac_prog in mkdir gmkdir; do
  14965. for ac_exec_ext in '' $ac_executable_extensions; do
  14966. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  14967. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  14968. @@ -2269,11 +2654,12 @@
  14969. esac
  14970. done
  14971. done
  14972. -done
  14973. + done
  14974. IFS=$as_save_IFS
  14975. fi
  14976. + test -d ./--version && rmdir ./--version
  14977. if test "${ac_cv_path_mkdir+set}" = set; then
  14978. MKDIR_P="$ac_cv_path_mkdir -p"
  14979. else
  14980. @@ -2281,12 +2667,11 @@
  14981. # value for MKDIR_P within a source directory, because that will
  14982. # break other packages using the cache if that directory is
  14983. # removed, or if the value is a relative name.
  14984. - test -d ./--version && rmdir ./--version
  14985. MKDIR_P="$ac_install_sh -d"
  14986. fi
  14987. fi
  14988. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  14989. -echo "${ECHO_T}$MKDIR_P" >&6; }
  14990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  14991. +$as_echo "$MKDIR_P" >&6; }
  14992. mkdir_p="$MKDIR_P"
  14993. case $mkdir_p in
  14994. @@ -2298,10 +2683,10 @@
  14995. do
  14996. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14997. set dummy $ac_prog; ac_word=$2
  14998. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14999. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15000. -if test "${ac_cv_prog_AWK+set}" = set; then
  15001. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15002. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15003. +$as_echo_n "checking for $ac_word... " >&6; }
  15004. +if test "${ac_cv_prog_AWK+set}" = set; then :
  15005. + $as_echo_n "(cached) " >&6
  15006. else
  15007. if test -n "$AWK"; then
  15008. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15009. @@ -2311,36 +2696,37 @@
  15010. do
  15011. IFS=$as_save_IFS
  15012. test -z "$as_dir" && as_dir=.
  15013. - for ac_exec_ext in '' $ac_executable_extensions; do
  15014. + for ac_exec_ext in '' $ac_executable_extensions; do
  15015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15016. ac_cv_prog_AWK="$ac_prog"
  15017. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15018. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15019. break 2
  15020. fi
  15021. done
  15022. -done
  15023. + done
  15024. IFS=$as_save_IFS
  15025. fi
  15026. fi
  15027. AWK=$ac_cv_prog_AWK
  15028. if test -n "$AWK"; then
  15029. - { echo "$as_me:$LINENO: result: $AWK" >&5
  15030. -echo "${ECHO_T}$AWK" >&6; }
  15031. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15032. +$as_echo "$AWK" >&6; }
  15033. else
  15034. - { echo "$as_me:$LINENO: result: no" >&5
  15035. -echo "${ECHO_T}no" >&6; }
  15036. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15037. +$as_echo "no" >&6; }
  15038. fi
  15039. test -n "$AWK" && break
  15040. done
  15041. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15042. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  15043. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15044. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  15045. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15047. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15048. +set x ${MAKE-make}
  15049. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15050. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  15051. + $as_echo_n "(cached) " >&6
  15052. else
  15053. cat >conftest.make <<\_ACEOF
  15054. SHELL = /bin/sh
  15055. @@ -2357,12 +2743,12 @@
  15056. rm -f conftest.make
  15057. fi
  15058. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15059. - { echo "$as_me:$LINENO: result: yes" >&5
  15060. -echo "${ECHO_T}yes" >&6; }
  15061. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15062. +$as_echo "yes" >&6; }
  15063. SET_MAKE=
  15064. else
  15065. - { echo "$as_me:$LINENO: result: no" >&5
  15066. -echo "${ECHO_T}no" >&6; }
  15067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15068. +$as_echo "no" >&6; }
  15069. SET_MAKE="MAKE=${MAKE-make}"
  15070. fi
  15071. @@ -2381,9 +2767,7 @@
  15072. am__isrc=' -I$(srcdir)'
  15073. # test to see if srcdir already configured
  15074. if test -f $srcdir/config.status; then
  15075. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  15076. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  15077. - { (exit 1); exit 1; }; }
  15078. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  15079. fi
  15080. fi
  15081. @@ -2427,115 +2811,9 @@
  15082. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  15083. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  15084. -
  15085. -# Installed binaries are usually stripped using `strip' when the user
  15086. -# run `make install-strip'. However `strip' might not be the right
  15087. -# tool to use in cross-compilation environments, therefore Automake
  15088. -# will honor the `STRIP' environment variable to overrule this program.
  15089. -if test "$cross_compiling" != no; then
  15090. - if test -n "$ac_tool_prefix"; then
  15091. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  15092. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  15093. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15094. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15095. -if test "${ac_cv_prog_STRIP+set}" = set; then
  15096. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15097. -else
  15098. - if test -n "$STRIP"; then
  15099. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  15100. -else
  15101. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15102. -for as_dir in $PATH
  15103. -do
  15104. - IFS=$as_save_IFS
  15105. - test -z "$as_dir" && as_dir=.
  15106. - for ac_exec_ext in '' $ac_executable_extensions; do
  15107. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15108. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  15109. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15110. - break 2
  15111. - fi
  15112. -done
  15113. -done
  15114. -IFS=$as_save_IFS
  15115. -
  15116. -fi
  15117. -fi
  15118. -STRIP=$ac_cv_prog_STRIP
  15119. -if test -n "$STRIP"; then
  15120. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  15121. -echo "${ECHO_T}$STRIP" >&6; }
  15122. -else
  15123. - { echo "$as_me:$LINENO: result: no" >&5
  15124. -echo "${ECHO_T}no" >&6; }
  15125. -fi
  15126. -
  15127. -
  15128. -fi
  15129. -if test -z "$ac_cv_prog_STRIP"; then
  15130. - ac_ct_STRIP=$STRIP
  15131. - # Extract the first word of "strip", so it can be a program name with args.
  15132. -set dummy strip; ac_word=$2
  15133. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15134. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15135. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  15136. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15137. -else
  15138. - if test -n "$ac_ct_STRIP"; then
  15139. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  15140. -else
  15141. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15142. -for as_dir in $PATH
  15143. -do
  15144. - IFS=$as_save_IFS
  15145. - test -z "$as_dir" && as_dir=.
  15146. - for ac_exec_ext in '' $ac_executable_extensions; do
  15147. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15148. - ac_cv_prog_ac_ct_STRIP="strip"
  15149. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15150. - break 2
  15151. - fi
  15152. -done
  15153. -done
  15154. -IFS=$as_save_IFS
  15155. -
  15156. -fi
  15157. -fi
  15158. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15159. -if test -n "$ac_ct_STRIP"; then
  15160. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  15161. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  15162. -else
  15163. - { echo "$as_me:$LINENO: result: no" >&5
  15164. -echo "${ECHO_T}no" >&6; }
  15165. -fi
  15166. -
  15167. - if test "x$ac_ct_STRIP" = x; then
  15168. - STRIP=":"
  15169. - else
  15170. - case $cross_compiling:$ac_tool_warned in
  15171. -yes:)
  15172. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15173. -whose name does not start with the host triplet. If you think this
  15174. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15175. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15176. -whose name does not start with the host triplet. If you think this
  15177. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15178. -ac_tool_warned=yes ;;
  15179. -esac
  15180. - STRIP=$ac_ct_STRIP
  15181. - fi
  15182. -else
  15183. - STRIP="$ac_cv_prog_STRIP"
  15184. -fi
  15185. -
  15186. -fi
  15187. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  15188. -
  15189. -# We need awk for the "check" target. The system "awk" is bad on
  15190. -# some platforms.
  15191. -# Always define AMTAR for backward compatibility.
  15192. +# We need awk for the "check" target. The system "awk" is bad on
  15193. +# some platforms.
  15194. +# Always define AMTAR for backward compatibility.
  15195. AMTAR=${AMTAR-"${am_missing_run}tar"}
  15196. @@ -2554,10 +2832,10 @@
  15197. if test -n "$ac_tool_prefix"; then
  15198. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  15199. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  15200. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15201. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15202. -if test "${ac_cv_prog_CC+set}" = set; then
  15203. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15204. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15205. +$as_echo_n "checking for $ac_word... " >&6; }
  15206. +if test "${ac_cv_prog_CC+set}" = set; then :
  15207. + $as_echo_n "(cached) " >&6
  15208. else
  15209. if test -n "$CC"; then
  15210. ac_cv_prog_CC="$CC" # Let the user override the test.
  15211. @@ -2567,25 +2845,25 @@
  15212. do
  15213. IFS=$as_save_IFS
  15214. test -z "$as_dir" && as_dir=.
  15215. - for ac_exec_ext in '' $ac_executable_extensions; do
  15216. + for ac_exec_ext in '' $ac_executable_extensions; do
  15217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15218. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  15219. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15220. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15221. break 2
  15222. fi
  15223. done
  15224. -done
  15225. + done
  15226. IFS=$as_save_IFS
  15227. fi
  15228. fi
  15229. CC=$ac_cv_prog_CC
  15230. if test -n "$CC"; then
  15231. - { echo "$as_me:$LINENO: result: $CC" >&5
  15232. -echo "${ECHO_T}$CC" >&6; }
  15233. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15234. +$as_echo "$CC" >&6; }
  15235. else
  15236. - { echo "$as_me:$LINENO: result: no" >&5
  15237. -echo "${ECHO_T}no" >&6; }
  15238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15239. +$as_echo "no" >&6; }
  15240. fi
  15241. @@ -2594,10 +2872,10 @@
  15242. ac_ct_CC=$CC
  15243. # Extract the first word of "gcc", so it can be a program name with args.
  15244. set dummy gcc; ac_word=$2
  15245. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15246. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15247. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15248. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15249. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15250. +$as_echo_n "checking for $ac_word... " >&6; }
  15251. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15252. + $as_echo_n "(cached) " >&6
  15253. else
  15254. if test -n "$ac_ct_CC"; then
  15255. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  15256. @@ -2607,25 +2885,25 @@
  15257. do
  15258. IFS=$as_save_IFS
  15259. test -z "$as_dir" && as_dir=.
  15260. - for ac_exec_ext in '' $ac_executable_extensions; do
  15261. + for ac_exec_ext in '' $ac_executable_extensions; do
  15262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15263. ac_cv_prog_ac_ct_CC="gcc"
  15264. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15265. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15266. break 2
  15267. fi
  15268. done
  15269. -done
  15270. + done
  15271. IFS=$as_save_IFS
  15272. fi
  15273. fi
  15274. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15275. if test -n "$ac_ct_CC"; then
  15276. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  15277. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  15278. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15279. +$as_echo "$ac_ct_CC" >&6; }
  15280. else
  15281. - { echo "$as_me:$LINENO: result: no" >&5
  15282. -echo "${ECHO_T}no" >&6; }
  15283. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15284. +$as_echo "no" >&6; }
  15285. fi
  15286. if test "x$ac_ct_CC" = x; then
  15287. @@ -2633,12 +2911,8 @@
  15288. else
  15289. case $cross_compiling:$ac_tool_warned in
  15290. yes:)
  15291. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15292. -whose name does not start with the host triplet. If you think this
  15293. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15294. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15295. -whose name does not start with the host triplet. If you think this
  15296. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15297. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15298. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15299. ac_tool_warned=yes ;;
  15300. esac
  15301. CC=$ac_ct_CC
  15302. @@ -2651,10 +2925,10 @@
  15303. if test -n "$ac_tool_prefix"; then
  15304. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  15305. set dummy ${ac_tool_prefix}cc; ac_word=$2
  15306. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15307. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15308. -if test "${ac_cv_prog_CC+set}" = set; then
  15309. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15311. +$as_echo_n "checking for $ac_word... " >&6; }
  15312. +if test "${ac_cv_prog_CC+set}" = set; then :
  15313. + $as_echo_n "(cached) " >&6
  15314. else
  15315. if test -n "$CC"; then
  15316. ac_cv_prog_CC="$CC" # Let the user override the test.
  15317. @@ -2664,25 +2938,25 @@
  15318. do
  15319. IFS=$as_save_IFS
  15320. test -z "$as_dir" && as_dir=.
  15321. - for ac_exec_ext in '' $ac_executable_extensions; do
  15322. + for ac_exec_ext in '' $ac_executable_extensions; do
  15323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15324. ac_cv_prog_CC="${ac_tool_prefix}cc"
  15325. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15326. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15327. break 2
  15328. fi
  15329. done
  15330. -done
  15331. + done
  15332. IFS=$as_save_IFS
  15333. fi
  15334. fi
  15335. CC=$ac_cv_prog_CC
  15336. if test -n "$CC"; then
  15337. - { echo "$as_me:$LINENO: result: $CC" >&5
  15338. -echo "${ECHO_T}$CC" >&6; }
  15339. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15340. +$as_echo "$CC" >&6; }
  15341. else
  15342. - { echo "$as_me:$LINENO: result: no" >&5
  15343. -echo "${ECHO_T}no" >&6; }
  15344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15345. +$as_echo "no" >&6; }
  15346. fi
  15347. @@ -2691,10 +2965,10 @@
  15348. if test -z "$CC"; then
  15349. # Extract the first word of "cc", so it can be a program name with args.
  15350. set dummy cc; ac_word=$2
  15351. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15352. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15353. -if test "${ac_cv_prog_CC+set}" = set; then
  15354. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15356. +$as_echo_n "checking for $ac_word... " >&6; }
  15357. +if test "${ac_cv_prog_CC+set}" = set; then :
  15358. + $as_echo_n "(cached) " >&6
  15359. else
  15360. if test -n "$CC"; then
  15361. ac_cv_prog_CC="$CC" # Let the user override the test.
  15362. @@ -2705,18 +2979,18 @@
  15363. do
  15364. IFS=$as_save_IFS
  15365. test -z "$as_dir" && as_dir=.
  15366. - for ac_exec_ext in '' $ac_executable_extensions; do
  15367. + for ac_exec_ext in '' $ac_executable_extensions; do
  15368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15369. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  15370. ac_prog_rejected=yes
  15371. continue
  15372. fi
  15373. ac_cv_prog_CC="cc"
  15374. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15375. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15376. break 2
  15377. fi
  15378. done
  15379. -done
  15380. + done
  15381. IFS=$as_save_IFS
  15382. if test $ac_prog_rejected = yes; then
  15383. @@ -2735,11 +3009,11 @@
  15384. fi
  15385. CC=$ac_cv_prog_CC
  15386. if test -n "$CC"; then
  15387. - { echo "$as_me:$LINENO: result: $CC" >&5
  15388. -echo "${ECHO_T}$CC" >&6; }
  15389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15390. +$as_echo "$CC" >&6; }
  15391. else
  15392. - { echo "$as_me:$LINENO: result: no" >&5
  15393. -echo "${ECHO_T}no" >&6; }
  15394. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15395. +$as_echo "no" >&6; }
  15396. fi
  15397. @@ -2750,10 +3024,10 @@
  15398. do
  15399. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15400. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15401. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15402. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15403. -if test "${ac_cv_prog_CC+set}" = set; then
  15404. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15406. +$as_echo_n "checking for $ac_word... " >&6; }
  15407. +if test "${ac_cv_prog_CC+set}" = set; then :
  15408. + $as_echo_n "(cached) " >&6
  15409. else
  15410. if test -n "$CC"; then
  15411. ac_cv_prog_CC="$CC" # Let the user override the test.
  15412. @@ -2763,25 +3037,25 @@
  15413. do
  15414. IFS=$as_save_IFS
  15415. test -z "$as_dir" && as_dir=.
  15416. - for ac_exec_ext in '' $ac_executable_extensions; do
  15417. + for ac_exec_ext in '' $ac_executable_extensions; do
  15418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15419. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  15420. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15421. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15422. break 2
  15423. fi
  15424. done
  15425. -done
  15426. + done
  15427. IFS=$as_save_IFS
  15428. fi
  15429. fi
  15430. CC=$ac_cv_prog_CC
  15431. if test -n "$CC"; then
  15432. - { echo "$as_me:$LINENO: result: $CC" >&5
  15433. -echo "${ECHO_T}$CC" >&6; }
  15434. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15435. +$as_echo "$CC" >&6; }
  15436. else
  15437. - { echo "$as_me:$LINENO: result: no" >&5
  15438. -echo "${ECHO_T}no" >&6; }
  15439. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15440. +$as_echo "no" >&6; }
  15441. fi
  15442. @@ -2794,10 +3068,10 @@
  15443. do
  15444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15445. set dummy $ac_prog; ac_word=$2
  15446. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15447. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15448. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15449. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15451. +$as_echo_n "checking for $ac_word... " >&6; }
  15452. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15453. + $as_echo_n "(cached) " >&6
  15454. else
  15455. if test -n "$ac_ct_CC"; then
  15456. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  15457. @@ -2807,25 +3081,25 @@
  15458. do
  15459. IFS=$as_save_IFS
  15460. test -z "$as_dir" && as_dir=.
  15461. - for ac_exec_ext in '' $ac_executable_extensions; do
  15462. + for ac_exec_ext in '' $ac_executable_extensions; do
  15463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15464. ac_cv_prog_ac_ct_CC="$ac_prog"
  15465. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15466. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15467. break 2
  15468. fi
  15469. done
  15470. -done
  15471. + done
  15472. IFS=$as_save_IFS
  15473. fi
  15474. fi
  15475. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15476. if test -n "$ac_ct_CC"; then
  15477. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  15478. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  15479. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15480. +$as_echo "$ac_ct_CC" >&6; }
  15481. else
  15482. - { echo "$as_me:$LINENO: result: no" >&5
  15483. -echo "${ECHO_T}no" >&6; }
  15484. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15485. +$as_echo "no" >&6; }
  15486. fi
  15487. @@ -2837,12 +3111,8 @@
  15488. else
  15489. case $cross_compiling:$ac_tool_warned in
  15490. yes:)
  15491. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15492. -whose name does not start with the host triplet. If you think this
  15493. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15494. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15495. -whose name does not start with the host triplet. If you think this
  15496. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15498. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15499. ac_tool_warned=yes ;;
  15500. esac
  15501. CC=$ac_ct_CC
  15502. @@ -2852,51 +3122,37 @@
  15503. fi
  15504. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  15505. -See \`config.log' for more details." >&5
  15506. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  15507. -See \`config.log' for more details." >&2;}
  15508. - { (exit 1); exit 1; }; }
  15509. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15510. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15511. +as_fn_error "no acceptable C compiler found in \$PATH
  15512. +See \`config.log' for more details." "$LINENO" 5; }
  15513. # Provide some information about the compiler.
  15514. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  15515. -ac_compiler=`set X $ac_compile; echo $2`
  15516. -{ (ac_try="$ac_compiler --version >&5"
  15517. -case "(($ac_try" in
  15518. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15519. - *) ac_try_echo=$ac_try;;
  15520. -esac
  15521. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15522. - (eval "$ac_compiler --version >&5") 2>&5
  15523. - ac_status=$?
  15524. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15525. - (exit $ac_status); }
  15526. -{ (ac_try="$ac_compiler -v >&5"
  15527. -case "(($ac_try" in
  15528. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15529. - *) ac_try_echo=$ac_try;;
  15530. -esac
  15531. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15532. - (eval "$ac_compiler -v >&5") 2>&5
  15533. - ac_status=$?
  15534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15535. - (exit $ac_status); }
  15536. -{ (ac_try="$ac_compiler -V >&5"
  15537. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  15538. +set X $ac_compile
  15539. +ac_compiler=$2
  15540. +for ac_option in --version -v -V -qversion; do
  15541. + { { ac_try="$ac_compiler $ac_option >&5"
  15542. case "(($ac_try" in
  15543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15544. *) ac_try_echo=$ac_try;;
  15545. esac
  15546. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15547. - (eval "$ac_compiler -V >&5") 2>&5
  15548. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15549. +$as_echo "$ac_try_echo"; } >&5
  15550. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  15551. ac_status=$?
  15552. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15553. - (exit $ac_status); }
  15554. + if test -s conftest.err; then
  15555. + sed '10a\
  15556. +... rest of stderr output deleted ...
  15557. + 10q' conftest.err >conftest.er1
  15558. + cat conftest.er1 >&5
  15559. + fi
  15560. + rm -f conftest.er1 conftest.err
  15561. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15562. + test $ac_status = 0; }
  15563. +done
  15564. -cat >conftest.$ac_ext <<_ACEOF
  15565. -/* confdefs.h. */
  15566. -_ACEOF
  15567. -cat confdefs.h >>conftest.$ac_ext
  15568. -cat >>conftest.$ac_ext <<_ACEOF
  15569. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15570. /* end confdefs.h. */
  15571. int
  15572. @@ -2908,42 +3164,38 @@
  15573. }
  15574. _ACEOF
  15575. ac_clean_files_save=$ac_clean_files
  15576. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  15577. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  15578. # Try to create an executable without -o first, disregard a.out.
  15579. # It will help us diagnose broken compilers, and finding out an intuition
  15580. # of exeext.
  15581. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  15582. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  15583. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  15584. -#
  15585. -# List of possible output files, starting from the most likely.
  15586. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  15587. -# only as a last resort. b.out is created by i960 compilers.
  15588. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  15589. -#
  15590. -# The IRIX 6 linker writes into existing files which may not be
  15591. -# executable, retaining their permissions. Remove them first so a
  15592. -# subsequent execution test works.
  15593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  15594. +$as_echo_n "checking whether the C compiler works... " >&6; }
  15595. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  15596. +
  15597. +# The possible output files:
  15598. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  15599. +
  15600. ac_rmfiles=
  15601. for ac_file in $ac_files
  15602. do
  15603. case $ac_file in
  15604. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  15605. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  15606. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  15607. esac
  15608. done
  15609. rm -f $ac_rmfiles
  15610. -if { (ac_try="$ac_link_default"
  15611. +if { { ac_try="$ac_link_default"
  15612. case "(($ac_try" in
  15613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15614. *) ac_try_echo=$ac_try;;
  15615. esac
  15616. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15617. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15618. +$as_echo "$ac_try_echo"; } >&5
  15619. (eval "$ac_link_default") 2>&5
  15620. ac_status=$?
  15621. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15622. - (exit $ac_status); }; then
  15623. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15624. + test $ac_status = 0; }; then :
  15625. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  15626. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  15627. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  15628. @@ -2953,14 +3205,14 @@
  15629. do
  15630. test -f "$ac_file" || continue
  15631. case $ac_file in
  15632. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  15633. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  15634. ;;
  15635. [ab].out )
  15636. # We found the default executable, but exeext='' is most
  15637. # certainly right.
  15638. break;;
  15639. *.* )
  15640. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  15641. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  15642. then :; else
  15643. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  15644. fi
  15645. @@ -2979,78 +3231,42 @@
  15646. else
  15647. ac_file=''
  15648. fi
  15649. -
  15650. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  15651. -echo "${ECHO_T}$ac_file" >&6; }
  15652. -if test -z "$ac_file"; then
  15653. - echo "$as_me: failed program was:" >&5
  15654. -sed 's/^/| /' conftest.$ac_ext >&5
  15655. -
  15656. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  15657. -See \`config.log' for more details." >&5
  15658. -echo "$as_me: error: C compiler cannot create executables
  15659. -See \`config.log' for more details." >&2;}
  15660. - { (exit 77); exit 77; }; }
  15661. -fi
  15662. -
  15663. +if test -z "$ac_file"; then :
  15664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15665. +$as_echo "no" >&6; }
  15666. +$as_echo "$as_me: failed program was:" >&5
  15667. +sed 's/^/| /' conftest.$ac_ext >&5
  15668. +
  15669. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15670. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15671. +{ as_fn_set_status 77
  15672. +as_fn_error "C compiler cannot create executables
  15673. +See \`config.log' for more details." "$LINENO" 5; }; }
  15674. +else
  15675. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15676. +$as_echo "yes" >&6; }
  15677. +fi
  15678. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  15679. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  15680. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  15681. +$as_echo "$ac_file" >&6; }
  15682. ac_exeext=$ac_cv_exeext
  15683. -# Check that the compiler produces executables we can run. If not, either
  15684. -# the compiler is broken, or we cross compile.
  15685. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  15686. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  15687. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  15688. -# If not cross compiling, check that we can run a simple program.
  15689. -if test "$cross_compiling" != yes; then
  15690. - if { ac_try='./$ac_file'
  15691. - { (case "(($ac_try" in
  15692. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15693. - *) ac_try_echo=$ac_try;;
  15694. -esac
  15695. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15696. - (eval "$ac_try") 2>&5
  15697. - ac_status=$?
  15698. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15699. - (exit $ac_status); }; }; then
  15700. - cross_compiling=no
  15701. - else
  15702. - if test "$cross_compiling" = maybe; then
  15703. - cross_compiling=yes
  15704. - else
  15705. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  15706. -If you meant to cross compile, use \`--host'.
  15707. -See \`config.log' for more details." >&5
  15708. -echo "$as_me: error: cannot run C compiled programs.
  15709. -If you meant to cross compile, use \`--host'.
  15710. -See \`config.log' for more details." >&2;}
  15711. - { (exit 1); exit 1; }; }
  15712. - fi
  15713. - fi
  15714. -fi
  15715. -{ echo "$as_me:$LINENO: result: yes" >&5
  15716. -echo "${ECHO_T}yes" >&6; }
  15717. -
  15718. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  15719. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  15720. ac_clean_files=$ac_clean_files_save
  15721. -# Check that the compiler produces executables we can run. If not, either
  15722. -# the compiler is broken, or we cross compile.
  15723. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  15724. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  15725. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  15726. -echo "${ECHO_T}$cross_compiling" >&6; }
  15727. -
  15728. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  15729. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  15730. -if { (ac_try="$ac_link"
  15731. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  15732. +$as_echo_n "checking for suffix of executables... " >&6; }
  15733. +if { { ac_try="$ac_link"
  15734. case "(($ac_try" in
  15735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15736. *) ac_try_echo=$ac_try;;
  15737. esac
  15738. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15739. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15740. +$as_echo "$ac_try_echo"; } >&5
  15741. (eval "$ac_link") 2>&5
  15742. ac_status=$?
  15743. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15744. - (exit $ac_status); }; then
  15745. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15746. + test $ac_status = 0; }; then :
  15747. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  15748. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  15749. # work properly (i.e., refer to `conftest.exe'), while it won't with
  15750. @@ -3058,37 +3274,90 @@
  15751. for ac_file in conftest.exe conftest conftest.*; do
  15752. test -f "$ac_file" || continue
  15753. case $ac_file in
  15754. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  15755. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  15756. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  15757. break;;
  15758. * ) break;;
  15759. esac
  15760. done
  15761. else
  15762. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  15763. -See \`config.log' for more details." >&5
  15764. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  15765. -See \`config.log' for more details." >&2;}
  15766. - { (exit 1); exit 1; }; }
  15767. -fi
  15768. -
  15769. -rm -f conftest$ac_cv_exeext
  15770. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  15771. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  15772. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15773. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15774. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  15775. +See \`config.log' for more details." "$LINENO" 5; }
  15776. +fi
  15777. +rm -f conftest conftest$ac_cv_exeext
  15778. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  15779. +$as_echo "$ac_cv_exeext" >&6; }
  15780. rm -f conftest.$ac_ext
  15781. EXEEXT=$ac_cv_exeext
  15782. ac_exeext=$EXEEXT
  15783. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  15784. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  15785. -if test "${ac_cv_objext+set}" = set; then
  15786. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15787. -else
  15788. - cat >conftest.$ac_ext <<_ACEOF
  15789. -/* confdefs.h. */
  15790. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15791. +/* end confdefs.h. */
  15792. +#include <stdio.h>
  15793. +int
  15794. +main ()
  15795. +{
  15796. +FILE *f = fopen ("conftest.out", "w");
  15797. + return ferror (f) || fclose (f) != 0;
  15798. +
  15799. + ;
  15800. + return 0;
  15801. +}
  15802. _ACEOF
  15803. -cat confdefs.h >>conftest.$ac_ext
  15804. -cat >>conftest.$ac_ext <<_ACEOF
  15805. +ac_clean_files="$ac_clean_files conftest.out"
  15806. +# Check that the compiler produces executables we can run. If not, either
  15807. +# the compiler is broken, or we cross compile.
  15808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  15809. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  15810. +if test "$cross_compiling" != yes; then
  15811. + { { ac_try="$ac_link"
  15812. +case "(($ac_try" in
  15813. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15814. + *) ac_try_echo=$ac_try;;
  15815. +esac
  15816. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15817. +$as_echo "$ac_try_echo"; } >&5
  15818. + (eval "$ac_link") 2>&5
  15819. + ac_status=$?
  15820. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15821. + test $ac_status = 0; }
  15822. + if { ac_try='./conftest$ac_cv_exeext'
  15823. + { { case "(($ac_try" in
  15824. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15825. + *) ac_try_echo=$ac_try;;
  15826. +esac
  15827. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15828. +$as_echo "$ac_try_echo"; } >&5
  15829. + (eval "$ac_try") 2>&5
  15830. + ac_status=$?
  15831. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15832. + test $ac_status = 0; }; }; then
  15833. + cross_compiling=no
  15834. + else
  15835. + if test "$cross_compiling" = maybe; then
  15836. + cross_compiling=yes
  15837. + else
  15838. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15839. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15840. +as_fn_error "cannot run C compiled programs.
  15841. +If you meant to cross compile, use \`--host'.
  15842. +See \`config.log' for more details." "$LINENO" 5; }
  15843. + fi
  15844. + fi
  15845. +fi
  15846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  15847. +$as_echo "$cross_compiling" >&6; }
  15848. +
  15849. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  15850. +ac_clean_files=$ac_clean_files_save
  15851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  15852. +$as_echo_n "checking for suffix of object files... " >&6; }
  15853. +if test "${ac_cv_objext+set}" = set; then :
  15854. + $as_echo_n "(cached) " >&6
  15855. +else
  15856. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15857. /* end confdefs.h. */
  15858. int
  15859. @@ -3100,51 +3369,46 @@
  15860. }
  15861. _ACEOF
  15862. rm -f conftest.o conftest.obj
  15863. -if { (ac_try="$ac_compile"
  15864. +if { { ac_try="$ac_compile"
  15865. case "(($ac_try" in
  15866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15867. *) ac_try_echo=$ac_try;;
  15868. esac
  15869. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15870. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15871. +$as_echo "$ac_try_echo"; } >&5
  15872. (eval "$ac_compile") 2>&5
  15873. ac_status=$?
  15874. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15875. - (exit $ac_status); }; then
  15876. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15877. + test $ac_status = 0; }; then :
  15878. for ac_file in conftest.o conftest.obj conftest.*; do
  15879. test -f "$ac_file" || continue;
  15880. case $ac_file in
  15881. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  15882. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  15883. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  15884. break;;
  15885. esac
  15886. done
  15887. else
  15888. - echo "$as_me: failed program was:" >&5
  15889. + $as_echo "$as_me: failed program was:" >&5
  15890. sed 's/^/| /' conftest.$ac_ext >&5
  15891. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  15892. -See \`config.log' for more details." >&5
  15893. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  15894. -See \`config.log' for more details." >&2;}
  15895. - { (exit 1); exit 1; }; }
  15896. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15897. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15898. +as_fn_error "cannot compute suffix of object files: cannot compile
  15899. +See \`config.log' for more details." "$LINENO" 5; }
  15900. fi
  15901. -
  15902. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  15903. fi
  15904. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  15905. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  15906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  15907. +$as_echo "$ac_cv_objext" >&6; }
  15908. OBJEXT=$ac_cv_objext
  15909. ac_objext=$OBJEXT
  15910. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  15911. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  15912. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  15913. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  15915. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  15916. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  15917. + $as_echo_n "(cached) " >&6
  15918. else
  15919. - cat >conftest.$ac_ext <<_ACEOF
  15920. -/* confdefs.h. */
  15921. -_ACEOF
  15922. -cat confdefs.h >>conftest.$ac_ext
  15923. -cat >>conftest.$ac_ext <<_ACEOF
  15924. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15925. /* end confdefs.h. */
  15926. int
  15927. @@ -3158,54 +3422,34 @@
  15928. return 0;
  15929. }
  15930. _ACEOF
  15931. -rm -f conftest.$ac_objext
  15932. -if { (ac_try="$ac_compile"
  15933. -case "(($ac_try" in
  15934. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15935. - *) ac_try_echo=$ac_try;;
  15936. -esac
  15937. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15938. - (eval "$ac_compile") 2>conftest.er1
  15939. - ac_status=$?
  15940. - grep -v '^ *+' conftest.er1 >conftest.err
  15941. - rm -f conftest.er1
  15942. - cat conftest.err >&5
  15943. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15944. - (exit $ac_status); } && {
  15945. - test -z "$ac_c_werror_flag" ||
  15946. - test ! -s conftest.err
  15947. - } && test -s conftest.$ac_objext; then
  15948. +if ac_fn_c_try_compile "$LINENO"; then :
  15949. ac_compiler_gnu=yes
  15950. else
  15951. - echo "$as_me: failed program was:" >&5
  15952. -sed 's/^/| /' conftest.$ac_ext >&5
  15953. -
  15954. - ac_compiler_gnu=no
  15955. + ac_compiler_gnu=no
  15956. fi
  15957. -
  15958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15959. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  15960. fi
  15961. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  15962. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  15963. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  15964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  15965. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  15966. +if test $ac_compiler_gnu = yes; then
  15967. + GCC=yes
  15968. +else
  15969. + GCC=
  15970. +fi
  15971. ac_test_CFLAGS=${CFLAGS+set}
  15972. ac_save_CFLAGS=$CFLAGS
  15973. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  15974. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  15975. -if test "${ac_cv_prog_cc_g+set}" = set; then
  15976. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  15978. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  15979. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  15980. + $as_echo_n "(cached) " >&6
  15981. else
  15982. ac_save_c_werror_flag=$ac_c_werror_flag
  15983. ac_c_werror_flag=yes
  15984. ac_cv_prog_cc_g=no
  15985. CFLAGS="-g"
  15986. - cat >conftest.$ac_ext <<_ACEOF
  15987. -/* confdefs.h. */
  15988. -_ACEOF
  15989. -cat confdefs.h >>conftest.$ac_ext
  15990. -cat >>conftest.$ac_ext <<_ACEOF
  15991. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15992. /* end confdefs.h. */
  15993. int
  15994. @@ -3216,34 +3460,11 @@
  15995. return 0;
  15996. }
  15997. _ACEOF
  15998. -rm -f conftest.$ac_objext
  15999. -if { (ac_try="$ac_compile"
  16000. -case "(($ac_try" in
  16001. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16002. - *) ac_try_echo=$ac_try;;
  16003. -esac
  16004. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16005. - (eval "$ac_compile") 2>conftest.er1
  16006. - ac_status=$?
  16007. - grep -v '^ *+' conftest.er1 >conftest.err
  16008. - rm -f conftest.er1
  16009. - cat conftest.err >&5
  16010. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16011. - (exit $ac_status); } && {
  16012. - test -z "$ac_c_werror_flag" ||
  16013. - test ! -s conftest.err
  16014. - } && test -s conftest.$ac_objext; then
  16015. +if ac_fn_c_try_compile "$LINENO"; then :
  16016. ac_cv_prog_cc_g=yes
  16017. else
  16018. - echo "$as_me: failed program was:" >&5
  16019. -sed 's/^/| /' conftest.$ac_ext >&5
  16020. -
  16021. - CFLAGS=""
  16022. - cat >conftest.$ac_ext <<_ACEOF
  16023. -/* confdefs.h. */
  16024. -_ACEOF
  16025. -cat confdefs.h >>conftest.$ac_ext
  16026. -cat >>conftest.$ac_ext <<_ACEOF
  16027. + CFLAGS=""
  16028. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16029. /* end confdefs.h. */
  16030. int
  16031. @@ -3254,35 +3475,12 @@
  16032. return 0;
  16033. }
  16034. _ACEOF
  16035. -rm -f conftest.$ac_objext
  16036. -if { (ac_try="$ac_compile"
  16037. -case "(($ac_try" in
  16038. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16039. - *) ac_try_echo=$ac_try;;
  16040. -esac
  16041. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16042. - (eval "$ac_compile") 2>conftest.er1
  16043. - ac_status=$?
  16044. - grep -v '^ *+' conftest.er1 >conftest.err
  16045. - rm -f conftest.er1
  16046. - cat conftest.err >&5
  16047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16048. - (exit $ac_status); } && {
  16049. - test -z "$ac_c_werror_flag" ||
  16050. - test ! -s conftest.err
  16051. - } && test -s conftest.$ac_objext; then
  16052. - :
  16053. -else
  16054. - echo "$as_me: failed program was:" >&5
  16055. -sed 's/^/| /' conftest.$ac_ext >&5
  16056. +if ac_fn_c_try_compile "$LINENO"; then :
  16057. - ac_c_werror_flag=$ac_save_c_werror_flag
  16058. +else
  16059. + ac_c_werror_flag=$ac_save_c_werror_flag
  16060. CFLAGS="-g"
  16061. - cat >conftest.$ac_ext <<_ACEOF
  16062. -/* confdefs.h. */
  16063. -_ACEOF
  16064. -cat confdefs.h >>conftest.$ac_ext
  16065. -cat >>conftest.$ac_ext <<_ACEOF
  16066. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16067. /* end confdefs.h. */
  16068. int
  16069. @@ -3293,42 +3491,18 @@
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. -rm -f conftest.$ac_objext
  16074. -if { (ac_try="$ac_compile"
  16075. -case "(($ac_try" in
  16076. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16077. - *) ac_try_echo=$ac_try;;
  16078. -esac
  16079. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16080. - (eval "$ac_compile") 2>conftest.er1
  16081. - ac_status=$?
  16082. - grep -v '^ *+' conftest.er1 >conftest.err
  16083. - rm -f conftest.er1
  16084. - cat conftest.err >&5
  16085. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16086. - (exit $ac_status); } && {
  16087. - test -z "$ac_c_werror_flag" ||
  16088. - test ! -s conftest.err
  16089. - } && test -s conftest.$ac_objext; then
  16090. +if ac_fn_c_try_compile "$LINENO"; then :
  16091. ac_cv_prog_cc_g=yes
  16092. -else
  16093. - echo "$as_me: failed program was:" >&5
  16094. -sed 's/^/| /' conftest.$ac_ext >&5
  16095. -
  16096. -
  16097. fi
  16098. -
  16099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16100. fi
  16101. -
  16102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16103. fi
  16104. -
  16105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16106. ac_c_werror_flag=$ac_save_c_werror_flag
  16107. fi
  16108. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  16109. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  16110. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  16111. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  16112. if test "$ac_test_CFLAGS" = set; then
  16113. CFLAGS=$ac_save_CFLAGS
  16114. elif test $ac_cv_prog_cc_g = yes; then
  16115. @@ -3344,18 +3518,14 @@
  16116. CFLAGS=
  16117. fi
  16118. fi
  16119. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  16120. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  16121. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  16122. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16123. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  16124. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  16125. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  16126. + $as_echo_n "(cached) " >&6
  16127. else
  16128. ac_cv_prog_cc_c89=no
  16129. ac_save_CC=$CC
  16130. -cat >conftest.$ac_ext <<_ACEOF
  16131. -/* confdefs.h. */
  16132. -_ACEOF
  16133. -cat confdefs.h >>conftest.$ac_ext
  16134. -cat >>conftest.$ac_ext <<_ACEOF
  16135. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16136. /* end confdefs.h. */
  16137. #include <stdarg.h>
  16138. #include <stdio.h>
  16139. @@ -3412,31 +3582,9 @@
  16140. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  16141. do
  16142. CC="$ac_save_CC $ac_arg"
  16143. - rm -f conftest.$ac_objext
  16144. -if { (ac_try="$ac_compile"
  16145. -case "(($ac_try" in
  16146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16147. - *) ac_try_echo=$ac_try;;
  16148. -esac
  16149. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16150. - (eval "$ac_compile") 2>conftest.er1
  16151. - ac_status=$?
  16152. - grep -v '^ *+' conftest.er1 >conftest.err
  16153. - rm -f conftest.er1
  16154. - cat conftest.err >&5
  16155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16156. - (exit $ac_status); } && {
  16157. - test -z "$ac_c_werror_flag" ||
  16158. - test ! -s conftest.err
  16159. - } && test -s conftest.$ac_objext; then
  16160. + if ac_fn_c_try_compile "$LINENO"; then :
  16161. ac_cv_prog_cc_c89=$ac_arg
  16162. -else
  16163. - echo "$as_me: failed program was:" >&5
  16164. -sed 's/^/| /' conftest.$ac_ext >&5
  16165. -
  16166. -
  16167. fi
  16168. -
  16169. rm -f core conftest.err conftest.$ac_objext
  16170. test "x$ac_cv_prog_cc_c89" != "xno" && break
  16171. done
  16172. @@ -3447,17 +3595,19 @@
  16173. # AC_CACHE_VAL
  16174. case "x$ac_cv_prog_cc_c89" in
  16175. x)
  16176. - { echo "$as_me:$LINENO: result: none needed" >&5
  16177. -echo "${ECHO_T}none needed" >&6; } ;;
  16178. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  16179. +$as_echo "none needed" >&6; } ;;
  16180. xno)
  16181. - { echo "$as_me:$LINENO: result: unsupported" >&5
  16182. -echo "${ECHO_T}unsupported" >&6; } ;;
  16183. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  16184. +$as_echo "unsupported" >&6; } ;;
  16185. *)
  16186. CC="$CC $ac_cv_prog_cc_c89"
  16187. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  16188. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  16189. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  16190. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  16191. esac
  16192. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  16193. +fi
  16194. ac_ext=c
  16195. ac_cpp='$CPP $CPPFLAGS'
  16196. @@ -3472,44 +3622,44 @@
  16197. am_make=${MAKE-make}
  16198. cat > confinc << 'END'
  16199. am__doit:
  16200. - @echo done
  16201. + @echo this is the am__doit target
  16202. .PHONY: am__doit
  16203. END
  16204. # If we don't find an include directive, just comment out the code.
  16205. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  16206. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  16207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  16208. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  16209. am__include="#"
  16210. am__quote=
  16211. _am_result=none
  16212. # First try GNU make style include.
  16213. echo "include confinc" > confmf
  16214. -# We grep out `Entering directory' and `Leaving directory'
  16215. -# messages which can occur if `w' ends up in MAKEFLAGS.
  16216. -# In particular we don't look at `^make:' because GNU make might
  16217. -# be invoked under some other name (usually "gmake"), in which
  16218. -# case it prints its new name instead of `make'.
  16219. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  16220. - am__include=include
  16221. - am__quote=
  16222. - _am_result=GNU
  16223. -fi
  16224. +# Ignore all kinds of additional output from `make'.
  16225. +case `$am_make -s -f confmf 2> /dev/null` in #(
  16226. +*the\ am__doit\ target*)
  16227. + am__include=include
  16228. + am__quote=
  16229. + _am_result=GNU
  16230. + ;;
  16231. +esac
  16232. # Now try BSD make style include.
  16233. if test "$am__include" = "#"; then
  16234. echo '.include "confinc"' > confmf
  16235. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  16236. - am__include=.include
  16237. - am__quote="\""
  16238. - _am_result=BSD
  16239. - fi
  16240. + case `$am_make -s -f confmf 2> /dev/null` in #(
  16241. + *the\ am__doit\ target*)
  16242. + am__include=.include
  16243. + am__quote="\""
  16244. + _am_result=BSD
  16245. + ;;
  16246. + esac
  16247. fi
  16248. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  16249. -echo "${ECHO_T}$_am_result" >&6; }
  16250. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  16251. +$as_echo "$_am_result" >&6; }
  16252. rm -f confinc confmf
  16253. # Check whether --enable-dependency-tracking was given.
  16254. -if test "${enable_dependency_tracking+set}" = set; then
  16255. +if test "${enable_dependency_tracking+set}" = set; then :
  16256. enableval=$enable_dependency_tracking;
  16257. fi
  16258. @@ -3529,10 +3679,10 @@
  16259. depcc="$CC" am_compiler_list=
  16260. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16261. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  16262. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  16263. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  16265. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  16266. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  16267. + $as_echo_n "(cached) " >&6
  16268. else
  16269. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16270. # We make a subdir and do the tests there. Otherwise we can end up
  16271. @@ -3557,6 +3707,11 @@
  16272. if test "$am_compiler_list" = ""; then
  16273. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16274. fi
  16275. + am__universal=false
  16276. + case " $depcc " in #(
  16277. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  16278. + esac
  16279. +
  16280. for depmode in $am_compiler_list; do
  16281. # Setup a source with many dependencies, because some compilers
  16282. # like to wrap large dependency lists on column 80 (with \), and
  16283. @@ -3574,7 +3729,17 @@
  16284. done
  16285. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16286. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16287. + # mode. It turns out that the SunPro C++ compiler does not properly
  16288. + # handle `-M -o', and we need to detect this. Also, some Intel
  16289. + # versions had trouble with output in subdirs
  16290. + am__obj=sub/conftest.${OBJEXT-o}
  16291. + am__minus_obj="-o $am__obj"
  16292. case $depmode in
  16293. + gcc)
  16294. + # This depmode causes a compiler race in universal mode.
  16295. + test "$am__universal" = false || continue
  16296. + ;;
  16297. nosideeffect)
  16298. # after this tag, mechanisms are not by side-effect, so they'll
  16299. # only be used when explicitly requested
  16300. @@ -3584,19 +3749,23 @@
  16301. break
  16302. fi
  16303. ;;
  16304. + msvisualcpp | msvcmsys)
  16305. + # This compiler won't grok `-c -o', but also, the minuso test has
  16306. + # not run yet. These depmodes are late enough in the game, and
  16307. + # so weak that their functioning should not be impacted.
  16308. + am__obj=conftest.${OBJEXT-o}
  16309. + am__minus_obj=
  16310. + ;;
  16311. none) break ;;
  16312. esac
  16313. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16314. - # mode. It turns out that the SunPro C++ compiler does not properly
  16315. - # handle `-M -o', and we need to detect this.
  16316. if depmode=$depmode \
  16317. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16318. + source=sub/conftest.c object=$am__obj \
  16319. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16320. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16321. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  16322. >/dev/null 2>conftest.err &&
  16323. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16324. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16325. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16326. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  16327. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16328. # icc doesn't choke on unknown options, it will just issue warnings
  16329. # or remarks (even with -Werror). So we grep stderr for any message
  16330. @@ -3620,8 +3789,8 @@
  16331. fi
  16332. fi
  16333. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  16334. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  16335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  16336. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  16337. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16338. if
  16339. @@ -3636,176 +3805,147 @@
  16340. -# Check whether --enable-shared was given.
  16341. -if test "${enable_shared+set}" = set; then
  16342. - enableval=$enable_shared; p=${PACKAGE-default}
  16343. - case $enableval in
  16344. - yes) enable_shared=yes ;;
  16345. - no) enable_shared=no ;;
  16346. - *)
  16347. - enable_shared=no
  16348. - # Look at the argument we got. We use all the common list separators.
  16349. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16350. - for pkg in $enableval; do
  16351. - IFS="$lt_save_ifs"
  16352. - if test "X$pkg" = "X$p"; then
  16353. - enable_shared=yes
  16354. - fi
  16355. - done
  16356. - IFS="$lt_save_ifs"
  16357. - ;;
  16358. - esac
  16359. -else
  16360. - enable_shared=yes
  16361. -fi
  16362. +case `pwd` in
  16363. + *\ * | *\ *)
  16364. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  16365. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  16366. +esac
  16367. -# Check whether --enable-static was given.
  16368. -if test "${enable_static+set}" = set; then
  16369. - enableval=$enable_static; p=${PACKAGE-default}
  16370. - case $enableval in
  16371. - yes) enable_static=yes ;;
  16372. - no) enable_static=no ;;
  16373. - *)
  16374. - enable_static=no
  16375. - # Look at the argument we got. We use all the common list separators.
  16376. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16377. - for pkg in $enableval; do
  16378. - IFS="$lt_save_ifs"
  16379. - if test "X$pkg" = "X$p"; then
  16380. - enable_static=yes
  16381. - fi
  16382. - done
  16383. - IFS="$lt_save_ifs"
  16384. - ;;
  16385. - esac
  16386. -else
  16387. - enable_static=yes
  16388. -fi
  16389. +macro_version='2.2.6b'
  16390. +macro_revision='1.3017'
  16391. -# Check whether --enable-fast-install was given.
  16392. -if test "${enable_fast_install+set}" = set; then
  16393. - enableval=$enable_fast_install; p=${PACKAGE-default}
  16394. - case $enableval in
  16395. - yes) enable_fast_install=yes ;;
  16396. - no) enable_fast_install=no ;;
  16397. - *)
  16398. - enable_fast_install=no
  16399. - # Look at the argument we got. We use all the common list separators.
  16400. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16401. - for pkg in $enableval; do
  16402. - IFS="$lt_save_ifs"
  16403. - if test "X$pkg" = "X$p"; then
  16404. - enable_fast_install=yes
  16405. - fi
  16406. - done
  16407. - IFS="$lt_save_ifs"
  16408. - ;;
  16409. - esac
  16410. -else
  16411. - enable_fast_install=yes
  16412. -fi
  16413. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  16414. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  16415. -if test "${lt_cv_path_SED+set}" = set; then
  16416. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16417. -else
  16418. - # Loop through the user's path and test for sed and gsed.
  16419. -# Then use that list of sed's as ones to test for truncation.
  16420. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16421. +
  16422. +
  16423. +
  16424. +
  16425. +
  16426. +
  16427. +
  16428. +
  16429. +
  16430. +
  16431. +ltmain="$ac_aux_dir/ltmain.sh"
  16432. +
  16433. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  16434. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  16435. +if test "${ac_cv_path_SED+set}" = set; then :
  16436. + $as_echo_n "(cached) " >&6
  16437. +else
  16438. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  16439. + for ac_i in 1 2 3 4 5 6 7; do
  16440. + ac_script="$ac_script$as_nl$ac_script"
  16441. + done
  16442. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  16443. + { ac_script=; unset ac_script;}
  16444. + if test -z "$SED"; then
  16445. + ac_path_SED_found=false
  16446. + # Loop through the user's path and test for each of PROGNAME-LIST
  16447. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16448. for as_dir in $PATH
  16449. do
  16450. IFS=$as_save_IFS
  16451. test -z "$as_dir" && as_dir=.
  16452. - for lt_ac_prog in sed gsed; do
  16453. + for ac_prog in sed gsed; do
  16454. for ac_exec_ext in '' $ac_executable_extensions; do
  16455. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  16456. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  16457. - fi
  16458. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  16459. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  16460. +# Check for GNU ac_path_SED and select it if it is found.
  16461. + # Check for GNU $ac_path_SED
  16462. +case `"$ac_path_SED" --version 2>&1` in
  16463. +*GNU*)
  16464. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  16465. +*)
  16466. + ac_count=0
  16467. + $as_echo_n 0123456789 >"conftest.in"
  16468. + while :
  16469. + do
  16470. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16471. + mv "conftest.tmp" "conftest.in"
  16472. + cp "conftest.in" "conftest.nl"
  16473. + $as_echo '' >> "conftest.nl"
  16474. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16475. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16476. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16477. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  16478. + # Best one so far, save it but keep looking for a better one
  16479. + ac_cv_path_SED="$ac_path_SED"
  16480. + ac_path_SED_max=$ac_count
  16481. + fi
  16482. + # 10*(2^10) chars as input seems more than enough
  16483. + test $ac_count -gt 10 && break
  16484. + done
  16485. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16486. +esac
  16487. +
  16488. + $ac_path_SED_found && break 3
  16489. done
  16490. done
  16491. -done
  16492. + done
  16493. IFS=$as_save_IFS
  16494. -lt_ac_max=0
  16495. -lt_ac_count=0
  16496. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  16497. -# along with /bin/sed that truncates output.
  16498. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  16499. - test ! -f $lt_ac_sed && continue
  16500. - cat /dev/null > conftest.in
  16501. - lt_ac_count=0
  16502. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  16503. - # Check for GNU sed and select it if it is found.
  16504. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  16505. - lt_cv_path_SED=$lt_ac_sed
  16506. - break
  16507. + if test -z "$ac_cv_path_SED"; then
  16508. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  16509. fi
  16510. - while true; do
  16511. - cat conftest.in conftest.in >conftest.tmp
  16512. - mv conftest.tmp conftest.in
  16513. - cp conftest.in conftest.nl
  16514. - echo >>conftest.nl
  16515. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  16516. - cmp -s conftest.out conftest.nl || break
  16517. - # 10000 chars as input seems more than enough
  16518. - test $lt_ac_count -gt 10 && break
  16519. - lt_ac_count=`expr $lt_ac_count + 1`
  16520. - if test $lt_ac_count -gt $lt_ac_max; then
  16521. - lt_ac_max=$lt_ac_count
  16522. - lt_cv_path_SED=$lt_ac_sed
  16523. - fi
  16524. - done
  16525. -done
  16526. +else
  16527. + ac_cv_path_SED=$SED
  16528. +fi
  16529. fi
  16530. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  16531. +$as_echo "$ac_cv_path_SED" >&6; }
  16532. + SED="$ac_cv_path_SED"
  16533. + rm -f conftest.sed
  16534. +
  16535. +test -z "$SED" && SED=sed
  16536. +Xsed="$SED -e 1s/^X//"
  16537. +
  16538. +
  16539. +
  16540. +
  16541. +
  16542. +
  16543. +
  16544. +
  16545. -SED=$lt_cv_path_SED
  16546. -{ echo "$as_me:$LINENO: result: $SED" >&5
  16547. -echo "${ECHO_T}$SED" >&6; }
  16548. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  16549. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  16550. -if test "${ac_cv_path_GREP+set}" = set; then
  16551. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16552. -else
  16553. - # Extract the first word of "grep ggrep" to use in msg output
  16554. -if test -z "$GREP"; then
  16555. -set dummy grep ggrep; ac_prog_name=$2
  16556. -if test "${ac_cv_path_GREP+set}" = set; then
  16557. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  16559. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  16560. +if test "${ac_cv_path_GREP+set}" = set; then :
  16561. + $as_echo_n "(cached) " >&6
  16562. else
  16563. + if test -z "$GREP"; then
  16564. ac_path_GREP_found=false
  16565. -# Loop through the user's path and test for each of PROGNAME-LIST
  16566. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16567. + # Loop through the user's path and test for each of PROGNAME-LIST
  16568. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16569. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16570. do
  16571. IFS=$as_save_IFS
  16572. test -z "$as_dir" && as_dir=.
  16573. - for ac_prog in grep ggrep; do
  16574. - for ac_exec_ext in '' $ac_executable_extensions; do
  16575. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16576. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16577. - # Check for GNU ac_path_GREP and select it if it is found.
  16578. + for ac_prog in grep ggrep; do
  16579. + for ac_exec_ext in '' $ac_executable_extensions; do
  16580. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16581. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16582. +# Check for GNU ac_path_GREP and select it if it is found.
  16583. # Check for GNU $ac_path_GREP
  16584. case `"$ac_path_GREP" --version 2>&1` in
  16585. *GNU*)
  16586. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  16587. *)
  16588. ac_count=0
  16589. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  16590. + $as_echo_n 0123456789 >"conftest.in"
  16591. while :
  16592. do
  16593. cat "conftest.in" "conftest.in" >"conftest.tmp"
  16594. mv "conftest.tmp" "conftest.in"
  16595. cp "conftest.in" "conftest.nl"
  16596. - echo 'GREP' >> "conftest.nl"
  16597. + $as_echo 'GREP' >> "conftest.nl"
  16598. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16600. - ac_count=`expr $ac_count + 1`
  16601. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16602. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  16603. # Best one so far, save it but keep looking for a better one
  16604. ac_cv_path_GREP="$ac_path_GREP"
  16605. @@ -3817,77 +3957,61 @@
  16606. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16607. esac
  16608. -
  16609. - $ac_path_GREP_found && break 3
  16610. + $ac_path_GREP_found && break 3
  16611. + done
  16612. + done
  16613. done
  16614. -done
  16615. -
  16616. -done
  16617. IFS=$as_save_IFS
  16618. -
  16619. -
  16620. -fi
  16621. -
  16622. -GREP="$ac_cv_path_GREP"
  16623. -if test -z "$GREP"; then
  16624. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16625. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16626. - { (exit 1); exit 1; }; }
  16627. -fi
  16628. -
  16629. + if test -z "$ac_cv_path_GREP"; then
  16630. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16631. + fi
  16632. else
  16633. ac_cv_path_GREP=$GREP
  16634. fi
  16635. -
  16636. fi
  16637. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  16638. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  16639. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  16640. +$as_echo "$ac_cv_path_GREP" >&6; }
  16641. GREP="$ac_cv_path_GREP"
  16642. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  16643. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  16644. -if test "${ac_cv_path_EGREP+set}" = set; then
  16645. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  16647. +$as_echo_n "checking for egrep... " >&6; }
  16648. +if test "${ac_cv_path_EGREP+set}" = set; then :
  16649. + $as_echo_n "(cached) " >&6
  16650. else
  16651. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  16652. then ac_cv_path_EGREP="$GREP -E"
  16653. else
  16654. - # Extract the first word of "egrep" to use in msg output
  16655. -if test -z "$EGREP"; then
  16656. -set dummy egrep; ac_prog_name=$2
  16657. -if test "${ac_cv_path_EGREP+set}" = set; then
  16658. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16659. -else
  16660. + if test -z "$EGREP"; then
  16661. ac_path_EGREP_found=false
  16662. -# Loop through the user's path and test for each of PROGNAME-LIST
  16663. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16664. + # Loop through the user's path and test for each of PROGNAME-LIST
  16665. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16666. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16667. do
  16668. IFS=$as_save_IFS
  16669. test -z "$as_dir" && as_dir=.
  16670. - for ac_prog in egrep; do
  16671. - for ac_exec_ext in '' $ac_executable_extensions; do
  16672. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16673. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16674. - # Check for GNU ac_path_EGREP and select it if it is found.
  16675. + for ac_prog in egrep; do
  16676. + for ac_exec_ext in '' $ac_executable_extensions; do
  16677. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16678. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16679. +# Check for GNU ac_path_EGREP and select it if it is found.
  16680. # Check for GNU $ac_path_EGREP
  16681. case `"$ac_path_EGREP" --version 2>&1` in
  16682. *GNU*)
  16683. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  16684. *)
  16685. ac_count=0
  16686. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  16687. + $as_echo_n 0123456789 >"conftest.in"
  16688. while :
  16689. do
  16690. cat "conftest.in" "conftest.in" >"conftest.tmp"
  16691. mv "conftest.tmp" "conftest.in"
  16692. cp "conftest.in" "conftest.nl"
  16693. - echo 'EGREP' >> "conftest.nl"
  16694. + $as_echo 'EGREP' >> "conftest.nl"
  16695. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16696. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16697. - ac_count=`expr $ac_count + 1`
  16698. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16699. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  16700. # Best one so far, save it but keep looking for a better one
  16701. ac_cv_path_EGREP="$ac_path_EGREP"
  16702. @@ -3899,39 +4023,114 @@
  16703. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16704. esac
  16705. -
  16706. - $ac_path_EGREP_found && break 3
  16707. + $ac_path_EGREP_found && break 3
  16708. + done
  16709. + done
  16710. done
  16711. -done
  16712. -
  16713. -done
  16714. IFS=$as_save_IFS
  16715. -
  16716. -
  16717. + if test -z "$ac_cv_path_EGREP"; then
  16718. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16719. + fi
  16720. +else
  16721. + ac_cv_path_EGREP=$EGREP
  16722. fi
  16723. -EGREP="$ac_cv_path_EGREP"
  16724. -if test -z "$EGREP"; then
  16725. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16726. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16727. - { (exit 1); exit 1; }; }
  16728. + fi
  16729. fi
  16730. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  16731. +$as_echo "$ac_cv_path_EGREP" >&6; }
  16732. + EGREP="$ac_cv_path_EGREP"
  16733. +
  16734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  16735. +$as_echo_n "checking for fgrep... " >&6; }
  16736. +if test "${ac_cv_path_FGREP+set}" = set; then :
  16737. + $as_echo_n "(cached) " >&6
  16738. else
  16739. - ac_cv_path_EGREP=$EGREP
  16740. -fi
  16741. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  16742. + then ac_cv_path_FGREP="$GREP -F"
  16743. + else
  16744. + if test -z "$FGREP"; then
  16745. + ac_path_FGREP_found=false
  16746. + # Loop through the user's path and test for each of PROGNAME-LIST
  16747. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16748. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16749. +do
  16750. + IFS=$as_save_IFS
  16751. + test -z "$as_dir" && as_dir=.
  16752. + for ac_prog in fgrep; do
  16753. + for ac_exec_ext in '' $ac_executable_extensions; do
  16754. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  16755. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  16756. +# Check for GNU ac_path_FGREP and select it if it is found.
  16757. + # Check for GNU $ac_path_FGREP
  16758. +case `"$ac_path_FGREP" --version 2>&1` in
  16759. +*GNU*)
  16760. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  16761. +*)
  16762. + ac_count=0
  16763. + $as_echo_n 0123456789 >"conftest.in"
  16764. + while :
  16765. + do
  16766. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16767. + mv "conftest.tmp" "conftest.in"
  16768. + cp "conftest.in" "conftest.nl"
  16769. + $as_echo 'FGREP' >> "conftest.nl"
  16770. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16771. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16772. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16773. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  16774. + # Best one so far, save it but keep looking for a better one
  16775. + ac_cv_path_FGREP="$ac_path_FGREP"
  16776. + ac_path_FGREP_max=$ac_count
  16777. + fi
  16778. + # 10*(2^10) chars as input seems more than enough
  16779. + test $ac_count -gt 10 && break
  16780. + done
  16781. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16782. +esac
  16783. + $ac_path_FGREP_found && break 3
  16784. + done
  16785. + done
  16786. + done
  16787. +IFS=$as_save_IFS
  16788. + if test -z "$ac_cv_path_FGREP"; then
  16789. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16790. + fi
  16791. +else
  16792. + ac_cv_path_FGREP=$FGREP
  16793. +fi
  16794. fi
  16795. fi
  16796. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  16797. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  16798. - EGREP="$ac_cv_path_EGREP"
  16799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  16800. +$as_echo "$ac_cv_path_FGREP" >&6; }
  16801. + FGREP="$ac_cv_path_FGREP"
  16802. +
  16803. +
  16804. +test -z "$GREP" && GREP=grep
  16805. +
  16806. +
  16807. +
  16808. +
  16809. +
  16810. +
  16811. +
  16812. +
  16813. +
  16814. +
  16815. +
  16816. +
  16817. +
  16818. +
  16819. +
  16820. +
  16821. # Check whether --with-gnu-ld was given.
  16822. -if test "${with_gnu_ld+set}" = set; then
  16823. +if test "${with_gnu_ld+set}" = set; then :
  16824. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16825. else
  16826. with_gnu_ld=no
  16827. @@ -3940,8 +4139,8 @@
  16828. ac_prog=ld
  16829. if test "$GCC" = yes; then
  16830. # Check if gcc -print-prog-name=ld gives a path.
  16831. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  16832. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  16833. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16834. +$as_echo_n "checking for ld used by $CC... " >&6; }
  16835. case $host in
  16836. *-*-mingw*)
  16837. # gcc leaves a trailing carriage return which upsets mingw
  16838. @@ -3954,9 +4153,9 @@
  16839. [\\/]* | ?:[\\/]*)
  16840. re_direlt='/[^/][^/]*/\.\./'
  16841. # Canonicalize the pathname of ld
  16842. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  16843. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  16844. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  16845. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  16846. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  16847. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  16848. done
  16849. test -z "$LD" && LD="$ac_prog"
  16850. ;;
  16851. @@ -3970,14 +4169,14 @@
  16852. ;;
  16853. esac
  16854. elif test "$with_gnu_ld" = yes; then
  16855. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  16856. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  16857. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16858. +$as_echo_n "checking for GNU ld... " >&6; }
  16859. else
  16860. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  16861. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  16862. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16863. +$as_echo_n "checking for non-GNU ld... " >&6; }
  16864. fi
  16865. -if test "${lt_cv_path_LD+set}" = set; then
  16866. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16867. +if test "${lt_cv_path_LD+set}" = set; then :
  16868. + $as_echo_n "(cached) " >&6
  16869. else
  16870. if test -z "$LD"; then
  16871. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16872. @@ -4007,19 +4206,17 @@
  16873. LD="$lt_cv_path_LD"
  16874. if test -n "$LD"; then
  16875. - { echo "$as_me:$LINENO: result: $LD" >&5
  16876. -echo "${ECHO_T}$LD" >&6; }
  16877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16878. +$as_echo "$LD" >&6; }
  16879. else
  16880. - { echo "$as_me:$LINENO: result: no" >&5
  16881. -echo "${ECHO_T}no" >&6; }
  16882. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16883. +$as_echo "no" >&6; }
  16884. fi
  16885. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  16886. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  16887. - { (exit 1); exit 1; }; }
  16888. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  16889. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  16890. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  16891. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16892. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  16893. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16894. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16895. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  16896. + $as_echo_n "(cached) " >&6
  16897. else
  16898. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16899. case `$LD -v 2>&1 </dev/null` in
  16900. @@ -4031,40 +4228,22 @@
  16901. ;;
  16902. esac
  16903. fi
  16904. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  16905. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  16906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  16907. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  16908. with_gnu_ld=$lt_cv_prog_gnu_ld
  16909. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  16910. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  16911. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  16912. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16913. -else
  16914. - lt_cv_ld_reload_flag='-r'
  16915. -fi
  16916. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  16917. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  16918. -reload_flag=$lt_cv_ld_reload_flag
  16919. -case $reload_flag in
  16920. -"" | " "*) ;;
  16921. -*) reload_flag=" $reload_flag" ;;
  16922. -esac
  16923. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16924. -case $host_os in
  16925. - darwin*)
  16926. - if test "$GCC" = yes; then
  16927. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  16928. - else
  16929. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16930. - fi
  16931. - ;;
  16932. -esac
  16933. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  16934. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  16935. -if test "${lt_cv_path_NM+set}" = set; then
  16936. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16937. +
  16938. +
  16939. +
  16940. +
  16941. +
  16942. +
  16943. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  16944. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  16945. +if test "${lt_cv_path_NM+set}" = set; then :
  16946. + $as_echo_n "(cached) " >&6
  16947. else
  16948. if test -n "$NM"; then
  16949. # Let the user override the test.
  16950. @@ -4107,2161 +4286,1070 @@
  16951. done
  16952. IFS="$lt_save_ifs"
  16953. done
  16954. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  16955. + : ${lt_cv_path_NM=no}
  16956. fi
  16957. fi
  16958. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  16959. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  16960. -NM="$lt_cv_path_NM"
  16961. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  16962. +$as_echo "$lt_cv_path_NM" >&6; }
  16963. +if test "$lt_cv_path_NM" != "no"; then
  16964. + NM="$lt_cv_path_NM"
  16965. +else
  16966. + # Didn't find any BSD compatible name lister, look for dumpbin.
  16967. + if test -n "$ac_tool_prefix"; then
  16968. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  16969. + do
  16970. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16971. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16973. +$as_echo_n "checking for $ac_word... " >&6; }
  16974. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  16975. + $as_echo_n "(cached) " >&6
  16976. +else
  16977. + if test -n "$DUMPBIN"; then
  16978. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  16979. +else
  16980. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16981. +for as_dir in $PATH
  16982. +do
  16983. + IFS=$as_save_IFS
  16984. + test -z "$as_dir" && as_dir=.
  16985. + for ac_exec_ext in '' $ac_executable_extensions; do
  16986. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16987. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  16988. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16989. + break 2
  16990. + fi
  16991. +done
  16992. + done
  16993. +IFS=$as_save_IFS
  16994. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  16995. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  16996. -LN_S=$as_ln_s
  16997. -if test "$LN_S" = "ln -s"; then
  16998. - { echo "$as_me:$LINENO: result: yes" >&5
  16999. -echo "${ECHO_T}yes" >&6; }
  17000. +fi
  17001. +fi
  17002. +DUMPBIN=$ac_cv_prog_DUMPBIN
  17003. +if test -n "$DUMPBIN"; then
  17004. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  17005. +$as_echo "$DUMPBIN" >&6; }
  17006. else
  17007. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  17008. -echo "${ECHO_T}no, using $LN_S" >&6; }
  17009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17010. +$as_echo "no" >&6; }
  17011. fi
  17012. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  17013. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  17014. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  17015. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17016. +
  17017. + test -n "$DUMPBIN" && break
  17018. + done
  17019. +fi
  17020. +if test -z "$DUMPBIN"; then
  17021. + ac_ct_DUMPBIN=$DUMPBIN
  17022. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  17023. +do
  17024. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  17025. +set dummy $ac_prog; ac_word=$2
  17026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17027. +$as_echo_n "checking for $ac_word... " >&6; }
  17028. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  17029. + $as_echo_n "(cached) " >&6
  17030. else
  17031. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  17032. -lt_cv_file_magic_test_file=
  17033. -lt_cv_deplibs_check_method='unknown'
  17034. -# Need to set the preceding variable on all platforms that support
  17035. -# interlibrary dependencies.
  17036. -# 'none' -- dependencies not supported.
  17037. -# `unknown' -- same as none, but documents that we really don't know.
  17038. -# 'pass_all' -- all dependencies passed with no checks.
  17039. -# 'test_compile' -- check by making test program.
  17040. -# 'file_magic [[regex]]' -- check by looking for files in library path
  17041. -# which responds to the $file_magic_cmd with a given extended regex.
  17042. -# If you have `file' or equivalent on your system and you're not sure
  17043. -# whether `pass_all' will *always* work, you probably want this one.
  17044. -
  17045. -case $host_os in
  17046. -aix[4-9]*)
  17047. - lt_cv_deplibs_check_method=pass_all
  17048. - ;;
  17049. + if test -n "$ac_ct_DUMPBIN"; then
  17050. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  17051. +else
  17052. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17053. +for as_dir in $PATH
  17054. +do
  17055. + IFS=$as_save_IFS
  17056. + test -z "$as_dir" && as_dir=.
  17057. + for ac_exec_ext in '' $ac_executable_extensions; do
  17058. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17059. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  17060. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17061. + break 2
  17062. + fi
  17063. +done
  17064. + done
  17065. +IFS=$as_save_IFS
  17066. -beos*)
  17067. - lt_cv_deplibs_check_method=pass_all
  17068. - ;;
  17069. +fi
  17070. +fi
  17071. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  17072. +if test -n "$ac_ct_DUMPBIN"; then
  17073. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  17074. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  17075. +else
  17076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17077. +$as_echo "no" >&6; }
  17078. +fi
  17079. -bsdi[45]*)
  17080. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  17081. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  17082. - lt_cv_file_magic_test_file=/shlib/libc.so
  17083. - ;;
  17084. -cygwin*)
  17085. - # func_win32_libid is a shell function defined in ltmain.sh
  17086. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17087. - lt_cv_file_magic_cmd='func_win32_libid'
  17088. - ;;
  17089. + test -n "$ac_ct_DUMPBIN" && break
  17090. +done
  17091. -mingw* | pw32*)
  17092. - # Base MSYS/MinGW do not provide the 'file' command needed by
  17093. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  17094. - # unless we find 'file', for example because we are cross-compiling.
  17095. - if ( file / ) >/dev/null 2>&1; then
  17096. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17097. - lt_cv_file_magic_cmd='func_win32_libid'
  17098. + if test "x$ac_ct_DUMPBIN" = x; then
  17099. + DUMPBIN=":"
  17100. else
  17101. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  17102. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  17103. + case $cross_compiling:$ac_tool_warned in
  17104. +yes:)
  17105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17106. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17107. +ac_tool_warned=yes ;;
  17108. +esac
  17109. + DUMPBIN=$ac_ct_DUMPBIN
  17110. fi
  17111. - ;;
  17112. +fi
  17113. -darwin* | rhapsody*)
  17114. - lt_cv_deplibs_check_method=pass_all
  17115. - ;;
  17116. -freebsd* | dragonfly*)
  17117. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  17118. - case $host_cpu in
  17119. - i*86 )
  17120. - # Not sure whether the presence of OpenBSD here was a mistake.
  17121. - # Let's accept both of them until this is cleared up.
  17122. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  17123. - lt_cv_file_magic_cmd=/usr/bin/file
  17124. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  17125. - ;;
  17126. - esac
  17127. - else
  17128. - lt_cv_deplibs_check_method=pass_all
  17129. + if test "$DUMPBIN" != ":"; then
  17130. + NM="$DUMPBIN"
  17131. fi
  17132. - ;;
  17133. +fi
  17134. +test -z "$NM" && NM=nm
  17135. -gnu*)
  17136. - lt_cv_deplibs_check_method=pass_all
  17137. - ;;
  17138. -hpux10.20* | hpux11*)
  17139. - lt_cv_file_magic_cmd=/usr/bin/file
  17140. - case $host_cpu in
  17141. - ia64*)
  17142. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  17143. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  17144. - ;;
  17145. - hppa*64*)
  17146. - 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]'
  17147. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  17148. - ;;
  17149. - *)
  17150. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  17151. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  17152. - ;;
  17153. - esac
  17154. - ;;
  17155. -interix[3-9]*)
  17156. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  17157. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  17158. - ;;
  17159. -irix5* | irix6* | nonstopux*)
  17160. - case $LD in
  17161. - *-32|*"-32 ") libmagic=32-bit;;
  17162. - *-n32|*"-n32 ") libmagic=N32;;
  17163. - *-64|*"-64 ") libmagic=64-bit;;
  17164. - *) libmagic=never-match;;
  17165. - esac
  17166. - lt_cv_deplibs_check_method=pass_all
  17167. - ;;
  17168. -# This must be Linux ELF.
  17169. -linux* | k*bsd*-gnu)
  17170. - lt_cv_deplibs_check_method=pass_all
  17171. - ;;
  17172. -netbsd* | netbsdelf*-gnu)
  17173. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  17174. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17175. - else
  17176. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  17177. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  17178. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  17179. +if test "${lt_cv_nm_interface+set}" = set; then :
  17180. + $as_echo_n "(cached) " >&6
  17181. +else
  17182. + lt_cv_nm_interface="BSD nm"
  17183. + echo "int some_variable = 0;" > conftest.$ac_ext
  17184. + (eval echo "\"\$as_me:4417: $ac_compile\"" >&5)
  17185. + (eval "$ac_compile" 2>conftest.err)
  17186. + cat conftest.err >&5
  17187. + (eval echo "\"\$as_me:4420: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  17188. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  17189. + cat conftest.err >&5
  17190. + (eval echo "\"\$as_me:4423: output\"" >&5)
  17191. + cat conftest.out >&5
  17192. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  17193. + lt_cv_nm_interface="MS dumpbin"
  17194. fi
  17195. - ;;
  17196. + rm -f conftest*
  17197. +fi
  17198. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  17199. +$as_echo "$lt_cv_nm_interface" >&6; }
  17200. -newos6*)
  17201. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  17202. - lt_cv_file_magic_cmd=/usr/bin/file
  17203. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  17204. - ;;
  17205. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  17206. +$as_echo_n "checking whether ln -s works... " >&6; }
  17207. +LN_S=$as_ln_s
  17208. +if test "$LN_S" = "ln -s"; then
  17209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17210. +$as_echo "yes" >&6; }
  17211. +else
  17212. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  17213. +$as_echo "no, using $LN_S" >&6; }
  17214. +fi
  17215. -nto-qnx*)
  17216. - lt_cv_deplibs_check_method=unknown
  17217. - ;;
  17218. +# find the maximum length of command line arguments
  17219. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  17220. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  17221. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  17222. + $as_echo_n "(cached) " >&6
  17223. +else
  17224. + i=0
  17225. + teststring="ABCD"
  17226. -openbsd*)
  17227. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17228. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  17229. - else
  17230. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17231. - fi
  17232. - ;;
  17233. + case $build_os in
  17234. + msdosdjgpp*)
  17235. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  17236. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  17237. + # during glob expansion). Even if it were fixed, the result of this
  17238. + # check would be larger than it should be.
  17239. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  17240. + ;;
  17241. -osf3* | osf4* | osf5*)
  17242. - lt_cv_deplibs_check_method=pass_all
  17243. - ;;
  17244. + gnu*)
  17245. + # Under GNU Hurd, this test is not required because there is
  17246. + # no limit to the length of command line arguments.
  17247. + # Libtool will interpret -1 as no limit whatsoever
  17248. + lt_cv_sys_max_cmd_len=-1;
  17249. + ;;
  17250. -rdos*)
  17251. - lt_cv_deplibs_check_method=pass_all
  17252. - ;;
  17253. + cygwin* | mingw* | cegcc*)
  17254. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  17255. + # about 5 minutes as the teststring grows exponentially.
  17256. + # Worse, since 9x/ME are not pre-emptively multitasking,
  17257. + # you end up with a "frozen" computer, even though with patience
  17258. + # the test eventually succeeds (with a max line length of 256k).
  17259. + # Instead, let's just punt: use the minimum linelength reported by
  17260. + # all of the supported platforms: 8192 (on NT/2K/XP).
  17261. + lt_cv_sys_max_cmd_len=8192;
  17262. + ;;
  17263. -solaris*)
  17264. - lt_cv_deplibs_check_method=pass_all
  17265. - ;;
  17266. + amigaos*)
  17267. + # On AmigaOS with pdksh, this test takes hours, literally.
  17268. + # So we just punt and use a minimum line length of 8192.
  17269. + lt_cv_sys_max_cmd_len=8192;
  17270. + ;;
  17271. -sysv4 | sysv4.3*)
  17272. - case $host_vendor in
  17273. - motorola)
  17274. - 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]'
  17275. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  17276. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  17277. + # This has been around since 386BSD, at least. Likely further.
  17278. + if test -x /sbin/sysctl; then
  17279. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  17280. + elif test -x /usr/sbin/sysctl; then
  17281. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  17282. + else
  17283. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  17284. + fi
  17285. + # And add a safety zone
  17286. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17287. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17288. ;;
  17289. - ncr)
  17290. - lt_cv_deplibs_check_method=pass_all
  17291. +
  17292. + interix*)
  17293. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  17294. + lt_cv_sys_max_cmd_len=196608
  17295. ;;
  17296. - sequent)
  17297. - lt_cv_file_magic_cmd='/bin/file'
  17298. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  17299. +
  17300. + osf*)
  17301. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  17302. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  17303. + # nice to cause kernel panics so lets avoid the loop below.
  17304. + # First set a reasonable default.
  17305. + lt_cv_sys_max_cmd_len=16384
  17306. + #
  17307. + if test -x /sbin/sysconfig; then
  17308. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  17309. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  17310. + esac
  17311. + fi
  17312. ;;
  17313. - sni)
  17314. - lt_cv_file_magic_cmd='/bin/file'
  17315. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  17316. - lt_cv_file_magic_test_file=/lib/libc.so
  17317. + sco3.2v5*)
  17318. + lt_cv_sys_max_cmd_len=102400
  17319. ;;
  17320. - siemens)
  17321. - lt_cv_deplibs_check_method=pass_all
  17322. + sysv5* | sco5v6* | sysv4.2uw2*)
  17323. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  17324. + if test -n "$kargmax"; then
  17325. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  17326. + else
  17327. + lt_cv_sys_max_cmd_len=32768
  17328. + fi
  17329. ;;
  17330. - pc)
  17331. - lt_cv_deplibs_check_method=pass_all
  17332. + *)
  17333. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  17334. + if test -n "$lt_cv_sys_max_cmd_len"; then
  17335. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17336. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17337. + else
  17338. + # Make teststring a little bigger before we do anything with it.
  17339. + # a 1K string should be a reasonable start.
  17340. + for i in 1 2 3 4 5 6 7 8 ; do
  17341. + teststring=$teststring$teststring
  17342. + done
  17343. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  17344. + # If test is not a shell built-in, we'll probably end up computing a
  17345. + # maximum length that is only half of the actual maximum length, but
  17346. + # we can't tell.
  17347. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  17348. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  17349. + test $i != 17 # 1/2 MB should be enough
  17350. + do
  17351. + i=`expr $i + 1`
  17352. + teststring=$teststring$teststring
  17353. + done
  17354. + # Only check the string length outside the loop.
  17355. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  17356. + teststring=
  17357. + # Add a significant safety factor because C++ compilers can tack on
  17358. + # massive amounts of additional arguments before passing them to the
  17359. + # linker. It appears as though 1/2 is a usable value.
  17360. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  17361. + fi
  17362. ;;
  17363. esac
  17364. - ;;
  17365. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17366. - lt_cv_deplibs_check_method=pass_all
  17367. - ;;
  17368. -esac
  17369. +fi
  17370. +if test -n $lt_cv_sys_max_cmd_len ; then
  17371. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  17372. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  17373. +else
  17374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17375. +$as_echo "none" >&6; }
  17376. fi
  17377. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  17378. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  17379. -file_magic_cmd=$lt_cv_file_magic_cmd
  17380. -deplibs_check_method=$lt_cv_deplibs_check_method
  17381. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  17382. +max_cmd_len=$lt_cv_sys_max_cmd_len
  17383. -# If no C compiler was specified, use CC.
  17384. -LTCC=${LTCC-"$CC"}
  17385. -# If no C compiler flags were specified, use CFLAGS.
  17386. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17387. -# Allow CC to be a program name with arguments.
  17388. -compiler=$CC
  17389. +: ${CP="cp -f"}
  17390. +: ${MV="mv -f"}
  17391. +: ${RM="rm -f"}
  17392. +
  17393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  17394. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  17395. +# Try some XSI features
  17396. +xsi_shell=no
  17397. +( _lt_dummy="a/b/c"
  17398. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  17399. + = c,a/b,, \
  17400. + && eval 'test $(( 1 + 1 )) -eq 2 \
  17401. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  17402. + && xsi_shell=yes
  17403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  17404. +$as_echo "$xsi_shell" >&6; }
  17405. +
  17406. +
  17407. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  17408. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  17409. +lt_shell_append=no
  17410. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  17411. + >/dev/null 2>&1 \
  17412. + && lt_shell_append=yes
  17413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  17414. +$as_echo "$lt_shell_append" >&6; }
  17415. -# Check whether --enable-libtool-lock was given.
  17416. -if test "${enable_libtool_lock+set}" = set; then
  17417. - enableval=$enable_libtool_lock;
  17418. +
  17419. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17420. + lt_unset=unset
  17421. +else
  17422. + lt_unset=false
  17423. fi
  17424. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  17425. -# Some flags need to be propagated to the compiler or linker for good
  17426. -# libtool support.
  17427. -case $host in
  17428. -ia64-*-hpux*)
  17429. - # Find out which ABI we are using.
  17430. - echo 'int i;' > conftest.$ac_ext
  17431. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17432. - (eval $ac_compile) 2>&5
  17433. - ac_status=$?
  17434. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17435. - (exit $ac_status); }; then
  17436. - case `/usr/bin/file conftest.$ac_objext` in
  17437. - *ELF-32*)
  17438. - HPUX_IA64_MODE="32"
  17439. - ;;
  17440. - *ELF-64*)
  17441. - HPUX_IA64_MODE="64"
  17442. - ;;
  17443. - esac
  17444. - fi
  17445. - rm -rf conftest*
  17446. - ;;
  17447. -*-*-irix6*)
  17448. - # Find out which ABI we are using.
  17449. - echo '#line 4363 "configure"' > conftest.$ac_ext
  17450. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17451. - (eval $ac_compile) 2>&5
  17452. - ac_status=$?
  17453. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17454. - (exit $ac_status); }; then
  17455. - if test "$lt_cv_prog_gnu_ld" = yes; then
  17456. - case `/usr/bin/file conftest.$ac_objext` in
  17457. - *32-bit*)
  17458. - LD="${LD-ld} -melf32bsmip"
  17459. - ;;
  17460. - *N32*)
  17461. - LD="${LD-ld} -melf32bmipn32"
  17462. - ;;
  17463. - *64-bit*)
  17464. - LD="${LD-ld} -melf64bmip"
  17465. - ;;
  17466. - esac
  17467. - else
  17468. - case `/usr/bin/file conftest.$ac_objext` in
  17469. - *32-bit*)
  17470. - LD="${LD-ld} -32"
  17471. - ;;
  17472. - *N32*)
  17473. - LD="${LD-ld} -n32"
  17474. - ;;
  17475. - *64-bit*)
  17476. - LD="${LD-ld} -64"
  17477. - ;;
  17478. - esac
  17479. - fi
  17480. - fi
  17481. - rm -rf conftest*
  17482. - ;;
  17483. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  17484. -s390*-*linux*|sparc*-*linux*)
  17485. - # Find out which ABI we are using.
  17486. - echo 'int i;' > conftest.$ac_ext
  17487. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17488. - (eval $ac_compile) 2>&5
  17489. - ac_status=$?
  17490. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17491. - (exit $ac_status); }; then
  17492. - case `/usr/bin/file conftest.o` in
  17493. - *32-bit*)
  17494. - case $host in
  17495. - x86_64-*kfreebsd*-gnu)
  17496. - LD="${LD-ld} -m elf_i386_fbsd"
  17497. - ;;
  17498. - x86_64-*linux*)
  17499. - LD="${LD-ld} -m elf_i386"
  17500. - ;;
  17501. - ppc64-*linux*|powerpc64-*linux*)
  17502. - LD="${LD-ld} -m elf32ppclinux"
  17503. - ;;
  17504. - s390x-*linux*)
  17505. - LD="${LD-ld} -m elf_s390"
  17506. - ;;
  17507. - sparc64-*linux*)
  17508. - LD="${LD-ld} -m elf32_sparc"
  17509. - ;;
  17510. - esac
  17511. - ;;
  17512. - *64-bit*)
  17513. - case $host in
  17514. - x86_64-*kfreebsd*-gnu)
  17515. - LD="${LD-ld} -m elf_x86_64_fbsd"
  17516. - ;;
  17517. - x86_64-*linux*)
  17518. - LD="${LD-ld} -m elf_x86_64"
  17519. - ;;
  17520. - ppc*-*linux*|powerpc*-*linux*)
  17521. - LD="${LD-ld} -m elf64ppc"
  17522. - ;;
  17523. - s390*-*linux*)
  17524. - LD="${LD-ld} -m elf64_s390"
  17525. - ;;
  17526. - sparc*-*linux*)
  17527. - LD="${LD-ld} -m elf64_sparc"
  17528. - ;;
  17529. - esac
  17530. - ;;
  17531. - esac
  17532. - fi
  17533. - rm -rf conftest*
  17534. +
  17535. +
  17536. +# test EBCDIC or ASCII
  17537. +case `echo X|tr X '\101'` in
  17538. + A) # ASCII based system
  17539. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  17540. + lt_SP2NL='tr \040 \012'
  17541. + lt_NL2SP='tr \015\012 \040\040'
  17542. + ;;
  17543. + *) # EBCDIC based system
  17544. + lt_SP2NL='tr \100 \n'
  17545. + lt_NL2SP='tr \r\n \100\100'
  17546. ;;
  17547. +esac
  17548. -*-*-sco3.2v5*)
  17549. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  17550. - SAVE_CFLAGS="$CFLAGS"
  17551. - CFLAGS="$CFLAGS -belf"
  17552. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  17553. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  17554. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  17555. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17556. -else
  17557. - ac_ext=c
  17558. -ac_cpp='$CPP $CPPFLAGS'
  17559. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17560. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17561. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17562. - cat >conftest.$ac_ext <<_ACEOF
  17563. -/* confdefs.h. */
  17564. -_ACEOF
  17565. -cat confdefs.h >>conftest.$ac_ext
  17566. -cat >>conftest.$ac_ext <<_ACEOF
  17567. -/* end confdefs.h. */
  17568. -int
  17569. -main ()
  17570. -{
  17571. - ;
  17572. - return 0;
  17573. -}
  17574. -_ACEOF
  17575. -rm -f conftest.$ac_objext conftest$ac_exeext
  17576. -if { (ac_try="$ac_link"
  17577. -case "(($ac_try" in
  17578. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17579. - *) ac_try_echo=$ac_try;;
  17580. -esac
  17581. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17582. - (eval "$ac_link") 2>conftest.er1
  17583. - ac_status=$?
  17584. - grep -v '^ *+' conftest.er1 >conftest.err
  17585. - rm -f conftest.er1
  17586. - cat conftest.err >&5
  17587. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17588. - (exit $ac_status); } && {
  17589. - test -z "$ac_c_werror_flag" ||
  17590. - test ! -s conftest.err
  17591. - } && test -s conftest$ac_exeext &&
  17592. - $as_test_x conftest$ac_exeext; then
  17593. - lt_cv_cc_needs_belf=yes
  17594. -else
  17595. - echo "$as_me: failed program was:" >&5
  17596. -sed 's/^/| /' conftest.$ac_ext >&5
  17597. - lt_cv_cc_needs_belf=no
  17598. -fi
  17599. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17600. - conftest$ac_exeext conftest.$ac_ext
  17601. - ac_ext=c
  17602. -ac_cpp='$CPP $CPPFLAGS'
  17603. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17604. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17605. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17606. -fi
  17607. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  17608. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  17609. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  17610. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  17611. - CFLAGS="$SAVE_CFLAGS"
  17612. - fi
  17613. - ;;
  17614. -sparc*-*solaris*)
  17615. - # Find out which ABI we are using.
  17616. - echo 'int i;' > conftest.$ac_ext
  17617. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17618. - (eval $ac_compile) 2>&5
  17619. - ac_status=$?
  17620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17621. - (exit $ac_status); }; then
  17622. - case `/usr/bin/file conftest.o` in
  17623. - *64-bit*)
  17624. - case $lt_cv_prog_gnu_ld in
  17625. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  17626. - *)
  17627. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  17628. - LD="${LD-ld} -64"
  17629. - fi
  17630. - ;;
  17631. - esac
  17632. - ;;
  17633. - esac
  17634. - fi
  17635. - rm -rf conftest*
  17636. - ;;
  17637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  17638. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17639. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  17640. + $as_echo_n "(cached) " >&6
  17641. +else
  17642. + lt_cv_ld_reload_flag='-r'
  17643. +fi
  17644. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  17645. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17646. +reload_flag=$lt_cv_ld_reload_flag
  17647. +case $reload_flag in
  17648. +"" | " "*) ;;
  17649. +*) reload_flag=" $reload_flag" ;;
  17650. +esac
  17651. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17652. +case $host_os in
  17653. + darwin*)
  17654. + if test "$GCC" = yes; then
  17655. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  17656. + else
  17657. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17658. + fi
  17659. + ;;
  17660. esac
  17661. -need_locks="$enable_libtool_lock"
  17662. -ac_ext=c
  17663. -ac_cpp='$CPP $CPPFLAGS'
  17664. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17665. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17666. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17667. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17668. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  17669. -# On Suns, sometimes $CPP names a directory.
  17670. -if test -n "$CPP" && test -d "$CPP"; then
  17671. - CPP=
  17672. -fi
  17673. -if test -z "$CPP"; then
  17674. - if test "${ac_cv_prog_CPP+set}" = set; then
  17675. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17676. -else
  17677. - # Double quotes because CPP needs to be expanded
  17678. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17679. - do
  17680. - ac_preproc_ok=false
  17681. -for ac_c_preproc_warn_flag in '' yes
  17682. -do
  17683. - # Use a header file that comes with gcc, so configuring glibc
  17684. - # with a fresh cross-compiler works.
  17685. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17686. - # <limits.h> exists even on freestanding compilers.
  17687. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17688. - # not just through cpp. "Syntax error" is here to catch this case.
  17689. - cat >conftest.$ac_ext <<_ACEOF
  17690. -/* confdefs.h. */
  17691. -_ACEOF
  17692. -cat confdefs.h >>conftest.$ac_ext
  17693. -cat >>conftest.$ac_ext <<_ACEOF
  17694. -/* end confdefs.h. */
  17695. -#ifdef __STDC__
  17696. -# include <limits.h>
  17697. -#else
  17698. -# include <assert.h>
  17699. -#endif
  17700. - Syntax error
  17701. -_ACEOF
  17702. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17703. -case "(($ac_try" in
  17704. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17705. - *) ac_try_echo=$ac_try;;
  17706. -esac
  17707. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17708. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17709. - ac_status=$?
  17710. - grep -v '^ *+' conftest.er1 >conftest.err
  17711. - rm -f conftest.er1
  17712. - cat conftest.err >&5
  17713. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17714. - (exit $ac_status); } >/dev/null && {
  17715. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17716. - test ! -s conftest.err
  17717. - }; then
  17718. - :
  17719. -else
  17720. - echo "$as_me: failed program was:" >&5
  17721. -sed 's/^/| /' conftest.$ac_ext >&5
  17722. - # Broken: fails on valid input.
  17723. -continue
  17724. -fi
  17725. -rm -f conftest.err conftest.$ac_ext
  17726. - # OK, works on sane cases. Now check whether nonexistent headers
  17727. - # can be detected and how.
  17728. - cat >conftest.$ac_ext <<_ACEOF
  17729. -/* confdefs.h. */
  17730. -_ACEOF
  17731. -cat confdefs.h >>conftest.$ac_ext
  17732. -cat >>conftest.$ac_ext <<_ACEOF
  17733. -/* end confdefs.h. */
  17734. -#include <ac_nonexistent.h>
  17735. -_ACEOF
  17736. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17737. -case "(($ac_try" in
  17738. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17739. - *) ac_try_echo=$ac_try;;
  17740. -esac
  17741. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17742. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17743. - ac_status=$?
  17744. - grep -v '^ *+' conftest.er1 >conftest.err
  17745. - rm -f conftest.er1
  17746. - cat conftest.err >&5
  17747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748. - (exit $ac_status); } >/dev/null && {
  17749. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17750. - test ! -s conftest.err
  17751. - }; then
  17752. - # Broken: success on invalid input.
  17753. -continue
  17754. -else
  17755. - echo "$as_me: failed program was:" >&5
  17756. -sed 's/^/| /' conftest.$ac_ext >&5
  17757. - # Passes both tests.
  17758. -ac_preproc_ok=:
  17759. -break
  17760. -fi
  17761. -rm -f conftest.err conftest.$ac_ext
  17762. +if test -n "$ac_tool_prefix"; then
  17763. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  17764. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  17765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17766. +$as_echo_n "checking for $ac_word... " >&6; }
  17767. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  17768. + $as_echo_n "(cached) " >&6
  17769. +else
  17770. + if test -n "$OBJDUMP"; then
  17771. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  17772. +else
  17773. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17774. +for as_dir in $PATH
  17775. +do
  17776. + IFS=$as_save_IFS
  17777. + test -z "$as_dir" && as_dir=.
  17778. + for ac_exec_ext in '' $ac_executable_extensions; do
  17779. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17780. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  17781. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17782. + break 2
  17783. + fi
  17784. done
  17785. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17786. -rm -f conftest.err conftest.$ac_ext
  17787. -if $ac_preproc_ok; then
  17788. - break
  17789. + done
  17790. +IFS=$as_save_IFS
  17791. +
  17792. +fi
  17793. +fi
  17794. +OBJDUMP=$ac_cv_prog_OBJDUMP
  17795. +if test -n "$OBJDUMP"; then
  17796. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  17797. +$as_echo "$OBJDUMP" >&6; }
  17798. +else
  17799. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17800. +$as_echo "no" >&6; }
  17801. fi
  17802. - done
  17803. - ac_cv_prog_CPP=$CPP
  17804. fi
  17805. - CPP=$ac_cv_prog_CPP
  17806. +if test -z "$ac_cv_prog_OBJDUMP"; then
  17807. + ac_ct_OBJDUMP=$OBJDUMP
  17808. + # Extract the first word of "objdump", so it can be a program name with args.
  17809. +set dummy objdump; ac_word=$2
  17810. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17811. +$as_echo_n "checking for $ac_word... " >&6; }
  17812. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  17813. + $as_echo_n "(cached) " >&6
  17814. else
  17815. - ac_cv_prog_CPP=$CPP
  17816. -fi
  17817. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  17818. -echo "${ECHO_T}$CPP" >&6; }
  17819. -ac_preproc_ok=false
  17820. -for ac_c_preproc_warn_flag in '' yes
  17821. + if test -n "$ac_ct_OBJDUMP"; then
  17822. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  17823. +else
  17824. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17825. +for as_dir in $PATH
  17826. do
  17827. - # Use a header file that comes with gcc, so configuring glibc
  17828. - # with a fresh cross-compiler works.
  17829. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17830. - # <limits.h> exists even on freestanding compilers.
  17831. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17832. - # not just through cpp. "Syntax error" is here to catch this case.
  17833. - cat >conftest.$ac_ext <<_ACEOF
  17834. -/* confdefs.h. */
  17835. -_ACEOF
  17836. -cat confdefs.h >>conftest.$ac_ext
  17837. -cat >>conftest.$ac_ext <<_ACEOF
  17838. -/* end confdefs.h. */
  17839. -#ifdef __STDC__
  17840. -# include <limits.h>
  17841. -#else
  17842. -# include <assert.h>
  17843. -#endif
  17844. - Syntax error
  17845. -_ACEOF
  17846. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17847. -case "(($ac_try" in
  17848. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17849. - *) ac_try_echo=$ac_try;;
  17850. -esac
  17851. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17852. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17853. - ac_status=$?
  17854. - grep -v '^ *+' conftest.er1 >conftest.err
  17855. - rm -f conftest.er1
  17856. - cat conftest.err >&5
  17857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17858. - (exit $ac_status); } >/dev/null && {
  17859. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17860. - test ! -s conftest.err
  17861. - }; then
  17862. - :
  17863. -else
  17864. - echo "$as_me: failed program was:" >&5
  17865. -sed 's/^/| /' conftest.$ac_ext >&5
  17866. + IFS=$as_save_IFS
  17867. + test -z "$as_dir" && as_dir=.
  17868. + for ac_exec_ext in '' $ac_executable_extensions; do
  17869. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17870. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  17871. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17872. + break 2
  17873. + fi
  17874. +done
  17875. + done
  17876. +IFS=$as_save_IFS
  17877. - # Broken: fails on valid input.
  17878. -continue
  17879. fi
  17880. -
  17881. -rm -f conftest.err conftest.$ac_ext
  17882. -
  17883. - # OK, works on sane cases. Now check whether nonexistent headers
  17884. - # can be detected and how.
  17885. - cat >conftest.$ac_ext <<_ACEOF
  17886. -/* confdefs.h. */
  17887. -_ACEOF
  17888. -cat confdefs.h >>conftest.$ac_ext
  17889. -cat >>conftest.$ac_ext <<_ACEOF
  17890. -/* end confdefs.h. */
  17891. -#include <ac_nonexistent.h>
  17892. -_ACEOF
  17893. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17894. -case "(($ac_try" in
  17895. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17896. - *) ac_try_echo=$ac_try;;
  17897. -esac
  17898. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17899. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17900. - ac_status=$?
  17901. - grep -v '^ *+' conftest.er1 >conftest.err
  17902. - rm -f conftest.er1
  17903. - cat conftest.err >&5
  17904. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17905. - (exit $ac_status); } >/dev/null && {
  17906. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17907. - test ! -s conftest.err
  17908. - }; then
  17909. - # Broken: success on invalid input.
  17910. -continue
  17911. -else
  17912. - echo "$as_me: failed program was:" >&5
  17913. -sed 's/^/| /' conftest.$ac_ext >&5
  17914. -
  17915. - # Passes both tests.
  17916. -ac_preproc_ok=:
  17917. -break
  17918. fi
  17919. -
  17920. -rm -f conftest.err conftest.$ac_ext
  17921. -
  17922. -done
  17923. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17924. -rm -f conftest.err conftest.$ac_ext
  17925. -if $ac_preproc_ok; then
  17926. - :
  17927. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  17928. +if test -n "$ac_ct_OBJDUMP"; then
  17929. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  17930. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  17931. else
  17932. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  17933. -See \`config.log' for more details." >&5
  17934. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  17935. -See \`config.log' for more details." >&2;}
  17936. - { (exit 1); exit 1; }; }
  17937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17938. +$as_echo "no" >&6; }
  17939. fi
  17940. -ac_ext=c
  17941. -ac_cpp='$CPP $CPPFLAGS'
  17942. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17943. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17944. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17945. -
  17946. -
  17947. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17948. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17949. -if test "${ac_cv_header_stdc+set}" = set; then
  17950. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17951. -else
  17952. - cat >conftest.$ac_ext <<_ACEOF
  17953. -/* confdefs.h. */
  17954. -_ACEOF
  17955. -cat confdefs.h >>conftest.$ac_ext
  17956. -cat >>conftest.$ac_ext <<_ACEOF
  17957. -/* end confdefs.h. */
  17958. -#include <stdlib.h>
  17959. -#include <stdarg.h>
  17960. -#include <string.h>
  17961. -#include <float.h>
  17962. -
  17963. -int
  17964. -main ()
  17965. -{
  17966. -
  17967. - ;
  17968. - return 0;
  17969. -}
  17970. -_ACEOF
  17971. -rm -f conftest.$ac_objext
  17972. -if { (ac_try="$ac_compile"
  17973. -case "(($ac_try" in
  17974. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17975. - *) ac_try_echo=$ac_try;;
  17976. + if test "x$ac_ct_OBJDUMP" = x; then
  17977. + OBJDUMP="false"
  17978. + else
  17979. + case $cross_compiling:$ac_tool_warned in
  17980. +yes:)
  17981. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17982. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17983. +ac_tool_warned=yes ;;
  17984. esac
  17985. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17986. - (eval "$ac_compile") 2>conftest.er1
  17987. - ac_status=$?
  17988. - grep -v '^ *+' conftest.er1 >conftest.err
  17989. - rm -f conftest.er1
  17990. - cat conftest.err >&5
  17991. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17992. - (exit $ac_status); } && {
  17993. - test -z "$ac_c_werror_flag" ||
  17994. - test ! -s conftest.err
  17995. - } && test -s conftest.$ac_objext; then
  17996. - ac_cv_header_stdc=yes
  17997. -else
  17998. - echo "$as_me: failed program was:" >&5
  17999. -sed 's/^/| /' conftest.$ac_ext >&5
  18000. -
  18001. - ac_cv_header_stdc=no
  18002. -fi
  18003. -
  18004. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18005. -
  18006. -if test $ac_cv_header_stdc = yes; then
  18007. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18008. - cat >conftest.$ac_ext <<_ACEOF
  18009. -/* confdefs.h. */
  18010. -_ACEOF
  18011. -cat confdefs.h >>conftest.$ac_ext
  18012. -cat >>conftest.$ac_ext <<_ACEOF
  18013. -/* end confdefs.h. */
  18014. -#include <string.h>
  18015. -
  18016. -_ACEOF
  18017. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18018. - $EGREP "memchr" >/dev/null 2>&1; then
  18019. - :
  18020. + OBJDUMP=$ac_ct_OBJDUMP
  18021. + fi
  18022. else
  18023. - ac_cv_header_stdc=no
  18024. -fi
  18025. -rm -f conftest*
  18026. -
  18027. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  18028. fi
  18029. -if test $ac_cv_header_stdc = yes; then
  18030. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18031. - cat >conftest.$ac_ext <<_ACEOF
  18032. -/* confdefs.h. */
  18033. -_ACEOF
  18034. -cat confdefs.h >>conftest.$ac_ext
  18035. -cat >>conftest.$ac_ext <<_ACEOF
  18036. -/* end confdefs.h. */
  18037. -#include <stdlib.h>
  18038. +test -z "$OBJDUMP" && OBJDUMP=objdump
  18039. -_ACEOF
  18040. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18041. - $EGREP "free" >/dev/null 2>&1; then
  18042. - :
  18043. -else
  18044. - ac_cv_header_stdc=no
  18045. -fi
  18046. -rm -f conftest*
  18047. -fi
  18048. -if test $ac_cv_header_stdc = yes; then
  18049. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18050. - if test "$cross_compiling" = yes; then
  18051. - :
  18052. -else
  18053. - cat >conftest.$ac_ext <<_ACEOF
  18054. -/* confdefs.h. */
  18055. -_ACEOF
  18056. -cat confdefs.h >>conftest.$ac_ext
  18057. -cat >>conftest.$ac_ext <<_ACEOF
  18058. -/* end confdefs.h. */
  18059. -#include <ctype.h>
  18060. -#include <stdlib.h>
  18061. -#if ((' ' & 0x0FF) == 0x020)
  18062. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18063. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18064. -#else
  18065. -# define ISLOWER(c) \
  18066. - (('a' <= (c) && (c) <= 'i') \
  18067. - || ('j' <= (c) && (c) <= 'r') \
  18068. - || ('s' <= (c) && (c) <= 'z'))
  18069. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18070. -#endif
  18071. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18072. -int
  18073. -main ()
  18074. -{
  18075. - int i;
  18076. - for (i = 0; i < 256; i++)
  18077. - if (XOR (islower (i), ISLOWER (i))
  18078. - || toupper (i) != TOUPPER (i))
  18079. - return 2;
  18080. - return 0;
  18081. -}
  18082. -_ACEOF
  18083. -rm -f conftest$ac_exeext
  18084. -if { (ac_try="$ac_link"
  18085. -case "(($ac_try" in
  18086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18087. - *) ac_try_echo=$ac_try;;
  18088. -esac
  18089. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18090. - (eval "$ac_link") 2>&5
  18091. - ac_status=$?
  18092. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18093. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18094. - { (case "(($ac_try" in
  18095. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18096. - *) ac_try_echo=$ac_try;;
  18097. -esac
  18098. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18099. - (eval "$ac_try") 2>&5
  18100. - ac_status=$?
  18101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18102. - (exit $ac_status); }; }; then
  18103. - :
  18104. -else
  18105. - echo "$as_me: program exited with status $ac_status" >&5
  18106. -echo "$as_me: failed program was:" >&5
  18107. -sed 's/^/| /' conftest.$ac_ext >&5
  18108. -( exit $ac_status )
  18109. -ac_cv_header_stdc=no
  18110. -fi
  18111. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18112. -fi
  18113. -fi
  18114. -fi
  18115. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18116. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18117. -if test $ac_cv_header_stdc = yes; then
  18118. -cat >>confdefs.h <<\_ACEOF
  18119. -#define STDC_HEADERS 1
  18120. -_ACEOF
  18121. -fi
  18122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  18123. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  18124. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  18125. + $as_echo_n "(cached) " >&6
  18126. +else
  18127. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  18128. +lt_cv_file_magic_test_file=
  18129. +lt_cv_deplibs_check_method='unknown'
  18130. +# Need to set the preceding variable on all platforms that support
  18131. +# interlibrary dependencies.
  18132. +# 'none' -- dependencies not supported.
  18133. +# `unknown' -- same as none, but documents that we really don't know.
  18134. +# 'pass_all' -- all dependencies passed with no checks.
  18135. +# 'test_compile' -- check by making test program.
  18136. +# 'file_magic [[regex]]' -- check by looking for files in library path
  18137. +# which responds to the $file_magic_cmd with a given extended regex.
  18138. +# If you have `file' or equivalent on your system and you're not sure
  18139. +# whether `pass_all' will *always* work, you probably want this one.
  18140. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18141. +case $host_os in
  18142. +aix[4-9]*)
  18143. + lt_cv_deplibs_check_method=pass_all
  18144. + ;;
  18145. +beos*)
  18146. + lt_cv_deplibs_check_method=pass_all
  18147. + ;;
  18148. +bsdi[45]*)
  18149. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  18150. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  18151. + lt_cv_file_magic_test_file=/shlib/libc.so
  18152. + ;;
  18153. +cygwin*)
  18154. + # func_win32_libid is a shell function defined in ltmain.sh
  18155. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18156. + lt_cv_file_magic_cmd='func_win32_libid'
  18157. + ;;
  18158. +mingw* | pw32*)
  18159. + # Base MSYS/MinGW do not provide the 'file' command needed by
  18160. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  18161. + # unless we find 'file', for example because we are cross-compiling.
  18162. + if ( file / ) >/dev/null 2>&1; then
  18163. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18164. + lt_cv_file_magic_cmd='func_win32_libid'
  18165. + else
  18166. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  18167. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  18168. + fi
  18169. + ;;
  18170. +cegcc)
  18171. + # use the weaker test based on 'objdump'. See mingw*.
  18172. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  18173. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  18174. + ;;
  18175. +darwin* | rhapsody*)
  18176. + lt_cv_deplibs_check_method=pass_all
  18177. + ;;
  18178. +freebsd* | dragonfly*)
  18179. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18180. + case $host_cpu in
  18181. + i*86 )
  18182. + # Not sure whether the presence of OpenBSD here was a mistake.
  18183. + # Let's accept both of them until this is cleared up.
  18184. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  18185. + lt_cv_file_magic_cmd=/usr/bin/file
  18186. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  18187. + ;;
  18188. + esac
  18189. + else
  18190. + lt_cv_deplibs_check_method=pass_all
  18191. + fi
  18192. + ;;
  18193. +gnu*)
  18194. + lt_cv_deplibs_check_method=pass_all
  18195. + ;;
  18196. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18197. - inttypes.h stdint.h unistd.h
  18198. -do
  18199. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18200. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  18201. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18202. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18203. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18204. -else
  18205. - cat >conftest.$ac_ext <<_ACEOF
  18206. -/* confdefs.h. */
  18207. -_ACEOF
  18208. -cat confdefs.h >>conftest.$ac_ext
  18209. -cat >>conftest.$ac_ext <<_ACEOF
  18210. -/* end confdefs.h. */
  18211. -$ac_includes_default
  18212. +hpux10.20* | hpux11*)
  18213. + lt_cv_file_magic_cmd=/usr/bin/file
  18214. + case $host_cpu in
  18215. + ia64*)
  18216. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  18217. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  18218. + ;;
  18219. + hppa*64*)
  18220. + 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]'
  18221. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  18222. + ;;
  18223. + *)
  18224. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  18225. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  18226. + ;;
  18227. + esac
  18228. + ;;
  18229. -#include <$ac_header>
  18230. -_ACEOF
  18231. -rm -f conftest.$ac_objext
  18232. -if { (ac_try="$ac_compile"
  18233. -case "(($ac_try" in
  18234. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18235. - *) ac_try_echo=$ac_try;;
  18236. -esac
  18237. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18238. - (eval "$ac_compile") 2>conftest.er1
  18239. - ac_status=$?
  18240. - grep -v '^ *+' conftest.er1 >conftest.err
  18241. - rm -f conftest.er1
  18242. - cat conftest.err >&5
  18243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18244. - (exit $ac_status); } && {
  18245. - test -z "$ac_c_werror_flag" ||
  18246. - test ! -s conftest.err
  18247. - } && test -s conftest.$ac_objext; then
  18248. - eval "$as_ac_Header=yes"
  18249. -else
  18250. - echo "$as_me: failed program was:" >&5
  18251. -sed 's/^/| /' conftest.$ac_ext >&5
  18252. +interix[3-9]*)
  18253. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  18254. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  18255. + ;;
  18256. - eval "$as_ac_Header=no"
  18257. -fi
  18258. +irix5* | irix6* | nonstopux*)
  18259. + case $LD in
  18260. + *-32|*"-32 ") libmagic=32-bit;;
  18261. + *-n32|*"-n32 ") libmagic=N32;;
  18262. + *-64|*"-64 ") libmagic=64-bit;;
  18263. + *) libmagic=never-match;;
  18264. + esac
  18265. + lt_cv_deplibs_check_method=pass_all
  18266. + ;;
  18267. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18268. -fi
  18269. -ac_res=`eval echo '${'$as_ac_Header'}'`
  18270. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  18271. -echo "${ECHO_T}$ac_res" >&6; }
  18272. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18273. - cat >>confdefs.h <<_ACEOF
  18274. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18275. -_ACEOF
  18276. +# This must be Linux ELF.
  18277. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  18278. + lt_cv_deplibs_check_method=pass_all
  18279. + ;;
  18280. -fi
  18281. +netbsd* | netbsdelf*-gnu)
  18282. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18283. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18284. + else
  18285. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  18286. + fi
  18287. + ;;
  18288. -done
  18289. +newos6*)
  18290. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  18291. + lt_cv_file_magic_cmd=/usr/bin/file
  18292. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  18293. + ;;
  18294. +*nto* | *qnx*)
  18295. + lt_cv_deplibs_check_method=pass_all
  18296. + ;;
  18297. +openbsd*)
  18298. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18299. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  18300. + else
  18301. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18302. + fi
  18303. + ;;
  18304. -for ac_header in dlfcn.h
  18305. -do
  18306. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18307. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18308. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18309. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18310. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18311. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18312. -fi
  18313. -ac_res=`eval echo '${'$as_ac_Header'}'`
  18314. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  18315. -echo "${ECHO_T}$ac_res" >&6; }
  18316. -else
  18317. - # Is the header compilable?
  18318. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18319. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18320. -cat >conftest.$ac_ext <<_ACEOF
  18321. -/* confdefs.h. */
  18322. -_ACEOF
  18323. -cat confdefs.h >>conftest.$ac_ext
  18324. -cat >>conftest.$ac_ext <<_ACEOF
  18325. -/* end confdefs.h. */
  18326. -$ac_includes_default
  18327. -#include <$ac_header>
  18328. -_ACEOF
  18329. -rm -f conftest.$ac_objext
  18330. -if { (ac_try="$ac_compile"
  18331. -case "(($ac_try" in
  18332. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18333. - *) ac_try_echo=$ac_try;;
  18334. -esac
  18335. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18336. - (eval "$ac_compile") 2>conftest.er1
  18337. - ac_status=$?
  18338. - grep -v '^ *+' conftest.er1 >conftest.err
  18339. - rm -f conftest.er1
  18340. - cat conftest.err >&5
  18341. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18342. - (exit $ac_status); } && {
  18343. - test -z "$ac_c_werror_flag" ||
  18344. - test ! -s conftest.err
  18345. - } && test -s conftest.$ac_objext; then
  18346. - ac_header_compiler=yes
  18347. -else
  18348. - echo "$as_me: failed program was:" >&5
  18349. -sed 's/^/| /' conftest.$ac_ext >&5
  18350. +osf3* | osf4* | osf5*)
  18351. + lt_cv_deplibs_check_method=pass_all
  18352. + ;;
  18353. - ac_header_compiler=no
  18354. -fi
  18355. +rdos*)
  18356. + lt_cv_deplibs_check_method=pass_all
  18357. + ;;
  18358. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18359. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18360. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  18361. +solaris*)
  18362. + lt_cv_deplibs_check_method=pass_all
  18363. + ;;
  18364. -# Is the header present?
  18365. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18366. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18367. -cat >conftest.$ac_ext <<_ACEOF
  18368. -/* confdefs.h. */
  18369. -_ACEOF
  18370. -cat confdefs.h >>conftest.$ac_ext
  18371. -cat >>conftest.$ac_ext <<_ACEOF
  18372. -/* end confdefs.h. */
  18373. -#include <$ac_header>
  18374. -_ACEOF
  18375. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18376. -case "(($ac_try" in
  18377. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18378. - *) ac_try_echo=$ac_try;;
  18379. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18380. + lt_cv_deplibs_check_method=pass_all
  18381. + ;;
  18382. +
  18383. +sysv4 | sysv4.3*)
  18384. + case $host_vendor in
  18385. + motorola)
  18386. + 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]'
  18387. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  18388. + ;;
  18389. + ncr)
  18390. + lt_cv_deplibs_check_method=pass_all
  18391. + ;;
  18392. + sequent)
  18393. + lt_cv_file_magic_cmd='/bin/file'
  18394. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  18395. + ;;
  18396. + sni)
  18397. + lt_cv_file_magic_cmd='/bin/file'
  18398. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  18399. + lt_cv_file_magic_test_file=/lib/libc.so
  18400. + ;;
  18401. + siemens)
  18402. + lt_cv_deplibs_check_method=pass_all
  18403. + ;;
  18404. + pc)
  18405. + lt_cv_deplibs_check_method=pass_all
  18406. + ;;
  18407. + esac
  18408. + ;;
  18409. +
  18410. +tpf*)
  18411. + lt_cv_deplibs_check_method=pass_all
  18412. + ;;
  18413. esac
  18414. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18415. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18416. - ac_status=$?
  18417. - grep -v '^ *+' conftest.er1 >conftest.err
  18418. - rm -f conftest.er1
  18419. - cat conftest.err >&5
  18420. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18421. - (exit $ac_status); } >/dev/null && {
  18422. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18423. - test ! -s conftest.err
  18424. - }; then
  18425. - ac_header_preproc=yes
  18426. -else
  18427. - echo "$as_me: failed program was:" >&5
  18428. -sed 's/^/| /' conftest.$ac_ext >&5
  18429. - ac_header_preproc=no
  18430. fi
  18431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  18432. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  18433. +file_magic_cmd=$lt_cv_file_magic_cmd
  18434. +deplibs_check_method=$lt_cv_deplibs_check_method
  18435. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  18436. -rm -f conftest.err conftest.$ac_ext
  18437. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18438. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  18439. -# So? What about this header?
  18440. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18441. - yes:no: )
  18442. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18443. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18444. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18445. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18446. - ac_header_preproc=yes
  18447. - ;;
  18448. - no:yes:* )
  18449. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18450. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18451. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18452. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18453. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18454. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18455. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18456. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18457. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18458. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18459. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18460. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18461. - ;;
  18462. -esac
  18463. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  18464. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18465. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18467. -else
  18468. - eval "$as_ac_Header=\$ac_header_preproc"
  18469. -fi
  18470. -ac_res=`eval echo '${'$as_ac_Header'}'`
  18471. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  18472. -echo "${ECHO_T}$ac_res" >&6; }
  18473. -fi
  18474. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18475. - cat >>confdefs.h <<_ACEOF
  18476. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18477. -_ACEOF
  18478. -fi
  18479. -done
  18480. -ac_ext=cpp
  18481. -ac_cpp='$CXXCPP $CPPFLAGS'
  18482. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18483. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18484. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18485. -if test -z "$CXX"; then
  18486. - if test -n "$CCC"; then
  18487. - CXX=$CCC
  18488. - else
  18489. - if test -n "$ac_tool_prefix"; then
  18490. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18491. - do
  18492. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18493. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18494. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18495. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18496. -if test "${ac_cv_prog_CXX+set}" = set; then
  18497. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18498. +
  18499. +
  18500. +
  18501. +
  18502. +
  18503. +if test -n "$ac_tool_prefix"; then
  18504. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  18505. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  18506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18507. +$as_echo_n "checking for $ac_word... " >&6; }
  18508. +if test "${ac_cv_prog_AR+set}" = set; then :
  18509. + $as_echo_n "(cached) " >&6
  18510. else
  18511. - if test -n "$CXX"; then
  18512. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18513. + if test -n "$AR"; then
  18514. + ac_cv_prog_AR="$AR" # Let the user override the test.
  18515. else
  18516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18517. for as_dir in $PATH
  18518. do
  18519. IFS=$as_save_IFS
  18520. test -z "$as_dir" && as_dir=.
  18521. - for ac_exec_ext in '' $ac_executable_extensions; do
  18522. + for ac_exec_ext in '' $ac_executable_extensions; do
  18523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18524. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18525. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18526. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  18527. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18528. break 2
  18529. fi
  18530. done
  18531. -done
  18532. + done
  18533. IFS=$as_save_IFS
  18534. fi
  18535. fi
  18536. -CXX=$ac_cv_prog_CXX
  18537. -if test -n "$CXX"; then
  18538. - { echo "$as_me:$LINENO: result: $CXX" >&5
  18539. -echo "${ECHO_T}$CXX" >&6; }
  18540. +AR=$ac_cv_prog_AR
  18541. +if test -n "$AR"; then
  18542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  18543. +$as_echo "$AR" >&6; }
  18544. else
  18545. - { echo "$as_me:$LINENO: result: no" >&5
  18546. -echo "${ECHO_T}no" >&6; }
  18547. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18548. +$as_echo "no" >&6; }
  18549. fi
  18550. - test -n "$CXX" && break
  18551. - done
  18552. fi
  18553. -if test -z "$CXX"; then
  18554. - ac_ct_CXX=$CXX
  18555. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18556. -do
  18557. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18558. -set dummy $ac_prog; ac_word=$2
  18559. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18560. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18561. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18562. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18563. +if test -z "$ac_cv_prog_AR"; then
  18564. + ac_ct_AR=$AR
  18565. + # Extract the first word of "ar", so it can be a program name with args.
  18566. +set dummy ar; ac_word=$2
  18567. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18568. +$as_echo_n "checking for $ac_word... " >&6; }
  18569. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  18570. + $as_echo_n "(cached) " >&6
  18571. else
  18572. - if test -n "$ac_ct_CXX"; then
  18573. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18574. + if test -n "$ac_ct_AR"; then
  18575. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  18576. else
  18577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18578. for as_dir in $PATH
  18579. do
  18580. IFS=$as_save_IFS
  18581. test -z "$as_dir" && as_dir=.
  18582. - for ac_exec_ext in '' $ac_executable_extensions; do
  18583. + for ac_exec_ext in '' $ac_executable_extensions; do
  18584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18585. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  18586. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18587. + ac_cv_prog_ac_ct_AR="ar"
  18588. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18589. break 2
  18590. fi
  18591. done
  18592. -done
  18593. + done
  18594. IFS=$as_save_IFS
  18595. fi
  18596. fi
  18597. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18598. -if test -n "$ac_ct_CXX"; then
  18599. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18600. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18601. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  18602. +if test -n "$ac_ct_AR"; then
  18603. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  18604. +$as_echo "$ac_ct_AR" >&6; }
  18605. else
  18606. - { echo "$as_me:$LINENO: result: no" >&5
  18607. -echo "${ECHO_T}no" >&6; }
  18608. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18609. +$as_echo "no" >&6; }
  18610. fi
  18611. -
  18612. - test -n "$ac_ct_CXX" && break
  18613. -done
  18614. -
  18615. - if test "x$ac_ct_CXX" = x; then
  18616. - CXX="g++"
  18617. + if test "x$ac_ct_AR" = x; then
  18618. + AR="false"
  18619. else
  18620. case $cross_compiling:$ac_tool_warned in
  18621. yes:)
  18622. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18623. -whose name does not start with the host triplet. If you think this
  18624. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18625. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18626. -whose name does not start with the host triplet. If you think this
  18627. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18629. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18630. ac_tool_warned=yes ;;
  18631. esac
  18632. - CXX=$ac_ct_CXX
  18633. + AR=$ac_ct_AR
  18634. fi
  18635. +else
  18636. + AR="$ac_cv_prog_AR"
  18637. fi
  18638. - fi
  18639. -fi
  18640. -# Provide some information about the compiler.
  18641. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18642. -ac_compiler=`set X $ac_compile; echo $2`
  18643. -{ (ac_try="$ac_compiler --version >&5"
  18644. -case "(($ac_try" in
  18645. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18646. - *) ac_try_echo=$ac_try;;
  18647. -esac
  18648. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18649. - (eval "$ac_compiler --version >&5") 2>&5
  18650. - ac_status=$?
  18651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18652. - (exit $ac_status); }
  18653. -{ (ac_try="$ac_compiler -v >&5"
  18654. -case "(($ac_try" in
  18655. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18656. - *) ac_try_echo=$ac_try;;
  18657. -esac
  18658. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18659. - (eval "$ac_compiler -v >&5") 2>&5
  18660. - ac_status=$?
  18661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18662. - (exit $ac_status); }
  18663. -{ (ac_try="$ac_compiler -V >&5"
  18664. -case "(($ac_try" in
  18665. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18666. - *) ac_try_echo=$ac_try;;
  18667. -esac
  18668. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18669. - (eval "$ac_compiler -V >&5") 2>&5
  18670. - ac_status=$?
  18671. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18672. - (exit $ac_status); }
  18673. +test -z "$AR" && AR=ar
  18674. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  18675. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18676. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18677. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18678. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18679. -else
  18680. - cat >conftest.$ac_ext <<_ACEOF
  18681. -/* confdefs.h. */
  18682. -_ACEOF
  18683. -cat confdefs.h >>conftest.$ac_ext
  18684. -cat >>conftest.$ac_ext <<_ACEOF
  18685. -/* end confdefs.h. */
  18686. -int
  18687. -main ()
  18688. -{
  18689. -#ifndef __GNUC__
  18690. - choke me
  18691. -#endif
  18692. - ;
  18693. - return 0;
  18694. -}
  18695. -_ACEOF
  18696. -rm -f conftest.$ac_objext
  18697. -if { (ac_try="$ac_compile"
  18698. -case "(($ac_try" in
  18699. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18700. - *) ac_try_echo=$ac_try;;
  18701. -esac
  18702. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18703. - (eval "$ac_compile") 2>conftest.er1
  18704. - ac_status=$?
  18705. - grep -v '^ *+' conftest.er1 >conftest.err
  18706. - rm -f conftest.er1
  18707. - cat conftest.err >&5
  18708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18709. - (exit $ac_status); } && {
  18710. - test -z "$ac_cxx_werror_flag" ||
  18711. - test ! -s conftest.err
  18712. - } && test -s conftest.$ac_objext; then
  18713. - ac_compiler_gnu=yes
  18714. -else
  18715. - echo "$as_me: failed program was:" >&5
  18716. -sed 's/^/| /' conftest.$ac_ext >&5
  18717. - ac_compiler_gnu=no
  18718. -fi
  18719. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18720. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18721. -fi
  18722. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18723. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18724. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  18725. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  18726. -ac_save_CXXFLAGS=$CXXFLAGS
  18727. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18728. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18729. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  18730. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18731. -else
  18732. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18733. - ac_cxx_werror_flag=yes
  18734. - ac_cv_prog_cxx_g=no
  18735. - CXXFLAGS="-g"
  18736. - cat >conftest.$ac_ext <<_ACEOF
  18737. -/* confdefs.h. */
  18738. -_ACEOF
  18739. -cat confdefs.h >>conftest.$ac_ext
  18740. -cat >>conftest.$ac_ext <<_ACEOF
  18741. -/* end confdefs.h. */
  18742. -int
  18743. -main ()
  18744. -{
  18745. - ;
  18746. - return 0;
  18747. -}
  18748. -_ACEOF
  18749. -rm -f conftest.$ac_objext
  18750. -if { (ac_try="$ac_compile"
  18751. -case "(($ac_try" in
  18752. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18753. - *) ac_try_echo=$ac_try;;
  18754. -esac
  18755. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18756. - (eval "$ac_compile") 2>conftest.er1
  18757. - ac_status=$?
  18758. - grep -v '^ *+' conftest.er1 >conftest.err
  18759. - rm -f conftest.er1
  18760. - cat conftest.err >&5
  18761. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18762. - (exit $ac_status); } && {
  18763. - test -z "$ac_cxx_werror_flag" ||
  18764. - test ! -s conftest.err
  18765. - } && test -s conftest.$ac_objext; then
  18766. - ac_cv_prog_cxx_g=yes
  18767. -else
  18768. - echo "$as_me: failed program was:" >&5
  18769. -sed 's/^/| /' conftest.$ac_ext >&5
  18770. - CXXFLAGS=""
  18771. - cat >conftest.$ac_ext <<_ACEOF
  18772. -/* confdefs.h. */
  18773. -_ACEOF
  18774. -cat confdefs.h >>conftest.$ac_ext
  18775. -cat >>conftest.$ac_ext <<_ACEOF
  18776. -/* end confdefs.h. */
  18777. -int
  18778. -main ()
  18779. -{
  18780. - ;
  18781. - return 0;
  18782. -}
  18783. -_ACEOF
  18784. -rm -f conftest.$ac_objext
  18785. -if { (ac_try="$ac_compile"
  18786. -case "(($ac_try" in
  18787. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18788. - *) ac_try_echo=$ac_try;;
  18789. -esac
  18790. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18791. - (eval "$ac_compile") 2>conftest.er1
  18792. - ac_status=$?
  18793. - grep -v '^ *+' conftest.er1 >conftest.err
  18794. - rm -f conftest.er1
  18795. - cat conftest.err >&5
  18796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18797. - (exit $ac_status); } && {
  18798. - test -z "$ac_cxx_werror_flag" ||
  18799. - test ! -s conftest.err
  18800. - } && test -s conftest.$ac_objext; then
  18801. - :
  18802. +if test -n "$ac_tool_prefix"; then
  18803. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18804. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18805. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18806. +$as_echo_n "checking for $ac_word... " >&6; }
  18807. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18808. + $as_echo_n "(cached) " >&6
  18809. else
  18810. - echo "$as_me: failed program was:" >&5
  18811. -sed 's/^/| /' conftest.$ac_ext >&5
  18812. -
  18813. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18814. - CXXFLAGS="-g"
  18815. - cat >conftest.$ac_ext <<_ACEOF
  18816. -/* confdefs.h. */
  18817. -_ACEOF
  18818. -cat confdefs.h >>conftest.$ac_ext
  18819. -cat >>conftest.$ac_ext <<_ACEOF
  18820. -/* end confdefs.h. */
  18821. -
  18822. -int
  18823. -main ()
  18824. -{
  18825. + if test -n "$STRIP"; then
  18826. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18827. +else
  18828. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18829. +for as_dir in $PATH
  18830. +do
  18831. + IFS=$as_save_IFS
  18832. + test -z "$as_dir" && as_dir=.
  18833. + for ac_exec_ext in '' $ac_executable_extensions; do
  18834. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18835. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18836. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18837. + break 2
  18838. + fi
  18839. +done
  18840. + done
  18841. +IFS=$as_save_IFS
  18842. - ;
  18843. - return 0;
  18844. -}
  18845. -_ACEOF
  18846. -rm -f conftest.$ac_objext
  18847. -if { (ac_try="$ac_compile"
  18848. -case "(($ac_try" in
  18849. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18850. - *) ac_try_echo=$ac_try;;
  18851. -esac
  18852. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18853. - (eval "$ac_compile") 2>conftest.er1
  18854. - ac_status=$?
  18855. - grep -v '^ *+' conftest.er1 >conftest.err
  18856. - rm -f conftest.er1
  18857. - cat conftest.err >&5
  18858. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18859. - (exit $ac_status); } && {
  18860. - test -z "$ac_cxx_werror_flag" ||
  18861. - test ! -s conftest.err
  18862. - } && test -s conftest.$ac_objext; then
  18863. - ac_cv_prog_cxx_g=yes
  18864. +fi
  18865. +fi
  18866. +STRIP=$ac_cv_prog_STRIP
  18867. +if test -n "$STRIP"; then
  18868. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18869. +$as_echo "$STRIP" >&6; }
  18870. else
  18871. - echo "$as_me: failed program was:" >&5
  18872. -sed 's/^/| /' conftest.$ac_ext >&5
  18873. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18874. +$as_echo "no" >&6; }
  18875. +fi
  18876. fi
  18877. +if test -z "$ac_cv_prog_STRIP"; then
  18878. + ac_ct_STRIP=$STRIP
  18879. + # Extract the first word of "strip", so it can be a program name with args.
  18880. +set dummy strip; ac_word=$2
  18881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18882. +$as_echo_n "checking for $ac_word... " >&6; }
  18883. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18884. + $as_echo_n "(cached) " >&6
  18885. +else
  18886. + if test -n "$ac_ct_STRIP"; then
  18887. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18888. +else
  18889. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18890. +for as_dir in $PATH
  18891. +do
  18892. + IFS=$as_save_IFS
  18893. + test -z "$as_dir" && as_dir=.
  18894. + for ac_exec_ext in '' $ac_executable_extensions; do
  18895. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18896. + ac_cv_prog_ac_ct_STRIP="strip"
  18897. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18898. + break 2
  18899. + fi
  18900. +done
  18901. + done
  18902. +IFS=$as_save_IFS
  18903. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18904. fi
  18905. -
  18906. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18907. fi
  18908. -
  18909. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18910. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18911. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18912. +if test -n "$ac_ct_STRIP"; then
  18913. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18914. +$as_echo "$ac_ct_STRIP" >&6; }
  18915. +else
  18916. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18917. +$as_echo "no" >&6; }
  18918. fi
  18919. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18920. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18921. -if test "$ac_test_CXXFLAGS" = set; then
  18922. - CXXFLAGS=$ac_save_CXXFLAGS
  18923. -elif test $ac_cv_prog_cxx_g = yes; then
  18924. - if test "$GXX" = yes; then
  18925. - CXXFLAGS="-g -O2"
  18926. +
  18927. + if test "x$ac_ct_STRIP" = x; then
  18928. + STRIP=":"
  18929. else
  18930. - CXXFLAGS="-g"
  18931. + case $cross_compiling:$ac_tool_warned in
  18932. +yes:)
  18933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18934. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18935. +ac_tool_warned=yes ;;
  18936. +esac
  18937. + STRIP=$ac_ct_STRIP
  18938. fi
  18939. else
  18940. - if test "$GXX" = yes; then
  18941. - CXXFLAGS="-O2"
  18942. - else
  18943. - CXXFLAGS=
  18944. - fi
  18945. + STRIP="$ac_cv_prog_STRIP"
  18946. fi
  18947. -ac_ext=cpp
  18948. -ac_cpp='$CXXCPP $CPPFLAGS'
  18949. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18950. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18951. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18952. -depcc="$CXX" am_compiler_list=
  18953. +test -z "$STRIP" && STRIP=:
  18954. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18955. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18956. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18957. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18958. -else
  18959. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18960. - # We make a subdir and do the tests there. Otherwise we can end up
  18961. - # making bogus files that we don't know about and never remove. For
  18962. - # instance it was reported that on HP-UX the gcc test will end up
  18963. - # making a dummy file named `D' -- because `-MD' means `put the output
  18964. - # in D'.
  18965. - mkdir conftest.dir
  18966. - # Copy depcomp to subdir because otherwise we won't find it if we're
  18967. - # using a relative directory.
  18968. - cp "$am_depcomp" conftest.dir
  18969. - cd conftest.dir
  18970. - # We will build objects and dependencies in a subdirectory because
  18971. - # it helps to detect inapplicable dependency modes. For instance
  18972. - # both Tru64's cc and ICC support -MD to output dependencies as a
  18973. - # side effect of compilation, but ICC will put the dependencies in
  18974. - # the current directory while Tru64 will put them in the object
  18975. - # directory.
  18976. - mkdir sub
  18977. - am_cv_CXX_dependencies_compiler_type=none
  18978. - if test "$am_compiler_list" = ""; then
  18979. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18980. - fi
  18981. - for depmode in $am_compiler_list; do
  18982. - # Setup a source with many dependencies, because some compilers
  18983. - # like to wrap large dependency lists on column 80 (with \), and
  18984. - # we should not choose a depcomp mode which is confused by this.
  18985. - #
  18986. - # We need to recreate these files for each test, as the compiler may
  18987. - # overwrite some of them when testing with obscure command lines.
  18988. - # This happens at least with the AIX C compiler.
  18989. - : > sub/conftest.c
  18990. - for i in 1 2 3 4 5 6; do
  18991. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18992. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18993. - # Solaris 8's {/usr,}/bin/sh.
  18994. - touch sub/conftst$i.h
  18995. - done
  18996. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18997. - case $depmode in
  18998. - nosideeffect)
  18999. - # after this tag, mechanisms are not by side-effect, so they'll
  19000. - # only be used when explicitly requested
  19001. - if test "x$enable_dependency_tracking" = xyes; then
  19002. - continue
  19003. - else
  19004. - break
  19005. - fi
  19006. - ;;
  19007. - none) break ;;
  19008. - esac
  19009. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19010. - # mode. It turns out that the SunPro C++ compiler does not properly
  19011. - # handle `-M -o', and we need to detect this.
  19012. - if depmode=$depmode \
  19013. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  19014. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19015. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  19016. - >/dev/null 2>conftest.err &&
  19017. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19018. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19019. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  19020. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19021. - # icc doesn't choke on unknown options, it will just issue warnings
  19022. - # or remarks (even with -Werror). So we grep stderr for any message
  19023. - # that says an option was ignored or not supported.
  19024. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  19025. - # icc: Command line warning: ignoring option '-M'; no argument required
  19026. - # The diagnosis changed in icc 8.0:
  19027. - # icc: Command line remark: option '-MP' not supported
  19028. - if (grep 'ignoring option' conftest.err ||
  19029. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  19030. - am_cv_CXX_dependencies_compiler_type=$depmode
  19031. - break
  19032. - fi
  19033. - fi
  19034. +
  19035. +
  19036. +
  19037. +if test -n "$ac_tool_prefix"; then
  19038. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19039. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19041. +$as_echo_n "checking for $ac_word... " >&6; }
  19042. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  19043. + $as_echo_n "(cached) " >&6
  19044. +else
  19045. + if test -n "$RANLIB"; then
  19046. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19047. +else
  19048. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19049. +for as_dir in $PATH
  19050. +do
  19051. + IFS=$as_save_IFS
  19052. + test -z "$as_dir" && as_dir=.
  19053. + for ac_exec_ext in '' $ac_executable_extensions; do
  19054. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19055. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19056. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19057. + break 2
  19058. + fi
  19059. +done
  19060. done
  19061. +IFS=$as_save_IFS
  19062. - cd ..
  19063. - rm -rf conftest.dir
  19064. +fi
  19065. +fi
  19066. +RANLIB=$ac_cv_prog_RANLIB
  19067. +if test -n "$RANLIB"; then
  19068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  19069. +$as_echo "$RANLIB" >&6; }
  19070. else
  19071. - am_cv_CXX_dependencies_compiler_type=none
  19072. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19073. +$as_echo "no" >&6; }
  19074. fi
  19075. +
  19076. fi
  19077. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  19078. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  19079. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  19080. +if test -z "$ac_cv_prog_RANLIB"; then
  19081. + ac_ct_RANLIB=$RANLIB
  19082. + # Extract the first word of "ranlib", so it can be a program name with args.
  19083. +set dummy ranlib; ac_word=$2
  19084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19085. +$as_echo_n "checking for $ac_word... " >&6; }
  19086. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  19087. + $as_echo_n "(cached) " >&6
  19088. +else
  19089. + if test -n "$ac_ct_RANLIB"; then
  19090. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19091. +else
  19092. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19093. +for as_dir in $PATH
  19094. +do
  19095. + IFS=$as_save_IFS
  19096. + test -z "$as_dir" && as_dir=.
  19097. + for ac_exec_ext in '' $ac_executable_extensions; do
  19098. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19099. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  19100. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19101. + break 2
  19102. + fi
  19103. +done
  19104. + done
  19105. +IFS=$as_save_IFS
  19106. - if
  19107. - test "x$enable_dependency_tracking" != xno \
  19108. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  19109. - am__fastdepCXX_TRUE=
  19110. - am__fastdepCXX_FALSE='#'
  19111. +fi
  19112. +fi
  19113. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19114. +if test -n "$ac_ct_RANLIB"; then
  19115. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  19116. +$as_echo "$ac_ct_RANLIB" >&6; }
  19117. else
  19118. - am__fastdepCXX_TRUE='#'
  19119. - am__fastdepCXX_FALSE=
  19120. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19121. +$as_echo "no" >&6; }
  19122. fi
  19123. + if test "x$ac_ct_RANLIB" = x; then
  19124. + RANLIB=":"
  19125. + else
  19126. + case $cross_compiling:$ac_tool_warned in
  19127. +yes:)
  19128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19129. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19130. +ac_tool_warned=yes ;;
  19131. +esac
  19132. + RANLIB=$ac_ct_RANLIB
  19133. + fi
  19134. +else
  19135. + RANLIB="$ac_cv_prog_RANLIB"
  19136. +fi
  19137. +test -z "$RANLIB" && RANLIB=:
  19138. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  19139. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  19140. - (test "X$CXX" != "Xg++"))) ; then
  19141. - ac_ext=cpp
  19142. -ac_cpp='$CXXCPP $CPPFLAGS'
  19143. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19144. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19145. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19146. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  19147. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  19148. -if test -z "$CXXCPP"; then
  19149. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  19150. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19151. -else
  19152. - # Double quotes because CXXCPP needs to be expanded
  19153. - for CXXCPP in "$CXX -E" "/lib/cpp"
  19154. - do
  19155. - ac_preproc_ok=false
  19156. -for ac_cxx_preproc_warn_flag in '' yes
  19157. -do
  19158. - # Use a header file that comes with gcc, so configuring glibc
  19159. - # with a fresh cross-compiler works.
  19160. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19161. - # <limits.h> exists even on freestanding compilers.
  19162. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19163. - # not just through cpp. "Syntax error" is here to catch this case.
  19164. - cat >conftest.$ac_ext <<_ACEOF
  19165. -/* confdefs.h. */
  19166. -_ACEOF
  19167. -cat confdefs.h >>conftest.$ac_ext
  19168. -cat >>conftest.$ac_ext <<_ACEOF
  19169. -/* end confdefs.h. */
  19170. -#ifdef __STDC__
  19171. -# include <limits.h>
  19172. -#else
  19173. -# include <assert.h>
  19174. -#endif
  19175. - Syntax error
  19176. -_ACEOF
  19177. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19178. -case "(($ac_try" in
  19179. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19180. - *) ac_try_echo=$ac_try;;
  19181. -esac
  19182. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19183. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19184. - ac_status=$?
  19185. - grep -v '^ *+' conftest.er1 >conftest.err
  19186. - rm -f conftest.er1
  19187. - cat conftest.err >&5
  19188. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19189. - (exit $ac_status); } >/dev/null && {
  19190. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19191. - test ! -s conftest.err
  19192. - }; then
  19193. - :
  19194. -else
  19195. - echo "$as_me: failed program was:" >&5
  19196. -sed 's/^/| /' conftest.$ac_ext >&5
  19197. - # Broken: fails on valid input.
  19198. -continue
  19199. -fi
  19200. -rm -f conftest.err conftest.$ac_ext
  19201. - # OK, works on sane cases. Now check whether nonexistent headers
  19202. - # can be detected and how.
  19203. - cat >conftest.$ac_ext <<_ACEOF
  19204. -/* confdefs.h. */
  19205. -_ACEOF
  19206. -cat confdefs.h >>conftest.$ac_ext
  19207. -cat >>conftest.$ac_ext <<_ACEOF
  19208. -/* end confdefs.h. */
  19209. -#include <ac_nonexistent.h>
  19210. -_ACEOF
  19211. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19212. -case "(($ac_try" in
  19213. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19214. - *) ac_try_echo=$ac_try;;
  19215. -esac
  19216. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19217. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19218. - ac_status=$?
  19219. - grep -v '^ *+' conftest.er1 >conftest.err
  19220. - rm -f conftest.er1
  19221. - cat conftest.err >&5
  19222. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19223. - (exit $ac_status); } >/dev/null && {
  19224. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19225. - test ! -s conftest.err
  19226. - }; then
  19227. - # Broken: success on invalid input.
  19228. -continue
  19229. -else
  19230. - echo "$as_me: failed program was:" >&5
  19231. -sed 's/^/| /' conftest.$ac_ext >&5
  19232. - # Passes both tests.
  19233. -ac_preproc_ok=:
  19234. -break
  19235. +# Determine commands to create old-style static archives.
  19236. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  19237. +old_postinstall_cmds='chmod 644 $oldlib'
  19238. +old_postuninstall_cmds=
  19239. +
  19240. +if test -n "$RANLIB"; then
  19241. + case $host_os in
  19242. + openbsd*)
  19243. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  19244. + ;;
  19245. + *)
  19246. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  19247. + ;;
  19248. + esac
  19249. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  19250. fi
  19251. -rm -f conftest.err conftest.$ac_ext
  19252. -done
  19253. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19254. -rm -f conftest.err conftest.$ac_ext
  19255. -if $ac_preproc_ok; then
  19256. - break
  19257. -fi
  19258. - done
  19259. - ac_cv_prog_CXXCPP=$CXXCPP
  19260. -fi
  19261. - CXXCPP=$ac_cv_prog_CXXCPP
  19262. -else
  19263. - ac_cv_prog_CXXCPP=$CXXCPP
  19264. -fi
  19265. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  19266. -echo "${ECHO_T}$CXXCPP" >&6; }
  19267. -ac_preproc_ok=false
  19268. -for ac_cxx_preproc_warn_flag in '' yes
  19269. -do
  19270. - # Use a header file that comes with gcc, so configuring glibc
  19271. - # with a fresh cross-compiler works.
  19272. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19273. - # <limits.h> exists even on freestanding compilers.
  19274. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19275. - # not just through cpp. "Syntax error" is here to catch this case.
  19276. - cat >conftest.$ac_ext <<_ACEOF
  19277. -/* confdefs.h. */
  19278. -_ACEOF
  19279. -cat confdefs.h >>conftest.$ac_ext
  19280. -cat >>conftest.$ac_ext <<_ACEOF
  19281. -/* end confdefs.h. */
  19282. -#ifdef __STDC__
  19283. -# include <limits.h>
  19284. -#else
  19285. -# include <assert.h>
  19286. -#endif
  19287. - Syntax error
  19288. -_ACEOF
  19289. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19290. -case "(($ac_try" in
  19291. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19292. - *) ac_try_echo=$ac_try;;
  19293. -esac
  19294. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19295. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19296. - ac_status=$?
  19297. - grep -v '^ *+' conftest.er1 >conftest.err
  19298. - rm -f conftest.er1
  19299. - cat conftest.err >&5
  19300. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19301. - (exit $ac_status); } >/dev/null && {
  19302. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19303. - test ! -s conftest.err
  19304. - }; then
  19305. - :
  19306. -else
  19307. - echo "$as_me: failed program was:" >&5
  19308. -sed 's/^/| /' conftest.$ac_ext >&5
  19309. - # Broken: fails on valid input.
  19310. -continue
  19311. -fi
  19312. -rm -f conftest.err conftest.$ac_ext
  19313. - # OK, works on sane cases. Now check whether nonexistent headers
  19314. - # can be detected and how.
  19315. - cat >conftest.$ac_ext <<_ACEOF
  19316. -/* confdefs.h. */
  19317. -_ACEOF
  19318. -cat confdefs.h >>conftest.$ac_ext
  19319. -cat >>conftest.$ac_ext <<_ACEOF
  19320. -/* end confdefs.h. */
  19321. -#include <ac_nonexistent.h>
  19322. -_ACEOF
  19323. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19324. -case "(($ac_try" in
  19325. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19326. - *) ac_try_echo=$ac_try;;
  19327. -esac
  19328. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19329. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19330. - ac_status=$?
  19331. - grep -v '^ *+' conftest.er1 >conftest.err
  19332. - rm -f conftest.er1
  19333. - cat conftest.err >&5
  19334. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19335. - (exit $ac_status); } >/dev/null && {
  19336. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19337. - test ! -s conftest.err
  19338. - }; then
  19339. - # Broken: success on invalid input.
  19340. -continue
  19341. -else
  19342. - echo "$as_me: failed program was:" >&5
  19343. -sed 's/^/| /' conftest.$ac_ext >&5
  19344. - # Passes both tests.
  19345. -ac_preproc_ok=:
  19346. -break
  19347. -fi
  19348. -rm -f conftest.err conftest.$ac_ext
  19349. -done
  19350. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19351. -rm -f conftest.err conftest.$ac_ext
  19352. -if $ac_preproc_ok; then
  19353. - :
  19354. -else
  19355. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19356. -See \`config.log' for more details." >&5
  19357. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19358. -See \`config.log' for more details." >&2;}
  19359. - { (exit 1); exit 1; }; }
  19360. -fi
  19361. -ac_ext=cpp
  19362. -ac_cpp='$CXXCPP $CPPFLAGS'
  19363. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19364. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19365. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19366. -fi
  19367. -ac_ext=f
  19368. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  19369. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19370. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  19371. -if test -n "$ac_tool_prefix"; then
  19372. - 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
  19373. - do
  19374. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19375. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19376. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19377. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19378. -if test "${ac_cv_prog_F77+set}" = set; then
  19379. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19380. -else
  19381. - if test -n "$F77"; then
  19382. - ac_cv_prog_F77="$F77" # Let the user override the test.
  19383. -else
  19384. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19385. -for as_dir in $PATH
  19386. -do
  19387. - IFS=$as_save_IFS
  19388. - test -z "$as_dir" && as_dir=.
  19389. - for ac_exec_ext in '' $ac_executable_extensions; do
  19390. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19391. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  19392. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19393. - break 2
  19394. - fi
  19395. -done
  19396. -done
  19397. -IFS=$as_save_IFS
  19398. -fi
  19399. -fi
  19400. -F77=$ac_cv_prog_F77
  19401. -if test -n "$F77"; then
  19402. - { echo "$as_me:$LINENO: result: $F77" >&5
  19403. -echo "${ECHO_T}$F77" >&6; }
  19404. -else
  19405. - { echo "$as_me:$LINENO: result: no" >&5
  19406. -echo "${ECHO_T}no" >&6; }
  19407. -fi
  19408. - test -n "$F77" && break
  19409. - done
  19410. -fi
  19411. -if test -z "$F77"; then
  19412. - ac_ct_F77=$F77
  19413. - 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
  19414. -do
  19415. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  19416. -set dummy $ac_prog; ac_word=$2
  19417. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19418. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19419. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  19420. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19421. -else
  19422. - if test -n "$ac_ct_F77"; then
  19423. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  19424. -else
  19425. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19426. -for as_dir in $PATH
  19427. -do
  19428. - IFS=$as_save_IFS
  19429. - test -z "$as_dir" && as_dir=.
  19430. - for ac_exec_ext in '' $ac_executable_extensions; do
  19431. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19432. - ac_cv_prog_ac_ct_F77="$ac_prog"
  19433. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19434. - break 2
  19435. - fi
  19436. -done
  19437. -done
  19438. -IFS=$as_save_IFS
  19439. -fi
  19440. -fi
  19441. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  19442. -if test -n "$ac_ct_F77"; then
  19443. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  19444. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  19445. -else
  19446. - { echo "$as_me:$LINENO: result: no" >&5
  19447. -echo "${ECHO_T}no" >&6; }
  19448. -fi
  19449. - test -n "$ac_ct_F77" && break
  19450. -done
  19451. - if test "x$ac_ct_F77" = x; then
  19452. - F77=""
  19453. - else
  19454. - case $cross_compiling:$ac_tool_warned in
  19455. -yes:)
  19456. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19457. -whose name does not start with the host triplet. If you think this
  19458. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19459. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19460. -whose name does not start with the host triplet. If you think this
  19461. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19462. -ac_tool_warned=yes ;;
  19463. -esac
  19464. - F77=$ac_ct_F77
  19465. - fi
  19466. -fi
  19467. -# Provide some information about the compiler.
  19468. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  19469. -ac_compiler=`set X $ac_compile; echo $2`
  19470. -{ (ac_try="$ac_compiler --version >&5"
  19471. -case "(($ac_try" in
  19472. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19473. - *) ac_try_echo=$ac_try;;
  19474. -esac
  19475. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19476. - (eval "$ac_compiler --version >&5") 2>&5
  19477. - ac_status=$?
  19478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19479. - (exit $ac_status); }
  19480. -{ (ac_try="$ac_compiler -v >&5"
  19481. -case "(($ac_try" in
  19482. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19483. - *) ac_try_echo=$ac_try;;
  19484. -esac
  19485. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19486. - (eval "$ac_compiler -v >&5") 2>&5
  19487. - ac_status=$?
  19488. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19489. - (exit $ac_status); }
  19490. -{ (ac_try="$ac_compiler -V >&5"
  19491. -case "(($ac_try" in
  19492. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19493. - *) ac_try_echo=$ac_try;;
  19494. -esac
  19495. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19496. - (eval "$ac_compiler -V >&5") 2>&5
  19497. - ac_status=$?
  19498. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19499. - (exit $ac_status); }
  19500. -rm -f a.out
  19501. -
  19502. -# If we don't use `.F' as extension, the preprocessor is not run on the
  19503. -# input file. (Note that this only needs to work for GNU compilers.)
  19504. -ac_save_ext=$ac_ext
  19505. -ac_ext=F
  19506. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  19507. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  19508. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  19509. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19510. -else
  19511. - cat >conftest.$ac_ext <<_ACEOF
  19512. - program main
  19513. -#ifndef __GNUC__
  19514. - choke me
  19515. -#endif
  19516. - end
  19517. -_ACEOF
  19518. -rm -f conftest.$ac_objext
  19519. -if { (ac_try="$ac_compile"
  19520. -case "(($ac_try" in
  19521. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19522. - *) ac_try_echo=$ac_try;;
  19523. -esac
  19524. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19525. - (eval "$ac_compile") 2>conftest.er1
  19526. - ac_status=$?
  19527. - grep -v '^ *+' conftest.er1 >conftest.err
  19528. - rm -f conftest.er1
  19529. - cat conftest.err >&5
  19530. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19531. - (exit $ac_status); } && {
  19532. - test -z "$ac_f77_werror_flag" ||
  19533. - test ! -s conftest.err
  19534. - } && test -s conftest.$ac_objext; then
  19535. - ac_compiler_gnu=yes
  19536. -else
  19537. - echo "$as_me: failed program was:" >&5
  19538. -sed 's/^/| /' conftest.$ac_ext >&5
  19539. - ac_compiler_gnu=no
  19540. -fi
  19541. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19542. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  19543. -fi
  19544. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  19545. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  19546. -ac_ext=$ac_save_ext
  19547. -ac_test_FFLAGS=${FFLAGS+set}
  19548. -ac_save_FFLAGS=$FFLAGS
  19549. -FFLAGS=
  19550. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  19551. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  19552. -if test "${ac_cv_prog_f77_g+set}" = set; then
  19553. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19554. -else
  19555. - FFLAGS=-g
  19556. -cat >conftest.$ac_ext <<_ACEOF
  19557. - program main
  19558. - end
  19559. -_ACEOF
  19560. -rm -f conftest.$ac_objext
  19561. -if { (ac_try="$ac_compile"
  19562. -case "(($ac_try" in
  19563. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19564. - *) ac_try_echo=$ac_try;;
  19565. -esac
  19566. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19567. - (eval "$ac_compile") 2>conftest.er1
  19568. - ac_status=$?
  19569. - grep -v '^ *+' conftest.er1 >conftest.err
  19570. - rm -f conftest.er1
  19571. - cat conftest.err >&5
  19572. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19573. - (exit $ac_status); } && {
  19574. - test -z "$ac_f77_werror_flag" ||
  19575. - test ! -s conftest.err
  19576. - } && test -s conftest.$ac_objext; then
  19577. - ac_cv_prog_f77_g=yes
  19578. -else
  19579. - echo "$as_me: failed program was:" >&5
  19580. -sed 's/^/| /' conftest.$ac_ext >&5
  19581. - ac_cv_prog_f77_g=no
  19582. -fi
  19583. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19584. -fi
  19585. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  19586. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  19587. -if test "$ac_test_FFLAGS" = set; then
  19588. - FFLAGS=$ac_save_FFLAGS
  19589. -elif test $ac_cv_prog_f77_g = yes; then
  19590. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19591. - FFLAGS="-g -O2"
  19592. - else
  19593. - FFLAGS="-g"
  19594. - fi
  19595. -else
  19596. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19597. - FFLAGS="-O2"
  19598. - else
  19599. - FFLAGS=
  19600. - fi
  19601. -fi
  19602. -G77=`test $ac_compiler_gnu = yes && echo yes`
  19603. -ac_ext=c
  19604. -ac_cpp='$CPP $CPPFLAGS'
  19605. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19606. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19607. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19608. +# If no C compiler was specified, use CC.
  19609. +LTCC=${LTCC-"$CC"}
  19610. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  19611. -# find the maximum length of command line arguments
  19612. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  19613. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  19614. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  19615. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19616. -else
  19617. - i=0
  19618. - teststring="ABCD"
  19619. -
  19620. - case $build_os in
  19621. - msdosdjgpp*)
  19622. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  19623. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  19624. - # during glob expansion). Even if it were fixed, the result of this
  19625. - # check would be larger than it should be.
  19626. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19627. - ;;
  19628. -
  19629. - gnu*)
  19630. - # Under GNU Hurd, this test is not required because there is
  19631. - # no limit to the length of command line arguments.
  19632. - # Libtool will interpret -1 as no limit whatsoever
  19633. - lt_cv_sys_max_cmd_len=-1;
  19634. - ;;
  19635. -
  19636. - cygwin* | mingw*)
  19637. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  19638. - # about 5 minutes as the teststring grows exponentially.
  19639. - # Worse, since 9x/ME are not pre-emptively multitasking,
  19640. - # you end up with a "frozen" computer, even though with patience
  19641. - # the test eventually succeeds (with a max line length of 256k).
  19642. - # Instead, let's just punt: use the minimum linelength reported by
  19643. - # all of the supported platforms: 8192 (on NT/2K/XP).
  19644. - lt_cv_sys_max_cmd_len=8192;
  19645. - ;;
  19646. -
  19647. - amigaos*)
  19648. - # On AmigaOS with pdksh, this test takes hours, literally.
  19649. - # So we just punt and use a minimum line length of 8192.
  19650. - lt_cv_sys_max_cmd_len=8192;
  19651. - ;;
  19652. -
  19653. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19654. - # This has been around since 386BSD, at least. Likely further.
  19655. - if test -x /sbin/sysctl; then
  19656. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19657. - elif test -x /usr/sbin/sysctl; then
  19658. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19659. - else
  19660. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19661. - fi
  19662. - # And add a safety zone
  19663. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19664. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19665. - ;;
  19666. -
  19667. - interix*)
  19668. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19669. - lt_cv_sys_max_cmd_len=196608
  19670. - ;;
  19671. -
  19672. - osf*)
  19673. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19674. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19675. - # nice to cause kernel panics so lets avoid the loop below.
  19676. - # First set a reasonable default.
  19677. - lt_cv_sys_max_cmd_len=16384
  19678. - #
  19679. - if test -x /sbin/sysconfig; then
  19680. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19681. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19682. - esac
  19683. - fi
  19684. - ;;
  19685. - sco3.2v5*)
  19686. - lt_cv_sys_max_cmd_len=102400
  19687. - ;;
  19688. - sysv5* | sco5v6* | sysv4.2uw2*)
  19689. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19690. - if test -n "$kargmax"; then
  19691. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19692. - else
  19693. - lt_cv_sys_max_cmd_len=32768
  19694. - fi
  19695. - ;;
  19696. - *)
  19697. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  19698. - if test -n "$lt_cv_sys_max_cmd_len"; then
  19699. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19700. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19701. - else
  19702. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  19703. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  19704. - = "XX$teststring") >/dev/null 2>&1 &&
  19705. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  19706. - lt_cv_sys_max_cmd_len=$new_result &&
  19707. - test $i != 17 # 1/2 MB should be enough
  19708. - do
  19709. - i=`expr $i + 1`
  19710. - teststring=$teststring$teststring
  19711. - done
  19712. - teststring=
  19713. - # Add a significant safety factor because C++ compilers can tack on massive
  19714. - # amounts of additional arguments before passing them to the linker.
  19715. - # It appears as though 1/2 is a usable value.
  19716. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  19717. - fi
  19718. - ;;
  19719. - esac
  19720. -
  19721. -fi
  19722. -
  19723. -if test -n $lt_cv_sys_max_cmd_len ; then
  19724. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  19725. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  19726. -else
  19727. - { echo "$as_me:$LINENO: result: none" >&5
  19728. -echo "${ECHO_T}none" >&6; }
  19729. -fi
  19730. -
  19731. -
  19732. +# If no C compiler flags were specified, use CFLAGS.
  19733. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19734. +# Allow CC to be a program name with arguments.
  19735. +compiler=$CC
  19736. # Check for command to grab the raw symbol name followed by C symbol from nm.
  19737. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  19738. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  19739. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  19740. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  19742. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  19743. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  19744. + $as_echo_n "(cached) " >&6
  19745. else
  19746. # These are sane defaults that work on at least a few old systems.
  19747. @@ -6273,33 +5361,18 @@
  19748. # Regexp to match symbols that can be accessed directly from C.
  19749. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  19750. -# Transform an extracted symbol line into a proper C declaration
  19751. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  19752. -
  19753. -# Transform an extracted symbol line into symbol name and symbol address
  19754. -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'"
  19755. -
  19756. # Define system-specific variables.
  19757. case $host_os in
  19758. aix*)
  19759. symcode='[BCDT]'
  19760. ;;
  19761. -cygwin* | mingw* | pw32*)
  19762. +cygwin* | mingw* | pw32* | cegcc*)
  19763. symcode='[ABCDGISTW]'
  19764. ;;
  19765. -hpux*) # Its linker distinguishes data from code symbols
  19766. +hpux*)
  19767. if test "$host_cpu" = ia64; then
  19768. symcode='[ABCDEGRST]'
  19769. fi
  19770. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19771. - 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'"
  19772. - ;;
  19773. -linux* | k*bsd*-gnu)
  19774. - if test "$host_cpu" = ia64; then
  19775. - symcode='[ABCDGIRSTW]'
  19776. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19777. - 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'"
  19778. - fi
  19779. ;;
  19780. irix* | nonstopux*)
  19781. symcode='[BCDEGRST]'
  19782. @@ -6324,57 +5397,85 @@
  19783. ;;
  19784. esac
  19785. +# If we're using GNU nm, then use its standard symbol codes.
  19786. +case `$NM -V 2>&1` in
  19787. +*GNU* | *'with BFD'*)
  19788. + symcode='[ABCDGIRSTW]' ;;
  19789. +esac
  19790. +
  19791. +# Transform an extracted symbol line into a proper C declaration.
  19792. +# Some systems (esp. on ia64) link data and code symbols differently,
  19793. +# so use this general approach.
  19794. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19795. +
  19796. +# Transform an extracted symbol line into symbol name and symbol address
  19797. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  19798. +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'"
  19799. +
  19800. # Handle CRLF in mingw tool chain
  19801. opt_cr=
  19802. case $build_os in
  19803. mingw*)
  19804. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  19805. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  19806. ;;
  19807. esac
  19808. -# If we're using GNU nm, then use its standard symbol codes.
  19809. -case `$NM -V 2>&1` in
  19810. -*GNU* | *'with BFD'*)
  19811. - symcode='[ABCDGIRSTW]' ;;
  19812. -esac
  19813. -
  19814. -# Try without a prefix undercore, then with it.
  19815. +# Try without a prefix underscore, then with it.
  19816. for ac_symprfx in "" "_"; do
  19817. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  19818. symxfrm="\\1 $ac_symprfx\\2 \\2"
  19819. # Write the raw and C identifiers.
  19820. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  19821. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  19822. + # Fake it for dumpbin and say T for any non-static function
  19823. + # and D for any global variable.
  19824. + # Also find C++ and __fastcall symbols from MSVC++,
  19825. + # which start with @ or ?.
  19826. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  19827. +" {last_section=section; section=\$ 3};"\
  19828. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  19829. +" \$ 0!~/External *\|/{next};"\
  19830. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  19831. +" {if(hide[section]) next};"\
  19832. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  19833. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  19834. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  19835. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  19836. +" ' prfx=^$ac_symprfx"
  19837. + else
  19838. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  19839. + fi
  19840. # Check to see that the pipe works correctly.
  19841. pipe_works=no
  19842. rm -f conftest*
  19843. - cat > conftest.$ac_ext <<EOF
  19844. + cat > conftest.$ac_ext <<_LT_EOF
  19845. #ifdef __cplusplus
  19846. extern "C" {
  19847. #endif
  19848. char nm_test_var;
  19849. -void nm_test_func(){}
  19850. +void nm_test_func(void);
  19851. +void nm_test_func(void){}
  19852. #ifdef __cplusplus
  19853. }
  19854. #endif
  19855. int main(){nm_test_var='a';nm_test_func();return(0);}
  19856. -EOF
  19857. +_LT_EOF
  19858. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19859. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19860. (eval $ac_compile) 2>&5
  19861. ac_status=$?
  19862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19863. - (exit $ac_status); }; then
  19864. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19865. + test $ac_status = 0; }; then
  19866. # Now try to grab the symbols.
  19867. nlist=conftest.nm
  19868. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  19869. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  19870. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  19871. ac_status=$?
  19872. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19873. - (exit $ac_status); } && test -s "$nlist"; then
  19874. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19875. + test $ac_status = 0; } && test -s "$nlist"; then
  19876. # Try sorting and uniquifying the output.
  19877. if sort "$nlist" | uniq > "$nlist"T; then
  19878. mv -f "$nlist"T "$nlist"
  19879. @@ -6383,53 +5484,55 @@
  19880. fi
  19881. # Make sure that we snagged all the symbols we need.
  19882. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  19883. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  19884. - cat <<EOF > conftest.$ac_ext
  19885. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  19886. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  19887. + cat <<_LT_EOF > conftest.$ac_ext
  19888. #ifdef __cplusplus
  19889. extern "C" {
  19890. #endif
  19891. -EOF
  19892. +_LT_EOF
  19893. # Now generate the symbol file.
  19894. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  19895. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  19896. - cat <<EOF >> conftest.$ac_ext
  19897. -#if defined (__STDC__) && __STDC__
  19898. -# define lt_ptr_t void *
  19899. -#else
  19900. -# define lt_ptr_t char *
  19901. -# define const
  19902. -#endif
  19903. + cat <<_LT_EOF >> conftest.$ac_ext
  19904. -/* The mapping between symbol names and symbols. */
  19905. +/* The mapping between symbol names and symbols. */
  19906. const struct {
  19907. const char *name;
  19908. - lt_ptr_t address;
  19909. + void *address;
  19910. }
  19911. -lt_preloaded_symbols[] =
  19912. +lt__PROGRAM__LTX_preloaded_symbols[] =
  19913. {
  19914. -EOF
  19915. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  19916. - cat <<\EOF >> conftest.$ac_ext
  19917. - {0, (lt_ptr_t) 0}
  19918. + { "@PROGRAM@", (void *) 0 },
  19919. +_LT_EOF
  19920. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  19921. + cat <<\_LT_EOF >> conftest.$ac_ext
  19922. + {0, (void *) 0}
  19923. };
  19924. +/* This works around a problem in FreeBSD linker */
  19925. +#ifdef FREEBSD_WORKAROUND
  19926. +static const void *lt_preloaded_setup() {
  19927. + return lt__PROGRAM__LTX_preloaded_symbols;
  19928. +}
  19929. +#endif
  19930. +
  19931. #ifdef __cplusplus
  19932. }
  19933. #endif
  19934. -EOF
  19935. +_LT_EOF
  19936. # Now try linking the two files.
  19937. mv conftest.$ac_objext conftstm.$ac_objext
  19938. lt_save_LIBS="$LIBS"
  19939. lt_save_CFLAGS="$CFLAGS"
  19940. LIBS="conftstm.$ac_objext"
  19941. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  19942. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19943. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  19944. (eval $ac_link) 2>&5
  19945. ac_status=$?
  19946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19947. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  19948. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19949. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  19950. pipe_works=yes
  19951. fi
  19952. LIBS="$lt_save_LIBS"
  19953. @@ -6463,783 +5566,756 @@
  19954. lt_cv_sys_global_symbol_to_cdecl=
  19955. fi
  19956. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  19957. - { echo "$as_me:$LINENO: result: failed" >&5
  19958. -echo "${ECHO_T}failed" >&6; }
  19959. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  19960. +$as_echo "failed" >&6; }
  19961. else
  19962. - { echo "$as_me:$LINENO: result: ok" >&5
  19963. -echo "${ECHO_T}ok" >&6; }
  19964. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  19965. +$as_echo "ok" >&6; }
  19966. fi
  19967. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  19968. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  19969. -if test "${lt_cv_objdir+set}" = set; then
  19970. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19971. -else
  19972. - rm -f .libs 2>/dev/null
  19973. -mkdir .libs 2>/dev/null
  19974. -if test -d .libs; then
  19975. - lt_cv_objdir=.libs
  19976. -else
  19977. - # MS-DOS does not allow filenames that begin with a dot.
  19978. - lt_cv_objdir=_libs
  19979. -fi
  19980. -rmdir .libs 2>/dev/null
  19981. -fi
  19982. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  19983. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  19984. -objdir=$lt_cv_objdir
  19985. -case $host_os in
  19986. -aix3*)
  19987. - # AIX sometimes has problems with the GCC collect2 program. For some
  19988. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  19989. - # vanish in a puff of smoke.
  19990. - if test "X${COLLECT_NAMES+set}" != Xset; then
  19991. - COLLECT_NAMES=
  19992. - export COLLECT_NAMES
  19993. - fi
  19994. - ;;
  19995. -esac
  19996. -# Sed substitution that helps us do robust quoting. It backslashifies
  19997. -# metacharacters that are still active within double-quoted strings.
  19998. -Xsed='sed -e 1s/^X//'
  19999. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  20000. -# Same as above, but do not quote variable references.
  20001. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  20002. -# Sed substitution to delay expansion of an escaped shell variable in a
  20003. -# double_quote_subst'ed string.
  20004. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  20005. -# Sed substitution to avoid accidental globbing in evaled expressions
  20006. -no_glob_subst='s/\*/\\\*/g'
  20007. -# Constants:
  20008. -rm="rm -f"
  20009. -# Global variables:
  20010. -default_ofile=libtool
  20011. -can_build_shared=yes
  20012. -# All known linkers require a `.a' archive for static linking (except MSVC,
  20013. -# which needs '.lib').
  20014. -libext=a
  20015. -ltmain="$ac_aux_dir/ltmain.sh"
  20016. -ofile="$default_ofile"
  20017. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  20018. -if test -n "$ac_tool_prefix"; then
  20019. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  20020. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  20021. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20022. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20023. -if test "${ac_cv_prog_AR+set}" = set; then
  20024. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20025. -else
  20026. - if test -n "$AR"; then
  20027. - ac_cv_prog_AR="$AR" # Let the user override the test.
  20028. -else
  20029. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20030. -for as_dir in $PATH
  20031. -do
  20032. - IFS=$as_save_IFS
  20033. - test -z "$as_dir" && as_dir=.
  20034. - for ac_exec_ext in '' $ac_executable_extensions; do
  20035. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20036. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  20037. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20038. - break 2
  20039. - fi
  20040. -done
  20041. -done
  20042. -IFS=$as_save_IFS
  20043. -fi
  20044. -fi
  20045. -AR=$ac_cv_prog_AR
  20046. -if test -n "$AR"; then
  20047. - { echo "$as_me:$LINENO: result: $AR" >&5
  20048. -echo "${ECHO_T}$AR" >&6; }
  20049. -else
  20050. - { echo "$as_me:$LINENO: result: no" >&5
  20051. -echo "${ECHO_T}no" >&6; }
  20052. -fi
  20053. -fi
  20054. -if test -z "$ac_cv_prog_AR"; then
  20055. - ac_ct_AR=$AR
  20056. - # Extract the first word of "ar", so it can be a program name with args.
  20057. -set dummy ar; ac_word=$2
  20058. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20059. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20060. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  20061. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20062. -else
  20063. - if test -n "$ac_ct_AR"; then
  20064. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  20065. -else
  20066. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20067. -for as_dir in $PATH
  20068. -do
  20069. - IFS=$as_save_IFS
  20070. - test -z "$as_dir" && as_dir=.
  20071. - for ac_exec_ext in '' $ac_executable_extensions; do
  20072. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20073. - ac_cv_prog_ac_ct_AR="ar"
  20074. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20075. - break 2
  20076. - fi
  20077. -done
  20078. -done
  20079. -IFS=$as_save_IFS
  20080. -fi
  20081. -fi
  20082. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  20083. -if test -n "$ac_ct_AR"; then
  20084. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  20085. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  20086. -else
  20087. - { echo "$as_me:$LINENO: result: no" >&5
  20088. -echo "${ECHO_T}no" >&6; }
  20089. -fi
  20090. - if test "x$ac_ct_AR" = x; then
  20091. - AR="false"
  20092. - else
  20093. - case $cross_compiling:$ac_tool_warned in
  20094. -yes:)
  20095. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20096. -whose name does not start with the host triplet. If you think this
  20097. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20098. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20099. -whose name does not start with the host triplet. If you think this
  20100. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20101. -ac_tool_warned=yes ;;
  20102. -esac
  20103. - AR=$ac_ct_AR
  20104. - fi
  20105. -else
  20106. - AR="$ac_cv_prog_AR"
  20107. -fi
  20108. -if test -n "$ac_tool_prefix"; then
  20109. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  20110. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  20111. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20112. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20113. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  20114. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20115. -else
  20116. - if test -n "$RANLIB"; then
  20117. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  20118. -else
  20119. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20120. -for as_dir in $PATH
  20121. -do
  20122. - IFS=$as_save_IFS
  20123. - test -z "$as_dir" && as_dir=.
  20124. - for ac_exec_ext in '' $ac_executable_extensions; do
  20125. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20126. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  20127. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20128. - break 2
  20129. - fi
  20130. -done
  20131. -done
  20132. -IFS=$as_save_IFS
  20133. +
  20134. +
  20135. +# Check whether --enable-libtool-lock was given.
  20136. +if test "${enable_libtool_lock+set}" = set; then :
  20137. + enableval=$enable_libtool_lock;
  20138. fi
  20139. -fi
  20140. -RANLIB=$ac_cv_prog_RANLIB
  20141. -if test -n "$RANLIB"; then
  20142. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  20143. -echo "${ECHO_T}$RANLIB" >&6; }
  20144. +
  20145. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20146. +
  20147. +# Some flags need to be propagated to the compiler or linker for good
  20148. +# libtool support.
  20149. +case $host in
  20150. +ia64-*-hpux*)
  20151. + # Find out which ABI we are using.
  20152. + echo 'int i;' > conftest.$ac_ext
  20153. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20154. + (eval $ac_compile) 2>&5
  20155. + ac_status=$?
  20156. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20157. + test $ac_status = 0; }; then
  20158. + case `/usr/bin/file conftest.$ac_objext` in
  20159. + *ELF-32*)
  20160. + HPUX_IA64_MODE="32"
  20161. + ;;
  20162. + *ELF-64*)
  20163. + HPUX_IA64_MODE="64"
  20164. + ;;
  20165. + esac
  20166. + fi
  20167. + rm -rf conftest*
  20168. + ;;
  20169. +*-*-irix6*)
  20170. + # Find out which ABI we are using.
  20171. + echo '#line 5629 "configure"' > conftest.$ac_ext
  20172. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20173. + (eval $ac_compile) 2>&5
  20174. + ac_status=$?
  20175. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20176. + test $ac_status = 0; }; then
  20177. + if test "$lt_cv_prog_gnu_ld" = yes; then
  20178. + case `/usr/bin/file conftest.$ac_objext` in
  20179. + *32-bit*)
  20180. + LD="${LD-ld} -melf32bsmip"
  20181. + ;;
  20182. + *N32*)
  20183. + LD="${LD-ld} -melf32bmipn32"
  20184. + ;;
  20185. + *64-bit*)
  20186. + LD="${LD-ld} -melf64bmip"
  20187. + ;;
  20188. + esac
  20189. + else
  20190. + case `/usr/bin/file conftest.$ac_objext` in
  20191. + *32-bit*)
  20192. + LD="${LD-ld} -32"
  20193. + ;;
  20194. + *N32*)
  20195. + LD="${LD-ld} -n32"
  20196. + ;;
  20197. + *64-bit*)
  20198. + LD="${LD-ld} -64"
  20199. + ;;
  20200. + esac
  20201. + fi
  20202. + fi
  20203. + rm -rf conftest*
  20204. + ;;
  20205. +
  20206. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  20207. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  20208. + # Find out which ABI we are using.
  20209. + echo 'int i;' > conftest.$ac_ext
  20210. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20211. + (eval $ac_compile) 2>&5
  20212. + ac_status=$?
  20213. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20214. + test $ac_status = 0; }; then
  20215. + case `/usr/bin/file conftest.o` in
  20216. + *32-bit*)
  20217. + case $host in
  20218. + x86_64-*kfreebsd*-gnu)
  20219. + LD="${LD-ld} -m elf_i386_fbsd"
  20220. + ;;
  20221. + x86_64-*linux*)
  20222. + LD="${LD-ld} -m elf_i386"
  20223. + ;;
  20224. + ppc64-*linux*|powerpc64-*linux*)
  20225. + LD="${LD-ld} -m elf32ppclinux"
  20226. + ;;
  20227. + s390x-*linux*)
  20228. + LD="${LD-ld} -m elf_s390"
  20229. + ;;
  20230. + sparc64-*linux*)
  20231. + LD="${LD-ld} -m elf32_sparc"
  20232. + ;;
  20233. + esac
  20234. + ;;
  20235. + *64-bit*)
  20236. + case $host in
  20237. + x86_64-*kfreebsd*-gnu)
  20238. + LD="${LD-ld} -m elf_x86_64_fbsd"
  20239. + ;;
  20240. + x86_64-*linux*)
  20241. + LD="${LD-ld} -m elf_x86_64"
  20242. + ;;
  20243. + ppc*-*linux*|powerpc*-*linux*)
  20244. + LD="${LD-ld} -m elf64ppc"
  20245. + ;;
  20246. + s390*-*linux*|s390*-*tpf*)
  20247. + LD="${LD-ld} -m elf64_s390"
  20248. + ;;
  20249. + sparc*-*linux*)
  20250. + LD="${LD-ld} -m elf64_sparc"
  20251. + ;;
  20252. + esac
  20253. + ;;
  20254. + esac
  20255. + fi
  20256. + rm -rf conftest*
  20257. + ;;
  20258. +
  20259. +*-*-sco3.2v5*)
  20260. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20261. + SAVE_CFLAGS="$CFLAGS"
  20262. + CFLAGS="$CFLAGS -belf"
  20263. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  20264. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  20265. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  20266. + $as_echo_n "(cached) " >&6
  20267. else
  20268. - { echo "$as_me:$LINENO: result: no" >&5
  20269. -echo "${ECHO_T}no" >&6; }
  20270. -fi
  20271. + ac_ext=c
  20272. +ac_cpp='$CPP $CPPFLAGS'
  20273. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20274. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20275. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20276. +
  20277. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20278. +/* end confdefs.h. */
  20279. +
  20280. +int
  20281. +main ()
  20282. +{
  20283. + ;
  20284. + return 0;
  20285. +}
  20286. +_ACEOF
  20287. +if ac_fn_c_try_link "$LINENO"; then :
  20288. + lt_cv_cc_needs_belf=yes
  20289. +else
  20290. + lt_cv_cc_needs_belf=no
  20291. +fi
  20292. +rm -f core conftest.err conftest.$ac_objext \
  20293. + conftest$ac_exeext conftest.$ac_ext
  20294. + ac_ext=c
  20295. +ac_cpp='$CPP $CPPFLAGS'
  20296. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20297. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20298. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20299. fi
  20300. -if test -z "$ac_cv_prog_RANLIB"; then
  20301. - ac_ct_RANLIB=$RANLIB
  20302. - # Extract the first word of "ranlib", so it can be a program name with args.
  20303. -set dummy ranlib; ac_word=$2
  20304. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20305. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20306. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  20307. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  20309. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  20310. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20311. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20312. + CFLAGS="$SAVE_CFLAGS"
  20313. + fi
  20314. + ;;
  20315. +sparc*-*solaris*)
  20316. + # Find out which ABI we are using.
  20317. + echo 'int i;' > conftest.$ac_ext
  20318. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20319. + (eval $ac_compile) 2>&5
  20320. + ac_status=$?
  20321. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20322. + test $ac_status = 0; }; then
  20323. + case `/usr/bin/file conftest.o` in
  20324. + *64-bit*)
  20325. + case $lt_cv_prog_gnu_ld in
  20326. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  20327. + *)
  20328. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  20329. + LD="${LD-ld} -64"
  20330. + fi
  20331. + ;;
  20332. + esac
  20333. + ;;
  20334. + esac
  20335. + fi
  20336. + rm -rf conftest*
  20337. + ;;
  20338. +esac
  20339. +
  20340. +need_locks="$enable_libtool_lock"
  20341. +
  20342. +
  20343. + case $host_os in
  20344. + rhapsody* | darwin*)
  20345. + if test -n "$ac_tool_prefix"; then
  20346. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20347. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20349. +$as_echo_n "checking for $ac_word... " >&6; }
  20350. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  20351. + $as_echo_n "(cached) " >&6
  20352. else
  20353. - if test -n "$ac_ct_RANLIB"; then
  20354. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  20355. + if test -n "$DSYMUTIL"; then
  20356. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  20357. else
  20358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20359. for as_dir in $PATH
  20360. do
  20361. IFS=$as_save_IFS
  20362. test -z "$as_dir" && as_dir=.
  20363. - for ac_exec_ext in '' $ac_executable_extensions; do
  20364. + for ac_exec_ext in '' $ac_executable_extensions; do
  20365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20366. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  20367. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20368. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20369. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20370. break 2
  20371. fi
  20372. done
  20373. + done
  20374. +IFS=$as_save_IFS
  20375. +
  20376. +fi
  20377. +fi
  20378. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20379. +if test -n "$DSYMUTIL"; then
  20380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  20381. +$as_echo "$DSYMUTIL" >&6; }
  20382. +else
  20383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20384. +$as_echo "no" >&6; }
  20385. +fi
  20386. +
  20387. +
  20388. +fi
  20389. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  20390. + ac_ct_DSYMUTIL=$DSYMUTIL
  20391. + # Extract the first word of "dsymutil", so it can be a program name with args.
  20392. +set dummy dsymutil; ac_word=$2
  20393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20394. +$as_echo_n "checking for $ac_word... " >&6; }
  20395. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  20396. + $as_echo_n "(cached) " >&6
  20397. +else
  20398. + if test -n "$ac_ct_DSYMUTIL"; then
  20399. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  20400. +else
  20401. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20402. +for as_dir in $PATH
  20403. +do
  20404. + IFS=$as_save_IFS
  20405. + test -z "$as_dir" && as_dir=.
  20406. + for ac_exec_ext in '' $ac_executable_extensions; do
  20407. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20408. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20409. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20410. + break 2
  20411. + fi
  20412. done
  20413. + done
  20414. IFS=$as_save_IFS
  20415. fi
  20416. fi
  20417. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  20418. -if test -n "$ac_ct_RANLIB"; then
  20419. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  20420. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  20421. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20422. +if test -n "$ac_ct_DSYMUTIL"; then
  20423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  20424. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  20425. else
  20426. - { echo "$as_me:$LINENO: result: no" >&5
  20427. -echo "${ECHO_T}no" >&6; }
  20428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20429. +$as_echo "no" >&6; }
  20430. fi
  20431. - if test "x$ac_ct_RANLIB" = x; then
  20432. - RANLIB=":"
  20433. + if test "x$ac_ct_DSYMUTIL" = x; then
  20434. + DSYMUTIL=":"
  20435. else
  20436. case $cross_compiling:$ac_tool_warned in
  20437. yes:)
  20438. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20439. -whose name does not start with the host triplet. If you think this
  20440. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20441. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20442. -whose name does not start with the host triplet. If you think this
  20443. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20445. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20446. ac_tool_warned=yes ;;
  20447. esac
  20448. - RANLIB=$ac_ct_RANLIB
  20449. + DSYMUTIL=$ac_ct_DSYMUTIL
  20450. fi
  20451. else
  20452. - RANLIB="$ac_cv_prog_RANLIB"
  20453. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  20454. fi
  20455. -if test -n "$ac_tool_prefix"; then
  20456. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  20457. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  20458. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20459. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20460. -if test "${ac_cv_prog_STRIP+set}" = set; then
  20461. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20462. + if test -n "$ac_tool_prefix"; then
  20463. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20464. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20465. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20466. +$as_echo_n "checking for $ac_word... " >&6; }
  20467. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  20468. + $as_echo_n "(cached) " >&6
  20469. else
  20470. - if test -n "$STRIP"; then
  20471. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  20472. + if test -n "$NMEDIT"; then
  20473. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  20474. else
  20475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20476. for as_dir in $PATH
  20477. do
  20478. IFS=$as_save_IFS
  20479. test -z "$as_dir" && as_dir=.
  20480. - for ac_exec_ext in '' $ac_executable_extensions; do
  20481. + for ac_exec_ext in '' $ac_executable_extensions; do
  20482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20483. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  20484. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20485. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  20486. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20487. break 2
  20488. fi
  20489. done
  20490. -done
  20491. + done
  20492. IFS=$as_save_IFS
  20493. fi
  20494. fi
  20495. -STRIP=$ac_cv_prog_STRIP
  20496. -if test -n "$STRIP"; then
  20497. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  20498. -echo "${ECHO_T}$STRIP" >&6; }
  20499. +NMEDIT=$ac_cv_prog_NMEDIT
  20500. +if test -n "$NMEDIT"; then
  20501. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  20502. +$as_echo "$NMEDIT" >&6; }
  20503. else
  20504. - { echo "$as_me:$LINENO: result: no" >&5
  20505. -echo "${ECHO_T}no" >&6; }
  20506. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20507. +$as_echo "no" >&6; }
  20508. fi
  20509. fi
  20510. -if test -z "$ac_cv_prog_STRIP"; then
  20511. - ac_ct_STRIP=$STRIP
  20512. - # Extract the first word of "strip", so it can be a program name with args.
  20513. -set dummy strip; ac_word=$2
  20514. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20515. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20516. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  20517. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20518. +if test -z "$ac_cv_prog_NMEDIT"; then
  20519. + ac_ct_NMEDIT=$NMEDIT
  20520. + # Extract the first word of "nmedit", so it can be a program name with args.
  20521. +set dummy nmedit; ac_word=$2
  20522. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20523. +$as_echo_n "checking for $ac_word... " >&6; }
  20524. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  20525. + $as_echo_n "(cached) " >&6
  20526. else
  20527. - if test -n "$ac_ct_STRIP"; then
  20528. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  20529. + if test -n "$ac_ct_NMEDIT"; then
  20530. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  20531. else
  20532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20533. for as_dir in $PATH
  20534. do
  20535. IFS=$as_save_IFS
  20536. test -z "$as_dir" && as_dir=.
  20537. - for ac_exec_ext in '' $ac_executable_extensions; do
  20538. + for ac_exec_ext in '' $ac_executable_extensions; do
  20539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20540. - ac_cv_prog_ac_ct_STRIP="strip"
  20541. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20542. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20543. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20544. break 2
  20545. fi
  20546. done
  20547. -done
  20548. + done
  20549. IFS=$as_save_IFS
  20550. fi
  20551. fi
  20552. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  20553. -if test -n "$ac_ct_STRIP"; then
  20554. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  20555. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  20556. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20557. +if test -n "$ac_ct_NMEDIT"; then
  20558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  20559. +$as_echo "$ac_ct_NMEDIT" >&6; }
  20560. else
  20561. - { echo "$as_me:$LINENO: result: no" >&5
  20562. -echo "${ECHO_T}no" >&6; }
  20563. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20564. +$as_echo "no" >&6; }
  20565. fi
  20566. - if test "x$ac_ct_STRIP" = x; then
  20567. - STRIP=":"
  20568. + if test "x$ac_ct_NMEDIT" = x; then
  20569. + NMEDIT=":"
  20570. else
  20571. case $cross_compiling:$ac_tool_warned in
  20572. yes:)
  20573. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20574. -whose name does not start with the host triplet. If you think this
  20575. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20576. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20577. -whose name does not start with the host triplet. If you think this
  20578. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20580. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20581. ac_tool_warned=yes ;;
  20582. esac
  20583. - STRIP=$ac_ct_STRIP
  20584. + NMEDIT=$ac_ct_NMEDIT
  20585. fi
  20586. else
  20587. - STRIP="$ac_cv_prog_STRIP"
  20588. + NMEDIT="$ac_cv_prog_NMEDIT"
  20589. fi
  20590. + if test -n "$ac_tool_prefix"; then
  20591. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  20592. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  20593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20594. +$as_echo_n "checking for $ac_word... " >&6; }
  20595. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  20596. + $as_echo_n "(cached) " >&6
  20597. +else
  20598. + if test -n "$LIPO"; then
  20599. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  20600. +else
  20601. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20602. +for as_dir in $PATH
  20603. +do
  20604. + IFS=$as_save_IFS
  20605. + test -z "$as_dir" && as_dir=.
  20606. + for ac_exec_ext in '' $ac_executable_extensions; do
  20607. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20608. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  20609. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20610. + break 2
  20611. + fi
  20612. +done
  20613. + done
  20614. +IFS=$as_save_IFS
  20615. -old_CC="$CC"
  20616. -old_CFLAGS="$CFLAGS"
  20617. +fi
  20618. +fi
  20619. +LIPO=$ac_cv_prog_LIPO
  20620. +if test -n "$LIPO"; then
  20621. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  20622. +$as_echo "$LIPO" >&6; }
  20623. +else
  20624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20625. +$as_echo "no" >&6; }
  20626. +fi
  20627. -# Set sane defaults for various variables
  20628. -test -z "$AR" && AR=ar
  20629. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  20630. -test -z "$AS" && AS=as
  20631. -test -z "$CC" && CC=cc
  20632. -test -z "$LTCC" && LTCC=$CC
  20633. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  20634. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  20635. -test -z "$LD" && LD=ld
  20636. -test -z "$LN_S" && LN_S="ln -s"
  20637. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  20638. -test -z "$NM" && NM=nm
  20639. -test -z "$SED" && SED=sed
  20640. -test -z "$OBJDUMP" && OBJDUMP=objdump
  20641. -test -z "$RANLIB" && RANLIB=:
  20642. -test -z "$STRIP" && STRIP=:
  20643. -test -z "$ac_objext" && ac_objext=o
  20644. -# Determine commands to create old-style static archives.
  20645. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  20646. -old_postinstall_cmds='chmod 644 $oldlib'
  20647. -old_postuninstall_cmds=
  20648. -
  20649. -if test -n "$RANLIB"; then
  20650. - case $host_os in
  20651. - openbsd*)
  20652. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  20653. - ;;
  20654. - *)
  20655. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  20656. - ;;
  20657. - esac
  20658. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  20659. fi
  20660. -
  20661. -for cc_temp in $compiler""; do
  20662. - case $cc_temp in
  20663. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20664. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20665. - \-*) ;;
  20666. - *) break;;
  20667. - esac
  20668. -done
  20669. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20670. -
  20671. -
  20672. -# Only perform the check for file, if the check method requires it
  20673. -case $deplibs_check_method in
  20674. -file_magic*)
  20675. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20676. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  20677. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  20678. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20679. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20680. +if test -z "$ac_cv_prog_LIPO"; then
  20681. + ac_ct_LIPO=$LIPO
  20682. + # Extract the first word of "lipo", so it can be a program name with args.
  20683. +set dummy lipo; ac_word=$2
  20684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20685. +$as_echo_n "checking for $ac_word... " >&6; }
  20686. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  20687. + $as_echo_n "(cached) " >&6
  20688. else
  20689. - case $MAGIC_CMD in
  20690. -[\\/*] | ?:[\\/]*)
  20691. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20692. - ;;
  20693. -*)
  20694. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20695. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20696. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20697. - for ac_dir in $ac_dummy; do
  20698. - IFS="$lt_save_ifs"
  20699. - test -z "$ac_dir" && ac_dir=.
  20700. - if test -f $ac_dir/${ac_tool_prefix}file; then
  20701. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  20702. - if test -n "$file_magic_test_file"; then
  20703. - case $deplibs_check_method in
  20704. - "file_magic "*)
  20705. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20706. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20707. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20708. - $EGREP "$file_magic_regex" > /dev/null; then
  20709. - :
  20710. - else
  20711. - cat <<EOF 1>&2
  20712. -
  20713. -*** Warning: the command libtool uses to detect shared libraries,
  20714. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20715. -*** The result is that libtool may fail to recognize shared libraries
  20716. -*** as such. This will affect the creation of libtool libraries that
  20717. -*** depend on shared libraries, but programs linked with such libtool
  20718. -*** libraries will work regardless of this problem. Nevertheless, you
  20719. -*** may want to report the problem to your system manager and/or to
  20720. -*** bug-libtool@gnu.org
  20721. -
  20722. -EOF
  20723. - fi ;;
  20724. - esac
  20725. - fi
  20726. - break
  20727. - fi
  20728. + if test -n "$ac_ct_LIPO"; then
  20729. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  20730. +else
  20731. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20732. +for as_dir in $PATH
  20733. +do
  20734. + IFS=$as_save_IFS
  20735. + test -z "$as_dir" && as_dir=.
  20736. + for ac_exec_ext in '' $ac_executable_extensions; do
  20737. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20738. + ac_cv_prog_ac_ct_LIPO="lipo"
  20739. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20740. + break 2
  20741. + fi
  20742. +done
  20743. done
  20744. - IFS="$lt_save_ifs"
  20745. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20746. - ;;
  20747. -esac
  20748. -fi
  20749. +IFS=$as_save_IFS
  20750. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20751. -if test -n "$MAGIC_CMD"; then
  20752. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20753. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  20754. -else
  20755. - { echo "$as_me:$LINENO: result: no" >&5
  20756. -echo "${ECHO_T}no" >&6; }
  20757. fi
  20758. -
  20759. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  20760. - if test -n "$ac_tool_prefix"; then
  20761. - { echo "$as_me:$LINENO: checking for file" >&5
  20762. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  20763. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20764. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20765. -else
  20766. - case $MAGIC_CMD in
  20767. -[\\/*] | ?:[\\/]*)
  20768. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20769. - ;;
  20770. -*)
  20771. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20772. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20773. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20774. - for ac_dir in $ac_dummy; do
  20775. - IFS="$lt_save_ifs"
  20776. - test -z "$ac_dir" && ac_dir=.
  20777. - if test -f $ac_dir/file; then
  20778. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  20779. - if test -n "$file_magic_test_file"; then
  20780. - case $deplibs_check_method in
  20781. - "file_magic "*)
  20782. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20783. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20784. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20785. - $EGREP "$file_magic_regex" > /dev/null; then
  20786. - :
  20787. - else
  20788. - cat <<EOF 1>&2
  20789. -
  20790. -*** Warning: the command libtool uses to detect shared libraries,
  20791. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20792. -*** The result is that libtool may fail to recognize shared libraries
  20793. -*** as such. This will affect the creation of libtool libraries that
  20794. -*** depend on shared libraries, but programs linked with such libtool
  20795. -*** libraries will work regardless of this problem. Nevertheless, you
  20796. -*** may want to report the problem to your system manager and/or to
  20797. -*** bug-libtool@gnu.org
  20798. -
  20799. -EOF
  20800. - fi ;;
  20801. - esac
  20802. - fi
  20803. - break
  20804. - fi
  20805. - done
  20806. - IFS="$lt_save_ifs"
  20807. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20808. - ;;
  20809. -esac
  20810. fi
  20811. -
  20812. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20813. -if test -n "$MAGIC_CMD"; then
  20814. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20815. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  20816. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  20817. +if test -n "$ac_ct_LIPO"; then
  20818. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  20819. +$as_echo "$ac_ct_LIPO" >&6; }
  20820. else
  20821. - { echo "$as_me:$LINENO: result: no" >&5
  20822. -echo "${ECHO_T}no" >&6; }
  20823. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20824. +$as_echo "no" >&6; }
  20825. fi
  20826. + if test "x$ac_ct_LIPO" = x; then
  20827. + LIPO=":"
  20828. else
  20829. - MAGIC_CMD=:
  20830. + case $cross_compiling:$ac_tool_warned in
  20831. +yes:)
  20832. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20833. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20834. +ac_tool_warned=yes ;;
  20835. +esac
  20836. + LIPO=$ac_ct_LIPO
  20837. fi
  20838. +else
  20839. + LIPO="$ac_cv_prog_LIPO"
  20840. fi
  20841. - fi
  20842. - ;;
  20843. -esac
  20844. -
  20845. -
  20846. - case $host_os in
  20847. - rhapsody* | darwin*)
  20848. if test -n "$ac_tool_prefix"; then
  20849. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20850. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20851. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20852. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20853. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  20854. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20855. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  20856. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  20857. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20858. +$as_echo_n "checking for $ac_word... " >&6; }
  20859. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  20860. + $as_echo_n "(cached) " >&6
  20861. else
  20862. - if test -n "$DSYMUTIL"; then
  20863. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  20864. + if test -n "$OTOOL"; then
  20865. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  20866. else
  20867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20868. for as_dir in $PATH
  20869. do
  20870. IFS=$as_save_IFS
  20871. test -z "$as_dir" && as_dir=.
  20872. - for ac_exec_ext in '' $ac_executable_extensions; do
  20873. + for ac_exec_ext in '' $ac_executable_extensions; do
  20874. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20875. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20876. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20877. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  20878. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20879. break 2
  20880. fi
  20881. done
  20882. -done
  20883. + done
  20884. IFS=$as_save_IFS
  20885. fi
  20886. fi
  20887. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20888. -if test -n "$DSYMUTIL"; then
  20889. - { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  20890. -echo "${ECHO_T}$DSYMUTIL" >&6; }
  20891. +OTOOL=$ac_cv_prog_OTOOL
  20892. +if test -n "$OTOOL"; then
  20893. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  20894. +$as_echo "$OTOOL" >&6; }
  20895. else
  20896. - { echo "$as_me:$LINENO: result: no" >&5
  20897. -echo "${ECHO_T}no" >&6; }
  20898. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20899. +$as_echo "no" >&6; }
  20900. fi
  20901. fi
  20902. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  20903. - ac_ct_DSYMUTIL=$DSYMUTIL
  20904. - # Extract the first word of "dsymutil", so it can be a program name with args.
  20905. -set dummy dsymutil; ac_word=$2
  20906. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20907. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20908. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  20909. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20910. +if test -z "$ac_cv_prog_OTOOL"; then
  20911. + ac_ct_OTOOL=$OTOOL
  20912. + # Extract the first word of "otool", so it can be a program name with args.
  20913. +set dummy otool; ac_word=$2
  20914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20915. +$as_echo_n "checking for $ac_word... " >&6; }
  20916. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  20917. + $as_echo_n "(cached) " >&6
  20918. else
  20919. - if test -n "$ac_ct_DSYMUTIL"; then
  20920. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  20921. + if test -n "$ac_ct_OTOOL"; then
  20922. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  20923. else
  20924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20925. for as_dir in $PATH
  20926. do
  20927. IFS=$as_save_IFS
  20928. test -z "$as_dir" && as_dir=.
  20929. - for ac_exec_ext in '' $ac_executable_extensions; do
  20930. + for ac_exec_ext in '' $ac_executable_extensions; do
  20931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20932. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20933. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20934. + ac_cv_prog_ac_ct_OTOOL="otool"
  20935. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20936. break 2
  20937. fi
  20938. done
  20939. -done
  20940. + done
  20941. IFS=$as_save_IFS
  20942. fi
  20943. fi
  20944. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20945. -if test -n "$ac_ct_DSYMUTIL"; then
  20946. - { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  20947. -echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  20948. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  20949. +if test -n "$ac_ct_OTOOL"; then
  20950. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  20951. +$as_echo "$ac_ct_OTOOL" >&6; }
  20952. else
  20953. - { echo "$as_me:$LINENO: result: no" >&5
  20954. -echo "${ECHO_T}no" >&6; }
  20955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20956. +$as_echo "no" >&6; }
  20957. fi
  20958. - if test "x$ac_ct_DSYMUTIL" = x; then
  20959. - DSYMUTIL=":"
  20960. + if test "x$ac_ct_OTOOL" = x; then
  20961. + OTOOL=":"
  20962. else
  20963. case $cross_compiling:$ac_tool_warned in
  20964. yes:)
  20965. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20966. -whose name does not start with the host triplet. If you think this
  20967. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20968. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20969. -whose name does not start with the host triplet. If you think this
  20970. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20971. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20972. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20973. ac_tool_warned=yes ;;
  20974. esac
  20975. - DSYMUTIL=$ac_ct_DSYMUTIL
  20976. + OTOOL=$ac_ct_OTOOL
  20977. fi
  20978. else
  20979. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  20980. + OTOOL="$ac_cv_prog_OTOOL"
  20981. fi
  20982. if test -n "$ac_tool_prefix"; then
  20983. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20984. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20985. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20986. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20987. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  20988. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20989. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  20990. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  20991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20992. +$as_echo_n "checking for $ac_word... " >&6; }
  20993. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  20994. + $as_echo_n "(cached) " >&6
  20995. else
  20996. - if test -n "$NMEDIT"; then
  20997. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  20998. + if test -n "$OTOOL64"; then
  20999. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  21000. else
  21001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21002. for as_dir in $PATH
  21003. do
  21004. IFS=$as_save_IFS
  21005. test -z "$as_dir" && as_dir=.
  21006. - for ac_exec_ext in '' $ac_executable_extensions; do
  21007. + for ac_exec_ext in '' $ac_executable_extensions; do
  21008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21009. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  21010. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21011. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  21012. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21013. break 2
  21014. fi
  21015. done
  21016. -done
  21017. + done
  21018. IFS=$as_save_IFS
  21019. fi
  21020. fi
  21021. -NMEDIT=$ac_cv_prog_NMEDIT
  21022. -if test -n "$NMEDIT"; then
  21023. - { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  21024. -echo "${ECHO_T}$NMEDIT" >&6; }
  21025. +OTOOL64=$ac_cv_prog_OTOOL64
  21026. +if test -n "$OTOOL64"; then
  21027. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  21028. +$as_echo "$OTOOL64" >&6; }
  21029. else
  21030. - { echo "$as_me:$LINENO: result: no" >&5
  21031. -echo "${ECHO_T}no" >&6; }
  21032. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21033. +$as_echo "no" >&6; }
  21034. fi
  21035. fi
  21036. -if test -z "$ac_cv_prog_NMEDIT"; then
  21037. - ac_ct_NMEDIT=$NMEDIT
  21038. - # Extract the first word of "nmedit", so it can be a program name with args.
  21039. -set dummy nmedit; ac_word=$2
  21040. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21041. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21042. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  21043. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21044. +if test -z "$ac_cv_prog_OTOOL64"; then
  21045. + ac_ct_OTOOL64=$OTOOL64
  21046. + # Extract the first word of "otool64", so it can be a program name with args.
  21047. +set dummy otool64; ac_word=$2
  21048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21049. +$as_echo_n "checking for $ac_word... " >&6; }
  21050. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  21051. + $as_echo_n "(cached) " >&6
  21052. else
  21053. - if test -n "$ac_ct_NMEDIT"; then
  21054. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  21055. + if test -n "$ac_ct_OTOOL64"; then
  21056. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  21057. else
  21058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21059. for as_dir in $PATH
  21060. do
  21061. IFS=$as_save_IFS
  21062. test -z "$as_dir" && as_dir=.
  21063. - for ac_exec_ext in '' $ac_executable_extensions; do
  21064. + for ac_exec_ext in '' $ac_executable_extensions; do
  21065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21066. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  21067. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21068. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  21069. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21070. break 2
  21071. fi
  21072. done
  21073. -done
  21074. + done
  21075. IFS=$as_save_IFS
  21076. fi
  21077. fi
  21078. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  21079. -if test -n "$ac_ct_NMEDIT"; then
  21080. - { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  21081. -echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  21082. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  21083. +if test -n "$ac_ct_OTOOL64"; then
  21084. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  21085. +$as_echo "$ac_ct_OTOOL64" >&6; }
  21086. else
  21087. - { echo "$as_me:$LINENO: result: no" >&5
  21088. -echo "${ECHO_T}no" >&6; }
  21089. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21090. +$as_echo "no" >&6; }
  21091. fi
  21092. - if test "x$ac_ct_NMEDIT" = x; then
  21093. - NMEDIT=":"
  21094. + if test "x$ac_ct_OTOOL64" = x; then
  21095. + OTOOL64=":"
  21096. else
  21097. case $cross_compiling:$ac_tool_warned in
  21098. yes:)
  21099. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21100. -whose name does not start with the host triplet. If you think this
  21101. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21102. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21103. -whose name does not start with the host triplet. If you think this
  21104. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21106. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21107. ac_tool_warned=yes ;;
  21108. esac
  21109. - NMEDIT=$ac_ct_NMEDIT
  21110. + OTOOL64=$ac_ct_OTOOL64
  21111. fi
  21112. else
  21113. - NMEDIT="$ac_cv_prog_NMEDIT"
  21114. + OTOOL64="$ac_cv_prog_OTOOL64"
  21115. fi
  21116. - { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  21117. -echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  21118. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  21119. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21120. +
  21121. +
  21122. +
  21123. +
  21124. +
  21125. +
  21126. +
  21127. +
  21128. +
  21129. +
  21130. +
  21131. +
  21132. +
  21133. +
  21134. +
  21135. +
  21136. +
  21137. +
  21138. +
  21139. +
  21140. +
  21141. +
  21142. +
  21143. +
  21144. +
  21145. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  21146. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  21147. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  21148. + $as_echo_n "(cached) " >&6
  21149. else
  21150. lt_cv_apple_cc_single_mod=no
  21151. if test -z "${LT_MULTI_MODULE}"; then
  21152. - # By default we will add the -single_module flag. You can override
  21153. - # by either setting the environment variable LT_MULTI_MODULE
  21154. - # non-empty at configure time, or by adding -multi_module to the
  21155. - # link flags.
  21156. - echo "int foo(void){return 1;}" > conftest.c
  21157. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21158. - -dynamiclib ${wl}-single_module conftest.c
  21159. - if test -f libconftest.dylib; then
  21160. - lt_cv_apple_cc_single_mod=yes
  21161. - rm -rf libconftest.dylib*
  21162. - fi
  21163. - rm conftest.c
  21164. + # By default we will add the -single_module flag. You can override
  21165. + # by either setting the environment variable LT_MULTI_MODULE
  21166. + # non-empty at configure time, or by adding -multi_module to the
  21167. + # link flags.
  21168. + rm -rf libconftest.dylib*
  21169. + echo "int foo(void){return 1;}" > conftest.c
  21170. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21171. +-dynamiclib -Wl,-single_module conftest.c" >&5
  21172. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21173. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  21174. + _lt_result=$?
  21175. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  21176. + lt_cv_apple_cc_single_mod=yes
  21177. + else
  21178. + cat conftest.err >&5
  21179. + fi
  21180. + rm -rf libconftest.dylib*
  21181. + rm -f conftest.*
  21182. fi
  21183. fi
  21184. -{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  21185. -echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  21186. - { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  21187. -echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  21188. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  21189. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21190. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  21191. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  21192. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  21193. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  21194. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  21195. + $as_echo_n "(cached) " >&6
  21196. else
  21197. lt_cv_ld_exported_symbols_list=no
  21198. save_LDFLAGS=$LDFLAGS
  21199. echo "_main" > conftest.sym
  21200. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  21201. - cat >conftest.$ac_ext <<_ACEOF
  21202. -/* confdefs.h. */
  21203. -_ACEOF
  21204. -cat confdefs.h >>conftest.$ac_ext
  21205. -cat >>conftest.$ac_ext <<_ACEOF
  21206. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21207. /* end confdefs.h. */
  21208. int
  21209. @@ -7250,55 +6326,34 @@
  21210. return 0;
  21211. }
  21212. _ACEOF
  21213. -rm -f conftest.$ac_objext conftest$ac_exeext
  21214. -if { (ac_try="$ac_link"
  21215. -case "(($ac_try" in
  21216. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21217. - *) ac_try_echo=$ac_try;;
  21218. -esac
  21219. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21220. - (eval "$ac_link") 2>conftest.er1
  21221. - ac_status=$?
  21222. - grep -v '^ *+' conftest.er1 >conftest.err
  21223. - rm -f conftest.er1
  21224. - cat conftest.err >&5
  21225. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21226. - (exit $ac_status); } && {
  21227. - test -z "$ac_c_werror_flag" ||
  21228. - test ! -s conftest.err
  21229. - } && test -s conftest$ac_exeext &&
  21230. - $as_test_x conftest$ac_exeext; then
  21231. +if ac_fn_c_try_link "$LINENO"; then :
  21232. lt_cv_ld_exported_symbols_list=yes
  21233. else
  21234. - echo "$as_me: failed program was:" >&5
  21235. -sed 's/^/| /' conftest.$ac_ext >&5
  21236. -
  21237. - lt_cv_ld_exported_symbols_list=no
  21238. + lt_cv_ld_exported_symbols_list=no
  21239. fi
  21240. -
  21241. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21242. - conftest$ac_exeext conftest.$ac_ext
  21243. - LDFLAGS="$save_LDFLAGS"
  21244. +rm -f core conftest.err conftest.$ac_objext \
  21245. + conftest$ac_exeext conftest.$ac_ext
  21246. + LDFLAGS="$save_LDFLAGS"
  21247. fi
  21248. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  21249. -echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  21250. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  21251. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  21252. case $host_os in
  21253. - rhapsody* | darwin1.[0123])
  21254. + rhapsody* | darwin1.[012])
  21255. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  21256. darwin1.*)
  21257. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21258. - darwin*)
  21259. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21260. + darwin*) # darwin 5.x on
  21261. # if running on 10.5 or later, the deployment target defaults
  21262. # to the OS version, if on x86, and 10.4, the deployment
  21263. # target defaults to 10.4. Don't you love it?
  21264. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  21265. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21266. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21267. - 10.[012]*)
  21268. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21269. - 10.*)
  21270. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21271. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21272. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21273. + 10.[012]*)
  21274. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21275. + 10.*)
  21276. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21277. esac
  21278. ;;
  21279. esac
  21280. @@ -7308,40 +6363,147 @@
  21281. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  21282. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  21283. else
  21284. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  21285. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  21286. fi
  21287. if test "$DSYMUTIL" != ":"; then
  21288. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  21289. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  21290. else
  21291. _lt_dsymutil=
  21292. fi
  21293. ;;
  21294. esac
  21295. +ac_ext=c
  21296. +ac_cpp='$CPP $CPPFLAGS'
  21297. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21298. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21299. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  21301. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  21302. +# On Suns, sometimes $CPP names a directory.
  21303. +if test -n "$CPP" && test -d "$CPP"; then
  21304. + CPP=
  21305. +fi
  21306. +if test -z "$CPP"; then
  21307. + if test "${ac_cv_prog_CPP+set}" = set; then :
  21308. + $as_echo_n "(cached) " >&6
  21309. +else
  21310. + # Double quotes because CPP needs to be expanded
  21311. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21312. + do
  21313. + ac_preproc_ok=false
  21314. +for ac_c_preproc_warn_flag in '' yes
  21315. +do
  21316. + # Use a header file that comes with gcc, so configuring glibc
  21317. + # with a fresh cross-compiler works.
  21318. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21319. + # <limits.h> exists even on freestanding compilers.
  21320. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21321. + # not just through cpp. "Syntax error" is here to catch this case.
  21322. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21323. +/* end confdefs.h. */
  21324. +#ifdef __STDC__
  21325. +# include <limits.h>
  21326. +#else
  21327. +# include <assert.h>
  21328. +#endif
  21329. + Syntax error
  21330. +_ACEOF
  21331. +if ac_fn_c_try_cpp "$LINENO"; then :
  21332. -enable_dlopen=no
  21333. -enable_win32_dll=no
  21334. -
  21335. -# Check whether --enable-libtool-lock was given.
  21336. -if test "${enable_libtool_lock+set}" = set; then
  21337. - enableval=$enable_libtool_lock;
  21338. -fi
  21339. -
  21340. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21341. +else
  21342. + # Broken: fails on valid input.
  21343. +continue
  21344. +fi
  21345. +rm -f conftest.err conftest.$ac_ext
  21346. +
  21347. + # OK, works on sane cases. Now check whether nonexistent headers
  21348. + # can be detected and how.
  21349. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21350. +/* end confdefs.h. */
  21351. +#include <ac_nonexistent.h>
  21352. +_ACEOF
  21353. +if ac_fn_c_try_cpp "$LINENO"; then :
  21354. + # Broken: success on invalid input.
  21355. +continue
  21356. +else
  21357. + # Passes both tests.
  21358. +ac_preproc_ok=:
  21359. +break
  21360. +fi
  21361. +rm -f conftest.err conftest.$ac_ext
  21362. +
  21363. +done
  21364. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21365. +rm -f conftest.err conftest.$ac_ext
  21366. +if $ac_preproc_ok; then :
  21367. + break
  21368. +fi
  21369. + done
  21370. + ac_cv_prog_CPP=$CPP
  21371. -# Check whether --with-pic was given.
  21372. -if test "${with_pic+set}" = set; then
  21373. - withval=$with_pic; pic_mode="$withval"
  21374. +fi
  21375. + CPP=$ac_cv_prog_CPP
  21376. else
  21377. - pic_mode=default
  21378. + ac_cv_prog_CPP=$CPP
  21379. fi
  21380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  21381. +$as_echo "$CPP" >&6; }
  21382. +ac_preproc_ok=false
  21383. +for ac_c_preproc_warn_flag in '' yes
  21384. +do
  21385. + # Use a header file that comes with gcc, so configuring glibc
  21386. + # with a fresh cross-compiler works.
  21387. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21388. + # <limits.h> exists even on freestanding compilers.
  21389. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21390. + # not just through cpp. "Syntax error" is here to catch this case.
  21391. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21392. +/* end confdefs.h. */
  21393. +#ifdef __STDC__
  21394. +# include <limits.h>
  21395. +#else
  21396. +# include <assert.h>
  21397. +#endif
  21398. + Syntax error
  21399. +_ACEOF
  21400. +if ac_fn_c_try_cpp "$LINENO"; then :
  21401. -test -z "$pic_mode" && pic_mode=default
  21402. +else
  21403. + # Broken: fails on valid input.
  21404. +continue
  21405. +fi
  21406. +rm -f conftest.err conftest.$ac_ext
  21407. +
  21408. + # OK, works on sane cases. Now check whether nonexistent headers
  21409. + # can be detected and how.
  21410. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21411. +/* end confdefs.h. */
  21412. +#include <ac_nonexistent.h>
  21413. +_ACEOF
  21414. +if ac_fn_c_try_cpp "$LINENO"; then :
  21415. + # Broken: success on invalid input.
  21416. +continue
  21417. +else
  21418. + # Passes both tests.
  21419. +ac_preproc_ok=:
  21420. +break
  21421. +fi
  21422. +rm -f conftest.err conftest.$ac_ext
  21423. +
  21424. +done
  21425. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21426. +rm -f conftest.err conftest.$ac_ext
  21427. +if $ac_preproc_ok; then :
  21428. +
  21429. +else
  21430. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21431. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21432. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  21433. +See \`config.log' for more details." "$LINENO" 5; }
  21434. +fi
  21435. -# Use C for the default configuration in the libtool script
  21436. -tagname=
  21437. -lt_save_CC="$CC"
  21438. ac_ext=c
  21439. ac_cpp='$CPP $CPPFLAGS'
  21440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21441. @@ -7349,9296 +6511,594 @@
  21442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21443. -# Source file extension for C test sources.
  21444. -ac_ext=c
  21445. -
  21446. -# Object file extension for compiled C test sources.
  21447. -objext=o
  21448. -objext=$objext
  21449. -
  21450. -# Code to be used in simple compile tests
  21451. -lt_simple_compile_test_code="int some_variable = 0;"
  21452. -
  21453. -# Code to be used in simple link tests
  21454. -lt_simple_link_test_code='int main(){return(0);}'
  21455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  21456. +$as_echo_n "checking for ANSI C header files... " >&6; }
  21457. +if test "${ac_cv_header_stdc+set}" = set; then :
  21458. + $as_echo_n "(cached) " >&6
  21459. +else
  21460. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21461. +/* end confdefs.h. */
  21462. +#include <stdlib.h>
  21463. +#include <stdarg.h>
  21464. +#include <string.h>
  21465. +#include <float.h>
  21466. +int
  21467. +main ()
  21468. +{
  21469. -# If no C compiler was specified, use CC.
  21470. -LTCC=${LTCC-"$CC"}
  21471. + ;
  21472. + return 0;
  21473. +}
  21474. +_ACEOF
  21475. +if ac_fn_c_try_compile "$LINENO"; then :
  21476. + ac_cv_header_stdc=yes
  21477. +else
  21478. + ac_cv_header_stdc=no
  21479. +fi
  21480. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21481. -# If no C compiler flags were specified, use CFLAGS.
  21482. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21483. +if test $ac_cv_header_stdc = yes; then
  21484. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21485. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21486. +/* end confdefs.h. */
  21487. +#include <string.h>
  21488. -# Allow CC to be a program name with arguments.
  21489. -compiler=$CC
  21490. +_ACEOF
  21491. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21492. + $EGREP "memchr" >/dev/null 2>&1; then :
  21493. +else
  21494. + ac_cv_header_stdc=no
  21495. +fi
  21496. +rm -f conftest*
  21497. -# save warnings/boilerplate of simple test code
  21498. -ac_outfile=conftest.$ac_objext
  21499. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  21500. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21501. -_lt_compiler_boilerplate=`cat conftest.err`
  21502. -$rm conftest*
  21503. +fi
  21504. -ac_outfile=conftest.$ac_objext
  21505. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  21506. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21507. -_lt_linker_boilerplate=`cat conftest.err`
  21508. -$rm -r conftest*
  21509. +if test $ac_cv_header_stdc = yes; then
  21510. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21511. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21512. +/* end confdefs.h. */
  21513. +#include <stdlib.h>
  21514. +_ACEOF
  21515. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21516. + $EGREP "free" >/dev/null 2>&1; then :
  21517. +else
  21518. + ac_cv_header_stdc=no
  21519. +fi
  21520. +rm -f conftest*
  21521. -lt_prog_compiler_no_builtin_flag=
  21522. +fi
  21523. -if test "$GCC" = yes; then
  21524. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  21525. +if test $ac_cv_header_stdc = yes; then
  21526. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21527. + if test "$cross_compiling" = yes; then :
  21528. + :
  21529. +else
  21530. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21531. +/* end confdefs.h. */
  21532. +#include <ctype.h>
  21533. +#include <stdlib.h>
  21534. +#if ((' ' & 0x0FF) == 0x020)
  21535. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21536. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21537. +#else
  21538. +# define ISLOWER(c) \
  21539. + (('a' <= (c) && (c) <= 'i') \
  21540. + || ('j' <= (c) && (c) <= 'r') \
  21541. + || ('s' <= (c) && (c) <= 'z'))
  21542. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21543. +#endif
  21544. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21545. +int
  21546. +main ()
  21547. +{
  21548. + int i;
  21549. + for (i = 0; i < 256; i++)
  21550. + if (XOR (islower (i), ISLOWER (i))
  21551. + || toupper (i) != TOUPPER (i))
  21552. + return 2;
  21553. + return 0;
  21554. +}
  21555. +_ACEOF
  21556. +if ac_fn_c_try_run "$LINENO"; then :
  21557. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  21558. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  21559. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  21560. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21561. else
  21562. - lt_cv_prog_compiler_rtti_exceptions=no
  21563. - ac_outfile=conftest.$ac_objext
  21564. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21565. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  21566. - # Insert the option either (1) after the last *FLAGS variable, or
  21567. - # (2) before a word containing "conftest.", or (3) at the end.
  21568. - # Note that $ac_compile itself does not contain backslashes and begins
  21569. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21570. - # The option is referenced via a variable to avoid confusing sed.
  21571. - lt_compile=`echo "$ac_compile" | $SED \
  21572. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21573. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21574. - -e 's:$: $lt_compiler_flag:'`
  21575. - (eval echo "\"\$as_me:7415: $lt_compile\"" >&5)
  21576. - (eval "$lt_compile" 2>conftest.err)
  21577. - ac_status=$?
  21578. - cat conftest.err >&5
  21579. - echo "$as_me:7419: \$? = $ac_status" >&5
  21580. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21581. - # The compiler can only warn and ignore the option if not recognized
  21582. - # So say no if there are warnings other than the usual output.
  21583. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21584. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21585. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21586. - lt_cv_prog_compiler_rtti_exceptions=yes
  21587. - fi
  21588. - fi
  21589. - $rm conftest*
  21590. -
  21591. + ac_cv_header_stdc=no
  21592. +fi
  21593. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21594. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  21595. fi
  21596. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21597. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21598. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21599. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  21600. -else
  21601. - :
  21602. fi
  21603. +fi
  21604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  21605. +$as_echo "$ac_cv_header_stdc" >&6; }
  21606. +if test $ac_cv_header_stdc = yes; then
  21607. +
  21608. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  21609. fi
  21610. -lt_prog_compiler_wl=
  21611. -lt_prog_compiler_pic=
  21612. -lt_prog_compiler_static=
  21613. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21614. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21615. + inttypes.h stdint.h unistd.h
  21616. +do :
  21617. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21618. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  21619. +"
  21620. +eval as_val=\$$as_ac_Header
  21621. + if test "x$as_val" = x""yes; then :
  21622. + cat >>confdefs.h <<_ACEOF
  21623. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21624. +_ACEOF
  21625. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21626. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  21627. +fi
  21628. - if test "$GCC" = yes; then
  21629. - lt_prog_compiler_wl='-Wl,'
  21630. - lt_prog_compiler_static='-static'
  21631. +done
  21632. - case $host_os in
  21633. - aix*)
  21634. - # All AIX code is PIC.
  21635. - if test "$host_cpu" = ia64; then
  21636. - # AIX 5 now supports IA64 processor
  21637. - lt_prog_compiler_static='-Bstatic'
  21638. - fi
  21639. - ;;
  21640. - amigaos*)
  21641. - # FIXME: we need at least 68020 code to build shared libraries, but
  21642. - # adding the `-m68020' flag to GCC prevents building anything better,
  21643. - # like `-m68040'.
  21644. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  21645. - ;;
  21646. -
  21647. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21648. - # PIC is the default for these OSes.
  21649. - ;;
  21650. -
  21651. - mingw* | cygwin* | pw32* | os2*)
  21652. - # This hack is so that the source file can tell whether it is being
  21653. - # built for inclusion in a dll (and should export symbols for example).
  21654. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21655. - # (--disable-auto-import) libraries
  21656. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21657. - ;;
  21658. +for ac_header in dlfcn.h
  21659. +do :
  21660. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  21661. +"
  21662. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  21663. + cat >>confdefs.h <<_ACEOF
  21664. +#define HAVE_DLFCN_H 1
  21665. +_ACEOF
  21666. - darwin* | rhapsody*)
  21667. - # PIC is the default on this platform
  21668. - # Common symbols not allowed in MH_DYLIB files
  21669. - lt_prog_compiler_pic='-fno-common'
  21670. - ;;
  21671. +fi
  21672. - interix[3-9]*)
  21673. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21674. - # Instead, we relocate shared libraries at runtime.
  21675. - ;;
  21676. +done
  21677. - msdosdjgpp*)
  21678. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  21679. - # on systems that don't support them.
  21680. - lt_prog_compiler_can_build_shared=no
  21681. - enable_shared=no
  21682. - ;;
  21683. - sysv4*MP*)
  21684. - if test -d /usr/nec; then
  21685. - lt_prog_compiler_pic=-Kconform_pic
  21686. - fi
  21687. - ;;
  21688. - hpux*)
  21689. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21690. - # not for PA HP-UX.
  21691. - case $host_cpu in
  21692. - hppa*64*|ia64*)
  21693. - # +Z the default
  21694. - ;;
  21695. - *)
  21696. - lt_prog_compiler_pic='-fPIC'
  21697. - ;;
  21698. - esac
  21699. - ;;
  21700. +# Set options
  21701. - *)
  21702. - lt_prog_compiler_pic='-fPIC'
  21703. - ;;
  21704. - esac
  21705. - else
  21706. - # PORTME Check for flag to pass linker flags through the system compiler.
  21707. - case $host_os in
  21708. - aix*)
  21709. - lt_prog_compiler_wl='-Wl,'
  21710. - if test "$host_cpu" = ia64; then
  21711. - # AIX 5 now supports IA64 processor
  21712. - lt_prog_compiler_static='-Bstatic'
  21713. - else
  21714. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  21715. - fi
  21716. - ;;
  21717. - darwin*)
  21718. - # PIC is the default on this platform
  21719. - # Common symbols not allowed in MH_DYLIB files
  21720. - case $cc_basename in
  21721. - xlc*)
  21722. - lt_prog_compiler_pic='-qnocommon'
  21723. - lt_prog_compiler_wl='-Wl,'
  21724. - ;;
  21725. - esac
  21726. - ;;
  21727. - mingw* | cygwin* | pw32* | os2*)
  21728. - # This hack is so that the source file can tell whether it is being
  21729. - # built for inclusion in a dll (and should export symbols for example).
  21730. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21731. - ;;
  21732. - hpux9* | hpux10* | hpux11*)
  21733. - lt_prog_compiler_wl='-Wl,'
  21734. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21735. - # not for PA HP-UX.
  21736. - case $host_cpu in
  21737. - hppa*64*|ia64*)
  21738. - # +Z the default
  21739. - ;;
  21740. - *)
  21741. - lt_prog_compiler_pic='+Z'
  21742. - ;;
  21743. - esac
  21744. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21745. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  21746. - ;;
  21747. + enable_dlopen=no
  21748. - irix5* | irix6* | nonstopux*)
  21749. - lt_prog_compiler_wl='-Wl,'
  21750. - # PIC (with -KPIC) is the default.
  21751. - lt_prog_compiler_static='-non_shared'
  21752. - ;;
  21753. - newsos6)
  21754. - lt_prog_compiler_pic='-KPIC'
  21755. - lt_prog_compiler_static='-Bstatic'
  21756. - ;;
  21757. + enable_win32_dll=no
  21758. - linux* | k*bsd*-gnu)
  21759. - case $cc_basename in
  21760. - icc* | ecc*)
  21761. - lt_prog_compiler_wl='-Wl,'
  21762. - lt_prog_compiler_pic='-KPIC'
  21763. - lt_prog_compiler_static='-static'
  21764. - ;;
  21765. - pgcc* | pgf77* | pgf90* | pgf95*)
  21766. - # Portland Group compilers (*not* the Pentium gcc compiler,
  21767. - # which looks to be a dead project)
  21768. - lt_prog_compiler_wl='-Wl,'
  21769. - lt_prog_compiler_pic='-fpic'
  21770. - lt_prog_compiler_static='-Bstatic'
  21771. - ;;
  21772. - ccc*)
  21773. - lt_prog_compiler_wl='-Wl,'
  21774. - # All Alpha code is PIC.
  21775. - lt_prog_compiler_static='-non_shared'
  21776. - ;;
  21777. - *)
  21778. - case `$CC -V 2>&1 | sed 5q` in
  21779. - *Sun\ C*)
  21780. - # Sun C 5.9
  21781. - lt_prog_compiler_pic='-KPIC'
  21782. - lt_prog_compiler_static='-Bstatic'
  21783. - lt_prog_compiler_wl='-Wl,'
  21784. - ;;
  21785. - *Sun\ F*)
  21786. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  21787. - lt_prog_compiler_pic='-KPIC'
  21788. - lt_prog_compiler_static='-Bstatic'
  21789. - lt_prog_compiler_wl=''
  21790. - ;;
  21791. - esac
  21792. - ;;
  21793. - esac
  21794. - ;;
  21795. - osf3* | osf4* | osf5*)
  21796. - lt_prog_compiler_wl='-Wl,'
  21797. - # All OSF/1 code is PIC.
  21798. - lt_prog_compiler_static='-non_shared'
  21799. + # Check whether --enable-shared was given.
  21800. +if test "${enable_shared+set}" = set; then :
  21801. + enableval=$enable_shared; p=${PACKAGE-default}
  21802. + case $enableval in
  21803. + yes) enable_shared=yes ;;
  21804. + no) enable_shared=no ;;
  21805. + *)
  21806. + enable_shared=no
  21807. + # Look at the argument we got. We use all the common list separators.
  21808. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21809. + for pkg in $enableval; do
  21810. + IFS="$lt_save_ifs"
  21811. + if test "X$pkg" = "X$p"; then
  21812. + enable_shared=yes
  21813. + fi
  21814. + done
  21815. + IFS="$lt_save_ifs"
  21816. ;;
  21817. + esac
  21818. +else
  21819. + enable_shared=yes
  21820. +fi
  21821. - rdos*)
  21822. - lt_prog_compiler_static='-non_shared'
  21823. - ;;
  21824. - solaris*)
  21825. - lt_prog_compiler_pic='-KPIC'
  21826. - lt_prog_compiler_static='-Bstatic'
  21827. - case $cc_basename in
  21828. - f77* | f90* | f95*)
  21829. - lt_prog_compiler_wl='-Qoption ld ';;
  21830. - *)
  21831. - lt_prog_compiler_wl='-Wl,';;
  21832. - esac
  21833. - ;;
  21834. - sunos4*)
  21835. - lt_prog_compiler_wl='-Qoption ld '
  21836. - lt_prog_compiler_pic='-PIC'
  21837. - lt_prog_compiler_static='-Bstatic'
  21838. - ;;
  21839. - sysv4 | sysv4.2uw2* | sysv4.3*)
  21840. - lt_prog_compiler_wl='-Wl,'
  21841. - lt_prog_compiler_pic='-KPIC'
  21842. - lt_prog_compiler_static='-Bstatic'
  21843. - ;;
  21844. - sysv4*MP*)
  21845. - if test -d /usr/nec ;then
  21846. - lt_prog_compiler_pic='-Kconform_pic'
  21847. - lt_prog_compiler_static='-Bstatic'
  21848. - fi
  21849. - ;;
  21850. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21851. - lt_prog_compiler_wl='-Wl,'
  21852. - lt_prog_compiler_pic='-KPIC'
  21853. - lt_prog_compiler_static='-Bstatic'
  21854. - ;;
  21855. - unicos*)
  21856. - lt_prog_compiler_wl='-Wl,'
  21857. - lt_prog_compiler_can_build_shared=no
  21858. - ;;
  21859. - uts4*)
  21860. - lt_prog_compiler_pic='-pic'
  21861. - lt_prog_compiler_static='-Bstatic'
  21862. - ;;
  21863. + # Check whether --enable-static was given.
  21864. +if test "${enable_static+set}" = set; then :
  21865. + enableval=$enable_static; p=${PACKAGE-default}
  21866. + case $enableval in
  21867. + yes) enable_static=yes ;;
  21868. + no) enable_static=no ;;
  21869. *)
  21870. - lt_prog_compiler_can_build_shared=no
  21871. + enable_static=no
  21872. + # Look at the argument we got. We use all the common list separators.
  21873. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21874. + for pkg in $enableval; do
  21875. + IFS="$lt_save_ifs"
  21876. + if test "X$pkg" = "X$p"; then
  21877. + enable_static=yes
  21878. + fi
  21879. + done
  21880. + IFS="$lt_save_ifs"
  21881. ;;
  21882. esac
  21883. - fi
  21884. -
  21885. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  21886. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  21887. -
  21888. -#
  21889. -# Check to make sure the PIC flag actually works.
  21890. -#
  21891. -if test -n "$lt_prog_compiler_pic"; then
  21892. -
  21893. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  21894. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  21895. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  21896. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21897. else
  21898. - lt_cv_prog_compiler_pic_works=no
  21899. - ac_outfile=conftest.$ac_objext
  21900. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21901. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  21902. - # Insert the option either (1) after the last *FLAGS variable, or
  21903. - # (2) before a word containing "conftest.", or (3) at the end.
  21904. - # Note that $ac_compile itself does not contain backslashes and begins
  21905. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21906. - # The option is referenced via a variable to avoid confusing sed.
  21907. - lt_compile=`echo "$ac_compile" | $SED \
  21908. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21909. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21910. - -e 's:$: $lt_compiler_flag:'`
  21911. - (eval echo "\"\$as_me:7705: $lt_compile\"" >&5)
  21912. - (eval "$lt_compile" 2>conftest.err)
  21913. - ac_status=$?
  21914. - cat conftest.err >&5
  21915. - echo "$as_me:7709: \$? = $ac_status" >&5
  21916. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21917. - # The compiler can only warn and ignore the option if not recognized
  21918. - # So say no if there are warnings other than the usual output.
  21919. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21920. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21921. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21922. - lt_cv_prog_compiler_pic_works=yes
  21923. - fi
  21924. - fi
  21925. - $rm conftest*
  21926. -
  21927. -fi
  21928. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  21929. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  21930. -
  21931. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  21932. - case $lt_prog_compiler_pic in
  21933. - "" | " "*) ;;
  21934. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  21935. - esac
  21936. -else
  21937. - lt_prog_compiler_pic=
  21938. - lt_prog_compiler_can_build_shared=no
  21939. -fi
  21940. -
  21941. -fi
  21942. -case $host_os in
  21943. - # For platforms which do not support PIC, -DPIC is meaningless:
  21944. - *djgpp*)
  21945. - lt_prog_compiler_pic=
  21946. - ;;
  21947. - *)
  21948. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  21949. - ;;
  21950. -esac
  21951. -
  21952. -#
  21953. -# Check to make sure the static flag actually works.
  21954. -#
  21955. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  21956. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21957. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  21958. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  21959. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21960. -else
  21961. - lt_cv_prog_compiler_static_works=no
  21962. - save_LDFLAGS="$LDFLAGS"
  21963. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  21964. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  21965. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  21966. - # The linker can only warn and ignore the option if not recognized
  21967. - # So say no if there are warnings
  21968. - if test -s conftest.err; then
  21969. - # Append any errors to the config.log.
  21970. - cat conftest.err 1>&5
  21971. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  21972. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21973. - if diff conftest.exp conftest.er2 >/dev/null; then
  21974. - lt_cv_prog_compiler_static_works=yes
  21975. - fi
  21976. - else
  21977. - lt_cv_prog_compiler_static_works=yes
  21978. - fi
  21979. - fi
  21980. - $rm -r conftest*
  21981. - LDFLAGS="$save_LDFLAGS"
  21982. -
  21983. -fi
  21984. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  21985. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  21986. -
  21987. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  21988. - :
  21989. -else
  21990. - lt_prog_compiler_static=
  21991. -fi
  21992. -
  21993. -
  21994. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  21995. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  21996. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  21997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21998. -else
  21999. - lt_cv_prog_compiler_c_o=no
  22000. - $rm -r conftest 2>/dev/null
  22001. - mkdir conftest
  22002. - cd conftest
  22003. - mkdir out
  22004. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22005. -
  22006. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  22007. - # Insert the option either (1) after the last *FLAGS variable, or
  22008. - # (2) before a word containing "conftest.", or (3) at the end.
  22009. - # Note that $ac_compile itself does not contain backslashes and begins
  22010. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  22011. - lt_compile=`echo "$ac_compile" | $SED \
  22012. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22013. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22014. - -e 's:$: $lt_compiler_flag:'`
  22015. - (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
  22016. - (eval "$lt_compile" 2>out/conftest.err)
  22017. - ac_status=$?
  22018. - cat out/conftest.err >&5
  22019. - echo "$as_me:7813: \$? = $ac_status" >&5
  22020. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22021. - then
  22022. - # The compiler can only warn and ignore the option if not recognized
  22023. - # So say no if there are warnings
  22024. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22025. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22026. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22027. - lt_cv_prog_compiler_c_o=yes
  22028. - fi
  22029. - fi
  22030. - chmod u+w . 2>&5
  22031. - $rm conftest*
  22032. - # SGI C++ compiler will create directory out/ii_files/ for
  22033. - # template instantiation
  22034. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  22035. - $rm out/* && rmdir out
  22036. - cd ..
  22037. - rmdir conftest
  22038. - $rm conftest*
  22039. -
  22040. -fi
  22041. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  22042. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  22043. -
  22044. -
  22045. -hard_links="nottested"
  22046. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  22047. - # do not overwrite the value of need_locks provided by the user
  22048. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  22049. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  22050. - hard_links=yes
  22051. - $rm conftest*
  22052. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22053. - touch conftest.a
  22054. - ln conftest.a conftest.b 2>&5 || hard_links=no
  22055. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22056. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  22057. -echo "${ECHO_T}$hard_links" >&6; }
  22058. - if test "$hard_links" = no; then
  22059. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22060. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22061. - need_locks=warn
  22062. - fi
  22063. -else
  22064. - need_locks=no
  22065. -fi
  22066. -
  22067. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22068. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  22069. -
  22070. - runpath_var=
  22071. - allow_undefined_flag=
  22072. - enable_shared_with_static_runtimes=no
  22073. - archive_cmds=
  22074. - archive_expsym_cmds=
  22075. - old_archive_From_new_cmds=
  22076. - old_archive_from_expsyms_cmds=
  22077. - export_dynamic_flag_spec=
  22078. - whole_archive_flag_spec=
  22079. - thread_safe_flag_spec=
  22080. - hardcode_libdir_flag_spec=
  22081. - hardcode_libdir_flag_spec_ld=
  22082. - hardcode_libdir_separator=
  22083. - hardcode_direct=no
  22084. - hardcode_minus_L=no
  22085. - hardcode_shlibpath_var=unsupported
  22086. - link_all_deplibs=unknown
  22087. - hardcode_automatic=no
  22088. - module_cmds=
  22089. - module_expsym_cmds=
  22090. - always_export_symbols=no
  22091. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22092. - # include_expsyms should be a list of space-separated symbols to be *always*
  22093. - # included in the symbol list
  22094. - include_expsyms=
  22095. - # exclude_expsyms can be an extended regexp of symbols to exclude
  22096. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22097. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22098. - # as well as any symbol that contains `d'.
  22099. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  22100. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22101. - # platforms (ab)use it in PIC code, but their linkers get confused if
  22102. - # the symbol is explicitly referenced. Since portable code cannot
  22103. - # rely on this symbol name, it's probably fine to never include it in
  22104. - # preloaded symbol tables.
  22105. - # Exclude shared library initialization/finalization symbols.
  22106. - extract_expsyms_cmds=
  22107. - # Just being paranoid about ensuring that cc_basename is set.
  22108. - for cc_temp in $compiler""; do
  22109. - case $cc_temp in
  22110. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22111. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22112. - \-*) ;;
  22113. - *) break;;
  22114. - esac
  22115. -done
  22116. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22117. -
  22118. - case $host_os in
  22119. - cygwin* | mingw* | pw32*)
  22120. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22121. - # When not using gcc, we currently assume that we are using
  22122. - # Microsoft Visual C++.
  22123. - if test "$GCC" != yes; then
  22124. - with_gnu_ld=no
  22125. - fi
  22126. - ;;
  22127. - interix*)
  22128. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  22129. - with_gnu_ld=yes
  22130. - ;;
  22131. - openbsd*)
  22132. - with_gnu_ld=no
  22133. - ;;
  22134. - esac
  22135. -
  22136. - ld_shlibs=yes
  22137. - if test "$with_gnu_ld" = yes; then
  22138. - # If archive_cmds runs LD, not CC, wlarc should be empty
  22139. - wlarc='${wl}'
  22140. -
  22141. - # Set some defaults for GNU ld with shared library support. These
  22142. - # are reset later if shared libraries are not supported. Putting them
  22143. - # here allows them to be overridden if necessary.
  22144. - runpath_var=LD_RUN_PATH
  22145. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  22146. - export_dynamic_flag_spec='${wl}--export-dynamic'
  22147. - # ancient GNU ld didn't support --whole-archive et. al.
  22148. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  22149. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22150. - else
  22151. - whole_archive_flag_spec=
  22152. - fi
  22153. - supports_anon_versioning=no
  22154. - case `$LD -v 2>/dev/null` in
  22155. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22156. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22157. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22158. - *\ 2.11.*) ;; # other 2.11 versions
  22159. - *) supports_anon_versioning=yes ;;
  22160. - esac
  22161. -
  22162. - # See if GNU ld supports shared libraries.
  22163. - case $host_os in
  22164. - aix[3-9]*)
  22165. - # On AIX/PPC, the GNU linker is very broken
  22166. - if test "$host_cpu" != ia64; then
  22167. - ld_shlibs=no
  22168. - cat <<EOF 1>&2
  22169. -
  22170. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22171. -*** to be unable to reliably create shared libraries on AIX.
  22172. -*** Therefore, libtool is disabling shared libraries support. If you
  22173. -*** really care for shared libraries, you may want to modify your PATH
  22174. -*** so that a non-GNU linker is found, and then restart.
  22175. -
  22176. -EOF
  22177. - fi
  22178. - ;;
  22179. -
  22180. - amigaos*)
  22181. - 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)'
  22182. - hardcode_libdir_flag_spec='-L$libdir'
  22183. - hardcode_minus_L=yes
  22184. -
  22185. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  22186. - # that the semantics of dynamic libraries on AmigaOS, at least up
  22187. - # to version 4, is to share data among multiple programs linked
  22188. - # with the same dynamic library. Since this doesn't match the
  22189. - # behavior of shared libraries on other platforms, we can't use
  22190. - # them.
  22191. - ld_shlibs=no
  22192. - ;;
  22193. -
  22194. - beos*)
  22195. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22196. - allow_undefined_flag=unsupported
  22197. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22198. - # support --undefined. This deserves some investigation. FIXME
  22199. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22200. - else
  22201. - ld_shlibs=no
  22202. - fi
  22203. - ;;
  22204. -
  22205. - cygwin* | mingw* | pw32*)
  22206. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  22207. - # as there is no search path for DLLs.
  22208. - hardcode_libdir_flag_spec='-L$libdir'
  22209. - allow_undefined_flag=unsupported
  22210. - always_export_symbols=no
  22211. - enable_shared_with_static_runtimes=yes
  22212. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  22213. -
  22214. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22215. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22216. - # If the export-symbols file already is a .def file (1st line
  22217. - # is EXPORTS), use it as is; otherwise, prepend...
  22218. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22219. - cp $export_symbols $output_objdir/$soname.def;
  22220. - else
  22221. - echo EXPORTS > $output_objdir/$soname.def;
  22222. - cat $export_symbols >> $output_objdir/$soname.def;
  22223. - fi~
  22224. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22225. - else
  22226. - ld_shlibs=no
  22227. - fi
  22228. - ;;
  22229. -
  22230. - interix[3-9]*)
  22231. - hardcode_direct=no
  22232. - hardcode_shlibpath_var=no
  22233. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22234. - export_dynamic_flag_spec='${wl}-E'
  22235. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22236. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  22237. - # default) and relocated if they conflict, which is a slow very memory
  22238. - # consuming and fragmenting process. To avoid this, we pick a random,
  22239. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22240. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22241. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22242. - 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'
  22243. - ;;
  22244. -
  22245. - gnu* | linux* | k*bsd*-gnu)
  22246. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22247. - tmp_addflag=
  22248. - case $cc_basename,$host_cpu in
  22249. - pgcc*) # Portland Group C compiler
  22250. - 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'
  22251. - tmp_addflag=' $pic_flag'
  22252. - ;;
  22253. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22254. - 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'
  22255. - tmp_addflag=' $pic_flag -Mnomain' ;;
  22256. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22257. - tmp_addflag=' -i_dynamic' ;;
  22258. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22259. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  22260. - ifc* | ifort*) # Intel Fortran compiler
  22261. - tmp_addflag=' -nofor_main' ;;
  22262. - esac
  22263. - case `$CC -V 2>&1 | sed 5q` in
  22264. - *Sun\ C*) # Sun C 5.9
  22265. - 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'
  22266. - tmp_sharedflag='-G' ;;
  22267. - *Sun\ F*) # Sun Fortran 8.3
  22268. - tmp_sharedflag='-G' ;;
  22269. - *)
  22270. - tmp_sharedflag='-shared' ;;
  22271. - esac
  22272. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22273. -
  22274. - if test $supports_anon_versioning = yes; then
  22275. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  22276. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22277. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  22278. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22279. - fi
  22280. - link_all_deplibs=no
  22281. - else
  22282. - ld_shlibs=no
  22283. - fi
  22284. - ;;
  22285. -
  22286. - netbsd* | netbsdelf*-gnu)
  22287. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22288. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22289. - wlarc=
  22290. - else
  22291. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22292. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22293. - fi
  22294. - ;;
  22295. -
  22296. - solaris*)
  22297. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  22298. - ld_shlibs=no
  22299. - cat <<EOF 1>&2
  22300. -
  22301. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22302. -*** create shared libraries on Solaris systems. Therefore, libtool
  22303. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22304. -*** binutils to release 2.9.1 or newer. Another option is to modify
  22305. -*** your PATH or compiler configuration so that the native linker is
  22306. -*** used, and then restart.
  22307. -
  22308. -EOF
  22309. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22310. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22311. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22312. - else
  22313. - ld_shlibs=no
  22314. - fi
  22315. - ;;
  22316. -
  22317. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22318. - case `$LD -v 2>&1` in
  22319. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22320. - ld_shlibs=no
  22321. - cat <<_LT_EOF 1>&2
  22322. -
  22323. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22324. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  22325. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22326. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22327. -*** your PATH or compiler configuration so that the native linker is
  22328. -*** used, and then restart.
  22329. -
  22330. -_LT_EOF
  22331. - ;;
  22332. - *)
  22333. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22334. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  22335. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  22336. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  22337. - else
  22338. - ld_shlibs=no
  22339. - fi
  22340. - ;;
  22341. - esac
  22342. - ;;
  22343. -
  22344. - sunos4*)
  22345. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22346. - wlarc=
  22347. - hardcode_direct=yes
  22348. - hardcode_shlibpath_var=no
  22349. - ;;
  22350. -
  22351. - *)
  22352. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22353. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22354. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22355. - else
  22356. - ld_shlibs=no
  22357. - fi
  22358. - ;;
  22359. - esac
  22360. -
  22361. - if test "$ld_shlibs" = no; then
  22362. - runpath_var=
  22363. - hardcode_libdir_flag_spec=
  22364. - export_dynamic_flag_spec=
  22365. - whole_archive_flag_spec=
  22366. - fi
  22367. - else
  22368. - # PORTME fill in a description of your system's linker (not GNU ld)
  22369. - case $host_os in
  22370. - aix3*)
  22371. - allow_undefined_flag=unsupported
  22372. - always_export_symbols=yes
  22373. - 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'
  22374. - # Note: this linker hardcodes the directories in LIBPATH if there
  22375. - # are no directories specified by -L.
  22376. - hardcode_minus_L=yes
  22377. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22378. - # Neither direct hardcoding nor static linking is supported with a
  22379. - # broken collect2.
  22380. - hardcode_direct=unsupported
  22381. - fi
  22382. - ;;
  22383. -
  22384. - aix[4-9]*)
  22385. - if test "$host_cpu" = ia64; then
  22386. - # On IA64, the linker does run time linking by default, so we don't
  22387. - # have to do anything special.
  22388. - aix_use_runtimelinking=no
  22389. - exp_sym_flag='-Bexport'
  22390. - no_entry_flag=""
  22391. - else
  22392. - # If we're using GNU nm, then we don't want the "-C" option.
  22393. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22394. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  22395. - 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'
  22396. - else
  22397. - 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'
  22398. - fi
  22399. - aix_use_runtimelinking=no
  22400. -
  22401. - # Test if we are trying to use run time linking or normal
  22402. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22403. - # need to do runtime linking.
  22404. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  22405. - for ld_flag in $LDFLAGS; do
  22406. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  22407. - aix_use_runtimelinking=yes
  22408. - break
  22409. - fi
  22410. - done
  22411. - ;;
  22412. - esac
  22413. -
  22414. - exp_sym_flag='-bexport'
  22415. - no_entry_flag='-bnoentry'
  22416. - fi
  22417. -
  22418. - # When large executables or shared objects are built, AIX ld can
  22419. - # have problems creating the table of contents. If linking a library
  22420. - # or program results in "error TOC overflow" add -mminimal-toc to
  22421. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22422. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22423. -
  22424. - archive_cmds=''
  22425. - hardcode_direct=yes
  22426. - hardcode_libdir_separator=':'
  22427. - link_all_deplibs=yes
  22428. -
  22429. - if test "$GCC" = yes; then
  22430. - case $host_os in aix4.[012]|aix4.[012].*)
  22431. - # We only want to do this on AIX 4.2 and lower, the check
  22432. - # below for broken collect2 doesn't work under 4.3+
  22433. - collect2name=`${CC} -print-prog-name=collect2`
  22434. - if test -f "$collect2name" && \
  22435. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  22436. - then
  22437. - # We have reworked collect2
  22438. - :
  22439. - else
  22440. - # We have old collect2
  22441. - hardcode_direct=unsupported
  22442. - # It fails to find uninstalled libraries when the uninstalled
  22443. - # path is not listed in the libpath. Setting hardcode_minus_L
  22444. - # to unsupported forces relinking
  22445. - hardcode_minus_L=yes
  22446. - hardcode_libdir_flag_spec='-L$libdir'
  22447. - hardcode_libdir_separator=
  22448. - fi
  22449. - ;;
  22450. - esac
  22451. - shared_flag='-shared'
  22452. - if test "$aix_use_runtimelinking" = yes; then
  22453. - shared_flag="$shared_flag "'${wl}-G'
  22454. - fi
  22455. - else
  22456. - # not using gcc
  22457. - if test "$host_cpu" = ia64; then
  22458. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22459. - # chokes on -Wl,-G. The following line is correct:
  22460. - shared_flag='-G'
  22461. - else
  22462. - if test "$aix_use_runtimelinking" = yes; then
  22463. - shared_flag='${wl}-G'
  22464. - else
  22465. - shared_flag='${wl}-bM:SRE'
  22466. - fi
  22467. - fi
  22468. - fi
  22469. -
  22470. - # It seems that -bexpall does not export symbols beginning with
  22471. - # underscore (_), so it is better to generate a list of symbols to export.
  22472. - always_export_symbols=yes
  22473. - if test "$aix_use_runtimelinking" = yes; then
  22474. - # Warning - without using the other runtime loading flags (-brtl),
  22475. - # -berok will link without error, but may produce a broken library.
  22476. - allow_undefined_flag='-berok'
  22477. - # Determine the default libpath from the value encoded in an empty executable.
  22478. - cat >conftest.$ac_ext <<_ACEOF
  22479. -/* confdefs.h. */
  22480. -_ACEOF
  22481. -cat confdefs.h >>conftest.$ac_ext
  22482. -cat >>conftest.$ac_ext <<_ACEOF
  22483. -/* end confdefs.h. */
  22484. -
  22485. -int
  22486. -main ()
  22487. -{
  22488. -
  22489. - ;
  22490. - return 0;
  22491. -}
  22492. -_ACEOF
  22493. -rm -f conftest.$ac_objext conftest$ac_exeext
  22494. -if { (ac_try="$ac_link"
  22495. -case "(($ac_try" in
  22496. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22497. - *) ac_try_echo=$ac_try;;
  22498. -esac
  22499. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22500. - (eval "$ac_link") 2>conftest.er1
  22501. - ac_status=$?
  22502. - grep -v '^ *+' conftest.er1 >conftest.err
  22503. - rm -f conftest.er1
  22504. - cat conftest.err >&5
  22505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22506. - (exit $ac_status); } && {
  22507. - test -z "$ac_c_werror_flag" ||
  22508. - test ! -s conftest.err
  22509. - } && test -s conftest$ac_exeext &&
  22510. - $as_test_x conftest$ac_exeext; then
  22511. -
  22512. -lt_aix_libpath_sed='
  22513. - /Import File Strings/,/^$/ {
  22514. - /^0/ {
  22515. - s/^0 *\(.*\)$/\1/
  22516. - p
  22517. - }
  22518. - }'
  22519. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22520. -# Check for a 64-bit object if we didn't find anything.
  22521. -if test -z "$aix_libpath"; then
  22522. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22523. -fi
  22524. -else
  22525. - echo "$as_me: failed program was:" >&5
  22526. -sed 's/^/| /' conftest.$ac_ext >&5
  22527. -
  22528. -
  22529. -fi
  22530. -
  22531. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22532. - conftest$ac_exeext conftest.$ac_ext
  22533. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22534. -
  22535. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22536. - 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"
  22537. - else
  22538. - if test "$host_cpu" = ia64; then
  22539. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  22540. - allow_undefined_flag="-z nodefs"
  22541. - 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"
  22542. - else
  22543. - # Determine the default libpath from the value encoded in an empty executable.
  22544. - cat >conftest.$ac_ext <<_ACEOF
  22545. -/* confdefs.h. */
  22546. -_ACEOF
  22547. -cat confdefs.h >>conftest.$ac_ext
  22548. -cat >>conftest.$ac_ext <<_ACEOF
  22549. -/* end confdefs.h. */
  22550. -
  22551. -int
  22552. -main ()
  22553. -{
  22554. -
  22555. - ;
  22556. - return 0;
  22557. -}
  22558. -_ACEOF
  22559. -rm -f conftest.$ac_objext conftest$ac_exeext
  22560. -if { (ac_try="$ac_link"
  22561. -case "(($ac_try" in
  22562. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22563. - *) ac_try_echo=$ac_try;;
  22564. -esac
  22565. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22566. - (eval "$ac_link") 2>conftest.er1
  22567. - ac_status=$?
  22568. - grep -v '^ *+' conftest.er1 >conftest.err
  22569. - rm -f conftest.er1
  22570. - cat conftest.err >&5
  22571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22572. - (exit $ac_status); } && {
  22573. - test -z "$ac_c_werror_flag" ||
  22574. - test ! -s conftest.err
  22575. - } && test -s conftest$ac_exeext &&
  22576. - $as_test_x conftest$ac_exeext; then
  22577. -
  22578. -lt_aix_libpath_sed='
  22579. - /Import File Strings/,/^$/ {
  22580. - /^0/ {
  22581. - s/^0 *\(.*\)$/\1/
  22582. - p
  22583. - }
  22584. - }'
  22585. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22586. -# Check for a 64-bit object if we didn't find anything.
  22587. -if test -z "$aix_libpath"; then
  22588. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22589. -fi
  22590. -else
  22591. - echo "$as_me: failed program was:" >&5
  22592. -sed 's/^/| /' conftest.$ac_ext >&5
  22593. -
  22594. -
  22595. -fi
  22596. -
  22597. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22598. - conftest$ac_exeext conftest.$ac_ext
  22599. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22600. -
  22601. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22602. - # Warning - without using the other run time loading flags,
  22603. - # -berok will link without error, but may produce a broken library.
  22604. - no_undefined_flag=' ${wl}-bernotok'
  22605. - allow_undefined_flag=' ${wl}-berok'
  22606. - # Exported symbols can be pulled into shared objects from archives
  22607. - whole_archive_flag_spec='$convenience'
  22608. - archive_cmds_need_lc=yes
  22609. - # This is similar to how AIX traditionally builds its shared libraries.
  22610. - 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'
  22611. - fi
  22612. - fi
  22613. - ;;
  22614. -
  22615. - amigaos*)
  22616. - 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)'
  22617. - hardcode_libdir_flag_spec='-L$libdir'
  22618. - hardcode_minus_L=yes
  22619. - # see comment about different semantics on the GNU ld section
  22620. - ld_shlibs=no
  22621. - ;;
  22622. -
  22623. - bsdi[45]*)
  22624. - export_dynamic_flag_spec=-rdynamic
  22625. - ;;
  22626. -
  22627. - cygwin* | mingw* | pw32*)
  22628. - # When not using gcc, we currently assume that we are using
  22629. - # Microsoft Visual C++.
  22630. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  22631. - # no search path for DLLs.
  22632. - hardcode_libdir_flag_spec=' '
  22633. - allow_undefined_flag=unsupported
  22634. - # Tell ltmain to make .lib files, not .a files.
  22635. - libext=lib
  22636. - # Tell ltmain to make .dll files, not .so files.
  22637. - shrext_cmds=".dll"
  22638. - # FIXME: Setting linknames here is a bad hack.
  22639. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  22640. - # The linker will automatically build a .lib file if we build a DLL.
  22641. - old_archive_From_new_cmds='true'
  22642. - # FIXME: Should let the user specify the lib program.
  22643. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  22644. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  22645. - enable_shared_with_static_runtimes=yes
  22646. - ;;
  22647. -
  22648. - darwin* | rhapsody*)
  22649. - case $host_os in
  22650. - rhapsody* | darwin1.[012])
  22651. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  22652. - ;;
  22653. - *) # Darwin 1.3 on
  22654. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22655. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22656. - else
  22657. - case ${MACOSX_DEPLOYMENT_TARGET} in
  22658. - 10.[012])
  22659. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22660. - ;;
  22661. - 10.*)
  22662. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  22663. - ;;
  22664. - esac
  22665. - fi
  22666. - ;;
  22667. - esac
  22668. - archive_cmds_need_lc=no
  22669. - hardcode_direct=no
  22670. - hardcode_automatic=yes
  22671. - hardcode_shlibpath_var=unsupported
  22672. - whole_archive_flag_spec=''
  22673. - link_all_deplibs=yes
  22674. - if test "$GCC" = yes ; then
  22675. - output_verbose_link_cmd='echo'
  22676. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  22677. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  22678. - 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}"
  22679. - 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}"
  22680. - else
  22681. - case $cc_basename in
  22682. - xlc*)
  22683. - output_verbose_link_cmd='echo'
  22684. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  22685. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22686. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22687. - 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}'
  22688. - 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}'
  22689. - ;;
  22690. - *)
  22691. - ld_shlibs=no
  22692. - ;;
  22693. - esac
  22694. - fi
  22695. - ;;
  22696. -
  22697. - dgux*)
  22698. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22699. - hardcode_libdir_flag_spec='-L$libdir'
  22700. - hardcode_shlibpath_var=no
  22701. - ;;
  22702. -
  22703. - freebsd1*)
  22704. - ld_shlibs=no
  22705. - ;;
  22706. -
  22707. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  22708. - # support. Future versions do this automatically, but an explicit c++rt0.o
  22709. - # does not break anything, and helps significantly (at the cost of a little
  22710. - # extra space).
  22711. - freebsd2.2*)
  22712. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  22713. - hardcode_libdir_flag_spec='-R$libdir'
  22714. - hardcode_direct=yes
  22715. - hardcode_shlibpath_var=no
  22716. - ;;
  22717. -
  22718. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  22719. - freebsd2*)
  22720. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22721. - hardcode_direct=yes
  22722. - hardcode_minus_L=yes
  22723. - hardcode_shlibpath_var=no
  22724. - ;;
  22725. -
  22726. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  22727. - freebsd* | dragonfly*)
  22728. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22729. - hardcode_libdir_flag_spec='-R$libdir'
  22730. - hardcode_direct=yes
  22731. - hardcode_shlibpath_var=no
  22732. - ;;
  22733. -
  22734. - hpux9*)
  22735. - if test "$GCC" = yes; then
  22736. - 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'
  22737. - else
  22738. - 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'
  22739. - fi
  22740. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22741. - hardcode_libdir_separator=:
  22742. - hardcode_direct=yes
  22743. -
  22744. - # hardcode_minus_L: Not really in the search PATH,
  22745. - # but as the default location of the library.
  22746. - hardcode_minus_L=yes
  22747. - export_dynamic_flag_spec='${wl}-E'
  22748. - ;;
  22749. -
  22750. - hpux10*)
  22751. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22752. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22753. - else
  22754. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  22755. - fi
  22756. - if test "$with_gnu_ld" = no; then
  22757. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22758. - hardcode_libdir_separator=:
  22759. -
  22760. - hardcode_direct=yes
  22761. - export_dynamic_flag_spec='${wl}-E'
  22762. -
  22763. - # hardcode_minus_L: Not really in the search PATH,
  22764. - # but as the default location of the library.
  22765. - hardcode_minus_L=yes
  22766. - fi
  22767. - ;;
  22768. -
  22769. - hpux11*)
  22770. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22771. - case $host_cpu in
  22772. - hppa*64*)
  22773. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22774. - ;;
  22775. - ia64*)
  22776. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22777. - ;;
  22778. - *)
  22779. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22780. - ;;
  22781. - esac
  22782. - else
  22783. - case $host_cpu in
  22784. - hppa*64*)
  22785. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22786. - ;;
  22787. - ia64*)
  22788. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22789. - ;;
  22790. - *)
  22791. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22792. - ;;
  22793. - esac
  22794. - fi
  22795. - if test "$with_gnu_ld" = no; then
  22796. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22797. - hardcode_libdir_separator=:
  22798. -
  22799. - case $host_cpu in
  22800. - hppa*64*|ia64*)
  22801. - hardcode_libdir_flag_spec_ld='+b $libdir'
  22802. - hardcode_direct=no
  22803. - hardcode_shlibpath_var=no
  22804. - ;;
  22805. - *)
  22806. - hardcode_direct=yes
  22807. - export_dynamic_flag_spec='${wl}-E'
  22808. -
  22809. - # hardcode_minus_L: Not really in the search PATH,
  22810. - # but as the default location of the library.
  22811. - hardcode_minus_L=yes
  22812. - ;;
  22813. - esac
  22814. - fi
  22815. - ;;
  22816. -
  22817. - irix5* | irix6* | nonstopux*)
  22818. - if test "$GCC" = yes; then
  22819. - 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'
  22820. - else
  22821. - 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'
  22822. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  22823. - fi
  22824. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22825. - hardcode_libdir_separator=:
  22826. - link_all_deplibs=yes
  22827. - ;;
  22828. -
  22829. - netbsd* | netbsdelf*-gnu)
  22830. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22831. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22832. - else
  22833. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22834. - fi
  22835. - hardcode_libdir_flag_spec='-R$libdir'
  22836. - hardcode_direct=yes
  22837. - hardcode_shlibpath_var=no
  22838. - ;;
  22839. -
  22840. - newsos6)
  22841. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22842. - hardcode_direct=yes
  22843. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22844. - hardcode_libdir_separator=:
  22845. - hardcode_shlibpath_var=no
  22846. - ;;
  22847. -
  22848. - openbsd*)
  22849. - if test -f /usr/libexec/ld.so; then
  22850. - hardcode_direct=yes
  22851. - hardcode_shlibpath_var=no
  22852. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22853. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22854. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22855. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22856. - export_dynamic_flag_spec='${wl}-E'
  22857. - else
  22858. - case $host_os in
  22859. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22860. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22861. - hardcode_libdir_flag_spec='-R$libdir'
  22862. - ;;
  22863. - *)
  22864. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22865. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22866. - ;;
  22867. - esac
  22868. - fi
  22869. - else
  22870. - ld_shlibs=no
  22871. - fi
  22872. - ;;
  22873. -
  22874. - os2*)
  22875. - hardcode_libdir_flag_spec='-L$libdir'
  22876. - hardcode_minus_L=yes
  22877. - allow_undefined_flag=unsupported
  22878. - 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'
  22879. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  22880. - ;;
  22881. -
  22882. - osf3*)
  22883. - if test "$GCC" = yes; then
  22884. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22885. - 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'
  22886. - else
  22887. - allow_undefined_flag=' -expect_unresolved \*'
  22888. - 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'
  22889. - fi
  22890. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22891. - hardcode_libdir_separator=:
  22892. - ;;
  22893. -
  22894. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  22895. - if test "$GCC" = yes; then
  22896. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22897. - 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'
  22898. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22899. - else
  22900. - allow_undefined_flag=' -expect_unresolved \*'
  22901. - 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'
  22902. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  22903. - $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'
  22904. -
  22905. - # Both c and cxx compiler support -rpath directly
  22906. - hardcode_libdir_flag_spec='-rpath $libdir'
  22907. - fi
  22908. - hardcode_libdir_separator=:
  22909. - ;;
  22910. -
  22911. - solaris*)
  22912. - no_undefined_flag=' -z text'
  22913. - if test "$GCC" = yes; then
  22914. - wlarc='${wl}'
  22915. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22916. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22917. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  22918. - else
  22919. - wlarc=''
  22920. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22921. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22922. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  22923. - fi
  22924. - hardcode_libdir_flag_spec='-R$libdir'
  22925. - hardcode_shlibpath_var=no
  22926. - case $host_os in
  22927. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  22928. - *)
  22929. - # The compiler driver will combine and reorder linker options,
  22930. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  22931. - # but is careful enough not to reorder.
  22932. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  22933. - if test "$GCC" = yes; then
  22934. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  22935. - else
  22936. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  22937. - fi
  22938. - ;;
  22939. - esac
  22940. - link_all_deplibs=yes
  22941. - ;;
  22942. -
  22943. - sunos4*)
  22944. - if test "x$host_vendor" = xsequent; then
  22945. - # Use $CC to link under sequent, because it throws in some extra .o
  22946. - # files that make .init and .fini sections work.
  22947. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22948. - else
  22949. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  22950. - fi
  22951. - hardcode_libdir_flag_spec='-L$libdir'
  22952. - hardcode_direct=yes
  22953. - hardcode_minus_L=yes
  22954. - hardcode_shlibpath_var=no
  22955. - ;;
  22956. -
  22957. - sysv4)
  22958. - case $host_vendor in
  22959. - sni)
  22960. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22961. - hardcode_direct=yes # is this really true???
  22962. - ;;
  22963. - siemens)
  22964. - ## LD is ld it makes a PLAMLIB
  22965. - ## CC just makes a GrossModule.
  22966. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  22967. - reload_cmds='$CC -r -o $output$reload_objs'
  22968. - hardcode_direct=no
  22969. - ;;
  22970. - motorola)
  22971. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22972. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  22973. - ;;
  22974. - esac
  22975. - runpath_var='LD_RUN_PATH'
  22976. - hardcode_shlibpath_var=no
  22977. - ;;
  22978. -
  22979. - sysv4.3*)
  22980. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22981. - hardcode_shlibpath_var=no
  22982. - export_dynamic_flag_spec='-Bexport'
  22983. - ;;
  22984. -
  22985. - sysv4*MP*)
  22986. - if test -d /usr/nec; then
  22987. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22988. - hardcode_shlibpath_var=no
  22989. - runpath_var=LD_RUN_PATH
  22990. - hardcode_runpath_var=yes
  22991. - ld_shlibs=yes
  22992. - fi
  22993. - ;;
  22994. -
  22995. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  22996. - no_undefined_flag='${wl}-z,text'
  22997. - archive_cmds_need_lc=no
  22998. - hardcode_shlibpath_var=no
  22999. - runpath_var='LD_RUN_PATH'
  23000. -
  23001. - if test "$GCC" = yes; then
  23002. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23003. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23004. - else
  23005. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23006. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23007. - fi
  23008. - ;;
  23009. -
  23010. - sysv5* | sco3.2v5* | sco5v6*)
  23011. - # Note: We can NOT use -z defs as we might desire, because we do not
  23012. - # link with -lc, and that would cause any symbols used from libc to
  23013. - # always be unresolved, which means just about no library would
  23014. - # ever link correctly. If we're not using GNU ld we use -z text
  23015. - # though, which does catch some bad symbols but isn't as heavy-handed
  23016. - # as -z defs.
  23017. - no_undefined_flag='${wl}-z,text'
  23018. - allow_undefined_flag='${wl}-z,nodefs'
  23019. - archive_cmds_need_lc=no
  23020. - hardcode_shlibpath_var=no
  23021. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23022. - hardcode_libdir_separator=':'
  23023. - link_all_deplibs=yes
  23024. - export_dynamic_flag_spec='${wl}-Bexport'
  23025. - runpath_var='LD_RUN_PATH'
  23026. -
  23027. - if test "$GCC" = yes; then
  23028. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23029. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23030. - else
  23031. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23032. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23033. - fi
  23034. - ;;
  23035. -
  23036. - uts4*)
  23037. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23038. - hardcode_libdir_flag_spec='-L$libdir'
  23039. - hardcode_shlibpath_var=no
  23040. - ;;
  23041. -
  23042. - *)
  23043. - ld_shlibs=no
  23044. - ;;
  23045. - esac
  23046. - fi
  23047. -
  23048. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  23049. -echo "${ECHO_T}$ld_shlibs" >&6; }
  23050. -test "$ld_shlibs" = no && can_build_shared=no
  23051. -
  23052. -#
  23053. -# Do we need to explicitly link libc?
  23054. -#
  23055. -case "x$archive_cmds_need_lc" in
  23056. -x|xyes)
  23057. - # Assume -lc should be added
  23058. - archive_cmds_need_lc=yes
  23059. -
  23060. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  23061. - case $archive_cmds in
  23062. - *'~'*)
  23063. - # FIXME: we may have to deal with multi-command sequences.
  23064. - ;;
  23065. - '$CC '*)
  23066. - # Test whether the compiler implicitly links with -lc since on some
  23067. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23068. - # to ld, don't add -lc before -lgcc.
  23069. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  23070. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  23071. - $rm conftest*
  23072. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23073. -
  23074. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23075. - (eval $ac_compile) 2>&5
  23076. - ac_status=$?
  23077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23078. - (exit $ac_status); } 2>conftest.err; then
  23079. - soname=conftest
  23080. - lib=conftest
  23081. - libobjs=conftest.$ac_objext
  23082. - deplibs=
  23083. - wl=$lt_prog_compiler_wl
  23084. - pic_flag=$lt_prog_compiler_pic
  23085. - compiler_flags=-v
  23086. - linker_flags=-v
  23087. - verstring=
  23088. - output_objdir=.
  23089. - libname=conftest
  23090. - lt_save_allow_undefined_flag=$allow_undefined_flag
  23091. - allow_undefined_flag=
  23092. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  23093. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23094. - ac_status=$?
  23095. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23096. - (exit $ac_status); }
  23097. - then
  23098. - archive_cmds_need_lc=no
  23099. - else
  23100. - archive_cmds_need_lc=yes
  23101. - fi
  23102. - allow_undefined_flag=$lt_save_allow_undefined_flag
  23103. - else
  23104. - cat conftest.err 1>&5
  23105. - fi
  23106. - $rm conftest*
  23107. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  23108. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  23109. - ;;
  23110. - esac
  23111. - fi
  23112. - ;;
  23113. -esac
  23114. -
  23115. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  23116. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  23117. -library_names_spec=
  23118. -libname_spec='lib$name'
  23119. -soname_spec=
  23120. -shrext_cmds=".so"
  23121. -postinstall_cmds=
  23122. -postuninstall_cmds=
  23123. -finish_cmds=
  23124. -finish_eval=
  23125. -shlibpath_var=
  23126. -shlibpath_overrides_runpath=unknown
  23127. -version_type=none
  23128. -dynamic_linker="$host_os ld.so"
  23129. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23130. -
  23131. -if test "$GCC" = yes; then
  23132. - case $host_os in
  23133. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  23134. - *) lt_awk_arg="/^libraries:/" ;;
  23135. - esac
  23136. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23137. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  23138. - # if the path contains ";" then we assume it to be the separator
  23139. - # otherwise default to the standard path separator (i.e. ":") - it is
  23140. - # assumed that no part of a normal pathname contains ";" but that should
  23141. - # okay in the real world where ";" in dirpaths is itself problematic.
  23142. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  23143. - else
  23144. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23145. - fi
  23146. - # Ok, now we have the path, separated by spaces, we can step through it
  23147. - # and add multilib dir if necessary.
  23148. - lt_tmp_lt_search_path_spec=
  23149. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  23150. - for lt_sys_path in $lt_search_path_spec; do
  23151. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  23152. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  23153. - else
  23154. - test -d "$lt_sys_path" && \
  23155. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  23156. - fi
  23157. - done
  23158. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  23159. -BEGIN {RS=" "; FS="/|\n";} {
  23160. - lt_foo="";
  23161. - lt_count=0;
  23162. - for (lt_i = NF; lt_i > 0; lt_i--) {
  23163. - if ($lt_i != "" && $lt_i != ".") {
  23164. - if ($lt_i == "..") {
  23165. - lt_count++;
  23166. - } else {
  23167. - if (lt_count == 0) {
  23168. - lt_foo="/" $lt_i lt_foo;
  23169. - } else {
  23170. - lt_count--;
  23171. - }
  23172. - }
  23173. - }
  23174. - }
  23175. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  23176. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  23177. -}'`
  23178. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  23179. -else
  23180. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23181. -fi
  23182. -need_lib_prefix=unknown
  23183. -hardcode_into_libs=no
  23184. -
  23185. -# when you set need_version to no, make sure it does not cause -set_version
  23186. -# flags to be left without arguments
  23187. -need_version=unknown
  23188. -
  23189. -case $host_os in
  23190. -aix3*)
  23191. - version_type=linux
  23192. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23193. - shlibpath_var=LIBPATH
  23194. -
  23195. - # AIX 3 has no versioning support, so we append a major version to the name.
  23196. - soname_spec='${libname}${release}${shared_ext}$major'
  23197. - ;;
  23198. -
  23199. -aix[4-9]*)
  23200. - version_type=linux
  23201. - need_lib_prefix=no
  23202. - need_version=no
  23203. - hardcode_into_libs=yes
  23204. - if test "$host_cpu" = ia64; then
  23205. - # AIX 5 supports IA64
  23206. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23207. - shlibpath_var=LD_LIBRARY_PATH
  23208. - else
  23209. - # With GCC up to 2.95.x, collect2 would create an import file
  23210. - # for dependence libraries. The import file would start with
  23211. - # the line `#! .'. This would cause the generated library to
  23212. - # depend on `.', always an invalid library. This was fixed in
  23213. - # development snapshots of GCC prior to 3.0.
  23214. - case $host_os in
  23215. - aix4 | aix4.[01] | aix4.[01].*)
  23216. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23217. - echo ' yes '
  23218. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23219. - :
  23220. - else
  23221. - can_build_shared=no
  23222. - fi
  23223. - ;;
  23224. - esac
  23225. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23226. - # soname into executable. Probably we can add versioning support to
  23227. - # collect2, so additional links can be useful in future.
  23228. - if test "$aix_use_runtimelinking" = yes; then
  23229. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23230. - # instead of lib<name>.a to let people know that these are not
  23231. - # typical AIX shared libraries.
  23232. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23233. - else
  23234. - # We preserve .a as extension for shared libraries through AIX4.2
  23235. - # and later when we are not doing run time linking.
  23236. - library_names_spec='${libname}${release}.a $libname.a'
  23237. - soname_spec='${libname}${release}${shared_ext}$major'
  23238. - fi
  23239. - shlibpath_var=LIBPATH
  23240. - fi
  23241. - ;;
  23242. -
  23243. -amigaos*)
  23244. - library_names_spec='$libname.ixlibrary $libname.a'
  23245. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23246. - 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'
  23247. - ;;
  23248. -
  23249. -beos*)
  23250. - library_names_spec='${libname}${shared_ext}'
  23251. - dynamic_linker="$host_os ld.so"
  23252. - shlibpath_var=LIBRARY_PATH
  23253. - ;;
  23254. -
  23255. -bsdi[45]*)
  23256. - version_type=linux
  23257. - need_version=no
  23258. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23259. - soname_spec='${libname}${release}${shared_ext}$major'
  23260. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23261. - shlibpath_var=LD_LIBRARY_PATH
  23262. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23263. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23264. - # the default ld.so.conf also contains /usr/contrib/lib and
  23265. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23266. - # libtool to hard-code these into programs
  23267. - ;;
  23268. -
  23269. -cygwin* | mingw* | pw32*)
  23270. - version_type=windows
  23271. - shrext_cmds=".dll"
  23272. - need_version=no
  23273. - need_lib_prefix=no
  23274. -
  23275. - case $GCC,$host_os in
  23276. - yes,cygwin* | yes,mingw* | yes,pw32*)
  23277. - library_names_spec='$libname.dll.a'
  23278. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23279. - postinstall_cmds='base_file=`basename \${file}`~
  23280. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23281. - dldir=$destdir/`dirname \$dlpath`~
  23282. - test -d \$dldir || mkdir -p \$dldir~
  23283. - $install_prog $dir/$dlname \$dldir/$dlname~
  23284. - chmod a+x \$dldir/$dlname'
  23285. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23286. - dlpath=$dir/\$dldll~
  23287. - $rm \$dlpath'
  23288. - shlibpath_overrides_runpath=yes
  23289. -
  23290. - case $host_os in
  23291. - cygwin*)
  23292. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23293. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23294. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23295. - ;;
  23296. - mingw*)
  23297. - # MinGW DLLs use traditional 'lib' prefix
  23298. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23299. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23300. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  23301. - # It is most probably a Windows format PATH printed by
  23302. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23303. - # path with ; separators, and with drive letters. We can handle the
  23304. - # drive letters (cygwin fileutils understands them), so leave them,
  23305. - # especially as we might pass files found there to a mingw objdump,
  23306. - # which wouldn't understand a cygwinified path. Ahh.
  23307. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23308. - else
  23309. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23310. - fi
  23311. - ;;
  23312. - pw32*)
  23313. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  23314. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23315. - ;;
  23316. - esac
  23317. - ;;
  23318. -
  23319. - *)
  23320. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23321. - ;;
  23322. - esac
  23323. - dynamic_linker='Win32 ld.exe'
  23324. - # FIXME: first we should search . and the directory the executable is in
  23325. - shlibpath_var=PATH
  23326. - ;;
  23327. -
  23328. -darwin* | rhapsody*)
  23329. - dynamic_linker="$host_os dyld"
  23330. - version_type=darwin
  23331. - need_lib_prefix=no
  23332. - need_version=no
  23333. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23334. - soname_spec='${libname}${release}${major}$shared_ext'
  23335. - shlibpath_overrides_runpath=yes
  23336. - shlibpath_var=DYLD_LIBRARY_PATH
  23337. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  23338. -
  23339. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  23340. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23341. - ;;
  23342. -
  23343. -dgux*)
  23344. - version_type=linux
  23345. - need_lib_prefix=no
  23346. - need_version=no
  23347. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23348. - soname_spec='${libname}${release}${shared_ext}$major'
  23349. - shlibpath_var=LD_LIBRARY_PATH
  23350. - ;;
  23351. -
  23352. -freebsd1*)
  23353. - dynamic_linker=no
  23354. - ;;
  23355. -
  23356. -freebsd* | dragonfly*)
  23357. - # DragonFly does not have aout. When/if they implement a new
  23358. - # versioning mechanism, adjust this.
  23359. - if test -x /usr/bin/objformat; then
  23360. - objformat=`/usr/bin/objformat`
  23361. - else
  23362. - case $host_os in
  23363. - freebsd[123]*) objformat=aout ;;
  23364. - *) objformat=elf ;;
  23365. - esac
  23366. - fi
  23367. - version_type=freebsd-$objformat
  23368. - case $version_type in
  23369. - freebsd-elf*)
  23370. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23371. - need_version=no
  23372. - need_lib_prefix=no
  23373. - ;;
  23374. - freebsd-*)
  23375. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23376. - need_version=yes
  23377. - ;;
  23378. - esac
  23379. - shlibpath_var=LD_LIBRARY_PATH
  23380. - case $host_os in
  23381. - freebsd2*)
  23382. - shlibpath_overrides_runpath=yes
  23383. - ;;
  23384. - freebsd3.[01]* | freebsdelf3.[01]*)
  23385. - shlibpath_overrides_runpath=yes
  23386. - hardcode_into_libs=yes
  23387. - ;;
  23388. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  23389. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  23390. - shlibpath_overrides_runpath=no
  23391. - hardcode_into_libs=yes
  23392. - ;;
  23393. - *) # from 4.6 on, and DragonFly
  23394. - shlibpath_overrides_runpath=yes
  23395. - hardcode_into_libs=yes
  23396. - ;;
  23397. - esac
  23398. - ;;
  23399. -
  23400. -gnu*)
  23401. - version_type=linux
  23402. - need_lib_prefix=no
  23403. - need_version=no
  23404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23405. - soname_spec='${libname}${release}${shared_ext}$major'
  23406. - shlibpath_var=LD_LIBRARY_PATH
  23407. - hardcode_into_libs=yes
  23408. - ;;
  23409. -
  23410. -hpux9* | hpux10* | hpux11*)
  23411. - # Give a soname corresponding to the major version so that dld.sl refuses to
  23412. - # link against other versions.
  23413. - version_type=sunos
  23414. - need_lib_prefix=no
  23415. - need_version=no
  23416. - case $host_cpu in
  23417. - ia64*)
  23418. - shrext_cmds='.so'
  23419. - hardcode_into_libs=yes
  23420. - dynamic_linker="$host_os dld.so"
  23421. - shlibpath_var=LD_LIBRARY_PATH
  23422. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23423. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23424. - soname_spec='${libname}${release}${shared_ext}$major'
  23425. - if test "X$HPUX_IA64_MODE" = X32; then
  23426. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23427. - else
  23428. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23429. - fi
  23430. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23431. - ;;
  23432. - hppa*64*)
  23433. - shrext_cmds='.sl'
  23434. - hardcode_into_libs=yes
  23435. - dynamic_linker="$host_os dld.sl"
  23436. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23437. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23438. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23439. - soname_spec='${libname}${release}${shared_ext}$major'
  23440. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23441. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23442. - ;;
  23443. - *)
  23444. - shrext_cmds='.sl'
  23445. - dynamic_linker="$host_os dld.sl"
  23446. - shlibpath_var=SHLIB_PATH
  23447. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23448. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23449. - soname_spec='${libname}${release}${shared_ext}$major'
  23450. - ;;
  23451. - esac
  23452. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23453. - postinstall_cmds='chmod 555 $lib'
  23454. - ;;
  23455. -
  23456. -interix[3-9]*)
  23457. - version_type=linux
  23458. - need_lib_prefix=no
  23459. - need_version=no
  23460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23461. - soname_spec='${libname}${release}${shared_ext}$major'
  23462. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23463. - shlibpath_var=LD_LIBRARY_PATH
  23464. - shlibpath_overrides_runpath=no
  23465. - hardcode_into_libs=yes
  23466. - ;;
  23467. -
  23468. -irix5* | irix6* | nonstopux*)
  23469. - case $host_os in
  23470. - nonstopux*) version_type=nonstopux ;;
  23471. - *)
  23472. - if test "$lt_cv_prog_gnu_ld" = yes; then
  23473. - version_type=linux
  23474. - else
  23475. - version_type=irix
  23476. - fi ;;
  23477. - esac
  23478. - need_lib_prefix=no
  23479. - need_version=no
  23480. - soname_spec='${libname}${release}${shared_ext}$major'
  23481. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23482. - case $host_os in
  23483. - irix5* | nonstopux*)
  23484. - libsuff= shlibsuff=
  23485. - ;;
  23486. - *)
  23487. - case $LD in # libtool.m4 will add one of these switches to LD
  23488. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23489. - libsuff= shlibsuff= libmagic=32-bit;;
  23490. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23491. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  23492. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23493. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23494. - *) libsuff= shlibsuff= libmagic=never-match;;
  23495. - esac
  23496. - ;;
  23497. - esac
  23498. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23499. - shlibpath_overrides_runpath=no
  23500. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23501. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23502. - hardcode_into_libs=yes
  23503. - ;;
  23504. -
  23505. -# No shared lib support for Linux oldld, aout, or coff.
  23506. -linux*oldld* | linux*aout* | linux*coff*)
  23507. - dynamic_linker=no
  23508. - ;;
  23509. -
  23510. -# This must be Linux ELF.
  23511. -linux* | k*bsd*-gnu)
  23512. - version_type=linux
  23513. - need_lib_prefix=no
  23514. - need_version=no
  23515. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23516. - soname_spec='${libname}${release}${shared_ext}$major'
  23517. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23518. - shlibpath_var=LD_LIBRARY_PATH
  23519. - shlibpath_overrides_runpath=no
  23520. - # This implies no fast_install, which is unacceptable.
  23521. - # Some rework will be needed to allow for fast_install
  23522. - # before this can be enabled.
  23523. - hardcode_into_libs=yes
  23524. -
  23525. - # Append ld.so.conf contents to the search path
  23526. - if test -f /etc/ld.so.conf; then
  23527. - 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' ' '`
  23528. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  23529. - fi
  23530. -
  23531. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  23532. - # powerpc, because MkLinux only supported shared libraries with the
  23533. - # GNU dynamic linker. Since this was broken with cross compilers,
  23534. - # most powerpc-linux boxes support dynamic linking these days and
  23535. - # people can always --disable-shared, the test was removed, and we
  23536. - # assume the GNU/Linux dynamic linker is in use.
  23537. - dynamic_linker='GNU/Linux ld.so'
  23538. - ;;
  23539. -
  23540. -netbsdelf*-gnu)
  23541. - version_type=linux
  23542. - need_lib_prefix=no
  23543. - need_version=no
  23544. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23545. - soname_spec='${libname}${release}${shared_ext}$major'
  23546. - shlibpath_var=LD_LIBRARY_PATH
  23547. - shlibpath_overrides_runpath=no
  23548. - hardcode_into_libs=yes
  23549. - dynamic_linker='NetBSD ld.elf_so'
  23550. - ;;
  23551. -
  23552. -netbsd*)
  23553. - version_type=sunos
  23554. - need_lib_prefix=no
  23555. - need_version=no
  23556. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23557. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23558. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23559. - dynamic_linker='NetBSD (a.out) ld.so'
  23560. - else
  23561. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23562. - soname_spec='${libname}${release}${shared_ext}$major'
  23563. - dynamic_linker='NetBSD ld.elf_so'
  23564. - fi
  23565. - shlibpath_var=LD_LIBRARY_PATH
  23566. - shlibpath_overrides_runpath=yes
  23567. - hardcode_into_libs=yes
  23568. - ;;
  23569. -
  23570. -newsos6)
  23571. - version_type=linux
  23572. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23573. - shlibpath_var=LD_LIBRARY_PATH
  23574. - shlibpath_overrides_runpath=yes
  23575. - ;;
  23576. -
  23577. -nto-qnx*)
  23578. - version_type=linux
  23579. - need_lib_prefix=no
  23580. - need_version=no
  23581. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23582. - soname_spec='${libname}${release}${shared_ext}$major'
  23583. - shlibpath_var=LD_LIBRARY_PATH
  23584. - shlibpath_overrides_runpath=yes
  23585. - ;;
  23586. -
  23587. -openbsd*)
  23588. - version_type=sunos
  23589. - sys_lib_dlsearch_path_spec="/usr/lib"
  23590. - need_lib_prefix=no
  23591. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23592. - case $host_os in
  23593. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  23594. - *) need_version=no ;;
  23595. - esac
  23596. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23597. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23598. - shlibpath_var=LD_LIBRARY_PATH
  23599. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23600. - case $host_os in
  23601. - openbsd2.[89] | openbsd2.[89].*)
  23602. - shlibpath_overrides_runpath=no
  23603. - ;;
  23604. - *)
  23605. - shlibpath_overrides_runpath=yes
  23606. - ;;
  23607. - esac
  23608. - else
  23609. - shlibpath_overrides_runpath=yes
  23610. - fi
  23611. - ;;
  23612. -
  23613. -os2*)
  23614. - libname_spec='$name'
  23615. - shrext_cmds=".dll"
  23616. - need_lib_prefix=no
  23617. - library_names_spec='$libname${shared_ext} $libname.a'
  23618. - dynamic_linker='OS/2 ld.exe'
  23619. - shlibpath_var=LIBPATH
  23620. - ;;
  23621. -
  23622. -osf3* | osf4* | osf5*)
  23623. - version_type=osf
  23624. - need_lib_prefix=no
  23625. - need_version=no
  23626. - soname_spec='${libname}${release}${shared_ext}$major'
  23627. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23628. - shlibpath_var=LD_LIBRARY_PATH
  23629. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  23630. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  23631. - ;;
  23632. -
  23633. -rdos*)
  23634. - dynamic_linker=no
  23635. - ;;
  23636. -
  23637. -solaris*)
  23638. - version_type=linux
  23639. - need_lib_prefix=no
  23640. - need_version=no
  23641. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23642. - soname_spec='${libname}${release}${shared_ext}$major'
  23643. - shlibpath_var=LD_LIBRARY_PATH
  23644. - shlibpath_overrides_runpath=yes
  23645. - hardcode_into_libs=yes
  23646. - # ldd complains unless libraries are executable
  23647. - postinstall_cmds='chmod +x $lib'
  23648. - ;;
  23649. -
  23650. -sunos4*)
  23651. - version_type=sunos
  23652. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23653. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  23654. - shlibpath_var=LD_LIBRARY_PATH
  23655. - shlibpath_overrides_runpath=yes
  23656. - if test "$with_gnu_ld" = yes; then
  23657. - need_lib_prefix=no
  23658. - fi
  23659. - need_version=yes
  23660. - ;;
  23661. -
  23662. -sysv4 | sysv4.3*)
  23663. - version_type=linux
  23664. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23665. - soname_spec='${libname}${release}${shared_ext}$major'
  23666. - shlibpath_var=LD_LIBRARY_PATH
  23667. - case $host_vendor in
  23668. - sni)
  23669. - shlibpath_overrides_runpath=no
  23670. - need_lib_prefix=no
  23671. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  23672. - runpath_var=LD_RUN_PATH
  23673. - ;;
  23674. - siemens)
  23675. - need_lib_prefix=no
  23676. - ;;
  23677. - motorola)
  23678. - need_lib_prefix=no
  23679. - need_version=no
  23680. - shlibpath_overrides_runpath=no
  23681. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  23682. - ;;
  23683. - esac
  23684. - ;;
  23685. -
  23686. -sysv4*MP*)
  23687. - if test -d /usr/nec ;then
  23688. - version_type=linux
  23689. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  23690. - soname_spec='$libname${shared_ext}.$major'
  23691. - shlibpath_var=LD_LIBRARY_PATH
  23692. - fi
  23693. - ;;
  23694. -
  23695. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  23696. - version_type=freebsd-elf
  23697. - need_lib_prefix=no
  23698. - need_version=no
  23699. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23700. - soname_spec='${libname}${release}${shared_ext}$major'
  23701. - shlibpath_var=LD_LIBRARY_PATH
  23702. - hardcode_into_libs=yes
  23703. - if test "$with_gnu_ld" = yes; then
  23704. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  23705. - shlibpath_overrides_runpath=no
  23706. - else
  23707. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  23708. - shlibpath_overrides_runpath=yes
  23709. - case $host_os in
  23710. - sco3.2v5*)
  23711. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  23712. - ;;
  23713. - esac
  23714. - fi
  23715. - sys_lib_dlsearch_path_spec='/usr/lib'
  23716. - ;;
  23717. -
  23718. -uts4*)
  23719. - version_type=linux
  23720. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23721. - soname_spec='${libname}${release}${shared_ext}$major'
  23722. - shlibpath_var=LD_LIBRARY_PATH
  23723. - ;;
  23724. -
  23725. -*)
  23726. - dynamic_linker=no
  23727. - ;;
  23728. -esac
  23729. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  23730. -echo "${ECHO_T}$dynamic_linker" >&6; }
  23731. -test "$dynamic_linker" = no && can_build_shared=no
  23732. -
  23733. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  23734. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23735. -else
  23736. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  23737. -fi
  23738. -
  23739. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  23740. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  23741. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23742. -else
  23743. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  23744. -fi
  23745. -
  23746. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  23747. -
  23748. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  23749. -if test "$GCC" = yes; then
  23750. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  23751. -fi
  23752. -
  23753. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  23754. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  23755. -hardcode_action=
  23756. -if test -n "$hardcode_libdir_flag_spec" || \
  23757. - test -n "$runpath_var" || \
  23758. - test "X$hardcode_automatic" = "Xyes" ; then
  23759. -
  23760. - # We can hardcode non-existant directories.
  23761. - if test "$hardcode_direct" != no &&
  23762. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  23763. - # have to relink, otherwise we might link with an installed library
  23764. - # when we should be linking with a yet-to-be-installed one
  23765. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  23766. - test "$hardcode_minus_L" != no; then
  23767. - # Linking always hardcodes the temporary library directory.
  23768. - hardcode_action=relink
  23769. - else
  23770. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  23771. - hardcode_action=immediate
  23772. - fi
  23773. -else
  23774. - # We cannot hardcode anything, or else we can only hardcode existing
  23775. - # directories.
  23776. - hardcode_action=unsupported
  23777. -fi
  23778. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  23779. -echo "${ECHO_T}$hardcode_action" >&6; }
  23780. -
  23781. -if test "$hardcode_action" = relink; then
  23782. - # Fast installation is not supported
  23783. - enable_fast_install=no
  23784. -elif test "$shlibpath_overrides_runpath" = yes ||
  23785. - test "$enable_shared" = no; then
  23786. - # Fast installation is not necessary
  23787. - enable_fast_install=needless
  23788. -fi
  23789. -
  23790. -striplib=
  23791. -old_striplib=
  23792. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  23793. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  23794. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  23795. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  23796. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  23797. - { echo "$as_me:$LINENO: result: yes" >&5
  23798. -echo "${ECHO_T}yes" >&6; }
  23799. -else
  23800. -# FIXME - insert some real tests, host_os isn't really good enough
  23801. - case $host_os in
  23802. - darwin*)
  23803. - if test -n "$STRIP" ; then
  23804. - striplib="$STRIP -x"
  23805. - old_striplib="$STRIP -S"
  23806. - { echo "$as_me:$LINENO: result: yes" >&5
  23807. -echo "${ECHO_T}yes" >&6; }
  23808. - else
  23809. - { echo "$as_me:$LINENO: result: no" >&5
  23810. -echo "${ECHO_T}no" >&6; }
  23811. -fi
  23812. - ;;
  23813. - *)
  23814. - { echo "$as_me:$LINENO: result: no" >&5
  23815. -echo "${ECHO_T}no" >&6; }
  23816. - ;;
  23817. - esac
  23818. -fi
  23819. -
  23820. -if test "x$enable_dlopen" != xyes; then
  23821. - enable_dlopen=unknown
  23822. - enable_dlopen_self=unknown
  23823. - enable_dlopen_self_static=unknown
  23824. -else
  23825. - lt_cv_dlopen=no
  23826. - lt_cv_dlopen_libs=
  23827. -
  23828. - case $host_os in
  23829. - beos*)
  23830. - lt_cv_dlopen="load_add_on"
  23831. - lt_cv_dlopen_libs=
  23832. - lt_cv_dlopen_self=yes
  23833. - ;;
  23834. -
  23835. - mingw* | pw32*)
  23836. - lt_cv_dlopen="LoadLibrary"
  23837. - lt_cv_dlopen_libs=
  23838. - ;;
  23839. -
  23840. - cygwin*)
  23841. - lt_cv_dlopen="dlopen"
  23842. - lt_cv_dlopen_libs=
  23843. - ;;
  23844. -
  23845. - darwin*)
  23846. - # if libdl is installed we need to link against it
  23847. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  23848. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  23849. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  23850. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23851. -else
  23852. - ac_check_lib_save_LIBS=$LIBS
  23853. -LIBS="-ldl $LIBS"
  23854. -cat >conftest.$ac_ext <<_ACEOF
  23855. -/* confdefs.h. */
  23856. -_ACEOF
  23857. -cat confdefs.h >>conftest.$ac_ext
  23858. -cat >>conftest.$ac_ext <<_ACEOF
  23859. -/* end confdefs.h. */
  23860. -
  23861. -/* Override any GCC internal prototype to avoid an error.
  23862. - Use char because int might match the return type of a GCC
  23863. - builtin and then its argument prototype would still apply. */
  23864. -#ifdef __cplusplus
  23865. -extern "C"
  23866. -#endif
  23867. -char dlopen ();
  23868. -int
  23869. -main ()
  23870. -{
  23871. -return dlopen ();
  23872. - ;
  23873. - return 0;
  23874. -}
  23875. -_ACEOF
  23876. -rm -f conftest.$ac_objext conftest$ac_exeext
  23877. -if { (ac_try="$ac_link"
  23878. -case "(($ac_try" in
  23879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23880. - *) ac_try_echo=$ac_try;;
  23881. -esac
  23882. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23883. - (eval "$ac_link") 2>conftest.er1
  23884. - ac_status=$?
  23885. - grep -v '^ *+' conftest.er1 >conftest.err
  23886. - rm -f conftest.er1
  23887. - cat conftest.err >&5
  23888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23889. - (exit $ac_status); } && {
  23890. - test -z "$ac_c_werror_flag" ||
  23891. - test ! -s conftest.err
  23892. - } && test -s conftest$ac_exeext &&
  23893. - $as_test_x conftest$ac_exeext; then
  23894. - ac_cv_lib_dl_dlopen=yes
  23895. -else
  23896. - echo "$as_me: failed program was:" >&5
  23897. -sed 's/^/| /' conftest.$ac_ext >&5
  23898. -
  23899. - ac_cv_lib_dl_dlopen=no
  23900. -fi
  23901. -
  23902. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23903. - conftest$ac_exeext conftest.$ac_ext
  23904. -LIBS=$ac_check_lib_save_LIBS
  23905. -fi
  23906. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  23907. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  23908. -if test $ac_cv_lib_dl_dlopen = yes; then
  23909. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  23910. -else
  23911. -
  23912. - lt_cv_dlopen="dyld"
  23913. - lt_cv_dlopen_libs=
  23914. - lt_cv_dlopen_self=yes
  23915. -
  23916. -fi
  23917. -
  23918. - ;;
  23919. -
  23920. - *)
  23921. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  23922. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  23923. -if test "${ac_cv_func_shl_load+set}" = set; then
  23924. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23925. -else
  23926. - cat >conftest.$ac_ext <<_ACEOF
  23927. -/* confdefs.h. */
  23928. -_ACEOF
  23929. -cat confdefs.h >>conftest.$ac_ext
  23930. -cat >>conftest.$ac_ext <<_ACEOF
  23931. -/* end confdefs.h. */
  23932. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  23933. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23934. -#define shl_load innocuous_shl_load
  23935. -
  23936. -/* System header to define __stub macros and hopefully few prototypes,
  23937. - which can conflict with char shl_load (); below.
  23938. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23939. - <limits.h> exists even on freestanding compilers. */
  23940. -
  23941. -#ifdef __STDC__
  23942. -# include <limits.h>
  23943. -#else
  23944. -# include <assert.h>
  23945. -#endif
  23946. -
  23947. -#undef shl_load
  23948. -
  23949. -/* Override any GCC internal prototype to avoid an error.
  23950. - Use char because int might match the return type of a GCC
  23951. - builtin and then its argument prototype would still apply. */
  23952. -#ifdef __cplusplus
  23953. -extern "C"
  23954. -#endif
  23955. -char shl_load ();
  23956. -/* The GNU C library defines this for functions which it implements
  23957. - to always fail with ENOSYS. Some functions are actually named
  23958. - something starting with __ and the normal name is an alias. */
  23959. -#if defined __stub_shl_load || defined __stub___shl_load
  23960. -choke me
  23961. -#endif
  23962. -
  23963. -int
  23964. -main ()
  23965. -{
  23966. -return shl_load ();
  23967. - ;
  23968. - return 0;
  23969. -}
  23970. -_ACEOF
  23971. -rm -f conftest.$ac_objext conftest$ac_exeext
  23972. -if { (ac_try="$ac_link"
  23973. -case "(($ac_try" in
  23974. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23975. - *) ac_try_echo=$ac_try;;
  23976. -esac
  23977. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23978. - (eval "$ac_link") 2>conftest.er1
  23979. - ac_status=$?
  23980. - grep -v '^ *+' conftest.er1 >conftest.err
  23981. - rm -f conftest.er1
  23982. - cat conftest.err >&5
  23983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23984. - (exit $ac_status); } && {
  23985. - test -z "$ac_c_werror_flag" ||
  23986. - test ! -s conftest.err
  23987. - } && test -s conftest$ac_exeext &&
  23988. - $as_test_x conftest$ac_exeext; then
  23989. - ac_cv_func_shl_load=yes
  23990. -else
  23991. - echo "$as_me: failed program was:" >&5
  23992. -sed 's/^/| /' conftest.$ac_ext >&5
  23993. -
  23994. - ac_cv_func_shl_load=no
  23995. -fi
  23996. -
  23997. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23998. - conftest$ac_exeext conftest.$ac_ext
  23999. -fi
  24000. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  24001. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  24002. -if test $ac_cv_func_shl_load = yes; then
  24003. - lt_cv_dlopen="shl_load"
  24004. -else
  24005. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  24006. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  24007. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  24008. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24009. -else
  24010. - ac_check_lib_save_LIBS=$LIBS
  24011. -LIBS="-ldld $LIBS"
  24012. -cat >conftest.$ac_ext <<_ACEOF
  24013. -/* confdefs.h. */
  24014. -_ACEOF
  24015. -cat confdefs.h >>conftest.$ac_ext
  24016. -cat >>conftest.$ac_ext <<_ACEOF
  24017. -/* end confdefs.h. */
  24018. -
  24019. -/* Override any GCC internal prototype to avoid an error.
  24020. - Use char because int might match the return type of a GCC
  24021. - builtin and then its argument prototype would still apply. */
  24022. -#ifdef __cplusplus
  24023. -extern "C"
  24024. -#endif
  24025. -char shl_load ();
  24026. -int
  24027. -main ()
  24028. -{
  24029. -return shl_load ();
  24030. - ;
  24031. - return 0;
  24032. -}
  24033. -_ACEOF
  24034. -rm -f conftest.$ac_objext conftest$ac_exeext
  24035. -if { (ac_try="$ac_link"
  24036. -case "(($ac_try" in
  24037. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24038. - *) ac_try_echo=$ac_try;;
  24039. -esac
  24040. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24041. - (eval "$ac_link") 2>conftest.er1
  24042. - ac_status=$?
  24043. - grep -v '^ *+' conftest.er1 >conftest.err
  24044. - rm -f conftest.er1
  24045. - cat conftest.err >&5
  24046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24047. - (exit $ac_status); } && {
  24048. - test -z "$ac_c_werror_flag" ||
  24049. - test ! -s conftest.err
  24050. - } && test -s conftest$ac_exeext &&
  24051. - $as_test_x conftest$ac_exeext; then
  24052. - ac_cv_lib_dld_shl_load=yes
  24053. -else
  24054. - echo "$as_me: failed program was:" >&5
  24055. -sed 's/^/| /' conftest.$ac_ext >&5
  24056. -
  24057. - ac_cv_lib_dld_shl_load=no
  24058. -fi
  24059. -
  24060. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24061. - conftest$ac_exeext conftest.$ac_ext
  24062. -LIBS=$ac_check_lib_save_LIBS
  24063. -fi
  24064. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  24065. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  24066. -if test $ac_cv_lib_dld_shl_load = yes; then
  24067. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  24068. -else
  24069. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  24070. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  24071. -if test "${ac_cv_func_dlopen+set}" = set; then
  24072. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24073. -else
  24074. - cat >conftest.$ac_ext <<_ACEOF
  24075. -/* confdefs.h. */
  24076. -_ACEOF
  24077. -cat confdefs.h >>conftest.$ac_ext
  24078. -cat >>conftest.$ac_ext <<_ACEOF
  24079. -/* end confdefs.h. */
  24080. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  24081. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24082. -#define dlopen innocuous_dlopen
  24083. -
  24084. -/* System header to define __stub macros and hopefully few prototypes,
  24085. - which can conflict with char dlopen (); below.
  24086. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24087. - <limits.h> exists even on freestanding compilers. */
  24088. -
  24089. -#ifdef __STDC__
  24090. -# include <limits.h>
  24091. -#else
  24092. -# include <assert.h>
  24093. -#endif
  24094. -
  24095. -#undef dlopen
  24096. -
  24097. -/* Override any GCC internal prototype to avoid an error.
  24098. - Use char because int might match the return type of a GCC
  24099. - builtin and then its argument prototype would still apply. */
  24100. -#ifdef __cplusplus
  24101. -extern "C"
  24102. -#endif
  24103. -char dlopen ();
  24104. -/* The GNU C library defines this for functions which it implements
  24105. - to always fail with ENOSYS. Some functions are actually named
  24106. - something starting with __ and the normal name is an alias. */
  24107. -#if defined __stub_dlopen || defined __stub___dlopen
  24108. -choke me
  24109. -#endif
  24110. -
  24111. -int
  24112. -main ()
  24113. -{
  24114. -return dlopen ();
  24115. - ;
  24116. - return 0;
  24117. -}
  24118. -_ACEOF
  24119. -rm -f conftest.$ac_objext conftest$ac_exeext
  24120. -if { (ac_try="$ac_link"
  24121. -case "(($ac_try" in
  24122. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24123. - *) ac_try_echo=$ac_try;;
  24124. -esac
  24125. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24126. - (eval "$ac_link") 2>conftest.er1
  24127. - ac_status=$?
  24128. - grep -v '^ *+' conftest.er1 >conftest.err
  24129. - rm -f conftest.er1
  24130. - cat conftest.err >&5
  24131. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24132. - (exit $ac_status); } && {
  24133. - test -z "$ac_c_werror_flag" ||
  24134. - test ! -s conftest.err
  24135. - } && test -s conftest$ac_exeext &&
  24136. - $as_test_x conftest$ac_exeext; then
  24137. - ac_cv_func_dlopen=yes
  24138. -else
  24139. - echo "$as_me: failed program was:" >&5
  24140. -sed 's/^/| /' conftest.$ac_ext >&5
  24141. -
  24142. - ac_cv_func_dlopen=no
  24143. -fi
  24144. -
  24145. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24146. - conftest$ac_exeext conftest.$ac_ext
  24147. -fi
  24148. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  24149. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  24150. -if test $ac_cv_func_dlopen = yes; then
  24151. - lt_cv_dlopen="dlopen"
  24152. -else
  24153. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  24154. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  24155. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  24156. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24157. -else
  24158. - ac_check_lib_save_LIBS=$LIBS
  24159. -LIBS="-ldl $LIBS"
  24160. -cat >conftest.$ac_ext <<_ACEOF
  24161. -/* confdefs.h. */
  24162. -_ACEOF
  24163. -cat confdefs.h >>conftest.$ac_ext
  24164. -cat >>conftest.$ac_ext <<_ACEOF
  24165. -/* end confdefs.h. */
  24166. -
  24167. -/* Override any GCC internal prototype to avoid an error.
  24168. - Use char because int might match the return type of a GCC
  24169. - builtin and then its argument prototype would still apply. */
  24170. -#ifdef __cplusplus
  24171. -extern "C"
  24172. -#endif
  24173. -char dlopen ();
  24174. -int
  24175. -main ()
  24176. -{
  24177. -return dlopen ();
  24178. - ;
  24179. - return 0;
  24180. -}
  24181. -_ACEOF
  24182. -rm -f conftest.$ac_objext conftest$ac_exeext
  24183. -if { (ac_try="$ac_link"
  24184. -case "(($ac_try" in
  24185. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24186. - *) ac_try_echo=$ac_try;;
  24187. -esac
  24188. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24189. - (eval "$ac_link") 2>conftest.er1
  24190. - ac_status=$?
  24191. - grep -v '^ *+' conftest.er1 >conftest.err
  24192. - rm -f conftest.er1
  24193. - cat conftest.err >&5
  24194. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24195. - (exit $ac_status); } && {
  24196. - test -z "$ac_c_werror_flag" ||
  24197. - test ! -s conftest.err
  24198. - } && test -s conftest$ac_exeext &&
  24199. - $as_test_x conftest$ac_exeext; then
  24200. - ac_cv_lib_dl_dlopen=yes
  24201. -else
  24202. - echo "$as_me: failed program was:" >&5
  24203. -sed 's/^/| /' conftest.$ac_ext >&5
  24204. -
  24205. - ac_cv_lib_dl_dlopen=no
  24206. -fi
  24207. -
  24208. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24209. - conftest$ac_exeext conftest.$ac_ext
  24210. -LIBS=$ac_check_lib_save_LIBS
  24211. -fi
  24212. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  24213. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  24214. -if test $ac_cv_lib_dl_dlopen = yes; then
  24215. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  24216. -else
  24217. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  24218. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  24219. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  24220. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24221. -else
  24222. - ac_check_lib_save_LIBS=$LIBS
  24223. -LIBS="-lsvld $LIBS"
  24224. -cat >conftest.$ac_ext <<_ACEOF
  24225. -/* confdefs.h. */
  24226. -_ACEOF
  24227. -cat confdefs.h >>conftest.$ac_ext
  24228. -cat >>conftest.$ac_ext <<_ACEOF
  24229. -/* end confdefs.h. */
  24230. -
  24231. -/* Override any GCC internal prototype to avoid an error.
  24232. - Use char because int might match the return type of a GCC
  24233. - builtin and then its argument prototype would still apply. */
  24234. -#ifdef __cplusplus
  24235. -extern "C"
  24236. -#endif
  24237. -char dlopen ();
  24238. -int
  24239. -main ()
  24240. -{
  24241. -return dlopen ();
  24242. - ;
  24243. - return 0;
  24244. -}
  24245. -_ACEOF
  24246. -rm -f conftest.$ac_objext conftest$ac_exeext
  24247. -if { (ac_try="$ac_link"
  24248. -case "(($ac_try" in
  24249. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24250. - *) ac_try_echo=$ac_try;;
  24251. -esac
  24252. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24253. - (eval "$ac_link") 2>conftest.er1
  24254. - ac_status=$?
  24255. - grep -v '^ *+' conftest.er1 >conftest.err
  24256. - rm -f conftest.er1
  24257. - cat conftest.err >&5
  24258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24259. - (exit $ac_status); } && {
  24260. - test -z "$ac_c_werror_flag" ||
  24261. - test ! -s conftest.err
  24262. - } && test -s conftest$ac_exeext &&
  24263. - $as_test_x conftest$ac_exeext; then
  24264. - ac_cv_lib_svld_dlopen=yes
  24265. -else
  24266. - echo "$as_me: failed program was:" >&5
  24267. -sed 's/^/| /' conftest.$ac_ext >&5
  24268. -
  24269. - ac_cv_lib_svld_dlopen=no
  24270. -fi
  24271. -
  24272. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24273. - conftest$ac_exeext conftest.$ac_ext
  24274. -LIBS=$ac_check_lib_save_LIBS
  24275. -fi
  24276. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  24277. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  24278. -if test $ac_cv_lib_svld_dlopen = yes; then
  24279. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  24280. -else
  24281. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  24282. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  24283. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  24284. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24285. -else
  24286. - ac_check_lib_save_LIBS=$LIBS
  24287. -LIBS="-ldld $LIBS"
  24288. -cat >conftest.$ac_ext <<_ACEOF
  24289. -/* confdefs.h. */
  24290. -_ACEOF
  24291. -cat confdefs.h >>conftest.$ac_ext
  24292. -cat >>conftest.$ac_ext <<_ACEOF
  24293. -/* end confdefs.h. */
  24294. -
  24295. -/* Override any GCC internal prototype to avoid an error.
  24296. - Use char because int might match the return type of a GCC
  24297. - builtin and then its argument prototype would still apply. */
  24298. -#ifdef __cplusplus
  24299. -extern "C"
  24300. -#endif
  24301. -char dld_link ();
  24302. -int
  24303. -main ()
  24304. -{
  24305. -return dld_link ();
  24306. - ;
  24307. - return 0;
  24308. -}
  24309. -_ACEOF
  24310. -rm -f conftest.$ac_objext conftest$ac_exeext
  24311. -if { (ac_try="$ac_link"
  24312. -case "(($ac_try" in
  24313. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24314. - *) ac_try_echo=$ac_try;;
  24315. -esac
  24316. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24317. - (eval "$ac_link") 2>conftest.er1
  24318. - ac_status=$?
  24319. - grep -v '^ *+' conftest.er1 >conftest.err
  24320. - rm -f conftest.er1
  24321. - cat conftest.err >&5
  24322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24323. - (exit $ac_status); } && {
  24324. - test -z "$ac_c_werror_flag" ||
  24325. - test ! -s conftest.err
  24326. - } && test -s conftest$ac_exeext &&
  24327. - $as_test_x conftest$ac_exeext; then
  24328. - ac_cv_lib_dld_dld_link=yes
  24329. -else
  24330. - echo "$as_me: failed program was:" >&5
  24331. -sed 's/^/| /' conftest.$ac_ext >&5
  24332. -
  24333. - ac_cv_lib_dld_dld_link=no
  24334. -fi
  24335. -
  24336. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24337. - conftest$ac_exeext conftest.$ac_ext
  24338. -LIBS=$ac_check_lib_save_LIBS
  24339. -fi
  24340. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  24341. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  24342. -if test $ac_cv_lib_dld_dld_link = yes; then
  24343. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  24344. -fi
  24345. -
  24346. -
  24347. -fi
  24348. -
  24349. -
  24350. -fi
  24351. -
  24352. -
  24353. -fi
  24354. -
  24355. -
  24356. -fi
  24357. -
  24358. -
  24359. -fi
  24360. -
  24361. - ;;
  24362. - esac
  24363. -
  24364. - if test "x$lt_cv_dlopen" != xno; then
  24365. - enable_dlopen=yes
  24366. - else
  24367. - enable_dlopen=no
  24368. - fi
  24369. -
  24370. - case $lt_cv_dlopen in
  24371. - dlopen)
  24372. - save_CPPFLAGS="$CPPFLAGS"
  24373. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  24374. -
  24375. - save_LDFLAGS="$LDFLAGS"
  24376. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  24377. -
  24378. - save_LIBS="$LIBS"
  24379. - LIBS="$lt_cv_dlopen_libs $LIBS"
  24380. -
  24381. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  24382. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  24383. -if test "${lt_cv_dlopen_self+set}" = set; then
  24384. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24385. -else
  24386. - if test "$cross_compiling" = yes; then :
  24387. - lt_cv_dlopen_self=cross
  24388. -else
  24389. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  24390. - lt_status=$lt_dlunknown
  24391. - cat > conftest.$ac_ext <<EOF
  24392. -#line 10186 "configure"
  24393. -#include "confdefs.h"
  24394. -
  24395. -#if HAVE_DLFCN_H
  24396. -#include <dlfcn.h>
  24397. -#endif
  24398. -
  24399. -#include <stdio.h>
  24400. -
  24401. -#ifdef RTLD_GLOBAL
  24402. -# define LT_DLGLOBAL RTLD_GLOBAL
  24403. -#else
  24404. -# ifdef DL_GLOBAL
  24405. -# define LT_DLGLOBAL DL_GLOBAL
  24406. -# else
  24407. -# define LT_DLGLOBAL 0
  24408. -# endif
  24409. -#endif
  24410. -
  24411. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  24412. - find out it does not work in some platform. */
  24413. -#ifndef LT_DLLAZY_OR_NOW
  24414. -# ifdef RTLD_LAZY
  24415. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  24416. -# else
  24417. -# ifdef DL_LAZY
  24418. -# define LT_DLLAZY_OR_NOW DL_LAZY
  24419. -# else
  24420. -# ifdef RTLD_NOW
  24421. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  24422. -# else
  24423. -# ifdef DL_NOW
  24424. -# define LT_DLLAZY_OR_NOW DL_NOW
  24425. -# else
  24426. -# define LT_DLLAZY_OR_NOW 0
  24427. -# endif
  24428. -# endif
  24429. -# endif
  24430. -# endif
  24431. -#endif
  24432. -
  24433. -#ifdef __cplusplus
  24434. -extern "C" void exit (int);
  24435. -#endif
  24436. -
  24437. -void fnord() { int i=42;}
  24438. -int main ()
  24439. -{
  24440. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  24441. - int status = $lt_dlunknown;
  24442. -
  24443. - if (self)
  24444. - {
  24445. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  24446. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  24447. - /* dlclose (self); */
  24448. - }
  24449. - else
  24450. - puts (dlerror ());
  24451. -
  24452. - exit (status);
  24453. -}
  24454. -EOF
  24455. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24456. - (eval $ac_link) 2>&5
  24457. - ac_status=$?
  24458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24459. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  24460. - (./conftest; exit; ) >&5 2>/dev/null
  24461. - lt_status=$?
  24462. - case x$lt_status in
  24463. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  24464. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  24465. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  24466. - esac
  24467. - else :
  24468. - # compilation failed
  24469. - lt_cv_dlopen_self=no
  24470. - fi
  24471. -fi
  24472. -rm -fr conftest*
  24473. -
  24474. -
  24475. -fi
  24476. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  24477. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  24478. -
  24479. - if test "x$lt_cv_dlopen_self" = xyes; then
  24480. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  24481. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  24482. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  24483. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  24484. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24485. -else
  24486. - if test "$cross_compiling" = yes; then :
  24487. - lt_cv_dlopen_self_static=cross
  24488. -else
  24489. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  24490. - lt_status=$lt_dlunknown
  24491. - cat > conftest.$ac_ext <<EOF
  24492. -#line 10286 "configure"
  24493. -#include "confdefs.h"
  24494. -
  24495. -#if HAVE_DLFCN_H
  24496. -#include <dlfcn.h>
  24497. -#endif
  24498. -
  24499. -#include <stdio.h>
  24500. -
  24501. -#ifdef RTLD_GLOBAL
  24502. -# define LT_DLGLOBAL RTLD_GLOBAL
  24503. -#else
  24504. -# ifdef DL_GLOBAL
  24505. -# define LT_DLGLOBAL DL_GLOBAL
  24506. -# else
  24507. -# define LT_DLGLOBAL 0
  24508. -# endif
  24509. -#endif
  24510. -
  24511. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  24512. - find out it does not work in some platform. */
  24513. -#ifndef LT_DLLAZY_OR_NOW
  24514. -# ifdef RTLD_LAZY
  24515. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  24516. -# else
  24517. -# ifdef DL_LAZY
  24518. -# define LT_DLLAZY_OR_NOW DL_LAZY
  24519. -# else
  24520. -# ifdef RTLD_NOW
  24521. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  24522. -# else
  24523. -# ifdef DL_NOW
  24524. -# define LT_DLLAZY_OR_NOW DL_NOW
  24525. -# else
  24526. -# define LT_DLLAZY_OR_NOW 0
  24527. -# endif
  24528. -# endif
  24529. -# endif
  24530. -# endif
  24531. -#endif
  24532. -
  24533. -#ifdef __cplusplus
  24534. -extern "C" void exit (int);
  24535. -#endif
  24536. -
  24537. -void fnord() { int i=42;}
  24538. -int main ()
  24539. -{
  24540. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  24541. - int status = $lt_dlunknown;
  24542. -
  24543. - if (self)
  24544. - {
  24545. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  24546. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  24547. - /* dlclose (self); */
  24548. - }
  24549. - else
  24550. - puts (dlerror ());
  24551. -
  24552. - exit (status);
  24553. -}
  24554. -EOF
  24555. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24556. - (eval $ac_link) 2>&5
  24557. - ac_status=$?
  24558. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24559. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  24560. - (./conftest; exit; ) >&5 2>/dev/null
  24561. - lt_status=$?
  24562. - case x$lt_status in
  24563. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  24564. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  24565. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  24566. - esac
  24567. - else :
  24568. - # compilation failed
  24569. - lt_cv_dlopen_self_static=no
  24570. - fi
  24571. -fi
  24572. -rm -fr conftest*
  24573. -
  24574. -
  24575. -fi
  24576. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  24577. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  24578. - fi
  24579. -
  24580. - CPPFLAGS="$save_CPPFLAGS"
  24581. - LDFLAGS="$save_LDFLAGS"
  24582. - LIBS="$save_LIBS"
  24583. - ;;
  24584. - esac
  24585. -
  24586. - case $lt_cv_dlopen_self in
  24587. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  24588. - *) enable_dlopen_self=unknown ;;
  24589. - esac
  24590. -
  24591. - case $lt_cv_dlopen_self_static in
  24592. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  24593. - *) enable_dlopen_self_static=unknown ;;
  24594. - esac
  24595. -fi
  24596. -
  24597. -
  24598. -# Report which library types will actually be built
  24599. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  24600. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  24601. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  24602. -echo "${ECHO_T}$can_build_shared" >&6; }
  24603. -
  24604. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  24605. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  24606. -test "$can_build_shared" = "no" && enable_shared=no
  24607. -
  24608. -# On AIX, shared libraries and static libraries use the same namespace, and
  24609. -# are all built from PIC.
  24610. -case $host_os in
  24611. -aix3*)
  24612. - test "$enable_shared" = yes && enable_static=no
  24613. - if test -n "$RANLIB"; then
  24614. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  24615. - postinstall_cmds='$RANLIB $lib'
  24616. - fi
  24617. - ;;
  24618. -
  24619. -aix[4-9]*)
  24620. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  24621. - test "$enable_shared" = yes && enable_static=no
  24622. - fi
  24623. - ;;
  24624. -esac
  24625. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  24626. -echo "${ECHO_T}$enable_shared" >&6; }
  24627. -
  24628. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  24629. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  24630. -# Make sure either enable_shared or enable_static is yes.
  24631. -test "$enable_shared" = yes || enable_static=yes
  24632. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  24633. -echo "${ECHO_T}$enable_static" >&6; }
  24634. -
  24635. -# The else clause should only fire when bootstrapping the
  24636. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  24637. -# with your package, and you will get complaints that there are
  24638. -# no rules to generate ltmain.sh.
  24639. -if test -f "$ltmain"; then
  24640. - # See if we are running on zsh, and set the options which allow our commands through
  24641. - # without removal of \ escapes.
  24642. - if test -n "${ZSH_VERSION+set}" ; then
  24643. - setopt NO_GLOB_SUBST
  24644. - fi
  24645. - # Now quote all the things that may contain metacharacters while being
  24646. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  24647. - # variables and quote the copies for generation of the libtool script.
  24648. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  24649. - SED SHELL STRIP \
  24650. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  24651. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  24652. - deplibs_check_method reload_flag reload_cmds need_locks \
  24653. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  24654. - lt_cv_sys_global_symbol_to_c_name_address \
  24655. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  24656. - old_postinstall_cmds old_postuninstall_cmds \
  24657. - compiler \
  24658. - CC \
  24659. - LD \
  24660. - lt_prog_compiler_wl \
  24661. - lt_prog_compiler_pic \
  24662. - lt_prog_compiler_static \
  24663. - lt_prog_compiler_no_builtin_flag \
  24664. - export_dynamic_flag_spec \
  24665. - thread_safe_flag_spec \
  24666. - whole_archive_flag_spec \
  24667. - enable_shared_with_static_runtimes \
  24668. - old_archive_cmds \
  24669. - old_archive_from_new_cmds \
  24670. - predep_objects \
  24671. - postdep_objects \
  24672. - predeps \
  24673. - postdeps \
  24674. - compiler_lib_search_path \
  24675. - compiler_lib_search_dirs \
  24676. - archive_cmds \
  24677. - archive_expsym_cmds \
  24678. - postinstall_cmds \
  24679. - postuninstall_cmds \
  24680. - old_archive_from_expsyms_cmds \
  24681. - allow_undefined_flag \
  24682. - no_undefined_flag \
  24683. - export_symbols_cmds \
  24684. - hardcode_libdir_flag_spec \
  24685. - hardcode_libdir_flag_spec_ld \
  24686. - hardcode_libdir_separator \
  24687. - hardcode_automatic \
  24688. - module_cmds \
  24689. - module_expsym_cmds \
  24690. - lt_cv_prog_compiler_c_o \
  24691. - fix_srcfile_path \
  24692. - exclude_expsyms \
  24693. - include_expsyms; do
  24694. -
  24695. - case $var in
  24696. - old_archive_cmds | \
  24697. - old_archive_from_new_cmds | \
  24698. - archive_cmds | \
  24699. - archive_expsym_cmds | \
  24700. - module_cmds | \
  24701. - module_expsym_cmds | \
  24702. - old_archive_from_expsyms_cmds | \
  24703. - export_symbols_cmds | \
  24704. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  24705. - postinstall_cmds | postuninstall_cmds | \
  24706. - old_postinstall_cmds | old_postuninstall_cmds | \
  24707. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  24708. - # Double-quote double-evaled strings.
  24709. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  24710. - ;;
  24711. - *)
  24712. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  24713. - ;;
  24714. - esac
  24715. - done
  24716. -
  24717. - case $lt_echo in
  24718. - *'\$0 --fallback-echo"')
  24719. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  24720. - ;;
  24721. - esac
  24722. -
  24723. -cfgfile="${ofile}T"
  24724. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  24725. - $rm -f "$cfgfile"
  24726. - { echo "$as_me:$LINENO: creating $ofile" >&5
  24727. -echo "$as_me: creating $ofile" >&6;}
  24728. -
  24729. - cat <<__EOF__ >> "$cfgfile"
  24730. -#! $SHELL
  24731. -
  24732. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24733. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  24734. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24735. -#
  24736. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  24737. -# Free Software Foundation, Inc.
  24738. -#
  24739. -# This file is part of GNU Libtool:
  24740. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  24741. -#
  24742. -# This program is free software; you can redistribute it and/or modify
  24743. -# it under the terms of the GNU General Public License as published by
  24744. -# the Free Software Foundation; either version 2 of the License, or
  24745. -# (at your option) any later version.
  24746. -#
  24747. -# This program is distributed in the hope that it will be useful, but
  24748. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  24749. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24750. -# General Public License for more details.
  24751. -#
  24752. -# You should have received a copy of the GNU General Public License
  24753. -# along with this program; if not, write to the Free Software
  24754. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24755. -#
  24756. -# As a special exception to the GNU General Public License, if you
  24757. -# distribute this file as part of a program that contains a
  24758. -# configuration script generated by Autoconf, you may include it under
  24759. -# the same distribution terms that you use for the rest of that program.
  24760. -
  24761. -# A sed program that does not truncate output.
  24762. -SED=$lt_SED
  24763. -
  24764. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24765. -Xsed="$SED -e 1s/^X//"
  24766. -
  24767. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  24768. -# if CDPATH is set.
  24769. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24770. -
  24771. -# The names of the tagged configurations supported by this script.
  24772. -available_tags=
  24773. -
  24774. -# ### BEGIN LIBTOOL CONFIG
  24775. -
  24776. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24777. -
  24778. -# Shell to use when invoking shell scripts.
  24779. -SHELL=$lt_SHELL
  24780. -
  24781. -# Whether or not to build shared libraries.
  24782. -build_libtool_libs=$enable_shared
  24783. -
  24784. -# Whether or not to build static libraries.
  24785. -build_old_libs=$enable_static
  24786. -
  24787. -# Whether or not to add -lc for building shared libraries.
  24788. -build_libtool_need_lc=$archive_cmds_need_lc
  24789. -
  24790. -# Whether or not to disallow shared libs when runtime libs are static
  24791. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24792. -
  24793. -# Whether or not to optimize for fast installation.
  24794. -fast_install=$enable_fast_install
  24795. -
  24796. -# The host system.
  24797. -host_alias=$host_alias
  24798. -host=$host
  24799. -host_os=$host_os
  24800. -
  24801. -# The build system.
  24802. -build_alias=$build_alias
  24803. -build=$build
  24804. -build_os=$build_os
  24805. -
  24806. -# An echo program that does not interpret backslashes.
  24807. -echo=$lt_echo
  24808. -
  24809. -# The archiver.
  24810. -AR=$lt_AR
  24811. -AR_FLAGS=$lt_AR_FLAGS
  24812. -
  24813. -# A C compiler.
  24814. -LTCC=$lt_LTCC
  24815. -
  24816. -# LTCC compiler flags.
  24817. -LTCFLAGS=$lt_LTCFLAGS
  24818. -
  24819. -# A language-specific compiler.
  24820. -CC=$lt_compiler
  24821. -
  24822. -# Is the compiler the GNU C compiler?
  24823. -with_gcc=$GCC
  24824. -
  24825. -# An ERE matcher.
  24826. -EGREP=$lt_EGREP
  24827. -
  24828. -# The linker used to build libraries.
  24829. -LD=$lt_LD
  24830. -
  24831. -# Whether we need hard or soft links.
  24832. -LN_S=$lt_LN_S
  24833. -
  24834. -# A BSD-compatible nm program.
  24835. -NM=$lt_NM
  24836. -
  24837. -# A symbol stripping program
  24838. -STRIP=$lt_STRIP
  24839. -
  24840. -# Used to examine libraries when file_magic_cmd begins "file"
  24841. -MAGIC_CMD=$MAGIC_CMD
  24842. -
  24843. -# Used on cygwin: DLL creation program.
  24844. -DLLTOOL="$DLLTOOL"
  24845. -
  24846. -# Used on cygwin: object dumper.
  24847. -OBJDUMP="$OBJDUMP"
  24848. -
  24849. -# Used on cygwin: assembler.
  24850. -AS="$AS"
  24851. -
  24852. -# The name of the directory that contains temporary libtool files.
  24853. -objdir=$objdir
  24854. -
  24855. -# How to create reloadable object files.
  24856. -reload_flag=$lt_reload_flag
  24857. -reload_cmds=$lt_reload_cmds
  24858. -
  24859. -# How to pass a linker flag through the compiler.
  24860. -wl=$lt_lt_prog_compiler_wl
  24861. -
  24862. -# Object file suffix (normally "o").
  24863. -objext="$ac_objext"
  24864. -
  24865. -# Old archive suffix (normally "a").
  24866. -libext="$libext"
  24867. -
  24868. -# Shared library suffix (normally ".so").
  24869. -shrext_cmds='$shrext_cmds'
  24870. -
  24871. -# Executable file suffix (normally "").
  24872. -exeext="$exeext"
  24873. -
  24874. -# Additional compiler flags for building library objects.
  24875. -pic_flag=$lt_lt_prog_compiler_pic
  24876. -pic_mode=$pic_mode
  24877. -
  24878. -# What is the maximum length of a command?
  24879. -max_cmd_len=$lt_cv_sys_max_cmd_len
  24880. -
  24881. -# Does compiler simultaneously support -c and -o options?
  24882. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24883. -
  24884. -# Must we lock files when doing compilation?
  24885. -need_locks=$lt_need_locks
  24886. -
  24887. -# Do we need the lib prefix for modules?
  24888. -need_lib_prefix=$need_lib_prefix
  24889. -
  24890. -# Do we need a version for libraries?
  24891. -need_version=$need_version
  24892. -
  24893. -# Whether dlopen is supported.
  24894. -dlopen_support=$enable_dlopen
  24895. -
  24896. -# Whether dlopen of programs is supported.
  24897. -dlopen_self=$enable_dlopen_self
  24898. -
  24899. -# Whether dlopen of statically linked programs is supported.
  24900. -dlopen_self_static=$enable_dlopen_self_static
  24901. -
  24902. -# Compiler flag to prevent dynamic linking.
  24903. -link_static_flag=$lt_lt_prog_compiler_static
  24904. -
  24905. -# Compiler flag to turn off builtin functions.
  24906. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24907. -
  24908. -# Compiler flag to allow reflexive dlopens.
  24909. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24910. -
  24911. -# Compiler flag to generate shared objects directly from archives.
  24912. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24913. -
  24914. -# Compiler flag to generate thread-safe objects.
  24915. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  24916. -
  24917. -# Library versioning type.
  24918. -version_type=$version_type
  24919. -
  24920. -# Format of library name prefix.
  24921. -libname_spec=$lt_libname_spec
  24922. -
  24923. -# List of archive names. First name is the real one, the rest are links.
  24924. -# The last name is the one that the linker finds with -lNAME.
  24925. -library_names_spec=$lt_library_names_spec
  24926. -
  24927. -# The coded name of the library, if different from the real name.
  24928. -soname_spec=$lt_soname_spec
  24929. -
  24930. -# Commands used to build and install an old-style archive.
  24931. -RANLIB=$lt_RANLIB
  24932. -old_archive_cmds=$lt_old_archive_cmds
  24933. -old_postinstall_cmds=$lt_old_postinstall_cmds
  24934. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24935. -
  24936. -# Create an old-style archive from a shared archive.
  24937. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24938. -
  24939. -# Create a temporary old-style archive to link instead of a shared archive.
  24940. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24941. -
  24942. -# Commands used to build and install a shared archive.
  24943. -archive_cmds=$lt_archive_cmds
  24944. -archive_expsym_cmds=$lt_archive_expsym_cmds
  24945. -postinstall_cmds=$lt_postinstall_cmds
  24946. -postuninstall_cmds=$lt_postuninstall_cmds
  24947. -
  24948. -# Commands used to build a loadable module (assumed same as above if empty)
  24949. -module_cmds=$lt_module_cmds
  24950. -module_expsym_cmds=$lt_module_expsym_cmds
  24951. -
  24952. -# Commands to strip libraries.
  24953. -old_striplib=$lt_old_striplib
  24954. -striplib=$lt_striplib
  24955. -
  24956. -# Dependencies to place before the objects being linked to create a
  24957. -# shared library.
  24958. -predep_objects=$lt_predep_objects
  24959. -
  24960. -# Dependencies to place after the objects being linked to create a
  24961. -# shared library.
  24962. -postdep_objects=$lt_postdep_objects
  24963. -
  24964. -# Dependencies to place before the objects being linked to create a
  24965. -# shared library.
  24966. -predeps=$lt_predeps
  24967. -
  24968. -# Dependencies to place after the objects being linked to create a
  24969. -# shared library.
  24970. -postdeps=$lt_postdeps
  24971. -
  24972. -# The directories searched by this compiler when creating a shared
  24973. -# library
  24974. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24975. -
  24976. -# The library search path used internally by the compiler when linking
  24977. -# a shared library.
  24978. -compiler_lib_search_path=$lt_compiler_lib_search_path
  24979. -
  24980. -# Method to check whether dependent libraries are shared objects.
  24981. -deplibs_check_method=$lt_deplibs_check_method
  24982. -
  24983. -# Command to use when deplibs_check_method == file_magic.
  24984. -file_magic_cmd=$lt_file_magic_cmd
  24985. -
  24986. -# Flag that allows shared libraries with undefined symbols to be built.
  24987. -allow_undefined_flag=$lt_allow_undefined_flag
  24988. -
  24989. -# Flag that forces no undefined symbols.
  24990. -no_undefined_flag=$lt_no_undefined_flag
  24991. -
  24992. -# Commands used to finish a libtool library installation in a directory.
  24993. -finish_cmds=$lt_finish_cmds
  24994. -
  24995. -# Same as above, but a single script fragment to be evaled but not shown.
  24996. -finish_eval=$lt_finish_eval
  24997. -
  24998. -# Take the output of nm and produce a listing of raw symbols and C names.
  24999. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25000. -
  25001. -# Transform the output of nm in a proper C declaration
  25002. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25003. -
  25004. -# Transform the output of nm in a C name address pair
  25005. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25006. -
  25007. -# This is the shared library runtime path variable.
  25008. -runpath_var=$runpath_var
  25009. -
  25010. -# This is the shared library path variable.
  25011. -shlibpath_var=$shlibpath_var
  25012. -
  25013. -# Is shlibpath searched before the hard-coded library search path?
  25014. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25015. -
  25016. -# How to hardcode a shared library path into an executable.
  25017. -hardcode_action=$hardcode_action
  25018. -
  25019. -# Whether we should hardcode library paths into libraries.
  25020. -hardcode_into_libs=$hardcode_into_libs
  25021. -
  25022. -# Flag to hardcode \$libdir into a binary during linking.
  25023. -# This must work even if \$libdir does not exist.
  25024. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25025. -
  25026. -# If ld is used when linking, flag to hardcode \$libdir into
  25027. -# a binary during linking. This must work even if \$libdir does
  25028. -# not exist.
  25029. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  25030. -
  25031. -# Whether we need a single -rpath flag with a separated argument.
  25032. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25033. -
  25034. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  25035. -# resulting binary.
  25036. -hardcode_direct=$hardcode_direct
  25037. -
  25038. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  25039. -# resulting binary.
  25040. -hardcode_minus_L=$hardcode_minus_L
  25041. -
  25042. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  25043. -# the resulting binary.
  25044. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  25045. -
  25046. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  25047. -# and all subsequent libraries and executables linked against it.
  25048. -hardcode_automatic=$hardcode_automatic
  25049. -
  25050. -# Variables whose values should be saved in libtool wrapper scripts and
  25051. -# restored at relink time.
  25052. -variables_saved_for_relink="$variables_saved_for_relink"
  25053. -
  25054. -# Whether libtool must link a program against all its dependency libraries.
  25055. -link_all_deplibs=$link_all_deplibs
  25056. -
  25057. -# Compile-time system search path for libraries
  25058. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25059. -
  25060. -# Run-time system search path for libraries
  25061. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25062. -
  25063. -# Fix the shell variable \$srcfile for the compiler.
  25064. -fix_srcfile_path=$lt_fix_srcfile_path
  25065. -
  25066. -# Set to yes if exported symbols are required.
  25067. -always_export_symbols=$always_export_symbols
  25068. -
  25069. -# The commands to list exported symbols.
  25070. -export_symbols_cmds=$lt_export_symbols_cmds
  25071. -
  25072. -# The commands to extract the exported symbol list from a shared archive.
  25073. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25074. -
  25075. -# Symbols that should not be listed in the preloaded symbols.
  25076. -exclude_expsyms=$lt_exclude_expsyms
  25077. -
  25078. -# Symbols that must always be exported.
  25079. -include_expsyms=$lt_include_expsyms
  25080. -
  25081. -# ### END LIBTOOL CONFIG
  25082. -
  25083. -__EOF__
  25084. -
  25085. -
  25086. - case $host_os in
  25087. - aix3*)
  25088. - cat <<\EOF >> "$cfgfile"
  25089. -
  25090. -# AIX sometimes has problems with the GCC collect2 program. For some
  25091. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  25092. -# vanish in a puff of smoke.
  25093. -if test "X${COLLECT_NAMES+set}" != Xset; then
  25094. - COLLECT_NAMES=
  25095. - export COLLECT_NAMES
  25096. -fi
  25097. -EOF
  25098. - ;;
  25099. - esac
  25100. -
  25101. - # We use sed instead of cat because bash on DJGPP gets confused if
  25102. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25103. - # text mode, it properly converts lines to CR/LF. This bash problem
  25104. - # is reportedly fixed, but why not run on old versions too?
  25105. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  25106. -
  25107. - mv -f "$cfgfile" "$ofile" || \
  25108. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25109. - chmod +x "$ofile"
  25110. -
  25111. -else
  25112. - # If there is no Makefile yet, we rely on a make rule to execute
  25113. - # `config.status --recheck' to rerun these tests and create the
  25114. - # libtool script then.
  25115. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  25116. - if test -f "$ltmain_in"; then
  25117. - test -f Makefile && make "$ltmain"
  25118. - fi
  25119. -fi
  25120. -
  25121. -
  25122. -ac_ext=c
  25123. -ac_cpp='$CPP $CPPFLAGS'
  25124. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25125. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25126. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25127. -
  25128. -CC="$lt_save_CC"
  25129. -
  25130. -
  25131. -# Check whether --with-tags was given.
  25132. -if test "${with_tags+set}" = set; then
  25133. - withval=$with_tags; tagnames="$withval"
  25134. -fi
  25135. -
  25136. -
  25137. -if test -f "$ltmain" && test -n "$tagnames"; then
  25138. - if test ! -f "${ofile}"; then
  25139. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  25140. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  25141. - fi
  25142. -
  25143. - if test -z "$LTCC"; then
  25144. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  25145. - if test -z "$LTCC"; then
  25146. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  25147. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  25148. - else
  25149. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  25150. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  25151. - fi
  25152. - fi
  25153. - if test -z "$LTCFLAGS"; then
  25154. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  25155. - fi
  25156. -
  25157. - # Extract list of available tagged configurations in $ofile.
  25158. - # Note that this assumes the entire list is on one line.
  25159. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  25160. -
  25161. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25162. - for tagname in $tagnames; do
  25163. - IFS="$lt_save_ifs"
  25164. - # Check whether tagname contains only valid characters
  25165. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  25166. - "") ;;
  25167. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  25168. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  25169. - { (exit 1); exit 1; }; }
  25170. - ;;
  25171. - esac
  25172. -
  25173. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  25174. - then
  25175. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  25176. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  25177. - { (exit 1); exit 1; }; }
  25178. - fi
  25179. -
  25180. - # Update the list of available tags.
  25181. - if test -n "$tagname"; then
  25182. - echo appending configuration tag \"$tagname\" to $ofile
  25183. -
  25184. - case $tagname in
  25185. - CXX)
  25186. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  25187. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  25188. - (test "X$CXX" != "Xg++"))) ; then
  25189. - ac_ext=cpp
  25190. -ac_cpp='$CXXCPP $CPPFLAGS'
  25191. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25192. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25193. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25194. -
  25195. -
  25196. -
  25197. -
  25198. -archive_cmds_need_lc_CXX=no
  25199. -allow_undefined_flag_CXX=
  25200. -always_export_symbols_CXX=no
  25201. -archive_expsym_cmds_CXX=
  25202. -export_dynamic_flag_spec_CXX=
  25203. -hardcode_direct_CXX=no
  25204. -hardcode_libdir_flag_spec_CXX=
  25205. -hardcode_libdir_flag_spec_ld_CXX=
  25206. -hardcode_libdir_separator_CXX=
  25207. -hardcode_minus_L_CXX=no
  25208. -hardcode_shlibpath_var_CXX=unsupported
  25209. -hardcode_automatic_CXX=no
  25210. -module_cmds_CXX=
  25211. -module_expsym_cmds_CXX=
  25212. -link_all_deplibs_CXX=unknown
  25213. -old_archive_cmds_CXX=$old_archive_cmds
  25214. -no_undefined_flag_CXX=
  25215. -whole_archive_flag_spec_CXX=
  25216. -enable_shared_with_static_runtimes_CXX=no
  25217. -
  25218. -# Dependencies to place before and after the object being linked:
  25219. -predep_objects_CXX=
  25220. -postdep_objects_CXX=
  25221. -predeps_CXX=
  25222. -postdeps_CXX=
  25223. -compiler_lib_search_path_CXX=
  25224. -compiler_lib_search_dirs_CXX=
  25225. -
  25226. -# Source file extension for C++ test sources.
  25227. -ac_ext=cpp
  25228. -
  25229. -# Object file extension for compiled C++ test sources.
  25230. -objext=o
  25231. -objext_CXX=$objext
  25232. -
  25233. -# Code to be used in simple compile tests
  25234. -lt_simple_compile_test_code="int some_variable = 0;"
  25235. -
  25236. -# Code to be used in simple link tests
  25237. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  25238. -
  25239. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  25240. -
  25241. -# If no C compiler was specified, use CC.
  25242. -LTCC=${LTCC-"$CC"}
  25243. -
  25244. -# If no C compiler flags were specified, use CFLAGS.
  25245. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25246. -
  25247. -# Allow CC to be a program name with arguments.
  25248. -compiler=$CC
  25249. -
  25250. -
  25251. -# save warnings/boilerplate of simple test code
  25252. -ac_outfile=conftest.$ac_objext
  25253. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  25254. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25255. -_lt_compiler_boilerplate=`cat conftest.err`
  25256. -$rm conftest*
  25257. -
  25258. -ac_outfile=conftest.$ac_objext
  25259. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  25260. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25261. -_lt_linker_boilerplate=`cat conftest.err`
  25262. -$rm -r conftest*
  25263. -
  25264. -
  25265. -# Allow CC to be a program name with arguments.
  25266. -lt_save_CC=$CC
  25267. -lt_save_LD=$LD
  25268. -lt_save_GCC=$GCC
  25269. -GCC=$GXX
  25270. -lt_save_with_gnu_ld=$with_gnu_ld
  25271. -lt_save_path_LD=$lt_cv_path_LD
  25272. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  25273. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  25274. -else
  25275. - $as_unset lt_cv_prog_gnu_ld
  25276. -fi
  25277. -if test -n "${lt_cv_path_LDCXX+set}"; then
  25278. - lt_cv_path_LD=$lt_cv_path_LDCXX
  25279. -else
  25280. - $as_unset lt_cv_path_LD
  25281. -fi
  25282. -test -z "${LDCXX+set}" || LD=$LDCXX
  25283. -CC=${CXX-"c++"}
  25284. -compiler=$CC
  25285. -compiler_CXX=$CC
  25286. -for cc_temp in $compiler""; do
  25287. - case $cc_temp in
  25288. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25289. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25290. - \-*) ;;
  25291. - *) break;;
  25292. - esac
  25293. -done
  25294. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25295. -
  25296. -
  25297. -# We don't want -fno-exception wen compiling C++ code, so set the
  25298. -# no_builtin_flag separately
  25299. -if test "$GXX" = yes; then
  25300. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  25301. -else
  25302. - lt_prog_compiler_no_builtin_flag_CXX=
  25303. -fi
  25304. -
  25305. -if test "$GXX" = yes; then
  25306. - # Set up default GNU C++ configuration
  25307. -
  25308. -
  25309. -# Check whether --with-gnu-ld was given.
  25310. -if test "${with_gnu_ld+set}" = set; then
  25311. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  25312. -else
  25313. - with_gnu_ld=no
  25314. -fi
  25315. -
  25316. -ac_prog=ld
  25317. -if test "$GCC" = yes; then
  25318. - # Check if gcc -print-prog-name=ld gives a path.
  25319. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  25320. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  25321. - case $host in
  25322. - *-*-mingw*)
  25323. - # gcc leaves a trailing carriage return which upsets mingw
  25324. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  25325. - *)
  25326. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  25327. - esac
  25328. - case $ac_prog in
  25329. - # Accept absolute paths.
  25330. - [\\/]* | ?:[\\/]*)
  25331. - re_direlt='/[^/][^/]*/\.\./'
  25332. - # Canonicalize the pathname of ld
  25333. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  25334. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  25335. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  25336. - done
  25337. - test -z "$LD" && LD="$ac_prog"
  25338. - ;;
  25339. - "")
  25340. - # If it fails, then pretend we aren't using GCC.
  25341. - ac_prog=ld
  25342. - ;;
  25343. - *)
  25344. - # If it is relative, then search for the first ld in PATH.
  25345. - with_gnu_ld=unknown
  25346. - ;;
  25347. - esac
  25348. -elif test "$with_gnu_ld" = yes; then
  25349. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  25350. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  25351. -else
  25352. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  25353. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  25354. -fi
  25355. -if test "${lt_cv_path_LD+set}" = set; then
  25356. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25357. -else
  25358. - if test -z "$LD"; then
  25359. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25360. - for ac_dir in $PATH; do
  25361. - IFS="$lt_save_ifs"
  25362. - test -z "$ac_dir" && ac_dir=.
  25363. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  25364. - lt_cv_path_LD="$ac_dir/$ac_prog"
  25365. - # Check to see if the program is GNU ld. I'd rather use --version,
  25366. - # but apparently some variants of GNU ld only accept -v.
  25367. - # Break only if it was the GNU/non-GNU ld that we prefer.
  25368. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  25369. - *GNU* | *'with BFD'*)
  25370. - test "$with_gnu_ld" != no && break
  25371. - ;;
  25372. - *)
  25373. - test "$with_gnu_ld" != yes && break
  25374. - ;;
  25375. - esac
  25376. - fi
  25377. - done
  25378. - IFS="$lt_save_ifs"
  25379. -else
  25380. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  25381. -fi
  25382. -fi
  25383. -
  25384. -LD="$lt_cv_path_LD"
  25385. -if test -n "$LD"; then
  25386. - { echo "$as_me:$LINENO: result: $LD" >&5
  25387. -echo "${ECHO_T}$LD" >&6; }
  25388. -else
  25389. - { echo "$as_me:$LINENO: result: no" >&5
  25390. -echo "${ECHO_T}no" >&6; }
  25391. -fi
  25392. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  25393. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  25394. - { (exit 1); exit 1; }; }
  25395. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  25396. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  25397. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  25398. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25399. -else
  25400. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  25401. -case `$LD -v 2>&1 </dev/null` in
  25402. -*GNU* | *'with BFD'*)
  25403. - lt_cv_prog_gnu_ld=yes
  25404. - ;;
  25405. -*)
  25406. - lt_cv_prog_gnu_ld=no
  25407. - ;;
  25408. -esac
  25409. -fi
  25410. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  25411. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  25412. -with_gnu_ld=$lt_cv_prog_gnu_ld
  25413. -
  25414. -
  25415. -
  25416. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  25417. - # archiving commands below assume that GNU ld is being used.
  25418. - if test "$with_gnu_ld" = yes; then
  25419. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25420. - 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'
  25421. -
  25422. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  25423. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  25424. -
  25425. - # If archive_cmds runs LD, not CC, wlarc should be empty
  25426. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  25427. - # investigate it a little bit more. (MM)
  25428. - wlarc='${wl}'
  25429. -
  25430. - # ancient GNU ld didn't support --whole-archive et. al.
  25431. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  25432. - grep 'no-whole-archive' > /dev/null; then
  25433. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25434. - else
  25435. - whole_archive_flag_spec_CXX=
  25436. - fi
  25437. - else
  25438. - with_gnu_ld=no
  25439. - wlarc=
  25440. -
  25441. - # A generic and very simple default shared library creation
  25442. - # command for GNU C++ for the case where it uses the native
  25443. - # linker, instead of GNU ld. If possible, this setting should
  25444. - # overridden to take advantage of the native linker features on
  25445. - # the platform it is being used on.
  25446. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  25447. - fi
  25448. -
  25449. - # Commands to make compiler produce verbose output that lists
  25450. - # what "hidden" libraries, object files and flags are used when
  25451. - # linking a shared library.
  25452. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  25453. -
  25454. -else
  25455. - GXX=no
  25456. - with_gnu_ld=no
  25457. - wlarc=
  25458. -fi
  25459. -
  25460. -# PORTME: fill in a description of your system's C++ link characteristics
  25461. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25462. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  25463. -ld_shlibs_CXX=yes
  25464. -case $host_os in
  25465. - aix3*)
  25466. - # FIXME: insert proper C++ library support
  25467. - ld_shlibs_CXX=no
  25468. - ;;
  25469. - aix[4-9]*)
  25470. - if test "$host_cpu" = ia64; then
  25471. - # On IA64, the linker does run time linking by default, so we don't
  25472. - # have to do anything special.
  25473. - aix_use_runtimelinking=no
  25474. - exp_sym_flag='-Bexport'
  25475. - no_entry_flag=""
  25476. - else
  25477. - aix_use_runtimelinking=no
  25478. -
  25479. - # Test if we are trying to use run time linking or normal
  25480. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25481. - # need to do runtime linking.
  25482. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  25483. - for ld_flag in $LDFLAGS; do
  25484. - case $ld_flag in
  25485. - *-brtl*)
  25486. - aix_use_runtimelinking=yes
  25487. - break
  25488. - ;;
  25489. - esac
  25490. - done
  25491. - ;;
  25492. - esac
  25493. -
  25494. - exp_sym_flag='-bexport'
  25495. - no_entry_flag='-bnoentry'
  25496. - fi
  25497. -
  25498. - # When large executables or shared objects are built, AIX ld can
  25499. - # have problems creating the table of contents. If linking a library
  25500. - # or program results in "error TOC overflow" add -mminimal-toc to
  25501. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25502. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25503. -
  25504. - archive_cmds_CXX=''
  25505. - hardcode_direct_CXX=yes
  25506. - hardcode_libdir_separator_CXX=':'
  25507. - link_all_deplibs_CXX=yes
  25508. -
  25509. - if test "$GXX" = yes; then
  25510. - case $host_os in aix4.[012]|aix4.[012].*)
  25511. - # We only want to do this on AIX 4.2 and lower, the check
  25512. - # below for broken collect2 doesn't work under 4.3+
  25513. - collect2name=`${CC} -print-prog-name=collect2`
  25514. - if test -f "$collect2name" && \
  25515. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  25516. - then
  25517. - # We have reworked collect2
  25518. - :
  25519. - else
  25520. - # We have old collect2
  25521. - hardcode_direct_CXX=unsupported
  25522. - # It fails to find uninstalled libraries when the uninstalled
  25523. - # path is not listed in the libpath. Setting hardcode_minus_L
  25524. - # to unsupported forces relinking
  25525. - hardcode_minus_L_CXX=yes
  25526. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  25527. - hardcode_libdir_separator_CXX=
  25528. - fi
  25529. - ;;
  25530. - esac
  25531. - shared_flag='-shared'
  25532. - if test "$aix_use_runtimelinking" = yes; then
  25533. - shared_flag="$shared_flag "'${wl}-G'
  25534. - fi
  25535. - else
  25536. - # not using gcc
  25537. - if test "$host_cpu" = ia64; then
  25538. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25539. - # chokes on -Wl,-G. The following line is correct:
  25540. - shared_flag='-G'
  25541. - else
  25542. - if test "$aix_use_runtimelinking" = yes; then
  25543. - shared_flag='${wl}-G'
  25544. - else
  25545. - shared_flag='${wl}-bM:SRE'
  25546. - fi
  25547. - fi
  25548. - fi
  25549. -
  25550. - # It seems that -bexpall does not export symbols beginning with
  25551. - # underscore (_), so it is better to generate a list of symbols to export.
  25552. - always_export_symbols_CXX=yes
  25553. - if test "$aix_use_runtimelinking" = yes; then
  25554. - # Warning - without using the other runtime loading flags (-brtl),
  25555. - # -berok will link without error, but may produce a broken library.
  25556. - allow_undefined_flag_CXX='-berok'
  25557. - # Determine the default libpath from the value encoded in an empty executable.
  25558. - cat >conftest.$ac_ext <<_ACEOF
  25559. -/* confdefs.h. */
  25560. -_ACEOF
  25561. -cat confdefs.h >>conftest.$ac_ext
  25562. -cat >>conftest.$ac_ext <<_ACEOF
  25563. -/* end confdefs.h. */
  25564. -
  25565. -int
  25566. -main ()
  25567. -{
  25568. -
  25569. - ;
  25570. - return 0;
  25571. -}
  25572. -_ACEOF
  25573. -rm -f conftest.$ac_objext conftest$ac_exeext
  25574. -if { (ac_try="$ac_link"
  25575. -case "(($ac_try" in
  25576. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25577. - *) ac_try_echo=$ac_try;;
  25578. -esac
  25579. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25580. - (eval "$ac_link") 2>conftest.er1
  25581. - ac_status=$?
  25582. - grep -v '^ *+' conftest.er1 >conftest.err
  25583. - rm -f conftest.er1
  25584. - cat conftest.err >&5
  25585. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25586. - (exit $ac_status); } && {
  25587. - test -z "$ac_cxx_werror_flag" ||
  25588. - test ! -s conftest.err
  25589. - } && test -s conftest$ac_exeext &&
  25590. - $as_test_x conftest$ac_exeext; then
  25591. -
  25592. -lt_aix_libpath_sed='
  25593. - /Import File Strings/,/^$/ {
  25594. - /^0/ {
  25595. - s/^0 *\(.*\)$/\1/
  25596. - p
  25597. - }
  25598. - }'
  25599. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25600. -# Check for a 64-bit object if we didn't find anything.
  25601. -if test -z "$aix_libpath"; then
  25602. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25603. -fi
  25604. -else
  25605. - echo "$as_me: failed program was:" >&5
  25606. -sed 's/^/| /' conftest.$ac_ext >&5
  25607. -
  25608. -
  25609. -fi
  25610. -
  25611. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25612. - conftest$ac_exeext conftest.$ac_ext
  25613. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25614. -
  25615. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  25616. -
  25617. - 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"
  25618. - else
  25619. - if test "$host_cpu" = ia64; then
  25620. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  25621. - allow_undefined_flag_CXX="-z nodefs"
  25622. - 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"
  25623. - else
  25624. - # Determine the default libpath from the value encoded in an empty executable.
  25625. - cat >conftest.$ac_ext <<_ACEOF
  25626. -/* confdefs.h. */
  25627. -_ACEOF
  25628. -cat confdefs.h >>conftest.$ac_ext
  25629. -cat >>conftest.$ac_ext <<_ACEOF
  25630. -/* end confdefs.h. */
  25631. -
  25632. -int
  25633. -main ()
  25634. -{
  25635. -
  25636. - ;
  25637. - return 0;
  25638. -}
  25639. -_ACEOF
  25640. -rm -f conftest.$ac_objext conftest$ac_exeext
  25641. -if { (ac_try="$ac_link"
  25642. -case "(($ac_try" in
  25643. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25644. - *) ac_try_echo=$ac_try;;
  25645. -esac
  25646. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25647. - (eval "$ac_link") 2>conftest.er1
  25648. - ac_status=$?
  25649. - grep -v '^ *+' conftest.er1 >conftest.err
  25650. - rm -f conftest.er1
  25651. - cat conftest.err >&5
  25652. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25653. - (exit $ac_status); } && {
  25654. - test -z "$ac_cxx_werror_flag" ||
  25655. - test ! -s conftest.err
  25656. - } && test -s conftest$ac_exeext &&
  25657. - $as_test_x conftest$ac_exeext; then
  25658. -
  25659. -lt_aix_libpath_sed='
  25660. - /Import File Strings/,/^$/ {
  25661. - /^0/ {
  25662. - s/^0 *\(.*\)$/\1/
  25663. - p
  25664. - }
  25665. - }'
  25666. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25667. -# Check for a 64-bit object if we didn't find anything.
  25668. -if test -z "$aix_libpath"; then
  25669. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25670. -fi
  25671. -else
  25672. - echo "$as_me: failed program was:" >&5
  25673. -sed 's/^/| /' conftest.$ac_ext >&5
  25674. -
  25675. -
  25676. -fi
  25677. -
  25678. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25679. - conftest$ac_exeext conftest.$ac_ext
  25680. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25681. -
  25682. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  25683. - # Warning - without using the other run time loading flags,
  25684. - # -berok will link without error, but may produce a broken library.
  25685. - no_undefined_flag_CXX=' ${wl}-bernotok'
  25686. - allow_undefined_flag_CXX=' ${wl}-berok'
  25687. - # Exported symbols can be pulled into shared objects from archives
  25688. - whole_archive_flag_spec_CXX='$convenience'
  25689. - archive_cmds_need_lc_CXX=yes
  25690. - # This is similar to how AIX traditionally builds its shared libraries.
  25691. - 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'
  25692. - fi
  25693. - fi
  25694. - ;;
  25695. -
  25696. - beos*)
  25697. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25698. - allow_undefined_flag_CXX=unsupported
  25699. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25700. - # support --undefined. This deserves some investigation. FIXME
  25701. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25702. - else
  25703. - ld_shlibs_CXX=no
  25704. - fi
  25705. - ;;
  25706. -
  25707. - chorus*)
  25708. - case $cc_basename in
  25709. - *)
  25710. - # FIXME: insert proper C++ library support
  25711. - ld_shlibs_CXX=no
  25712. - ;;
  25713. - esac
  25714. - ;;
  25715. -
  25716. - cygwin* | mingw* | pw32*)
  25717. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  25718. - # as there is no search path for DLLs.
  25719. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  25720. - allow_undefined_flag_CXX=unsupported
  25721. - always_export_symbols_CXX=no
  25722. - enable_shared_with_static_runtimes_CXX=yes
  25723. -
  25724. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25725. - 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'
  25726. - # If the export-symbols file already is a .def file (1st line
  25727. - # is EXPORTS), use it as is; otherwise, prepend...
  25728. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25729. - cp $export_symbols $output_objdir/$soname.def;
  25730. - else
  25731. - echo EXPORTS > $output_objdir/$soname.def;
  25732. - cat $export_symbols >> $output_objdir/$soname.def;
  25733. - fi~
  25734. - $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'
  25735. - else
  25736. - ld_shlibs_CXX=no
  25737. - fi
  25738. - ;;
  25739. - darwin* | rhapsody*)
  25740. - archive_cmds_need_lc_CXX=no
  25741. - hardcode_direct_CXX=no
  25742. - hardcode_automatic_CXX=yes
  25743. - hardcode_shlibpath_var_CXX=unsupported
  25744. - whole_archive_flag_spec_CXX=''
  25745. - link_all_deplibs_CXX=yes
  25746. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  25747. - if test "$GXX" = yes ; then
  25748. - output_verbose_link_cmd='echo'
  25749. - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  25750. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  25751. - archive_expsym_cmds_CXX="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}"
  25752. - module_expsym_cmds_CXX="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}"
  25753. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  25754. - 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${_lt_dsymutil}"
  25755. - archive_expsym_cmds_CXX="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}"
  25756. - fi
  25757. - else
  25758. - case $cc_basename in
  25759. - xlc*)
  25760. - output_verbose_link_cmd='echo'
  25761. - 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'
  25762. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25763. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25764. - 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}'
  25765. - 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}'
  25766. - ;;
  25767. - *)
  25768. - ld_shlibs_CXX=no
  25769. - ;;
  25770. - esac
  25771. - fi
  25772. - ;;
  25773. -
  25774. - dgux*)
  25775. - case $cc_basename in
  25776. - ec++*)
  25777. - # FIXME: insert proper C++ library support
  25778. - ld_shlibs_CXX=no
  25779. - ;;
  25780. - ghcx*)
  25781. - # Green Hills C++ Compiler
  25782. - # FIXME: insert proper C++ library support
  25783. - ld_shlibs_CXX=no
  25784. - ;;
  25785. - *)
  25786. - # FIXME: insert proper C++ library support
  25787. - ld_shlibs_CXX=no
  25788. - ;;
  25789. - esac
  25790. - ;;
  25791. - freebsd[12]*)
  25792. - # C++ shared libraries reported to be fairly broken before switch to ELF
  25793. - ld_shlibs_CXX=no
  25794. - ;;
  25795. - freebsd-elf*)
  25796. - archive_cmds_need_lc_CXX=no
  25797. - ;;
  25798. - freebsd* | dragonfly*)
  25799. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  25800. - # conventions
  25801. - ld_shlibs_CXX=yes
  25802. - ;;
  25803. - gnu*)
  25804. - ;;
  25805. - hpux9*)
  25806. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  25807. - hardcode_libdir_separator_CXX=:
  25808. - export_dynamic_flag_spec_CXX='${wl}-E'
  25809. - hardcode_direct_CXX=yes
  25810. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  25811. - # but as the default
  25812. - # location of the library.
  25813. -
  25814. - case $cc_basename in
  25815. - CC*)
  25816. - # FIXME: insert proper C++ library support
  25817. - ld_shlibs_CXX=no
  25818. - ;;
  25819. - aCC*)
  25820. - 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'
  25821. - # Commands to make compiler produce verbose output that lists
  25822. - # what "hidden" libraries, object files and flags are used when
  25823. - # linking a shared library.
  25824. - #
  25825. - # There doesn't appear to be a way to prevent this compiler from
  25826. - # explicitly linking system object files so we need to strip them
  25827. - # from the output so that they don't get included in the library
  25828. - # dependencies.
  25829. - 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'
  25830. - ;;
  25831. - *)
  25832. - if test "$GXX" = yes; then
  25833. - 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'
  25834. - else
  25835. - # FIXME: insert proper C++ library support
  25836. - ld_shlibs_CXX=no
  25837. - fi
  25838. - ;;
  25839. - esac
  25840. - ;;
  25841. - hpux10*|hpux11*)
  25842. - if test $with_gnu_ld = no; then
  25843. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  25844. - hardcode_libdir_separator_CXX=:
  25845. -
  25846. - case $host_cpu in
  25847. - hppa*64*|ia64*) ;;
  25848. - *)
  25849. - export_dynamic_flag_spec_CXX='${wl}-E'
  25850. - ;;
  25851. - esac
  25852. - fi
  25853. - case $host_cpu in
  25854. - hppa*64*|ia64*)
  25855. - hardcode_direct_CXX=no
  25856. - hardcode_shlibpath_var_CXX=no
  25857. - ;;
  25858. - *)
  25859. - hardcode_direct_CXX=yes
  25860. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  25861. - # but as the default
  25862. - # location of the library.
  25863. - ;;
  25864. - esac
  25865. -
  25866. - case $cc_basename in
  25867. - CC*)
  25868. - # FIXME: insert proper C++ library support
  25869. - ld_shlibs_CXX=no
  25870. - ;;
  25871. - aCC*)
  25872. - case $host_cpu in
  25873. - hppa*64*)
  25874. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25875. - ;;
  25876. - ia64*)
  25877. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25878. - ;;
  25879. - *)
  25880. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25881. - ;;
  25882. - esac
  25883. - # Commands to make compiler produce verbose output that lists
  25884. - # what "hidden" libraries, object files and flags are used when
  25885. - # linking a shared library.
  25886. - #
  25887. - # There doesn't appear to be a way to prevent this compiler from
  25888. - # explicitly linking system object files so we need to strip them
  25889. - # from the output so that they don't get included in the library
  25890. - # dependencies.
  25891. - 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'
  25892. - ;;
  25893. - *)
  25894. - if test "$GXX" = yes; then
  25895. - if test $with_gnu_ld = no; then
  25896. - case $host_cpu in
  25897. - hppa*64*)
  25898. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25899. - ;;
  25900. - ia64*)
  25901. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  25902. - ;;
  25903. - *)
  25904. - 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'
  25905. - ;;
  25906. - esac
  25907. - fi
  25908. - else
  25909. - # FIXME: insert proper C++ library support
  25910. - ld_shlibs_CXX=no
  25911. - fi
  25912. - ;;
  25913. - esac
  25914. - ;;
  25915. - interix[3-9]*)
  25916. - hardcode_direct_CXX=no
  25917. - hardcode_shlibpath_var_CXX=no
  25918. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  25919. - export_dynamic_flag_spec_CXX='${wl}-E'
  25920. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25921. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  25922. - # default) and relocated if they conflict, which is a slow very memory
  25923. - # consuming and fragmenting process. To avoid this, we pick a random,
  25924. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25925. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25926. - 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'
  25927. - 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'
  25928. - ;;
  25929. - irix5* | irix6*)
  25930. - case $cc_basename in
  25931. - CC*)
  25932. - # SGI C++
  25933. - 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'
  25934. -
  25935. - # Archives containing C++ object files must be created using
  25936. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  25937. - # necessary to make sure instantiated templates are included
  25938. - # in the archive.
  25939. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  25940. - ;;
  25941. - *)
  25942. - if test "$GXX" = yes; then
  25943. - if test "$with_gnu_ld" = no; then
  25944. - 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'
  25945. - else
  25946. - 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'
  25947. - fi
  25948. - fi
  25949. - link_all_deplibs_CXX=yes
  25950. - ;;
  25951. - esac
  25952. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  25953. - hardcode_libdir_separator_CXX=:
  25954. - ;;
  25955. - linux* | k*bsd*-gnu)
  25956. - case $cc_basename in
  25957. - KCC*)
  25958. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  25959. -
  25960. - # KCC will only create a shared library if the output file
  25961. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  25962. - # to its proper name (with version) after linking.
  25963. - 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'
  25964. - 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'
  25965. - # Commands to make compiler produce verbose output that lists
  25966. - # what "hidden" libraries, object files and flags are used when
  25967. - # linking a shared library.
  25968. - #
  25969. - # There doesn't appear to be a way to prevent this compiler from
  25970. - # explicitly linking system object files so we need to strip them
  25971. - # from the output so that they don't get included in the library
  25972. - # dependencies.
  25973. - 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'
  25974. -
  25975. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  25976. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  25977. -
  25978. - # Archives containing C++ object files must be created using
  25979. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  25980. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  25981. - ;;
  25982. - icpc*)
  25983. - # Intel C++
  25984. - with_gnu_ld=yes
  25985. - # version 8.0 and above of icpc choke on multiply defined symbols
  25986. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  25987. - # earlier do not add the objects themselves.
  25988. - case `$CC -V 2>&1` in
  25989. - *"Version 7."*)
  25990. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25991. - 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'
  25992. - ;;
  25993. - *) # Version 8.0 or newer
  25994. - tmp_idyn=
  25995. - case $host_cpu in
  25996. - ia64*) tmp_idyn=' -i_dynamic';;
  25997. - esac
  25998. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25999. - 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'
  26000. - ;;
  26001. - esac
  26002. - archive_cmds_need_lc_CXX=no
  26003. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26004. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26005. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  26006. - ;;
  26007. - pgCC* | pgcpp*)
  26008. - # Portland Group C++ compiler
  26009. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  26010. - 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'
  26011. -
  26012. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  26013. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26014. - 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'
  26015. - ;;
  26016. - cxx*)
  26017. - # Compaq C++
  26018. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26019. - 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'
  26020. -
  26021. - runpath_var=LD_RUN_PATH
  26022. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  26023. - hardcode_libdir_separator_CXX=:
  26024. -
  26025. - # Commands to make compiler produce verbose output that lists
  26026. - # what "hidden" libraries, object files and flags are used when
  26027. - # linking a shared library.
  26028. - #
  26029. - # There doesn't appear to be a way to prevent this compiler from
  26030. - # explicitly linking system object files so we need to strip them
  26031. - # from the output so that they don't get included in the library
  26032. - # dependencies.
  26033. - 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'
  26034. - ;;
  26035. - *)
  26036. - case `$CC -V 2>&1 | sed 5q` in
  26037. - *Sun\ C*)
  26038. - # Sun C++ 5.9
  26039. - no_undefined_flag_CXX=' -zdefs'
  26040. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26041. - 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'
  26042. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  26043. - 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'
  26044. -
  26045. - # Not sure whether something based on
  26046. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  26047. - # would be better.
  26048. - output_verbose_link_cmd='echo'
  26049. -
  26050. - # Archives containing C++ object files must be created using
  26051. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  26052. - # necessary to make sure instantiated templates are included
  26053. - # in the archive.
  26054. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  26055. - ;;
  26056. - esac
  26057. - ;;
  26058. - esac
  26059. - ;;
  26060. - lynxos*)
  26061. - # FIXME: insert proper C++ library support
  26062. - ld_shlibs_CXX=no
  26063. - ;;
  26064. - m88k*)
  26065. - # FIXME: insert proper C++ library support
  26066. - ld_shlibs_CXX=no
  26067. - ;;
  26068. - mvs*)
  26069. - case $cc_basename in
  26070. - cxx*)
  26071. - # FIXME: insert proper C++ library support
  26072. - ld_shlibs_CXX=no
  26073. - ;;
  26074. - *)
  26075. - # FIXME: insert proper C++ library support
  26076. - ld_shlibs_CXX=no
  26077. - ;;
  26078. - esac
  26079. - ;;
  26080. - netbsd* | netbsdelf*-gnu)
  26081. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26082. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  26083. - wlarc=
  26084. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  26085. - hardcode_direct_CXX=yes
  26086. - hardcode_shlibpath_var_CXX=no
  26087. - fi
  26088. - # Workaround some broken pre-1.5 toolchains
  26089. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  26090. - ;;
  26091. - openbsd2*)
  26092. - # C++ shared libraries are fairly broken
  26093. - ld_shlibs_CXX=no
  26094. - ;;
  26095. - openbsd*)
  26096. - if test -f /usr/libexec/ld.so; then
  26097. - hardcode_direct_CXX=yes
  26098. - hardcode_shlibpath_var_CXX=no
  26099. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  26100. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26101. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26102. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  26103. - export_dynamic_flag_spec_CXX='${wl}-E'
  26104. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26105. - fi
  26106. - output_verbose_link_cmd='echo'
  26107. - else
  26108. - ld_shlibs_CXX=no
  26109. - fi
  26110. - ;;
  26111. - osf3*)
  26112. - case $cc_basename in
  26113. - KCC*)
  26114. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  26115. -
  26116. - # KCC will only create a shared library if the output file
  26117. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  26118. - # to its proper name (with version) after linking.
  26119. - 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'
  26120. -
  26121. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26122. - hardcode_libdir_separator_CXX=:
  26123. -
  26124. - # Archives containing C++ object files must be created using
  26125. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  26126. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  26127. -
  26128. - ;;
  26129. - RCC*)
  26130. - # Rational C++ 2.4.1
  26131. - # FIXME: insert proper C++ library support
  26132. - ld_shlibs_CXX=no
  26133. - ;;
  26134. - cxx*)
  26135. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  26136. - 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'
  26137. -
  26138. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  26139. - hardcode_libdir_separator_CXX=:
  26140. -
  26141. - # Commands to make compiler produce verbose output that lists
  26142. - # what "hidden" libraries, object files and flags are used when
  26143. - # linking a shared library.
  26144. - #
  26145. - # There doesn't appear to be a way to prevent this compiler from
  26146. - # explicitly linking system object files so we need to strip them
  26147. - # from the output so that they don't get included in the library
  26148. - # dependencies.
  26149. - 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'
  26150. - ;;
  26151. - *)
  26152. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  26153. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  26154. - 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'
  26155. -
  26156. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  26157. - hardcode_libdir_separator_CXX=:
  26158. -
  26159. - # Commands to make compiler produce verbose output that lists
  26160. - # what "hidden" libraries, object files and flags are used when
  26161. - # linking a shared library.
  26162. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  26163. -
  26164. - else
  26165. - # FIXME: insert proper C++ library support
  26166. - ld_shlibs_CXX=no
  26167. - fi
  26168. - ;;
  26169. - esac
  26170. - ;;
  26171. - osf4* | osf5*)
  26172. - case $cc_basename in
  26173. - KCC*)
  26174. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  26175. -
  26176. - # KCC will only create a shared library if the output file
  26177. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  26178. - # to its proper name (with version) after linking.
  26179. - 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'
  26180. -
  26181. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26182. - hardcode_libdir_separator_CXX=:
  26183. -
  26184. - # Archives containing C++ object files must be created using
  26185. - # the KAI C++ compiler.
  26186. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  26187. - ;;
  26188. - RCC*)
  26189. - # Rational C++ 2.4.1
  26190. - # FIXME: insert proper C++ library support
  26191. - ld_shlibs_CXX=no
  26192. - ;;
  26193. - cxx*)
  26194. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  26195. - 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'
  26196. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  26197. - echo "-hidden">> $lib.exp~
  26198. - $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~
  26199. - $rm $lib.exp'
  26200. -
  26201. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  26202. - hardcode_libdir_separator_CXX=:
  26203. -
  26204. - # Commands to make compiler produce verbose output that lists
  26205. - # what "hidden" libraries, object files and flags are used when
  26206. - # linking a shared library.
  26207. - #
  26208. - # There doesn't appear to be a way to prevent this compiler from
  26209. - # explicitly linking system object files so we need to strip them
  26210. - # from the output so that they don't get included in the library
  26211. - # dependencies.
  26212. - 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'
  26213. - ;;
  26214. - *)
  26215. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  26216. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  26217. - 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'
  26218. -
  26219. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  26220. - hardcode_libdir_separator_CXX=:
  26221. -
  26222. - # Commands to make compiler produce verbose output that lists
  26223. - # what "hidden" libraries, object files and flags are used when
  26224. - # linking a shared library.
  26225. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  26226. -
  26227. - else
  26228. - # FIXME: insert proper C++ library support
  26229. - ld_shlibs_CXX=no
  26230. - fi
  26231. - ;;
  26232. - esac
  26233. - ;;
  26234. - psos*)
  26235. - # FIXME: insert proper C++ library support
  26236. - ld_shlibs_CXX=no
  26237. - ;;
  26238. - sunos4*)
  26239. - case $cc_basename in
  26240. - CC*)
  26241. - # Sun C++ 4.x
  26242. - # FIXME: insert proper C++ library support
  26243. - ld_shlibs_CXX=no
  26244. - ;;
  26245. - lcc*)
  26246. - # Lucid
  26247. - # FIXME: insert proper C++ library support
  26248. - ld_shlibs_CXX=no
  26249. - ;;
  26250. - *)
  26251. - # FIXME: insert proper C++ library support
  26252. - ld_shlibs_CXX=no
  26253. - ;;
  26254. - esac
  26255. - ;;
  26256. - solaris*)
  26257. - case $cc_basename in
  26258. - CC*)
  26259. - # Sun C++ 4.2, 5.x and Centerline C++
  26260. - archive_cmds_need_lc_CXX=yes
  26261. - no_undefined_flag_CXX=' -zdefs'
  26262. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26263. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26264. - $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'
  26265. -
  26266. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  26267. - hardcode_shlibpath_var_CXX=no
  26268. - case $host_os in
  26269. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26270. - *)
  26271. - # The compiler driver will combine and reorder linker options,
  26272. - # but understands `-z linker_flag'.
  26273. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  26274. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  26275. - ;;
  26276. - esac
  26277. - link_all_deplibs_CXX=yes
  26278. -
  26279. - output_verbose_link_cmd='echo'
  26280. -
  26281. - # Archives containing C++ object files must be created using
  26282. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  26283. - # necessary to make sure instantiated templates are included
  26284. - # in the archive.
  26285. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  26286. - ;;
  26287. - gcx*)
  26288. - # Green Hills C++ Compiler
  26289. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  26290. -
  26291. - # The C++ compiler must be used to create the archive.
  26292. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  26293. - ;;
  26294. - *)
  26295. - # GNU C++ compiler with Solaris linker
  26296. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  26297. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  26298. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  26299. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  26300. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26301. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  26302. -
  26303. - # Commands to make compiler produce verbose output that lists
  26304. - # what "hidden" libraries, object files and flags are used when
  26305. - # linking a shared library.
  26306. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  26307. - else
  26308. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  26309. - # platform.
  26310. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  26311. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26312. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  26313. -
  26314. - # Commands to make compiler produce verbose output that lists
  26315. - # what "hidden" libraries, object files and flags are used when
  26316. - # linking a shared library.
  26317. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  26318. - fi
  26319. -
  26320. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  26321. - case $host_os in
  26322. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26323. - *)
  26324. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  26325. - ;;
  26326. - esac
  26327. - fi
  26328. - ;;
  26329. - esac
  26330. - ;;
  26331. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  26332. - no_undefined_flag_CXX='${wl}-z,text'
  26333. - archive_cmds_need_lc_CXX=no
  26334. - hardcode_shlibpath_var_CXX=no
  26335. - runpath_var='LD_RUN_PATH'
  26336. -
  26337. - case $cc_basename in
  26338. - CC*)
  26339. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26340. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26341. - ;;
  26342. - *)
  26343. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26344. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26345. - ;;
  26346. - esac
  26347. - ;;
  26348. - sysv5* | sco3.2v5* | sco5v6*)
  26349. - # Note: We can NOT use -z defs as we might desire, because we do not
  26350. - # link with -lc, and that would cause any symbols used from libc to
  26351. - # always be unresolved, which means just about no library would
  26352. - # ever link correctly. If we're not using GNU ld we use -z text
  26353. - # though, which does catch some bad symbols but isn't as heavy-handed
  26354. - # as -z defs.
  26355. - # For security reasons, it is highly recommended that you always
  26356. - # use absolute paths for naming shared libraries, and exclude the
  26357. - # DT_RUNPATH tag from executables and libraries. But doing so
  26358. - # requires that you compile everything twice, which is a pain.
  26359. - # So that behaviour is only enabled if SCOABSPATH is set to a
  26360. - # non-empty value in the environment. Most likely only useful for
  26361. - # creating official distributions of packages.
  26362. - # This is a hack until libtool officially supports absolute path
  26363. - # names for shared libraries.
  26364. - no_undefined_flag_CXX='${wl}-z,text'
  26365. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  26366. - archive_cmds_need_lc_CXX=no
  26367. - hardcode_shlibpath_var_CXX=no
  26368. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  26369. - hardcode_libdir_separator_CXX=':'
  26370. - link_all_deplibs_CXX=yes
  26371. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  26372. - runpath_var='LD_RUN_PATH'
  26373. -
  26374. - case $cc_basename in
  26375. - CC*)
  26376. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26377. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26378. - ;;
  26379. - *)
  26380. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26381. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26382. - ;;
  26383. - esac
  26384. - ;;
  26385. - tandem*)
  26386. - case $cc_basename in
  26387. - NCC*)
  26388. - # NonStop-UX NCC 3.20
  26389. - # FIXME: insert proper C++ library support
  26390. - ld_shlibs_CXX=no
  26391. - ;;
  26392. - *)
  26393. - # FIXME: insert proper C++ library support
  26394. - ld_shlibs_CXX=no
  26395. - ;;
  26396. - esac
  26397. - ;;
  26398. - vxworks*)
  26399. - # FIXME: insert proper C++ library support
  26400. - ld_shlibs_CXX=no
  26401. - ;;
  26402. - *)
  26403. - # FIXME: insert proper C++ library support
  26404. - ld_shlibs_CXX=no
  26405. - ;;
  26406. -esac
  26407. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  26408. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  26409. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  26410. -
  26411. -GCC_CXX="$GXX"
  26412. -LD_CXX="$LD"
  26413. -
  26414. -cat > conftest.$ac_ext <<EOF
  26415. -class Foo
  26416. -{
  26417. -public:
  26418. - Foo (void) { a = 0; }
  26419. -private:
  26420. - int a;
  26421. -};
  26422. -EOF
  26423. -
  26424. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26425. - (eval $ac_compile) 2>&5
  26426. - ac_status=$?
  26427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26428. - (exit $ac_status); }; then
  26429. - # Parse the compiler output and extract the necessary
  26430. - # objects, libraries and library flags.
  26431. -
  26432. - # Sentinel used to keep track of whether or not we are before
  26433. - # the conftest object file.
  26434. - pre_test_object_deps_done=no
  26435. -
  26436. - # The `*' in the case matches for architectures that use `case' in
  26437. - # $output_verbose_cmd can trigger glob expansion during the loop
  26438. - # eval without this substitution.
  26439. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  26440. -
  26441. - for p in `eval $output_verbose_link_cmd`; do
  26442. - case $p in
  26443. -
  26444. - -L* | -R* | -l*)
  26445. - # Some compilers place space between "-{L,R}" and the path.
  26446. - # Remove the space.
  26447. - if test $p = "-L" \
  26448. - || test $p = "-R"; then
  26449. - prev=$p
  26450. - continue
  26451. - else
  26452. - prev=
  26453. - fi
  26454. -
  26455. - if test "$pre_test_object_deps_done" = no; then
  26456. - case $p in
  26457. - -L* | -R*)
  26458. - # Internal compiler library paths should come after those
  26459. - # provided the user. The postdeps already come after the
  26460. - # user supplied libs so there is no need to process them.
  26461. - if test -z "$compiler_lib_search_path_CXX"; then
  26462. - compiler_lib_search_path_CXX="${prev}${p}"
  26463. - else
  26464. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  26465. - fi
  26466. - ;;
  26467. - # The "-l" case would never come before the object being
  26468. - # linked, so don't bother handling this case.
  26469. - esac
  26470. - else
  26471. - if test -z "$postdeps_CXX"; then
  26472. - postdeps_CXX="${prev}${p}"
  26473. - else
  26474. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  26475. - fi
  26476. - fi
  26477. - ;;
  26478. -
  26479. - *.$objext)
  26480. - # This assumes that the test object file only shows up
  26481. - # once in the compiler output.
  26482. - if test "$p" = "conftest.$objext"; then
  26483. - pre_test_object_deps_done=yes
  26484. - continue
  26485. - fi
  26486. -
  26487. - if test "$pre_test_object_deps_done" = no; then
  26488. - if test -z "$predep_objects_CXX"; then
  26489. - predep_objects_CXX="$p"
  26490. - else
  26491. - predep_objects_CXX="$predep_objects_CXX $p"
  26492. - fi
  26493. - else
  26494. - if test -z "$postdep_objects_CXX"; then
  26495. - postdep_objects_CXX="$p"
  26496. - else
  26497. - postdep_objects_CXX="$postdep_objects_CXX $p"
  26498. - fi
  26499. - fi
  26500. - ;;
  26501. -
  26502. - *) ;; # Ignore the rest.
  26503. -
  26504. - esac
  26505. - done
  26506. -
  26507. - # Clean up.
  26508. - rm -f a.out a.exe
  26509. -else
  26510. - echo "libtool.m4: error: problem compiling CXX test program"
  26511. -fi
  26512. -
  26513. -$rm -f confest.$objext
  26514. -
  26515. -compiler_lib_search_dirs_CXX=
  26516. -if test -n "$compiler_lib_search_path_CXX"; then
  26517. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  26518. -fi
  26519. -
  26520. -# PORTME: override above test on systems where it is broken
  26521. -case $host_os in
  26522. -interix[3-9]*)
  26523. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  26524. - # hack all around it, let's just trust "g++" to DTRT.
  26525. - predep_objects_CXX=
  26526. - postdep_objects_CXX=
  26527. - postdeps_CXX=
  26528. - ;;
  26529. -
  26530. -linux*)
  26531. - case `$CC -V 2>&1 | sed 5q` in
  26532. - *Sun\ C*)
  26533. - # Sun C++ 5.9
  26534. - #
  26535. - # The more standards-conforming stlport4 library is
  26536. - # incompatible with the Cstd library. Avoid specifying
  26537. - # it if it's in CXXFLAGS. Ignore libCrun as
  26538. - # -library=stlport4 depends on it.
  26539. - case " $CXX $CXXFLAGS " in
  26540. - *" -library=stlport4 "*)
  26541. - solaris_use_stlport4=yes
  26542. - ;;
  26543. - esac
  26544. - if test "$solaris_use_stlport4" != yes; then
  26545. - postdeps_CXX='-library=Cstd -library=Crun'
  26546. - fi
  26547. - ;;
  26548. - esac
  26549. - ;;
  26550. -
  26551. -solaris*)
  26552. - case $cc_basename in
  26553. - CC*)
  26554. - # The more standards-conforming stlport4 library is
  26555. - # incompatible with the Cstd library. Avoid specifying
  26556. - # it if it's in CXXFLAGS. Ignore libCrun as
  26557. - # -library=stlport4 depends on it.
  26558. - case " $CXX $CXXFLAGS " in
  26559. - *" -library=stlport4 "*)
  26560. - solaris_use_stlport4=yes
  26561. - ;;
  26562. - esac
  26563. -
  26564. - # Adding this requires a known-good setup of shared libraries for
  26565. - # Sun compiler versions before 5.6, else PIC objects from an old
  26566. - # archive will be linked into the output, leading to subtle bugs.
  26567. - if test "$solaris_use_stlport4" != yes; then
  26568. - postdeps_CXX='-library=Cstd -library=Crun'
  26569. - fi
  26570. - ;;
  26571. - esac
  26572. - ;;
  26573. -esac
  26574. -
  26575. -case " $postdeps_CXX " in
  26576. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  26577. -esac
  26578. -
  26579. -lt_prog_compiler_wl_CXX=
  26580. -lt_prog_compiler_pic_CXX=
  26581. -lt_prog_compiler_static_CXX=
  26582. -
  26583. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26584. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  26585. -
  26586. - # C++ specific cases for pic, static, wl, etc.
  26587. - if test "$GXX" = yes; then
  26588. - lt_prog_compiler_wl_CXX='-Wl,'
  26589. - lt_prog_compiler_static_CXX='-static'
  26590. -
  26591. - case $host_os in
  26592. - aix*)
  26593. - # All AIX code is PIC.
  26594. - if test "$host_cpu" = ia64; then
  26595. - # AIX 5 now supports IA64 processor
  26596. - lt_prog_compiler_static_CXX='-Bstatic'
  26597. - fi
  26598. - ;;
  26599. - amigaos*)
  26600. - # FIXME: we need at least 68020 code to build shared libraries, but
  26601. - # adding the `-m68020' flag to GCC prevents building anything better,
  26602. - # like `-m68040'.
  26603. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  26604. - ;;
  26605. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26606. - # PIC is the default for these OSes.
  26607. - ;;
  26608. - mingw* | cygwin* | os2* | pw32*)
  26609. - # This hack is so that the source file can tell whether it is being
  26610. - # built for inclusion in a dll (and should export symbols for example).
  26611. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26612. - # (--disable-auto-import) libraries
  26613. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  26614. - ;;
  26615. - darwin* | rhapsody*)
  26616. - # PIC is the default on this platform
  26617. - # Common symbols not allowed in MH_DYLIB files
  26618. - lt_prog_compiler_pic_CXX='-fno-common'
  26619. - ;;
  26620. - *djgpp*)
  26621. - # DJGPP does not support shared libraries at all
  26622. - lt_prog_compiler_pic_CXX=
  26623. - ;;
  26624. - interix[3-9]*)
  26625. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26626. - # Instead, we relocate shared libraries at runtime.
  26627. - ;;
  26628. - sysv4*MP*)
  26629. - if test -d /usr/nec; then
  26630. - lt_prog_compiler_pic_CXX=-Kconform_pic
  26631. - fi
  26632. - ;;
  26633. - hpux*)
  26634. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26635. - # not for PA HP-UX.
  26636. - case $host_cpu in
  26637. - hppa*64*|ia64*)
  26638. - ;;
  26639. - *)
  26640. - lt_prog_compiler_pic_CXX='-fPIC'
  26641. - ;;
  26642. - esac
  26643. - ;;
  26644. - *)
  26645. - lt_prog_compiler_pic_CXX='-fPIC'
  26646. - ;;
  26647. - esac
  26648. - else
  26649. - case $host_os in
  26650. - aix[4-9]*)
  26651. - # All AIX code is PIC.
  26652. - if test "$host_cpu" = ia64; then
  26653. - # AIX 5 now supports IA64 processor
  26654. - lt_prog_compiler_static_CXX='-Bstatic'
  26655. - else
  26656. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  26657. - fi
  26658. - ;;
  26659. - chorus*)
  26660. - case $cc_basename in
  26661. - cxch68*)
  26662. - # Green Hills C++ Compiler
  26663. - # _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"
  26664. - ;;
  26665. - esac
  26666. - ;;
  26667. - darwin*)
  26668. - # PIC is the default on this platform
  26669. - # Common symbols not allowed in MH_DYLIB files
  26670. - case $cc_basename in
  26671. - xlc*)
  26672. - lt_prog_compiler_pic_CXX='-qnocommon'
  26673. - lt_prog_compiler_wl_CXX='-Wl,'
  26674. - ;;
  26675. - esac
  26676. - ;;
  26677. - dgux*)
  26678. - case $cc_basename in
  26679. - ec++*)
  26680. - lt_prog_compiler_pic_CXX='-KPIC'
  26681. - ;;
  26682. - ghcx*)
  26683. - # Green Hills C++ Compiler
  26684. - lt_prog_compiler_pic_CXX='-pic'
  26685. - ;;
  26686. - *)
  26687. - ;;
  26688. - esac
  26689. - ;;
  26690. - freebsd* | dragonfly*)
  26691. - # FreeBSD uses GNU C++
  26692. - ;;
  26693. - hpux9* | hpux10* | hpux11*)
  26694. - case $cc_basename in
  26695. - CC*)
  26696. - lt_prog_compiler_wl_CXX='-Wl,'
  26697. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  26698. - if test "$host_cpu" != ia64; then
  26699. - lt_prog_compiler_pic_CXX='+Z'
  26700. - fi
  26701. - ;;
  26702. - aCC*)
  26703. - lt_prog_compiler_wl_CXX='-Wl,'
  26704. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  26705. - case $host_cpu in
  26706. - hppa*64*|ia64*)
  26707. - # +Z the default
  26708. - ;;
  26709. - *)
  26710. - lt_prog_compiler_pic_CXX='+Z'
  26711. - ;;
  26712. - esac
  26713. - ;;
  26714. - *)
  26715. - ;;
  26716. - esac
  26717. - ;;
  26718. - interix*)
  26719. - # This is c89, which is MS Visual C++ (no shared libs)
  26720. - # Anyone wants to do a port?
  26721. - ;;
  26722. - irix5* | irix6* | nonstopux*)
  26723. - case $cc_basename in
  26724. - CC*)
  26725. - lt_prog_compiler_wl_CXX='-Wl,'
  26726. - lt_prog_compiler_static_CXX='-non_shared'
  26727. - # CC pic flag -KPIC is the default.
  26728. - ;;
  26729. - *)
  26730. - ;;
  26731. - esac
  26732. - ;;
  26733. - linux* | k*bsd*-gnu)
  26734. - case $cc_basename in
  26735. - KCC*)
  26736. - # KAI C++ Compiler
  26737. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  26738. - lt_prog_compiler_pic_CXX='-fPIC'
  26739. - ;;
  26740. - icpc* | ecpc*)
  26741. - # Intel C++
  26742. - lt_prog_compiler_wl_CXX='-Wl,'
  26743. - lt_prog_compiler_pic_CXX='-KPIC'
  26744. - lt_prog_compiler_static_CXX='-static'
  26745. - ;;
  26746. - pgCC* | pgcpp*)
  26747. - # Portland Group C++ compiler.
  26748. - lt_prog_compiler_wl_CXX='-Wl,'
  26749. - lt_prog_compiler_pic_CXX='-fpic'
  26750. - lt_prog_compiler_static_CXX='-Bstatic'
  26751. - ;;
  26752. - cxx*)
  26753. - # Compaq C++
  26754. - # Make sure the PIC flag is empty. It appears that all Alpha
  26755. - # Linux and Compaq Tru64 Unix objects are PIC.
  26756. - lt_prog_compiler_pic_CXX=
  26757. - lt_prog_compiler_static_CXX='-non_shared'
  26758. - ;;
  26759. - *)
  26760. - case `$CC -V 2>&1 | sed 5q` in
  26761. - *Sun\ C*)
  26762. - # Sun C++ 5.9
  26763. - lt_prog_compiler_pic_CXX='-KPIC'
  26764. - lt_prog_compiler_static_CXX='-Bstatic'
  26765. - lt_prog_compiler_wl_CXX='-Qoption ld '
  26766. - ;;
  26767. - esac
  26768. - ;;
  26769. - esac
  26770. - ;;
  26771. - lynxos*)
  26772. - ;;
  26773. - m88k*)
  26774. - ;;
  26775. - mvs*)
  26776. - case $cc_basename in
  26777. - cxx*)
  26778. - lt_prog_compiler_pic_CXX='-W c,exportall'
  26779. - ;;
  26780. - *)
  26781. - ;;
  26782. - esac
  26783. - ;;
  26784. - netbsd* | netbsdelf*-gnu)
  26785. - ;;
  26786. - osf3* | osf4* | osf5*)
  26787. - case $cc_basename in
  26788. - KCC*)
  26789. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  26790. - ;;
  26791. - RCC*)
  26792. - # Rational C++ 2.4.1
  26793. - lt_prog_compiler_pic_CXX='-pic'
  26794. - ;;
  26795. - cxx*)
  26796. - # Digital/Compaq C++
  26797. - lt_prog_compiler_wl_CXX='-Wl,'
  26798. - # Make sure the PIC flag is empty. It appears that all Alpha
  26799. - # Linux and Compaq Tru64 Unix objects are PIC.
  26800. - lt_prog_compiler_pic_CXX=
  26801. - lt_prog_compiler_static_CXX='-non_shared'
  26802. - ;;
  26803. - *)
  26804. - ;;
  26805. - esac
  26806. - ;;
  26807. - psos*)
  26808. - ;;
  26809. - solaris*)
  26810. - case $cc_basename in
  26811. - CC*)
  26812. - # Sun C++ 4.2, 5.x and Centerline C++
  26813. - lt_prog_compiler_pic_CXX='-KPIC'
  26814. - lt_prog_compiler_static_CXX='-Bstatic'
  26815. - lt_prog_compiler_wl_CXX='-Qoption ld '
  26816. - ;;
  26817. - gcx*)
  26818. - # Green Hills C++ Compiler
  26819. - lt_prog_compiler_pic_CXX='-PIC'
  26820. - ;;
  26821. - *)
  26822. - ;;
  26823. - esac
  26824. - ;;
  26825. - sunos4*)
  26826. - case $cc_basename in
  26827. - CC*)
  26828. - # Sun C++ 4.x
  26829. - lt_prog_compiler_pic_CXX='-pic'
  26830. - lt_prog_compiler_static_CXX='-Bstatic'
  26831. - ;;
  26832. - lcc*)
  26833. - # Lucid
  26834. - lt_prog_compiler_pic_CXX='-pic'
  26835. - ;;
  26836. - *)
  26837. - ;;
  26838. - esac
  26839. - ;;
  26840. - tandem*)
  26841. - case $cc_basename in
  26842. - NCC*)
  26843. - # NonStop-UX NCC 3.20
  26844. - lt_prog_compiler_pic_CXX='-KPIC'
  26845. - ;;
  26846. - *)
  26847. - ;;
  26848. - esac
  26849. - ;;
  26850. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  26851. - case $cc_basename in
  26852. - CC*)
  26853. - lt_prog_compiler_wl_CXX='-Wl,'
  26854. - lt_prog_compiler_pic_CXX='-KPIC'
  26855. - lt_prog_compiler_static_CXX='-Bstatic'
  26856. - ;;
  26857. - esac
  26858. - ;;
  26859. - vxworks*)
  26860. - ;;
  26861. - *)
  26862. - lt_prog_compiler_can_build_shared_CXX=no
  26863. - ;;
  26864. - esac
  26865. - fi
  26866. -
  26867. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  26868. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  26869. -
  26870. -#
  26871. -# Check to make sure the PIC flag actually works.
  26872. -#
  26873. -if test -n "$lt_prog_compiler_pic_CXX"; then
  26874. -
  26875. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  26876. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  26877. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  26878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26879. -else
  26880. - lt_cv_prog_compiler_pic_works_CXX=no
  26881. - ac_outfile=conftest.$ac_objext
  26882. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26883. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  26884. - # Insert the option either (1) after the last *FLAGS variable, or
  26885. - # (2) before a word containing "conftest.", or (3) at the end.
  26886. - # Note that $ac_compile itself does not contain backslashes and begins
  26887. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26888. - # The option is referenced via a variable to avoid confusing sed.
  26889. - lt_compile=`echo "$ac_compile" | $SED \
  26890. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26891. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26892. - -e 's:$: $lt_compiler_flag:'`
  26893. - (eval echo "\"\$as_me:12687: $lt_compile\"" >&5)
  26894. - (eval "$lt_compile" 2>conftest.err)
  26895. - ac_status=$?
  26896. - cat conftest.err >&5
  26897. - echo "$as_me:12691: \$? = $ac_status" >&5
  26898. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26899. - # The compiler can only warn and ignore the option if not recognized
  26900. - # So say no if there are warnings other than the usual output.
  26901. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26902. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26903. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26904. - lt_cv_prog_compiler_pic_works_CXX=yes
  26905. - fi
  26906. - fi
  26907. - $rm conftest*
  26908. -
  26909. -fi
  26910. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  26911. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  26912. -
  26913. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  26914. - case $lt_prog_compiler_pic_CXX in
  26915. - "" | " "*) ;;
  26916. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  26917. - esac
  26918. -else
  26919. - lt_prog_compiler_pic_CXX=
  26920. - lt_prog_compiler_can_build_shared_CXX=no
  26921. -fi
  26922. -
  26923. -fi
  26924. -case $host_os in
  26925. - # For platforms which do not support PIC, -DPIC is meaningless:
  26926. - *djgpp*)
  26927. - lt_prog_compiler_pic_CXX=
  26928. - ;;
  26929. - *)
  26930. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  26931. - ;;
  26932. -esac
  26933. -
  26934. -#
  26935. -# Check to make sure the static flag actually works.
  26936. -#
  26937. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  26938. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  26939. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  26940. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  26941. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26942. -else
  26943. - lt_cv_prog_compiler_static_works_CXX=no
  26944. - save_LDFLAGS="$LDFLAGS"
  26945. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  26946. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  26947. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26948. - # The linker can only warn and ignore the option if not recognized
  26949. - # So say no if there are warnings
  26950. - if test -s conftest.err; then
  26951. - # Append any errors to the config.log.
  26952. - cat conftest.err 1>&5
  26953. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  26954. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26955. - if diff conftest.exp conftest.er2 >/dev/null; then
  26956. - lt_cv_prog_compiler_static_works_CXX=yes
  26957. - fi
  26958. - else
  26959. - lt_cv_prog_compiler_static_works_CXX=yes
  26960. - fi
  26961. - fi
  26962. - $rm -r conftest*
  26963. - LDFLAGS="$save_LDFLAGS"
  26964. -
  26965. -fi
  26966. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  26967. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  26968. -
  26969. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  26970. - :
  26971. -else
  26972. - lt_prog_compiler_static_CXX=
  26973. -fi
  26974. -
  26975. -
  26976. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  26977. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  26978. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  26979. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26980. -else
  26981. - lt_cv_prog_compiler_c_o_CXX=no
  26982. - $rm -r conftest 2>/dev/null
  26983. - mkdir conftest
  26984. - cd conftest
  26985. - mkdir out
  26986. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26987. -
  26988. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  26989. - # Insert the option either (1) after the last *FLAGS variable, or
  26990. - # (2) before a word containing "conftest.", or (3) at the end.
  26991. - # Note that $ac_compile itself does not contain backslashes and begins
  26992. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26993. - lt_compile=`echo "$ac_compile" | $SED \
  26994. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26995. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26996. - -e 's:$: $lt_compiler_flag:'`
  26997. - (eval echo "\"\$as_me:12791: $lt_compile\"" >&5)
  26998. - (eval "$lt_compile" 2>out/conftest.err)
  26999. - ac_status=$?
  27000. - cat out/conftest.err >&5
  27001. - echo "$as_me:12795: \$? = $ac_status" >&5
  27002. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27003. - then
  27004. - # The compiler can only warn and ignore the option if not recognized
  27005. - # So say no if there are warnings
  27006. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  27007. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  27008. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  27009. - lt_cv_prog_compiler_c_o_CXX=yes
  27010. - fi
  27011. - fi
  27012. - chmod u+w . 2>&5
  27013. - $rm conftest*
  27014. - # SGI C++ compiler will create directory out/ii_files/ for
  27015. - # template instantiation
  27016. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  27017. - $rm out/* && rmdir out
  27018. - cd ..
  27019. - rmdir conftest
  27020. - $rm conftest*
  27021. -
  27022. -fi
  27023. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  27024. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  27025. -
  27026. -
  27027. -hard_links="nottested"
  27028. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  27029. - # do not overwrite the value of need_locks provided by the user
  27030. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  27031. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  27032. - hard_links=yes
  27033. - $rm conftest*
  27034. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27035. - touch conftest.a
  27036. - ln conftest.a conftest.b 2>&5 || hard_links=no
  27037. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27038. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  27039. -echo "${ECHO_T}$hard_links" >&6; }
  27040. - if test "$hard_links" = no; then
  27041. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27042. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27043. - need_locks=warn
  27044. - fi
  27045. -else
  27046. - need_locks=no
  27047. -fi
  27048. -
  27049. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27050. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27051. -
  27052. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27053. - case $host_os in
  27054. - aix[4-9]*)
  27055. - # If we're using GNU nm, then we don't want the "-C" option.
  27056. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  27057. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  27058. - 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'
  27059. - else
  27060. - 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'
  27061. - fi
  27062. - ;;
  27063. - pw32*)
  27064. - export_symbols_cmds_CXX="$ltdll_cmds"
  27065. - ;;
  27066. - cygwin* | mingw*)
  27067. - 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'
  27068. - ;;
  27069. - linux* | k*bsd*-gnu)
  27070. - link_all_deplibs_CXX=no
  27071. - ;;
  27072. - *)
  27073. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27074. - ;;
  27075. - esac
  27076. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  27077. -
  27078. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  27079. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  27080. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  27081. -
  27082. -#
  27083. -# Do we need to explicitly link libc?
  27084. -#
  27085. -case "x$archive_cmds_need_lc_CXX" in
  27086. -x|xyes)
  27087. - # Assume -lc should be added
  27088. - archive_cmds_need_lc_CXX=yes
  27089. -
  27090. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  27091. - case $archive_cmds_CXX in
  27092. - *'~'*)
  27093. - # FIXME: we may have to deal with multi-command sequences.
  27094. - ;;
  27095. - '$CC '*)
  27096. - # Test whether the compiler implicitly links with -lc since on some
  27097. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27098. - # to ld, don't add -lc before -lgcc.
  27099. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  27100. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  27101. - $rm conftest*
  27102. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27103. -
  27104. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27105. - (eval $ac_compile) 2>&5
  27106. - ac_status=$?
  27107. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27108. - (exit $ac_status); } 2>conftest.err; then
  27109. - soname=conftest
  27110. - lib=conftest
  27111. - libobjs=conftest.$ac_objext
  27112. - deplibs=
  27113. - wl=$lt_prog_compiler_wl_CXX
  27114. - pic_flag=$lt_prog_compiler_pic_CXX
  27115. - compiler_flags=-v
  27116. - linker_flags=-v
  27117. - verstring=
  27118. - output_objdir=.
  27119. - libname=conftest
  27120. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  27121. - allow_undefined_flag_CXX=
  27122. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  27123. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27124. - ac_status=$?
  27125. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27126. - (exit $ac_status); }
  27127. - then
  27128. - archive_cmds_need_lc_CXX=no
  27129. - else
  27130. - archive_cmds_need_lc_CXX=yes
  27131. - fi
  27132. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  27133. - else
  27134. - cat conftest.err 1>&5
  27135. - fi
  27136. - $rm conftest*
  27137. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  27138. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  27139. - ;;
  27140. - esac
  27141. - fi
  27142. - ;;
  27143. -esac
  27144. -
  27145. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  27146. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  27147. -library_names_spec=
  27148. -libname_spec='lib$name'
  27149. -soname_spec=
  27150. -shrext_cmds=".so"
  27151. -postinstall_cmds=
  27152. -postuninstall_cmds=
  27153. -finish_cmds=
  27154. -finish_eval=
  27155. -shlibpath_var=
  27156. -shlibpath_overrides_runpath=unknown
  27157. -version_type=none
  27158. -dynamic_linker="$host_os ld.so"
  27159. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27160. -
  27161. -need_lib_prefix=unknown
  27162. -hardcode_into_libs=no
  27163. -
  27164. -# when you set need_version to no, make sure it does not cause -set_version
  27165. -# flags to be left without arguments
  27166. -need_version=unknown
  27167. -
  27168. -case $host_os in
  27169. -aix3*)
  27170. - version_type=linux
  27171. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27172. - shlibpath_var=LIBPATH
  27173. -
  27174. - # AIX 3 has no versioning support, so we append a major version to the name.
  27175. - soname_spec='${libname}${release}${shared_ext}$major'
  27176. - ;;
  27177. -
  27178. -aix[4-9]*)
  27179. - version_type=linux
  27180. - need_lib_prefix=no
  27181. - need_version=no
  27182. - hardcode_into_libs=yes
  27183. - if test "$host_cpu" = ia64; then
  27184. - # AIX 5 supports IA64
  27185. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27186. - shlibpath_var=LD_LIBRARY_PATH
  27187. - else
  27188. - # With GCC up to 2.95.x, collect2 would create an import file
  27189. - # for dependence libraries. The import file would start with
  27190. - # the line `#! .'. This would cause the generated library to
  27191. - # depend on `.', always an invalid library. This was fixed in
  27192. - # development snapshots of GCC prior to 3.0.
  27193. - case $host_os in
  27194. - aix4 | aix4.[01] | aix4.[01].*)
  27195. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27196. - echo ' yes '
  27197. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  27198. - :
  27199. - else
  27200. - can_build_shared=no
  27201. - fi
  27202. - ;;
  27203. - esac
  27204. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27205. - # soname into executable. Probably we can add versioning support to
  27206. - # collect2, so additional links can be useful in future.
  27207. - if test "$aix_use_runtimelinking" = yes; then
  27208. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27209. - # instead of lib<name>.a to let people know that these are not
  27210. - # typical AIX shared libraries.
  27211. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27212. - else
  27213. - # We preserve .a as extension for shared libraries through AIX4.2
  27214. - # and later when we are not doing run time linking.
  27215. - library_names_spec='${libname}${release}.a $libname.a'
  27216. - soname_spec='${libname}${release}${shared_ext}$major'
  27217. - fi
  27218. - shlibpath_var=LIBPATH
  27219. - fi
  27220. - ;;
  27221. -
  27222. -amigaos*)
  27223. - library_names_spec='$libname.ixlibrary $libname.a'
  27224. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27225. - 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'
  27226. - ;;
  27227. -
  27228. -beos*)
  27229. - library_names_spec='${libname}${shared_ext}'
  27230. - dynamic_linker="$host_os ld.so"
  27231. - shlibpath_var=LIBRARY_PATH
  27232. - ;;
  27233. -
  27234. -bsdi[45]*)
  27235. - version_type=linux
  27236. - need_version=no
  27237. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27238. - soname_spec='${libname}${release}${shared_ext}$major'
  27239. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27240. - shlibpath_var=LD_LIBRARY_PATH
  27241. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27242. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27243. - # the default ld.so.conf also contains /usr/contrib/lib and
  27244. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27245. - # libtool to hard-code these into programs
  27246. - ;;
  27247. -
  27248. -cygwin* | mingw* | pw32*)
  27249. - version_type=windows
  27250. - shrext_cmds=".dll"
  27251. - need_version=no
  27252. - need_lib_prefix=no
  27253. -
  27254. - case $GCC,$host_os in
  27255. - yes,cygwin* | yes,mingw* | yes,pw32*)
  27256. - library_names_spec='$libname.dll.a'
  27257. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27258. - postinstall_cmds='base_file=`basename \${file}`~
  27259. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  27260. - dldir=$destdir/`dirname \$dlpath`~
  27261. - test -d \$dldir || mkdir -p \$dldir~
  27262. - $install_prog $dir/$dlname \$dldir/$dlname~
  27263. - chmod a+x \$dldir/$dlname'
  27264. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27265. - dlpath=$dir/\$dldll~
  27266. - $rm \$dlpath'
  27267. - shlibpath_overrides_runpath=yes
  27268. -
  27269. - case $host_os in
  27270. - cygwin*)
  27271. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27272. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27273. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27274. - ;;
  27275. - mingw*)
  27276. - # MinGW DLLs use traditional 'lib' prefix
  27277. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27278. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27279. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  27280. - # It is most probably a Windows format PATH printed by
  27281. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27282. - # path with ; separators, and with drive letters. We can handle the
  27283. - # drive letters (cygwin fileutils understands them), so leave them,
  27284. - # especially as we might pass files found there to a mingw objdump,
  27285. - # which wouldn't understand a cygwinified path. Ahh.
  27286. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27287. - else
  27288. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27289. - fi
  27290. - ;;
  27291. - pw32*)
  27292. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27293. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27294. - ;;
  27295. - esac
  27296. - ;;
  27297. -
  27298. - *)
  27299. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27300. - ;;
  27301. - esac
  27302. - dynamic_linker='Win32 ld.exe'
  27303. - # FIXME: first we should search . and the directory the executable is in
  27304. - shlibpath_var=PATH
  27305. - ;;
  27306. -
  27307. -darwin* | rhapsody*)
  27308. - dynamic_linker="$host_os dyld"
  27309. - version_type=darwin
  27310. - need_lib_prefix=no
  27311. - need_version=no
  27312. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27313. - soname_spec='${libname}${release}${major}$shared_ext'
  27314. - shlibpath_overrides_runpath=yes
  27315. - shlibpath_var=DYLD_LIBRARY_PATH
  27316. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27317. -
  27318. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27319. - ;;
  27320. -
  27321. -dgux*)
  27322. - version_type=linux
  27323. - need_lib_prefix=no
  27324. - need_version=no
  27325. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27326. - soname_spec='${libname}${release}${shared_ext}$major'
  27327. - shlibpath_var=LD_LIBRARY_PATH
  27328. - ;;
  27329. -
  27330. -freebsd1*)
  27331. - dynamic_linker=no
  27332. - ;;
  27333. -
  27334. -freebsd* | dragonfly*)
  27335. - # DragonFly does not have aout. When/if they implement a new
  27336. - # versioning mechanism, adjust this.
  27337. - if test -x /usr/bin/objformat; then
  27338. - objformat=`/usr/bin/objformat`
  27339. - else
  27340. - case $host_os in
  27341. - freebsd[123]*) objformat=aout ;;
  27342. - *) objformat=elf ;;
  27343. - esac
  27344. - fi
  27345. - version_type=freebsd-$objformat
  27346. - case $version_type in
  27347. - freebsd-elf*)
  27348. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27349. - need_version=no
  27350. - need_lib_prefix=no
  27351. - ;;
  27352. - freebsd-*)
  27353. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27354. - need_version=yes
  27355. - ;;
  27356. - esac
  27357. - shlibpath_var=LD_LIBRARY_PATH
  27358. - case $host_os in
  27359. - freebsd2*)
  27360. - shlibpath_overrides_runpath=yes
  27361. - ;;
  27362. - freebsd3.[01]* | freebsdelf3.[01]*)
  27363. - shlibpath_overrides_runpath=yes
  27364. - hardcode_into_libs=yes
  27365. - ;;
  27366. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27367. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27368. - shlibpath_overrides_runpath=no
  27369. - hardcode_into_libs=yes
  27370. - ;;
  27371. - *) # from 4.6 on, and DragonFly
  27372. - shlibpath_overrides_runpath=yes
  27373. - hardcode_into_libs=yes
  27374. - ;;
  27375. - esac
  27376. - ;;
  27377. -
  27378. -gnu*)
  27379. - version_type=linux
  27380. - need_lib_prefix=no
  27381. - need_version=no
  27382. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27383. - soname_spec='${libname}${release}${shared_ext}$major'
  27384. - shlibpath_var=LD_LIBRARY_PATH
  27385. - hardcode_into_libs=yes
  27386. - ;;
  27387. -
  27388. -hpux9* | hpux10* | hpux11*)
  27389. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27390. - # link against other versions.
  27391. - version_type=sunos
  27392. - need_lib_prefix=no
  27393. - need_version=no
  27394. - case $host_cpu in
  27395. - ia64*)
  27396. - shrext_cmds='.so'
  27397. - hardcode_into_libs=yes
  27398. - dynamic_linker="$host_os dld.so"
  27399. - shlibpath_var=LD_LIBRARY_PATH
  27400. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27401. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27402. - soname_spec='${libname}${release}${shared_ext}$major'
  27403. - if test "X$HPUX_IA64_MODE" = X32; then
  27404. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27405. - else
  27406. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27407. - fi
  27408. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27409. - ;;
  27410. - hppa*64*)
  27411. - shrext_cmds='.sl'
  27412. - hardcode_into_libs=yes
  27413. - dynamic_linker="$host_os dld.sl"
  27414. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27415. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27416. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27417. - soname_spec='${libname}${release}${shared_ext}$major'
  27418. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27419. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27420. - ;;
  27421. - *)
  27422. - shrext_cmds='.sl'
  27423. - dynamic_linker="$host_os dld.sl"
  27424. - shlibpath_var=SHLIB_PATH
  27425. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27426. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27427. - soname_spec='${libname}${release}${shared_ext}$major'
  27428. - ;;
  27429. - esac
  27430. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27431. - postinstall_cmds='chmod 555 $lib'
  27432. - ;;
  27433. -
  27434. -interix[3-9]*)
  27435. - version_type=linux
  27436. - need_lib_prefix=no
  27437. - need_version=no
  27438. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27439. - soname_spec='${libname}${release}${shared_ext}$major'
  27440. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27441. - shlibpath_var=LD_LIBRARY_PATH
  27442. - shlibpath_overrides_runpath=no
  27443. - hardcode_into_libs=yes
  27444. - ;;
  27445. -
  27446. -irix5* | irix6* | nonstopux*)
  27447. - case $host_os in
  27448. - nonstopux*) version_type=nonstopux ;;
  27449. - *)
  27450. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27451. - version_type=linux
  27452. - else
  27453. - version_type=irix
  27454. - fi ;;
  27455. - esac
  27456. - need_lib_prefix=no
  27457. - need_version=no
  27458. - soname_spec='${libname}${release}${shared_ext}$major'
  27459. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27460. - case $host_os in
  27461. - irix5* | nonstopux*)
  27462. - libsuff= shlibsuff=
  27463. - ;;
  27464. - *)
  27465. - case $LD in # libtool.m4 will add one of these switches to LD
  27466. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27467. - libsuff= shlibsuff= libmagic=32-bit;;
  27468. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27469. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  27470. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27471. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27472. - *) libsuff= shlibsuff= libmagic=never-match;;
  27473. - esac
  27474. - ;;
  27475. - esac
  27476. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27477. - shlibpath_overrides_runpath=no
  27478. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27479. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27480. - hardcode_into_libs=yes
  27481. - ;;
  27482. -
  27483. -# No shared lib support for Linux oldld, aout, or coff.
  27484. -linux*oldld* | linux*aout* | linux*coff*)
  27485. - dynamic_linker=no
  27486. - ;;
  27487. -
  27488. -# This must be Linux ELF.
  27489. -linux* | k*bsd*-gnu)
  27490. - version_type=linux
  27491. - need_lib_prefix=no
  27492. - need_version=no
  27493. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27494. - soname_spec='${libname}${release}${shared_ext}$major'
  27495. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27496. - shlibpath_var=LD_LIBRARY_PATH
  27497. - shlibpath_overrides_runpath=no
  27498. - # This implies no fast_install, which is unacceptable.
  27499. - # Some rework will be needed to allow for fast_install
  27500. - # before this can be enabled.
  27501. - hardcode_into_libs=yes
  27502. -
  27503. - # Append ld.so.conf contents to the search path
  27504. - if test -f /etc/ld.so.conf; then
  27505. - 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' ' '`
  27506. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  27507. - fi
  27508. -
  27509. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  27510. - # powerpc, because MkLinux only supported shared libraries with the
  27511. - # GNU dynamic linker. Since this was broken with cross compilers,
  27512. - # most powerpc-linux boxes support dynamic linking these days and
  27513. - # people can always --disable-shared, the test was removed, and we
  27514. - # assume the GNU/Linux dynamic linker is in use.
  27515. - dynamic_linker='GNU/Linux ld.so'
  27516. - ;;
  27517. -
  27518. -netbsdelf*-gnu)
  27519. - version_type=linux
  27520. - need_lib_prefix=no
  27521. - need_version=no
  27522. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27523. - soname_spec='${libname}${release}${shared_ext}$major'
  27524. - shlibpath_var=LD_LIBRARY_PATH
  27525. - shlibpath_overrides_runpath=no
  27526. - hardcode_into_libs=yes
  27527. - dynamic_linker='NetBSD ld.elf_so'
  27528. - ;;
  27529. -
  27530. -netbsd*)
  27531. - version_type=sunos
  27532. - need_lib_prefix=no
  27533. - need_version=no
  27534. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27535. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27536. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27537. - dynamic_linker='NetBSD (a.out) ld.so'
  27538. - else
  27539. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27540. - soname_spec='${libname}${release}${shared_ext}$major'
  27541. - dynamic_linker='NetBSD ld.elf_so'
  27542. - fi
  27543. - shlibpath_var=LD_LIBRARY_PATH
  27544. - shlibpath_overrides_runpath=yes
  27545. - hardcode_into_libs=yes
  27546. - ;;
  27547. -
  27548. -newsos6)
  27549. - version_type=linux
  27550. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27551. - shlibpath_var=LD_LIBRARY_PATH
  27552. - shlibpath_overrides_runpath=yes
  27553. - ;;
  27554. -
  27555. -nto-qnx*)
  27556. - version_type=linux
  27557. - need_lib_prefix=no
  27558. - need_version=no
  27559. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27560. - soname_spec='${libname}${release}${shared_ext}$major'
  27561. - shlibpath_var=LD_LIBRARY_PATH
  27562. - shlibpath_overrides_runpath=yes
  27563. - ;;
  27564. -
  27565. -openbsd*)
  27566. - version_type=sunos
  27567. - sys_lib_dlsearch_path_spec="/usr/lib"
  27568. - need_lib_prefix=no
  27569. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  27570. - case $host_os in
  27571. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  27572. - *) need_version=no ;;
  27573. - esac
  27574. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27575. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27576. - shlibpath_var=LD_LIBRARY_PATH
  27577. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27578. - case $host_os in
  27579. - openbsd2.[89] | openbsd2.[89].*)
  27580. - shlibpath_overrides_runpath=no
  27581. - ;;
  27582. - *)
  27583. - shlibpath_overrides_runpath=yes
  27584. - ;;
  27585. - esac
  27586. - else
  27587. - shlibpath_overrides_runpath=yes
  27588. - fi
  27589. - ;;
  27590. -
  27591. -os2*)
  27592. - libname_spec='$name'
  27593. - shrext_cmds=".dll"
  27594. - need_lib_prefix=no
  27595. - library_names_spec='$libname${shared_ext} $libname.a'
  27596. - dynamic_linker='OS/2 ld.exe'
  27597. - shlibpath_var=LIBPATH
  27598. - ;;
  27599. -
  27600. -osf3* | osf4* | osf5*)
  27601. - version_type=osf
  27602. - need_lib_prefix=no
  27603. - need_version=no
  27604. - soname_spec='${libname}${release}${shared_ext}$major'
  27605. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27606. - shlibpath_var=LD_LIBRARY_PATH
  27607. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27608. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27609. - ;;
  27610. -
  27611. -rdos*)
  27612. - dynamic_linker=no
  27613. - ;;
  27614. -
  27615. -solaris*)
  27616. - version_type=linux
  27617. - need_lib_prefix=no
  27618. - need_version=no
  27619. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27620. - soname_spec='${libname}${release}${shared_ext}$major'
  27621. - shlibpath_var=LD_LIBRARY_PATH
  27622. - shlibpath_overrides_runpath=yes
  27623. - hardcode_into_libs=yes
  27624. - # ldd complains unless libraries are executable
  27625. - postinstall_cmds='chmod +x $lib'
  27626. - ;;
  27627. -
  27628. -sunos4*)
  27629. - version_type=sunos
  27630. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27631. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27632. - shlibpath_var=LD_LIBRARY_PATH
  27633. - shlibpath_overrides_runpath=yes
  27634. - if test "$with_gnu_ld" = yes; then
  27635. - need_lib_prefix=no
  27636. - fi
  27637. - need_version=yes
  27638. - ;;
  27639. -
  27640. -sysv4 | sysv4.3*)
  27641. - version_type=linux
  27642. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27643. - soname_spec='${libname}${release}${shared_ext}$major'
  27644. - shlibpath_var=LD_LIBRARY_PATH
  27645. - case $host_vendor in
  27646. - sni)
  27647. - shlibpath_overrides_runpath=no
  27648. - need_lib_prefix=no
  27649. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  27650. - runpath_var=LD_RUN_PATH
  27651. - ;;
  27652. - siemens)
  27653. - need_lib_prefix=no
  27654. - ;;
  27655. - motorola)
  27656. - need_lib_prefix=no
  27657. - need_version=no
  27658. - shlibpath_overrides_runpath=no
  27659. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  27660. - ;;
  27661. - esac
  27662. - ;;
  27663. -
  27664. -sysv4*MP*)
  27665. - if test -d /usr/nec ;then
  27666. - version_type=linux
  27667. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  27668. - soname_spec='$libname${shared_ext}.$major'
  27669. - shlibpath_var=LD_LIBRARY_PATH
  27670. - fi
  27671. - ;;
  27672. -
  27673. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27674. - version_type=freebsd-elf
  27675. - need_lib_prefix=no
  27676. - need_version=no
  27677. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27678. - soname_spec='${libname}${release}${shared_ext}$major'
  27679. - shlibpath_var=LD_LIBRARY_PATH
  27680. - hardcode_into_libs=yes
  27681. - if test "$with_gnu_ld" = yes; then
  27682. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  27683. - shlibpath_overrides_runpath=no
  27684. - else
  27685. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  27686. - shlibpath_overrides_runpath=yes
  27687. - case $host_os in
  27688. - sco3.2v5*)
  27689. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  27690. - ;;
  27691. - esac
  27692. - fi
  27693. - sys_lib_dlsearch_path_spec='/usr/lib'
  27694. - ;;
  27695. -
  27696. -uts4*)
  27697. - version_type=linux
  27698. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27699. - soname_spec='${libname}${release}${shared_ext}$major'
  27700. - shlibpath_var=LD_LIBRARY_PATH
  27701. - ;;
  27702. -
  27703. -*)
  27704. - dynamic_linker=no
  27705. - ;;
  27706. -esac
  27707. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  27708. -echo "${ECHO_T}$dynamic_linker" >&6; }
  27709. -test "$dynamic_linker" = no && can_build_shared=no
  27710. -
  27711. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  27712. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27713. -else
  27714. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  27715. -fi
  27716. -
  27717. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  27718. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  27719. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27720. -else
  27721. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  27722. -fi
  27723. -
  27724. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  27725. -
  27726. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  27727. -if test "$GCC" = yes; then
  27728. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  27729. -fi
  27730. -
  27731. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  27732. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  27733. -hardcode_action_CXX=
  27734. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  27735. - test -n "$runpath_var_CXX" || \
  27736. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  27737. -
  27738. - # We can hardcode non-existant directories.
  27739. - if test "$hardcode_direct_CXX" != no &&
  27740. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  27741. - # have to relink, otherwise we might link with an installed library
  27742. - # when we should be linking with a yet-to-be-installed one
  27743. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  27744. - test "$hardcode_minus_L_CXX" != no; then
  27745. - # Linking always hardcodes the temporary library directory.
  27746. - hardcode_action_CXX=relink
  27747. - else
  27748. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  27749. - hardcode_action_CXX=immediate
  27750. - fi
  27751. -else
  27752. - # We cannot hardcode anything, or else we can only hardcode existing
  27753. - # directories.
  27754. - hardcode_action_CXX=unsupported
  27755. -fi
  27756. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  27757. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  27758. -
  27759. -if test "$hardcode_action_CXX" = relink; then
  27760. - # Fast installation is not supported
  27761. - enable_fast_install=no
  27762. -elif test "$shlibpath_overrides_runpath" = yes ||
  27763. - test "$enable_shared" = no; then
  27764. - # Fast installation is not necessary
  27765. - enable_fast_install=needless
  27766. -fi
  27767. -
  27768. -
  27769. -# The else clause should only fire when bootstrapping the
  27770. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  27771. -# with your package, and you will get complaints that there are
  27772. -# no rules to generate ltmain.sh.
  27773. -if test -f "$ltmain"; then
  27774. - # See if we are running on zsh, and set the options which allow our commands through
  27775. - # without removal of \ escapes.
  27776. - if test -n "${ZSH_VERSION+set}" ; then
  27777. - setopt NO_GLOB_SUBST
  27778. - fi
  27779. - # Now quote all the things that may contain metacharacters while being
  27780. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  27781. - # variables and quote the copies for generation of the libtool script.
  27782. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27783. - SED SHELL STRIP \
  27784. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27785. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27786. - deplibs_check_method reload_flag reload_cmds need_locks \
  27787. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27788. - lt_cv_sys_global_symbol_to_c_name_address \
  27789. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27790. - old_postinstall_cmds old_postuninstall_cmds \
  27791. - compiler_CXX \
  27792. - CC_CXX \
  27793. - LD_CXX \
  27794. - lt_prog_compiler_wl_CXX \
  27795. - lt_prog_compiler_pic_CXX \
  27796. - lt_prog_compiler_static_CXX \
  27797. - lt_prog_compiler_no_builtin_flag_CXX \
  27798. - export_dynamic_flag_spec_CXX \
  27799. - thread_safe_flag_spec_CXX \
  27800. - whole_archive_flag_spec_CXX \
  27801. - enable_shared_with_static_runtimes_CXX \
  27802. - old_archive_cmds_CXX \
  27803. - old_archive_from_new_cmds_CXX \
  27804. - predep_objects_CXX \
  27805. - postdep_objects_CXX \
  27806. - predeps_CXX \
  27807. - postdeps_CXX \
  27808. - compiler_lib_search_path_CXX \
  27809. - compiler_lib_search_dirs_CXX \
  27810. - archive_cmds_CXX \
  27811. - archive_expsym_cmds_CXX \
  27812. - postinstall_cmds_CXX \
  27813. - postuninstall_cmds_CXX \
  27814. - old_archive_from_expsyms_cmds_CXX \
  27815. - allow_undefined_flag_CXX \
  27816. - no_undefined_flag_CXX \
  27817. - export_symbols_cmds_CXX \
  27818. - hardcode_libdir_flag_spec_CXX \
  27819. - hardcode_libdir_flag_spec_ld_CXX \
  27820. - hardcode_libdir_separator_CXX \
  27821. - hardcode_automatic_CXX \
  27822. - module_cmds_CXX \
  27823. - module_expsym_cmds_CXX \
  27824. - lt_cv_prog_compiler_c_o_CXX \
  27825. - fix_srcfile_path_CXX \
  27826. - exclude_expsyms_CXX \
  27827. - include_expsyms_CXX; do
  27828. -
  27829. - case $var in
  27830. - old_archive_cmds_CXX | \
  27831. - old_archive_from_new_cmds_CXX | \
  27832. - archive_cmds_CXX | \
  27833. - archive_expsym_cmds_CXX | \
  27834. - module_cmds_CXX | \
  27835. - module_expsym_cmds_CXX | \
  27836. - old_archive_from_expsyms_cmds_CXX | \
  27837. - export_symbols_cmds_CXX | \
  27838. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27839. - postinstall_cmds | postuninstall_cmds | \
  27840. - old_postinstall_cmds | old_postuninstall_cmds | \
  27841. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27842. - # Double-quote double-evaled strings.
  27843. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27844. - ;;
  27845. - *)
  27846. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27847. - ;;
  27848. - esac
  27849. - done
  27850. -
  27851. - case $lt_echo in
  27852. - *'\$0 --fallback-echo"')
  27853. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27854. - ;;
  27855. - esac
  27856. -
  27857. -cfgfile="$ofile"
  27858. -
  27859. - cat <<__EOF__ >> "$cfgfile"
  27860. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  27861. -
  27862. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27863. -
  27864. -# Shell to use when invoking shell scripts.
  27865. -SHELL=$lt_SHELL
  27866. -
  27867. -# Whether or not to build shared libraries.
  27868. -build_libtool_libs=$enable_shared
  27869. -
  27870. -# Whether or not to build static libraries.
  27871. -build_old_libs=$enable_static
  27872. -
  27873. -# Whether or not to add -lc for building shared libraries.
  27874. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27875. -
  27876. -# Whether or not to disallow shared libs when runtime libs are static
  27877. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27878. -
  27879. -# Whether or not to optimize for fast installation.
  27880. -fast_install=$enable_fast_install
  27881. -
  27882. -# The host system.
  27883. -host_alias=$host_alias
  27884. -host=$host
  27885. -host_os=$host_os
  27886. -
  27887. -# The build system.
  27888. -build_alias=$build_alias
  27889. -build=$build
  27890. -build_os=$build_os
  27891. -
  27892. -# An echo program that does not interpret backslashes.
  27893. -echo=$lt_echo
  27894. -
  27895. -# The archiver.
  27896. -AR=$lt_AR
  27897. -AR_FLAGS=$lt_AR_FLAGS
  27898. -
  27899. -# A C compiler.
  27900. -LTCC=$lt_LTCC
  27901. -
  27902. -# LTCC compiler flags.
  27903. -LTCFLAGS=$lt_LTCFLAGS
  27904. -
  27905. -# A language-specific compiler.
  27906. -CC=$lt_compiler_CXX
  27907. -
  27908. -# Is the compiler the GNU C compiler?
  27909. -with_gcc=$GCC_CXX
  27910. -
  27911. -# An ERE matcher.
  27912. -EGREP=$lt_EGREP
  27913. -
  27914. -# The linker used to build libraries.
  27915. -LD=$lt_LD_CXX
  27916. -
  27917. -# Whether we need hard or soft links.
  27918. -LN_S=$lt_LN_S
  27919. -
  27920. -# A BSD-compatible nm program.
  27921. -NM=$lt_NM
  27922. -
  27923. -# A symbol stripping program
  27924. -STRIP=$lt_STRIP
  27925. -
  27926. -# Used to examine libraries when file_magic_cmd begins "file"
  27927. -MAGIC_CMD=$MAGIC_CMD
  27928. -
  27929. -# Used on cygwin: DLL creation program.
  27930. -DLLTOOL="$DLLTOOL"
  27931. -
  27932. -# Used on cygwin: object dumper.
  27933. -OBJDUMP="$OBJDUMP"
  27934. -
  27935. -# Used on cygwin: assembler.
  27936. -AS="$AS"
  27937. -
  27938. -# The name of the directory that contains temporary libtool files.
  27939. -objdir=$objdir
  27940. -
  27941. -# How to create reloadable object files.
  27942. -reload_flag=$lt_reload_flag
  27943. -reload_cmds=$lt_reload_cmds
  27944. -
  27945. -# How to pass a linker flag through the compiler.
  27946. -wl=$lt_lt_prog_compiler_wl_CXX
  27947. -
  27948. -# Object file suffix (normally "o").
  27949. -objext="$ac_objext"
  27950. -
  27951. -# Old archive suffix (normally "a").
  27952. -libext="$libext"
  27953. -
  27954. -# Shared library suffix (normally ".so").
  27955. -shrext_cmds='$shrext_cmds'
  27956. -
  27957. -# Executable file suffix (normally "").
  27958. -exeext="$exeext"
  27959. -
  27960. -# Additional compiler flags for building library objects.
  27961. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  27962. -pic_mode=$pic_mode
  27963. -
  27964. -# What is the maximum length of a command?
  27965. -max_cmd_len=$lt_cv_sys_max_cmd_len
  27966. -
  27967. -# Does compiler simultaneously support -c and -o options?
  27968. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27969. -
  27970. -# Must we lock files when doing compilation?
  27971. -need_locks=$lt_need_locks
  27972. -
  27973. -# Do we need the lib prefix for modules?
  27974. -need_lib_prefix=$need_lib_prefix
  27975. -
  27976. -# Do we need a version for libraries?
  27977. -need_version=$need_version
  27978. -
  27979. -# Whether dlopen is supported.
  27980. -dlopen_support=$enable_dlopen
  27981. -
  27982. -# Whether dlopen of programs is supported.
  27983. -dlopen_self=$enable_dlopen_self
  27984. -
  27985. -# Whether dlopen of statically linked programs is supported.
  27986. -dlopen_self_static=$enable_dlopen_self_static
  27987. -
  27988. -# Compiler flag to prevent dynamic linking.
  27989. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  27990. -
  27991. -# Compiler flag to turn off builtin functions.
  27992. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27993. -
  27994. -# Compiler flag to allow reflexive dlopens.
  27995. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27996. -
  27997. -# Compiler flag to generate shared objects directly from archives.
  27998. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27999. -
  28000. -# Compiler flag to generate thread-safe objects.
  28001. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  28002. -
  28003. -# Library versioning type.
  28004. -version_type=$version_type
  28005. -
  28006. -# Format of library name prefix.
  28007. -libname_spec=$lt_libname_spec
  28008. -
  28009. -# List of archive names. First name is the real one, the rest are links.
  28010. -# The last name is the one that the linker finds with -lNAME.
  28011. -library_names_spec=$lt_library_names_spec
  28012. -
  28013. -# The coded name of the library, if different from the real name.
  28014. -soname_spec=$lt_soname_spec
  28015. -
  28016. -# Commands used to build and install an old-style archive.
  28017. -RANLIB=$lt_RANLIB
  28018. -old_archive_cmds=$lt_old_archive_cmds_CXX
  28019. -old_postinstall_cmds=$lt_old_postinstall_cmds
  28020. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28021. -
  28022. -# Create an old-style archive from a shared archive.
  28023. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28024. -
  28025. -# Create a temporary old-style archive to link instead of a shared archive.
  28026. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28027. -
  28028. -# Commands used to build and install a shared archive.
  28029. -archive_cmds=$lt_archive_cmds_CXX
  28030. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28031. -postinstall_cmds=$lt_postinstall_cmds
  28032. -postuninstall_cmds=$lt_postuninstall_cmds
  28033. -
  28034. -# Commands used to build a loadable module (assumed same as above if empty)
  28035. -module_cmds=$lt_module_cmds_CXX
  28036. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28037. -
  28038. -# Commands to strip libraries.
  28039. -old_striplib=$lt_old_striplib
  28040. -striplib=$lt_striplib
  28041. -
  28042. -# Dependencies to place before the objects being linked to create a
  28043. -# shared library.
  28044. -predep_objects=$lt_predep_objects_CXX
  28045. -
  28046. -# Dependencies to place after the objects being linked to create a
  28047. -# shared library.
  28048. -postdep_objects=$lt_postdep_objects_CXX
  28049. -
  28050. -# Dependencies to place before the objects being linked to create a
  28051. -# shared library.
  28052. -predeps=$lt_predeps_CXX
  28053. -
  28054. -# Dependencies to place after the objects being linked to create a
  28055. -# shared library.
  28056. -postdeps=$lt_postdeps_CXX
  28057. -
  28058. -# The directories searched by this compiler when creating a shared
  28059. -# library
  28060. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28061. -
  28062. -# The library search path used internally by the compiler when linking
  28063. -# a shared library.
  28064. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28065. -
  28066. -# Method to check whether dependent libraries are shared objects.
  28067. -deplibs_check_method=$lt_deplibs_check_method
  28068. -
  28069. -# Command to use when deplibs_check_method == file_magic.
  28070. -file_magic_cmd=$lt_file_magic_cmd
  28071. -
  28072. -# Flag that allows shared libraries with undefined symbols to be built.
  28073. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28074. -
  28075. -# Flag that forces no undefined symbols.
  28076. -no_undefined_flag=$lt_no_undefined_flag_CXX
  28077. -
  28078. -# Commands used to finish a libtool library installation in a directory.
  28079. -finish_cmds=$lt_finish_cmds
  28080. -
  28081. -# Same as above, but a single script fragment to be evaled but not shown.
  28082. -finish_eval=$lt_finish_eval
  28083. -
  28084. -# Take the output of nm and produce a listing of raw symbols and C names.
  28085. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28086. -
  28087. -# Transform the output of nm in a proper C declaration
  28088. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28089. -
  28090. -# Transform the output of nm in a C name address pair
  28091. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28092. -
  28093. -# This is the shared library runtime path variable.
  28094. -runpath_var=$runpath_var
  28095. -
  28096. -# This is the shared library path variable.
  28097. -shlibpath_var=$shlibpath_var
  28098. -
  28099. -# Is shlibpath searched before the hard-coded library search path?
  28100. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28101. -
  28102. -# How to hardcode a shared library path into an executable.
  28103. -hardcode_action=$hardcode_action_CXX
  28104. -
  28105. -# Whether we should hardcode library paths into libraries.
  28106. -hardcode_into_libs=$hardcode_into_libs
  28107. -
  28108. -# Flag to hardcode \$libdir into a binary during linking.
  28109. -# This must work even if \$libdir does not exist.
  28110. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28111. -
  28112. -# If ld is used when linking, flag to hardcode \$libdir into
  28113. -# a binary during linking. This must work even if \$libdir does
  28114. -# not exist.
  28115. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  28116. -
  28117. -# Whether we need a single -rpath flag with a separated argument.
  28118. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28119. -
  28120. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  28121. -# resulting binary.
  28122. -hardcode_direct=$hardcode_direct_CXX
  28123. -
  28124. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  28125. -# resulting binary.
  28126. -hardcode_minus_L=$hardcode_minus_L_CXX
  28127. -
  28128. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  28129. -# the resulting binary.
  28130. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28131. -
  28132. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  28133. -# and all subsequent libraries and executables linked against it.
  28134. -hardcode_automatic=$hardcode_automatic_CXX
  28135. -
  28136. -# Variables whose values should be saved in libtool wrapper scripts and
  28137. -# restored at relink time.
  28138. -variables_saved_for_relink="$variables_saved_for_relink"
  28139. -
  28140. -# Whether libtool must link a program against all its dependency libraries.
  28141. -link_all_deplibs=$link_all_deplibs_CXX
  28142. -
  28143. -# Compile-time system search path for libraries
  28144. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28145. -
  28146. -# Run-time system search path for libraries
  28147. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28148. -
  28149. -# Fix the shell variable \$srcfile for the compiler.
  28150. -fix_srcfile_path=$lt_fix_srcfile_path
  28151. -
  28152. -# Set to yes if exported symbols are required.
  28153. -always_export_symbols=$always_export_symbols_CXX
  28154. -
  28155. -# The commands to list exported symbols.
  28156. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28157. -
  28158. -# The commands to extract the exported symbol list from a shared archive.
  28159. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28160. -
  28161. -# Symbols that should not be listed in the preloaded symbols.
  28162. -exclude_expsyms=$lt_exclude_expsyms_CXX
  28163. -
  28164. -# Symbols that must always be exported.
  28165. -include_expsyms=$lt_include_expsyms_CXX
  28166. -
  28167. -# ### END LIBTOOL TAG CONFIG: $tagname
  28168. -
  28169. -__EOF__
  28170. -
  28171. -
  28172. -else
  28173. - # If there is no Makefile yet, we rely on a make rule to execute
  28174. - # `config.status --recheck' to rerun these tests and create the
  28175. - # libtool script then.
  28176. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28177. - if test -f "$ltmain_in"; then
  28178. - test -f Makefile && make "$ltmain"
  28179. - fi
  28180. -fi
  28181. -
  28182. -
  28183. -ac_ext=c
  28184. -ac_cpp='$CPP $CPPFLAGS'
  28185. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28186. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28187. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28188. -
  28189. -CC=$lt_save_CC
  28190. -LDCXX=$LD
  28191. -LD=$lt_save_LD
  28192. -GCC=$lt_save_GCC
  28193. -with_gnu_ldcxx=$with_gnu_ld
  28194. -with_gnu_ld=$lt_save_with_gnu_ld
  28195. -lt_cv_path_LDCXX=$lt_cv_path_LD
  28196. -lt_cv_path_LD=$lt_save_path_LD
  28197. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  28198. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  28199. -
  28200. - else
  28201. - tagname=""
  28202. - fi
  28203. - ;;
  28204. -
  28205. - F77)
  28206. - if test -n "$F77" && test "X$F77" != "Xno"; then
  28207. -
  28208. -ac_ext=f
  28209. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  28210. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28211. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  28212. -
  28213. -
  28214. -archive_cmds_need_lc_F77=no
  28215. -allow_undefined_flag_F77=
  28216. -always_export_symbols_F77=no
  28217. -archive_expsym_cmds_F77=
  28218. -export_dynamic_flag_spec_F77=
  28219. -hardcode_direct_F77=no
  28220. -hardcode_libdir_flag_spec_F77=
  28221. -hardcode_libdir_flag_spec_ld_F77=
  28222. -hardcode_libdir_separator_F77=
  28223. -hardcode_minus_L_F77=no
  28224. -hardcode_automatic_F77=no
  28225. -module_cmds_F77=
  28226. -module_expsym_cmds_F77=
  28227. -link_all_deplibs_F77=unknown
  28228. -old_archive_cmds_F77=$old_archive_cmds
  28229. -no_undefined_flag_F77=
  28230. -whole_archive_flag_spec_F77=
  28231. -enable_shared_with_static_runtimes_F77=no
  28232. -
  28233. -# Source file extension for f77 test sources.
  28234. -ac_ext=f
  28235. -
  28236. -# Object file extension for compiled f77 test sources.
  28237. -objext=o
  28238. -objext_F77=$objext
  28239. -
  28240. -# Code to be used in simple compile tests
  28241. -lt_simple_compile_test_code="\
  28242. - subroutine t
  28243. - return
  28244. - end
  28245. -"
  28246. -
  28247. -# Code to be used in simple link tests
  28248. -lt_simple_link_test_code="\
  28249. - program t
  28250. - end
  28251. -"
  28252. -
  28253. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28254. -
  28255. -# If no C compiler was specified, use CC.
  28256. -LTCC=${LTCC-"$CC"}
  28257. -
  28258. -# If no C compiler flags were specified, use CFLAGS.
  28259. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28260. -
  28261. -# Allow CC to be a program name with arguments.
  28262. -compiler=$CC
  28263. -
  28264. -
  28265. -# save warnings/boilerplate of simple test code
  28266. -ac_outfile=conftest.$ac_objext
  28267. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28268. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28269. -_lt_compiler_boilerplate=`cat conftest.err`
  28270. -$rm conftest*
  28271. -
  28272. -ac_outfile=conftest.$ac_objext
  28273. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28274. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28275. -_lt_linker_boilerplate=`cat conftest.err`
  28276. -$rm -r conftest*
  28277. -
  28278. -
  28279. -# Allow CC to be a program name with arguments.
  28280. -lt_save_CC="$CC"
  28281. -CC=${F77-"f77"}
  28282. -compiler=$CC
  28283. -compiler_F77=$CC
  28284. -for cc_temp in $compiler""; do
  28285. - case $cc_temp in
  28286. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28287. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28288. - \-*) ;;
  28289. - *) break;;
  28290. - esac
  28291. -done
  28292. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28293. -
  28294. -
  28295. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  28296. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  28297. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  28298. -echo "${ECHO_T}$can_build_shared" >&6; }
  28299. -
  28300. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  28301. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  28302. -test "$can_build_shared" = "no" && enable_shared=no
  28303. -
  28304. -# On AIX, shared libraries and static libraries use the same namespace, and
  28305. -# are all built from PIC.
  28306. -case $host_os in
  28307. -aix3*)
  28308. - test "$enable_shared" = yes && enable_static=no
  28309. - if test -n "$RANLIB"; then
  28310. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  28311. - postinstall_cmds='$RANLIB $lib'
  28312. - fi
  28313. - ;;
  28314. -aix[4-9]*)
  28315. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  28316. - test "$enable_shared" = yes && enable_static=no
  28317. - fi
  28318. - ;;
  28319. -esac
  28320. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  28321. -echo "${ECHO_T}$enable_shared" >&6; }
  28322. -
  28323. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  28324. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  28325. -# Make sure either enable_shared or enable_static is yes.
  28326. -test "$enable_shared" = yes || enable_static=yes
  28327. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  28328. -echo "${ECHO_T}$enable_static" >&6; }
  28329. -
  28330. -GCC_F77="$G77"
  28331. -LD_F77="$LD"
  28332. -
  28333. -lt_prog_compiler_wl_F77=
  28334. -lt_prog_compiler_pic_F77=
  28335. -lt_prog_compiler_static_F77=
  28336. -
  28337. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28338. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  28339. -
  28340. - if test "$GCC" = yes; then
  28341. - lt_prog_compiler_wl_F77='-Wl,'
  28342. - lt_prog_compiler_static_F77='-static'
  28343. -
  28344. - case $host_os in
  28345. - aix*)
  28346. - # All AIX code is PIC.
  28347. - if test "$host_cpu" = ia64; then
  28348. - # AIX 5 now supports IA64 processor
  28349. - lt_prog_compiler_static_F77='-Bstatic'
  28350. - fi
  28351. - ;;
  28352. -
  28353. - amigaos*)
  28354. - # FIXME: we need at least 68020 code to build shared libraries, but
  28355. - # adding the `-m68020' flag to GCC prevents building anything better,
  28356. - # like `-m68040'.
  28357. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  28358. - ;;
  28359. -
  28360. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28361. - # PIC is the default for these OSes.
  28362. - ;;
  28363. -
  28364. - mingw* | cygwin* | pw32* | os2*)
  28365. - # This hack is so that the source file can tell whether it is being
  28366. - # built for inclusion in a dll (and should export symbols for example).
  28367. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28368. - # (--disable-auto-import) libraries
  28369. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  28370. - ;;
  28371. -
  28372. - darwin* | rhapsody*)
  28373. - # PIC is the default on this platform
  28374. - # Common symbols not allowed in MH_DYLIB files
  28375. - lt_prog_compiler_pic_F77='-fno-common'
  28376. - ;;
  28377. -
  28378. - interix[3-9]*)
  28379. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28380. - # Instead, we relocate shared libraries at runtime.
  28381. - ;;
  28382. -
  28383. - msdosdjgpp*)
  28384. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  28385. - # on systems that don't support them.
  28386. - lt_prog_compiler_can_build_shared_F77=no
  28387. - enable_shared=no
  28388. - ;;
  28389. -
  28390. - sysv4*MP*)
  28391. - if test -d /usr/nec; then
  28392. - lt_prog_compiler_pic_F77=-Kconform_pic
  28393. - fi
  28394. - ;;
  28395. -
  28396. - hpux*)
  28397. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28398. - # not for PA HP-UX.
  28399. - case $host_cpu in
  28400. - hppa*64*|ia64*)
  28401. - # +Z the default
  28402. - ;;
  28403. - *)
  28404. - lt_prog_compiler_pic_F77='-fPIC'
  28405. - ;;
  28406. - esac
  28407. - ;;
  28408. -
  28409. - *)
  28410. - lt_prog_compiler_pic_F77='-fPIC'
  28411. - ;;
  28412. - esac
  28413. - else
  28414. - # PORTME Check for flag to pass linker flags through the system compiler.
  28415. - case $host_os in
  28416. - aix*)
  28417. - lt_prog_compiler_wl_F77='-Wl,'
  28418. - if test "$host_cpu" = ia64; then
  28419. - # AIX 5 now supports IA64 processor
  28420. - lt_prog_compiler_static_F77='-Bstatic'
  28421. - else
  28422. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  28423. - fi
  28424. - ;;
  28425. - darwin*)
  28426. - # PIC is the default on this platform
  28427. - # Common symbols not allowed in MH_DYLIB files
  28428. - case $cc_basename in
  28429. - xlc*)
  28430. - lt_prog_compiler_pic_F77='-qnocommon'
  28431. - lt_prog_compiler_wl_F77='-Wl,'
  28432. - ;;
  28433. - esac
  28434. - ;;
  28435. -
  28436. - mingw* | cygwin* | pw32* | os2*)
  28437. - # This hack is so that the source file can tell whether it is being
  28438. - # built for inclusion in a dll (and should export symbols for example).
  28439. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  28440. - ;;
  28441. -
  28442. - hpux9* | hpux10* | hpux11*)
  28443. - lt_prog_compiler_wl_F77='-Wl,'
  28444. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28445. - # not for PA HP-UX.
  28446. - case $host_cpu in
  28447. - hppa*64*|ia64*)
  28448. - # +Z the default
  28449. - ;;
  28450. - *)
  28451. - lt_prog_compiler_pic_F77='+Z'
  28452. - ;;
  28453. - esac
  28454. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  28455. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  28456. - ;;
  28457. -
  28458. - irix5* | irix6* | nonstopux*)
  28459. - lt_prog_compiler_wl_F77='-Wl,'
  28460. - # PIC (with -KPIC) is the default.
  28461. - lt_prog_compiler_static_F77='-non_shared'
  28462. - ;;
  28463. -
  28464. - newsos6)
  28465. - lt_prog_compiler_pic_F77='-KPIC'
  28466. - lt_prog_compiler_static_F77='-Bstatic'
  28467. - ;;
  28468. -
  28469. - linux* | k*bsd*-gnu)
  28470. - case $cc_basename in
  28471. - icc* | ecc*)
  28472. - lt_prog_compiler_wl_F77='-Wl,'
  28473. - lt_prog_compiler_pic_F77='-KPIC'
  28474. - lt_prog_compiler_static_F77='-static'
  28475. - ;;
  28476. - pgcc* | pgf77* | pgf90* | pgf95*)
  28477. - # Portland Group compilers (*not* the Pentium gcc compiler,
  28478. - # which looks to be a dead project)
  28479. - lt_prog_compiler_wl_F77='-Wl,'
  28480. - lt_prog_compiler_pic_F77='-fpic'
  28481. - lt_prog_compiler_static_F77='-Bstatic'
  28482. - ;;
  28483. - ccc*)
  28484. - lt_prog_compiler_wl_F77='-Wl,'
  28485. - # All Alpha code is PIC.
  28486. - lt_prog_compiler_static_F77='-non_shared'
  28487. - ;;
  28488. - *)
  28489. - case `$CC -V 2>&1 | sed 5q` in
  28490. - *Sun\ C*)
  28491. - # Sun C 5.9
  28492. - lt_prog_compiler_pic_F77='-KPIC'
  28493. - lt_prog_compiler_static_F77='-Bstatic'
  28494. - lt_prog_compiler_wl_F77='-Wl,'
  28495. - ;;
  28496. - *Sun\ F*)
  28497. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  28498. - lt_prog_compiler_pic_F77='-KPIC'
  28499. - lt_prog_compiler_static_F77='-Bstatic'
  28500. - lt_prog_compiler_wl_F77=''
  28501. - ;;
  28502. - esac
  28503. - ;;
  28504. - esac
  28505. - ;;
  28506. -
  28507. - osf3* | osf4* | osf5*)
  28508. - lt_prog_compiler_wl_F77='-Wl,'
  28509. - # All OSF/1 code is PIC.
  28510. - lt_prog_compiler_static_F77='-non_shared'
  28511. - ;;
  28512. -
  28513. - rdos*)
  28514. - lt_prog_compiler_static_F77='-non_shared'
  28515. - ;;
  28516. -
  28517. - solaris*)
  28518. - lt_prog_compiler_pic_F77='-KPIC'
  28519. - lt_prog_compiler_static_F77='-Bstatic'
  28520. - case $cc_basename in
  28521. - f77* | f90* | f95*)
  28522. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  28523. - *)
  28524. - lt_prog_compiler_wl_F77='-Wl,';;
  28525. - esac
  28526. - ;;
  28527. -
  28528. - sunos4*)
  28529. - lt_prog_compiler_wl_F77='-Qoption ld '
  28530. - lt_prog_compiler_pic_F77='-PIC'
  28531. - lt_prog_compiler_static_F77='-Bstatic'
  28532. - ;;
  28533. -
  28534. - sysv4 | sysv4.2uw2* | sysv4.3*)
  28535. - lt_prog_compiler_wl_F77='-Wl,'
  28536. - lt_prog_compiler_pic_F77='-KPIC'
  28537. - lt_prog_compiler_static_F77='-Bstatic'
  28538. - ;;
  28539. -
  28540. - sysv4*MP*)
  28541. - if test -d /usr/nec ;then
  28542. - lt_prog_compiler_pic_F77='-Kconform_pic'
  28543. - lt_prog_compiler_static_F77='-Bstatic'
  28544. - fi
  28545. - ;;
  28546. -
  28547. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28548. - lt_prog_compiler_wl_F77='-Wl,'
  28549. - lt_prog_compiler_pic_F77='-KPIC'
  28550. - lt_prog_compiler_static_F77='-Bstatic'
  28551. - ;;
  28552. -
  28553. - unicos*)
  28554. - lt_prog_compiler_wl_F77='-Wl,'
  28555. - lt_prog_compiler_can_build_shared_F77=no
  28556. - ;;
  28557. -
  28558. - uts4*)
  28559. - lt_prog_compiler_pic_F77='-pic'
  28560. - lt_prog_compiler_static_F77='-Bstatic'
  28561. - ;;
  28562. -
  28563. - *)
  28564. - lt_prog_compiler_can_build_shared_F77=no
  28565. - ;;
  28566. - esac
  28567. - fi
  28568. -
  28569. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  28570. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  28571. -
  28572. -#
  28573. -# Check to make sure the PIC flag actually works.
  28574. -#
  28575. -if test -n "$lt_prog_compiler_pic_F77"; then
  28576. -
  28577. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  28578. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  28579. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  28580. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28581. -else
  28582. - lt_cv_prog_compiler_pic_works_F77=no
  28583. - ac_outfile=conftest.$ac_objext
  28584. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28585. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  28586. - # Insert the option either (1) after the last *FLAGS variable, or
  28587. - # (2) before a word containing "conftest.", or (3) at the end.
  28588. - # Note that $ac_compile itself does not contain backslashes and begins
  28589. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28590. - # The option is referenced via a variable to avoid confusing sed.
  28591. - lt_compile=`echo "$ac_compile" | $SED \
  28592. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28593. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28594. - -e 's:$: $lt_compiler_flag:'`
  28595. - (eval echo "\"\$as_me:14389: $lt_compile\"" >&5)
  28596. - (eval "$lt_compile" 2>conftest.err)
  28597. - ac_status=$?
  28598. - cat conftest.err >&5
  28599. - echo "$as_me:14393: \$? = $ac_status" >&5
  28600. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28601. - # The compiler can only warn and ignore the option if not recognized
  28602. - # So say no if there are warnings other than the usual output.
  28603. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28604. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28605. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28606. - lt_cv_prog_compiler_pic_works_F77=yes
  28607. - fi
  28608. - fi
  28609. - $rm conftest*
  28610. -
  28611. -fi
  28612. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  28613. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  28614. -
  28615. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  28616. - case $lt_prog_compiler_pic_F77 in
  28617. - "" | " "*) ;;
  28618. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  28619. - esac
  28620. -else
  28621. - lt_prog_compiler_pic_F77=
  28622. - lt_prog_compiler_can_build_shared_F77=no
  28623. -fi
  28624. -
  28625. -fi
  28626. -case $host_os in
  28627. - # For platforms which do not support PIC, -DPIC is meaningless:
  28628. - *djgpp*)
  28629. - lt_prog_compiler_pic_F77=
  28630. - ;;
  28631. - *)
  28632. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  28633. - ;;
  28634. -esac
  28635. -
  28636. -#
  28637. -# Check to make sure the static flag actually works.
  28638. -#
  28639. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  28640. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28641. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  28642. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  28643. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28644. -else
  28645. - lt_cv_prog_compiler_static_works_F77=no
  28646. - save_LDFLAGS="$LDFLAGS"
  28647. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28648. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28649. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28650. - # The linker can only warn and ignore the option if not recognized
  28651. - # So say no if there are warnings
  28652. - if test -s conftest.err; then
  28653. - # Append any errors to the config.log.
  28654. - cat conftest.err 1>&5
  28655. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28656. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28657. - if diff conftest.exp conftest.er2 >/dev/null; then
  28658. - lt_cv_prog_compiler_static_works_F77=yes
  28659. - fi
  28660. - else
  28661. - lt_cv_prog_compiler_static_works_F77=yes
  28662. - fi
  28663. - fi
  28664. - $rm -r conftest*
  28665. - LDFLAGS="$save_LDFLAGS"
  28666. -
  28667. -fi
  28668. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  28669. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  28670. -
  28671. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  28672. - :
  28673. -else
  28674. - lt_prog_compiler_static_F77=
  28675. -fi
  28676. -
  28677. -
  28678. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28679. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  28680. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  28681. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28682. -else
  28683. - lt_cv_prog_compiler_c_o_F77=no
  28684. - $rm -r conftest 2>/dev/null
  28685. - mkdir conftest
  28686. - cd conftest
  28687. - mkdir out
  28688. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28689. -
  28690. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  28691. - # Insert the option either (1) after the last *FLAGS variable, or
  28692. - # (2) before a word containing "conftest.", or (3) at the end.
  28693. - # Note that $ac_compile itself does not contain backslashes and begins
  28694. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28695. - lt_compile=`echo "$ac_compile" | $SED \
  28696. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28697. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28698. - -e 's:$: $lt_compiler_flag:'`
  28699. - (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
  28700. - (eval "$lt_compile" 2>out/conftest.err)
  28701. - ac_status=$?
  28702. - cat out/conftest.err >&5
  28703. - echo "$as_me:14497: \$? = $ac_status" >&5
  28704. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28705. - then
  28706. - # The compiler can only warn and ignore the option if not recognized
  28707. - # So say no if there are warnings
  28708. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28709. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28710. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28711. - lt_cv_prog_compiler_c_o_F77=yes
  28712. - fi
  28713. - fi
  28714. - chmod u+w . 2>&5
  28715. - $rm conftest*
  28716. - # SGI C++ compiler will create directory out/ii_files/ for
  28717. - # template instantiation
  28718. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  28719. - $rm out/* && rmdir out
  28720. - cd ..
  28721. - rmdir conftest
  28722. - $rm conftest*
  28723. -
  28724. -fi
  28725. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  28726. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  28727. -
  28728. -
  28729. -hard_links="nottested"
  28730. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  28731. - # do not overwrite the value of need_locks provided by the user
  28732. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  28733. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  28734. - hard_links=yes
  28735. - $rm conftest*
  28736. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28737. - touch conftest.a
  28738. - ln conftest.a conftest.b 2>&5 || hard_links=no
  28739. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28740. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  28741. -echo "${ECHO_T}$hard_links" >&6; }
  28742. - if test "$hard_links" = no; then
  28743. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28744. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28745. - need_locks=warn
  28746. - fi
  28747. -else
  28748. - need_locks=no
  28749. -fi
  28750. -
  28751. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28752. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  28753. -
  28754. - runpath_var=
  28755. - allow_undefined_flag_F77=
  28756. - enable_shared_with_static_runtimes_F77=no
  28757. - archive_cmds_F77=
  28758. - archive_expsym_cmds_F77=
  28759. - old_archive_From_new_cmds_F77=
  28760. - old_archive_from_expsyms_cmds_F77=
  28761. - export_dynamic_flag_spec_F77=
  28762. - whole_archive_flag_spec_F77=
  28763. - thread_safe_flag_spec_F77=
  28764. - hardcode_libdir_flag_spec_F77=
  28765. - hardcode_libdir_flag_spec_ld_F77=
  28766. - hardcode_libdir_separator_F77=
  28767. - hardcode_direct_F77=no
  28768. - hardcode_minus_L_F77=no
  28769. - hardcode_shlibpath_var_F77=unsupported
  28770. - link_all_deplibs_F77=unknown
  28771. - hardcode_automatic_F77=no
  28772. - module_cmds_F77=
  28773. - module_expsym_cmds_F77=
  28774. - always_export_symbols_F77=no
  28775. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28776. - # include_expsyms should be a list of space-separated symbols to be *always*
  28777. - # included in the symbol list
  28778. - include_expsyms_F77=
  28779. - # exclude_expsyms can be an extended regexp of symbols to exclude
  28780. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  28781. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  28782. - # as well as any symbol that contains `d'.
  28783. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  28784. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  28785. - # platforms (ab)use it in PIC code, but their linkers get confused if
  28786. - # the symbol is explicitly referenced. Since portable code cannot
  28787. - # rely on this symbol name, it's probably fine to never include it in
  28788. - # preloaded symbol tables.
  28789. - # Exclude shared library initialization/finalization symbols.
  28790. - extract_expsyms_cmds=
  28791. - # Just being paranoid about ensuring that cc_basename is set.
  28792. - for cc_temp in $compiler""; do
  28793. - case $cc_temp in
  28794. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28795. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28796. - \-*) ;;
  28797. - *) break;;
  28798. - esac
  28799. -done
  28800. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28801. -
  28802. - case $host_os in
  28803. - cygwin* | mingw* | pw32*)
  28804. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  28805. - # When not using gcc, we currently assume that we are using
  28806. - # Microsoft Visual C++.
  28807. - if test "$GCC" != yes; then
  28808. - with_gnu_ld=no
  28809. - fi
  28810. - ;;
  28811. - interix*)
  28812. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  28813. - with_gnu_ld=yes
  28814. - ;;
  28815. - openbsd*)
  28816. - with_gnu_ld=no
  28817. - ;;
  28818. - esac
  28819. -
  28820. - ld_shlibs_F77=yes
  28821. - if test "$with_gnu_ld" = yes; then
  28822. - # If archive_cmds runs LD, not CC, wlarc should be empty
  28823. - wlarc='${wl}'
  28824. -
  28825. - # Set some defaults for GNU ld with shared library support. These
  28826. - # are reset later if shared libraries are not supported. Putting them
  28827. - # here allows them to be overridden if necessary.
  28828. - runpath_var=LD_RUN_PATH
  28829. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  28830. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  28831. - # ancient GNU ld didn't support --whole-archive et. al.
  28832. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  28833. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28834. - else
  28835. - whole_archive_flag_spec_F77=
  28836. - fi
  28837. - supports_anon_versioning=no
  28838. - case `$LD -v 2>/dev/null` in
  28839. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  28840. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  28841. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  28842. - *\ 2.11.*) ;; # other 2.11 versions
  28843. - *) supports_anon_versioning=yes ;;
  28844. - esac
  28845. -
  28846. - # See if GNU ld supports shared libraries.
  28847. - case $host_os in
  28848. - aix[3-9]*)
  28849. - # On AIX/PPC, the GNU linker is very broken
  28850. - if test "$host_cpu" != ia64; then
  28851. - ld_shlibs_F77=no
  28852. - cat <<EOF 1>&2
  28853. -
  28854. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  28855. -*** to be unable to reliably create shared libraries on AIX.
  28856. -*** Therefore, libtool is disabling shared libraries support. If you
  28857. -*** really care for shared libraries, you may want to modify your PATH
  28858. -*** so that a non-GNU linker is found, and then restart.
  28859. -
  28860. -EOF
  28861. - fi
  28862. - ;;
  28863. -
  28864. - amigaos*)
  28865. - 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)'
  28866. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28867. - hardcode_minus_L_F77=yes
  28868. -
  28869. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  28870. - # that the semantics of dynamic libraries on AmigaOS, at least up
  28871. - # to version 4, is to share data among multiple programs linked
  28872. - # with the same dynamic library. Since this doesn't match the
  28873. - # behavior of shared libraries on other platforms, we can't use
  28874. - # them.
  28875. - ld_shlibs_F77=no
  28876. - ;;
  28877. -
  28878. - beos*)
  28879. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28880. - allow_undefined_flag_F77=unsupported
  28881. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  28882. - # support --undefined. This deserves some investigation. FIXME
  28883. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28884. - else
  28885. - ld_shlibs_F77=no
  28886. - fi
  28887. - ;;
  28888. -
  28889. - cygwin* | mingw* | pw32*)
  28890. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  28891. - # as there is no search path for DLLs.
  28892. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28893. - allow_undefined_flag_F77=unsupported
  28894. - always_export_symbols_F77=no
  28895. - enable_shared_with_static_runtimes_F77=yes
  28896. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  28897. -
  28898. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  28899. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  28900. - # If the export-symbols file already is a .def file (1st line
  28901. - # is EXPORTS), use it as is; otherwise, prepend...
  28902. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  28903. - cp $export_symbols $output_objdir/$soname.def;
  28904. - else
  28905. - echo EXPORTS > $output_objdir/$soname.def;
  28906. - cat $export_symbols >> $output_objdir/$soname.def;
  28907. - fi~
  28908. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  28909. - else
  28910. - ld_shlibs_F77=no
  28911. - fi
  28912. - ;;
  28913. -
  28914. - interix[3-9]*)
  28915. - hardcode_direct_F77=no
  28916. - hardcode_shlibpath_var_F77=no
  28917. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  28918. - export_dynamic_flag_spec_F77='${wl}-E'
  28919. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  28920. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  28921. - # default) and relocated if they conflict, which is a slow very memory
  28922. - # consuming and fragmenting process. To avoid this, we pick a random,
  28923. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  28924. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  28925. - 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'
  28926. - 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'
  28927. - ;;
  28928. -
  28929. - gnu* | linux* | k*bsd*-gnu)
  28930. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28931. - tmp_addflag=
  28932. - case $cc_basename,$host_cpu in
  28933. - pgcc*) # Portland Group C compiler
  28934. - 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'
  28935. - tmp_addflag=' $pic_flag'
  28936. - ;;
  28937. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  28938. - 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'
  28939. - tmp_addflag=' $pic_flag -Mnomain' ;;
  28940. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  28941. - tmp_addflag=' -i_dynamic' ;;
  28942. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  28943. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  28944. - ifc* | ifort*) # Intel Fortran compiler
  28945. - tmp_addflag=' -nofor_main' ;;
  28946. - esac
  28947. - case `$CC -V 2>&1 | sed 5q` in
  28948. - *Sun\ C*) # Sun C 5.9
  28949. - 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'
  28950. - tmp_sharedflag='-G' ;;
  28951. - *Sun\ F*) # Sun Fortran 8.3
  28952. - tmp_sharedflag='-G' ;;
  28953. - *)
  28954. - tmp_sharedflag='-shared' ;;
  28955. - esac
  28956. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28957. -
  28958. - if test $supports_anon_versioning = yes; then
  28959. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  28960. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  28961. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  28962. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  28963. - fi
  28964. - link_all_deplibs_F77=no
  28965. - else
  28966. - ld_shlibs_F77=no
  28967. - fi
  28968. - ;;
  28969. -
  28970. - netbsd* | netbsdelf*-gnu)
  28971. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28972. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  28973. - wlarc=
  28974. - else
  28975. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28976. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28977. - fi
  28978. - ;;
  28979. -
  28980. - solaris*)
  28981. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  28982. - ld_shlibs_F77=no
  28983. - cat <<EOF 1>&2
  28984. -
  28985. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  28986. -*** create shared libraries on Solaris systems. Therefore, libtool
  28987. -*** is disabling shared libraries support. We urge you to upgrade GNU
  28988. -*** binutils to release 2.9.1 or newer. Another option is to modify
  28989. -*** your PATH or compiler configuration so that the native linker is
  28990. -*** used, and then restart.
  28991. -
  28992. -EOF
  28993. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28994. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28995. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28996. - else
  28997. - ld_shlibs_F77=no
  28998. - fi
  28999. - ;;
  29000. -
  29001. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  29002. - case `$LD -v 2>&1` in
  29003. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  29004. - ld_shlibs_F77=no
  29005. - cat <<_LT_EOF 1>&2
  29006. -
  29007. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  29008. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  29009. -*** is disabling shared libraries support. We urge you to upgrade GNU
  29010. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  29011. -*** your PATH or compiler configuration so that the native linker is
  29012. -*** used, and then restart.
  29013. -
  29014. -_LT_EOF
  29015. - ;;
  29016. - *)
  29017. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29018. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  29019. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  29020. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  29021. - else
  29022. - ld_shlibs_F77=no
  29023. - fi
  29024. - ;;
  29025. - esac
  29026. - ;;
  29027. -
  29028. - sunos4*)
  29029. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29030. - wlarc=
  29031. - hardcode_direct_F77=yes
  29032. - hardcode_shlibpath_var_F77=no
  29033. - ;;
  29034. -
  29035. - *)
  29036. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29037. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29038. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29039. - else
  29040. - ld_shlibs_F77=no
  29041. - fi
  29042. - ;;
  29043. - esac
  29044. -
  29045. - if test "$ld_shlibs_F77" = no; then
  29046. - runpath_var=
  29047. - hardcode_libdir_flag_spec_F77=
  29048. - export_dynamic_flag_spec_F77=
  29049. - whole_archive_flag_spec_F77=
  29050. - fi
  29051. - else
  29052. - # PORTME fill in a description of your system's linker (not GNU ld)
  29053. - case $host_os in
  29054. - aix3*)
  29055. - allow_undefined_flag_F77=unsupported
  29056. - always_export_symbols_F77=yes
  29057. - 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'
  29058. - # Note: this linker hardcodes the directories in LIBPATH if there
  29059. - # are no directories specified by -L.
  29060. - hardcode_minus_L_F77=yes
  29061. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  29062. - # Neither direct hardcoding nor static linking is supported with a
  29063. - # broken collect2.
  29064. - hardcode_direct_F77=unsupported
  29065. - fi
  29066. - ;;
  29067. -
  29068. - aix[4-9]*)
  29069. - if test "$host_cpu" = ia64; then
  29070. - # On IA64, the linker does run time linking by default, so we don't
  29071. - # have to do anything special.
  29072. - aix_use_runtimelinking=no
  29073. - exp_sym_flag='-Bexport'
  29074. - no_entry_flag=""
  29075. - else
  29076. - # If we're using GNU nm, then we don't want the "-C" option.
  29077. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29078. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  29079. - 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'
  29080. - else
  29081. - 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'
  29082. - fi
  29083. - aix_use_runtimelinking=no
  29084. -
  29085. - # Test if we are trying to use run time linking or normal
  29086. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29087. - # need to do runtime linking.
  29088. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  29089. - for ld_flag in $LDFLAGS; do
  29090. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  29091. - aix_use_runtimelinking=yes
  29092. - break
  29093. - fi
  29094. - done
  29095. - ;;
  29096. - esac
  29097. -
  29098. - exp_sym_flag='-bexport'
  29099. - no_entry_flag='-bnoentry'
  29100. - fi
  29101. -
  29102. - # When large executables or shared objects are built, AIX ld can
  29103. - # have problems creating the table of contents. If linking a library
  29104. - # or program results in "error TOC overflow" add -mminimal-toc to
  29105. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29106. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29107. -
  29108. - archive_cmds_F77=''
  29109. - hardcode_direct_F77=yes
  29110. - hardcode_libdir_separator_F77=':'
  29111. - link_all_deplibs_F77=yes
  29112. -
  29113. - if test "$GCC" = yes; then
  29114. - case $host_os in aix4.[012]|aix4.[012].*)
  29115. - # We only want to do this on AIX 4.2 and lower, the check
  29116. - # below for broken collect2 doesn't work under 4.3+
  29117. - collect2name=`${CC} -print-prog-name=collect2`
  29118. - if test -f "$collect2name" && \
  29119. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  29120. - then
  29121. - # We have reworked collect2
  29122. - :
  29123. - else
  29124. - # We have old collect2
  29125. - hardcode_direct_F77=unsupported
  29126. - # It fails to find uninstalled libraries when the uninstalled
  29127. - # path is not listed in the libpath. Setting hardcode_minus_L
  29128. - # to unsupported forces relinking
  29129. - hardcode_minus_L_F77=yes
  29130. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29131. - hardcode_libdir_separator_F77=
  29132. - fi
  29133. - ;;
  29134. - esac
  29135. - shared_flag='-shared'
  29136. - if test "$aix_use_runtimelinking" = yes; then
  29137. - shared_flag="$shared_flag "'${wl}-G'
  29138. - fi
  29139. - else
  29140. - # not using gcc
  29141. - if test "$host_cpu" = ia64; then
  29142. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29143. - # chokes on -Wl,-G. The following line is correct:
  29144. - shared_flag='-G'
  29145. - else
  29146. - if test "$aix_use_runtimelinking" = yes; then
  29147. - shared_flag='${wl}-G'
  29148. - else
  29149. - shared_flag='${wl}-bM:SRE'
  29150. - fi
  29151. - fi
  29152. - fi
  29153. -
  29154. - # It seems that -bexpall does not export symbols beginning with
  29155. - # underscore (_), so it is better to generate a list of symbols to export.
  29156. - always_export_symbols_F77=yes
  29157. - if test "$aix_use_runtimelinking" = yes; then
  29158. - # Warning - without using the other runtime loading flags (-brtl),
  29159. - # -berok will link without error, but may produce a broken library.
  29160. - allow_undefined_flag_F77='-berok'
  29161. - # Determine the default libpath from the value encoded in an empty executable.
  29162. - cat >conftest.$ac_ext <<_ACEOF
  29163. - program main
  29164. -
  29165. - end
  29166. -_ACEOF
  29167. -rm -f conftest.$ac_objext conftest$ac_exeext
  29168. -if { (ac_try="$ac_link"
  29169. -case "(($ac_try" in
  29170. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29171. - *) ac_try_echo=$ac_try;;
  29172. -esac
  29173. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29174. - (eval "$ac_link") 2>conftest.er1
  29175. - ac_status=$?
  29176. - grep -v '^ *+' conftest.er1 >conftest.err
  29177. - rm -f conftest.er1
  29178. - cat conftest.err >&5
  29179. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29180. - (exit $ac_status); } && {
  29181. - test -z "$ac_f77_werror_flag" ||
  29182. - test ! -s conftest.err
  29183. - } && test -s conftest$ac_exeext &&
  29184. - $as_test_x conftest$ac_exeext; then
  29185. -
  29186. -lt_aix_libpath_sed='
  29187. - /Import File Strings/,/^$/ {
  29188. - /^0/ {
  29189. - s/^0 *\(.*\)$/\1/
  29190. - p
  29191. - }
  29192. - }'
  29193. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29194. -# Check for a 64-bit object if we didn't find anything.
  29195. -if test -z "$aix_libpath"; then
  29196. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29197. -fi
  29198. -else
  29199. - echo "$as_me: failed program was:" >&5
  29200. -sed 's/^/| /' conftest.$ac_ext >&5
  29201. -
  29202. -
  29203. -fi
  29204. -
  29205. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29206. - conftest$ac_exeext conftest.$ac_ext
  29207. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29208. -
  29209. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  29210. - 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"
  29211. - else
  29212. - if test "$host_cpu" = ia64; then
  29213. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  29214. - allow_undefined_flag_F77="-z nodefs"
  29215. - 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"
  29216. - else
  29217. - # Determine the default libpath from the value encoded in an empty executable.
  29218. - cat >conftest.$ac_ext <<_ACEOF
  29219. - program main
  29220. -
  29221. - end
  29222. -_ACEOF
  29223. -rm -f conftest.$ac_objext conftest$ac_exeext
  29224. -if { (ac_try="$ac_link"
  29225. -case "(($ac_try" in
  29226. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29227. - *) ac_try_echo=$ac_try;;
  29228. -esac
  29229. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29230. - (eval "$ac_link") 2>conftest.er1
  29231. - ac_status=$?
  29232. - grep -v '^ *+' conftest.er1 >conftest.err
  29233. - rm -f conftest.er1
  29234. - cat conftest.err >&5
  29235. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29236. - (exit $ac_status); } && {
  29237. - test -z "$ac_f77_werror_flag" ||
  29238. - test ! -s conftest.err
  29239. - } && test -s conftest$ac_exeext &&
  29240. - $as_test_x conftest$ac_exeext; then
  29241. -
  29242. -lt_aix_libpath_sed='
  29243. - /Import File Strings/,/^$/ {
  29244. - /^0/ {
  29245. - s/^0 *\(.*\)$/\1/
  29246. - p
  29247. - }
  29248. - }'
  29249. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29250. -# Check for a 64-bit object if we didn't find anything.
  29251. -if test -z "$aix_libpath"; then
  29252. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29253. -fi
  29254. -else
  29255. - echo "$as_me: failed program was:" >&5
  29256. -sed 's/^/| /' conftest.$ac_ext >&5
  29257. -
  29258. -
  29259. -fi
  29260. -
  29261. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29262. - conftest$ac_exeext conftest.$ac_ext
  29263. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29264. -
  29265. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  29266. - # Warning - without using the other run time loading flags,
  29267. - # -berok will link without error, but may produce a broken library.
  29268. - no_undefined_flag_F77=' ${wl}-bernotok'
  29269. - allow_undefined_flag_F77=' ${wl}-berok'
  29270. - # Exported symbols can be pulled into shared objects from archives
  29271. - whole_archive_flag_spec_F77='$convenience'
  29272. - archive_cmds_need_lc_F77=yes
  29273. - # This is similar to how AIX traditionally builds its shared libraries.
  29274. - 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'
  29275. - fi
  29276. - fi
  29277. - ;;
  29278. -
  29279. - amigaos*)
  29280. - 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)'
  29281. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29282. - hardcode_minus_L_F77=yes
  29283. - # see comment about different semantics on the GNU ld section
  29284. - ld_shlibs_F77=no
  29285. - ;;
  29286. -
  29287. - bsdi[45]*)
  29288. - export_dynamic_flag_spec_F77=-rdynamic
  29289. - ;;
  29290. -
  29291. - cygwin* | mingw* | pw32*)
  29292. - # When not using gcc, we currently assume that we are using
  29293. - # Microsoft Visual C++.
  29294. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  29295. - # no search path for DLLs.
  29296. - hardcode_libdir_flag_spec_F77=' '
  29297. - allow_undefined_flag_F77=unsupported
  29298. - # Tell ltmain to make .lib files, not .a files.
  29299. - libext=lib
  29300. - # Tell ltmain to make .dll files, not .so files.
  29301. - shrext_cmds=".dll"
  29302. - # FIXME: Setting linknames here is a bad hack.
  29303. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  29304. - # The linker will automatically build a .lib file if we build a DLL.
  29305. - old_archive_From_new_cmds_F77='true'
  29306. - # FIXME: Should let the user specify the lib program.
  29307. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  29308. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  29309. - enable_shared_with_static_runtimes_F77=yes
  29310. - ;;
  29311. -
  29312. - darwin* | rhapsody*)
  29313. - case $host_os in
  29314. - rhapsody* | darwin1.[012])
  29315. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  29316. - ;;
  29317. - *) # Darwin 1.3 on
  29318. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  29319. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29320. - else
  29321. - case ${MACOSX_DEPLOYMENT_TARGET} in
  29322. - 10.[012])
  29323. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29324. - ;;
  29325. - 10.*)
  29326. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  29327. - ;;
  29328. - esac
  29329. - fi
  29330. - ;;
  29331. - esac
  29332. - archive_cmds_need_lc_F77=no
  29333. - hardcode_direct_F77=no
  29334. - hardcode_automatic_F77=yes
  29335. - hardcode_shlibpath_var_F77=unsupported
  29336. - whole_archive_flag_spec_F77=''
  29337. - link_all_deplibs_F77=yes
  29338. - if test "$GCC" = yes ; then
  29339. - output_verbose_link_cmd='echo'
  29340. - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  29341. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  29342. - archive_expsym_cmds_F77="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}"
  29343. - module_expsym_cmds_F77="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}"
  29344. - else
  29345. - case $cc_basename in
  29346. - xlc*)
  29347. - output_verbose_link_cmd='echo'
  29348. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  29349. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  29350. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  29351. - 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}'
  29352. - 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}'
  29353. - ;;
  29354. - *)
  29355. - ld_shlibs_F77=no
  29356. - ;;
  29357. - esac
  29358. - fi
  29359. - ;;
  29360. -
  29361. - dgux*)
  29362. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29363. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29364. - hardcode_shlibpath_var_F77=no
  29365. - ;;
  29366. -
  29367. - freebsd1*)
  29368. - ld_shlibs_F77=no
  29369. - ;;
  29370. -
  29371. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  29372. - # support. Future versions do this automatically, but an explicit c++rt0.o
  29373. - # does not break anything, and helps significantly (at the cost of a little
  29374. - # extra space).
  29375. - freebsd2.2*)
  29376. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  29377. - hardcode_libdir_flag_spec_F77='-R$libdir'
  29378. - hardcode_direct_F77=yes
  29379. - hardcode_shlibpath_var_F77=no
  29380. - ;;
  29381. -
  29382. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  29383. - freebsd2*)
  29384. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29385. - hardcode_direct_F77=yes
  29386. - hardcode_minus_L_F77=yes
  29387. - hardcode_shlibpath_var_F77=no
  29388. - ;;
  29389. -
  29390. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  29391. - freebsd* | dragonfly*)
  29392. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  29393. - hardcode_libdir_flag_spec_F77='-R$libdir'
  29394. - hardcode_direct_F77=yes
  29395. - hardcode_shlibpath_var_F77=no
  29396. - ;;
  29397. -
  29398. - hpux9*)
  29399. - if test "$GCC" = yes; then
  29400. - 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'
  29401. - else
  29402. - 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'
  29403. - fi
  29404. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  29405. - hardcode_libdir_separator_F77=:
  29406. - hardcode_direct_F77=yes
  29407. -
  29408. - # hardcode_minus_L: Not really in the search PATH,
  29409. - # but as the default location of the library.
  29410. - hardcode_minus_L_F77=yes
  29411. - export_dynamic_flag_spec_F77='${wl}-E'
  29412. - ;;
  29413. -
  29414. - hpux10*)
  29415. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29416. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29417. - else
  29418. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  29419. - fi
  29420. - if test "$with_gnu_ld" = no; then
  29421. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  29422. - hardcode_libdir_separator_F77=:
  29423. -
  29424. - hardcode_direct_F77=yes
  29425. - export_dynamic_flag_spec_F77='${wl}-E'
  29426. -
  29427. - # hardcode_minus_L: Not really in the search PATH,
  29428. - # but as the default location of the library.
  29429. - hardcode_minus_L_F77=yes
  29430. - fi
  29431. - ;;
  29432. -
  29433. - hpux11*)
  29434. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29435. - case $host_cpu in
  29436. - hppa*64*)
  29437. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29438. - ;;
  29439. - ia64*)
  29440. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29441. - ;;
  29442. - *)
  29443. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29444. - ;;
  29445. - esac
  29446. - else
  29447. - case $host_cpu in
  29448. - hppa*64*)
  29449. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29450. - ;;
  29451. - ia64*)
  29452. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29453. - ;;
  29454. - *)
  29455. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29456. - ;;
  29457. - esac
  29458. - fi
  29459. - if test "$with_gnu_ld" = no; then
  29460. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  29461. - hardcode_libdir_separator_F77=:
  29462. -
  29463. - case $host_cpu in
  29464. - hppa*64*|ia64*)
  29465. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  29466. - hardcode_direct_F77=no
  29467. - hardcode_shlibpath_var_F77=no
  29468. - ;;
  29469. - *)
  29470. - hardcode_direct_F77=yes
  29471. - export_dynamic_flag_spec_F77='${wl}-E'
  29472. -
  29473. - # hardcode_minus_L: Not really in the search PATH,
  29474. - # but as the default location of the library.
  29475. - hardcode_minus_L_F77=yes
  29476. - ;;
  29477. - esac
  29478. - fi
  29479. - ;;
  29480. -
  29481. - irix5* | irix6* | nonstopux*)
  29482. - if test "$GCC" = yes; then
  29483. - 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'
  29484. - else
  29485. - 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'
  29486. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  29487. - fi
  29488. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  29489. - hardcode_libdir_separator_F77=:
  29490. - link_all_deplibs_F77=yes
  29491. - ;;
  29492. -
  29493. - netbsd* | netbsdelf*-gnu)
  29494. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29495. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  29496. - else
  29497. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  29498. - fi
  29499. - hardcode_libdir_flag_spec_F77='-R$libdir'
  29500. - hardcode_direct_F77=yes
  29501. - hardcode_shlibpath_var_F77=no
  29502. - ;;
  29503. -
  29504. - newsos6)
  29505. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29506. - hardcode_direct_F77=yes
  29507. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  29508. - hardcode_libdir_separator_F77=:
  29509. - hardcode_shlibpath_var_F77=no
  29510. - ;;
  29511. -
  29512. - openbsd*)
  29513. - if test -f /usr/libexec/ld.so; then
  29514. - hardcode_direct_F77=yes
  29515. - hardcode_shlibpath_var_F77=no
  29516. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29517. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29518. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  29519. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  29520. - export_dynamic_flag_spec_F77='${wl}-E'
  29521. - else
  29522. - case $host_os in
  29523. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  29524. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29525. - hardcode_libdir_flag_spec_F77='-R$libdir'
  29526. - ;;
  29527. - *)
  29528. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29529. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  29530. - ;;
  29531. - esac
  29532. - fi
  29533. - else
  29534. - ld_shlibs_F77=no
  29535. - fi
  29536. - ;;
  29537. -
  29538. - os2*)
  29539. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29540. - hardcode_minus_L_F77=yes
  29541. - allow_undefined_flag_F77=unsupported
  29542. - 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'
  29543. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  29544. - ;;
  29545. -
  29546. - osf3*)
  29547. - if test "$GCC" = yes; then
  29548. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  29549. - 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'
  29550. - else
  29551. - allow_undefined_flag_F77=' -expect_unresolved \*'
  29552. - 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'
  29553. - fi
  29554. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  29555. - hardcode_libdir_separator_F77=:
  29556. - ;;
  29557. -
  29558. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  29559. - if test "$GCC" = yes; then
  29560. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  29561. - 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'
  29562. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  29563. - else
  29564. - allow_undefined_flag_F77=' -expect_unresolved \*'
  29565. - 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'
  29566. - 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~
  29567. - $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'
  29568. -
  29569. - # Both c and cxx compiler support -rpath directly
  29570. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  29571. - fi
  29572. - hardcode_libdir_separator_F77=:
  29573. - ;;
  29574. -
  29575. - solaris*)
  29576. - no_undefined_flag_F77=' -z text'
  29577. - if test "$GCC" = yes; then
  29578. - wlarc='${wl}'
  29579. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29580. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29581. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  29582. - else
  29583. - wlarc=''
  29584. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29585. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29586. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  29587. - fi
  29588. - hardcode_libdir_flag_spec_F77='-R$libdir'
  29589. - hardcode_shlibpath_var_F77=no
  29590. - case $host_os in
  29591. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29592. - *)
  29593. - # The compiler driver will combine and reorder linker options,
  29594. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  29595. - # but is careful enough not to reorder.
  29596. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  29597. - if test "$GCC" = yes; then
  29598. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29599. - else
  29600. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  29601. - fi
  29602. - ;;
  29603. - esac
  29604. - link_all_deplibs_F77=yes
  29605. - ;;
  29606. -
  29607. - sunos4*)
  29608. - if test "x$host_vendor" = xsequent; then
  29609. - # Use $CC to link under sequent, because it throws in some extra .o
  29610. - # files that make .init and .fini sections work.
  29611. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29612. - else
  29613. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  29614. - fi
  29615. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29616. - hardcode_direct_F77=yes
  29617. - hardcode_minus_L_F77=yes
  29618. - hardcode_shlibpath_var_F77=no
  29619. - ;;
  29620. -
  29621. - sysv4)
  29622. - case $host_vendor in
  29623. - sni)
  29624. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29625. - hardcode_direct_F77=yes # is this really true???
  29626. - ;;
  29627. - siemens)
  29628. - ## LD is ld it makes a PLAMLIB
  29629. - ## CC just makes a GrossModule.
  29630. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  29631. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  29632. - hardcode_direct_F77=no
  29633. - ;;
  29634. - motorola)
  29635. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29636. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  29637. - ;;
  29638. - esac
  29639. - runpath_var='LD_RUN_PATH'
  29640. - hardcode_shlibpath_var_F77=no
  29641. - ;;
  29642. -
  29643. - sysv4.3*)
  29644. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29645. - hardcode_shlibpath_var_F77=no
  29646. - export_dynamic_flag_spec_F77='-Bexport'
  29647. - ;;
  29648. -
  29649. - sysv4*MP*)
  29650. - if test -d /usr/nec; then
  29651. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29652. - hardcode_shlibpath_var_F77=no
  29653. - runpath_var=LD_RUN_PATH
  29654. - hardcode_runpath_var=yes
  29655. - ld_shlibs_F77=yes
  29656. - fi
  29657. - ;;
  29658. -
  29659. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29660. - no_undefined_flag_F77='${wl}-z,text'
  29661. - archive_cmds_need_lc_F77=no
  29662. - hardcode_shlibpath_var_F77=no
  29663. - runpath_var='LD_RUN_PATH'
  29664. -
  29665. - if test "$GCC" = yes; then
  29666. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29667. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29668. - else
  29669. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29670. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29671. - fi
  29672. - ;;
  29673. -
  29674. - sysv5* | sco3.2v5* | sco5v6*)
  29675. - # Note: We can NOT use -z defs as we might desire, because we do not
  29676. - # link with -lc, and that would cause any symbols used from libc to
  29677. - # always be unresolved, which means just about no library would
  29678. - # ever link correctly. If we're not using GNU ld we use -z text
  29679. - # though, which does catch some bad symbols but isn't as heavy-handed
  29680. - # as -z defs.
  29681. - no_undefined_flag_F77='${wl}-z,text'
  29682. - allow_undefined_flag_F77='${wl}-z,nodefs'
  29683. - archive_cmds_need_lc_F77=no
  29684. - hardcode_shlibpath_var_F77=no
  29685. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  29686. - hardcode_libdir_separator_F77=':'
  29687. - link_all_deplibs_F77=yes
  29688. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  29689. - runpath_var='LD_RUN_PATH'
  29690. -
  29691. - if test "$GCC" = yes; then
  29692. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29693. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29694. - else
  29695. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29696. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29697. - fi
  29698. - ;;
  29699. -
  29700. - uts4*)
  29701. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29702. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29703. - hardcode_shlibpath_var_F77=no
  29704. - ;;
  29705. -
  29706. - *)
  29707. - ld_shlibs_F77=no
  29708. - ;;
  29709. - esac
  29710. - fi
  29711. -
  29712. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  29713. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  29714. -test "$ld_shlibs_F77" = no && can_build_shared=no
  29715. -
  29716. -#
  29717. -# Do we need to explicitly link libc?
  29718. -#
  29719. -case "x$archive_cmds_need_lc_F77" in
  29720. -x|xyes)
  29721. - # Assume -lc should be added
  29722. - archive_cmds_need_lc_F77=yes
  29723. -
  29724. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  29725. - case $archive_cmds_F77 in
  29726. - *'~'*)
  29727. - # FIXME: we may have to deal with multi-command sequences.
  29728. - ;;
  29729. - '$CC '*)
  29730. - # Test whether the compiler implicitly links with -lc since on some
  29731. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  29732. - # to ld, don't add -lc before -lgcc.
  29733. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  29734. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  29735. - $rm conftest*
  29736. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29737. -
  29738. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29739. - (eval $ac_compile) 2>&5
  29740. - ac_status=$?
  29741. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29742. - (exit $ac_status); } 2>conftest.err; then
  29743. - soname=conftest
  29744. - lib=conftest
  29745. - libobjs=conftest.$ac_objext
  29746. - deplibs=
  29747. - wl=$lt_prog_compiler_wl_F77
  29748. - pic_flag=$lt_prog_compiler_pic_F77
  29749. - compiler_flags=-v
  29750. - linker_flags=-v
  29751. - verstring=
  29752. - output_objdir=.
  29753. - libname=conftest
  29754. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  29755. - allow_undefined_flag_F77=
  29756. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  29757. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  29758. - ac_status=$?
  29759. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29760. - (exit $ac_status); }
  29761. - then
  29762. - archive_cmds_need_lc_F77=no
  29763. - else
  29764. - archive_cmds_need_lc_F77=yes
  29765. - fi
  29766. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  29767. - else
  29768. - cat conftest.err 1>&5
  29769. - fi
  29770. - $rm conftest*
  29771. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  29772. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  29773. - ;;
  29774. - esac
  29775. - fi
  29776. - ;;
  29777. -esac
  29778. -
  29779. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  29780. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  29781. -library_names_spec=
  29782. -libname_spec='lib$name'
  29783. -soname_spec=
  29784. -shrext_cmds=".so"
  29785. -postinstall_cmds=
  29786. -postuninstall_cmds=
  29787. -finish_cmds=
  29788. -finish_eval=
  29789. -shlibpath_var=
  29790. -shlibpath_overrides_runpath=unknown
  29791. -version_type=none
  29792. -dynamic_linker="$host_os ld.so"
  29793. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  29794. -
  29795. -need_lib_prefix=unknown
  29796. -hardcode_into_libs=no
  29797. -
  29798. -# when you set need_version to no, make sure it does not cause -set_version
  29799. -# flags to be left without arguments
  29800. -need_version=unknown
  29801. -
  29802. -case $host_os in
  29803. -aix3*)
  29804. - version_type=linux
  29805. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  29806. - shlibpath_var=LIBPATH
  29807. -
  29808. - # AIX 3 has no versioning support, so we append a major version to the name.
  29809. - soname_spec='${libname}${release}${shared_ext}$major'
  29810. - ;;
  29811. -
  29812. -aix[4-9]*)
  29813. - version_type=linux
  29814. - need_lib_prefix=no
  29815. - need_version=no
  29816. - hardcode_into_libs=yes
  29817. - if test "$host_cpu" = ia64; then
  29818. - # AIX 5 supports IA64
  29819. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  29820. - shlibpath_var=LD_LIBRARY_PATH
  29821. - else
  29822. - # With GCC up to 2.95.x, collect2 would create an import file
  29823. - # for dependence libraries. The import file would start with
  29824. - # the line `#! .'. This would cause the generated library to
  29825. - # depend on `.', always an invalid library. This was fixed in
  29826. - # development snapshots of GCC prior to 3.0.
  29827. - case $host_os in
  29828. - aix4 | aix4.[01] | aix4.[01].*)
  29829. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  29830. - echo ' yes '
  29831. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  29832. - :
  29833. - else
  29834. - can_build_shared=no
  29835. - fi
  29836. - ;;
  29837. - esac
  29838. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  29839. - # soname into executable. Probably we can add versioning support to
  29840. - # collect2, so additional links can be useful in future.
  29841. - if test "$aix_use_runtimelinking" = yes; then
  29842. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  29843. - # instead of lib<name>.a to let people know that these are not
  29844. - # typical AIX shared libraries.
  29845. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29846. - else
  29847. - # We preserve .a as extension for shared libraries through AIX4.2
  29848. - # and later when we are not doing run time linking.
  29849. - library_names_spec='${libname}${release}.a $libname.a'
  29850. - soname_spec='${libname}${release}${shared_ext}$major'
  29851. - fi
  29852. - shlibpath_var=LIBPATH
  29853. - fi
  29854. - ;;
  29855. -
  29856. -amigaos*)
  29857. - library_names_spec='$libname.ixlibrary $libname.a'
  29858. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  29859. - 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'
  29860. - ;;
  29861. -
  29862. -beos*)
  29863. - library_names_spec='${libname}${shared_ext}'
  29864. - dynamic_linker="$host_os ld.so"
  29865. - shlibpath_var=LIBRARY_PATH
  29866. - ;;
  29867. -
  29868. -bsdi[45]*)
  29869. - version_type=linux
  29870. - need_version=no
  29871. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29872. - soname_spec='${libname}${release}${shared_ext}$major'
  29873. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  29874. - shlibpath_var=LD_LIBRARY_PATH
  29875. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  29876. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  29877. - # the default ld.so.conf also contains /usr/contrib/lib and
  29878. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  29879. - # libtool to hard-code these into programs
  29880. - ;;
  29881. -
  29882. -cygwin* | mingw* | pw32*)
  29883. - version_type=windows
  29884. - shrext_cmds=".dll"
  29885. - need_version=no
  29886. - need_lib_prefix=no
  29887. -
  29888. - case $GCC,$host_os in
  29889. - yes,cygwin* | yes,mingw* | yes,pw32*)
  29890. - library_names_spec='$libname.dll.a'
  29891. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  29892. - postinstall_cmds='base_file=`basename \${file}`~
  29893. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  29894. - dldir=$destdir/`dirname \$dlpath`~
  29895. - test -d \$dldir || mkdir -p \$dldir~
  29896. - $install_prog $dir/$dlname \$dldir/$dlname~
  29897. - chmod a+x \$dldir/$dlname'
  29898. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  29899. - dlpath=$dir/\$dldll~
  29900. - $rm \$dlpath'
  29901. - shlibpath_overrides_runpath=yes
  29902. -
  29903. - case $host_os in
  29904. - cygwin*)
  29905. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  29906. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29907. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  29908. - ;;
  29909. - mingw*)
  29910. - # MinGW DLLs use traditional 'lib' prefix
  29911. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29912. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29913. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  29914. - # It is most probably a Windows format PATH printed by
  29915. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  29916. - # path with ; separators, and with drive letters. We can handle the
  29917. - # drive letters (cygwin fileutils understands them), so leave them,
  29918. - # especially as we might pass files found there to a mingw objdump,
  29919. - # which wouldn't understand a cygwinified path. Ahh.
  29920. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29921. - else
  29922. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29923. - fi
  29924. - ;;
  29925. - pw32*)
  29926. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  29927. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29928. - ;;
  29929. - esac
  29930. - ;;
  29931. -
  29932. - *)
  29933. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  29934. - ;;
  29935. - esac
  29936. - dynamic_linker='Win32 ld.exe'
  29937. - # FIXME: first we should search . and the directory the executable is in
  29938. - shlibpath_var=PATH
  29939. - ;;
  29940. -
  29941. -darwin* | rhapsody*)
  29942. - dynamic_linker="$host_os dyld"
  29943. - version_type=darwin
  29944. - need_lib_prefix=no
  29945. - need_version=no
  29946. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  29947. - soname_spec='${libname}${release}${major}$shared_ext'
  29948. - shlibpath_overrides_runpath=yes
  29949. - shlibpath_var=DYLD_LIBRARY_PATH
  29950. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  29951. -
  29952. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  29953. - ;;
  29954. -
  29955. -dgux*)
  29956. - version_type=linux
  29957. - need_lib_prefix=no
  29958. - need_version=no
  29959. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  29960. - soname_spec='${libname}${release}${shared_ext}$major'
  29961. - shlibpath_var=LD_LIBRARY_PATH
  29962. - ;;
  29963. -
  29964. -freebsd1*)
  29965. - dynamic_linker=no
  29966. - ;;
  29967. -
  29968. -freebsd* | dragonfly*)
  29969. - # DragonFly does not have aout. When/if they implement a new
  29970. - # versioning mechanism, adjust this.
  29971. - if test -x /usr/bin/objformat; then
  29972. - objformat=`/usr/bin/objformat`
  29973. - else
  29974. - case $host_os in
  29975. - freebsd[123]*) objformat=aout ;;
  29976. - *) objformat=elf ;;
  29977. - esac
  29978. - fi
  29979. - version_type=freebsd-$objformat
  29980. - case $version_type in
  29981. - freebsd-elf*)
  29982. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29983. - need_version=no
  29984. - need_lib_prefix=no
  29985. - ;;
  29986. - freebsd-*)
  29987. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  29988. - need_version=yes
  29989. - ;;
  29990. - esac
  29991. - shlibpath_var=LD_LIBRARY_PATH
  29992. - case $host_os in
  29993. - freebsd2*)
  29994. - shlibpath_overrides_runpath=yes
  29995. - ;;
  29996. - freebsd3.[01]* | freebsdelf3.[01]*)
  29997. - shlibpath_overrides_runpath=yes
  29998. - hardcode_into_libs=yes
  29999. - ;;
  30000. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  30001. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  30002. - shlibpath_overrides_runpath=no
  30003. - hardcode_into_libs=yes
  30004. - ;;
  30005. - *) # from 4.6 on, and DragonFly
  30006. - shlibpath_overrides_runpath=yes
  30007. - hardcode_into_libs=yes
  30008. - ;;
  30009. - esac
  30010. - ;;
  30011. -
  30012. -gnu*)
  30013. - version_type=linux
  30014. - need_lib_prefix=no
  30015. - need_version=no
  30016. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  30017. - soname_spec='${libname}${release}${shared_ext}$major'
  30018. - shlibpath_var=LD_LIBRARY_PATH
  30019. - hardcode_into_libs=yes
  30020. - ;;
  30021. -
  30022. -hpux9* | hpux10* | hpux11*)
  30023. - # Give a soname corresponding to the major version so that dld.sl refuses to
  30024. - # link against other versions.
  30025. - version_type=sunos
  30026. - need_lib_prefix=no
  30027. - need_version=no
  30028. - case $host_cpu in
  30029. - ia64*)
  30030. - shrext_cmds='.so'
  30031. - hardcode_into_libs=yes
  30032. - dynamic_linker="$host_os dld.so"
  30033. - shlibpath_var=LD_LIBRARY_PATH
  30034. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30035. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30036. - soname_spec='${libname}${release}${shared_ext}$major'
  30037. - if test "X$HPUX_IA64_MODE" = X32; then
  30038. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  30039. - else
  30040. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  30041. - fi
  30042. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30043. - ;;
  30044. - hppa*64*)
  30045. - shrext_cmds='.sl'
  30046. - hardcode_into_libs=yes
  30047. - dynamic_linker="$host_os dld.sl"
  30048. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  30049. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30051. - soname_spec='${libname}${release}${shared_ext}$major'
  30052. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  30053. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30054. - ;;
  30055. - *)
  30056. - shrext_cmds='.sl'
  30057. - dynamic_linker="$host_os dld.sl"
  30058. - shlibpath_var=SHLIB_PATH
  30059. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  30060. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30061. - soname_spec='${libname}${release}${shared_ext}$major'
  30062. - ;;
  30063. - esac
  30064. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  30065. - postinstall_cmds='chmod 555 $lib'
  30066. - ;;
  30067. -
  30068. -interix[3-9]*)
  30069. - version_type=linux
  30070. - need_lib_prefix=no
  30071. - need_version=no
  30072. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30073. - soname_spec='${libname}${release}${shared_ext}$major'
  30074. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  30075. - shlibpath_var=LD_LIBRARY_PATH
  30076. - shlibpath_overrides_runpath=no
  30077. - hardcode_into_libs=yes
  30078. - ;;
  30079. -
  30080. -irix5* | irix6* | nonstopux*)
  30081. - case $host_os in
  30082. - nonstopux*) version_type=nonstopux ;;
  30083. - *)
  30084. - if test "$lt_cv_prog_gnu_ld" = yes; then
  30085. - version_type=linux
  30086. - else
  30087. - version_type=irix
  30088. - fi ;;
  30089. - esac
  30090. - need_lib_prefix=no
  30091. - need_version=no
  30092. - soname_spec='${libname}${release}${shared_ext}$major'
  30093. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  30094. - case $host_os in
  30095. - irix5* | nonstopux*)
  30096. - libsuff= shlibsuff=
  30097. - ;;
  30098. - *)
  30099. - case $LD in # libtool.m4 will add one of these switches to LD
  30100. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  30101. - libsuff= shlibsuff= libmagic=32-bit;;
  30102. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  30103. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  30104. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  30105. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  30106. - *) libsuff= shlibsuff= libmagic=never-match;;
  30107. - esac
  30108. - ;;
  30109. - esac
  30110. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  30111. - shlibpath_overrides_runpath=no
  30112. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30113. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30114. - hardcode_into_libs=yes
  30115. - ;;
  30116. -
  30117. -# No shared lib support for Linux oldld, aout, or coff.
  30118. -linux*oldld* | linux*aout* | linux*coff*)
  30119. - dynamic_linker=no
  30120. - ;;
  30121. -
  30122. -# This must be Linux ELF.
  30123. -linux* | k*bsd*-gnu)
  30124. - version_type=linux
  30125. - need_lib_prefix=no
  30126. - need_version=no
  30127. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30128. - soname_spec='${libname}${release}${shared_ext}$major'
  30129. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  30130. - shlibpath_var=LD_LIBRARY_PATH
  30131. - shlibpath_overrides_runpath=no
  30132. - # This implies no fast_install, which is unacceptable.
  30133. - # Some rework will be needed to allow for fast_install
  30134. - # before this can be enabled.
  30135. - hardcode_into_libs=yes
  30136. -
  30137. - # Append ld.so.conf contents to the search path
  30138. - if test -f /etc/ld.so.conf; then
  30139. - 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' ' '`
  30140. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  30141. - fi
  30142. -
  30143. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  30144. - # powerpc, because MkLinux only supported shared libraries with the
  30145. - # GNU dynamic linker. Since this was broken with cross compilers,
  30146. - # most powerpc-linux boxes support dynamic linking these days and
  30147. - # people can always --disable-shared, the test was removed, and we
  30148. - # assume the GNU/Linux dynamic linker is in use.
  30149. - dynamic_linker='GNU/Linux ld.so'
  30150. - ;;
  30151. -
  30152. -netbsdelf*-gnu)
  30153. - version_type=linux
  30154. - need_lib_prefix=no
  30155. - need_version=no
  30156. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30157. - soname_spec='${libname}${release}${shared_ext}$major'
  30158. - shlibpath_var=LD_LIBRARY_PATH
  30159. - shlibpath_overrides_runpath=no
  30160. - hardcode_into_libs=yes
  30161. - dynamic_linker='NetBSD ld.elf_so'
  30162. - ;;
  30163. -
  30164. -netbsd*)
  30165. - version_type=sunos
  30166. - need_lib_prefix=no
  30167. - need_version=no
  30168. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30169. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30170. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30171. - dynamic_linker='NetBSD (a.out) ld.so'
  30172. - else
  30173. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30174. - soname_spec='${libname}${release}${shared_ext}$major'
  30175. - dynamic_linker='NetBSD ld.elf_so'
  30176. - fi
  30177. - shlibpath_var=LD_LIBRARY_PATH
  30178. - shlibpath_overrides_runpath=yes
  30179. - hardcode_into_libs=yes
  30180. - ;;
  30181. -
  30182. -newsos6)
  30183. - version_type=linux
  30184. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30185. - shlibpath_var=LD_LIBRARY_PATH
  30186. - shlibpath_overrides_runpath=yes
  30187. - ;;
  30188. -
  30189. -nto-qnx*)
  30190. - version_type=linux
  30191. - need_lib_prefix=no
  30192. - need_version=no
  30193. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30194. - soname_spec='${libname}${release}${shared_ext}$major'
  30195. - shlibpath_var=LD_LIBRARY_PATH
  30196. - shlibpath_overrides_runpath=yes
  30197. - ;;
  30198. -
  30199. -openbsd*)
  30200. - version_type=sunos
  30201. - sys_lib_dlsearch_path_spec="/usr/lib"
  30202. - need_lib_prefix=no
  30203. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  30204. - case $host_os in
  30205. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  30206. - *) need_version=no ;;
  30207. - esac
  30208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30209. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30210. - shlibpath_var=LD_LIBRARY_PATH
  30211. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30212. - case $host_os in
  30213. - openbsd2.[89] | openbsd2.[89].*)
  30214. - shlibpath_overrides_runpath=no
  30215. - ;;
  30216. - *)
  30217. - shlibpath_overrides_runpath=yes
  30218. - ;;
  30219. - esac
  30220. - else
  30221. - shlibpath_overrides_runpath=yes
  30222. - fi
  30223. - ;;
  30224. -
  30225. -os2*)
  30226. - libname_spec='$name'
  30227. - shrext_cmds=".dll"
  30228. - need_lib_prefix=no
  30229. - library_names_spec='$libname${shared_ext} $libname.a'
  30230. - dynamic_linker='OS/2 ld.exe'
  30231. - shlibpath_var=LIBPATH
  30232. - ;;
  30233. -
  30234. -osf3* | osf4* | osf5*)
  30235. - version_type=osf
  30236. - need_lib_prefix=no
  30237. - need_version=no
  30238. - soname_spec='${libname}${release}${shared_ext}$major'
  30239. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30240. - shlibpath_var=LD_LIBRARY_PATH
  30241. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30242. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30243. - ;;
  30244. + enable_static=yes
  30245. +fi
  30246. -rdos*)
  30247. - dynamic_linker=no
  30248. - ;;
  30249. -solaris*)
  30250. - version_type=linux
  30251. - need_lib_prefix=no
  30252. - need_version=no
  30253. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30254. - soname_spec='${libname}${release}${shared_ext}$major'
  30255. - shlibpath_var=LD_LIBRARY_PATH
  30256. - shlibpath_overrides_runpath=yes
  30257. - hardcode_into_libs=yes
  30258. - # ldd complains unless libraries are executable
  30259. - postinstall_cmds='chmod +x $lib'
  30260. - ;;
  30261. -sunos4*)
  30262. - version_type=sunos
  30263. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30264. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30265. - shlibpath_var=LD_LIBRARY_PATH
  30266. - shlibpath_overrides_runpath=yes
  30267. - if test "$with_gnu_ld" = yes; then
  30268. - need_lib_prefix=no
  30269. - fi
  30270. - need_version=yes
  30271. - ;;
  30272. -sysv4 | sysv4.3*)
  30273. - version_type=linux
  30274. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30275. - soname_spec='${libname}${release}${shared_ext}$major'
  30276. - shlibpath_var=LD_LIBRARY_PATH
  30277. - case $host_vendor in
  30278. - sni)
  30279. - shlibpath_overrides_runpath=no
  30280. - need_lib_prefix=no
  30281. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30282. - runpath_var=LD_RUN_PATH
  30283. - ;;
  30284. - siemens)
  30285. - need_lib_prefix=no
  30286. - ;;
  30287. - motorola)
  30288. - need_lib_prefix=no
  30289. - need_version=no
  30290. - shlibpath_overrides_runpath=no
  30291. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30292. - ;;
  30293. - esac
  30294. - ;;
  30295. -sysv4*MP*)
  30296. - if test -d /usr/nec ;then
  30297. - version_type=linux
  30298. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30299. - soname_spec='$libname${shared_ext}.$major'
  30300. - shlibpath_var=LD_LIBRARY_PATH
  30301. - fi
  30302. - ;;
  30303. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30304. - version_type=freebsd-elf
  30305. - need_lib_prefix=no
  30306. - need_version=no
  30307. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30308. - soname_spec='${libname}${release}${shared_ext}$major'
  30309. - shlibpath_var=LD_LIBRARY_PATH
  30310. - hardcode_into_libs=yes
  30311. - if test "$with_gnu_ld" = yes; then
  30312. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30313. - shlibpath_overrides_runpath=no
  30314. - else
  30315. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30316. - shlibpath_overrides_runpath=yes
  30317. - case $host_os in
  30318. - sco3.2v5*)
  30319. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30320. - ;;
  30321. - esac
  30322. - fi
  30323. - sys_lib_dlsearch_path_spec='/usr/lib'
  30324. - ;;
  30325. -uts4*)
  30326. - version_type=linux
  30327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30328. - soname_spec='${libname}${release}${shared_ext}$major'
  30329. - shlibpath_var=LD_LIBRARY_PATH
  30330. - ;;
  30331. -*)
  30332. - dynamic_linker=no
  30333. - ;;
  30334. -esac
  30335. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30336. -echo "${ECHO_T}$dynamic_linker" >&6; }
  30337. -test "$dynamic_linker" = no && can_build_shared=no
  30338. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  30339. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30340. -else
  30341. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  30342. -fi
  30343. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  30344. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  30345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30346. +# Check whether --with-pic was given.
  30347. +if test "${with_pic+set}" = set; then :
  30348. + withval=$with_pic; pic_mode="$withval"
  30349. else
  30350. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  30351. + pic_mode=default
  30352. fi
  30353. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  30354. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30355. -if test "$GCC" = yes; then
  30356. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30357. -fi
  30358. +test -z "$pic_mode" && pic_mode=default
  30359. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30360. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  30361. -hardcode_action_F77=
  30362. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  30363. - test -n "$runpath_var_F77" || \
  30364. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  30365. - # We can hardcode non-existant directories.
  30366. - if test "$hardcode_direct_F77" != no &&
  30367. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30368. - # have to relink, otherwise we might link with an installed library
  30369. - # when we should be linking with a yet-to-be-installed one
  30370. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  30371. - test "$hardcode_minus_L_F77" != no; then
  30372. - # Linking always hardcodes the temporary library directory.
  30373. - hardcode_action_F77=relink
  30374. - else
  30375. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30376. - hardcode_action_F77=immediate
  30377. - fi
  30378. -else
  30379. - # We cannot hardcode anything, or else we can only hardcode existing
  30380. - # directories.
  30381. - hardcode_action_F77=unsupported
  30382. -fi
  30383. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  30384. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  30385. -if test "$hardcode_action_F77" = relink; then
  30386. - # Fast installation is not supported
  30387. - enable_fast_install=no
  30388. -elif test "$shlibpath_overrides_runpath" = yes ||
  30389. - test "$enable_shared" = no; then
  30390. - # Fast installation is not necessary
  30391. - enable_fast_install=needless
  30392. -fi
  30393. -# The else clause should only fire when bootstrapping the
  30394. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30395. -# with your package, and you will get complaints that there are
  30396. -# no rules to generate ltmain.sh.
  30397. -if test -f "$ltmain"; then
  30398. - # See if we are running on zsh, and set the options which allow our commands through
  30399. - # without removal of \ escapes.
  30400. - if test -n "${ZSH_VERSION+set}" ; then
  30401. - setopt NO_GLOB_SUBST
  30402. - fi
  30403. - # Now quote all the things that may contain metacharacters while being
  30404. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30405. - # variables and quote the copies for generation of the libtool script.
  30406. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30407. - SED SHELL STRIP \
  30408. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30409. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30410. - deplibs_check_method reload_flag reload_cmds need_locks \
  30411. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30412. - lt_cv_sys_global_symbol_to_c_name_address \
  30413. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30414. - old_postinstall_cmds old_postuninstall_cmds \
  30415. - compiler_F77 \
  30416. - CC_F77 \
  30417. - LD_F77 \
  30418. - lt_prog_compiler_wl_F77 \
  30419. - lt_prog_compiler_pic_F77 \
  30420. - lt_prog_compiler_static_F77 \
  30421. - lt_prog_compiler_no_builtin_flag_F77 \
  30422. - export_dynamic_flag_spec_F77 \
  30423. - thread_safe_flag_spec_F77 \
  30424. - whole_archive_flag_spec_F77 \
  30425. - enable_shared_with_static_runtimes_F77 \
  30426. - old_archive_cmds_F77 \
  30427. - old_archive_from_new_cmds_F77 \
  30428. - predep_objects_F77 \
  30429. - postdep_objects_F77 \
  30430. - predeps_F77 \
  30431. - postdeps_F77 \
  30432. - compiler_lib_search_path_F77 \
  30433. - compiler_lib_search_dirs_F77 \
  30434. - archive_cmds_F77 \
  30435. - archive_expsym_cmds_F77 \
  30436. - postinstall_cmds_F77 \
  30437. - postuninstall_cmds_F77 \
  30438. - old_archive_from_expsyms_cmds_F77 \
  30439. - allow_undefined_flag_F77 \
  30440. - no_undefined_flag_F77 \
  30441. - export_symbols_cmds_F77 \
  30442. - hardcode_libdir_flag_spec_F77 \
  30443. - hardcode_libdir_flag_spec_ld_F77 \
  30444. - hardcode_libdir_separator_F77 \
  30445. - hardcode_automatic_F77 \
  30446. - module_cmds_F77 \
  30447. - module_expsym_cmds_F77 \
  30448. - lt_cv_prog_compiler_c_o_F77 \
  30449. - fix_srcfile_path_F77 \
  30450. - exclude_expsyms_F77 \
  30451. - include_expsyms_F77; do
  30452. -
  30453. - case $var in
  30454. - old_archive_cmds_F77 | \
  30455. - old_archive_from_new_cmds_F77 | \
  30456. - archive_cmds_F77 | \
  30457. - archive_expsym_cmds_F77 | \
  30458. - module_cmds_F77 | \
  30459. - module_expsym_cmds_F77 | \
  30460. - old_archive_from_expsyms_cmds_F77 | \
  30461. - export_symbols_cmds_F77 | \
  30462. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30463. - postinstall_cmds | postuninstall_cmds | \
  30464. - old_postinstall_cmds | old_postuninstall_cmds | \
  30465. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30466. - # Double-quote double-evaled strings.
  30467. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30468. - ;;
  30469. +
  30470. +
  30471. + # Check whether --enable-fast-install was given.
  30472. +if test "${enable_fast_install+set}" = set; then :
  30473. + enableval=$enable_fast_install; p=${PACKAGE-default}
  30474. + case $enableval in
  30475. + yes) enable_fast_install=yes ;;
  30476. + no) enable_fast_install=no ;;
  30477. *)
  30478. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30479. + enable_fast_install=no
  30480. + # Look at the argument we got. We use all the common list separators.
  30481. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  30482. + for pkg in $enableval; do
  30483. + IFS="$lt_save_ifs"
  30484. + if test "X$pkg" = "X$p"; then
  30485. + enable_fast_install=yes
  30486. + fi
  30487. + done
  30488. + IFS="$lt_save_ifs"
  30489. ;;
  30490. esac
  30491. - done
  30492. +else
  30493. + enable_fast_install=yes
  30494. +fi
  30495. - case $lt_echo in
  30496. - *'\$0 --fallback-echo"')
  30497. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30498. - ;;
  30499. - esac
  30500. -cfgfile="$ofile"
  30501. - cat <<__EOF__ >> "$cfgfile"
  30502. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30503. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30504. -# Shell to use when invoking shell scripts.
  30505. -SHELL=$lt_SHELL
  30506. -# Whether or not to build shared libraries.
  30507. -build_libtool_libs=$enable_shared
  30508. -# Whether or not to build static libraries.
  30509. -build_old_libs=$enable_static
  30510. -# Whether or not to add -lc for building shared libraries.
  30511. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  30512. -# Whether or not to disallow shared libs when runtime libs are static
  30513. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  30514. -# Whether or not to optimize for fast installation.
  30515. -fast_install=$enable_fast_install
  30516. -# The host system.
  30517. -host_alias=$host_alias
  30518. -host=$host
  30519. -host_os=$host_os
  30520. +# This can be used to rebuild libtool when needed
  30521. +LIBTOOL_DEPS="$ltmain"
  30522. -# The build system.
  30523. -build_alias=$build_alias
  30524. -build=$build
  30525. -build_os=$build_os
  30526. +# Always use our own libtool.
  30527. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  30528. -# An echo program that does not interpret backslashes.
  30529. -echo=$lt_echo
  30530. -# The archiver.
  30531. -AR=$lt_AR
  30532. -AR_FLAGS=$lt_AR_FLAGS
  30533. -# A C compiler.
  30534. -LTCC=$lt_LTCC
  30535. -# LTCC compiler flags.
  30536. -LTCFLAGS=$lt_LTCFLAGS
  30537. -# A language-specific compiler.
  30538. -CC=$lt_compiler_F77
  30539. -# Is the compiler the GNU C compiler?
  30540. -with_gcc=$GCC_F77
  30541. -# An ERE matcher.
  30542. -EGREP=$lt_EGREP
  30543. -# The linker used to build libraries.
  30544. -LD=$lt_LD_F77
  30545. -# Whether we need hard or soft links.
  30546. -LN_S=$lt_LN_S
  30547. -# A BSD-compatible nm program.
  30548. -NM=$lt_NM
  30549. -# A symbol stripping program
  30550. -STRIP=$lt_STRIP
  30551. -# Used to examine libraries when file_magic_cmd begins "file"
  30552. -MAGIC_CMD=$MAGIC_CMD
  30553. -# Used on cygwin: DLL creation program.
  30554. -DLLTOOL="$DLLTOOL"
  30555. -# Used on cygwin: object dumper.
  30556. -OBJDUMP="$OBJDUMP"
  30557. -# Used on cygwin: assembler.
  30558. -AS="$AS"
  30559. -# The name of the directory that contains temporary libtool files.
  30560. -objdir=$objdir
  30561. -# How to create reloadable object files.
  30562. -reload_flag=$lt_reload_flag
  30563. -reload_cmds=$lt_reload_cmds
  30564. -# How to pass a linker flag through the compiler.
  30565. -wl=$lt_lt_prog_compiler_wl_F77
  30566. -# Object file suffix (normally "o").
  30567. -objext="$ac_objext"
  30568. -# Old archive suffix (normally "a").
  30569. -libext="$libext"
  30570. -# Shared library suffix (normally ".so").
  30571. -shrext_cmds='$shrext_cmds'
  30572. -# Executable file suffix (normally "").
  30573. -exeext="$exeext"
  30574. -# Additional compiler flags for building library objects.
  30575. -pic_flag=$lt_lt_prog_compiler_pic_F77
  30576. -pic_mode=$pic_mode
  30577. -# What is the maximum length of a command?
  30578. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30579. -# Does compiler simultaneously support -c and -o options?
  30580. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  30581. +test -z "$LN_S" && LN_S="ln -s"
  30582. -# Must we lock files when doing compilation?
  30583. -need_locks=$lt_need_locks
  30584. -# Do we need the lib prefix for modules?
  30585. -need_lib_prefix=$need_lib_prefix
  30586. -# Do we need a version for libraries?
  30587. -need_version=$need_version
  30588. -# Whether dlopen is supported.
  30589. -dlopen_support=$enable_dlopen
  30590. -# Whether dlopen of programs is supported.
  30591. -dlopen_self=$enable_dlopen_self
  30592. -# Whether dlopen of statically linked programs is supported.
  30593. -dlopen_self_static=$enable_dlopen_self_static
  30594. -# Compiler flag to prevent dynamic linking.
  30595. -link_static_flag=$lt_lt_prog_compiler_static_F77
  30596. -# Compiler flag to turn off builtin functions.
  30597. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  30598. -# Compiler flag to allow reflexive dlopens.
  30599. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  30600. -# Compiler flag to generate shared objects directly from archives.
  30601. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  30602. -# Compiler flag to generate thread-safe objects.
  30603. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  30604. -# Library versioning type.
  30605. -version_type=$version_type
  30606. -# Format of library name prefix.
  30607. -libname_spec=$lt_libname_spec
  30608. -# List of archive names. First name is the real one, the rest are links.
  30609. -# The last name is the one that the linker finds with -lNAME.
  30610. -library_names_spec=$lt_library_names_spec
  30611. +if test -n "${ZSH_VERSION+set}" ; then
  30612. + setopt NO_GLOB_SUBST
  30613. +fi
  30614. +
  30615. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  30616. +$as_echo_n "checking for objdir... " >&6; }
  30617. +if test "${lt_cv_objdir+set}" = set; then :
  30618. + $as_echo_n "(cached) " >&6
  30619. +else
  30620. + rm -f .libs 2>/dev/null
  30621. +mkdir .libs 2>/dev/null
  30622. +if test -d .libs; then
  30623. + lt_cv_objdir=.libs
  30624. +else
  30625. + # MS-DOS does not allow filenames that begin with a dot.
  30626. + lt_cv_objdir=_libs
  30627. +fi
  30628. +rmdir .libs 2>/dev/null
  30629. +fi
  30630. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  30631. +$as_echo "$lt_cv_objdir" >&6; }
  30632. +objdir=$lt_cv_objdir
  30633. +
  30634. +
  30635. +
  30636. +
  30637. +
  30638. +cat >>confdefs.h <<_ACEOF
  30639. +#define LT_OBJDIR "$lt_cv_objdir/"
  30640. +_ACEOF
  30641. +
  30642. +
  30643. +
  30644. -# The coded name of the library, if different from the real name.
  30645. -soname_spec=$lt_soname_spec
  30646. -# Commands used to build and install an old-style archive.
  30647. -RANLIB=$lt_RANLIB
  30648. -old_archive_cmds=$lt_old_archive_cmds_F77
  30649. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30650. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30651. -# Create an old-style archive from a shared archive.
  30652. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  30653. -# Create a temporary old-style archive to link instead of a shared archive.
  30654. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  30655. -# Commands used to build and install a shared archive.
  30656. -archive_cmds=$lt_archive_cmds_F77
  30657. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  30658. -postinstall_cmds=$lt_postinstall_cmds
  30659. -postuninstall_cmds=$lt_postuninstall_cmds
  30660. -# Commands used to build a loadable module (assumed same as above if empty)
  30661. -module_cmds=$lt_module_cmds_F77
  30662. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  30663. -# Commands to strip libraries.
  30664. -old_striplib=$lt_old_striplib
  30665. -striplib=$lt_striplib
  30666. -# Dependencies to place before the objects being linked to create a
  30667. -# shared library.
  30668. -predep_objects=$lt_predep_objects_F77
  30669. -
  30670. -# Dependencies to place after the objects being linked to create a
  30671. -# shared library.
  30672. -postdep_objects=$lt_postdep_objects_F77
  30673. -
  30674. -# Dependencies to place before the objects being linked to create a
  30675. -# shared library.
  30676. -predeps=$lt_predeps_F77
  30677. -
  30678. -# Dependencies to place after the objects being linked to create a
  30679. -# shared library.
  30680. -postdeps=$lt_postdeps_F77
  30681. -
  30682. -# The directories searched by this compiler when creating a shared
  30683. -# library
  30684. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  30685. -
  30686. -# The library search path used internally by the compiler when linking
  30687. -# a shared library.
  30688. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  30689. -# Method to check whether dependent libraries are shared objects.
  30690. -deplibs_check_method=$lt_deplibs_check_method
  30691. -# Command to use when deplibs_check_method == file_magic.
  30692. -file_magic_cmd=$lt_file_magic_cmd
  30693. -# Flag that allows shared libraries with undefined symbols to be built.
  30694. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  30695. -# Flag that forces no undefined symbols.
  30696. -no_undefined_flag=$lt_no_undefined_flag_F77
  30697. -# Commands used to finish a libtool library installation in a directory.
  30698. -finish_cmds=$lt_finish_cmds
  30699. -# Same as above, but a single script fragment to be evaled but not shown.
  30700. -finish_eval=$lt_finish_eval
  30701. +case $host_os in
  30702. +aix3*)
  30703. + # AIX sometimes has problems with the GCC collect2 program. For some
  30704. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  30705. + # vanish in a puff of smoke.
  30706. + if test "X${COLLECT_NAMES+set}" != Xset; then
  30707. + COLLECT_NAMES=
  30708. + export COLLECT_NAMES
  30709. + fi
  30710. + ;;
  30711. +esac
  30712. -# Take the output of nm and produce a listing of raw symbols and C names.
  30713. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30714. +# Sed substitution that helps us do robust quoting. It backslashifies
  30715. +# metacharacters that are still active within double-quoted strings.
  30716. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  30717. -# Transform the output of nm in a proper C declaration
  30718. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30719. +# Same as above, but do not quote variable references.
  30720. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  30721. -# Transform the output of nm in a C name address pair
  30722. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30723. +# Sed substitution to delay expansion of an escaped shell variable in a
  30724. +# double_quote_subst'ed string.
  30725. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  30726. -# This is the shared library runtime path variable.
  30727. -runpath_var=$runpath_var
  30728. +# Sed substitution to delay expansion of an escaped single quote.
  30729. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  30730. -# This is the shared library path variable.
  30731. -shlibpath_var=$shlibpath_var
  30732. +# Sed substitution to avoid accidental globbing in evaled expressions
  30733. +no_glob_subst='s/\*/\\\*/g'
  30734. -# Is shlibpath searched before the hard-coded library search path?
  30735. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30736. +# Global variables:
  30737. +ofile=libtool
  30738. +can_build_shared=yes
  30739. -# How to hardcode a shared library path into an executable.
  30740. -hardcode_action=$hardcode_action_F77
  30741. +# All known linkers require a `.a' archive for static linking (except MSVC,
  30742. +# which needs '.lib').
  30743. +libext=a
  30744. -# Whether we should hardcode library paths into libraries.
  30745. -hardcode_into_libs=$hardcode_into_libs
  30746. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  30747. -# Flag to hardcode \$libdir into a binary during linking.
  30748. -# This must work even if \$libdir does not exist.
  30749. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  30750. +old_CC="$CC"
  30751. +old_CFLAGS="$CFLAGS"
  30752. -# If ld is used when linking, flag to hardcode \$libdir into
  30753. -# a binary during linking. This must work even if \$libdir does
  30754. -# not exist.
  30755. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  30756. -
  30757. -# Whether we need a single -rpath flag with a separated argument.
  30758. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  30759. -
  30760. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30761. -# resulting binary.
  30762. -hardcode_direct=$hardcode_direct_F77
  30763. -
  30764. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30765. -# resulting binary.
  30766. -hardcode_minus_L=$hardcode_minus_L_F77
  30767. -
  30768. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30769. -# the resulting binary.
  30770. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  30771. -
  30772. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30773. -# and all subsequent libraries and executables linked against it.
  30774. -hardcode_automatic=$hardcode_automatic_F77
  30775. +# Set sane defaults for various variables
  30776. +test -z "$CC" && CC=cc
  30777. +test -z "$LTCC" && LTCC=$CC
  30778. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  30779. +test -z "$LD" && LD=ld
  30780. +test -z "$ac_objext" && ac_objext=o
  30781. -# Variables whose values should be saved in libtool wrapper scripts and
  30782. -# restored at relink time.
  30783. -variables_saved_for_relink="$variables_saved_for_relink"
  30784. +for cc_temp in $compiler""; do
  30785. + case $cc_temp in
  30786. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30787. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30788. + \-*) ;;
  30789. + *) break;;
  30790. + esac
  30791. +done
  30792. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30793. -# Whether libtool must link a program against all its dependency libraries.
  30794. -link_all_deplibs=$link_all_deplibs_F77
  30795. -# Compile-time system search path for libraries
  30796. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30797. +# Only perform the check for file, if the check method requires it
  30798. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  30799. +case $deplibs_check_method in
  30800. +file_magic*)
  30801. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  30802. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  30803. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  30804. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  30805. + $as_echo_n "(cached) " >&6
  30806. +else
  30807. + case $MAGIC_CMD in
  30808. +[\\/*] | ?:[\\/]*)
  30809. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30810. + ;;
  30811. +*)
  30812. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  30813. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30814. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30815. + for ac_dir in $ac_dummy; do
  30816. + IFS="$lt_save_ifs"
  30817. + test -z "$ac_dir" && ac_dir=.
  30818. + if test -f $ac_dir/${ac_tool_prefix}file; then
  30819. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  30820. + if test -n "$file_magic_test_file"; then
  30821. + case $deplibs_check_method in
  30822. + "file_magic "*)
  30823. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30824. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30825. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30826. + $EGREP "$file_magic_regex" > /dev/null; then
  30827. + :
  30828. + else
  30829. + cat <<_LT_EOF 1>&2
  30830. -# Run-time system search path for libraries
  30831. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30832. +*** Warning: the command libtool uses to detect shared libraries,
  30833. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  30834. +*** The result is that libtool may fail to recognize shared libraries
  30835. +*** as such. This will affect the creation of libtool libraries that
  30836. +*** depend on shared libraries, but programs linked with such libtool
  30837. +*** libraries will work regardless of this problem. Nevertheless, you
  30838. +*** may want to report the problem to your system manager and/or to
  30839. +*** bug-libtool@gnu.org
  30840. -# Fix the shell variable \$srcfile for the compiler.
  30841. -fix_srcfile_path=$lt_fix_srcfile_path
  30842. +_LT_EOF
  30843. + fi ;;
  30844. + esac
  30845. + fi
  30846. + break
  30847. + fi
  30848. + done
  30849. + IFS="$lt_save_ifs"
  30850. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  30851. + ;;
  30852. +esac
  30853. +fi
  30854. -# Set to yes if exported symbols are required.
  30855. -always_export_symbols=$always_export_symbols_F77
  30856. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30857. +if test -n "$MAGIC_CMD"; then
  30858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  30859. +$as_echo "$MAGIC_CMD" >&6; }
  30860. +else
  30861. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30862. +$as_echo "no" >&6; }
  30863. +fi
  30864. -# The commands to list exported symbols.
  30865. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  30866. -# The commands to extract the exported symbol list from a shared archive.
  30867. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30868. -# Symbols that should not be listed in the preloaded symbols.
  30869. -exclude_expsyms=$lt_exclude_expsyms_F77
  30870. -# Symbols that must always be exported.
  30871. -include_expsyms=$lt_include_expsyms_F77
  30872. -# ### END LIBTOOL TAG CONFIG: $tagname
  30873. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  30874. + if test -n "$ac_tool_prefix"; then
  30875. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  30876. +$as_echo_n "checking for file... " >&6; }
  30877. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  30878. + $as_echo_n "(cached) " >&6
  30879. +else
  30880. + case $MAGIC_CMD in
  30881. +[\\/*] | ?:[\\/]*)
  30882. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30883. + ;;
  30884. +*)
  30885. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  30886. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30887. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30888. + for ac_dir in $ac_dummy; do
  30889. + IFS="$lt_save_ifs"
  30890. + test -z "$ac_dir" && ac_dir=.
  30891. + if test -f $ac_dir/file; then
  30892. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  30893. + if test -n "$file_magic_test_file"; then
  30894. + case $deplibs_check_method in
  30895. + "file_magic "*)
  30896. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30897. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30898. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30899. + $EGREP "$file_magic_regex" > /dev/null; then
  30900. + :
  30901. + else
  30902. + cat <<_LT_EOF 1>&2
  30903. -__EOF__
  30904. +*** Warning: the command libtool uses to detect shared libraries,
  30905. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  30906. +*** The result is that libtool may fail to recognize shared libraries
  30907. +*** as such. This will affect the creation of libtool libraries that
  30908. +*** depend on shared libraries, but programs linked with such libtool
  30909. +*** libraries will work regardless of this problem. Nevertheless, you
  30910. +*** may want to report the problem to your system manager and/or to
  30911. +*** bug-libtool@gnu.org
  30912. +_LT_EOF
  30913. + fi ;;
  30914. + esac
  30915. + fi
  30916. + break
  30917. + fi
  30918. + done
  30919. + IFS="$lt_save_ifs"
  30920. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  30921. + ;;
  30922. +esac
  30923. +fi
  30924. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30925. +if test -n "$MAGIC_CMD"; then
  30926. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  30927. +$as_echo "$MAGIC_CMD" >&6; }
  30928. else
  30929. - # If there is no Makefile yet, we rely on a make rule to execute
  30930. - # `config.status --recheck' to rerun these tests and create the
  30931. - # libtool script then.
  30932. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30933. - if test -f "$ltmain_in"; then
  30934. - test -f Makefile && make "$ltmain"
  30935. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30936. +$as_echo "no" >&6; }
  30937. +fi
  30938. +
  30939. +
  30940. + else
  30941. + MAGIC_CMD=:
  30942. fi
  30943. fi
  30944. + fi
  30945. + ;;
  30946. +esac
  30947. +
  30948. +# Use C for the default configuration in the libtool script
  30949. +lt_save_CC="$CC"
  30950. ac_ext=c
  30951. ac_cpp='$CPP $CPPFLAGS'
  30952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30955. -CC="$lt_save_CC"
  30956. -
  30957. - else
  30958. - tagname=""
  30959. - fi
  30960. - ;;
  30961. -
  30962. - GCJ)
  30963. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  30964. -
  30965. -# Source file extension for Java test sources.
  30966. -ac_ext=java
  30967. +# Source file extension for C test sources.
  30968. +ac_ext=c
  30969. -# Object file extension for compiled Java test sources.
  30970. +# Object file extension for compiled C test sources.
  30971. objext=o
  30972. -objext_GCJ=$objext
  30973. +objext=$objext
  30974. # Code to be used in simple compile tests
  30975. -lt_simple_compile_test_code="class foo {}"
  30976. +lt_simple_compile_test_code="int some_variable = 0;"
  30977. # Code to be used in simple link tests
  30978. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  30979. +lt_simple_link_test_code='int main(){return(0);}'
  30980. +
  30981. +
  30982. +
  30983. +
  30984. +
  30985. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30986. # If no C compiler was specified, use CC.
  30987. LTCC=${LTCC-"$CC"}
  30988. @@ -16649,56 +7109,38 @@
  30989. # Allow CC to be a program name with arguments.
  30990. compiler=$CC
  30991. +# Save the default compiler, since it gets overwritten when the other
  30992. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  30993. +compiler_DEFAULT=$CC
  30994. # save warnings/boilerplate of simple test code
  30995. ac_outfile=conftest.$ac_objext
  30996. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30997. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30998. _lt_compiler_boilerplate=`cat conftest.err`
  30999. -$rm conftest*
  31000. +$RM conftest*
  31001. ac_outfile=conftest.$ac_objext
  31002. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  31003. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31004. _lt_linker_boilerplate=`cat conftest.err`
  31005. -$rm -r conftest*
  31006. -
  31007. -
  31008. -# Allow CC to be a program name with arguments.
  31009. -lt_save_CC="$CC"
  31010. -CC=${GCJ-"gcj"}
  31011. -compiler=$CC
  31012. -compiler_GCJ=$CC
  31013. -for cc_temp in $compiler""; do
  31014. - case $cc_temp in
  31015. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31016. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31017. - \-*) ;;
  31018. - *) break;;
  31019. - esac
  31020. -done
  31021. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31022. -
  31023. -
  31024. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  31025. -archive_cmds_need_lc_GCJ=no
  31026. +$RM -r conftest*
  31027. -old_archive_cmds_GCJ=$old_archive_cmds
  31028. +if test -n "$compiler"; then
  31029. -lt_prog_compiler_no_builtin_flag_GCJ=
  31030. +lt_prog_compiler_no_builtin_flag=
  31031. if test "$GCC" = yes; then
  31032. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  31033. -
  31034. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  31035. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  31036. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  31037. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  31038. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31039. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  31040. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  31041. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  31042. + $as_echo_n "(cached) " >&6
  31043. else
  31044. lt_cv_prog_compiler_rtti_exceptions=no
  31045. - ac_outfile=conftest.$ac_objext
  31046. + ac_outfile=conftest.$ac_objext
  31047. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31048. lt_compiler_flag="-fno-rtti -fno-exceptions"
  31049. # Insert the option either (1) after the last *FLAGS variable, or
  31050. @@ -16710,77 +7152,104 @@
  31051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31053. -e 's:$: $lt_compiler_flag:'`
  31054. - (eval echo "\"\$as_me:16713: $lt_compile\"" >&5)
  31055. + (eval echo "\"\$as_me:7155: $lt_compile\"" >&5)
  31056. (eval "$lt_compile" 2>conftest.err)
  31057. ac_status=$?
  31058. cat conftest.err >&5
  31059. - echo "$as_me:16717: \$? = $ac_status" >&5
  31060. + echo "$as_me:7159: \$? = $ac_status" >&5
  31061. if (exit $ac_status) && test -s "$ac_outfile"; then
  31062. # The compiler can only warn and ignore the option if not recognized
  31063. # So say no if there are warnings other than the usual output.
  31064. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31065. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31067. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31068. lt_cv_prog_compiler_rtti_exceptions=yes
  31069. fi
  31070. fi
  31071. - $rm conftest*
  31072. + $RM conftest*
  31073. fi
  31074. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  31075. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  31076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  31077. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  31078. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  31079. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  31080. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  31081. else
  31082. :
  31083. fi
  31084. fi
  31085. -lt_prog_compiler_wl_GCJ=
  31086. -lt_prog_compiler_pic_GCJ=
  31087. -lt_prog_compiler_static_GCJ=
  31088. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31089. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  31090. +
  31091. +
  31092. +
  31093. +
  31094. + lt_prog_compiler_wl=
  31095. +lt_prog_compiler_pic=
  31096. +lt_prog_compiler_static=
  31097. +
  31098. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  31099. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  31100. if test "$GCC" = yes; then
  31101. - lt_prog_compiler_wl_GCJ='-Wl,'
  31102. - lt_prog_compiler_static_GCJ='-static'
  31103. + lt_prog_compiler_wl='-Wl,'
  31104. + lt_prog_compiler_static='-static'
  31105. case $host_os in
  31106. aix*)
  31107. # All AIX code is PIC.
  31108. if test "$host_cpu" = ia64; then
  31109. # AIX 5 now supports IA64 processor
  31110. - lt_prog_compiler_static_GCJ='-Bstatic'
  31111. + lt_prog_compiler_static='-Bstatic'
  31112. fi
  31113. ;;
  31114. amigaos*)
  31115. - # FIXME: we need at least 68020 code to build shared libraries, but
  31116. - # adding the `-m68020' flag to GCC prevents building anything better,
  31117. - # like `-m68040'.
  31118. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  31119. + case $host_cpu in
  31120. + powerpc)
  31121. + # see comment about AmigaOS4 .so support
  31122. + lt_prog_compiler_pic='-fPIC'
  31123. + ;;
  31124. + m68k)
  31125. + # FIXME: we need at least 68020 code to build shared libraries, but
  31126. + # adding the `-m68020' flag to GCC prevents building anything better,
  31127. + # like `-m68040'.
  31128. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  31129. + ;;
  31130. + esac
  31131. ;;
  31132. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31133. # PIC is the default for these OSes.
  31134. ;;
  31135. - mingw* | cygwin* | pw32* | os2*)
  31136. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  31137. # This hack is so that the source file can tell whether it is being
  31138. # built for inclusion in a dll (and should export symbols for example).
  31139. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  31140. # (--disable-auto-import) libraries
  31141. -
  31142. + lt_prog_compiler_pic='-DDLL_EXPORT'
  31143. ;;
  31144. darwin* | rhapsody*)
  31145. # PIC is the default on this platform
  31146. # Common symbols not allowed in MH_DYLIB files
  31147. - lt_prog_compiler_pic_GCJ='-fno-common'
  31148. + lt_prog_compiler_pic='-fno-common'
  31149. + ;;
  31150. +
  31151. + hpux*)
  31152. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  31153. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  31154. + # sets the default TLS model and affects inlining.
  31155. + case $host_cpu in
  31156. + hppa*64*)
  31157. + # +Z the default
  31158. + ;;
  31159. + *)
  31160. + lt_prog_compiler_pic='-fPIC'
  31161. + ;;
  31162. + esac
  31163. ;;
  31164. interix[3-9]*)
  31165. @@ -16791,64 +7260,47 @@
  31166. msdosdjgpp*)
  31167. # Just because we use GCC doesn't mean we suddenly get shared libraries
  31168. # on systems that don't support them.
  31169. - lt_prog_compiler_can_build_shared_GCJ=no
  31170. + lt_prog_compiler_can_build_shared=no
  31171. enable_shared=no
  31172. ;;
  31173. + *nto* | *qnx*)
  31174. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  31175. + # it will coredump.
  31176. + lt_prog_compiler_pic='-fPIC -shared'
  31177. + ;;
  31178. +
  31179. sysv4*MP*)
  31180. if test -d /usr/nec; then
  31181. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  31182. + lt_prog_compiler_pic=-Kconform_pic
  31183. fi
  31184. ;;
  31185. - hpux*)
  31186. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31187. - # not for PA HP-UX.
  31188. - case $host_cpu in
  31189. - hppa*64*|ia64*)
  31190. - # +Z the default
  31191. - ;;
  31192. - *)
  31193. - lt_prog_compiler_pic_GCJ='-fPIC'
  31194. - ;;
  31195. - esac
  31196. - ;;
  31197. -
  31198. *)
  31199. - lt_prog_compiler_pic_GCJ='-fPIC'
  31200. + lt_prog_compiler_pic='-fPIC'
  31201. ;;
  31202. esac
  31203. else
  31204. # PORTME Check for flag to pass linker flags through the system compiler.
  31205. case $host_os in
  31206. aix*)
  31207. - lt_prog_compiler_wl_GCJ='-Wl,'
  31208. + lt_prog_compiler_wl='-Wl,'
  31209. if test "$host_cpu" = ia64; then
  31210. # AIX 5 now supports IA64 processor
  31211. - lt_prog_compiler_static_GCJ='-Bstatic'
  31212. + lt_prog_compiler_static='-Bstatic'
  31213. else
  31214. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  31215. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  31216. fi
  31217. ;;
  31218. - darwin*)
  31219. - # PIC is the default on this platform
  31220. - # Common symbols not allowed in MH_DYLIB files
  31221. - case $cc_basename in
  31222. - xlc*)
  31223. - lt_prog_compiler_pic_GCJ='-qnocommon'
  31224. - lt_prog_compiler_wl_GCJ='-Wl,'
  31225. - ;;
  31226. - esac
  31227. - ;;
  31228. - mingw* | cygwin* | pw32* | os2*)
  31229. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  31230. # This hack is so that the source file can tell whether it is being
  31231. # built for inclusion in a dll (and should export symbols for example).
  31232. -
  31233. + lt_prog_compiler_pic='-DDLL_EXPORT'
  31234. ;;
  31235. hpux9* | hpux10* | hpux11*)
  31236. - lt_prog_compiler_wl_GCJ='-Wl,'
  31237. + lt_prog_compiler_wl='-Wl,'
  31238. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31239. # not for PA HP-UX.
  31240. case $host_cpu in
  31241. @@ -16856,141 +7308,180 @@
  31242. # +Z the default
  31243. ;;
  31244. *)
  31245. - lt_prog_compiler_pic_GCJ='+Z'
  31246. + lt_prog_compiler_pic='+Z'
  31247. ;;
  31248. esac
  31249. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  31250. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  31251. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  31252. ;;
  31253. irix5* | irix6* | nonstopux*)
  31254. - lt_prog_compiler_wl_GCJ='-Wl,'
  31255. + lt_prog_compiler_wl='-Wl,'
  31256. # PIC (with -KPIC) is the default.
  31257. - lt_prog_compiler_static_GCJ='-non_shared'
  31258. - ;;
  31259. -
  31260. - newsos6)
  31261. - lt_prog_compiler_pic_GCJ='-KPIC'
  31262. - lt_prog_compiler_static_GCJ='-Bstatic'
  31263. + lt_prog_compiler_static='-non_shared'
  31264. ;;
  31265. - linux* | k*bsd*-gnu)
  31266. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  31267. case $cc_basename in
  31268. - icc* | ecc*)
  31269. - lt_prog_compiler_wl_GCJ='-Wl,'
  31270. - lt_prog_compiler_pic_GCJ='-KPIC'
  31271. - lt_prog_compiler_static_GCJ='-static'
  31272. + # old Intel for x86_64 which still supported -KPIC.
  31273. + ecc*)
  31274. + lt_prog_compiler_wl='-Wl,'
  31275. + lt_prog_compiler_pic='-KPIC'
  31276. + lt_prog_compiler_static='-static'
  31277. + ;;
  31278. + # icc used to be incompatible with GCC.
  31279. + # ICC 10 doesn't accept -KPIC any more.
  31280. + icc* | ifort*)
  31281. + lt_prog_compiler_wl='-Wl,'
  31282. + lt_prog_compiler_pic='-fPIC'
  31283. + lt_prog_compiler_static='-static'
  31284. ;;
  31285. + # Lahey Fortran 8.1.
  31286. + lf95*)
  31287. + lt_prog_compiler_wl='-Wl,'
  31288. + lt_prog_compiler_pic='--shared'
  31289. + lt_prog_compiler_static='--static'
  31290. + ;;
  31291. pgcc* | pgf77* | pgf90* | pgf95*)
  31292. # Portland Group compilers (*not* the Pentium gcc compiler,
  31293. # which looks to be a dead project)
  31294. - lt_prog_compiler_wl_GCJ='-Wl,'
  31295. - lt_prog_compiler_pic_GCJ='-fpic'
  31296. - lt_prog_compiler_static_GCJ='-Bstatic'
  31297. + lt_prog_compiler_wl='-Wl,'
  31298. + lt_prog_compiler_pic='-fpic'
  31299. + lt_prog_compiler_static='-Bstatic'
  31300. ;;
  31301. ccc*)
  31302. - lt_prog_compiler_wl_GCJ='-Wl,'
  31303. + lt_prog_compiler_wl='-Wl,'
  31304. # All Alpha code is PIC.
  31305. - lt_prog_compiler_static_GCJ='-non_shared'
  31306. + lt_prog_compiler_static='-non_shared'
  31307. ;;
  31308. + xl*)
  31309. + # IBM XL C 8.0/Fortran 10.1 on PPC
  31310. + lt_prog_compiler_wl='-Wl,'
  31311. + lt_prog_compiler_pic='-qpic'
  31312. + lt_prog_compiler_static='-qstaticlink'
  31313. + ;;
  31314. *)
  31315. - case `$CC -V 2>&1 | sed 5q` in
  31316. + case `$CC -V 2>&1 | sed 5q` in
  31317. *Sun\ C*)
  31318. # Sun C 5.9
  31319. - lt_prog_compiler_pic_GCJ='-KPIC'
  31320. - lt_prog_compiler_static_GCJ='-Bstatic'
  31321. - lt_prog_compiler_wl_GCJ='-Wl,'
  31322. + lt_prog_compiler_pic='-KPIC'
  31323. + lt_prog_compiler_static='-Bstatic'
  31324. + lt_prog_compiler_wl='-Wl,'
  31325. ;;
  31326. *Sun\ F*)
  31327. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  31328. - lt_prog_compiler_pic_GCJ='-KPIC'
  31329. - lt_prog_compiler_static_GCJ='-Bstatic'
  31330. - lt_prog_compiler_wl_GCJ=''
  31331. + lt_prog_compiler_pic='-KPIC'
  31332. + lt_prog_compiler_static='-Bstatic'
  31333. + lt_prog_compiler_wl=''
  31334. ;;
  31335. esac
  31336. ;;
  31337. esac
  31338. ;;
  31339. + newsos6)
  31340. + lt_prog_compiler_pic='-KPIC'
  31341. + lt_prog_compiler_static='-Bstatic'
  31342. + ;;
  31343. +
  31344. + *nto* | *qnx*)
  31345. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  31346. + # it will coredump.
  31347. + lt_prog_compiler_pic='-fPIC -shared'
  31348. + ;;
  31349. +
  31350. osf3* | osf4* | osf5*)
  31351. - lt_prog_compiler_wl_GCJ='-Wl,'
  31352. + lt_prog_compiler_wl='-Wl,'
  31353. # All OSF/1 code is PIC.
  31354. - lt_prog_compiler_static_GCJ='-non_shared'
  31355. + lt_prog_compiler_static='-non_shared'
  31356. ;;
  31357. rdos*)
  31358. - lt_prog_compiler_static_GCJ='-non_shared'
  31359. + lt_prog_compiler_static='-non_shared'
  31360. ;;
  31361. solaris*)
  31362. - lt_prog_compiler_pic_GCJ='-KPIC'
  31363. - lt_prog_compiler_static_GCJ='-Bstatic'
  31364. + lt_prog_compiler_pic='-KPIC'
  31365. + lt_prog_compiler_static='-Bstatic'
  31366. case $cc_basename in
  31367. f77* | f90* | f95*)
  31368. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  31369. + lt_prog_compiler_wl='-Qoption ld ';;
  31370. *)
  31371. - lt_prog_compiler_wl_GCJ='-Wl,';;
  31372. + lt_prog_compiler_wl='-Wl,';;
  31373. esac
  31374. ;;
  31375. sunos4*)
  31376. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  31377. - lt_prog_compiler_pic_GCJ='-PIC'
  31378. - lt_prog_compiler_static_GCJ='-Bstatic'
  31379. + lt_prog_compiler_wl='-Qoption ld '
  31380. + lt_prog_compiler_pic='-PIC'
  31381. + lt_prog_compiler_static='-Bstatic'
  31382. ;;
  31383. sysv4 | sysv4.2uw2* | sysv4.3*)
  31384. - lt_prog_compiler_wl_GCJ='-Wl,'
  31385. - lt_prog_compiler_pic_GCJ='-KPIC'
  31386. - lt_prog_compiler_static_GCJ='-Bstatic'
  31387. + lt_prog_compiler_wl='-Wl,'
  31388. + lt_prog_compiler_pic='-KPIC'
  31389. + lt_prog_compiler_static='-Bstatic'
  31390. ;;
  31391. sysv4*MP*)
  31392. if test -d /usr/nec ;then
  31393. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  31394. - lt_prog_compiler_static_GCJ='-Bstatic'
  31395. + lt_prog_compiler_pic='-Kconform_pic'
  31396. + lt_prog_compiler_static='-Bstatic'
  31397. fi
  31398. ;;
  31399. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31400. - lt_prog_compiler_wl_GCJ='-Wl,'
  31401. - lt_prog_compiler_pic_GCJ='-KPIC'
  31402. - lt_prog_compiler_static_GCJ='-Bstatic'
  31403. + lt_prog_compiler_wl='-Wl,'
  31404. + lt_prog_compiler_pic='-KPIC'
  31405. + lt_prog_compiler_static='-Bstatic'
  31406. ;;
  31407. unicos*)
  31408. - lt_prog_compiler_wl_GCJ='-Wl,'
  31409. - lt_prog_compiler_can_build_shared_GCJ=no
  31410. + lt_prog_compiler_wl='-Wl,'
  31411. + lt_prog_compiler_can_build_shared=no
  31412. ;;
  31413. uts4*)
  31414. - lt_prog_compiler_pic_GCJ='-pic'
  31415. - lt_prog_compiler_static_GCJ='-Bstatic'
  31416. + lt_prog_compiler_pic='-pic'
  31417. + lt_prog_compiler_static='-Bstatic'
  31418. ;;
  31419. *)
  31420. - lt_prog_compiler_can_build_shared_GCJ=no
  31421. + lt_prog_compiler_can_build_shared=no
  31422. ;;
  31423. esac
  31424. fi
  31425. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  31426. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  31427. +case $host_os in
  31428. + # For platforms which do not support PIC, -DPIC is meaningless:
  31429. + *djgpp*)
  31430. + lt_prog_compiler_pic=
  31431. + ;;
  31432. + *)
  31433. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  31434. + ;;
  31435. +esac
  31436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  31437. +$as_echo "$lt_prog_compiler_pic" >&6; }
  31438. +
  31439. +
  31440. +
  31441. +
  31442. +
  31443. #
  31444. # Check to make sure the PIC flag actually works.
  31445. #
  31446. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  31447. -
  31448. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  31449. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  31450. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  31451. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31452. +if test -n "$lt_prog_compiler_pic"; then
  31453. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  31454. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  31455. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  31456. + $as_echo_n "(cached) " >&6
  31457. else
  31458. - lt_cv_prog_compiler_pic_works_GCJ=no
  31459. - ac_outfile=conftest.$ac_objext
  31460. + lt_cv_prog_compiler_pic_works=no
  31461. + ac_outfile=conftest.$ac_objext
  31462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31463. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  31464. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  31465. # Insert the option either (1) after the last *FLAGS variable, or
  31466. # (2) before a word containing "conftest.", or (3) at the end.
  31467. # Note that $ac_compile itself does not contain backslashes and begins
  31468. @@ -17000,57 +7491,53 @@
  31469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31471. -e 's:$: $lt_compiler_flag:'`
  31472. - (eval echo "\"\$as_me:17003: $lt_compile\"" >&5)
  31473. + (eval echo "\"\$as_me:7494: $lt_compile\"" >&5)
  31474. (eval "$lt_compile" 2>conftest.err)
  31475. ac_status=$?
  31476. cat conftest.err >&5
  31477. - echo "$as_me:17007: \$? = $ac_status" >&5
  31478. + echo "$as_me:7498: \$? = $ac_status" >&5
  31479. if (exit $ac_status) && test -s "$ac_outfile"; then
  31480. # The compiler can only warn and ignore the option if not recognized
  31481. # So say no if there are warnings other than the usual output.
  31482. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31483. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31484. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31485. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31486. - lt_cv_prog_compiler_pic_works_GCJ=yes
  31487. + lt_cv_prog_compiler_pic_works=yes
  31488. fi
  31489. fi
  31490. - $rm conftest*
  31491. + $RM conftest*
  31492. fi
  31493. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  31494. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  31495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  31496. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  31497. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  31498. - case $lt_prog_compiler_pic_GCJ in
  31499. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  31500. + case $lt_prog_compiler_pic in
  31501. "" | " "*) ;;
  31502. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  31503. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  31504. esac
  31505. else
  31506. - lt_prog_compiler_pic_GCJ=
  31507. - lt_prog_compiler_can_build_shared_GCJ=no
  31508. + lt_prog_compiler_pic=
  31509. + lt_prog_compiler_can_build_shared=no
  31510. fi
  31511. fi
  31512. -case $host_os in
  31513. - # For platforms which do not support PIC, -DPIC is meaningless:
  31514. - *djgpp*)
  31515. - lt_prog_compiler_pic_GCJ=
  31516. - ;;
  31517. - *)
  31518. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  31519. - ;;
  31520. -esac
  31521. +
  31522. +
  31523. +
  31524. +
  31525. +
  31526. #
  31527. # Check to make sure the static flag actually works.
  31528. #
  31529. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  31530. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31531. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31532. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  31533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31534. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  31535. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31536. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  31537. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  31538. + $as_echo_n "(cached) " >&6
  31539. else
  31540. - lt_cv_prog_compiler_static_works_GCJ=no
  31541. + lt_cv_prog_compiler_static_works=no
  31542. save_LDFLAGS="$LDFLAGS"
  31543. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31544. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  31545. @@ -17060,36 +7547,96 @@
  31546. if test -s conftest.err; then
  31547. # Append any errors to the config.log.
  31548. cat conftest.err 1>&5
  31549. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31550. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31551. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31552. if diff conftest.exp conftest.er2 >/dev/null; then
  31553. - lt_cv_prog_compiler_static_works_GCJ=yes
  31554. + lt_cv_prog_compiler_static_works=yes
  31555. fi
  31556. else
  31557. - lt_cv_prog_compiler_static_works_GCJ=yes
  31558. + lt_cv_prog_compiler_static_works=yes
  31559. fi
  31560. fi
  31561. - $rm -r conftest*
  31562. + $RM -r conftest*
  31563. LDFLAGS="$save_LDFLAGS"
  31564. fi
  31565. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  31566. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  31567. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  31568. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  31569. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  31570. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  31571. :
  31572. else
  31573. - lt_prog_compiler_static_GCJ=
  31574. + lt_prog_compiler_static=
  31575. +fi
  31576. +
  31577. +
  31578. +
  31579. +
  31580. +
  31581. +
  31582. +
  31583. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  31584. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  31585. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  31586. + $as_echo_n "(cached) " >&6
  31587. +else
  31588. + lt_cv_prog_compiler_c_o=no
  31589. + $RM -r conftest 2>/dev/null
  31590. + mkdir conftest
  31591. + cd conftest
  31592. + mkdir out
  31593. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31594. +
  31595. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  31596. + # Insert the option either (1) after the last *FLAGS variable, or
  31597. + # (2) before a word containing "conftest.", or (3) at the end.
  31598. + # Note that $ac_compile itself does not contain backslashes and begins
  31599. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  31600. + lt_compile=`echo "$ac_compile" | $SED \
  31601. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31602. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31603. + -e 's:$: $lt_compiler_flag:'`
  31604. + (eval echo "\"\$as_me:7599: $lt_compile\"" >&5)
  31605. + (eval "$lt_compile" 2>out/conftest.err)
  31606. + ac_status=$?
  31607. + cat out/conftest.err >&5
  31608. + echo "$as_me:7603: \$? = $ac_status" >&5
  31609. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31610. + then
  31611. + # The compiler can only warn and ignore the option if not recognized
  31612. + # So say no if there are warnings
  31613. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31614. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31615. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31616. + lt_cv_prog_compiler_c_o=yes
  31617. + fi
  31618. + fi
  31619. + chmod u+w . 2>&5
  31620. + $RM conftest*
  31621. + # SGI C++ compiler will create directory out/ii_files/ for
  31622. + # template instantiation
  31623. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  31624. + $RM out/* && rmdir out
  31625. + cd ..
  31626. + $RM -r conftest
  31627. + $RM conftest*
  31628. +
  31629. fi
  31630. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  31631. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  31632. +
  31633. +
  31634. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31635. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31636. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  31637. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31638. +
  31639. +
  31640. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  31641. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  31642. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  31643. + $as_echo_n "(cached) " >&6
  31644. else
  31645. - lt_cv_prog_compiler_c_o_GCJ=no
  31646. - $rm -r conftest 2>/dev/null
  31647. + lt_cv_prog_compiler_c_o=no
  31648. + $RM -r conftest 2>/dev/null
  31649. mkdir conftest
  31650. cd conftest
  31651. mkdir out
  31652. @@ -17104,91 +7651,101 @@
  31653. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31654. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31655. -e 's:$: $lt_compiler_flag:'`
  31656. - (eval echo "\"\$as_me:17107: $lt_compile\"" >&5)
  31657. + (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
  31658. (eval "$lt_compile" 2>out/conftest.err)
  31659. ac_status=$?
  31660. cat out/conftest.err >&5
  31661. - echo "$as_me:17111: \$? = $ac_status" >&5
  31662. + echo "$as_me:7658: \$? = $ac_status" >&5
  31663. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31664. then
  31665. # The compiler can only warn and ignore the option if not recognized
  31666. # So say no if there are warnings
  31667. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31668. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31669. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31670. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31671. - lt_cv_prog_compiler_c_o_GCJ=yes
  31672. + lt_cv_prog_compiler_c_o=yes
  31673. fi
  31674. fi
  31675. chmod u+w . 2>&5
  31676. - $rm conftest*
  31677. + $RM conftest*
  31678. # SGI C++ compiler will create directory out/ii_files/ for
  31679. # template instantiation
  31680. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31681. - $rm out/* && rmdir out
  31682. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  31683. + $RM out/* && rmdir out
  31684. cd ..
  31685. - rmdir conftest
  31686. - $rm conftest*
  31687. + $RM -r conftest
  31688. + $RM conftest*
  31689. fi
  31690. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  31691. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  31692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  31693. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  31694. +
  31695. +
  31696. hard_links="nottested"
  31697. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  31698. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  31699. # do not overwrite the value of need_locks provided by the user
  31700. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31701. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31702. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  31703. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  31704. hard_links=yes
  31705. - $rm conftest*
  31706. + $RM conftest*
  31707. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31708. touch conftest.a
  31709. ln conftest.a conftest.b 2>&5 || hard_links=no
  31710. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31711. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31712. -echo "${ECHO_T}$hard_links" >&6; }
  31713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  31714. +$as_echo "$hard_links" >&6; }
  31715. if test "$hard_links" = no; then
  31716. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31717. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31718. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31719. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31720. need_locks=warn
  31721. fi
  31722. else
  31723. need_locks=no
  31724. fi
  31725. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31726. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31727. +
  31728. +
  31729. +
  31730. +
  31731. +
  31732. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31733. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  31734. runpath_var=
  31735. - allow_undefined_flag_GCJ=
  31736. - enable_shared_with_static_runtimes_GCJ=no
  31737. - archive_cmds_GCJ=
  31738. - archive_expsym_cmds_GCJ=
  31739. - old_archive_From_new_cmds_GCJ=
  31740. - old_archive_from_expsyms_cmds_GCJ=
  31741. - export_dynamic_flag_spec_GCJ=
  31742. - whole_archive_flag_spec_GCJ=
  31743. - thread_safe_flag_spec_GCJ=
  31744. - hardcode_libdir_flag_spec_GCJ=
  31745. - hardcode_libdir_flag_spec_ld_GCJ=
  31746. - hardcode_libdir_separator_GCJ=
  31747. - hardcode_direct_GCJ=no
  31748. - hardcode_minus_L_GCJ=no
  31749. - hardcode_shlibpath_var_GCJ=unsupported
  31750. - link_all_deplibs_GCJ=unknown
  31751. - hardcode_automatic_GCJ=no
  31752. - module_cmds_GCJ=
  31753. - module_expsym_cmds_GCJ=
  31754. - always_export_symbols_GCJ=no
  31755. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31756. + allow_undefined_flag=
  31757. + always_export_symbols=no
  31758. + archive_cmds=
  31759. + archive_expsym_cmds=
  31760. + compiler_needs_object=no
  31761. + enable_shared_with_static_runtimes=no
  31762. + export_dynamic_flag_spec=
  31763. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31764. + hardcode_automatic=no
  31765. + hardcode_direct=no
  31766. + hardcode_direct_absolute=no
  31767. + hardcode_libdir_flag_spec=
  31768. + hardcode_libdir_flag_spec_ld=
  31769. + hardcode_libdir_separator=
  31770. + hardcode_minus_L=no
  31771. + hardcode_shlibpath_var=unsupported
  31772. + inherit_rpath=no
  31773. + link_all_deplibs=unknown
  31774. + module_cmds=
  31775. + module_expsym_cmds=
  31776. + old_archive_from_new_cmds=
  31777. + old_archive_from_expsyms_cmds=
  31778. + thread_safe_flag_spec=
  31779. + whole_archive_flag_spec=
  31780. # include_expsyms should be a list of space-separated symbols to be *always*
  31781. # included in the symbol list
  31782. - include_expsyms_GCJ=
  31783. + include_expsyms=
  31784. # exclude_expsyms can be an extended regexp of symbols to exclude
  31785. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31786. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31787. # as well as any symbol that contains `d'.
  31788. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  31789. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  31790. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31791. # platforms (ab)use it in PIC code, but their linkers get confused if
  31792. # the symbol is explicitly referenced. Since portable code cannot
  31793. @@ -17196,19 +7753,9 @@
  31794. # preloaded symbol tables.
  31795. # Exclude shared library initialization/finalization symbols.
  31796. extract_expsyms_cmds=
  31797. - # Just being paranoid about ensuring that cc_basename is set.
  31798. - for cc_temp in $compiler""; do
  31799. - case $cc_temp in
  31800. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31801. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31802. - \-*) ;;
  31803. - *) break;;
  31804. - esac
  31805. -done
  31806. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31807. case $host_os in
  31808. - cygwin* | mingw* | pw32*)
  31809. + cygwin* | mingw* | pw32* | cegcc*)
  31810. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31811. # When not using gcc, we currently assume that we are using
  31812. # Microsoft Visual C++.
  31813. @@ -17223,9 +7770,12 @@
  31814. openbsd*)
  31815. with_gnu_ld=no
  31816. ;;
  31817. + linux* | k*bsd*-gnu)
  31818. + link_all_deplibs=no
  31819. + ;;
  31820. esac
  31821. - ld_shlibs_GCJ=yes
  31822. + ld_shlibs=yes
  31823. if test "$with_gnu_ld" = yes; then
  31824. # If archive_cmds runs LD, not CC, wlarc should be empty
  31825. wlarc='${wl}'
  31826. @@ -17234,16 +7784,17 @@
  31827. # are reset later if shared libraries are not supported. Putting them
  31828. # here allows them to be overridden if necessary.
  31829. runpath_var=LD_RUN_PATH
  31830. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  31831. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  31832. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  31833. + export_dynamic_flag_spec='${wl}--export-dynamic'
  31834. # ancient GNU ld didn't support --whole-archive et. al.
  31835. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31836. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31837. - else
  31838. - whole_archive_flag_spec_GCJ=
  31839. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  31840. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31841. + else
  31842. + whole_archive_flag_spec=
  31843. fi
  31844. supports_anon_versioning=no
  31845. - case `$LD -v 2>/dev/null` in
  31846. + case `$LD -v 2>&1` in
  31847. + *GNU\ gold*) supports_anon_versioning=yes ;;
  31848. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31849. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31850. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31851. @@ -17256,8 +7807,8 @@
  31852. aix[3-9]*)
  31853. # On AIX/PPC, the GNU linker is very broken
  31854. if test "$host_cpu" != ia64; then
  31855. - ld_shlibs_GCJ=no
  31856. - cat <<EOF 1>&2
  31857. + ld_shlibs=no
  31858. + cat <<_LT_EOF 1>&2
  31859. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31860. *** to be unable to reliably create shared libraries on AIX.
  31861. @@ -17265,49 +7816,50 @@
  31862. *** really care for shared libraries, you may want to modify your PATH
  31863. *** so that a non-GNU linker is found, and then restart.
  31864. -EOF
  31865. +_LT_EOF
  31866. fi
  31867. ;;
  31868. amigaos*)
  31869. - 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)'
  31870. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31871. - hardcode_minus_L_GCJ=yes
  31872. -
  31873. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31874. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31875. - # to version 4, is to share data among multiple programs linked
  31876. - # with the same dynamic library. Since this doesn't match the
  31877. - # behavior of shared libraries on other platforms, we can't use
  31878. - # them.
  31879. - ld_shlibs_GCJ=no
  31880. + case $host_cpu in
  31881. + powerpc)
  31882. + # see comment about AmigaOS4 .so support
  31883. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31884. + archive_expsym_cmds=''
  31885. + ;;
  31886. + m68k)
  31887. + 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)'
  31888. + hardcode_libdir_flag_spec='-L$libdir'
  31889. + hardcode_minus_L=yes
  31890. + ;;
  31891. + esac
  31892. ;;
  31893. beos*)
  31894. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31895. - allow_undefined_flag_GCJ=unsupported
  31896. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  31897. + allow_undefined_flag=unsupported
  31898. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31899. # support --undefined. This deserves some investigation. FIXME
  31900. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31901. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31902. else
  31903. - ld_shlibs_GCJ=no
  31904. + ld_shlibs=no
  31905. fi
  31906. ;;
  31907. - cygwin* | mingw* | pw32*)
  31908. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  31909. + cygwin* | mingw* | pw32* | cegcc*)
  31910. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  31911. # as there is no search path for DLLs.
  31912. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31913. - allow_undefined_flag_GCJ=unsupported
  31914. - always_export_symbols_GCJ=no
  31915. - enable_shared_with_static_runtimes_GCJ=yes
  31916. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  31917. + hardcode_libdir_flag_spec='-L$libdir'
  31918. + allow_undefined_flag=unsupported
  31919. + always_export_symbols=no
  31920. + enable_shared_with_static_runtimes=yes
  31921. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  31922. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31923. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31924. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  31925. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31926. # If the export-symbols file already is a .def file (1st line
  31927. # is EXPORTS), use it as is; otherwise, prepend...
  31928. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31929. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31930. cp $export_symbols $output_objdir/$soname.def;
  31931. else
  31932. echo EXPORTS > $output_objdir/$soname.def;
  31933. @@ -17315,80 +7867,109 @@
  31934. fi~
  31935. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31936. else
  31937. - ld_shlibs_GCJ=no
  31938. + ld_shlibs=no
  31939. fi
  31940. ;;
  31941. interix[3-9]*)
  31942. - hardcode_direct_GCJ=no
  31943. - hardcode_shlibpath_var_GCJ=no
  31944. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  31945. - export_dynamic_flag_spec_GCJ='${wl}-E'
  31946. + hardcode_direct=no
  31947. + hardcode_shlibpath_var=no
  31948. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  31949. + export_dynamic_flag_spec='${wl}-E'
  31950. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31951. # Instead, shared libraries are loaded at an image base (0x10000000 by
  31952. # default) and relocated if they conflict, which is a slow very memory
  31953. # consuming and fragmenting process. To avoid this, we pick a random,
  31954. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31955. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31956. - 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'
  31957. - 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'
  31958. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31959. + 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'
  31960. ;;
  31961. - gnu* | linux* | k*bsd*-gnu)
  31962. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31963. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  31964. + tmp_diet=no
  31965. + if test "$host_os" = linux-dietlibc; then
  31966. + case $cc_basename in
  31967. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  31968. + esac
  31969. + fi
  31970. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  31971. + && test "$tmp_diet" = no
  31972. + then
  31973. tmp_addflag=
  31974. + tmp_sharedflag='-shared'
  31975. case $cc_basename,$host_cpu in
  31976. - pgcc*) # Portland Group C compiler
  31977. - 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'
  31978. + pgcc*) # Portland Group C compiler
  31979. + 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'
  31980. tmp_addflag=' $pic_flag'
  31981. ;;
  31982. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31983. - 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'
  31984. + 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'
  31985. tmp_addflag=' $pic_flag -Mnomain' ;;
  31986. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31987. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31988. tmp_addflag=' -i_dynamic' ;;
  31989. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31990. tmp_addflag=' -i_dynamic -nofor_main' ;;
  31991. ifc* | ifort*) # Intel Fortran compiler
  31992. tmp_addflag=' -nofor_main' ;;
  31993. + lf95*) # Lahey Fortran 8.1
  31994. + whole_archive_flag_spec=
  31995. + tmp_sharedflag='--shared' ;;
  31996. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  31997. + tmp_sharedflag='-qmkshrobj'
  31998. + tmp_addflag= ;;
  31999. esac
  32000. case `$CC -V 2>&1 | sed 5q` in
  32001. *Sun\ C*) # Sun C 5.9
  32002. - 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'
  32003. + 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'
  32004. + compiler_needs_object=yes
  32005. tmp_sharedflag='-G' ;;
  32006. *Sun\ F*) # Sun Fortran 8.3
  32007. tmp_sharedflag='-G' ;;
  32008. - *)
  32009. - tmp_sharedflag='-shared' ;;
  32010. esac
  32011. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32012. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32013. - if test $supports_anon_versioning = yes; then
  32014. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  32015. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32016. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  32017. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32018. - fi
  32019. - link_all_deplibs_GCJ=no
  32020. + if test "x$supports_anon_versioning" = xyes; then
  32021. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  32022. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32023. + echo "local: *; };" >> $output_objdir/$libname.ver~
  32024. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32025. + fi
  32026. +
  32027. + case $cc_basename in
  32028. + xlf*)
  32029. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  32030. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  32031. + hardcode_libdir_flag_spec=
  32032. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  32033. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  32034. + if test "x$supports_anon_versioning" = xyes; then
  32035. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  32036. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32037. + echo "local: *; };" >> $output_objdir/$libname.ver~
  32038. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  32039. + fi
  32040. + ;;
  32041. + esac
  32042. else
  32043. - ld_shlibs_GCJ=no
  32044. + ld_shlibs=no
  32045. fi
  32046. ;;
  32047. netbsd* | netbsdelf*-gnu)
  32048. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32049. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  32050. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  32051. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  32052. wlarc=
  32053. else
  32054. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32055. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32056. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32057. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32058. fi
  32059. ;;
  32060. solaris*)
  32061. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  32062. - ld_shlibs_GCJ=no
  32063. - cat <<EOF 1>&2
  32064. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  32065. + ld_shlibs=no
  32066. + cat <<_LT_EOF 1>&2
  32067. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  32068. *** create shared libraries on Solaris systems. Therefore, libtool
  32069. @@ -17397,19 +7978,19 @@
  32070. *** your PATH or compiler configuration so that the native linker is
  32071. *** used, and then restart.
  32072. -EOF
  32073. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32074. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32075. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32076. +_LT_EOF
  32077. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  32078. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32079. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32080. else
  32081. - ld_shlibs_GCJ=no
  32082. + ld_shlibs=no
  32083. fi
  32084. ;;
  32085. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  32086. case `$LD -v 2>&1` in
  32087. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  32088. - ld_shlibs_GCJ=no
  32089. + ld_shlibs=no
  32090. cat <<_LT_EOF 1>&2
  32091. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  32092. @@ -17422,54 +8003,58 @@
  32093. _LT_EOF
  32094. ;;
  32095. *)
  32096. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32097. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  32098. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  32099. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  32100. + # For security reasons, it is highly recommended that you always
  32101. + # use absolute paths for naming shared libraries, and exclude the
  32102. + # DT_RUNPATH tag from executables and libraries. But doing so
  32103. + # requires that you compile everything twice, which is a pain.
  32104. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  32105. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32106. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32107. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32108. else
  32109. - ld_shlibs_GCJ=no
  32110. + ld_shlibs=no
  32111. fi
  32112. ;;
  32113. esac
  32114. ;;
  32115. sunos4*)
  32116. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32117. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32118. wlarc=
  32119. - hardcode_direct_GCJ=yes
  32120. - hardcode_shlibpath_var_GCJ=no
  32121. + hardcode_direct=yes
  32122. + hardcode_shlibpath_var=no
  32123. ;;
  32124. *)
  32125. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32126. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32127. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32128. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  32129. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32130. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32131. else
  32132. - ld_shlibs_GCJ=no
  32133. + ld_shlibs=no
  32134. fi
  32135. ;;
  32136. esac
  32137. - if test "$ld_shlibs_GCJ" = no; then
  32138. + if test "$ld_shlibs" = no; then
  32139. runpath_var=
  32140. - hardcode_libdir_flag_spec_GCJ=
  32141. - export_dynamic_flag_spec_GCJ=
  32142. - whole_archive_flag_spec_GCJ=
  32143. + hardcode_libdir_flag_spec=
  32144. + export_dynamic_flag_spec=
  32145. + whole_archive_flag_spec=
  32146. fi
  32147. else
  32148. # PORTME fill in a description of your system's linker (not GNU ld)
  32149. case $host_os in
  32150. aix3*)
  32151. - allow_undefined_flag_GCJ=unsupported
  32152. - always_export_symbols_GCJ=yes
  32153. - 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'
  32154. + allow_undefined_flag=unsupported
  32155. + always_export_symbols=yes
  32156. + 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'
  32157. # Note: this linker hardcodes the directories in LIBPATH if there
  32158. # are no directories specified by -L.
  32159. - hardcode_minus_L_GCJ=yes
  32160. + hardcode_minus_L=yes
  32161. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  32162. # Neither direct hardcoding nor static linking is supported with a
  32163. # broken collect2.
  32164. - hardcode_direct_GCJ=unsupported
  32165. + hardcode_direct=unsupported
  32166. fi
  32167. ;;
  32168. @@ -17483,10 +8068,10 @@
  32169. else
  32170. # If we're using GNU nm, then we don't want the "-C" option.
  32171. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32172. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32173. - 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'
  32174. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  32175. + 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'
  32176. else
  32177. - 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'
  32178. + 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'
  32179. fi
  32180. aix_use_runtimelinking=no
  32181. @@ -17495,10 +8080,10 @@
  32182. # need to do runtime linking.
  32183. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  32184. for ld_flag in $LDFLAGS; do
  32185. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  32186. - aix_use_runtimelinking=yes
  32187. - break
  32188. - fi
  32189. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  32190. + aix_use_runtimelinking=yes
  32191. + break
  32192. + fi
  32193. done
  32194. ;;
  32195. esac
  32196. @@ -17513,30 +8098,32 @@
  32197. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  32198. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  32199. - archive_cmds_GCJ=''
  32200. - hardcode_direct_GCJ=yes
  32201. - hardcode_libdir_separator_GCJ=':'
  32202. - link_all_deplibs_GCJ=yes
  32203. + archive_cmds=''
  32204. + hardcode_direct=yes
  32205. + hardcode_direct_absolute=yes
  32206. + hardcode_libdir_separator=':'
  32207. + link_all_deplibs=yes
  32208. + file_list_spec='${wl}-f,'
  32209. if test "$GCC" = yes; then
  32210. case $host_os in aix4.[012]|aix4.[012].*)
  32211. # We only want to do this on AIX 4.2 and lower, the check
  32212. # below for broken collect2 doesn't work under 4.3+
  32213. collect2name=`${CC} -print-prog-name=collect2`
  32214. - if test -f "$collect2name" && \
  32215. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32216. + if test -f "$collect2name" &&
  32217. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  32218. then
  32219. - # We have reworked collect2
  32220. - :
  32221. + # We have reworked collect2
  32222. + :
  32223. else
  32224. - # We have old collect2
  32225. - hardcode_direct_GCJ=unsupported
  32226. - # It fails to find uninstalled libraries when the uninstalled
  32227. - # path is not listed in the libpath. Setting hardcode_minus_L
  32228. - # to unsupported forces relinking
  32229. - hardcode_minus_L_GCJ=yes
  32230. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32231. - hardcode_libdir_separator_GCJ=
  32232. + # We have old collect2
  32233. + hardcode_direct=unsupported
  32234. + # It fails to find uninstalled libraries when the uninstalled
  32235. + # path is not listed in the libpath. Setting hardcode_minus_L
  32236. + # to unsupported forces relinking
  32237. + hardcode_minus_L=yes
  32238. + hardcode_libdir_flag_spec='-L$libdir'
  32239. + hardcode_libdir_separator=
  32240. fi
  32241. ;;
  32242. esac
  32243. @@ -17544,11 +8131,12 @@
  32244. if test "$aix_use_runtimelinking" = yes; then
  32245. shared_flag="$shared_flag "'${wl}-G'
  32246. fi
  32247. + link_all_deplibs=no
  32248. else
  32249. # not using gcc
  32250. if test "$host_cpu" = ia64; then
  32251. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32252. - # chokes on -Wl,-G. The following line is correct:
  32253. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32254. + # chokes on -Wl,-G. The following line is correct:
  32255. shared_flag='-G'
  32256. else
  32257. if test "$aix_use_runtimelinking" = yes; then
  32258. @@ -17559,19 +8147,17 @@
  32259. fi
  32260. fi
  32261. + export_dynamic_flag_spec='${wl}-bexpall'
  32262. # It seems that -bexpall does not export symbols beginning with
  32263. # underscore (_), so it is better to generate a list of symbols to export.
  32264. - always_export_symbols_GCJ=yes
  32265. + always_export_symbols=yes
  32266. if test "$aix_use_runtimelinking" = yes; then
  32267. # Warning - without using the other runtime loading flags (-brtl),
  32268. # -berok will link without error, but may produce a broken library.
  32269. - allow_undefined_flag_GCJ='-berok'
  32270. - # Determine the default libpath from the value encoded in an empty executable.
  32271. - cat >conftest.$ac_ext <<_ACEOF
  32272. -/* confdefs.h. */
  32273. -_ACEOF
  32274. -cat confdefs.h >>conftest.$ac_ext
  32275. -cat >>conftest.$ac_ext <<_ACEOF
  32276. + allow_undefined_flag='-berok'
  32277. + # Determine the default libpath from the value encoded in an
  32278. + # empty executable.
  32279. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32280. /* end confdefs.h. */
  32281. int
  32282. @@ -17582,24 +8168,7 @@
  32283. return 0;
  32284. }
  32285. _ACEOF
  32286. -rm -f conftest.$ac_objext conftest$ac_exeext
  32287. -if { (ac_try="$ac_link"
  32288. -case "(($ac_try" in
  32289. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32290. - *) ac_try_echo=$ac_try;;
  32291. -esac
  32292. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32293. - (eval "$ac_link") 2>conftest.er1
  32294. - ac_status=$?
  32295. - grep -v '^ *+' conftest.er1 >conftest.err
  32296. - rm -f conftest.er1
  32297. - cat conftest.err >&5
  32298. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32299. - (exit $ac_status); } && {
  32300. - test -z "$ac_c_werror_flag" ||
  32301. - test ! -s conftest.err
  32302. - } && test -s conftest$ac_exeext &&
  32303. - $as_test_x conftest$ac_exeext; then
  32304. +if ac_fn_c_try_link "$LINENO"; then :
  32305. lt_aix_libpath_sed='
  32306. /Import File Strings/,/^$/ {
  32307. @@ -17613,31 +8182,22 @@
  32308. if test -z "$aix_libpath"; then
  32309. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32310. fi
  32311. -else
  32312. - echo "$as_me: failed program was:" >&5
  32313. -sed 's/^/| /' conftest.$ac_ext >&5
  32314. -
  32315. -
  32316. fi
  32317. -
  32318. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32319. - conftest$ac_exeext conftest.$ac_ext
  32320. +rm -f core conftest.err conftest.$ac_objext \
  32321. + conftest$ac_exeext conftest.$ac_ext
  32322. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32323. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  32324. - 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"
  32325. - else
  32326. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  32327. + 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"
  32328. + else
  32329. if test "$host_cpu" = ia64; then
  32330. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  32331. - allow_undefined_flag_GCJ="-z nodefs"
  32332. - 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"
  32333. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  32334. + allow_undefined_flag="-z nodefs"
  32335. + 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"
  32336. else
  32337. - # Determine the default libpath from the value encoded in an empty executable.
  32338. - cat >conftest.$ac_ext <<_ACEOF
  32339. -/* confdefs.h. */
  32340. -_ACEOF
  32341. -cat confdefs.h >>conftest.$ac_ext
  32342. -cat >>conftest.$ac_ext <<_ACEOF
  32343. + # Determine the default libpath from the value encoded in an
  32344. + # empty executable.
  32345. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32346. /* end confdefs.h. */
  32347. int
  32348. @@ -17648,24 +8208,7 @@
  32349. return 0;
  32350. }
  32351. _ACEOF
  32352. -rm -f conftest.$ac_objext conftest$ac_exeext
  32353. -if { (ac_try="$ac_link"
  32354. -case "(($ac_try" in
  32355. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32356. - *) ac_try_echo=$ac_try;;
  32357. -esac
  32358. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32359. - (eval "$ac_link") 2>conftest.er1
  32360. - ac_status=$?
  32361. - grep -v '^ *+' conftest.er1 >conftest.err
  32362. - rm -f conftest.er1
  32363. - cat conftest.err >&5
  32364. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32365. - (exit $ac_status); } && {
  32366. - test -z "$ac_c_werror_flag" ||
  32367. - test ! -s conftest.err
  32368. - } && test -s conftest$ac_exeext &&
  32369. - $as_test_x conftest$ac_exeext; then
  32370. +if ac_fn_c_try_link "$LINENO"; then :
  32371. lt_aix_libpath_sed='
  32372. /Import File Strings/,/^$/ {
  32373. @@ -17679,121 +8222,100 @@
  32374. if test -z "$aix_libpath"; then
  32375. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32376. fi
  32377. -else
  32378. - echo "$as_me: failed program was:" >&5
  32379. -sed 's/^/| /' conftest.$ac_ext >&5
  32380. -
  32381. -
  32382. fi
  32383. -
  32384. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32385. - conftest$ac_exeext conftest.$ac_ext
  32386. +rm -f core conftest.err conftest.$ac_objext \
  32387. + conftest$ac_exeext conftest.$ac_ext
  32388. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32389. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  32390. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  32391. # Warning - without using the other run time loading flags,
  32392. # -berok will link without error, but may produce a broken library.
  32393. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  32394. - allow_undefined_flag_GCJ=' ${wl}-berok'
  32395. + no_undefined_flag=' ${wl}-bernotok'
  32396. + allow_undefined_flag=' ${wl}-berok'
  32397. # Exported symbols can be pulled into shared objects from archives
  32398. - whole_archive_flag_spec_GCJ='$convenience'
  32399. - archive_cmds_need_lc_GCJ=yes
  32400. + whole_archive_flag_spec='$convenience'
  32401. + archive_cmds_need_lc=yes
  32402. # This is similar to how AIX traditionally builds its shared libraries.
  32403. - 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'
  32404. + 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'
  32405. fi
  32406. fi
  32407. ;;
  32408. amigaos*)
  32409. - 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)'
  32410. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32411. - hardcode_minus_L_GCJ=yes
  32412. - # see comment about different semantics on the GNU ld section
  32413. - ld_shlibs_GCJ=no
  32414. + case $host_cpu in
  32415. + powerpc)
  32416. + # see comment about AmigaOS4 .so support
  32417. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32418. + archive_expsym_cmds=''
  32419. + ;;
  32420. + m68k)
  32421. + 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)'
  32422. + hardcode_libdir_flag_spec='-L$libdir'
  32423. + hardcode_minus_L=yes
  32424. + ;;
  32425. + esac
  32426. ;;
  32427. bsdi[45]*)
  32428. - export_dynamic_flag_spec_GCJ=-rdynamic
  32429. + export_dynamic_flag_spec=-rdynamic
  32430. ;;
  32431. - cygwin* | mingw* | pw32*)
  32432. + cygwin* | mingw* | pw32* | cegcc*)
  32433. # When not using gcc, we currently assume that we are using
  32434. # Microsoft Visual C++.
  32435. # hardcode_libdir_flag_spec is actually meaningless, as there is
  32436. # no search path for DLLs.
  32437. - hardcode_libdir_flag_spec_GCJ=' '
  32438. - allow_undefined_flag_GCJ=unsupported
  32439. + hardcode_libdir_flag_spec=' '
  32440. + allow_undefined_flag=unsupported
  32441. # Tell ltmain to make .lib files, not .a files.
  32442. libext=lib
  32443. # Tell ltmain to make .dll files, not .so files.
  32444. shrext_cmds=".dll"
  32445. # FIXME: Setting linknames here is a bad hack.
  32446. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32447. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32448. # The linker will automatically build a .lib file if we build a DLL.
  32449. - old_archive_From_new_cmds_GCJ='true'
  32450. + old_archive_from_new_cmds='true'
  32451. # FIXME: Should let the user specify the lib program.
  32452. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  32453. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  32454. - enable_shared_with_static_runtimes_GCJ=yes
  32455. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  32456. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  32457. + enable_shared_with_static_runtimes=yes
  32458. ;;
  32459. darwin* | rhapsody*)
  32460. - case $host_os in
  32461. - rhapsody* | darwin1.[012])
  32462. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  32463. - ;;
  32464. - *) # Darwin 1.3 on
  32465. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32466. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32467. - else
  32468. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32469. - 10.[012])
  32470. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32471. - ;;
  32472. - 10.*)
  32473. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  32474. - ;;
  32475. - esac
  32476. - fi
  32477. - ;;
  32478. - esac
  32479. - archive_cmds_need_lc_GCJ=no
  32480. - hardcode_direct_GCJ=no
  32481. - hardcode_automatic_GCJ=yes
  32482. - hardcode_shlibpath_var_GCJ=unsupported
  32483. - whole_archive_flag_spec_GCJ=''
  32484. - link_all_deplibs_GCJ=yes
  32485. - if test "$GCC" = yes ; then
  32486. - output_verbose_link_cmd='echo'
  32487. - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  32488. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  32489. - archive_expsym_cmds_GCJ="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}"
  32490. - module_expsym_cmds_GCJ="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}"
  32491. - else
  32492. - case $cc_basename in
  32493. - xlc*)
  32494. - output_verbose_link_cmd='echo'
  32495. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  32496. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32497. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32498. - 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}'
  32499. - 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}'
  32500. - ;;
  32501. - *)
  32502. - ld_shlibs_GCJ=no
  32503. - ;;
  32504. - esac
  32505. - fi
  32506. +
  32507. +
  32508. + archive_cmds_need_lc=no
  32509. + hardcode_direct=no
  32510. + hardcode_automatic=yes
  32511. + hardcode_shlibpath_var=unsupported
  32512. + whole_archive_flag_spec=''
  32513. + link_all_deplibs=yes
  32514. + allow_undefined_flag="$_lt_dar_allow_undefined"
  32515. + case $cc_basename in
  32516. + ifort*) _lt_dar_can_shared=yes ;;
  32517. + *) _lt_dar_can_shared=$GCC ;;
  32518. + esac
  32519. + if test "$_lt_dar_can_shared" = "yes"; then
  32520. + output_verbose_link_cmd=echo
  32521. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  32522. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  32523. + 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}"
  32524. + 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}"
  32525. +
  32526. + else
  32527. + ld_shlibs=no
  32528. + fi
  32529. +
  32530. ;;
  32531. dgux*)
  32532. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32533. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32534. - hardcode_shlibpath_var_GCJ=no
  32535. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32536. + hardcode_libdir_flag_spec='-L$libdir'
  32537. + hardcode_shlibpath_var=no
  32538. ;;
  32539. freebsd1*)
  32540. - ld_shlibs_GCJ=no
  32541. + ld_shlibs=no
  32542. ;;
  32543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32544. @@ -17801,60 +8323,60 @@
  32545. # does not break anything, and helps significantly (at the cost of a little
  32546. # extra space).
  32547. freebsd2.2*)
  32548. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32549. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  32550. - hardcode_direct_GCJ=yes
  32551. - hardcode_shlibpath_var_GCJ=no
  32552. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32553. + hardcode_libdir_flag_spec='-R$libdir'
  32554. + hardcode_direct=yes
  32555. + hardcode_shlibpath_var=no
  32556. ;;
  32557. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32558. freebsd2*)
  32559. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32560. - hardcode_direct_GCJ=yes
  32561. - hardcode_minus_L_GCJ=yes
  32562. - hardcode_shlibpath_var_GCJ=no
  32563. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32564. + hardcode_direct=yes
  32565. + hardcode_minus_L=yes
  32566. + hardcode_shlibpath_var=no
  32567. ;;
  32568. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32569. freebsd* | dragonfly*)
  32570. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32571. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  32572. - hardcode_direct_GCJ=yes
  32573. - hardcode_shlibpath_var_GCJ=no
  32574. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32575. + hardcode_libdir_flag_spec='-R$libdir'
  32576. + hardcode_direct=yes
  32577. + hardcode_shlibpath_var=no
  32578. ;;
  32579. hpux9*)
  32580. if test "$GCC" = yes; then
  32581. - 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'
  32582. + 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'
  32583. else
  32584. - 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'
  32585. + 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'
  32586. fi
  32587. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  32588. - hardcode_libdir_separator_GCJ=:
  32589. - hardcode_direct_GCJ=yes
  32590. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32591. + hardcode_libdir_separator=:
  32592. + hardcode_direct=yes
  32593. # hardcode_minus_L: Not really in the search PATH,
  32594. # but as the default location of the library.
  32595. - hardcode_minus_L_GCJ=yes
  32596. - export_dynamic_flag_spec_GCJ='${wl}-E'
  32597. + hardcode_minus_L=yes
  32598. + export_dynamic_flag_spec='${wl}-E'
  32599. ;;
  32600. hpux10*)
  32601. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32602. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32603. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32604. else
  32605. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32606. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32607. fi
  32608. if test "$with_gnu_ld" = no; then
  32609. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  32610. - hardcode_libdir_separator_GCJ=:
  32611. -
  32612. - hardcode_direct_GCJ=yes
  32613. - export_dynamic_flag_spec_GCJ='${wl}-E'
  32614. -
  32615. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32616. + hardcode_libdir_flag_spec_ld='+b $libdir'
  32617. + hardcode_libdir_separator=:
  32618. + hardcode_direct=yes
  32619. + hardcode_direct_absolute=yes
  32620. + export_dynamic_flag_spec='${wl}-E'
  32621. # hardcode_minus_L: Not really in the search PATH,
  32622. # but as the default location of the library.
  32623. - hardcode_minus_L_GCJ=yes
  32624. + hardcode_minus_L=yes
  32625. fi
  32626. ;;
  32627. @@ -17862,45 +8384,45 @@
  32628. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32629. case $host_cpu in
  32630. hppa*64*)
  32631. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32632. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32633. ;;
  32634. ia64*)
  32635. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32636. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32637. ;;
  32638. *)
  32639. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32640. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32641. ;;
  32642. esac
  32643. else
  32644. case $host_cpu in
  32645. hppa*64*)
  32646. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32647. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32648. ;;
  32649. ia64*)
  32650. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32651. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32652. ;;
  32653. *)
  32654. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32655. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32656. ;;
  32657. esac
  32658. fi
  32659. if test "$with_gnu_ld" = no; then
  32660. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  32661. - hardcode_libdir_separator_GCJ=:
  32662. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32663. + hardcode_libdir_separator=:
  32664. case $host_cpu in
  32665. hppa*64*|ia64*)
  32666. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  32667. - hardcode_direct_GCJ=no
  32668. - hardcode_shlibpath_var_GCJ=no
  32669. + hardcode_direct=no
  32670. + hardcode_shlibpath_var=no
  32671. ;;
  32672. *)
  32673. - hardcode_direct_GCJ=yes
  32674. - export_dynamic_flag_spec_GCJ='${wl}-E'
  32675. + hardcode_direct=yes
  32676. + hardcode_direct_absolute=yes
  32677. + export_dynamic_flag_spec='${wl}-E'
  32678. # hardcode_minus_L: Not really in the search PATH,
  32679. # but as the default location of the library.
  32680. - hardcode_minus_L_GCJ=yes
  32681. + hardcode_minus_L=yes
  32682. ;;
  32683. esac
  32684. fi
  32685. @@ -17908,194 +8430,228 @@
  32686. irix5* | irix6* | nonstopux*)
  32687. if test "$GCC" = yes; then
  32688. - 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'
  32689. + 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'
  32690. + # Try to use the -exported_symbol ld option, if it does not
  32691. + # work, assume that -exports_file does not work either and
  32692. + # implicitly export all symbols.
  32693. + save_LDFLAGS="$LDFLAGS"
  32694. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  32695. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32696. +/* end confdefs.h. */
  32697. +int foo(void) {}
  32698. +_ACEOF
  32699. +if ac_fn_c_try_link "$LINENO"; then :
  32700. + 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'
  32701. +
  32702. +fi
  32703. +rm -f core conftest.err conftest.$ac_objext \
  32704. + conftest$ac_exeext conftest.$ac_ext
  32705. + LDFLAGS="$save_LDFLAGS"
  32706. else
  32707. - 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'
  32708. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  32709. + 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'
  32710. + 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'
  32711. fi
  32712. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  32713. - hardcode_libdir_separator_GCJ=:
  32714. - link_all_deplibs_GCJ=yes
  32715. + archive_cmds_need_lc='no'
  32716. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32717. + hardcode_libdir_separator=:
  32718. + inherit_rpath=yes
  32719. + link_all_deplibs=yes
  32720. ;;
  32721. netbsd* | netbsdelf*-gnu)
  32722. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32723. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32724. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  32725. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32726. else
  32727. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32728. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32729. fi
  32730. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  32731. - hardcode_direct_GCJ=yes
  32732. - hardcode_shlibpath_var_GCJ=no
  32733. + hardcode_libdir_flag_spec='-R$libdir'
  32734. + hardcode_direct=yes
  32735. + hardcode_shlibpath_var=no
  32736. ;;
  32737. newsos6)
  32738. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32739. - hardcode_direct_GCJ=yes
  32740. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  32741. - hardcode_libdir_separator_GCJ=:
  32742. - hardcode_shlibpath_var_GCJ=no
  32743. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32744. + hardcode_direct=yes
  32745. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32746. + hardcode_libdir_separator=:
  32747. + hardcode_shlibpath_var=no
  32748. + ;;
  32749. +
  32750. + *nto* | *qnx*)
  32751. ;;
  32752. openbsd*)
  32753. if test -f /usr/libexec/ld.so; then
  32754. - hardcode_direct_GCJ=yes
  32755. - hardcode_shlibpath_var_GCJ=no
  32756. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32757. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32758. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32759. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  32760. - export_dynamic_flag_spec_GCJ='${wl}-E'
  32761. + hardcode_direct=yes
  32762. + hardcode_shlibpath_var=no
  32763. + hardcode_direct_absolute=yes
  32764. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32765. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32766. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32767. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32768. + export_dynamic_flag_spec='${wl}-E'
  32769. else
  32770. case $host_os in
  32771. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32772. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32773. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  32774. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32775. + hardcode_libdir_flag_spec='-R$libdir'
  32776. ;;
  32777. *)
  32778. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32779. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  32780. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32781. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32782. ;;
  32783. esac
  32784. - fi
  32785. + fi
  32786. else
  32787. - ld_shlibs_GCJ=no
  32788. + ld_shlibs=no
  32789. fi
  32790. ;;
  32791. os2*)
  32792. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32793. - hardcode_minus_L_GCJ=yes
  32794. - allow_undefined_flag_GCJ=unsupported
  32795. - 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'
  32796. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32797. + hardcode_libdir_flag_spec='-L$libdir'
  32798. + hardcode_minus_L=yes
  32799. + allow_undefined_flag=unsupported
  32800. + 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'
  32801. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32802. ;;
  32803. osf3*)
  32804. if test "$GCC" = yes; then
  32805. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  32806. - 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'
  32807. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32808. + 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'
  32809. else
  32810. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  32811. - 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'
  32812. + allow_undefined_flag=' -expect_unresolved \*'
  32813. + 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'
  32814. fi
  32815. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  32816. - hardcode_libdir_separator_GCJ=:
  32817. + archive_cmds_need_lc='no'
  32818. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32819. + hardcode_libdir_separator=:
  32820. ;;
  32821. osf4* | osf5*) # as osf3* with the addition of -msym flag
  32822. if test "$GCC" = yes; then
  32823. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  32824. - 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'
  32825. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  32826. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32827. + 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'
  32828. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32829. else
  32830. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  32831. - 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'
  32832. - 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~
  32833. - $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'
  32834. + allow_undefined_flag=' -expect_unresolved \*'
  32835. + 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'
  32836. + 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~
  32837. + $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'
  32838. # Both c and cxx compiler support -rpath directly
  32839. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  32840. + hardcode_libdir_flag_spec='-rpath $libdir'
  32841. fi
  32842. - hardcode_libdir_separator_GCJ=:
  32843. + archive_cmds_need_lc='no'
  32844. + hardcode_libdir_separator=:
  32845. ;;
  32846. solaris*)
  32847. - no_undefined_flag_GCJ=' -z text'
  32848. + no_undefined_flag=' -z defs'
  32849. if test "$GCC" = yes; then
  32850. wlarc='${wl}'
  32851. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32852. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32853. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32854. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32855. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32856. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  32857. else
  32858. - wlarc=''
  32859. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32860. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32861. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32862. + case `$CC -V 2>&1` in
  32863. + *"Compilers 5.0"*)
  32864. + wlarc=''
  32865. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32866. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32867. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  32868. + ;;
  32869. + *)
  32870. + wlarc='${wl}'
  32871. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32872. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32873. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  32874. + ;;
  32875. + esac
  32876. fi
  32877. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  32878. - hardcode_shlibpath_var_GCJ=no
  32879. + hardcode_libdir_flag_spec='-R$libdir'
  32880. + hardcode_shlibpath_var=no
  32881. case $host_os in
  32882. solaris2.[0-5] | solaris2.[0-5].*) ;;
  32883. *)
  32884. # The compiler driver will combine and reorder linker options,
  32885. # but understands `-z linker_flag'. GCC discards it without `$wl',
  32886. # but is careful enough not to reorder.
  32887. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32888. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  32889. if test "$GCC" = yes; then
  32890. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32891. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32892. else
  32893. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  32894. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  32895. fi
  32896. ;;
  32897. esac
  32898. - link_all_deplibs_GCJ=yes
  32899. + link_all_deplibs=yes
  32900. ;;
  32901. sunos4*)
  32902. if test "x$host_vendor" = xsequent; then
  32903. # Use $CC to link under sequent, because it throws in some extra .o
  32904. # files that make .init and .fini sections work.
  32905. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32906. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32907. else
  32908. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32909. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32910. fi
  32911. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32912. - hardcode_direct_GCJ=yes
  32913. - hardcode_minus_L_GCJ=yes
  32914. - hardcode_shlibpath_var_GCJ=no
  32915. + hardcode_libdir_flag_spec='-L$libdir'
  32916. + hardcode_direct=yes
  32917. + hardcode_minus_L=yes
  32918. + hardcode_shlibpath_var=no
  32919. ;;
  32920. sysv4)
  32921. case $host_vendor in
  32922. sni)
  32923. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32924. - hardcode_direct_GCJ=yes # is this really true???
  32925. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32926. + hardcode_direct=yes # is this really true???
  32927. ;;
  32928. siemens)
  32929. ## LD is ld it makes a PLAMLIB
  32930. ## CC just makes a GrossModule.
  32931. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32932. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  32933. - hardcode_direct_GCJ=no
  32934. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32935. + reload_cmds='$CC -r -o $output$reload_objs'
  32936. + hardcode_direct=no
  32937. ;;
  32938. motorola)
  32939. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32940. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  32941. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32942. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  32943. ;;
  32944. esac
  32945. runpath_var='LD_RUN_PATH'
  32946. - hardcode_shlibpath_var_GCJ=no
  32947. + hardcode_shlibpath_var=no
  32948. ;;
  32949. sysv4.3*)
  32950. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32951. - hardcode_shlibpath_var_GCJ=no
  32952. - export_dynamic_flag_spec_GCJ='-Bexport'
  32953. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32954. + hardcode_shlibpath_var=no
  32955. + export_dynamic_flag_spec='-Bexport'
  32956. ;;
  32957. sysv4*MP*)
  32958. if test -d /usr/nec; then
  32959. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32960. - hardcode_shlibpath_var_GCJ=no
  32961. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32962. + hardcode_shlibpath_var=no
  32963. runpath_var=LD_RUN_PATH
  32964. hardcode_runpath_var=yes
  32965. - ld_shlibs_GCJ=yes
  32966. + ld_shlibs=yes
  32967. fi
  32968. ;;
  32969. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32970. - no_undefined_flag_GCJ='${wl}-z,text'
  32971. - archive_cmds_need_lc_GCJ=no
  32972. - hardcode_shlibpath_var_GCJ=no
  32973. + no_undefined_flag='${wl}-z,text'
  32974. + archive_cmds_need_lc=no
  32975. + hardcode_shlibpath_var=no
  32976. runpath_var='LD_RUN_PATH'
  32977. if test "$GCC" = yes; then
  32978. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32979. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32980. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32981. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32982. else
  32983. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32984. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32985. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32986. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32987. fi
  32988. ;;
  32989. @@ -18106,51 +8662,75 @@
  32990. # ever link correctly. If we're not using GNU ld we use -z text
  32991. # though, which does catch some bad symbols but isn't as heavy-handed
  32992. # as -z defs.
  32993. - no_undefined_flag_GCJ='${wl}-z,text'
  32994. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  32995. - archive_cmds_need_lc_GCJ=no
  32996. - hardcode_shlibpath_var_GCJ=no
  32997. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32998. - hardcode_libdir_separator_GCJ=':'
  32999. - link_all_deplibs_GCJ=yes
  33000. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  33001. + no_undefined_flag='${wl}-z,text'
  33002. + allow_undefined_flag='${wl}-z,nodefs'
  33003. + archive_cmds_need_lc=no
  33004. + hardcode_shlibpath_var=no
  33005. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  33006. + hardcode_libdir_separator=':'
  33007. + link_all_deplibs=yes
  33008. + export_dynamic_flag_spec='${wl}-Bexport'
  33009. runpath_var='LD_RUN_PATH'
  33010. - if test "$GCC" = yes; then
  33011. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33012. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33013. - else
  33014. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33015. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33016. - fi
  33017. - ;;
  33018. + if test "$GCC" = yes; then
  33019. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33020. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33021. + else
  33022. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33023. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33024. + fi
  33025. + ;;
  33026. +
  33027. + uts4*)
  33028. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33029. + hardcode_libdir_flag_spec='-L$libdir'
  33030. + hardcode_shlibpath_var=no
  33031. + ;;
  33032. +
  33033. + *)
  33034. + ld_shlibs=no
  33035. + ;;
  33036. + esac
  33037. +
  33038. + if test x$host_vendor = xsni; then
  33039. + case $host in
  33040. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  33041. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  33042. + ;;
  33043. + esac
  33044. + fi
  33045. + fi
  33046. +
  33047. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  33048. +$as_echo "$ld_shlibs" >&6; }
  33049. +test "$ld_shlibs" = no && can_build_shared=no
  33050. +
  33051. +with_gnu_ld=$with_gnu_ld
  33052. +
  33053. +
  33054. +
  33055. +
  33056. +
  33057. +
  33058. +
  33059. +
  33060. +
  33061. +
  33062. +
  33063. - uts4*)
  33064. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33065. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33066. - hardcode_shlibpath_var_GCJ=no
  33067. - ;;
  33068. - *)
  33069. - ld_shlibs_GCJ=no
  33070. - ;;
  33071. - esac
  33072. - fi
  33073. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  33074. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  33075. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  33076. #
  33077. # Do we need to explicitly link libc?
  33078. #
  33079. -case "x$archive_cmds_need_lc_GCJ" in
  33080. +case "x$archive_cmds_need_lc" in
  33081. x|xyes)
  33082. # Assume -lc should be added
  33083. - archive_cmds_need_lc_GCJ=yes
  33084. + archive_cmds_need_lc=yes
  33085. if test "$enable_shared" = yes && test "$GCC" = yes; then
  33086. - case $archive_cmds_GCJ in
  33087. + case $archive_cmds in
  33088. *'~'*)
  33089. # FIXME: we may have to deal with multi-command sequences.
  33090. ;;
  33091. @@ -18158,54 +8738,262 @@
  33092. # Test whether the compiler implicitly links with -lc since on some
  33093. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  33094. # to ld, don't add -lc before -lgcc.
  33095. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  33096. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  33097. - $rm conftest*
  33098. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  33099. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  33100. + $RM conftest*
  33101. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33102. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33103. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  33104. (eval $ac_compile) 2>&5
  33105. ac_status=$?
  33106. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33107. - (exit $ac_status); } 2>conftest.err; then
  33108. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33109. + test $ac_status = 0; } 2>conftest.err; then
  33110. soname=conftest
  33111. lib=conftest
  33112. libobjs=conftest.$ac_objext
  33113. deplibs=
  33114. - wl=$lt_prog_compiler_wl_GCJ
  33115. - pic_flag=$lt_prog_compiler_pic_GCJ
  33116. + wl=$lt_prog_compiler_wl
  33117. + pic_flag=$lt_prog_compiler_pic
  33118. compiler_flags=-v
  33119. linker_flags=-v
  33120. verstring=
  33121. output_objdir=.
  33122. libname=conftest
  33123. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  33124. - allow_undefined_flag_GCJ=
  33125. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  33126. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33127. + lt_save_allow_undefined_flag=$allow_undefined_flag
  33128. + allow_undefined_flag=
  33129. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  33130. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33131. ac_status=$?
  33132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33133. - (exit $ac_status); }
  33134. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33135. + test $ac_status = 0; }
  33136. then
  33137. - archive_cmds_need_lc_GCJ=no
  33138. + archive_cmds_need_lc=no
  33139. else
  33140. - archive_cmds_need_lc_GCJ=yes
  33141. + archive_cmds_need_lc=yes
  33142. fi
  33143. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  33144. + allow_undefined_flag=$lt_save_allow_undefined_flag
  33145. else
  33146. cat conftest.err 1>&5
  33147. fi
  33148. - $rm conftest*
  33149. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  33150. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  33151. + $RM conftest*
  33152. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  33153. +$as_echo "$archive_cmds_need_lc" >&6; }
  33154. ;;
  33155. esac
  33156. fi
  33157. ;;
  33158. esac
  33159. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33160. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  33161. +
  33162. +
  33163. +
  33164. +
  33165. +
  33166. +
  33167. +
  33168. +
  33169. +
  33170. +
  33171. +
  33172. +
  33173. +
  33174. +
  33175. +
  33176. +
  33177. +
  33178. +
  33179. +
  33180. +
  33181. +
  33182. +
  33183. +
  33184. +
  33185. +
  33186. +
  33187. +
  33188. +
  33189. +
  33190. +
  33191. +
  33192. +
  33193. +
  33194. +
  33195. +
  33196. +
  33197. +
  33198. +
  33199. +
  33200. +
  33201. +
  33202. +
  33203. +
  33204. +
  33205. +
  33206. +
  33207. +
  33208. +
  33209. +
  33210. +
  33211. +
  33212. +
  33213. +
  33214. +
  33215. +
  33216. +
  33217. +
  33218. +
  33219. +
  33220. +
  33221. +
  33222. +
  33223. +
  33224. +
  33225. +
  33226. +
  33227. +
  33228. +
  33229. +
  33230. +
  33231. +
  33232. +
  33233. +
  33234. +
  33235. +
  33236. +
  33237. +
  33238. +
  33239. +
  33240. +
  33241. +
  33242. +
  33243. +
  33244. +
  33245. +
  33246. +
  33247. +
  33248. +
  33249. +
  33250. +
  33251. +
  33252. +
  33253. +
  33254. +
  33255. +
  33256. +
  33257. +
  33258. +
  33259. +
  33260. +
  33261. +
  33262. +
  33263. +
  33264. +
  33265. +
  33266. +
  33267. +
  33268. +
  33269. +
  33270. +
  33271. +
  33272. +
  33273. +
  33274. +
  33275. +
  33276. +
  33277. +
  33278. +
  33279. +
  33280. +
  33281. +
  33282. +
  33283. +
  33284. +
  33285. +
  33286. +
  33287. +
  33288. +
  33289. +
  33290. +
  33291. +
  33292. +
  33293. +
  33294. +
  33295. +
  33296. +
  33297. +
  33298. +
  33299. +
  33300. +
  33301. +
  33302. +
  33303. +
  33304. +
  33305. +
  33306. +
  33307. +
  33308. +
  33309. +
  33310. +
  33311. +
  33312. +
  33313. +
  33314. +
  33315. +
  33316. +
  33317. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  33318. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  33319. +
  33320. +if test "$GCC" = yes; then
  33321. + case $host_os in
  33322. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  33323. + *) lt_awk_arg="/^libraries:/" ;;
  33324. + esac
  33325. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33326. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  33327. + # if the path contains ";" then we assume it to be the separator
  33328. + # otherwise default to the standard path separator (i.e. ":") - it is
  33329. + # assumed that no part of a normal pathname contains ";" but that should
  33330. + # okay in the real world where ";" in dirpaths is itself problematic.
  33331. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  33332. + else
  33333. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33334. + fi
  33335. + # Ok, now we have the path, separated by spaces, we can step through it
  33336. + # and add multilib dir if necessary.
  33337. + lt_tmp_lt_search_path_spec=
  33338. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  33339. + for lt_sys_path in $lt_search_path_spec; do
  33340. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  33341. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  33342. + else
  33343. + test -d "$lt_sys_path" && \
  33344. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  33345. + fi
  33346. + done
  33347. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  33348. +BEGIN {RS=" "; FS="/|\n";} {
  33349. + lt_foo="";
  33350. + lt_count=0;
  33351. + for (lt_i = NF; lt_i > 0; lt_i--) {
  33352. + if ($lt_i != "" && $lt_i != ".") {
  33353. + if ($lt_i == "..") {
  33354. + lt_count++;
  33355. + } else {
  33356. + if (lt_count == 0) {
  33357. + lt_foo="/" $lt_i lt_foo;
  33358. + } else {
  33359. + lt_count--;
  33360. + }
  33361. + }
  33362. + }
  33363. + }
  33364. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  33365. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  33366. +}'`
  33367. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  33368. +else
  33369. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33370. +fi
  33371. library_names_spec=
  33372. libname_spec='lib$name'
  33373. soname_spec=
  33374. @@ -18219,7 +9007,6 @@
  33375. version_type=none
  33376. dynamic_linker="$host_os ld.so"
  33377. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33378. -
  33379. need_lib_prefix=unknown
  33380. hardcode_into_libs=no
  33381. @@ -18256,7 +9043,7 @@
  33382. aix4 | aix4.[01] | aix4.[01].*)
  33383. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33384. echo ' yes '
  33385. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33386. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  33387. :
  33388. else
  33389. can_build_shared=no
  33390. @@ -18282,9 +9069,18 @@
  33391. ;;
  33392. amigaos*)
  33393. - library_names_spec='$libname.ixlibrary $libname.a'
  33394. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33395. - 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'
  33396. + case $host_cpu in
  33397. + powerpc)
  33398. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  33399. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  33400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33401. + ;;
  33402. + m68k)
  33403. + library_names_spec='$libname.ixlibrary $libname.a'
  33404. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33405. + 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'
  33406. + ;;
  33407. + esac
  33408. ;;
  33409. beos*)
  33410. @@ -18307,25 +9103,28 @@
  33411. # libtool to hard-code these into programs
  33412. ;;
  33413. -cygwin* | mingw* | pw32*)
  33414. +cygwin* | mingw* | pw32* | cegcc*)
  33415. version_type=windows
  33416. shrext_cmds=".dll"
  33417. need_version=no
  33418. need_lib_prefix=no
  33419. case $GCC,$host_os in
  33420. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33421. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  33422. library_names_spec='$libname.dll.a'
  33423. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33424. postinstall_cmds='base_file=`basename \${file}`~
  33425. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33426. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  33427. dldir=$destdir/`dirname \$dlpath`~
  33428. test -d \$dldir || mkdir -p \$dldir~
  33429. $install_prog $dir/$dlname \$dldir/$dlname~
  33430. - chmod a+x \$dldir/$dlname'
  33431. + chmod a+x \$dldir/$dlname~
  33432. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  33433. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  33434. + fi'
  33435. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33436. dlpath=$dir/\$dldll~
  33437. - $rm \$dlpath'
  33438. + $RM \$dlpath'
  33439. shlibpath_overrides_runpath=yes
  33440. case $host_os in
  33441. @@ -18334,20 +9133,20 @@
  33442. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33443. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33444. ;;
  33445. - mingw*)
  33446. + mingw* | cegcc*)
  33447. # MinGW DLLs use traditional 'lib' prefix
  33448. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33449. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33450. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33451. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33452. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  33453. # It is most probably a Windows format PATH printed by
  33454. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33455. # path with ; separators, and with drive letters. We can handle the
  33456. # drive letters (cygwin fileutils understands them), so leave them,
  33457. # especially as we might pass files found there to a mingw objdump,
  33458. # which wouldn't understand a cygwinified path. Ahh.
  33459. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33460. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33461. else
  33462. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33463. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33464. fi
  33465. ;;
  33466. pw32*)
  33467. @@ -18371,12 +9170,13 @@
  33468. version_type=darwin
  33469. need_lib_prefix=no
  33470. need_version=no
  33471. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33472. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33473. soname_spec='${libname}${release}${major}$shared_ext'
  33474. shlibpath_overrides_runpath=yes
  33475. shlibpath_var=DYLD_LIBRARY_PATH
  33476. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33477. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  33478. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33479. ;;
  33480. @@ -18469,18 +9269,18 @@
  33481. fi
  33482. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33483. ;;
  33484. - hppa*64*)
  33485. - shrext_cmds='.sl'
  33486. - hardcode_into_libs=yes
  33487. - dynamic_linker="$host_os dld.sl"
  33488. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33489. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33490. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33491. - soname_spec='${libname}${release}${shared_ext}$major'
  33492. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33493. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33494. - ;;
  33495. - *)
  33496. + hppa*64*)
  33497. + shrext_cmds='.sl'
  33498. + hardcode_into_libs=yes
  33499. + dynamic_linker="$host_os dld.sl"
  33500. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33501. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33502. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33503. + soname_spec='${libname}${release}${shared_ext}$major'
  33504. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33505. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33506. + ;;
  33507. + *)
  33508. shrext_cmds='.sl'
  33509. dynamic_linker="$host_os dld.sl"
  33510. shlibpath_var=SHLIB_PATH
  33511. @@ -18548,7 +9348,7 @@
  33512. ;;
  33513. # This must be Linux ELF.
  33514. -linux* | k*bsd*-gnu)
  33515. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33516. version_type=linux
  33517. need_lib_prefix=no
  33518. need_version=no
  33519. @@ -18557,6 +9357,32 @@
  33520. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33521. shlibpath_var=LD_LIBRARY_PATH
  33522. shlibpath_overrides_runpath=no
  33523. + # Some binutils ld are patched to set DT_RUNPATH
  33524. + save_LDFLAGS=$LDFLAGS
  33525. + save_libdir=$libdir
  33526. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  33527. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  33528. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33529. +/* end confdefs.h. */
  33530. +
  33531. +int
  33532. +main ()
  33533. +{
  33534. +
  33535. + ;
  33536. + return 0;
  33537. +}
  33538. +_ACEOF
  33539. +if ac_fn_c_try_link "$LINENO"; then :
  33540. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  33541. + shlibpath_overrides_runpath=yes
  33542. +fi
  33543. +fi
  33544. +rm -f core conftest.err conftest.$ac_objext \
  33545. + conftest$ac_exeext conftest.$ac_ext
  33546. + LDFLAGS=$save_LDFLAGS
  33547. + libdir=$save_libdir
  33548. +
  33549. # This implies no fast_install, which is unacceptable.
  33550. # Some rework will be needed to allow for fast_install
  33551. # before this can be enabled.
  33552. @@ -18564,7 +9390,7 @@
  33553. # Append ld.so.conf contents to the search path
  33554. if test -f /etc/ld.so.conf; then
  33555. - 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' ' '`
  33556. + 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' ' '`
  33557. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33558. fi
  33559. @@ -18593,7 +9419,7 @@
  33560. version_type=sunos
  33561. need_lib_prefix=no
  33562. need_version=no
  33563. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33564. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  33565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33566. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33567. dynamic_linker='NetBSD (a.out) ld.so'
  33568. @@ -18614,14 +9440,16 @@
  33569. shlibpath_overrides_runpath=yes
  33570. ;;
  33571. -nto-qnx*)
  33572. - version_type=linux
  33573. +*nto* | *qnx*)
  33574. + version_type=qnx
  33575. need_lib_prefix=no
  33576. need_version=no
  33577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33578. soname_spec='${libname}${release}${shared_ext}$major'
  33579. shlibpath_var=LD_LIBRARY_PATH
  33580. - shlibpath_overrides_runpath=yes
  33581. + shlibpath_overrides_runpath=no
  33582. + hardcode_into_libs=yes
  33583. + dynamic_linker='ldqnx.so'
  33584. ;;
  33585. openbsd*)
  33586. @@ -18630,13 +9458,13 @@
  33587. need_lib_prefix=no
  33588. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33589. case $host_os in
  33590. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33591. - *) need_version=no ;;
  33592. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33593. + *) need_version=no ;;
  33594. esac
  33595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33596. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33597. shlibpath_var=LD_LIBRARY_PATH
  33598. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33599. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33600. case $host_os in
  33601. openbsd2.[89] | openbsd2.[89].*)
  33602. shlibpath_overrides_runpath=no
  33603. @@ -18708,7 +9536,6 @@
  33604. sni)
  33605. shlibpath_overrides_runpath=no
  33606. need_lib_prefix=no
  33607. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33608. runpath_var=LD_RUN_PATH
  33609. ;;
  33610. siemens)
  33611. @@ -18739,13 +9566,12 @@
  33612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33613. soname_spec='${libname}${release}${shared_ext}$major'
  33614. shlibpath_var=LD_LIBRARY_PATH
  33615. + shlibpath_overrides_runpath=yes
  33616. hardcode_into_libs=yes
  33617. if test "$with_gnu_ld" = yes; then
  33618. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33619. - shlibpath_overrides_runpath=no
  33620. else
  33621. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33622. - shlibpath_overrides_runpath=yes
  33623. case $host_os in
  33624. sco3.2v5*)
  33625. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33626. @@ -18755,6 +9581,17 @@
  33627. sys_lib_dlsearch_path_spec='/usr/lib'
  33628. ;;
  33629. +tpf*)
  33630. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  33631. + version_type=linux
  33632. + need_lib_prefix=no
  33633. + need_version=no
  33634. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33635. + shlibpath_var=LD_LIBRARY_PATH
  33636. + shlibpath_overrides_runpath=no
  33637. + hardcode_into_libs=yes
  33638. + ;;
  33639. +
  33640. uts4*)
  33641. version_type=linux
  33642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33643. @@ -18766,2315 +9603,2922 @@
  33644. dynamic_linker=no
  33645. ;;
  33646. esac
  33647. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33648. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  33650. +$as_echo "$dynamic_linker" >&6; }
  33651. test "$dynamic_linker" = no && can_build_shared=no
  33652. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33653. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33654. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33655. +if test "$GCC" = yes; then
  33656. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33657. +fi
  33658. +
  33659. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33660. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33661. +fi
  33662. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  33663. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33664. +fi
  33665. +
  33666. +
  33667. +
  33668. +
  33669. +
  33670. +
  33671. +
  33672. +
  33673. +
  33674. +
  33675. +
  33676. +
  33677. +
  33678. +
  33679. +
  33680. +
  33681. +
  33682. +
  33683. +
  33684. +
  33685. +
  33686. +
  33687. +
  33688. +
  33689. +
  33690. +
  33691. +
  33692. +
  33693. +
  33694. +
  33695. +
  33696. +
  33697. +
  33698. +
  33699. +
  33700. +
  33701. +
  33702. +
  33703. +
  33704. +
  33705. +
  33706. +
  33707. +
  33708. +
  33709. +
  33710. +
  33711. +
  33712. +
  33713. +
  33714. +
  33715. +
  33716. +
  33717. +
  33718. +
  33719. +
  33720. +
  33721. +
  33722. +
  33723. +
  33724. +
  33725. +
  33726. +
  33727. +
  33728. +
  33729. +
  33730. +
  33731. +
  33732. +
  33733. +
  33734. +
  33735. +
  33736. +
  33737. +
  33738. +
  33739. +
  33740. +
  33741. +
  33742. +
  33743. +
  33744. +
  33745. +
  33746. +
  33747. +
  33748. +
  33749. +
  33750. +
  33751. +
  33752. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  33753. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  33754. +hardcode_action=
  33755. +if test -n "$hardcode_libdir_flag_spec" ||
  33756. + test -n "$runpath_var" ||
  33757. + test "X$hardcode_automatic" = "Xyes" ; then
  33758. +
  33759. + # We can hardcode non-existent directories.
  33760. + if test "$hardcode_direct" != no &&
  33761. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33762. + # have to relink, otherwise we might link with an installed library
  33763. + # when we should be linking with a yet-to-be-installed one
  33764. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  33765. + test "$hardcode_minus_L" != no; then
  33766. + # Linking always hardcodes the temporary library directory.
  33767. + hardcode_action=relink
  33768. + else
  33769. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33770. + hardcode_action=immediate
  33771. + fi
  33772. +else
  33773. + # We cannot hardcode anything, or else we can only hardcode existing
  33774. + # directories.
  33775. + hardcode_action=unsupported
  33776. +fi
  33777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  33778. +$as_echo "$hardcode_action" >&6; }
  33779. +
  33780. +if test "$hardcode_action" = relink ||
  33781. + test "$inherit_rpath" = yes; then
  33782. + # Fast installation is not supported
  33783. + enable_fast_install=no
  33784. +elif test "$shlibpath_overrides_runpath" = yes ||
  33785. + test "$enable_shared" = no; then
  33786. + # Fast installation is not necessary
  33787. + enable_fast_install=needless
  33788. +fi
  33789. +
  33790. +
  33791. +
  33792. +
  33793. +
  33794. +
  33795. + if test "x$enable_dlopen" != xyes; then
  33796. + enable_dlopen=unknown
  33797. + enable_dlopen_self=unknown
  33798. + enable_dlopen_self_static=unknown
  33799. +else
  33800. + lt_cv_dlopen=no
  33801. + lt_cv_dlopen_libs=
  33802. +
  33803. + case $host_os in
  33804. + beos*)
  33805. + lt_cv_dlopen="load_add_on"
  33806. + lt_cv_dlopen_libs=
  33807. + lt_cv_dlopen_self=yes
  33808. + ;;
  33809. +
  33810. + mingw* | pw32* | cegcc*)
  33811. + lt_cv_dlopen="LoadLibrary"
  33812. + lt_cv_dlopen_libs=
  33813. + ;;
  33814. +
  33815. + cygwin*)
  33816. + lt_cv_dlopen="dlopen"
  33817. + lt_cv_dlopen_libs=
  33818. + ;;
  33819. +
  33820. + darwin*)
  33821. + # if libdl is installed we need to link against it
  33822. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  33823. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  33824. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  33825. + $as_echo_n "(cached) " >&6
  33826. +else
  33827. + ac_check_lib_save_LIBS=$LIBS
  33828. +LIBS="-ldl $LIBS"
  33829. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33830. +/* end confdefs.h. */
  33831. +
  33832. +/* Override any GCC internal prototype to avoid an error.
  33833. + Use char because int might match the return type of a GCC
  33834. + builtin and then its argument prototype would still apply. */
  33835. +#ifdef __cplusplus
  33836. +extern "C"
  33837. +#endif
  33838. +char dlopen ();
  33839. +int
  33840. +main ()
  33841. +{
  33842. +return dlopen ();
  33843. + ;
  33844. + return 0;
  33845. +}
  33846. +_ACEOF
  33847. +if ac_fn_c_try_link "$LINENO"; then :
  33848. + ac_cv_lib_dl_dlopen=yes
  33849. +else
  33850. + ac_cv_lib_dl_dlopen=no
  33851. +fi
  33852. +rm -f core conftest.err conftest.$ac_objext \
  33853. + conftest$ac_exeext conftest.$ac_ext
  33854. +LIBS=$ac_check_lib_save_LIBS
  33855. +fi
  33856. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  33857. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  33858. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  33859. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33860. +else
  33861. +
  33862. + lt_cv_dlopen="dyld"
  33863. + lt_cv_dlopen_libs=
  33864. + lt_cv_dlopen_self=yes
  33865. +
  33866. +fi
  33867. +
  33868. + ;;
  33869. +
  33870. + *)
  33871. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  33872. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  33873. + lt_cv_dlopen="shl_load"
  33874. +else
  33875. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  33876. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  33877. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  33878. + $as_echo_n "(cached) " >&6
  33879. +else
  33880. + ac_check_lib_save_LIBS=$LIBS
  33881. +LIBS="-ldld $LIBS"
  33882. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33883. +/* end confdefs.h. */
  33884. +
  33885. +/* Override any GCC internal prototype to avoid an error.
  33886. + Use char because int might match the return type of a GCC
  33887. + builtin and then its argument prototype would still apply. */
  33888. +#ifdef __cplusplus
  33889. +extern "C"
  33890. +#endif
  33891. +char shl_load ();
  33892. +int
  33893. +main ()
  33894. +{
  33895. +return shl_load ();
  33896. + ;
  33897. + return 0;
  33898. +}
  33899. +_ACEOF
  33900. +if ac_fn_c_try_link "$LINENO"; then :
  33901. + ac_cv_lib_dld_shl_load=yes
  33902. +else
  33903. + ac_cv_lib_dld_shl_load=no
  33904. +fi
  33905. +rm -f core conftest.err conftest.$ac_objext \
  33906. + conftest$ac_exeext conftest.$ac_ext
  33907. +LIBS=$ac_check_lib_save_LIBS
  33908. +fi
  33909. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  33910. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  33911. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  33912. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  33913. +else
  33914. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  33915. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  33916. + lt_cv_dlopen="dlopen"
  33917. +else
  33918. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  33919. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  33920. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  33921. + $as_echo_n "(cached) " >&6
  33922. +else
  33923. + ac_check_lib_save_LIBS=$LIBS
  33924. +LIBS="-ldl $LIBS"
  33925. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33926. +/* end confdefs.h. */
  33927. +
  33928. +/* Override any GCC internal prototype to avoid an error.
  33929. + Use char because int might match the return type of a GCC
  33930. + builtin and then its argument prototype would still apply. */
  33931. +#ifdef __cplusplus
  33932. +extern "C"
  33933. +#endif
  33934. +char dlopen ();
  33935. +int
  33936. +main ()
  33937. +{
  33938. +return dlopen ();
  33939. + ;
  33940. + return 0;
  33941. +}
  33942. +_ACEOF
  33943. +if ac_fn_c_try_link "$LINENO"; then :
  33944. + ac_cv_lib_dl_dlopen=yes
  33945. +else
  33946. + ac_cv_lib_dl_dlopen=no
  33947. +fi
  33948. +rm -f core conftest.err conftest.$ac_objext \
  33949. + conftest$ac_exeext conftest.$ac_ext
  33950. +LIBS=$ac_check_lib_save_LIBS
  33951. +fi
  33952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  33953. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  33954. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  33955. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33956. +else
  33957. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  33958. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  33959. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  33960. + $as_echo_n "(cached) " >&6
  33961. +else
  33962. + ac_check_lib_save_LIBS=$LIBS
  33963. +LIBS="-lsvld $LIBS"
  33964. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33965. +/* end confdefs.h. */
  33966. +
  33967. +/* Override any GCC internal prototype to avoid an error.
  33968. + Use char because int might match the return type of a GCC
  33969. + builtin and then its argument prototype would still apply. */
  33970. +#ifdef __cplusplus
  33971. +extern "C"
  33972. +#endif
  33973. +char dlopen ();
  33974. +int
  33975. +main ()
  33976. +{
  33977. +return dlopen ();
  33978. + ;
  33979. + return 0;
  33980. +}
  33981. +_ACEOF
  33982. +if ac_fn_c_try_link "$LINENO"; then :
  33983. + ac_cv_lib_svld_dlopen=yes
  33984. else
  33985. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  33986. + ac_cv_lib_svld_dlopen=no
  33987. +fi
  33988. +rm -f core conftest.err conftest.$ac_objext \
  33989. + conftest$ac_exeext conftest.$ac_ext
  33990. +LIBS=$ac_check_lib_save_LIBS
  33991. fi
  33992. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  33993. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  33994. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  33995. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  33996. +else
  33997. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  33998. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  33999. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  34000. + $as_echo_n "(cached) " >&6
  34001. +else
  34002. + ac_check_lib_save_LIBS=$LIBS
  34003. +LIBS="-ldld $LIBS"
  34004. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34005. +/* end confdefs.h. */
  34006. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  34007. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  34008. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34009. +/* Override any GCC internal prototype to avoid an error.
  34010. + Use char because int might match the return type of a GCC
  34011. + builtin and then its argument prototype would still apply. */
  34012. +#ifdef __cplusplus
  34013. +extern "C"
  34014. +#endif
  34015. +char dld_link ();
  34016. +int
  34017. +main ()
  34018. +{
  34019. +return dld_link ();
  34020. + ;
  34021. + return 0;
  34022. +}
  34023. +_ACEOF
  34024. +if ac_fn_c_try_link "$LINENO"; then :
  34025. + ac_cv_lib_dld_dld_link=yes
  34026. else
  34027. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  34028. + ac_cv_lib_dld_dld_link=no
  34029. +fi
  34030. +rm -f core conftest.err conftest.$ac_objext \
  34031. + conftest$ac_exeext conftest.$ac_ext
  34032. +LIBS=$ac_check_lib_save_LIBS
  34033. +fi
  34034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  34035. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  34036. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  34037. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  34038. fi
  34039. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  34040. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34041. -if test "$GCC" = yes; then
  34042. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34043. fi
  34044. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  34045. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  34046. -hardcode_action_GCJ=
  34047. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  34048. - test -n "$runpath_var_GCJ" || \
  34049. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  34050. - # We can hardcode non-existant directories.
  34051. - if test "$hardcode_direct_GCJ" != no &&
  34052. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  34053. - # have to relink, otherwise we might link with an installed library
  34054. - # when we should be linking with a yet-to-be-installed one
  34055. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  34056. - test "$hardcode_minus_L_GCJ" != no; then
  34057. - # Linking always hardcodes the temporary library directory.
  34058. - hardcode_action_GCJ=relink
  34059. - else
  34060. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  34061. - hardcode_action_GCJ=immediate
  34062. - fi
  34063. -else
  34064. - # We cannot hardcode anything, or else we can only hardcode existing
  34065. - # directories.
  34066. - hardcode_action_GCJ=unsupported
  34067. fi
  34068. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  34069. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  34070. -if test "$hardcode_action_GCJ" = relink; then
  34071. - # Fast installation is not supported
  34072. - enable_fast_install=no
  34073. -elif test "$shlibpath_overrides_runpath" = yes ||
  34074. - test "$enable_shared" = no; then
  34075. - # Fast installation is not necessary
  34076. - enable_fast_install=needless
  34077. +
  34078. fi
  34079. -# The else clause should only fire when bootstrapping the
  34080. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34081. -# with your package, and you will get complaints that there are
  34082. -# no rules to generate ltmain.sh.
  34083. -if test -f "$ltmain"; then
  34084. - # See if we are running on zsh, and set the options which allow our commands through
  34085. - # without removal of \ escapes.
  34086. - if test -n "${ZSH_VERSION+set}" ; then
  34087. - setopt NO_GLOB_SUBST
  34088. - fi
  34089. - # Now quote all the things that may contain metacharacters while being
  34090. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34091. - # variables and quote the copies for generation of the libtool script.
  34092. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34093. - SED SHELL STRIP \
  34094. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34095. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34096. - deplibs_check_method reload_flag reload_cmds need_locks \
  34097. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34098. - lt_cv_sys_global_symbol_to_c_name_address \
  34099. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34100. - old_postinstall_cmds old_postuninstall_cmds \
  34101. - compiler_GCJ \
  34102. - CC_GCJ \
  34103. - LD_GCJ \
  34104. - lt_prog_compiler_wl_GCJ \
  34105. - lt_prog_compiler_pic_GCJ \
  34106. - lt_prog_compiler_static_GCJ \
  34107. - lt_prog_compiler_no_builtin_flag_GCJ \
  34108. - export_dynamic_flag_spec_GCJ \
  34109. - thread_safe_flag_spec_GCJ \
  34110. - whole_archive_flag_spec_GCJ \
  34111. - enable_shared_with_static_runtimes_GCJ \
  34112. - old_archive_cmds_GCJ \
  34113. - old_archive_from_new_cmds_GCJ \
  34114. - predep_objects_GCJ \
  34115. - postdep_objects_GCJ \
  34116. - predeps_GCJ \
  34117. - postdeps_GCJ \
  34118. - compiler_lib_search_path_GCJ \
  34119. - compiler_lib_search_dirs_GCJ \
  34120. - archive_cmds_GCJ \
  34121. - archive_expsym_cmds_GCJ \
  34122. - postinstall_cmds_GCJ \
  34123. - postuninstall_cmds_GCJ \
  34124. - old_archive_from_expsyms_cmds_GCJ \
  34125. - allow_undefined_flag_GCJ \
  34126. - no_undefined_flag_GCJ \
  34127. - export_symbols_cmds_GCJ \
  34128. - hardcode_libdir_flag_spec_GCJ \
  34129. - hardcode_libdir_flag_spec_ld_GCJ \
  34130. - hardcode_libdir_separator_GCJ \
  34131. - hardcode_automatic_GCJ \
  34132. - module_cmds_GCJ \
  34133. - module_expsym_cmds_GCJ \
  34134. - lt_cv_prog_compiler_c_o_GCJ \
  34135. - fix_srcfile_path_GCJ \
  34136. - exclude_expsyms_GCJ \
  34137. - include_expsyms_GCJ; do
  34138. -
  34139. - case $var in
  34140. - old_archive_cmds_GCJ | \
  34141. - old_archive_from_new_cmds_GCJ | \
  34142. - archive_cmds_GCJ | \
  34143. - archive_expsym_cmds_GCJ | \
  34144. - module_cmds_GCJ | \
  34145. - module_expsym_cmds_GCJ | \
  34146. - old_archive_from_expsyms_cmds_GCJ | \
  34147. - export_symbols_cmds_GCJ | \
  34148. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34149. - postinstall_cmds | postuninstall_cmds | \
  34150. - old_postinstall_cmds | old_postuninstall_cmds | \
  34151. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34152. - # Double-quote double-evaled strings.
  34153. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34154. - ;;
  34155. - *)
  34156. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34157. - ;;
  34158. - esac
  34159. - done
  34160. +fi
  34161. +
  34162. +
  34163. +fi
  34164. - case $lt_echo in
  34165. - *'\$0 --fallback-echo"')
  34166. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34167. ;;
  34168. esac
  34169. -cfgfile="$ofile"
  34170. + if test "x$lt_cv_dlopen" != xno; then
  34171. + enable_dlopen=yes
  34172. + else
  34173. + enable_dlopen=no
  34174. + fi
  34175. +
  34176. + case $lt_cv_dlopen in
  34177. + dlopen)
  34178. + save_CPPFLAGS="$CPPFLAGS"
  34179. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  34180. - cat <<__EOF__ >> "$cfgfile"
  34181. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34182. + save_LDFLAGS="$LDFLAGS"
  34183. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  34184. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34185. + save_LIBS="$LIBS"
  34186. + LIBS="$lt_cv_dlopen_libs $LIBS"
  34187. -# Shell to use when invoking shell scripts.
  34188. -SHELL=$lt_SHELL
  34189. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  34190. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  34191. +if test "${lt_cv_dlopen_self+set}" = set; then :
  34192. + $as_echo_n "(cached) " >&6
  34193. +else
  34194. + if test "$cross_compiling" = yes; then :
  34195. + lt_cv_dlopen_self=cross
  34196. +else
  34197. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34198. + lt_status=$lt_dlunknown
  34199. + cat > conftest.$ac_ext <<_LT_EOF
  34200. +#line 10038 "configure"
  34201. +#include "confdefs.h"
  34202. -# Whether or not to build shared libraries.
  34203. -build_libtool_libs=$enable_shared
  34204. +#if HAVE_DLFCN_H
  34205. +#include <dlfcn.h>
  34206. +#endif
  34207. -# Whether or not to build static libraries.
  34208. -build_old_libs=$enable_static
  34209. +#include <stdio.h>
  34210. -# Whether or not to add -lc for building shared libraries.
  34211. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  34212. +#ifdef RTLD_GLOBAL
  34213. +# define LT_DLGLOBAL RTLD_GLOBAL
  34214. +#else
  34215. +# ifdef DL_GLOBAL
  34216. +# define LT_DLGLOBAL DL_GLOBAL
  34217. +# else
  34218. +# define LT_DLGLOBAL 0
  34219. +# endif
  34220. +#endif
  34221. -# Whether or not to disallow shared libs when runtime libs are static
  34222. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  34223. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34224. + find out it does not work in some platform. */
  34225. +#ifndef LT_DLLAZY_OR_NOW
  34226. +# ifdef RTLD_LAZY
  34227. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34228. +# else
  34229. +# ifdef DL_LAZY
  34230. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34231. +# else
  34232. +# ifdef RTLD_NOW
  34233. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34234. +# else
  34235. +# ifdef DL_NOW
  34236. +# define LT_DLLAZY_OR_NOW DL_NOW
  34237. +# else
  34238. +# define LT_DLLAZY_OR_NOW 0
  34239. +# endif
  34240. +# endif
  34241. +# endif
  34242. +# endif
  34243. +#endif
  34244. -# Whether or not to optimize for fast installation.
  34245. -fast_install=$enable_fast_install
  34246. +void fnord() { int i=42;}
  34247. +int main ()
  34248. +{
  34249. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34250. + int status = $lt_dlunknown;
  34251. -# The host system.
  34252. -host_alias=$host_alias
  34253. -host=$host
  34254. -host_os=$host_os
  34255. + if (self)
  34256. + {
  34257. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34258. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34259. + /* dlclose (self); */
  34260. + }
  34261. + else
  34262. + puts (dlerror ());
  34263. -# The build system.
  34264. -build_alias=$build_alias
  34265. -build=$build
  34266. -build_os=$build_os
  34267. + return status;
  34268. +}
  34269. +_LT_EOF
  34270. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34271. + (eval $ac_link) 2>&5
  34272. + ac_status=$?
  34273. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34274. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34275. + (./conftest; exit; ) >&5 2>/dev/null
  34276. + lt_status=$?
  34277. + case x$lt_status in
  34278. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34279. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34280. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  34281. + esac
  34282. + else :
  34283. + # compilation failed
  34284. + lt_cv_dlopen_self=no
  34285. + fi
  34286. +fi
  34287. +rm -fr conftest*
  34288. -# An echo program that does not interpret backslashes.
  34289. -echo=$lt_echo
  34290. -# The archiver.
  34291. -AR=$lt_AR
  34292. -AR_FLAGS=$lt_AR_FLAGS
  34293. +fi
  34294. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  34295. +$as_echo "$lt_cv_dlopen_self" >&6; }
  34296. -# A C compiler.
  34297. -LTCC=$lt_LTCC
  34298. + if test "x$lt_cv_dlopen_self" = xyes; then
  34299. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  34300. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  34301. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  34302. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  34303. + $as_echo_n "(cached) " >&6
  34304. +else
  34305. + if test "$cross_compiling" = yes; then :
  34306. + lt_cv_dlopen_self_static=cross
  34307. +else
  34308. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34309. + lt_status=$lt_dlunknown
  34310. + cat > conftest.$ac_ext <<_LT_EOF
  34311. +#line 10134 "configure"
  34312. +#include "confdefs.h"
  34313. -# LTCC compiler flags.
  34314. -LTCFLAGS=$lt_LTCFLAGS
  34315. +#if HAVE_DLFCN_H
  34316. +#include <dlfcn.h>
  34317. +#endif
  34318. +
  34319. +#include <stdio.h>
  34320. +
  34321. +#ifdef RTLD_GLOBAL
  34322. +# define LT_DLGLOBAL RTLD_GLOBAL
  34323. +#else
  34324. +# ifdef DL_GLOBAL
  34325. +# define LT_DLGLOBAL DL_GLOBAL
  34326. +# else
  34327. +# define LT_DLGLOBAL 0
  34328. +# endif
  34329. +#endif
  34330. +
  34331. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34332. + find out it does not work in some platform. */
  34333. +#ifndef LT_DLLAZY_OR_NOW
  34334. +# ifdef RTLD_LAZY
  34335. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34336. +# else
  34337. +# ifdef DL_LAZY
  34338. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34339. +# else
  34340. +# ifdef RTLD_NOW
  34341. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34342. +# else
  34343. +# ifdef DL_NOW
  34344. +# define LT_DLLAZY_OR_NOW DL_NOW
  34345. +# else
  34346. +# define LT_DLLAZY_OR_NOW 0
  34347. +# endif
  34348. +# endif
  34349. +# endif
  34350. +# endif
  34351. +#endif
  34352. +
  34353. +void fnord() { int i=42;}
  34354. +int main ()
  34355. +{
  34356. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34357. + int status = $lt_dlunknown;
  34358. +
  34359. + if (self)
  34360. + {
  34361. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34362. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34363. + /* dlclose (self); */
  34364. + }
  34365. + else
  34366. + puts (dlerror ());
  34367. -# A language-specific compiler.
  34368. -CC=$lt_compiler_GCJ
  34369. + return status;
  34370. +}
  34371. +_LT_EOF
  34372. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34373. + (eval $ac_link) 2>&5
  34374. + ac_status=$?
  34375. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34376. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34377. + (./conftest; exit; ) >&5 2>/dev/null
  34378. + lt_status=$?
  34379. + case x$lt_status in
  34380. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34381. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34382. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  34383. + esac
  34384. + else :
  34385. + # compilation failed
  34386. + lt_cv_dlopen_self_static=no
  34387. + fi
  34388. +fi
  34389. +rm -fr conftest*
  34390. -# Is the compiler the GNU C compiler?
  34391. -with_gcc=$GCC_GCJ
  34392. -# An ERE matcher.
  34393. -EGREP=$lt_EGREP
  34394. +fi
  34395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  34396. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  34397. + fi
  34398. -# The linker used to build libraries.
  34399. -LD=$lt_LD_GCJ
  34400. + CPPFLAGS="$save_CPPFLAGS"
  34401. + LDFLAGS="$save_LDFLAGS"
  34402. + LIBS="$save_LIBS"
  34403. + ;;
  34404. + esac
  34405. -# Whether we need hard or soft links.
  34406. -LN_S=$lt_LN_S
  34407. + case $lt_cv_dlopen_self in
  34408. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34409. + *) enable_dlopen_self=unknown ;;
  34410. + esac
  34411. -# A BSD-compatible nm program.
  34412. -NM=$lt_NM
  34413. + case $lt_cv_dlopen_self_static in
  34414. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34415. + *) enable_dlopen_self_static=unknown ;;
  34416. + esac
  34417. +fi
  34418. -# A symbol stripping program
  34419. -STRIP=$lt_STRIP
  34420. -# Used to examine libraries when file_magic_cmd begins "file"
  34421. -MAGIC_CMD=$MAGIC_CMD
  34422. -# Used on cygwin: DLL creation program.
  34423. -DLLTOOL="$DLLTOOL"
  34424. -# Used on cygwin: object dumper.
  34425. -OBJDUMP="$OBJDUMP"
  34426. -# Used on cygwin: assembler.
  34427. -AS="$AS"
  34428. -# The name of the directory that contains temporary libtool files.
  34429. -objdir=$objdir
  34430. -# How to create reloadable object files.
  34431. -reload_flag=$lt_reload_flag
  34432. -reload_cmds=$lt_reload_cmds
  34433. -# How to pass a linker flag through the compiler.
  34434. -wl=$lt_lt_prog_compiler_wl_GCJ
  34435. -# Object file suffix (normally "o").
  34436. -objext="$ac_objext"
  34437. -# Old archive suffix (normally "a").
  34438. -libext="$libext"
  34439. -# Shared library suffix (normally ".so").
  34440. -shrext_cmds='$shrext_cmds'
  34441. -# Executable file suffix (normally "").
  34442. -exeext="$exeext"
  34443. -# Additional compiler flags for building library objects.
  34444. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  34445. -pic_mode=$pic_mode
  34446. -# What is the maximum length of a command?
  34447. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34448. -# Does compiler simultaneously support -c and -o options?
  34449. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  34450. -# Must we lock files when doing compilation?
  34451. -need_locks=$lt_need_locks
  34452. -# Do we need the lib prefix for modules?
  34453. -need_lib_prefix=$need_lib_prefix
  34454. +striplib=
  34455. +old_striplib=
  34456. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  34457. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  34458. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  34459. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  34460. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  34461. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34462. +$as_echo "yes" >&6; }
  34463. +else
  34464. +# FIXME - insert some real tests, host_os isn't really good enough
  34465. + case $host_os in
  34466. + darwin*)
  34467. + if test -n "$STRIP" ; then
  34468. + striplib="$STRIP -x"
  34469. + old_striplib="$STRIP -S"
  34470. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34471. +$as_echo "yes" >&6; }
  34472. + else
  34473. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34474. +$as_echo "no" >&6; }
  34475. + fi
  34476. + ;;
  34477. + *)
  34478. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34479. +$as_echo "no" >&6; }
  34480. + ;;
  34481. + esac
  34482. +fi
  34483. -# Do we need a version for libraries?
  34484. -need_version=$need_version
  34485. -# Whether dlopen is supported.
  34486. -dlopen_support=$enable_dlopen
  34487. -# Whether dlopen of programs is supported.
  34488. -dlopen_self=$enable_dlopen_self
  34489. -# Whether dlopen of statically linked programs is supported.
  34490. -dlopen_self_static=$enable_dlopen_self_static
  34491. -# Compiler flag to prevent dynamic linking.
  34492. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  34493. -# Compiler flag to turn off builtin functions.
  34494. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  34495. -# Compiler flag to allow reflexive dlopens.
  34496. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  34497. -# Compiler flag to generate shared objects directly from archives.
  34498. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  34499. -# Compiler flag to generate thread-safe objects.
  34500. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  34501. -# Library versioning type.
  34502. -version_type=$version_type
  34503. -# Format of library name prefix.
  34504. -libname_spec=$lt_libname_spec
  34505. -# List of archive names. First name is the real one, the rest are links.
  34506. -# The last name is the one that the linker finds with -lNAME.
  34507. -library_names_spec=$lt_library_names_spec
  34508. + # Report which library types will actually be built
  34509. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  34510. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  34511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  34512. +$as_echo "$can_build_shared" >&6; }
  34513. -# The coded name of the library, if different from the real name.
  34514. -soname_spec=$lt_soname_spec
  34515. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  34516. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  34517. + test "$can_build_shared" = "no" && enable_shared=no
  34518. -# Commands used to build and install an old-style archive.
  34519. -RANLIB=$lt_RANLIB
  34520. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  34521. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34522. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34523. + # On AIX, shared libraries and static libraries use the same namespace, and
  34524. + # are all built from PIC.
  34525. + case $host_os in
  34526. + aix3*)
  34527. + test "$enable_shared" = yes && enable_static=no
  34528. + if test -n "$RANLIB"; then
  34529. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34530. + postinstall_cmds='$RANLIB $lib'
  34531. + fi
  34532. + ;;
  34533. -# Create an old-style archive from a shared archive.
  34534. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  34535. + aix[4-9]*)
  34536. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34537. + test "$enable_shared" = yes && enable_static=no
  34538. + fi
  34539. + ;;
  34540. + esac
  34541. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  34542. +$as_echo "$enable_shared" >&6; }
  34543. -# Create a temporary old-style archive to link instead of a shared archive.
  34544. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  34545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  34546. +$as_echo_n "checking whether to build static libraries... " >&6; }
  34547. + # Make sure either enable_shared or enable_static is yes.
  34548. + test "$enable_shared" = yes || enable_static=yes
  34549. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  34550. +$as_echo "$enable_static" >&6; }
  34551. -# Commands used to build and install a shared archive.
  34552. -archive_cmds=$lt_archive_cmds_GCJ
  34553. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  34554. -postinstall_cmds=$lt_postinstall_cmds
  34555. -postuninstall_cmds=$lt_postuninstall_cmds
  34556. -# Commands used to build a loadable module (assumed same as above if empty)
  34557. -module_cmds=$lt_module_cmds_GCJ
  34558. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  34559. -# Commands to strip libraries.
  34560. -old_striplib=$lt_old_striplib
  34561. -striplib=$lt_striplib
  34562. -# Dependencies to place before the objects being linked to create a
  34563. -# shared library.
  34564. -predep_objects=$lt_predep_objects_GCJ
  34565. -
  34566. -# Dependencies to place after the objects being linked to create a
  34567. -# shared library.
  34568. -postdep_objects=$lt_postdep_objects_GCJ
  34569. -
  34570. -# Dependencies to place before the objects being linked to create a
  34571. -# shared library.
  34572. -predeps=$lt_predeps_GCJ
  34573. -
  34574. -# Dependencies to place after the objects being linked to create a
  34575. -# shared library.
  34576. -postdeps=$lt_postdeps_GCJ
  34577. -
  34578. -# The directories searched by this compiler when creating a shared
  34579. -# library
  34580. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  34581. -
  34582. -# The library search path used internally by the compiler when linking
  34583. -# a shared library.
  34584. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  34585. +fi
  34586. +ac_ext=c
  34587. +ac_cpp='$CPP $CPPFLAGS'
  34588. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34589. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34590. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34591. -# Method to check whether dependent libraries are shared objects.
  34592. -deplibs_check_method=$lt_deplibs_check_method
  34593. +CC="$lt_save_CC"
  34594. -# Command to use when deplibs_check_method == file_magic.
  34595. -file_magic_cmd=$lt_file_magic_cmd
  34596. -# Flag that allows shared libraries with undefined symbols to be built.
  34597. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  34598. -# Flag that forces no undefined symbols.
  34599. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  34600. -# Commands used to finish a libtool library installation in a directory.
  34601. -finish_cmds=$lt_finish_cmds
  34602. -# Same as above, but a single script fragment to be evaled but not shown.
  34603. -finish_eval=$lt_finish_eval
  34604. -# Take the output of nm and produce a listing of raw symbols and C names.
  34605. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34606. -# Transform the output of nm in a proper C declaration
  34607. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34608. -# Transform the output of nm in a C name address pair
  34609. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34610. -# This is the shared library runtime path variable.
  34611. -runpath_var=$runpath_var
  34612. -# This is the shared library path variable.
  34613. -shlibpath_var=$shlibpath_var
  34614. -# Is shlibpath searched before the hard-coded library search path?
  34615. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34616. -# How to hardcode a shared library path into an executable.
  34617. -hardcode_action=$hardcode_action_GCJ
  34618. -# Whether we should hardcode library paths into libraries.
  34619. -hardcode_into_libs=$hardcode_into_libs
  34620. + ac_config_commands="$ac_config_commands libtool"
  34621. -# Flag to hardcode \$libdir into a binary during linking.
  34622. -# This must work even if \$libdir does not exist.
  34623. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  34624. -# If ld is used when linking, flag to hardcode \$libdir into
  34625. -# a binary during linking. This must work even if \$libdir does
  34626. -# not exist.
  34627. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  34628. -
  34629. -# Whether we need a single -rpath flag with a separated argument.
  34630. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  34631. -
  34632. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34633. -# resulting binary.
  34634. -hardcode_direct=$hardcode_direct_GCJ
  34635. -
  34636. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34637. -# resulting binary.
  34638. -hardcode_minus_L=$hardcode_minus_L_GCJ
  34639. -
  34640. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34641. -# the resulting binary.
  34642. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  34643. -
  34644. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34645. -# and all subsequent libraries and executables linked against it.
  34646. -hardcode_automatic=$hardcode_automatic_GCJ
  34647. -# Variables whose values should be saved in libtool wrapper scripts and
  34648. -# restored at relink time.
  34649. -variables_saved_for_relink="$variables_saved_for_relink"
  34650. -# Whether libtool must link a program against all its dependency libraries.
  34651. -link_all_deplibs=$link_all_deplibs_GCJ
  34652. +# Only expand once:
  34653. -# Compile-time system search path for libraries
  34654. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34655. -# Run-time system search path for libraries
  34656. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34657. -# Fix the shell variable \$srcfile for the compiler.
  34658. -fix_srcfile_path=$lt_fix_srcfile_path
  34659. -# Set to yes if exported symbols are required.
  34660. -always_export_symbols=$always_export_symbols_GCJ
  34661. +case $target in
  34662. +*-*-linux*) ;;
  34663. +*) as_fn_error "Linux only, dude!" "$LINENO" 5;;
  34664. +esac
  34665. -# The commands to list exported symbols.
  34666. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  34667. -# The commands to extract the exported symbol list from a shared archive.
  34668. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34669. -# Symbols that should not be listed in the preloaded symbols.
  34670. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  34671. -# Symbols that must always be exported.
  34672. -include_expsyms=$lt_include_expsyms_GCJ
  34673. +ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnfnetlink/Makefile utils/Makefile libnfnetlink.pc"
  34674. -# ### END LIBTOOL TAG CONFIG: $tagname
  34675. +cat >confcache <<\_ACEOF
  34676. +# This file is a shell script that caches the results of configure
  34677. +# tests run on this system so they can be shared between configure
  34678. +# scripts and configure runs, see configure's option --config-cache.
  34679. +# It is not useful on other systems. If it contains results you don't
  34680. +# want to keep, you may remove or edit it.
  34681. +#
  34682. +# config.status only pays attention to the cache file if you give it
  34683. +# the --recheck option to rerun configure.
  34684. +#
  34685. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  34686. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  34687. +# following values.
  34688. -__EOF__
  34689. +_ACEOF
  34690. +# The following way of writing the cache mishandles newlines in values,
  34691. +# but we know of no workaround that is simple, portable, and efficient.
  34692. +# So, we kill variables containing newlines.
  34693. +# Ultrix sh set writes to stderr and can't be redirected directly,
  34694. +# and sets the high bit in the cache file unless we assign to the vars.
  34695. +(
  34696. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  34697. + eval ac_val=\$$ac_var
  34698. + case $ac_val in #(
  34699. + *${as_nl}*)
  34700. + case $ac_var in #(
  34701. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  34702. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  34703. + esac
  34704. + case $ac_var in #(
  34705. + _ | IFS | as_nl) ;; #(
  34706. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  34707. + *) { eval $ac_var=; unset $ac_var;} ;;
  34708. + esac ;;
  34709. + esac
  34710. + done
  34711. -else
  34712. - # If there is no Makefile yet, we rely on a make rule to execute
  34713. - # `config.status --recheck' to rerun these tests and create the
  34714. - # libtool script then.
  34715. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34716. - if test -f "$ltmain_in"; then
  34717. - test -f Makefile && make "$ltmain"
  34718. + (set) 2>&1 |
  34719. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  34720. + *${as_nl}ac_space=\ *)
  34721. + # `set' does not quote correctly, so add quotes: double-quote
  34722. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  34723. + sed -n \
  34724. + "s/'/'\\\\''/g;
  34725. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  34726. + ;; #(
  34727. + *)
  34728. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  34729. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  34730. + ;;
  34731. + esac |
  34732. + sort
  34733. +) |
  34734. + sed '
  34735. + /^ac_cv_env_/b end
  34736. + t clear
  34737. + :clear
  34738. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  34739. + t end
  34740. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  34741. + :end' >>confcache
  34742. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  34743. + if test -w "$cache_file"; then
  34744. + test "x$cache_file" != "x/dev/null" &&
  34745. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  34746. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  34747. + cat confcache >$cache_file
  34748. + else
  34749. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  34750. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  34751. fi
  34752. fi
  34753. +rm -f confcache
  34754. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  34755. +# Let make expand exec_prefix.
  34756. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  34757. -ac_ext=c
  34758. -ac_cpp='$CPP $CPPFLAGS'
  34759. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34760. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34761. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34762. -
  34763. -CC="$lt_save_CC"
  34764. -
  34765. - else
  34766. - tagname=""
  34767. - fi
  34768. - ;;
  34769. -
  34770. - RC)
  34771. +# Transform confdefs.h into DEFS.
  34772. +# Protect against shell expansion while executing Makefile rules.
  34773. +# Protect against Makefile macro expansion.
  34774. +#
  34775. +# If the first sed substitution is executed (which looks for macros that
  34776. +# take arguments), then branch to the quote section. Otherwise,
  34777. +# look for a macro that doesn't take arguments.
  34778. +ac_script='
  34779. +:mline
  34780. +/\\$/{
  34781. + N
  34782. + s,\\\n,,
  34783. + b mline
  34784. +}
  34785. +t clear
  34786. +:clear
  34787. +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  34788. +t quote
  34789. +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  34790. +t quote
  34791. +b any
  34792. +:quote
  34793. +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  34794. +s/\[/\\&/g
  34795. +s/\]/\\&/g
  34796. +s/\$/$$/g
  34797. +H
  34798. +:any
  34799. +${
  34800. + g
  34801. + s/^\n//
  34802. + s/\n/ /g
  34803. + p
  34804. +}
  34805. +'
  34806. +DEFS=`sed -n "$ac_script" confdefs.h`
  34807. -# Source file extension for RC test sources.
  34808. -ac_ext=rc
  34809. +ac_libobjs=
  34810. +ac_ltlibobjs=
  34811. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  34812. + # 1. Remove the extension, and $U if already installed.
  34813. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  34814. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  34815. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  34816. + # will be set to the directory where LIBOBJS objects are built.
  34817. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  34818. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  34819. +done
  34820. +LIBOBJS=$ac_libobjs
  34821. -# Object file extension for compiled RC test sources.
  34822. -objext=o
  34823. -objext_RC=$objext
  34824. +LTLIBOBJS=$ac_ltlibobjs
  34825. -# Code to be used in simple compile tests
  34826. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  34827. -# Code to be used in simple link tests
  34828. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  34829. + if test -n "$EXEEXT"; then
  34830. + am__EXEEXT_TRUE=
  34831. + am__EXEEXT_FALSE='#'
  34832. +else
  34833. + am__EXEEXT_TRUE='#'
  34834. + am__EXEEXT_FALSE=
  34835. +fi
  34836. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34837. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  34838. + as_fn_error "conditional \"AMDEP\" was never defined.
  34839. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34840. +fi
  34841. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  34842. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  34843. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34844. +fi
  34845. -# If no C compiler was specified, use CC.
  34846. -LTCC=${LTCC-"$CC"}
  34847. +: ${CONFIG_STATUS=./config.status}
  34848. +ac_write_fail=0
  34849. +ac_clean_files_save=$ac_clean_files
  34850. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  34851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  34852. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  34853. +as_write_fail=0
  34854. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  34855. +#! $SHELL
  34856. +# Generated by $as_me.
  34857. +# Run this file to recreate the current configuration.
  34858. +# Compiler output produced by configure, useful for debugging
  34859. +# configure, is in config.log if it exists.
  34860. -# If no C compiler flags were specified, use CFLAGS.
  34861. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34862. +debug=false
  34863. +ac_cs_recheck=false
  34864. +ac_cs_silent=false
  34865. -# Allow CC to be a program name with arguments.
  34866. -compiler=$CC
  34867. +SHELL=\${CONFIG_SHELL-$SHELL}
  34868. +export SHELL
  34869. +_ASEOF
  34870. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  34871. +## -------------------- ##
  34872. +## M4sh Initialization. ##
  34873. +## -------------------- ##
  34874. +# Be more Bourne compatible
  34875. +DUALCASE=1; export DUALCASE # for MKS sh
  34876. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  34877. + emulate sh
  34878. + NULLCMD=:
  34879. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  34880. + # is contrary to our usage. Disable this feature.
  34881. + alias -g '${1+"$@"}'='"$@"'
  34882. + setopt NO_GLOB_SUBST
  34883. +else
  34884. + case `(set -o) 2>/dev/null` in #(
  34885. + *posix*) :
  34886. + set -o posix ;; #(
  34887. + *) :
  34888. + ;;
  34889. +esac
  34890. +fi
  34891. -# save warnings/boilerplate of simple test code
  34892. -ac_outfile=conftest.$ac_objext
  34893. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  34894. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34895. -_lt_compiler_boilerplate=`cat conftest.err`
  34896. -$rm conftest*
  34897. -ac_outfile=conftest.$ac_objext
  34898. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  34899. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34900. -_lt_linker_boilerplate=`cat conftest.err`
  34901. -$rm -r conftest*
  34902. +as_nl='
  34903. +'
  34904. +export as_nl
  34905. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  34906. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  34907. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  34908. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  34909. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  34910. +# but without wasting forks for bash or zsh.
  34911. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  34912. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  34913. + as_echo='print -r --'
  34914. + as_echo_n='print -rn --'
  34915. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  34916. + as_echo='printf %s\n'
  34917. + as_echo_n='printf %s'
  34918. +else
  34919. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  34920. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  34921. + as_echo_n='/usr/ucb/echo -n'
  34922. + else
  34923. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  34924. + as_echo_n_body='eval
  34925. + arg=$1;
  34926. + case $arg in #(
  34927. + *"$as_nl"*)
  34928. + expr "X$arg" : "X\\(.*\\)$as_nl";
  34929. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  34930. + esac;
  34931. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  34932. + '
  34933. + export as_echo_n_body
  34934. + as_echo_n='sh -c $as_echo_n_body as_echo'
  34935. + fi
  34936. + export as_echo_body
  34937. + as_echo='sh -c $as_echo_body as_echo'
  34938. +fi
  34939. +# The user is always right.
  34940. +if test "${PATH_SEPARATOR+set}" != set; then
  34941. + PATH_SEPARATOR=:
  34942. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  34943. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  34944. + PATH_SEPARATOR=';'
  34945. + }
  34946. +fi
  34947. -# Allow CC to be a program name with arguments.
  34948. -lt_save_CC="$CC"
  34949. -CC=${RC-"windres"}
  34950. -compiler=$CC
  34951. -compiler_RC=$CC
  34952. -for cc_temp in $compiler""; do
  34953. - case $cc_temp in
  34954. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34955. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34956. - \-*) ;;
  34957. - *) break;;
  34958. - esac
  34959. -done
  34960. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34961. -lt_cv_prog_compiler_c_o_RC=yes
  34962. +# IFS
  34963. +# We need space, tab and new line, in precisely that order. Quoting is
  34964. +# there to prevent editors from complaining about space-tab.
  34965. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  34966. +# splitting by setting IFS to empty value.)
  34967. +IFS=" "" $as_nl"
  34968. -# The else clause should only fire when bootstrapping the
  34969. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34970. -# with your package, and you will get complaints that there are
  34971. -# no rules to generate ltmain.sh.
  34972. -if test -f "$ltmain"; then
  34973. - # See if we are running on zsh, and set the options which allow our commands through
  34974. - # without removal of \ escapes.
  34975. - if test -n "${ZSH_VERSION+set}" ; then
  34976. - setopt NO_GLOB_SUBST
  34977. - fi
  34978. - # Now quote all the things that may contain metacharacters while being
  34979. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34980. - # variables and quote the copies for generation of the libtool script.
  34981. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34982. - SED SHELL STRIP \
  34983. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34984. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34985. - deplibs_check_method reload_flag reload_cmds need_locks \
  34986. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34987. - lt_cv_sys_global_symbol_to_c_name_address \
  34988. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34989. - old_postinstall_cmds old_postuninstall_cmds \
  34990. - compiler_RC \
  34991. - CC_RC \
  34992. - LD_RC \
  34993. - lt_prog_compiler_wl_RC \
  34994. - lt_prog_compiler_pic_RC \
  34995. - lt_prog_compiler_static_RC \
  34996. - lt_prog_compiler_no_builtin_flag_RC \
  34997. - export_dynamic_flag_spec_RC \
  34998. - thread_safe_flag_spec_RC \
  34999. - whole_archive_flag_spec_RC \
  35000. - enable_shared_with_static_runtimes_RC \
  35001. - old_archive_cmds_RC \
  35002. - old_archive_from_new_cmds_RC \
  35003. - predep_objects_RC \
  35004. - postdep_objects_RC \
  35005. - predeps_RC \
  35006. - postdeps_RC \
  35007. - compiler_lib_search_path_RC \
  35008. - compiler_lib_search_dirs_RC \
  35009. - archive_cmds_RC \
  35010. - archive_expsym_cmds_RC \
  35011. - postinstall_cmds_RC \
  35012. - postuninstall_cmds_RC \
  35013. - old_archive_from_expsyms_cmds_RC \
  35014. - allow_undefined_flag_RC \
  35015. - no_undefined_flag_RC \
  35016. - export_symbols_cmds_RC \
  35017. - hardcode_libdir_flag_spec_RC \
  35018. - hardcode_libdir_flag_spec_ld_RC \
  35019. - hardcode_libdir_separator_RC \
  35020. - hardcode_automatic_RC \
  35021. - module_cmds_RC \
  35022. - module_expsym_cmds_RC \
  35023. - lt_cv_prog_compiler_c_o_RC \
  35024. - fix_srcfile_path_RC \
  35025. - exclude_expsyms_RC \
  35026. - include_expsyms_RC; do
  35027. -
  35028. - case $var in
  35029. - old_archive_cmds_RC | \
  35030. - old_archive_from_new_cmds_RC | \
  35031. - archive_cmds_RC | \
  35032. - archive_expsym_cmds_RC | \
  35033. - module_cmds_RC | \
  35034. - module_expsym_cmds_RC | \
  35035. - old_archive_from_expsyms_cmds_RC | \
  35036. - export_symbols_cmds_RC | \
  35037. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  35038. - postinstall_cmds | postuninstall_cmds | \
  35039. - old_postinstall_cmds | old_postuninstall_cmds | \
  35040. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  35041. - # Double-quote double-evaled strings.
  35042. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  35043. - ;;
  35044. - *)
  35045. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  35046. - ;;
  35047. - esac
  35048. +# Find who we are. Look in the path if we contain no directory separator.
  35049. +case $0 in #((
  35050. + *[\\/]* ) as_myself=$0 ;;
  35051. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35052. +for as_dir in $PATH
  35053. +do
  35054. + IFS=$as_save_IFS
  35055. + test -z "$as_dir" && as_dir=.
  35056. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  35057. done
  35058. +IFS=$as_save_IFS
  35059. - case $lt_echo in
  35060. - *'\$0 --fallback-echo"')
  35061. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  35062. - ;;
  35063. - esac
  35064. -
  35065. -cfgfile="$ofile"
  35066. -
  35067. - cat <<__EOF__ >> "$cfgfile"
  35068. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  35069. -
  35070. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  35071. -
  35072. -# Shell to use when invoking shell scripts.
  35073. -SHELL=$lt_SHELL
  35074. -
  35075. -# Whether or not to build shared libraries.
  35076. -build_libtool_libs=$enable_shared
  35077. -
  35078. -# Whether or not to build static libraries.
  35079. -build_old_libs=$enable_static
  35080. -
  35081. -# Whether or not to add -lc for building shared libraries.
  35082. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  35083. -
  35084. -# Whether or not to disallow shared libs when runtime libs are static
  35085. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  35086. -
  35087. -# Whether or not to optimize for fast installation.
  35088. -fast_install=$enable_fast_install
  35089. -
  35090. -# The host system.
  35091. -host_alias=$host_alias
  35092. -host=$host
  35093. -host_os=$host_os
  35094. + ;;
  35095. +esac
  35096. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  35097. +# in which case we are not to be found in the path.
  35098. +if test "x$as_myself" = x; then
  35099. + as_myself=$0
  35100. +fi
  35101. +if test ! -f "$as_myself"; then
  35102. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  35103. + exit 1
  35104. +fi
  35105. -# The build system.
  35106. -build_alias=$build_alias
  35107. -build=$build
  35108. -build_os=$build_os
  35109. +# Unset variables that we do not need and which cause bugs (e.g. in
  35110. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  35111. +# suppresses any "Segmentation fault" message there. '((' could
  35112. +# trigger a bug in pdksh 5.2.14.
  35113. +for as_var in BASH_ENV ENV MAIL MAILPATH
  35114. +do eval test x\${$as_var+set} = xset \
  35115. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  35116. +done
  35117. +PS1='$ '
  35118. +PS2='> '
  35119. +PS4='+ '
  35120. -# An echo program that does not interpret backslashes.
  35121. -echo=$lt_echo
  35122. +# NLS nuisances.
  35123. +LC_ALL=C
  35124. +export LC_ALL
  35125. +LANGUAGE=C
  35126. +export LANGUAGE
  35127. -# The archiver.
  35128. -AR=$lt_AR
  35129. -AR_FLAGS=$lt_AR_FLAGS
  35130. +# CDPATH.
  35131. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35132. -# A C compiler.
  35133. -LTCC=$lt_LTCC
  35134. -# LTCC compiler flags.
  35135. -LTCFLAGS=$lt_LTCFLAGS
  35136. +# as_fn_error ERROR [LINENO LOG_FD]
  35137. +# ---------------------------------
  35138. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  35139. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  35140. +# script with status $?, using 1 if that was 0.
  35141. +as_fn_error ()
  35142. +{
  35143. + as_status=$?; test $as_status -eq 0 && as_status=1
  35144. + if test "$3"; then
  35145. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  35146. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  35147. + fi
  35148. + $as_echo "$as_me: error: $1" >&2
  35149. + as_fn_exit $as_status
  35150. +} # as_fn_error
  35151. -# A language-specific compiler.
  35152. -CC=$lt_compiler_RC
  35153. -# Is the compiler the GNU C compiler?
  35154. -with_gcc=$GCC_RC
  35155. +# as_fn_set_status STATUS
  35156. +# -----------------------
  35157. +# Set $? to STATUS, without forking.
  35158. +as_fn_set_status ()
  35159. +{
  35160. + return $1
  35161. +} # as_fn_set_status
  35162. -# An ERE matcher.
  35163. -EGREP=$lt_EGREP
  35164. +# as_fn_exit STATUS
  35165. +# -----------------
  35166. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  35167. +as_fn_exit ()
  35168. +{
  35169. + set +e
  35170. + as_fn_set_status $1
  35171. + exit $1
  35172. +} # as_fn_exit
  35173. +
  35174. +# as_fn_unset VAR
  35175. +# ---------------
  35176. +# Portably unset VAR.
  35177. +as_fn_unset ()
  35178. +{
  35179. + { eval $1=; unset $1;}
  35180. +}
  35181. +as_unset=as_fn_unset
  35182. +# as_fn_append VAR VALUE
  35183. +# ----------------------
  35184. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  35185. +# advantage of any shell optimizations that allow amortized linear growth over
  35186. +# repeated appends, instead of the typical quadratic growth present in naive
  35187. +# implementations.
  35188. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  35189. + eval 'as_fn_append ()
  35190. + {
  35191. + eval $1+=\$2
  35192. + }'
  35193. +else
  35194. + as_fn_append ()
  35195. + {
  35196. + eval $1=\$$1\$2
  35197. + }
  35198. +fi # as_fn_append
  35199. -# The linker used to build libraries.
  35200. -LD=$lt_LD_RC
  35201. +# as_fn_arith ARG...
  35202. +# ------------------
  35203. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  35204. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  35205. +# must be portable across $(()) and expr.
  35206. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  35207. + eval 'as_fn_arith ()
  35208. + {
  35209. + as_val=$(( $* ))
  35210. + }'
  35211. +else
  35212. + as_fn_arith ()
  35213. + {
  35214. + as_val=`expr "$@" || test $? -eq 1`
  35215. + }
  35216. +fi # as_fn_arith
  35217. -# Whether we need hard or soft links.
  35218. -LN_S=$lt_LN_S
  35219. -# A BSD-compatible nm program.
  35220. -NM=$lt_NM
  35221. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  35222. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  35223. + as_expr=expr
  35224. +else
  35225. + as_expr=false
  35226. +fi
  35227. -# A symbol stripping program
  35228. -STRIP=$lt_STRIP
  35229. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  35230. + as_basename=basename
  35231. +else
  35232. + as_basename=false
  35233. +fi
  35234. -# Used to examine libraries when file_magic_cmd begins "file"
  35235. -MAGIC_CMD=$MAGIC_CMD
  35236. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  35237. + as_dirname=dirname
  35238. +else
  35239. + as_dirname=false
  35240. +fi
  35241. -# Used on cygwin: DLL creation program.
  35242. -DLLTOOL="$DLLTOOL"
  35243. +as_me=`$as_basename -- "$0" ||
  35244. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  35245. + X"$0" : 'X\(//\)$' \| \
  35246. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  35247. +$as_echo X/"$0" |
  35248. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  35249. + s//\1/
  35250. + q
  35251. + }
  35252. + /^X\/\(\/\/\)$/{
  35253. + s//\1/
  35254. + q
  35255. + }
  35256. + /^X\/\(\/\).*/{
  35257. + s//\1/
  35258. + q
  35259. + }
  35260. + s/.*/./; q'`
  35261. -# Used on cygwin: object dumper.
  35262. -OBJDUMP="$OBJDUMP"
  35263. +# Avoid depending upon Character Ranges.
  35264. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  35265. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  35266. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  35267. +as_cr_digits='0123456789'
  35268. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  35269. -# Used on cygwin: assembler.
  35270. -AS="$AS"
  35271. +ECHO_C= ECHO_N= ECHO_T=
  35272. +case `echo -n x` in #(((((
  35273. +-n*)
  35274. + case `echo 'xy\c'` in
  35275. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  35276. + xy) ECHO_C='\c';;
  35277. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  35278. + ECHO_T=' ';;
  35279. + esac;;
  35280. +*)
  35281. + ECHO_N='-n';;
  35282. +esac
  35283. -# The name of the directory that contains temporary libtool files.
  35284. -objdir=$objdir
  35285. +rm -f conf$$ conf$$.exe conf$$.file
  35286. +if test -d conf$$.dir; then
  35287. + rm -f conf$$.dir/conf$$.file
  35288. +else
  35289. + rm -f conf$$.dir
  35290. + mkdir conf$$.dir 2>/dev/null
  35291. +fi
  35292. +if (echo >conf$$.file) 2>/dev/null; then
  35293. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  35294. + as_ln_s='ln -s'
  35295. + # ... but there are two gotchas:
  35296. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  35297. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  35298. + # In both cases, we have to default to `cp -p'.
  35299. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  35300. + as_ln_s='cp -p'
  35301. + elif ln conf$$.file conf$$ 2>/dev/null; then
  35302. + as_ln_s=ln
  35303. + else
  35304. + as_ln_s='cp -p'
  35305. + fi
  35306. +else
  35307. + as_ln_s='cp -p'
  35308. +fi
  35309. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  35310. +rmdir conf$$.dir 2>/dev/null
  35311. -# How to create reloadable object files.
  35312. -reload_flag=$lt_reload_flag
  35313. -reload_cmds=$lt_reload_cmds
  35314. -# How to pass a linker flag through the compiler.
  35315. -wl=$lt_lt_prog_compiler_wl_RC
  35316. +# as_fn_mkdir_p
  35317. +# -------------
  35318. +# Create "$as_dir" as a directory, including parents if necessary.
  35319. +as_fn_mkdir_p ()
  35320. +{
  35321. -# Object file suffix (normally "o").
  35322. -objext="$ac_objext"
  35323. + case $as_dir in #(
  35324. + -*) as_dir=./$as_dir;;
  35325. + esac
  35326. + test -d "$as_dir" || eval $as_mkdir_p || {
  35327. + as_dirs=
  35328. + while :; do
  35329. + case $as_dir in #(
  35330. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  35331. + *) as_qdir=$as_dir;;
  35332. + esac
  35333. + as_dirs="'$as_qdir' $as_dirs"
  35334. + as_dir=`$as_dirname -- "$as_dir" ||
  35335. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35336. + X"$as_dir" : 'X\(//\)[^/]' \| \
  35337. + X"$as_dir" : 'X\(//\)$' \| \
  35338. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  35339. +$as_echo X"$as_dir" |
  35340. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35341. + s//\1/
  35342. + q
  35343. + }
  35344. + /^X\(\/\/\)[^/].*/{
  35345. + s//\1/
  35346. + q
  35347. + }
  35348. + /^X\(\/\/\)$/{
  35349. + s//\1/
  35350. + q
  35351. + }
  35352. + /^X\(\/\).*/{
  35353. + s//\1/
  35354. + q
  35355. + }
  35356. + s/.*/./; q'`
  35357. + test -d "$as_dir" && break
  35358. + done
  35359. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  35360. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  35361. -# Old archive suffix (normally "a").
  35362. -libext="$libext"
  35363. -# Shared library suffix (normally ".so").
  35364. -shrext_cmds='$shrext_cmds'
  35365. +} # as_fn_mkdir_p
  35366. +if mkdir -p . 2>/dev/null; then
  35367. + as_mkdir_p='mkdir -p "$as_dir"'
  35368. +else
  35369. + test -d ./-p && rmdir ./-p
  35370. + as_mkdir_p=false
  35371. +fi
  35372. -# Executable file suffix (normally "").
  35373. -exeext="$exeext"
  35374. +if test -x / >/dev/null 2>&1; then
  35375. + as_test_x='test -x'
  35376. +else
  35377. + if ls -dL / >/dev/null 2>&1; then
  35378. + as_ls_L_option=L
  35379. + else
  35380. + as_ls_L_option=
  35381. + fi
  35382. + as_test_x='
  35383. + eval sh -c '\''
  35384. + if test -d "$1"; then
  35385. + test -d "$1/.";
  35386. + else
  35387. + case $1 in #(
  35388. + -*)set "./$1";;
  35389. + esac;
  35390. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  35391. + ???[sx]*):;;*)false;;esac;fi
  35392. + '\'' sh
  35393. + '
  35394. +fi
  35395. +as_executable_p=$as_test_x
  35396. -# Additional compiler flags for building library objects.
  35397. -pic_flag=$lt_lt_prog_compiler_pic_RC
  35398. -pic_mode=$pic_mode
  35399. +# Sed expression to map a string onto a valid CPP name.
  35400. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  35401. -# What is the maximum length of a command?
  35402. -max_cmd_len=$lt_cv_sys_max_cmd_len
  35403. +# Sed expression to map a string onto a valid variable name.
  35404. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  35405. -# Does compiler simultaneously support -c and -o options?
  35406. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  35407. -# Must we lock files when doing compilation?
  35408. -need_locks=$lt_need_locks
  35409. +exec 6>&1
  35410. +## ----------------------------------- ##
  35411. +## Main body of $CONFIG_STATUS script. ##
  35412. +## ----------------------------------- ##
  35413. +_ASEOF
  35414. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  35415. -# Do we need the lib prefix for modules?
  35416. -need_lib_prefix=$need_lib_prefix
  35417. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35418. +# Save the log message, to keep $0 and so on meaningful, and to
  35419. +# report actual input values of CONFIG_FILES etc. instead of their
  35420. +# values after options handling.
  35421. +ac_log="
  35422. +This file was extended by libnfnetlink $as_me 1.0.0, which was
  35423. +generated by GNU Autoconf 2.65. Invocation command line was
  35424. -# Do we need a version for libraries?
  35425. -need_version=$need_version
  35426. + CONFIG_FILES = $CONFIG_FILES
  35427. + CONFIG_HEADERS = $CONFIG_HEADERS
  35428. + CONFIG_LINKS = $CONFIG_LINKS
  35429. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  35430. + $ $0 $@
  35431. -# Whether dlopen is supported.
  35432. -dlopen_support=$enable_dlopen
  35433. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  35434. +"
  35435. -# Whether dlopen of programs is supported.
  35436. -dlopen_self=$enable_dlopen_self
  35437. +_ACEOF
  35438. -# Whether dlopen of statically linked programs is supported.
  35439. -dlopen_self_static=$enable_dlopen_self_static
  35440. +case $ac_config_files in *"
  35441. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  35442. +esac
  35443. -# Compiler flag to prevent dynamic linking.
  35444. -link_static_flag=$lt_lt_prog_compiler_static_RC
  35445. -# Compiler flag to turn off builtin functions.
  35446. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  35447. -# Compiler flag to allow reflexive dlopens.
  35448. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  35449. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35450. +# Files that config.status was made for.
  35451. +config_files="$ac_config_files"
  35452. +config_commands="$ac_config_commands"
  35453. -# Compiler flag to generate shared objects directly from archives.
  35454. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  35455. +_ACEOF
  35456. -# Compiler flag to generate thread-safe objects.
  35457. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  35458. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35459. +ac_cs_usage="\
  35460. +\`$as_me' instantiates files and other configuration actions
  35461. +from templates according to the current configuration. Unless the files
  35462. +and actions are specified as TAGs, all are instantiated by default.
  35463. -# Library versioning type.
  35464. -version_type=$version_type
  35465. +Usage: $0 [OPTION]... [TAG]...
  35466. -# Format of library name prefix.
  35467. -libname_spec=$lt_libname_spec
  35468. + -h, --help print this help, then exit
  35469. + -V, --version print version number and configuration settings, then exit
  35470. + --config print configuration, then exit
  35471. + -q, --quiet, --silent
  35472. + do not print progress messages
  35473. + -d, --debug don't remove temporary files
  35474. + --recheck update $as_me by reconfiguring in the same conditions
  35475. + --file=FILE[:TEMPLATE]
  35476. + instantiate the configuration file FILE
  35477. -# List of archive names. First name is the real one, the rest are links.
  35478. -# The last name is the one that the linker finds with -lNAME.
  35479. -library_names_spec=$lt_library_names_spec
  35480. +Configuration files:
  35481. +$config_files
  35482. -# The coded name of the library, if different from the real name.
  35483. -soname_spec=$lt_soname_spec
  35484. +Configuration commands:
  35485. +$config_commands
  35486. -# Commands used to build and install an old-style archive.
  35487. -RANLIB=$lt_RANLIB
  35488. -old_archive_cmds=$lt_old_archive_cmds_RC
  35489. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35490. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35491. +Report bugs to the package provider."
  35492. -# Create an old-style archive from a shared archive.
  35493. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  35494. +_ACEOF
  35495. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35496. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  35497. +ac_cs_version="\\
  35498. +libnfnetlink config.status 1.0.0
  35499. +configured by $0, generated by GNU Autoconf 2.65,
  35500. + with options \\"\$ac_cs_config\\"
  35501. -# Create a temporary old-style archive to link instead of a shared archive.
  35502. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  35503. +Copyright (C) 2009 Free Software Foundation, Inc.
  35504. +This config.status script is free software; the Free Software Foundation
  35505. +gives unlimited permission to copy, distribute and modify it."
  35506. -# Commands used to build and install a shared archive.
  35507. -archive_cmds=$lt_archive_cmds_RC
  35508. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  35509. -postinstall_cmds=$lt_postinstall_cmds
  35510. -postuninstall_cmds=$lt_postuninstall_cmds
  35511. +ac_pwd='$ac_pwd'
  35512. +srcdir='$srcdir'
  35513. +INSTALL='$INSTALL'
  35514. +MKDIR_P='$MKDIR_P'
  35515. +AWK='$AWK'
  35516. +test -n "\$AWK" || AWK=awk
  35517. +_ACEOF
  35518. -# Commands used to build a loadable module (assumed same as above if empty)
  35519. -module_cmds=$lt_module_cmds_RC
  35520. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  35521. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35522. +# The default lists apply if the user does not specify any file.
  35523. +ac_need_defaults=:
  35524. +while test $# != 0
  35525. +do
  35526. + case $1 in
  35527. + --*=*)
  35528. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  35529. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  35530. + ac_shift=:
  35531. + ;;
  35532. + *)
  35533. + ac_option=$1
  35534. + ac_optarg=$2
  35535. + ac_shift=shift
  35536. + ;;
  35537. + esac
  35538. -# Commands to strip libraries.
  35539. -old_striplib=$lt_old_striplib
  35540. -striplib=$lt_striplib
  35541. + case $ac_option in
  35542. + # Handling of the options.
  35543. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  35544. + ac_cs_recheck=: ;;
  35545. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  35546. + $as_echo "$ac_cs_version"; exit ;;
  35547. + --config | --confi | --conf | --con | --co | --c )
  35548. + $as_echo "$ac_cs_config"; exit ;;
  35549. + --debug | --debu | --deb | --de | --d | -d )
  35550. + debug=: ;;
  35551. + --file | --fil | --fi | --f )
  35552. + $ac_shift
  35553. + case $ac_optarg in
  35554. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  35555. + esac
  35556. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  35557. + ac_need_defaults=false;;
  35558. + --he | --h | --help | --hel | -h )
  35559. + $as_echo "$ac_cs_usage"; exit ;;
  35560. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  35561. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  35562. + ac_cs_silent=: ;;
  35563. -# Dependencies to place before the objects being linked to create a
  35564. -# shared library.
  35565. -predep_objects=$lt_predep_objects_RC
  35566. -
  35567. -# Dependencies to place after the objects being linked to create a
  35568. -# shared library.
  35569. -postdep_objects=$lt_postdep_objects_RC
  35570. -
  35571. -# Dependencies to place before the objects being linked to create a
  35572. -# shared library.
  35573. -predeps=$lt_predeps_RC
  35574. -
  35575. -# Dependencies to place after the objects being linked to create a
  35576. -# shared library.
  35577. -postdeps=$lt_postdeps_RC
  35578. -
  35579. -# The directories searched by this compiler when creating a shared
  35580. -# library
  35581. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  35582. -
  35583. -# The library search path used internally by the compiler when linking
  35584. -# a shared library.
  35585. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  35586. + # This is an error.
  35587. + -*) as_fn_error "unrecognized option: \`$1'
  35588. +Try \`$0 --help' for more information." ;;
  35589. -# Method to check whether dependent libraries are shared objects.
  35590. -deplibs_check_method=$lt_deplibs_check_method
  35591. + *) as_fn_append ac_config_targets " $1"
  35592. + ac_need_defaults=false ;;
  35593. -# Command to use when deplibs_check_method == file_magic.
  35594. -file_magic_cmd=$lt_file_magic_cmd
  35595. + esac
  35596. + shift
  35597. +done
  35598. -# Flag that allows shared libraries with undefined symbols to be built.
  35599. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  35600. +ac_configure_extra_args=
  35601. -# Flag that forces no undefined symbols.
  35602. -no_undefined_flag=$lt_no_undefined_flag_RC
  35603. +if $ac_cs_silent; then
  35604. + exec 6>/dev/null
  35605. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  35606. +fi
  35607. -# Commands used to finish a libtool library installation in a directory.
  35608. -finish_cmds=$lt_finish_cmds
  35609. +_ACEOF
  35610. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35611. +if \$ac_cs_recheck; then
  35612. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  35613. + shift
  35614. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  35615. + CONFIG_SHELL='$SHELL'
  35616. + export CONFIG_SHELL
  35617. + exec "\$@"
  35618. +fi
  35619. -# Same as above, but a single script fragment to be evaled but not shown.
  35620. -finish_eval=$lt_finish_eval
  35621. +_ACEOF
  35622. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35623. +exec 5>>config.log
  35624. +{
  35625. + echo
  35626. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  35627. +## Running $as_me. ##
  35628. +_ASBOX
  35629. + $as_echo "$ac_log"
  35630. +} >&5
  35631. -# Take the output of nm and produce a listing of raw symbols and C names.
  35632. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35633. +_ACEOF
  35634. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35635. +#
  35636. +# INIT-COMMANDS
  35637. +#
  35638. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  35639. -# Transform the output of nm in a proper C declaration
  35640. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35641. -# Transform the output of nm in a C name address pair
  35642. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35643. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  35644. +# if CDPATH is set.
  35645. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35646. -# This is the shared library runtime path variable.
  35647. -runpath_var=$runpath_var
  35648. +sed_quote_subst='$sed_quote_subst'
  35649. +double_quote_subst='$double_quote_subst'
  35650. +delay_variable_subst='$delay_variable_subst'
  35651. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  35652. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  35653. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  35654. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  35655. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  35656. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  35657. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  35658. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  35659. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  35660. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  35661. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  35662. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  35663. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  35664. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  35665. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  35666. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  35667. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  35668. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  35669. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  35670. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  35671. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  35672. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  35673. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  35674. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  35675. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  35676. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  35677. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  35678. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35679. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  35680. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  35681. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  35682. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  35683. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  35684. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  35685. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  35686. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35687. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35688. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35689. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  35690. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  35691. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  35692. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  35693. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  35694. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  35695. +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"`'
  35696. +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"`'
  35697. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  35698. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  35699. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  35700. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  35701. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  35702. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  35703. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  35704. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  35705. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  35706. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  35707. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  35708. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  35709. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  35710. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  35711. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  35712. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  35713. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35714. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35715. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  35716. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  35717. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35718. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35719. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  35720. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35721. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35722. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35723. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35724. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35725. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35726. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  35727. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  35728. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  35729. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35730. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  35731. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  35732. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  35733. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  35734. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  35735. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  35736. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  35737. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  35738. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  35739. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  35740. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  35741. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35742. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  35743. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  35744. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35745. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35746. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  35747. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  35748. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  35749. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  35750. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  35751. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  35752. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  35753. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35754. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35755. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35756. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35757. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35758. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  35759. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  35760. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  35761. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35762. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  35763. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  35764. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  35765. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  35766. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  35767. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  35768. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  35769. +
  35770. +LTCC='$LTCC'
  35771. +LTCFLAGS='$LTCFLAGS'
  35772. +compiler='$compiler_DEFAULT'
  35773. +
  35774. +# Quote evaled strings.
  35775. +for var in SED \
  35776. +GREP \
  35777. +EGREP \
  35778. +FGREP \
  35779. +LD \
  35780. +NM \
  35781. +LN_S \
  35782. +lt_SP2NL \
  35783. +lt_NL2SP \
  35784. +reload_flag \
  35785. +OBJDUMP \
  35786. +deplibs_check_method \
  35787. +file_magic_cmd \
  35788. +AR \
  35789. +AR_FLAGS \
  35790. +STRIP \
  35791. +RANLIB \
  35792. +CC \
  35793. +CFLAGS \
  35794. +compiler \
  35795. +lt_cv_sys_global_symbol_pipe \
  35796. +lt_cv_sys_global_symbol_to_cdecl \
  35797. +lt_cv_sys_global_symbol_to_c_name_address \
  35798. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  35799. +SHELL \
  35800. +ECHO \
  35801. +lt_prog_compiler_no_builtin_flag \
  35802. +lt_prog_compiler_wl \
  35803. +lt_prog_compiler_pic \
  35804. +lt_prog_compiler_static \
  35805. +lt_cv_prog_compiler_c_o \
  35806. +need_locks \
  35807. +DSYMUTIL \
  35808. +NMEDIT \
  35809. +LIPO \
  35810. +OTOOL \
  35811. +OTOOL64 \
  35812. +shrext_cmds \
  35813. +export_dynamic_flag_spec \
  35814. +whole_archive_flag_spec \
  35815. +compiler_needs_object \
  35816. +with_gnu_ld \
  35817. +allow_undefined_flag \
  35818. +no_undefined_flag \
  35819. +hardcode_libdir_flag_spec \
  35820. +hardcode_libdir_flag_spec_ld \
  35821. +hardcode_libdir_separator \
  35822. +fix_srcfile_path \
  35823. +exclude_expsyms \
  35824. +include_expsyms \
  35825. +file_list_spec \
  35826. +variables_saved_for_relink \
  35827. +libname_spec \
  35828. +library_names_spec \
  35829. +soname_spec \
  35830. +finish_eval \
  35831. +old_striplib \
  35832. +striplib; do
  35833. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  35834. + *[\\\\\\\`\\"\\\$]*)
  35835. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  35836. + ;;
  35837. + *)
  35838. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  35839. + ;;
  35840. + esac
  35841. +done
  35842. -# This is the shared library path variable.
  35843. -shlibpath_var=$shlibpath_var
  35844. +# Double-quote double-evaled strings.
  35845. +for var in reload_cmds \
  35846. +old_postinstall_cmds \
  35847. +old_postuninstall_cmds \
  35848. +old_archive_cmds \
  35849. +extract_expsyms_cmds \
  35850. +old_archive_from_new_cmds \
  35851. +old_archive_from_expsyms_cmds \
  35852. +archive_cmds \
  35853. +archive_expsym_cmds \
  35854. +module_cmds \
  35855. +module_expsym_cmds \
  35856. +export_symbols_cmds \
  35857. +prelink_cmds \
  35858. +postinstall_cmds \
  35859. +postuninstall_cmds \
  35860. +finish_cmds \
  35861. +sys_lib_search_path_spec \
  35862. +sys_lib_dlsearch_path_spec; do
  35863. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  35864. + *[\\\\\\\`\\"\\\$]*)
  35865. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  35866. + ;;
  35867. + *)
  35868. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  35869. + ;;
  35870. + esac
  35871. +done
  35872. -# Is shlibpath searched before the hard-coded library search path?
  35873. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35874. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  35875. +case \$lt_ECHO in
  35876. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  35877. + ;;
  35878. +esac
  35879. -# How to hardcode a shared library path into an executable.
  35880. -hardcode_action=$hardcode_action_RC
  35881. +ac_aux_dir='$ac_aux_dir'
  35882. +xsi_shell='$xsi_shell'
  35883. +lt_shell_append='$lt_shell_append'
  35884. -# Whether we should hardcode library paths into libraries.
  35885. -hardcode_into_libs=$hardcode_into_libs
  35886. +# See if we are running on zsh, and set the options which allow our
  35887. +# commands through without removal of \ escapes INIT.
  35888. +if test -n "\${ZSH_VERSION+set}" ; then
  35889. + setopt NO_GLOB_SUBST
  35890. +fi
  35891. -# Flag to hardcode \$libdir into a binary during linking.
  35892. -# This must work even if \$libdir does not exist.
  35893. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  35894. -# If ld is used when linking, flag to hardcode \$libdir into
  35895. -# a binary during linking. This must work even if \$libdir does
  35896. -# not exist.
  35897. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  35898. -
  35899. -# Whether we need a single -rpath flag with a separated argument.
  35900. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  35901. -
  35902. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35903. -# resulting binary.
  35904. -hardcode_direct=$hardcode_direct_RC
  35905. -
  35906. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35907. -# resulting binary.
  35908. -hardcode_minus_L=$hardcode_minus_L_RC
  35909. -
  35910. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35911. -# the resulting binary.
  35912. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  35913. -
  35914. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35915. -# and all subsequent libraries and executables linked against it.
  35916. -hardcode_automatic=$hardcode_automatic_RC
  35917. + PACKAGE='$PACKAGE'
  35918. + VERSION='$VERSION'
  35919. + TIMESTAMP='$TIMESTAMP'
  35920. + RM='$RM'
  35921. + ofile='$ofile'
  35922. -# Variables whose values should be saved in libtool wrapper scripts and
  35923. -# restored at relink time.
  35924. -variables_saved_for_relink="$variables_saved_for_relink"
  35925. -# Whether libtool must link a program against all its dependency libraries.
  35926. -link_all_deplibs=$link_all_deplibs_RC
  35927. -# Compile-time system search path for libraries
  35928. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35929. -# Run-time system search path for libraries
  35930. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35931. +_ACEOF
  35932. -# Fix the shell variable \$srcfile for the compiler.
  35933. -fix_srcfile_path=$lt_fix_srcfile_path
  35934. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35935. -# Set to yes if exported symbols are required.
  35936. -always_export_symbols=$always_export_symbols_RC
  35937. +# Handling of arguments.
  35938. +for ac_config_target in $ac_config_targets
  35939. +do
  35940. + case $ac_config_target in
  35941. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  35942. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  35943. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  35944. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  35945. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  35946. + "include/libnfnetlink/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnfnetlink/Makefile" ;;
  35947. + "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  35948. + "libnfnetlink.pc") CONFIG_FILES="$CONFIG_FILES libnfnetlink.pc" ;;
  35949. -# The commands to list exported symbols.
  35950. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  35951. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  35952. + esac
  35953. +done
  35954. -# The commands to extract the exported symbol list from a shared archive.
  35955. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35956. -# Symbols that should not be listed in the preloaded symbols.
  35957. -exclude_expsyms=$lt_exclude_expsyms_RC
  35958. +# If the user did not use the arguments to specify the items to instantiate,
  35959. +# then the envvar interface is used. Set only those that are not.
  35960. +# We use the long form for the default assignment because of an extremely
  35961. +# bizarre bug on SunOS 4.1.3.
  35962. +if $ac_need_defaults; then
  35963. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  35964. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  35965. +fi
  35966. -# Symbols that must always be exported.
  35967. -include_expsyms=$lt_include_expsyms_RC
  35968. +# Have a temporary directory for convenience. Make it in the build tree
  35969. +# simply because there is no reason against having it here, and in addition,
  35970. +# creating and moving files from /tmp can sometimes cause problems.
  35971. +# Hook for its removal unless debugging.
  35972. +# Note that there is a small window in which the directory will not be cleaned:
  35973. +# after its creation but before its name has been assigned to `$tmp'.
  35974. +$debug ||
  35975. +{
  35976. + tmp=
  35977. + trap 'exit_status=$?
  35978. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  35979. +' 0
  35980. + trap 'as_fn_exit 1' 1 2 13 15
  35981. +}
  35982. +# Create a (secure) tmp directory for tmp files.
  35983. -# ### END LIBTOOL TAG CONFIG: $tagname
  35984. +{
  35985. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  35986. + test -n "$tmp" && test -d "$tmp"
  35987. +} ||
  35988. +{
  35989. + tmp=./conf$$-$RANDOM
  35990. + (umask 077 && mkdir "$tmp")
  35991. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  35992. -__EOF__
  35993. +# Set up the scripts for CONFIG_FILES section.
  35994. +# No need to generate them if there are no CONFIG_FILES.
  35995. +# This happens for instance with `./config.status config.h'.
  35996. +if test -n "$CONFIG_FILES"; then
  35997. +ac_cr=`echo X | tr X '\015'`
  35998. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  35999. +# But we know of no other shell where ac_cr would be empty at this
  36000. +# point, so we can use a bashism as a fallback.
  36001. +if test "x$ac_cr" = x; then
  36002. + eval ac_cr=\$\'\\r\'
  36003. +fi
  36004. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  36005. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  36006. + ac_cs_awk_cr='\r'
  36007. else
  36008. - # If there is no Makefile yet, we rely on a make rule to execute
  36009. - # `config.status --recheck' to rerun these tests and create the
  36010. - # libtool script then.
  36011. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  36012. - if test -f "$ltmain_in"; then
  36013. - test -f Makefile && make "$ltmain"
  36014. - fi
  36015. + ac_cs_awk_cr=$ac_cr
  36016. fi
  36017. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  36018. +_ACEOF
  36019. -ac_ext=c
  36020. -ac_cpp='$CPP $CPPFLAGS'
  36021. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36022. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36023. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36024. -
  36025. -CC="$lt_save_CC"
  36026. -
  36027. - ;;
  36028. -
  36029. - *)
  36030. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  36031. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  36032. - { (exit 1); exit 1; }; }
  36033. - ;;
  36034. - esac
  36035. - # Append the new tag name to the list of available tags.
  36036. - if test -n "$tagname" ; then
  36037. - available_tags="$available_tags $tagname"
  36038. - fi
  36039. - fi
  36040. - done
  36041. - IFS="$lt_save_ifs"
  36042. +{
  36043. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  36044. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  36045. + echo "_ACEOF"
  36046. +} >conf$$subs.sh ||
  36047. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36048. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  36049. +ac_delim='%!_!# '
  36050. +for ac_last_try in false false false false false :; do
  36051. + . ./conf$$subs.sh ||
  36052. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36053. - # Now substitute the updated list of available tags.
  36054. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  36055. - mv "${ofile}T" "$ofile"
  36056. - chmod +x "$ofile"
  36057. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  36058. + if test $ac_delim_n = $ac_delim_num; then
  36059. + break
  36060. + elif $ac_last_try; then
  36061. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36062. else
  36063. - rm -f "${ofile}T"
  36064. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  36065. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  36066. - { (exit 1); exit 1; }; }
  36067. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  36068. fi
  36069. -fi
  36070. -
  36071. -
  36072. -
  36073. -# This can be used to rebuild libtool when needed
  36074. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  36075. +done
  36076. +rm -f conf$$subs.sh
  36077. -# Always use our own libtool.
  36078. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  36079. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36080. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  36081. +_ACEOF
  36082. +sed -n '
  36083. +h
  36084. +s/^/S["/; s/!.*/"]=/
  36085. +p
  36086. +g
  36087. +s/^[^!]*!//
  36088. +:repl
  36089. +t repl
  36090. +s/'"$ac_delim"'$//
  36091. +t delim
  36092. +:nl
  36093. +h
  36094. +s/\(.\{148\}\)..*/\1/
  36095. +t more1
  36096. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  36097. +p
  36098. +n
  36099. +b repl
  36100. +:more1
  36101. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  36102. +p
  36103. +g
  36104. +s/.\{148\}//
  36105. +t nl
  36106. +:delim
  36107. +h
  36108. +s/\(.\{148\}\)..*/\1/
  36109. +t more2
  36110. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  36111. +p
  36112. +b
  36113. +:more2
  36114. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  36115. +p
  36116. +g
  36117. +s/.\{148\}//
  36118. +t delim
  36119. +' <conf$$subs.awk | sed '
  36120. +/^[^""]/{
  36121. + N
  36122. + s/\n//
  36123. +}
  36124. +' >>$CONFIG_STATUS || ac_write_fail=1
  36125. +rm -f conf$$subs.awk
  36126. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36127. +_ACAWK
  36128. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  36129. + for (key in S) S_is_set[key] = 1
  36130. + FS = ""
  36131. -# Prevent multiple expansion
  36132. +}
  36133. +{
  36134. + line = $ 0
  36135. + nfields = split(line, field, "@")
  36136. + substed = 0
  36137. + len = length(field[1])
  36138. + for (i = 2; i < nfields; i++) {
  36139. + key = field[i]
  36140. + keylen = length(key)
  36141. + if (S_is_set[key]) {
  36142. + value = S[key]
  36143. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  36144. + len += length(value) + length(field[++i])
  36145. + substed = 1
  36146. + } else
  36147. + len += 1 + keylen
  36148. + }
  36149. + print line
  36150. +}
  36151. +_ACAWK
  36152. +_ACEOF
  36153. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36154. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  36155. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  36156. +else
  36157. + cat
  36158. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  36159. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  36160. +_ACEOF
  36161. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  36162. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  36163. +# trailing colons and then remove the whole line if VPATH becomes empty
  36164. +# (actually we leave an empty line to preserve line numbers).
  36165. +if test "x$srcdir" = x.; then
  36166. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  36167. +s/:*\$(srcdir):*/:/
  36168. +s/:*\${srcdir}:*/:/
  36169. +s/:*@srcdir@:*/:/
  36170. +s/^\([^=]*=[ ]*\):*/\1/
  36171. +s/:*$//
  36172. +s/^[^=]*=[ ]*$//
  36173. +}'
  36174. +fi
  36175. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36176. +fi # test -n "$CONFIG_FILES"
  36177. +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  36178. +shift
  36179. +for ac_tag
  36180. +do
  36181. + case $ac_tag in
  36182. + :[FHLC]) ac_mode=$ac_tag; continue;;
  36183. + esac
  36184. + case $ac_mode$ac_tag in
  36185. + :[FHL]*:*);;
  36186. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  36187. + :[FH]-) ac_tag=-:-;;
  36188. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  36189. + esac
  36190. + ac_save_IFS=$IFS
  36191. + IFS=:
  36192. + set x $ac_tag
  36193. + IFS=$ac_save_IFS
  36194. + shift
  36195. + ac_file=$1
  36196. + shift
  36197. + case $ac_mode in
  36198. + :L) ac_source=$1;;
  36199. + :[FH])
  36200. + ac_file_inputs=
  36201. + for ac_f
  36202. + do
  36203. + case $ac_f in
  36204. + -) ac_f="$tmp/stdin";;
  36205. + *) # Look for the file first in the build tree, then in the source tree
  36206. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  36207. + # because $ac_f cannot contain `:'.
  36208. + test -f "$ac_f" ||
  36209. + case $ac_f in
  36210. + [\\/$]*) false;;
  36211. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  36212. + esac ||
  36213. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  36214. + esac
  36215. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  36216. + as_fn_append ac_file_inputs " '$ac_f'"
  36217. + done
  36218. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  36219. + # use $as_me), people would be surprised to read:
  36220. + # /* config.h. Generated by config.status. */
  36221. + configure_input='Generated from '`
  36222. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  36223. + `' by configure.'
  36224. + if test x"$ac_file" != x-; then
  36225. + configure_input="$ac_file. $configure_input"
  36226. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  36227. +$as_echo "$as_me: creating $ac_file" >&6;}
  36228. + fi
  36229. + # Neutralize special characters interpreted by sed in replacement strings.
  36230. + case $configure_input in #(
  36231. + *\&* | *\|* | *\\* )
  36232. + ac_sed_conf_input=`$as_echo "$configure_input" |
  36233. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  36234. + *) ac_sed_conf_input=$configure_input;;
  36235. + esac
  36236. + case $ac_tag in
  36237. + *:-:* | *:-) cat >"$tmp/stdin" \
  36238. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  36239. + esac
  36240. + ;;
  36241. + esac
  36242. + ac_dir=`$as_dirname -- "$ac_file" ||
  36243. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36244. + X"$ac_file" : 'X\(//\)[^/]' \| \
  36245. + X"$ac_file" : 'X\(//\)$' \| \
  36246. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  36247. +$as_echo X"$ac_file" |
  36248. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36249. + s//\1/
  36250. + q
  36251. + }
  36252. + /^X\(\/\/\)[^/].*/{
  36253. + s//\1/
  36254. + q
  36255. + }
  36256. + /^X\(\/\/\)$/{
  36257. + s//\1/
  36258. + q
  36259. + }
  36260. + /^X\(\/\).*/{
  36261. + s//\1/
  36262. + q
  36263. + }
  36264. + s/.*/./; q'`
  36265. + as_dir="$ac_dir"; as_fn_mkdir_p
  36266. + ac_builddir=.
  36267. +case "$ac_dir" in
  36268. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  36269. +*)
  36270. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  36271. + # A ".." for each directory in $ac_dir_suffix.
  36272. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  36273. + case $ac_top_builddir_sub in
  36274. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  36275. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  36276. + esac ;;
  36277. +esac
  36278. +ac_abs_top_builddir=$ac_pwd
  36279. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  36280. +# for backward compatibility:
  36281. +ac_top_builddir=$ac_top_build_prefix
  36282. +case $srcdir in
  36283. + .) # We are building in place.
  36284. + ac_srcdir=.
  36285. + ac_top_srcdir=$ac_top_builddir_sub
  36286. + ac_abs_top_srcdir=$ac_pwd ;;
  36287. + [\\/]* | ?:[\\/]* ) # Absolute name.
  36288. + ac_srcdir=$srcdir$ac_dir_suffix;
  36289. + ac_top_srcdir=$srcdir
  36290. + ac_abs_top_srcdir=$srcdir ;;
  36291. + *) # Relative name.
  36292. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  36293. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  36294. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  36295. +esac
  36296. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  36297. + case $ac_mode in
  36298. + :F)
  36299. + #
  36300. + # CONFIG_FILE
  36301. + #
  36302. + case $INSTALL in
  36303. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  36304. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  36305. + esac
  36306. + ac_MKDIR_P=$MKDIR_P
  36307. + case $MKDIR_P in
  36308. + [\\/$]* | ?:[\\/]* ) ;;
  36309. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  36310. + esac
  36311. +_ACEOF
  36312. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36313. +# If the template does not know about datarootdir, expand it.
  36314. +# FIXME: This hack should be removed a few years after 2.60.
  36315. +ac_datarootdir_hack=; ac_datarootdir_seen=
  36316. +ac_sed_dataroot='
  36317. +/datarootdir/ {
  36318. + p
  36319. + q
  36320. +}
  36321. +/@datadir@/p
  36322. +/@docdir@/p
  36323. +/@infodir@/p
  36324. +/@localedir@/p
  36325. +/@mandir@/p'
  36326. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  36327. +*datarootdir*) ac_datarootdir_seen=yes;;
  36328. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  36329. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  36330. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  36331. +_ACEOF
  36332. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36333. + ac_datarootdir_hack='
  36334. + s&@datadir@&$datadir&g
  36335. + s&@docdir@&$docdir&g
  36336. + s&@infodir@&$infodir&g
  36337. + s&@localedir@&$localedir&g
  36338. + s&@mandir@&$mandir&g
  36339. + s&\\\${datarootdir}&$datarootdir&g' ;;
  36340. +esac
  36341. +_ACEOF
  36342. +# Neutralize VPATH when `$srcdir' = `.'.
  36343. +# Shell code in configure.ac might set extrasub.
  36344. +# FIXME: do we really want to maintain this feature?
  36345. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36346. +ac_sed_extra="$ac_vpsub
  36347. +$extrasub
  36348. +_ACEOF
  36349. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36350. +:t
  36351. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  36352. +s|@configure_input@|$ac_sed_conf_input|;t t
  36353. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  36354. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  36355. +s&@srcdir@&$ac_srcdir&;t t
  36356. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  36357. +s&@top_srcdir@&$ac_top_srcdir&;t t
  36358. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  36359. +s&@builddir@&$ac_builddir&;t t
  36360. +s&@abs_builddir@&$ac_abs_builddir&;t t
  36361. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  36362. +s&@INSTALL@&$ac_INSTALL&;t t
  36363. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  36364. +$ac_datarootdir_hack
  36365. +"
  36366. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  36367. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  36368. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  36369. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  36370. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  36371. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  36372. +which seems to be undefined. Please make sure it is defined." >&5
  36373. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  36374. +which seems to be undefined. Please make sure it is defined." >&2;}
  36375. + rm -f "$tmp/stdin"
  36376. + case $ac_file in
  36377. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  36378. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  36379. + esac \
  36380. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  36381. + ;;
  36382. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  36383. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  36384. + ;;
  36385. + esac
  36386. -case $target in
  36387. -*-*-linux*) ;;
  36388. -*) { { echo "$as_me:$LINENO: error: Linux only, dude!" >&5
  36389. -echo "$as_me: error: Linux only, dude!" >&2;}
  36390. - { (exit 1); exit 1; }; };;
  36391. -esac
  36392. + case $ac_file$ac_mode in
  36393. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  36394. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  36395. + # are listed without --file. Let's play safe and only enable the eval
  36396. + # if we detect the quoting.
  36397. + case $CONFIG_FILES in
  36398. + *\'*) eval set x "$CONFIG_FILES" ;;
  36399. + *) set x $CONFIG_FILES ;;
  36400. + esac
  36401. + shift
  36402. + for mf
  36403. + do
  36404. + # Strip MF so we end up with the name of the file.
  36405. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  36406. + # Check whether this is an Automake generated Makefile or not.
  36407. + # We used to match only the files named `Makefile.in', but
  36408. + # some people rename them; so instead we look at the file content.
  36409. + # Grep'ing the first line is not enough: some people post-process
  36410. + # each Makefile.in and add a new line on top of each file to say so.
  36411. + # Grep'ing the whole file is not good either: AIX grep has a line
  36412. + # limit of 2048, but all sed's we know have understand at least 4000.
  36413. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  36414. + dirpart=`$as_dirname -- "$mf" ||
  36415. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36416. + X"$mf" : 'X\(//\)[^/]' \| \
  36417. + X"$mf" : 'X\(//\)$' \| \
  36418. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  36419. +$as_echo X"$mf" |
  36420. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36421. + s//\1/
  36422. + q
  36423. + }
  36424. + /^X\(\/\/\)[^/].*/{
  36425. + s//\1/
  36426. + q
  36427. + }
  36428. + /^X\(\/\/\)$/{
  36429. + s//\1/
  36430. + q
  36431. + }
  36432. + /^X\(\/\).*/{
  36433. + s//\1/
  36434. + q
  36435. + }
  36436. + s/.*/./; q'`
  36437. + else
  36438. + continue
  36439. + fi
  36440. + # Extract the definition of DEPDIR, am__include, and am__quote
  36441. + # from the Makefile without running `make'.
  36442. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  36443. + test -z "$DEPDIR" && continue
  36444. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  36445. + test -z "am__include" && continue
  36446. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  36447. + # When using ansi2knr, U may be empty or an underscore; expand it
  36448. + U=`sed -n 's/^U = //p' < "$mf"`
  36449. + # Find all dependency output files, they are included files with
  36450. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  36451. + # simplest approach to changing $(DEPDIR) to its actual value in the
  36452. + # expansion.
  36453. + for file in `sed -n "
  36454. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  36455. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  36456. + # Make sure the directory exists.
  36457. + test -f "$dirpart/$file" && continue
  36458. + fdir=`$as_dirname -- "$file" ||
  36459. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36460. + X"$file" : 'X\(//\)[^/]' \| \
  36461. + X"$file" : 'X\(//\)$' \| \
  36462. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  36463. +$as_echo X"$file" |
  36464. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36465. + s//\1/
  36466. + q
  36467. + }
  36468. + /^X\(\/\/\)[^/].*/{
  36469. + s//\1/
  36470. + q
  36471. + }
  36472. + /^X\(\/\/\)$/{
  36473. + s//\1/
  36474. + q
  36475. + }
  36476. + /^X\(\/\).*/{
  36477. + s//\1/
  36478. + q
  36479. + }
  36480. + s/.*/./; q'`
  36481. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  36482. + # echo "creating $dirpart/$file"
  36483. + echo '# dummy' > "$dirpart/$file"
  36484. + done
  36485. + done
  36486. +}
  36487. + ;;
  36488. + "libtool":C)
  36489. + # See if we are running on zsh, and set the options which allow our
  36490. + # commands through without removal of \ escapes.
  36491. + if test -n "${ZSH_VERSION+set}" ; then
  36492. + setopt NO_GLOB_SUBST
  36493. + fi
  36494. + cfgfile="${ofile}T"
  36495. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  36496. + $RM "$cfgfile"
  36497. -ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnfnetlink/Makefile utils/Makefile libnfnetlink.pc"
  36498. + cat <<_LT_EOF >> "$cfgfile"
  36499. +#! $SHELL
  36500. -cat >confcache <<\_ACEOF
  36501. -# This file is a shell script that caches the results of configure
  36502. -# tests run on this system so they can be shared between configure
  36503. -# scripts and configure runs, see configure's option --config-cache.
  36504. -# It is not useful on other systems. If it contains results you don't
  36505. -# want to keep, you may remove or edit it.
  36506. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  36507. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  36508. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36509. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  36510. #
  36511. -# config.status only pays attention to the cache file if you give it
  36512. -# the --recheck option to rerun configure.
  36513. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  36514. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  36515. +# Written by Gordon Matzigkeit, 1996
  36516. +#
  36517. +# This file is part of GNU Libtool.
  36518. +#
  36519. +# GNU Libtool is free software; you can redistribute it and/or
  36520. +# modify it under the terms of the GNU General Public License as
  36521. +# published by the Free Software Foundation; either version 2 of
  36522. +# the License, or (at your option) any later version.
  36523. +#
  36524. +# As a special exception to the GNU General Public License,
  36525. +# if you distribute this file as part of a program or library that
  36526. +# is built using GNU Libtool, you may include this file under the
  36527. +# same distribution terms that you use for the rest of that program.
  36528. +#
  36529. +# GNU Libtool is distributed in the hope that it will be useful,
  36530. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  36531. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36532. +# GNU General Public License for more details.
  36533. #
  36534. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  36535. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  36536. -# following values.
  36537. +# You should have received a copy of the GNU General Public License
  36538. +# along with GNU Libtool; see the file COPYING. If not, a copy
  36539. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  36540. +# obtained by writing to the Free Software Foundation, Inc.,
  36541. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  36542. -_ACEOF
  36543. -# The following way of writing the cache mishandles newlines in values,
  36544. -# but we know of no workaround that is simple, portable, and efficient.
  36545. -# So, we kill variables containing newlines.
  36546. -# Ultrix sh set writes to stderr and can't be redirected directly,
  36547. -# and sets the high bit in the cache file unless we assign to the vars.
  36548. -(
  36549. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  36550. - eval ac_val=\$$ac_var
  36551. - case $ac_val in #(
  36552. - *${as_nl}*)
  36553. - case $ac_var in #(
  36554. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  36555. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  36556. - esac
  36557. - case $ac_var in #(
  36558. - _ | IFS | as_nl) ;; #(
  36559. - *) $as_unset $ac_var ;;
  36560. - esac ;;
  36561. - esac
  36562. - done
  36563. +# The names of the tagged configurations supported by this script.
  36564. +available_tags=""
  36565. - (set) 2>&1 |
  36566. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  36567. - *${as_nl}ac_space=\ *)
  36568. - # `set' does not quote correctly, so add quotes (double-quote
  36569. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  36570. - sed -n \
  36571. - "s/'/'\\\\''/g;
  36572. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  36573. - ;; #(
  36574. - *)
  36575. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  36576. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  36577. - ;;
  36578. - esac |
  36579. - sort
  36580. -) |
  36581. - sed '
  36582. - /^ac_cv_env_/b end
  36583. - t clear
  36584. - :clear
  36585. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  36586. - t end
  36587. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  36588. - :end' >>confcache
  36589. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  36590. - if test -w "$cache_file"; then
  36591. - test "x$cache_file" != "x/dev/null" &&
  36592. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  36593. -echo "$as_me: updating cache $cache_file" >&6;}
  36594. - cat confcache >$cache_file
  36595. - else
  36596. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  36597. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  36598. - fi
  36599. -fi
  36600. -rm -f confcache
  36601. +# ### BEGIN LIBTOOL CONFIG
  36602. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  36603. -# Let make expand exec_prefix.
  36604. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  36605. +# Which release of libtool.m4 was used?
  36606. +macro_version=$macro_version
  36607. +macro_revision=$macro_revision
  36608. -# Transform confdefs.h into DEFS.
  36609. -# Protect against shell expansion while executing Makefile rules.
  36610. -# Protect against Makefile macro expansion.
  36611. -#
  36612. -# If the first sed substitution is executed (which looks for macros that
  36613. -# take arguments), then branch to the quote section. Otherwise,
  36614. -# look for a macro that doesn't take arguments.
  36615. -ac_script='
  36616. -t clear
  36617. -:clear
  36618. -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  36619. -t quote
  36620. -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  36621. -t quote
  36622. -b any
  36623. -:quote
  36624. -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  36625. -s/\[/\\&/g
  36626. -s/\]/\\&/g
  36627. -s/\$/$$/g
  36628. -H
  36629. -:any
  36630. -${
  36631. - g
  36632. - s/^\n//
  36633. - s/\n/ /g
  36634. - p
  36635. -}
  36636. -'
  36637. -DEFS=`sed -n "$ac_script" confdefs.h`
  36638. +# Whether or not to build shared libraries.
  36639. +build_libtool_libs=$enable_shared
  36640. +# Whether or not to build static libraries.
  36641. +build_old_libs=$enable_static
  36642. -ac_libobjs=
  36643. -ac_ltlibobjs=
  36644. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  36645. - # 1. Remove the extension, and $U if already installed.
  36646. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  36647. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  36648. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  36649. - # will be set to the directory where LIBOBJS objects are built.
  36650. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  36651. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  36652. -done
  36653. -LIBOBJS=$ac_libobjs
  36654. +# What type of objects to build.
  36655. +pic_mode=$pic_mode
  36656. -LTLIBOBJS=$ac_ltlibobjs
  36657. +# Whether or not to optimize for fast installation.
  36658. +fast_install=$enable_fast_install
  36659. +# The host system.
  36660. +host_alias=$host_alias
  36661. +host=$host
  36662. +host_os=$host_os
  36663. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  36664. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  36665. -Usually this means the macro was only invoked conditionally." >&5
  36666. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  36667. -Usually this means the macro was only invoked conditionally." >&2;}
  36668. - { (exit 1); exit 1; }; }
  36669. -fi
  36670. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  36671. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  36672. -Usually this means the macro was only invoked conditionally." >&5
  36673. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  36674. -Usually this means the macro was only invoked conditionally." >&2;}
  36675. - { (exit 1); exit 1; }; }
  36676. -fi
  36677. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  36678. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  36679. -Usually this means the macro was only invoked conditionally." >&5
  36680. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  36681. -Usually this means the macro was only invoked conditionally." >&2;}
  36682. - { (exit 1); exit 1; }; }
  36683. -fi
  36684. +# The build system.
  36685. +build_alias=$build_alias
  36686. +build=$build
  36687. +build_os=$build_os
  36688. -: ${CONFIG_STATUS=./config.status}
  36689. -ac_clean_files_save=$ac_clean_files
  36690. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  36691. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  36692. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  36693. -cat >$CONFIG_STATUS <<_ACEOF
  36694. -#! $SHELL
  36695. -# Generated by $as_me.
  36696. -# Run this file to recreate the current configuration.
  36697. -# Compiler output produced by configure, useful for debugging
  36698. -# configure, is in config.log if it exists.
  36699. +# A sed program that does not truncate output.
  36700. +SED=$lt_SED
  36701. -debug=false
  36702. -ac_cs_recheck=false
  36703. -ac_cs_silent=false
  36704. -SHELL=\${CONFIG_SHELL-$SHELL}
  36705. -_ACEOF
  36706. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  36707. +Xsed="\$SED -e 1s/^X//"
  36708. -cat >>$CONFIG_STATUS <<\_ACEOF
  36709. -## --------------------- ##
  36710. -## M4sh Initialization. ##
  36711. -## --------------------- ##
  36712. +# A grep program that handles long lines.
  36713. +GREP=$lt_GREP
  36714. -# Be more Bourne compatible
  36715. -DUALCASE=1; export DUALCASE # for MKS sh
  36716. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  36717. - emulate sh
  36718. - NULLCMD=:
  36719. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  36720. - # is contrary to our usage. Disable this feature.
  36721. - alias -g '${1+"$@"}'='"$@"'
  36722. - setopt NO_GLOB_SUBST
  36723. -else
  36724. - case `(set -o) 2>/dev/null` in
  36725. - *posix*) set -o posix ;;
  36726. -esac
  36727. +# An ERE matcher.
  36728. +EGREP=$lt_EGREP
  36729. -fi
  36730. +# A literal string matcher.
  36731. +FGREP=$lt_FGREP
  36732. +# A BSD- or MS-compatible name lister.
  36733. +NM=$lt_NM
  36734. +# Whether we need soft or hard links.
  36735. +LN_S=$lt_LN_S
  36736. +# What is the maximum length of a command?
  36737. +max_cmd_len=$max_cmd_len
  36738. -# PATH needs CR
  36739. -# Avoid depending upon Character Ranges.
  36740. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  36741. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  36742. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  36743. -as_cr_digits='0123456789'
  36744. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  36745. +# Object file suffix (normally "o").
  36746. +objext=$ac_objext
  36747. -# The user is always right.
  36748. -if test "${PATH_SEPARATOR+set}" != set; then
  36749. - echo "#! /bin/sh" >conf$$.sh
  36750. - echo "exit 0" >>conf$$.sh
  36751. - chmod +x conf$$.sh
  36752. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  36753. - PATH_SEPARATOR=';'
  36754. - else
  36755. - PATH_SEPARATOR=:
  36756. - fi
  36757. - rm -f conf$$.sh
  36758. -fi
  36759. +# Executable file suffix (normally "").
  36760. +exeext=$exeext
  36761. -# Support unset when possible.
  36762. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  36763. - as_unset=unset
  36764. -else
  36765. - as_unset=false
  36766. -fi
  36767. +# whether the shell understands "unset".
  36768. +lt_unset=$lt_unset
  36769. +# turn spaces into newlines.
  36770. +SP2NL=$lt_lt_SP2NL
  36771. -# IFS
  36772. -# We need space, tab and new line, in precisely that order. Quoting is
  36773. -# there to prevent editors from complaining about space-tab.
  36774. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  36775. -# splitting by setting IFS to empty value.)
  36776. -as_nl='
  36777. -'
  36778. -IFS=" "" $as_nl"
  36779. +# turn newlines into spaces.
  36780. +NL2SP=$lt_lt_NL2SP
  36781. -# Find who we are. Look in the path if we contain no directory separator.
  36782. -case $0 in
  36783. - *[\\/]* ) as_myself=$0 ;;
  36784. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36785. -for as_dir in $PATH
  36786. -do
  36787. - IFS=$as_save_IFS
  36788. - test -z "$as_dir" && as_dir=.
  36789. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  36790. -done
  36791. -IFS=$as_save_IFS
  36792. +# How to create reloadable object files.
  36793. +reload_flag=$lt_reload_flag
  36794. +reload_cmds=$lt_reload_cmds
  36795. - ;;
  36796. -esac
  36797. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  36798. -# in which case we are not to be found in the path.
  36799. -if test "x$as_myself" = x; then
  36800. - as_myself=$0
  36801. -fi
  36802. -if test ! -f "$as_myself"; then
  36803. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  36804. - { (exit 1); exit 1; }
  36805. -fi
  36806. +# An object symbol dumper.
  36807. +OBJDUMP=$lt_OBJDUMP
  36808. -# Work around bugs in pre-3.0 UWIN ksh.
  36809. -for as_var in ENV MAIL MAILPATH
  36810. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  36811. -done
  36812. -PS1='$ '
  36813. -PS2='> '
  36814. -PS4='+ '
  36815. +# Method to check whether dependent libraries are shared objects.
  36816. +deplibs_check_method=$lt_deplibs_check_method
  36817. -# NLS nuisances.
  36818. -for as_var in \
  36819. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36820. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  36821. - LC_TELEPHONE LC_TIME
  36822. -do
  36823. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  36824. - eval $as_var=C; export $as_var
  36825. - else
  36826. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  36827. - fi
  36828. -done
  36829. +# Command to use when deplibs_check_method == "file_magic".
  36830. +file_magic_cmd=$lt_file_magic_cmd
  36831. +
  36832. +# The archiver.
  36833. +AR=$lt_AR
  36834. +AR_FLAGS=$lt_AR_FLAGS
  36835. -# Required to use basename.
  36836. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  36837. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  36838. - as_expr=expr
  36839. -else
  36840. - as_expr=false
  36841. -fi
  36842. +# A symbol stripping program.
  36843. +STRIP=$lt_STRIP
  36844. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  36845. - as_basename=basename
  36846. -else
  36847. - as_basename=false
  36848. -fi
  36849. +# Commands used to install an old-style archive.
  36850. +RANLIB=$lt_RANLIB
  36851. +old_postinstall_cmds=$lt_old_postinstall_cmds
  36852. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36853. +# A C compiler.
  36854. +LTCC=$lt_CC
  36855. -# Name of the executable.
  36856. -as_me=`$as_basename -- "$0" ||
  36857. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  36858. - X"$0" : 'X\(//\)$' \| \
  36859. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  36860. -echo X/"$0" |
  36861. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  36862. - s//\1/
  36863. - q
  36864. - }
  36865. - /^X\/\(\/\/\)$/{
  36866. - s//\1/
  36867. - q
  36868. - }
  36869. - /^X\/\(\/\).*/{
  36870. - s//\1/
  36871. - q
  36872. - }
  36873. - s/.*/./; q'`
  36874. +# LTCC compiler flags.
  36875. +LTCFLAGS=$lt_CFLAGS
  36876. -# CDPATH.
  36877. -$as_unset CDPATH
  36878. +# Take the output of nm and produce a listing of raw symbols and C names.
  36879. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36880. +# Transform the output of nm in a proper C declaration.
  36881. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36882. +# Transform the output of nm in a C name address pair.
  36883. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36884. - as_lineno_1=$LINENO
  36885. - as_lineno_2=$LINENO
  36886. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  36887. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  36888. -
  36889. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  36890. - # uniformly replaced by the line number. The first 'sed' inserts a
  36891. - # line-number line after each line using $LINENO; the second 'sed'
  36892. - # does the real work. The second script uses 'N' to pair each
  36893. - # line-number line with the line containing $LINENO, and appends
  36894. - # trailing '-' during substitution so that $LINENO is not a special
  36895. - # case at line end.
  36896. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  36897. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  36898. - # E. McMahon (1931-1989) for sed's syntax. :-)
  36899. - sed -n '
  36900. - p
  36901. - /[$]LINENO/=
  36902. - ' <$as_myself |
  36903. - sed '
  36904. - s/[$]LINENO.*/&-/
  36905. - t lineno
  36906. - b
  36907. - :lineno
  36908. - N
  36909. - :loop
  36910. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  36911. - t loop
  36912. - s/-\n.*//
  36913. - ' >$as_me.lineno &&
  36914. - chmod +x "$as_me.lineno" ||
  36915. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  36916. - { (exit 1); exit 1; }; }
  36917. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  36918. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  36919. - # Don't try to exec as it changes $[0], causing all sort of problems
  36920. - # (the dirname of $[0] is not the place where we might find the
  36921. - # original and so on. Autoconf is especially sensitive to this).
  36922. - . "./$as_me.lineno"
  36923. - # Exit status is that of the last command.
  36924. - exit
  36925. -}
  36926. +# The name of the directory that contains temporary libtool files.
  36927. +objdir=$objdir
  36928. +# Shell to use when invoking shell scripts.
  36929. +SHELL=$lt_SHELL
  36930. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  36931. - as_dirname=dirname
  36932. -else
  36933. - as_dirname=false
  36934. -fi
  36935. +# An echo program that does not interpret backslashes.
  36936. +ECHO=$lt_ECHO
  36937. -ECHO_C= ECHO_N= ECHO_T=
  36938. -case `echo -n x` in
  36939. --n*)
  36940. - case `echo 'x\c'` in
  36941. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  36942. - *) ECHO_C='\c';;
  36943. - esac;;
  36944. -*)
  36945. - ECHO_N='-n';;
  36946. -esac
  36947. +# Used to examine libraries when file_magic_cmd begins with "file".
  36948. +MAGIC_CMD=$MAGIC_CMD
  36949. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  36950. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  36951. - as_expr=expr
  36952. -else
  36953. - as_expr=false
  36954. -fi
  36955. +# Must we lock files when doing compilation?
  36956. +need_locks=$lt_need_locks
  36957. -rm -f conf$$ conf$$.exe conf$$.file
  36958. -if test -d conf$$.dir; then
  36959. - rm -f conf$$.dir/conf$$.file
  36960. -else
  36961. - rm -f conf$$.dir
  36962. - mkdir conf$$.dir
  36963. -fi
  36964. -echo >conf$$.file
  36965. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  36966. - as_ln_s='ln -s'
  36967. - # ... but there are two gotchas:
  36968. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  36969. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  36970. - # In both cases, we have to default to `cp -p'.
  36971. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  36972. - as_ln_s='cp -p'
  36973. -elif ln conf$$.file conf$$ 2>/dev/null; then
  36974. - as_ln_s=ln
  36975. -else
  36976. - as_ln_s='cp -p'
  36977. -fi
  36978. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  36979. -rmdir conf$$.dir 2>/dev/null
  36980. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  36981. +DSYMUTIL=$lt_DSYMUTIL
  36982. -if mkdir -p . 2>/dev/null; then
  36983. - as_mkdir_p=:
  36984. -else
  36985. - test -d ./-p && rmdir ./-p
  36986. - as_mkdir_p=false
  36987. -fi
  36988. +# Tool to change global to local symbols on Mac OS X.
  36989. +NMEDIT=$lt_NMEDIT
  36990. -if test -x / >/dev/null 2>&1; then
  36991. - as_test_x='test -x'
  36992. -else
  36993. - if ls -dL / >/dev/null 2>&1; then
  36994. - as_ls_L_option=L
  36995. - else
  36996. - as_ls_L_option=
  36997. - fi
  36998. - as_test_x='
  36999. - eval sh -c '\''
  37000. - if test -d "$1"; then
  37001. - test -d "$1/.";
  37002. - else
  37003. - case $1 in
  37004. - -*)set "./$1";;
  37005. - esac;
  37006. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  37007. - ???[sx]*):;;*)false;;esac;fi
  37008. - '\'' sh
  37009. - '
  37010. -fi
  37011. -as_executable_p=$as_test_x
  37012. +# Tool to manipulate fat objects and archives on Mac OS X.
  37013. +LIPO=$lt_LIPO
  37014. -# Sed expression to map a string onto a valid CPP name.
  37015. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  37016. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  37017. +OTOOL=$lt_OTOOL
  37018. -# Sed expression to map a string onto a valid variable name.
  37019. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  37020. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  37021. +OTOOL64=$lt_OTOOL64
  37022. +# Old archive suffix (normally "a").
  37023. +libext=$libext
  37024. -exec 6>&1
  37025. +# Shared library suffix (normally ".so").
  37026. +shrext_cmds=$lt_shrext_cmds
  37027. -# Save the log message, to keep $[0] and so on meaningful, and to
  37028. -# report actual input values of CONFIG_FILES etc. instead of their
  37029. -# values after options handling.
  37030. -ac_log="
  37031. -This file was extended by libnfnetlink $as_me 1.0.0, which was
  37032. -generated by GNU Autoconf 2.61. Invocation command line was
  37033. +# The commands to extract the exported symbol list from a shared archive.
  37034. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37035. - CONFIG_FILES = $CONFIG_FILES
  37036. - CONFIG_HEADERS = $CONFIG_HEADERS
  37037. - CONFIG_LINKS = $CONFIG_LINKS
  37038. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  37039. - $ $0 $@
  37040. +# Variables whose values should be saved in libtool wrapper scripts and
  37041. +# restored at link time.
  37042. +variables_saved_for_relink=$lt_variables_saved_for_relink
  37043. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  37044. -"
  37045. +# Do we need the "lib" prefix for modules?
  37046. +need_lib_prefix=$need_lib_prefix
  37047. -_ACEOF
  37048. +# Do we need a version for libraries?
  37049. +need_version=$need_version
  37050. -cat >>$CONFIG_STATUS <<_ACEOF
  37051. -# Files that config.status was made for.
  37052. -config_files="$ac_config_files"
  37053. -config_commands="$ac_config_commands"
  37054. +# Library versioning type.
  37055. +version_type=$version_type
  37056. -_ACEOF
  37057. +# Shared library runtime path variable.
  37058. +runpath_var=$runpath_var
  37059. -cat >>$CONFIG_STATUS <<\_ACEOF
  37060. -ac_cs_usage="\
  37061. -\`$as_me' instantiates files from templates according to the
  37062. -current configuration.
  37063. +# Shared library path variable.
  37064. +shlibpath_var=$shlibpath_var
  37065. -Usage: $0 [OPTIONS] [FILE]...
  37066. +# Is shlibpath searched before the hard-coded library search path?
  37067. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37068. - -h, --help print this help, then exit
  37069. - -V, --version print version number and configuration settings, then exit
  37070. - -q, --quiet do not print progress messages
  37071. - -d, --debug don't remove temporary files
  37072. - --recheck update $as_me by reconfiguring in the same conditions
  37073. - --file=FILE[:TEMPLATE]
  37074. - instantiate the configuration file FILE
  37075. +# Format of library name prefix.
  37076. +libname_spec=$lt_libname_spec
  37077. -Configuration files:
  37078. -$config_files
  37079. +# List of archive names. First name is the real one, the rest are links.
  37080. +# The last name is the one that the linker finds with -lNAME
  37081. +library_names_spec=$lt_library_names_spec
  37082. -Configuration commands:
  37083. -$config_commands
  37084. +# The coded name of the library, if different from the real name.
  37085. +soname_spec=$lt_soname_spec
  37086. -Report bugs to <bug-autoconf@gnu.org>."
  37087. +# Command to use after installation of a shared archive.
  37088. +postinstall_cmds=$lt_postinstall_cmds
  37089. -_ACEOF
  37090. -cat >>$CONFIG_STATUS <<_ACEOF
  37091. -ac_cs_version="\\
  37092. -libnfnetlink config.status 1.0.0
  37093. -configured by $0, generated by GNU Autoconf 2.61,
  37094. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  37095. +# Command to use after uninstallation of a shared archive.
  37096. +postuninstall_cmds=$lt_postuninstall_cmds
  37097. -Copyright (C) 2006 Free Software Foundation, Inc.
  37098. -This config.status script is free software; the Free Software Foundation
  37099. -gives unlimited permission to copy, distribute and modify it."
  37100. +# Commands used to finish a libtool library installation in a directory.
  37101. +finish_cmds=$lt_finish_cmds
  37102. -ac_pwd='$ac_pwd'
  37103. -srcdir='$srcdir'
  37104. -INSTALL='$INSTALL'
  37105. -MKDIR_P='$MKDIR_P'
  37106. -_ACEOF
  37107. +# As "finish_cmds", except a single script fragment to be evaled but
  37108. +# not shown.
  37109. +finish_eval=$lt_finish_eval
  37110. -cat >>$CONFIG_STATUS <<\_ACEOF
  37111. -# If no file are specified by the user, then we need to provide default
  37112. -# value. By we need to know if files were specified by the user.
  37113. -ac_need_defaults=:
  37114. -while test $# != 0
  37115. -do
  37116. - case $1 in
  37117. - --*=*)
  37118. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  37119. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  37120. - ac_shift=:
  37121. - ;;
  37122. - *)
  37123. - ac_option=$1
  37124. - ac_optarg=$2
  37125. - ac_shift=shift
  37126. - ;;
  37127. - esac
  37128. +# Whether we should hardcode library paths into libraries.
  37129. +hardcode_into_libs=$hardcode_into_libs
  37130. - case $ac_option in
  37131. - # Handling of the options.
  37132. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  37133. - ac_cs_recheck=: ;;
  37134. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  37135. - echo "$ac_cs_version"; exit ;;
  37136. - --debug | --debu | --deb | --de | --d | -d )
  37137. - debug=: ;;
  37138. - --file | --fil | --fi | --f )
  37139. - $ac_shift
  37140. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  37141. - ac_need_defaults=false;;
  37142. - --he | --h | --help | --hel | -h )
  37143. - echo "$ac_cs_usage"; exit ;;
  37144. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  37145. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  37146. - ac_cs_silent=: ;;
  37147. +# Compile-time system search path for libraries.
  37148. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37149. - # This is an error.
  37150. - -*) { echo "$as_me: error: unrecognized option: $1
  37151. -Try \`$0 --help' for more information." >&2
  37152. - { (exit 1); exit 1; }; } ;;
  37153. +# Run-time system search path for libraries.
  37154. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37155. - *) ac_config_targets="$ac_config_targets $1"
  37156. - ac_need_defaults=false ;;
  37157. +# Whether dlopen is supported.
  37158. +dlopen_support=$enable_dlopen
  37159. - esac
  37160. - shift
  37161. -done
  37162. +# Whether dlopen of programs is supported.
  37163. +dlopen_self=$enable_dlopen_self
  37164. -ac_configure_extra_args=
  37165. +# Whether dlopen of statically linked programs is supported.
  37166. +dlopen_self_static=$enable_dlopen_self_static
  37167. -if $ac_cs_silent; then
  37168. - exec 6>/dev/null
  37169. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  37170. -fi
  37171. +# Commands to strip libraries.
  37172. +old_striplib=$lt_old_striplib
  37173. +striplib=$lt_striplib
  37174. -_ACEOF
  37175. -cat >>$CONFIG_STATUS <<_ACEOF
  37176. -if \$ac_cs_recheck; then
  37177. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  37178. - CONFIG_SHELL=$SHELL
  37179. - export CONFIG_SHELL
  37180. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  37181. -fi
  37182. -_ACEOF
  37183. -cat >>$CONFIG_STATUS <<\_ACEOF
  37184. -exec 5>>config.log
  37185. -{
  37186. - echo
  37187. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  37188. -## Running $as_me. ##
  37189. -_ASBOX
  37190. - echo "$ac_log"
  37191. -} >&5
  37192. +# The linker used to build libraries.
  37193. +LD=$lt_LD
  37194. -_ACEOF
  37195. -cat >>$CONFIG_STATUS <<_ACEOF
  37196. -#
  37197. -# INIT-COMMANDS
  37198. -#
  37199. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  37200. +# Commands used to build an old-style archive.
  37201. +old_archive_cmds=$lt_old_archive_cmds
  37202. -_ACEOF
  37203. +# A language specific compiler.
  37204. +CC=$lt_compiler
  37205. -cat >>$CONFIG_STATUS <<\_ACEOF
  37206. +# Is the compiler the GNU compiler?
  37207. +with_gcc=$GCC
  37208. -# Handling of arguments.
  37209. -for ac_config_target in $ac_config_targets
  37210. -do
  37211. - case $ac_config_target in
  37212. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  37213. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  37214. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  37215. - "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  37216. - "include/libnfnetlink/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnfnetlink/Makefile" ;;
  37217. - "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  37218. - "libnfnetlink.pc") CONFIG_FILES="$CONFIG_FILES libnfnetlink.pc" ;;
  37219. +# Compiler flag to turn off builtin functions.
  37220. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  37221. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  37222. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  37223. - { (exit 1); exit 1; }; };;
  37224. - esac
  37225. -done
  37226. +# How to pass a linker flag through the compiler.
  37227. +wl=$lt_lt_prog_compiler_wl
  37228. +# Additional compiler flags for building library objects.
  37229. +pic_flag=$lt_lt_prog_compiler_pic
  37230. -# If the user did not use the arguments to specify the items to instantiate,
  37231. -# then the envvar interface is used. Set only those that are not.
  37232. -# We use the long form for the default assignment because of an extremely
  37233. -# bizarre bug on SunOS 4.1.3.
  37234. -if $ac_need_defaults; then
  37235. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  37236. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  37237. -fi
  37238. +# Compiler flag to prevent dynamic linking.
  37239. +link_static_flag=$lt_lt_prog_compiler_static
  37240. -# Have a temporary directory for convenience. Make it in the build tree
  37241. -# simply because there is no reason against having it here, and in addition,
  37242. -# creating and moving files from /tmp can sometimes cause problems.
  37243. -# Hook for its removal unless debugging.
  37244. -# Note that there is a small window in which the directory will not be cleaned:
  37245. -# after its creation but before its name has been assigned to `$tmp'.
  37246. -$debug ||
  37247. -{
  37248. - tmp=
  37249. - trap 'exit_status=$?
  37250. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  37251. -' 0
  37252. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  37253. -}
  37254. -# Create a (secure) tmp directory for tmp files.
  37255. +# Does compiler simultaneously support -c and -o options?
  37256. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  37257. -{
  37258. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  37259. - test -n "$tmp" && test -d "$tmp"
  37260. -} ||
  37261. -{
  37262. - tmp=./conf$$-$RANDOM
  37263. - (umask 077 && mkdir "$tmp")
  37264. -} ||
  37265. -{
  37266. - echo "$me: cannot create a temporary directory in ." >&2
  37267. - { (exit 1); exit 1; }
  37268. -}
  37269. +# Whether or not to add -lc for building shared libraries.
  37270. +build_libtool_need_lc=$archive_cmds_need_lc
  37271. -#
  37272. -# Set up the sed scripts for CONFIG_FILES section.
  37273. -#
  37274. +# Whether or not to disallow shared libs when runtime libs are static.
  37275. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  37276. -# No need to generate the scripts if there are no CONFIG_FILES.
  37277. -# This happens for instance when ./config.status config.h
  37278. -if test -n "$CONFIG_FILES"; then
  37279. +# Compiler flag to allow reflexive dlopens.
  37280. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  37281. -_ACEOF
  37282. +# Compiler flag to generate shared objects directly from archives.
  37283. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  37284. +# Whether the compiler copes with passing no objects directly.
  37285. +compiler_needs_object=$lt_compiler_needs_object
  37286. +# Create an old-style archive from a shared archive.
  37287. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  37288. -ac_delim='%!_!# '
  37289. -for ac_last_try in false false false false false :; do
  37290. - cat >conf$$subs.sed <<_ACEOF
  37291. -SHELL!$SHELL$ac_delim
  37292. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  37293. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  37294. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  37295. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  37296. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  37297. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  37298. -exec_prefix!$exec_prefix$ac_delim
  37299. -prefix!$prefix$ac_delim
  37300. -program_transform_name!$program_transform_name$ac_delim
  37301. -bindir!$bindir$ac_delim
  37302. -sbindir!$sbindir$ac_delim
  37303. -libexecdir!$libexecdir$ac_delim
  37304. -datarootdir!$datarootdir$ac_delim
  37305. -datadir!$datadir$ac_delim
  37306. -sysconfdir!$sysconfdir$ac_delim
  37307. -sharedstatedir!$sharedstatedir$ac_delim
  37308. -localstatedir!$localstatedir$ac_delim
  37309. -includedir!$includedir$ac_delim
  37310. -oldincludedir!$oldincludedir$ac_delim
  37311. -docdir!$docdir$ac_delim
  37312. -infodir!$infodir$ac_delim
  37313. -htmldir!$htmldir$ac_delim
  37314. -dvidir!$dvidir$ac_delim
  37315. -pdfdir!$pdfdir$ac_delim
  37316. -psdir!$psdir$ac_delim
  37317. -libdir!$libdir$ac_delim
  37318. -localedir!$localedir$ac_delim
  37319. -mandir!$mandir$ac_delim
  37320. -DEFS!$DEFS$ac_delim
  37321. -ECHO_C!$ECHO_C$ac_delim
  37322. -ECHO_N!$ECHO_N$ac_delim
  37323. -ECHO_T!$ECHO_T$ac_delim
  37324. -LIBS!$LIBS$ac_delim
  37325. -build_alias!$build_alias$ac_delim
  37326. -host_alias!$host_alias$ac_delim
  37327. -target_alias!$target_alias$ac_delim
  37328. -build!$build$ac_delim
  37329. -build_cpu!$build_cpu$ac_delim
  37330. -build_vendor!$build_vendor$ac_delim
  37331. -build_os!$build_os$ac_delim
  37332. -host!$host$ac_delim
  37333. -host_cpu!$host_cpu$ac_delim
  37334. -host_vendor!$host_vendor$ac_delim
  37335. -host_os!$host_os$ac_delim
  37336. -target!$target$ac_delim
  37337. -target_cpu!$target_cpu$ac_delim
  37338. -target_vendor!$target_vendor$ac_delim
  37339. -target_os!$target_os$ac_delim
  37340. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  37341. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  37342. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  37343. -am__isrc!$am__isrc$ac_delim
  37344. -CYGPATH_W!$CYGPATH_W$ac_delim
  37345. -PACKAGE!$PACKAGE$ac_delim
  37346. -VERSION!$VERSION$ac_delim
  37347. -ACLOCAL!$ACLOCAL$ac_delim
  37348. -AUTOCONF!$AUTOCONF$ac_delim
  37349. -AUTOMAKE!$AUTOMAKE$ac_delim
  37350. -AUTOHEADER!$AUTOHEADER$ac_delim
  37351. -MAKEINFO!$MAKEINFO$ac_delim
  37352. -install_sh!$install_sh$ac_delim
  37353. -STRIP!$STRIP$ac_delim
  37354. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  37355. -mkdir_p!$mkdir_p$ac_delim
  37356. -AWK!$AWK$ac_delim
  37357. -SET_MAKE!$SET_MAKE$ac_delim
  37358. -am__leading_dot!$am__leading_dot$ac_delim
  37359. -AMTAR!$AMTAR$ac_delim
  37360. -am__tar!$am__tar$ac_delim
  37361. -am__untar!$am__untar$ac_delim
  37362. -CC!$CC$ac_delim
  37363. -CFLAGS!$CFLAGS$ac_delim
  37364. -LDFLAGS!$LDFLAGS$ac_delim
  37365. -CPPFLAGS!$CPPFLAGS$ac_delim
  37366. -ac_ct_CC!$ac_ct_CC$ac_delim
  37367. -EXEEXT!$EXEEXT$ac_delim
  37368. -OBJEXT!$OBJEXT$ac_delim
  37369. -DEPDIR!$DEPDIR$ac_delim
  37370. -am__include!$am__include$ac_delim
  37371. -am__quote!$am__quote$ac_delim
  37372. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  37373. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  37374. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  37375. -CCDEPMODE!$CCDEPMODE$ac_delim
  37376. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  37377. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  37378. -SED!$SED$ac_delim
  37379. -GREP!$GREP$ac_delim
  37380. -EGREP!$EGREP$ac_delim
  37381. -LN_S!$LN_S$ac_delim
  37382. -ECHO!$ECHO$ac_delim
  37383. -AR!$AR$ac_delim
  37384. -RANLIB!$RANLIB$ac_delim
  37385. -DSYMUTIL!$DSYMUTIL$ac_delim
  37386. -NMEDIT!$NMEDIT$ac_delim
  37387. -CPP!$CPP$ac_delim
  37388. -_ACEOF
  37389. +# Create a temporary old-style archive to link instead of a shared archive.
  37390. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  37391. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  37392. - break
  37393. - elif $ac_last_try; then
  37394. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  37395. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  37396. - { (exit 1); exit 1; }; }
  37397. - else
  37398. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  37399. - fi
  37400. -done
  37401. +# Commands used to build a shared archive.
  37402. +archive_cmds=$lt_archive_cmds
  37403. +archive_expsym_cmds=$lt_archive_expsym_cmds
  37404. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  37405. -if test -n "$ac_eof"; then
  37406. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  37407. - ac_eof=`expr $ac_eof + 1`
  37408. -fi
  37409. +# Commands used to build a loadable module if different from building
  37410. +# a shared archive.
  37411. +module_cmds=$lt_module_cmds
  37412. +module_expsym_cmds=$lt_module_expsym_cmds
  37413. -cat >>$CONFIG_STATUS <<_ACEOF
  37414. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  37415. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  37416. -_ACEOF
  37417. -sed '
  37418. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  37419. -s/^/s,@/; s/!/@,|#_!!_#|/
  37420. -:n
  37421. -t n
  37422. -s/'"$ac_delim"'$/,g/; t
  37423. -s/$/\\/; p
  37424. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  37425. -' >>$CONFIG_STATUS <conf$$subs.sed
  37426. -rm -f conf$$subs.sed
  37427. -cat >>$CONFIG_STATUS <<_ACEOF
  37428. -CEOF$ac_eof
  37429. -_ACEOF
  37430. +# Whether we are building with GNU ld or not.
  37431. +with_gnu_ld=$lt_with_gnu_ld
  37432. +# Flag that allows shared libraries with undefined symbols to be built.
  37433. +allow_undefined_flag=$lt_allow_undefined_flag
  37434. -ac_delim='%!_!# '
  37435. -for ac_last_try in false false false false false :; do
  37436. - cat >conf$$subs.sed <<_ACEOF
  37437. -CXX!$CXX$ac_delim
  37438. -CXXFLAGS!$CXXFLAGS$ac_delim
  37439. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  37440. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  37441. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  37442. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  37443. -CXXCPP!$CXXCPP$ac_delim
  37444. -F77!$F77$ac_delim
  37445. -FFLAGS!$FFLAGS$ac_delim
  37446. -ac_ct_F77!$ac_ct_F77$ac_delim
  37447. -LIBTOOL!$LIBTOOL$ac_delim
  37448. -LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
  37449. -LIBOBJS!$LIBOBJS$ac_delim
  37450. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  37451. -_ACEOF
  37452. +# Flag that enforces no undefined symbols.
  37453. +no_undefined_flag=$lt_no_undefined_flag
  37454. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
  37455. - break
  37456. - elif $ac_last_try; then
  37457. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  37458. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  37459. - { (exit 1); exit 1; }; }
  37460. - else
  37461. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  37462. - fi
  37463. -done
  37464. +# Flag to hardcode \$libdir into a binary during linking.
  37465. +# This must work even if \$libdir does not exist
  37466. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  37467. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  37468. -if test -n "$ac_eof"; then
  37469. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  37470. - ac_eof=`expr $ac_eof + 1`
  37471. -fi
  37472. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  37473. +# during linking. This must work even if \$libdir does not exist.
  37474. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  37475. -cat >>$CONFIG_STATUS <<_ACEOF
  37476. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  37477. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  37478. -_ACEOF
  37479. -sed '
  37480. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  37481. -s/^/s,@/; s/!/@,|#_!!_#|/
  37482. -:n
  37483. -t n
  37484. -s/'"$ac_delim"'$/,g/; t
  37485. -s/$/\\/; p
  37486. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  37487. -' >>$CONFIG_STATUS <conf$$subs.sed
  37488. -rm -f conf$$subs.sed
  37489. -cat >>$CONFIG_STATUS <<_ACEOF
  37490. -:end
  37491. -s/|#_!!_#|//g
  37492. -CEOF$ac_eof
  37493. -_ACEOF
  37494. +# Whether we need a single "-rpath" flag with a separated argument.
  37495. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  37496. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  37497. +# DIR into the resulting binary.
  37498. +hardcode_direct=$hardcode_direct
  37499. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  37500. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  37501. -# trailing colons and then remove the whole line if VPATH becomes empty
  37502. -# (actually we leave an empty line to preserve line numbers).
  37503. -if test "x$srcdir" = x.; then
  37504. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  37505. -s/:*\$(srcdir):*/:/
  37506. -s/:*\${srcdir}:*/:/
  37507. -s/:*@srcdir@:*/:/
  37508. -s/^\([^=]*=[ ]*\):*/\1/
  37509. -s/:*$//
  37510. -s/^[^=]*=[ ]*$//
  37511. -}'
  37512. -fi
  37513. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  37514. +# DIR into the resulting binary and the resulting library dependency is
  37515. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  37516. +# library is relocated.
  37517. +hardcode_direct_absolute=$hardcode_direct_absolute
  37518. -cat >>$CONFIG_STATUS <<\_ACEOF
  37519. -fi # test -n "$CONFIG_FILES"
  37520. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  37521. +# into the resulting binary.
  37522. +hardcode_minus_L=$hardcode_minus_L
  37523. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  37524. +# into the resulting binary.
  37525. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  37526. -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  37527. -do
  37528. - case $ac_tag in
  37529. - :[FHLC]) ac_mode=$ac_tag; continue;;
  37530. - esac
  37531. - case $ac_mode$ac_tag in
  37532. - :[FHL]*:*);;
  37533. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  37534. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  37535. - { (exit 1); exit 1; }; };;
  37536. - :[FH]-) ac_tag=-:-;;
  37537. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  37538. - esac
  37539. - ac_save_IFS=$IFS
  37540. - IFS=:
  37541. - set x $ac_tag
  37542. - IFS=$ac_save_IFS
  37543. - shift
  37544. - ac_file=$1
  37545. - shift
  37546. +# Set to "yes" if building a shared library automatically hardcodes DIR
  37547. +# into the library and all subsequent libraries and executables linked
  37548. +# against it.
  37549. +hardcode_automatic=$hardcode_automatic
  37550. - case $ac_mode in
  37551. - :L) ac_source=$1;;
  37552. - :[FH])
  37553. - ac_file_inputs=
  37554. - for ac_f
  37555. - do
  37556. - case $ac_f in
  37557. - -) ac_f="$tmp/stdin";;
  37558. - *) # Look for the file first in the build tree, then in the source tree
  37559. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  37560. - # because $ac_f cannot contain `:'.
  37561. - test -f "$ac_f" ||
  37562. - case $ac_f in
  37563. - [\\/$]*) false;;
  37564. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  37565. - esac ||
  37566. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  37567. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  37568. - { (exit 1); exit 1; }; };;
  37569. - esac
  37570. - ac_file_inputs="$ac_file_inputs $ac_f"
  37571. - done
  37572. +# Set to yes if linker adds runtime paths of dependent libraries
  37573. +# to runtime path list.
  37574. +inherit_rpath=$inherit_rpath
  37575. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  37576. - # use $as_me), people would be surprised to read:
  37577. - # /* config.h. Generated by config.status. */
  37578. - configure_input="Generated from "`IFS=:
  37579. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  37580. - if test x"$ac_file" != x-; then
  37581. - configure_input="$ac_file. $configure_input"
  37582. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  37583. -echo "$as_me: creating $ac_file" >&6;}
  37584. - fi
  37585. +# Whether libtool must link a program against all its dependency libraries.
  37586. +link_all_deplibs=$link_all_deplibs
  37587. - case $ac_tag in
  37588. - *:-:* | *:-) cat >"$tmp/stdin";;
  37589. - esac
  37590. - ;;
  37591. - esac
  37592. +# Fix the shell variable \$srcfile for the compiler.
  37593. +fix_srcfile_path=$lt_fix_srcfile_path
  37594. - ac_dir=`$as_dirname -- "$ac_file" ||
  37595. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37596. - X"$ac_file" : 'X\(//\)[^/]' \| \
  37597. - X"$ac_file" : 'X\(//\)$' \| \
  37598. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  37599. -echo X"$ac_file" |
  37600. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37601. - s//\1/
  37602. - q
  37603. - }
  37604. - /^X\(\/\/\)[^/].*/{
  37605. - s//\1/
  37606. - q
  37607. - }
  37608. - /^X\(\/\/\)$/{
  37609. - s//\1/
  37610. - q
  37611. - }
  37612. - /^X\(\/\).*/{
  37613. - s//\1/
  37614. - q
  37615. - }
  37616. - s/.*/./; q'`
  37617. - { as_dir="$ac_dir"
  37618. - case $as_dir in #(
  37619. - -*) as_dir=./$as_dir;;
  37620. - esac
  37621. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  37622. - as_dirs=
  37623. - while :; do
  37624. - case $as_dir in #(
  37625. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  37626. - *) as_qdir=$as_dir;;
  37627. - esac
  37628. - as_dirs="'$as_qdir' $as_dirs"
  37629. - as_dir=`$as_dirname -- "$as_dir" ||
  37630. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37631. - X"$as_dir" : 'X\(//\)[^/]' \| \
  37632. - X"$as_dir" : 'X\(//\)$' \| \
  37633. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  37634. -echo X"$as_dir" |
  37635. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37636. - s//\1/
  37637. - q
  37638. - }
  37639. - /^X\(\/\/\)[^/].*/{
  37640. - s//\1/
  37641. - q
  37642. - }
  37643. - /^X\(\/\/\)$/{
  37644. - s//\1/
  37645. - q
  37646. - }
  37647. - /^X\(\/\).*/{
  37648. - s//\1/
  37649. - q
  37650. - }
  37651. - s/.*/./; q'`
  37652. - test -d "$as_dir" && break
  37653. - done
  37654. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  37655. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  37656. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  37657. - { (exit 1); exit 1; }; }; }
  37658. - ac_builddir=.
  37659. +# Set to "yes" if exported symbols are required.
  37660. +always_export_symbols=$always_export_symbols
  37661. -case "$ac_dir" in
  37662. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  37663. -*)
  37664. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  37665. - # A ".." for each directory in $ac_dir_suffix.
  37666. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  37667. - case $ac_top_builddir_sub in
  37668. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  37669. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  37670. - esac ;;
  37671. -esac
  37672. -ac_abs_top_builddir=$ac_pwd
  37673. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  37674. -# for backward compatibility:
  37675. -ac_top_builddir=$ac_top_build_prefix
  37676. +# The commands to list exported symbols.
  37677. +export_symbols_cmds=$lt_export_symbols_cmds
  37678. +
  37679. +# Symbols that should not be listed in the preloaded symbols.
  37680. +exclude_expsyms=$lt_exclude_expsyms
  37681. -case $srcdir in
  37682. - .) # We are building in place.
  37683. - ac_srcdir=.
  37684. - ac_top_srcdir=$ac_top_builddir_sub
  37685. - ac_abs_top_srcdir=$ac_pwd ;;
  37686. - [\\/]* | ?:[\\/]* ) # Absolute name.
  37687. - ac_srcdir=$srcdir$ac_dir_suffix;
  37688. - ac_top_srcdir=$srcdir
  37689. - ac_abs_top_srcdir=$srcdir ;;
  37690. - *) # Relative name.
  37691. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  37692. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  37693. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  37694. -esac
  37695. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  37696. +# Symbols that must always be exported.
  37697. +include_expsyms=$lt_include_expsyms
  37698. +# Commands necessary for linking programs (against libraries) with templates.
  37699. +prelink_cmds=$lt_prelink_cmds
  37700. - case $ac_mode in
  37701. - :F)
  37702. - #
  37703. - # CONFIG_FILE
  37704. - #
  37705. +# Specify filename containing input files.
  37706. +file_list_spec=$lt_file_list_spec
  37707. - case $INSTALL in
  37708. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  37709. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  37710. +# How to hardcode a shared library path into an executable.
  37711. +hardcode_action=$hardcode_action
  37712. +
  37713. +# ### END LIBTOOL CONFIG
  37714. +
  37715. +_LT_EOF
  37716. +
  37717. + case $host_os in
  37718. + aix3*)
  37719. + cat <<\_LT_EOF >> "$cfgfile"
  37720. +# AIX sometimes has problems with the GCC collect2 program. For some
  37721. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  37722. +# vanish in a puff of smoke.
  37723. +if test "X${COLLECT_NAMES+set}" != Xset; then
  37724. + COLLECT_NAMES=
  37725. + export COLLECT_NAMES
  37726. +fi
  37727. +_LT_EOF
  37728. + ;;
  37729. esac
  37730. - ac_MKDIR_P=$MKDIR_P
  37731. - case $MKDIR_P in
  37732. - [\\/$]* | ?:[\\/]* ) ;;
  37733. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  37734. +
  37735. +
  37736. +ltmain="$ac_aux_dir/ltmain.sh"
  37737. +
  37738. +
  37739. + # We use sed instead of cat because bash on DJGPP gets confused if
  37740. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  37741. + # text mode, it properly converts lines to CR/LF. This bash problem
  37742. + # is reportedly fixed, but why not run on old versions too?
  37743. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  37744. + || (rm -f "$cfgfile"; exit 1)
  37745. +
  37746. + case $xsi_shell in
  37747. + yes)
  37748. + cat << \_LT_EOF >> "$cfgfile"
  37749. +
  37750. +# func_dirname file append nondir_replacement
  37751. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  37752. +# otherwise set result to NONDIR_REPLACEMENT.
  37753. +func_dirname ()
  37754. +{
  37755. + case ${1} in
  37756. + */*) func_dirname_result="${1%/*}${2}" ;;
  37757. + * ) func_dirname_result="${3}" ;;
  37758. esac
  37759. -_ACEOF
  37760. +}
  37761. -cat >>$CONFIG_STATUS <<\_ACEOF
  37762. -# If the template does not know about datarootdir, expand it.
  37763. -# FIXME: This hack should be removed a few years after 2.60.
  37764. -ac_datarootdir_hack=; ac_datarootdir_seen=
  37765. +# func_basename file
  37766. +func_basename ()
  37767. +{
  37768. + func_basename_result="${1##*/}"
  37769. +}
  37770. -case `sed -n '/datarootdir/ {
  37771. - p
  37772. - q
  37773. +# func_dirname_and_basename file append nondir_replacement
  37774. +# perform func_basename and func_dirname in a single function
  37775. +# call:
  37776. +# dirname: Compute the dirname of FILE. If nonempty,
  37777. +# add APPEND to the result, otherwise set result
  37778. +# to NONDIR_REPLACEMENT.
  37779. +# value returned in "$func_dirname_result"
  37780. +# basename: Compute filename of FILE.
  37781. +# value retuned in "$func_basename_result"
  37782. +# Implementation must be kept synchronized with func_dirname
  37783. +# and func_basename. For efficiency, we do not delegate to
  37784. +# those functions but instead duplicate the functionality here.
  37785. +func_dirname_and_basename ()
  37786. +{
  37787. + case ${1} in
  37788. + */*) func_dirname_result="${1%/*}${2}" ;;
  37789. + * ) func_dirname_result="${3}" ;;
  37790. + esac
  37791. + func_basename_result="${1##*/}"
  37792. }
  37793. -/@datadir@/p
  37794. -/@docdir@/p
  37795. -/@infodir@/p
  37796. -/@localedir@/p
  37797. -/@mandir@/p
  37798. -' $ac_file_inputs` in
  37799. -*datarootdir*) ac_datarootdir_seen=yes;;
  37800. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  37801. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  37802. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  37803. -_ACEOF
  37804. -cat >>$CONFIG_STATUS <<_ACEOF
  37805. - ac_datarootdir_hack='
  37806. - s&@datadir@&$datadir&g
  37807. - s&@docdir@&$docdir&g
  37808. - s&@infodir@&$infodir&g
  37809. - s&@localedir@&$localedir&g
  37810. - s&@mandir@&$mandir&g
  37811. - s&\\\${datarootdir}&$datarootdir&g' ;;
  37812. -esac
  37813. -_ACEOF
  37814. -# Neutralize VPATH when `$srcdir' = `.'.
  37815. -# Shell code in configure.ac might set extrasub.
  37816. -# FIXME: do we really want to maintain this feature?
  37817. -cat >>$CONFIG_STATUS <<_ACEOF
  37818. - sed "$ac_vpsub
  37819. -$extrasub
  37820. -_ACEOF
  37821. -cat >>$CONFIG_STATUS <<\_ACEOF
  37822. -:t
  37823. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  37824. -s&@configure_input@&$configure_input&;t t
  37825. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  37826. -s&@srcdir@&$ac_srcdir&;t t
  37827. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  37828. -s&@top_srcdir@&$ac_top_srcdir&;t t
  37829. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  37830. -s&@builddir@&$ac_builddir&;t t
  37831. -s&@abs_builddir@&$ac_abs_builddir&;t t
  37832. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  37833. -s&@INSTALL@&$ac_INSTALL&;t t
  37834. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  37835. -$ac_datarootdir_hack
  37836. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  37837. +# func_stripname prefix suffix name
  37838. +# strip PREFIX and SUFFIX off of NAME.
  37839. +# PREFIX and SUFFIX must not contain globbing or regex special
  37840. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  37841. +# dot (in which case that matches only a dot).
  37842. +func_stripname ()
  37843. +{
  37844. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  37845. + # positional parameters, so assign one to ordinary parameter first.
  37846. + func_stripname_result=${3}
  37847. + func_stripname_result=${func_stripname_result#"${1}"}
  37848. + func_stripname_result=${func_stripname_result%"${2}"}
  37849. +}
  37850. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  37851. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  37852. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  37853. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  37854. -which seems to be undefined. Please make sure it is defined." >&5
  37855. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  37856. -which seems to be undefined. Please make sure it is defined." >&2;}
  37857. +# func_opt_split
  37858. +func_opt_split ()
  37859. +{
  37860. + func_opt_split_opt=${1%%=*}
  37861. + func_opt_split_arg=${1#*=}
  37862. +}
  37863. - rm -f "$tmp/stdin"
  37864. - case $ac_file in
  37865. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  37866. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  37867. +# func_lo2o object
  37868. +func_lo2o ()
  37869. +{
  37870. + case ${1} in
  37871. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  37872. + *) func_lo2o_result=${1} ;;
  37873. esac
  37874. - ;;
  37875. +}
  37876. +# func_xform libobj-or-source
  37877. +func_xform ()
  37878. +{
  37879. + func_xform_result=${1%.*}.lo
  37880. +}
  37881. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  37882. -echo "$as_me: executing $ac_file commands" >&6;}
  37883. - ;;
  37884. - esac
  37885. +# func_arith arithmetic-term...
  37886. +func_arith ()
  37887. +{
  37888. + func_arith_result=$(( $* ))
  37889. +}
  37890. +# func_len string
  37891. +# STRING may not start with a hyphen.
  37892. +func_len ()
  37893. +{
  37894. + func_len_result=${#1}
  37895. +}
  37896. - case $ac_file$ac_mode in
  37897. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  37898. - # Strip MF so we end up with the name of the file.
  37899. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  37900. - # Check whether this is an Automake generated Makefile or not.
  37901. - # We used to match only the files named `Makefile.in', but
  37902. - # some people rename them; so instead we look at the file content.
  37903. - # Grep'ing the first line is not enough: some people post-process
  37904. - # each Makefile.in and add a new line on top of each file to say so.
  37905. - # Grep'ing the whole file is not good either: AIX grep has a line
  37906. - # limit of 2048, but all sed's we know have understand at least 4000.
  37907. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  37908. - dirpart=`$as_dirname -- "$mf" ||
  37909. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37910. - X"$mf" : 'X\(//\)[^/]' \| \
  37911. - X"$mf" : 'X\(//\)$' \| \
  37912. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  37913. -echo X"$mf" |
  37914. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37915. - s//\1/
  37916. - q
  37917. - }
  37918. - /^X\(\/\/\)[^/].*/{
  37919. - s//\1/
  37920. - q
  37921. - }
  37922. - /^X\(\/\/\)$/{
  37923. - s//\1/
  37924. - q
  37925. - }
  37926. - /^X\(\/\).*/{
  37927. - s//\1/
  37928. - q
  37929. - }
  37930. - s/.*/./; q'`
  37931. +_LT_EOF
  37932. + ;;
  37933. + *) # Bourne compatible functions.
  37934. + cat << \_LT_EOF >> "$cfgfile"
  37935. +
  37936. +# func_dirname file append nondir_replacement
  37937. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  37938. +# otherwise set result to NONDIR_REPLACEMENT.
  37939. +func_dirname ()
  37940. +{
  37941. + # Extract subdirectory from the argument.
  37942. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  37943. + if test "X$func_dirname_result" = "X${1}"; then
  37944. + func_dirname_result="${3}"
  37945. else
  37946. - continue
  37947. + func_dirname_result="$func_dirname_result${2}"
  37948. fi
  37949. - # Extract the definition of DEPDIR, am__include, and am__quote
  37950. - # from the Makefile without running `make'.
  37951. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  37952. - test -z "$DEPDIR" && continue
  37953. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  37954. - test -z "am__include" && continue
  37955. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  37956. - # When using ansi2knr, U may be empty or an underscore; expand it
  37957. - U=`sed -n 's/^U = //p' < "$mf"`
  37958. - # Find all dependency output files, they are included files with
  37959. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  37960. - # simplest approach to changing $(DEPDIR) to its actual value in the
  37961. - # expansion.
  37962. - for file in `sed -n "
  37963. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  37964. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  37965. - # Make sure the directory exists.
  37966. - test -f "$dirpart/$file" && continue
  37967. - fdir=`$as_dirname -- "$file" ||
  37968. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37969. - X"$file" : 'X\(//\)[^/]' \| \
  37970. - X"$file" : 'X\(//\)$' \| \
  37971. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  37972. -echo X"$file" |
  37973. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37974. - s//\1/
  37975. - q
  37976. - }
  37977. - /^X\(\/\/\)[^/].*/{
  37978. - s//\1/
  37979. - q
  37980. - }
  37981. - /^X\(\/\/\)$/{
  37982. - s//\1/
  37983. - q
  37984. - }
  37985. - /^X\(\/\).*/{
  37986. - s//\1/
  37987. - q
  37988. - }
  37989. - s/.*/./; q'`
  37990. - { as_dir=$dirpart/$fdir
  37991. - case $as_dir in #(
  37992. - -*) as_dir=./$as_dir;;
  37993. +}
  37994. +
  37995. +# func_basename file
  37996. +func_basename ()
  37997. +{
  37998. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  37999. +}
  38000. +
  38001. +
  38002. +# func_stripname prefix suffix name
  38003. +# strip PREFIX and SUFFIX off of NAME.
  38004. +# PREFIX and SUFFIX must not contain globbing or regex special
  38005. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  38006. +# dot (in which case that matches only a dot).
  38007. +# func_strip_suffix prefix name
  38008. +func_stripname ()
  38009. +{
  38010. + case ${2} in
  38011. + .*) func_stripname_result=`$ECHO "X${3}" \
  38012. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  38013. + *) func_stripname_result=`$ECHO "X${3}" \
  38014. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  38015. esac
  38016. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  38017. - as_dirs=
  38018. - while :; do
  38019. - case $as_dir in #(
  38020. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  38021. - *) as_qdir=$as_dir;;
  38022. - esac
  38023. - as_dirs="'$as_qdir' $as_dirs"
  38024. - as_dir=`$as_dirname -- "$as_dir" ||
  38025. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38026. - X"$as_dir" : 'X\(//\)[^/]' \| \
  38027. - X"$as_dir" : 'X\(//\)$' \| \
  38028. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38029. -echo X"$as_dir" |
  38030. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38031. - s//\1/
  38032. - q
  38033. - }
  38034. - /^X\(\/\/\)[^/].*/{
  38035. - s//\1/
  38036. - q
  38037. - }
  38038. - /^X\(\/\/\)$/{
  38039. - s//\1/
  38040. - q
  38041. - }
  38042. - /^X\(\/\).*/{
  38043. - s//\1/
  38044. - q
  38045. - }
  38046. - s/.*/./; q'`
  38047. - test -d "$as_dir" && break
  38048. - done
  38049. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  38050. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  38051. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  38052. - { (exit 1); exit 1; }; }; }
  38053. - # echo "creating $dirpart/$file"
  38054. - echo '# dummy' > "$dirpart/$file"
  38055. - done
  38056. -done
  38057. +}
  38058. +
  38059. +# sed scripts:
  38060. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  38061. +my_sed_long_arg='1s/^-[^=]*=//'
  38062. +
  38063. +# func_opt_split
  38064. +func_opt_split ()
  38065. +{
  38066. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  38067. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  38068. +}
  38069. +
  38070. +# func_lo2o object
  38071. +func_lo2o ()
  38072. +{
  38073. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  38074. +}
  38075. +
  38076. +# func_xform libobj-or-source
  38077. +func_xform ()
  38078. +{
  38079. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  38080. +}
  38081. +
  38082. +# func_arith arithmetic-term...
  38083. +func_arith ()
  38084. +{
  38085. + func_arith_result=`expr "$@"`
  38086. +}
  38087. +
  38088. +# func_len string
  38089. +# STRING may not start with a hyphen.
  38090. +func_len ()
  38091. +{
  38092. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  38093. +}
  38094. +
  38095. +_LT_EOF
  38096. +esac
  38097. +
  38098. +case $lt_shell_append in
  38099. + yes)
  38100. + cat << \_LT_EOF >> "$cfgfile"
  38101. +
  38102. +# func_append var value
  38103. +# Append VALUE to the end of shell variable VAR.
  38104. +func_append ()
  38105. +{
  38106. + eval "$1+=\$2"
  38107. +}
  38108. +_LT_EOF
  38109. + ;;
  38110. + *)
  38111. + cat << \_LT_EOF >> "$cfgfile"
  38112. +
  38113. +# func_append var value
  38114. +# Append VALUE to the end of shell variable VAR.
  38115. +func_append ()
  38116. +{
  38117. + eval "$1=\$$1\$2"
  38118. +}
  38119. +
  38120. +_LT_EOF
  38121. + ;;
  38122. + esac
  38123. +
  38124. +
  38125. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  38126. + || (rm -f "$cfgfile"; exit 1)
  38127. +
  38128. + mv -f "$cfgfile" "$ofile" ||
  38129. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  38130. + chmod +x "$ofile"
  38131. +
  38132. ;;
  38133. esac
  38134. done # for ac_tag
  38135. -{ (exit 0); exit 0; }
  38136. +as_fn_exit 0
  38137. _ACEOF
  38138. -chmod +x $CONFIG_STATUS
  38139. ac_clean_files=$ac_clean_files_save
  38140. +test $ac_write_fail = 0 ||
  38141. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  38142. +
  38143. # configure is writing to config.log, and then calls config.status.
  38144. # config.status does its own redirection, appending to config.log.
  38145. @@ -21094,6 +12538,10 @@
  38146. exec 5>>config.log
  38147. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  38148. # would make configure fail if this is the last instruction.
  38149. - $ac_cs_success || { (exit 1); exit 1; }
  38150. + $ac_cs_success || as_fn_exit $?
  38151. +fi
  38152. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  38153. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  38154. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  38155. fi
  38156. diff -Nur libnfnetlink-1.0.0.orig/depcomp libnfnetlink-1.0.0/depcomp
  38157. --- libnfnetlink-1.0.0.orig/depcomp 2008-02-10 03:55:24.000000000 +0100
  38158. +++ libnfnetlink-1.0.0/depcomp 2011-02-21 18:03:05.533553890 +0100
  38159. @@ -1,10 +1,10 @@
  38160. #! /bin/sh
  38161. # depcomp - compile a program generating dependencies as side-effects
  38162. -scriptversion=2007-03-29.01
  38163. +scriptversion=2009-04-28.21; # UTC
  38164. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
  38165. -# Foundation, Inc.
  38166. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  38167. +# Software Foundation, Inc.
  38168. # This program is free software; you can redistribute it and/or modify
  38169. # it under the terms of the GNU General Public License as published by
  38170. @@ -17,9 +17,7 @@
  38171. # GNU General Public License for more details.
  38172. # You should have received a copy of the GNU General Public License
  38173. -# along with this program; if not, write to the Free Software
  38174. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  38175. -# 02110-1301, USA.
  38176. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  38177. # As a special exception to the GNU General Public License, if you
  38178. # distribute this file as part of a program that contains a
  38179. @@ -87,6 +85,15 @@
  38180. depmode=dashmstdout
  38181. fi
  38182. +cygpath_u="cygpath -u -f -"
  38183. +if test "$depmode" = msvcmsys; then
  38184. + # This is just like msvisualcpp but w/o cygpath translation.
  38185. + # Just convert the backslash-escaped backslashes to single forward
  38186. + # slashes to satisfy depend.m4
  38187. + cygpath_u="sed s,\\\\\\\\,/,g"
  38188. + depmode=msvisualcpp
  38189. +fi
  38190. +
  38191. case "$depmode" in
  38192. gcc3)
  38193. ## gcc 3 implements dependency tracking that does exactly what
  38194. @@ -192,14 +199,14 @@
  38195. ' < "$tmpdepfile" \
  38196. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  38197. tr '
  38198. -' ' ' >> $depfile
  38199. - echo >> $depfile
  38200. +' ' ' >> "$depfile"
  38201. + echo >> "$depfile"
  38202. # The second pass generates a dummy entry for each header file.
  38203. tr ' ' '
  38204. ' < "$tmpdepfile" \
  38205. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  38206. - >> $depfile
  38207. + >> "$depfile"
  38208. else
  38209. # The sourcefile does not contain any dependencies, so just
  38210. # store a dummy comment line, to avoid errors with the Makefile
  38211. @@ -328,7 +335,12 @@
  38212. if test -f "$tmpdepfile"; then
  38213. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  38214. # Add `dependent.h:' lines.
  38215. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  38216. + sed -ne '2,${
  38217. + s/^ *//
  38218. + s/ \\*$//
  38219. + s/$/:/
  38220. + p
  38221. + }' "$tmpdepfile" >> "$depfile"
  38222. else
  38223. echo "#dummy" > "$depfile"
  38224. fi
  38225. @@ -404,7 +416,7 @@
  38226. # Remove the call to Libtool.
  38227. if test "$libtool" = yes; then
  38228. - while test $1 != '--mode=compile'; do
  38229. + while test "X$1" != 'X--mode=compile'; do
  38230. shift
  38231. done
  38232. shift
  38233. @@ -455,32 +467,39 @@
  38234. "$@" || exit $?
  38235. # Remove any Libtool call
  38236. if test "$libtool" = yes; then
  38237. - while test $1 != '--mode=compile'; do
  38238. + while test "X$1" != 'X--mode=compile'; do
  38239. shift
  38240. done
  38241. shift
  38242. fi
  38243. # X makedepend
  38244. shift
  38245. - cleared=no
  38246. - for arg in "$@"; do
  38247. + cleared=no eat=no
  38248. + for arg
  38249. + do
  38250. case $cleared in
  38251. no)
  38252. set ""; shift
  38253. cleared=yes ;;
  38254. esac
  38255. + if test $eat = yes; then
  38256. + eat=no
  38257. + continue
  38258. + fi
  38259. case "$arg" in
  38260. -D*|-I*)
  38261. set fnord "$@" "$arg"; shift ;;
  38262. # Strip any option that makedepend may not understand. Remove
  38263. # the object too, otherwise makedepend will parse it as a source file.
  38264. + -arch)
  38265. + eat=yes ;;
  38266. -*|$object)
  38267. ;;
  38268. *)
  38269. set fnord "$@" "$arg"; shift ;;
  38270. esac
  38271. done
  38272. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  38273. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  38274. touch "$tmpdepfile"
  38275. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  38276. rm -f "$depfile"
  38277. @@ -500,7 +519,7 @@
  38278. # Remove the call to Libtool.
  38279. if test "$libtool" = yes; then
  38280. - while test $1 != '--mode=compile'; do
  38281. + while test "X$1" != 'X--mode=compile'; do
  38282. shift
  38283. done
  38284. shift
  38285. @@ -538,13 +557,27 @@
  38286. msvisualcpp)
  38287. # Important note: in order to support this mode, a compiler *must*
  38288. - # always write the preprocessed file to stdout, regardless of -o,
  38289. - # because we must use -o when running libtool.
  38290. + # always write the preprocessed file to stdout.
  38291. "$@" || exit $?
  38292. +
  38293. + # Remove the call to Libtool.
  38294. + if test "$libtool" = yes; then
  38295. + while test "X$1" != 'X--mode=compile'; do
  38296. + shift
  38297. + done
  38298. + shift
  38299. + fi
  38300. +
  38301. IFS=" "
  38302. for arg
  38303. do
  38304. case "$arg" in
  38305. + -o)
  38306. + shift
  38307. + ;;
  38308. + $object)
  38309. + shift
  38310. + ;;
  38311. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  38312. set fnord "$@"
  38313. shift
  38314. @@ -557,16 +590,23 @@
  38315. ;;
  38316. esac
  38317. done
  38318. - "$@" -E |
  38319. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  38320. + "$@" -E 2>/dev/null |
  38321. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  38322. rm -f "$depfile"
  38323. echo "$object : \\" > "$depfile"
  38324. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  38325. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  38326. echo " " >> "$depfile"
  38327. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  38328. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  38329. rm -f "$tmpdepfile"
  38330. ;;
  38331. +msvcmsys)
  38332. + # This case exists only to let depend.m4 do its work. It works by
  38333. + # looking at the text of this script. This case will never be run,
  38334. + # since it is checked for above.
  38335. + exit 1
  38336. + ;;
  38337. +
  38338. none)
  38339. exec "$@"
  38340. ;;
  38341. @@ -585,5 +625,6 @@
  38342. # eval: (add-hook 'write-file-hooks 'time-stamp)
  38343. # time-stamp-start: "scriptversion="
  38344. # time-stamp-format: "%:y-%02m-%02d.%02H"
  38345. -# time-stamp-end: "$"
  38346. +# time-stamp-time-zone: "UTC"
  38347. +# time-stamp-end: "; # UTC"
  38348. # End:
  38349. diff -Nur libnfnetlink-1.0.0.orig/include/libnfnetlink/Makefile.in libnfnetlink-1.0.0/include/libnfnetlink/Makefile.in
  38350. --- libnfnetlink-1.0.0.orig/include/libnfnetlink/Makefile.in 2009-06-22 19:48:36.000000000 +0200
  38351. +++ libnfnetlink-1.0.0/include/libnfnetlink/Makefile.in 2011-02-21 18:03:05.363553473 +0100
  38352. @@ -1,8 +1,9 @@
  38353. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  38354. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  38355. # @configure_input@
  38356. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  38357. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  38358. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  38359. +# Inc.
  38360. # This Makefile.in is free software; the Free Software Foundation
  38361. # gives unlimited permission to copy and/or distribute it,
  38362. # with or without modifications, as long as this notice is preserved.
  38363. @@ -16,8 +17,9 @@
  38364. VPATH = @srcdir@
  38365. pkgdatadir = $(datadir)/@PACKAGE@
  38366. -pkglibdir = $(libdir)/@PACKAGE@
  38367. pkgincludedir = $(includedir)/@PACKAGE@
  38368. +pkglibdir = $(libdir)/@PACKAGE@
  38369. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  38370. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  38371. install_sh_DATA = $(install_sh) -c -m 644
  38372. install_sh_PROGRAM = $(install_sh) -c
  38373. @@ -42,6 +44,7 @@
  38374. $(ACLOCAL_M4)
  38375. mkinstalldirs = $(install_sh) -d
  38376. CONFIG_CLEAN_FILES =
  38377. +CONFIG_CLEAN_VPATH_FILES =
  38378. SOURCES =
  38379. DIST_SOURCES =
  38380. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  38381. @@ -49,9 +52,23 @@
  38382. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  38383. *) f=$$p;; \
  38384. esac;
  38385. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  38386. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  38387. +am__install_max = 40
  38388. +am__nobase_strip_setup = \
  38389. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  38390. +am__nobase_strip = \
  38391. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  38392. +am__nobase_list = $(am__nobase_strip_setup); \
  38393. + for p in $$list; do echo "$$p $$p"; done | \
  38394. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  38395. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  38396. + if (++n[$$2] == $(am__install_max)) \
  38397. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  38398. + END { for (dir in files) print dir, files[dir] }'
  38399. +am__base_list = \
  38400. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  38401. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  38402. am__installdirs = "$(DESTDIR)$(pkgincludedir)"
  38403. -pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  38404. HEADERS = $(pkginclude_HEADERS)
  38405. ETAGS = etags
  38406. CTAGS = ctags
  38407. @@ -68,44 +85,46 @@
  38408. CFLAGS = @CFLAGS@
  38409. CPP = @CPP@
  38410. CPPFLAGS = @CPPFLAGS@
  38411. -CXX = @CXX@
  38412. -CXXCPP = @CXXCPP@
  38413. -CXXDEPMODE = @CXXDEPMODE@
  38414. -CXXFLAGS = @CXXFLAGS@
  38415. CYGPATH_W = @CYGPATH_W@
  38416. DEFS = @DEFS@
  38417. DEPDIR = @DEPDIR@
  38418. DSYMUTIL = @DSYMUTIL@
  38419. -ECHO = @ECHO@
  38420. +DUMPBIN = @DUMPBIN@
  38421. ECHO_C = @ECHO_C@
  38422. ECHO_N = @ECHO_N@
  38423. ECHO_T = @ECHO_T@
  38424. EGREP = @EGREP@
  38425. EXEEXT = @EXEEXT@
  38426. -F77 = @F77@
  38427. -FFLAGS = @FFLAGS@
  38428. +FGREP = @FGREP@
  38429. GREP = @GREP@
  38430. INSTALL = @INSTALL@
  38431. INSTALL_DATA = @INSTALL_DATA@
  38432. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38433. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38434. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  38435. +LD = @LD@
  38436. LDFLAGS = @LDFLAGS@
  38437. LIBOBJS = @LIBOBJS@
  38438. LIBS = @LIBS@
  38439. LIBTOOL = @LIBTOOL@
  38440. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  38441. +LIPO = @LIPO@
  38442. LN_S = @LN_S@
  38443. LTLIBOBJS = @LTLIBOBJS@
  38444. MAKEINFO = @MAKEINFO@
  38445. MKDIR_P = @MKDIR_P@
  38446. +NM = @NM@
  38447. NMEDIT = @NMEDIT@
  38448. +OBJDUMP = @OBJDUMP@
  38449. OBJEXT = @OBJEXT@
  38450. +OTOOL = @OTOOL@
  38451. +OTOOL64 = @OTOOL64@
  38452. PACKAGE = @PACKAGE@
  38453. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  38454. PACKAGE_NAME = @PACKAGE_NAME@
  38455. PACKAGE_STRING = @PACKAGE_STRING@
  38456. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  38457. +PACKAGE_URL = @PACKAGE_URL@
  38458. PACKAGE_VERSION = @PACKAGE_VERSION@
  38459. PATH_SEPARATOR = @PATH_SEPARATOR@
  38460. RANLIB = @RANLIB@
  38461. @@ -119,8 +138,7 @@
  38462. abs_top_builddir = @abs_top_builddir@
  38463. abs_top_srcdir = @abs_top_srcdir@
  38464. ac_ct_CC = @ac_ct_CC@
  38465. -ac_ct_CXX = @ac_ct_CXX@
  38466. -ac_ct_F77 = @ac_ct_F77@
  38467. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  38468. am__include = @am__include@
  38469. am__leading_dot = @am__leading_dot@
  38470. am__quote = @am__quote@
  38471. @@ -151,6 +169,7 @@
  38472. libexecdir = @libexecdir@
  38473. localedir = @localedir@
  38474. localstatedir = @localstatedir@
  38475. +lt_ECHO = @lt_ECHO@
  38476. mandir = @mandir@
  38477. mkdir_p = @mkdir_p@
  38478. oldincludedir = @oldincludedir@
  38479. @@ -167,6 +186,7 @@
  38480. target_cpu = @target_cpu@
  38481. target_os = @target_os@
  38482. target_vendor = @target_vendor@
  38483. +top_build_prefix = @top_build_prefix@
  38484. top_builddir = @top_builddir@
  38485. top_srcdir = @top_srcdir@
  38486. pkginclude_HEADERS = libnfnetlink.h linux_nfnetlink.h linux_nfnetlink_compat.h
  38487. @@ -177,14 +197,14 @@
  38488. @for dep in $?; do \
  38489. case '$(am__configure_deps)' in \
  38490. *$$dep*) \
  38491. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  38492. - && exit 0; \
  38493. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  38494. + && { if test -f $@; then exit 0; else break; fi; }; \
  38495. exit 1;; \
  38496. esac; \
  38497. done; \
  38498. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/libnfnetlink/Makefile'; \
  38499. - cd $(top_srcdir) && \
  38500. - $(AUTOMAKE) --gnu include/libnfnetlink/Makefile
  38501. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/libnfnetlink/Makefile'; \
  38502. + $(am__cd) $(top_srcdir) && \
  38503. + $(AUTOMAKE) --gnu include/libnfnetlink/Makefile
  38504. .PRECIOUS: Makefile
  38505. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  38506. @case '$?' in \
  38507. @@ -202,6 +222,7 @@
  38508. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38509. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  38510. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38511. +$(am__aclocal_m4_deps):
  38512. mostlyclean-libtool:
  38513. -rm -f *.lo
  38514. @@ -211,34 +232,37 @@
  38515. install-pkgincludeHEADERS: $(pkginclude_HEADERS)
  38516. @$(NORMAL_INSTALL)
  38517. test -z "$(pkgincludedir)" || $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)"
  38518. - @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  38519. + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
  38520. + for p in $$list; do \
  38521. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  38522. - f=$(am__strip_dir) \
  38523. - echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  38524. - $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \
  38525. + echo "$$d$$p"; \
  38526. + done | $(am__base_list) | \
  38527. + while read files; do \
  38528. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
  38529. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
  38530. done
  38531. uninstall-pkgincludeHEADERS:
  38532. @$(NORMAL_UNINSTALL)
  38533. - @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  38534. - f=$(am__strip_dir) \
  38535. - echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  38536. - rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \
  38537. - done
  38538. + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
  38539. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  38540. + test -n "$$files" || exit 0; \
  38541. + echo " ( cd '$(DESTDIR)$(pkgincludedir)' && rm -f" $$files ")"; \
  38542. + cd "$(DESTDIR)$(pkgincludedir)" && rm -f $$files
  38543. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  38544. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38545. unique=`for i in $$list; do \
  38546. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38547. done | \
  38548. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  38549. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38550. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38551. mkid -fID $$unique
  38552. tags: TAGS
  38553. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38554. $(TAGS_FILES) $(LISP)
  38555. - tags=; \
  38556. + set x; \
  38557. here=`pwd`; \
  38558. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38559. unique=`for i in $$list; do \
  38560. @@ -246,29 +270,34 @@
  38561. done | \
  38562. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38563. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38564. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  38565. + shift; \
  38566. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  38567. test -n "$$unique" || unique=$$empty_fix; \
  38568. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38569. - $$tags $$unique; \
  38570. + if test $$# -gt 0; then \
  38571. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38572. + "$$@" $$unique; \
  38573. + else \
  38574. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38575. + $$unique; \
  38576. + fi; \
  38577. fi
  38578. ctags: CTAGS
  38579. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38580. $(TAGS_FILES) $(LISP)
  38581. - tags=; \
  38582. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38583. unique=`for i in $$list; do \
  38584. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38585. done | \
  38586. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38587. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38588. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  38589. + test -z "$(CTAGS_ARGS)$$unique" \
  38590. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  38591. - $$tags $$unique
  38592. + $$unique
  38593. GTAGS:
  38594. here=`$(am__cd) $(top_builddir) && pwd` \
  38595. - && cd $(top_srcdir) \
  38596. - && gtags -i $(GTAGS_ARGS) $$here
  38597. + && $(am__cd) $(top_srcdir) \
  38598. + && gtags -i $(GTAGS_ARGS) "$$here"
  38599. distclean-tags:
  38600. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  38601. @@ -289,13 +318,17 @@
  38602. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  38603. if test -d $$d/$$file; then \
  38604. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  38605. + if test -d "$(distdir)/$$file"; then \
  38606. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  38607. + fi; \
  38608. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  38609. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  38610. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  38611. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  38612. fi; \
  38613. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  38614. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  38615. else \
  38616. - test -f $(distdir)/$$file \
  38617. - || cp -p $$d/$$file $(distdir)/$$file \
  38618. + test -f "$(distdir)/$$file" \
  38619. + || cp -p $$d/$$file "$(distdir)/$$file" \
  38620. || exit 1; \
  38621. fi; \
  38622. done
  38623. @@ -326,6 +359,7 @@
  38624. distclean-generic:
  38625. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  38626. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  38627. maintainer-clean-generic:
  38628. @echo "This command is intended for maintainers to use"
  38629. @@ -344,6 +378,8 @@
  38630. html: html-am
  38631. +html-am:
  38632. +
  38633. info: info-am
  38634. info-am:
  38635. @@ -352,18 +388,28 @@
  38636. install-dvi: install-dvi-am
  38637. +install-dvi-am:
  38638. +
  38639. install-exec-am:
  38640. install-html: install-html-am
  38641. +install-html-am:
  38642. +
  38643. install-info: install-info-am
  38644. +install-info-am:
  38645. +
  38646. install-man:
  38647. install-pdf: install-pdf-am
  38648. +install-pdf-am:
  38649. +
  38650. install-ps: install-ps-am
  38651. +install-ps-am:
  38652. +
  38653. installcheck-am:
  38654. maintainer-clean: maintainer-clean-am
  38655. @@ -399,6 +445,7 @@
  38656. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  38657. tags uninstall uninstall-am uninstall-pkgincludeHEADERS
  38658. +
  38659. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  38660. # Otherwise a system limit (for SysV at least) may be exceeded.
  38661. .NOEXPORT:
  38662. diff -Nur libnfnetlink-1.0.0.orig/include/Makefile.in libnfnetlink-1.0.0/include/Makefile.in
  38663. --- libnfnetlink-1.0.0.orig/include/Makefile.in 2009-06-22 19:48:36.000000000 +0200
  38664. +++ libnfnetlink-1.0.0/include/Makefile.in 2011-02-21 18:03:05.303553488 +0100
  38665. @@ -1,8 +1,9 @@
  38666. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  38667. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  38668. # @configure_input@
  38669. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  38670. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  38671. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  38672. +# Inc.
  38673. # This Makefile.in is free software; the Free Software Foundation
  38674. # gives unlimited permission to copy and/or distribute it,
  38675. # with or without modifications, as long as this notice is preserved.
  38676. @@ -16,8 +17,9 @@
  38677. VPATH = @srcdir@
  38678. pkgdatadir = $(datadir)/@PACKAGE@
  38679. -pkglibdir = $(libdir)/@PACKAGE@
  38680. pkgincludedir = $(includedir)/@PACKAGE@
  38681. +pkglibdir = $(libdir)/@PACKAGE@
  38682. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  38683. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  38684. install_sh_DATA = $(install_sh) -c -m 644
  38685. install_sh_PROGRAM = $(install_sh) -c
  38686. @@ -42,6 +44,7 @@
  38687. $(ACLOCAL_M4)
  38688. mkinstalldirs = $(install_sh) -d
  38689. CONFIG_CLEAN_FILES =
  38690. +CONFIG_CLEAN_VPATH_FILES =
  38691. SOURCES =
  38692. DIST_SOURCES =
  38693. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  38694. @@ -54,10 +57,38 @@
  38695. HEADERS = $(noinst_HEADERS)
  38696. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  38697. distclean-recursive maintainer-clean-recursive
  38698. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  38699. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  38700. + distdir
  38701. ETAGS = etags
  38702. CTAGS = ctags
  38703. DIST_SUBDIRS = $(SUBDIRS)
  38704. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  38705. +am__relativize = \
  38706. + dir0=`pwd`; \
  38707. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  38708. + sed_rest='s,^[^/]*/*,,'; \
  38709. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  38710. + sed_butlast='s,/*[^/]*$$,,'; \
  38711. + while test -n "$$dir1"; do \
  38712. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  38713. + if test "$$first" != "."; then \
  38714. + if test "$$first" = ".."; then \
  38715. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  38716. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  38717. + else \
  38718. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  38719. + if test "$$first2" = "$$first"; then \
  38720. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  38721. + else \
  38722. + dir2="../$$dir2"; \
  38723. + fi; \
  38724. + dir0="$$dir0"/"$$first"; \
  38725. + fi; \
  38726. + fi; \
  38727. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  38728. + done; \
  38729. + reldir="$$dir2"
  38730. ACLOCAL = @ACLOCAL@
  38731. AMTAR = @AMTAR@
  38732. AR = @AR@
  38733. @@ -70,44 +101,46 @@
  38734. CFLAGS = @CFLAGS@
  38735. CPP = @CPP@
  38736. CPPFLAGS = @CPPFLAGS@
  38737. -CXX = @CXX@
  38738. -CXXCPP = @CXXCPP@
  38739. -CXXDEPMODE = @CXXDEPMODE@
  38740. -CXXFLAGS = @CXXFLAGS@
  38741. CYGPATH_W = @CYGPATH_W@
  38742. DEFS = @DEFS@
  38743. DEPDIR = @DEPDIR@
  38744. DSYMUTIL = @DSYMUTIL@
  38745. -ECHO = @ECHO@
  38746. +DUMPBIN = @DUMPBIN@
  38747. ECHO_C = @ECHO_C@
  38748. ECHO_N = @ECHO_N@
  38749. ECHO_T = @ECHO_T@
  38750. EGREP = @EGREP@
  38751. EXEEXT = @EXEEXT@
  38752. -F77 = @F77@
  38753. -FFLAGS = @FFLAGS@
  38754. +FGREP = @FGREP@
  38755. GREP = @GREP@
  38756. INSTALL = @INSTALL@
  38757. INSTALL_DATA = @INSTALL_DATA@
  38758. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38759. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38760. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  38761. +LD = @LD@
  38762. LDFLAGS = @LDFLAGS@
  38763. LIBOBJS = @LIBOBJS@
  38764. LIBS = @LIBS@
  38765. LIBTOOL = @LIBTOOL@
  38766. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  38767. +LIPO = @LIPO@
  38768. LN_S = @LN_S@
  38769. LTLIBOBJS = @LTLIBOBJS@
  38770. MAKEINFO = @MAKEINFO@
  38771. MKDIR_P = @MKDIR_P@
  38772. +NM = @NM@
  38773. NMEDIT = @NMEDIT@
  38774. +OBJDUMP = @OBJDUMP@
  38775. OBJEXT = @OBJEXT@
  38776. +OTOOL = @OTOOL@
  38777. +OTOOL64 = @OTOOL64@
  38778. PACKAGE = @PACKAGE@
  38779. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  38780. PACKAGE_NAME = @PACKAGE_NAME@
  38781. PACKAGE_STRING = @PACKAGE_STRING@
  38782. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  38783. +PACKAGE_URL = @PACKAGE_URL@
  38784. PACKAGE_VERSION = @PACKAGE_VERSION@
  38785. PATH_SEPARATOR = @PATH_SEPARATOR@
  38786. RANLIB = @RANLIB@
  38787. @@ -121,8 +154,7 @@
  38788. abs_top_builddir = @abs_top_builddir@
  38789. abs_top_srcdir = @abs_top_srcdir@
  38790. ac_ct_CC = @ac_ct_CC@
  38791. -ac_ct_CXX = @ac_ct_CXX@
  38792. -ac_ct_F77 = @ac_ct_F77@
  38793. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  38794. am__include = @am__include@
  38795. am__leading_dot = @am__leading_dot@
  38796. am__quote = @am__quote@
  38797. @@ -153,6 +185,7 @@
  38798. libexecdir = @libexecdir@
  38799. localedir = @localedir@
  38800. localstatedir = @localstatedir@
  38801. +lt_ECHO = @lt_ECHO@
  38802. mandir = @mandir@
  38803. mkdir_p = @mkdir_p@
  38804. oldincludedir = @oldincludedir@
  38805. @@ -169,6 +202,7 @@
  38806. target_cpu = @target_cpu@
  38807. target_os = @target_os@
  38808. target_vendor = @target_vendor@
  38809. +top_build_prefix = @top_build_prefix@
  38810. top_builddir = @top_builddir@
  38811. top_srcdir = @top_srcdir@
  38812. SUBDIRS = libnfnetlink
  38813. @@ -180,14 +214,14 @@
  38814. @for dep in $?; do \
  38815. case '$(am__configure_deps)' in \
  38816. *$$dep*) \
  38817. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  38818. - && exit 0; \
  38819. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  38820. + && { if test -f $@; then exit 0; else break; fi; }; \
  38821. exit 1;; \
  38822. esac; \
  38823. done; \
  38824. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  38825. - cd $(top_srcdir) && \
  38826. - $(AUTOMAKE) --gnu include/Makefile
  38827. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  38828. + $(am__cd) $(top_srcdir) && \
  38829. + $(AUTOMAKE) --gnu include/Makefile
  38830. .PRECIOUS: Makefile
  38831. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  38832. @case '$?' in \
  38833. @@ -205,6 +239,7 @@
  38834. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38835. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  38836. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38837. +$(am__aclocal_m4_deps):
  38838. mostlyclean-libtool:
  38839. -rm -f *.lo
  38840. @@ -219,7 +254,7 @@
  38841. # (which will cause the Makefiles to be regenerated when you run `make');
  38842. # (2) otherwise, pass the desired values on the `make' command line.
  38843. $(RECURSIVE_TARGETS):
  38844. - @failcom='exit 1'; \
  38845. + @fail= failcom='exit 1'; \
  38846. for f in x $$MAKEFLAGS; do \
  38847. case $$f in \
  38848. *=* | --[!k]*);; \
  38849. @@ -236,7 +271,7 @@
  38850. else \
  38851. local_target="$$target"; \
  38852. fi; \
  38853. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  38854. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  38855. || eval $$failcom; \
  38856. done; \
  38857. if test "$$dot_seen" = "no"; then \
  38858. @@ -244,7 +279,7 @@
  38859. fi; test -z "$$fail"
  38860. $(RECURSIVE_CLEAN_TARGETS):
  38861. - @failcom='exit 1'; \
  38862. + @fail= failcom='exit 1'; \
  38863. for f in x $$MAKEFLAGS; do \
  38864. case $$f in \
  38865. *=* | --[!k]*);; \
  38866. @@ -270,16 +305,16 @@
  38867. else \
  38868. local_target="$$target"; \
  38869. fi; \
  38870. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  38871. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  38872. || eval $$failcom; \
  38873. done && test -z "$$fail"
  38874. tags-recursive:
  38875. list='$(SUBDIRS)'; for subdir in $$list; do \
  38876. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  38877. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  38878. done
  38879. ctags-recursive:
  38880. list='$(SUBDIRS)'; for subdir in $$list; do \
  38881. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  38882. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  38883. done
  38884. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  38885. @@ -287,14 +322,14 @@
  38886. unique=`for i in $$list; do \
  38887. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38888. done | \
  38889. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  38890. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38891. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38892. mkid -fID $$unique
  38893. tags: TAGS
  38894. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38895. $(TAGS_FILES) $(LISP)
  38896. - tags=; \
  38897. + set x; \
  38898. here=`pwd`; \
  38899. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  38900. include_option=--etags-include; \
  38901. @@ -306,7 +341,7 @@
  38902. list='$(SUBDIRS)'; for subdir in $$list; do \
  38903. if test "$$subdir" = .; then :; else \
  38904. test ! -f $$subdir/TAGS || \
  38905. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  38906. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  38907. fi; \
  38908. done; \
  38909. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38910. @@ -315,29 +350,34 @@
  38911. done | \
  38912. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38913. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38914. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  38915. + shift; \
  38916. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  38917. test -n "$$unique" || unique=$$empty_fix; \
  38918. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38919. - $$tags $$unique; \
  38920. + if test $$# -gt 0; then \
  38921. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38922. + "$$@" $$unique; \
  38923. + else \
  38924. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38925. + $$unique; \
  38926. + fi; \
  38927. fi
  38928. ctags: CTAGS
  38929. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38930. $(TAGS_FILES) $(LISP)
  38931. - tags=; \
  38932. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38933. unique=`for i in $$list; do \
  38934. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38935. done | \
  38936. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  38937. END { if (nonempty) { for (i in files) print i; }; }'`; \
  38938. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  38939. + test -z "$(CTAGS_ARGS)$$unique" \
  38940. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  38941. - $$tags $$unique
  38942. + $$unique
  38943. GTAGS:
  38944. here=`$(am__cd) $(top_builddir) && pwd` \
  38945. - && cd $(top_srcdir) \
  38946. - && gtags -i $(GTAGS_ARGS) $$here
  38947. + && $(am__cd) $(top_srcdir) \
  38948. + && gtags -i $(GTAGS_ARGS) "$$here"
  38949. distclean-tags:
  38950. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  38951. @@ -358,29 +398,44 @@
  38952. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  38953. if test -d $$d/$$file; then \
  38954. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  38955. + if test -d "$(distdir)/$$file"; then \
  38956. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  38957. + fi; \
  38958. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  38959. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  38960. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  38961. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  38962. fi; \
  38963. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  38964. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  38965. else \
  38966. - test -f $(distdir)/$$file \
  38967. - || cp -p $$d/$$file $(distdir)/$$file \
  38968. + test -f "$(distdir)/$$file" \
  38969. + || cp -p $$d/$$file "$(distdir)/$$file" \
  38970. || exit 1; \
  38971. fi; \
  38972. done
  38973. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  38974. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  38975. if test "$$subdir" = .; then :; else \
  38976. test -d "$(distdir)/$$subdir" \
  38977. || $(MKDIR_P) "$(distdir)/$$subdir" \
  38978. || exit 1; \
  38979. - distdir=`$(am__cd) $(distdir) && pwd`; \
  38980. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  38981. - (cd $$subdir && \
  38982. + fi; \
  38983. + done
  38984. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  38985. + if test "$$subdir" = .; then :; else \
  38986. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  38987. + $(am__relativize); \
  38988. + new_distdir=$$reldir; \
  38989. + dir1=$$subdir; dir2="$(top_distdir)"; \
  38990. + $(am__relativize); \
  38991. + new_top_distdir=$$reldir; \
  38992. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  38993. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  38994. + ($(am__cd) $$subdir && \
  38995. $(MAKE) $(AM_MAKEFLAGS) \
  38996. - top_distdir="$$top_distdir" \
  38997. - distdir="$$distdir/$$subdir" \
  38998. + top_distdir="$$new_top_distdir" \
  38999. + distdir="$$new_distdir" \
  39000. am__remove_distdir=: \
  39001. am__skip_length_check=: \
  39002. + am__skip_mode_fix=: \
  39003. distdir) \
  39004. || exit 1; \
  39005. fi; \
  39006. @@ -410,6 +465,7 @@
  39007. distclean-generic:
  39008. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  39009. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  39010. maintainer-clean-generic:
  39011. @echo "This command is intended for maintainers to use"
  39012. @@ -428,6 +484,8 @@
  39013. html: html-recursive
  39014. +html-am:
  39015. +
  39016. info: info-recursive
  39017. info-am:
  39018. @@ -436,18 +494,28 @@
  39019. install-dvi: install-dvi-recursive
  39020. +install-dvi-am:
  39021. +
  39022. install-exec-am:
  39023. install-html: install-html-recursive
  39024. +install-html-am:
  39025. +
  39026. install-info: install-info-recursive
  39027. +install-info-am:
  39028. +
  39029. install-man:
  39030. install-pdf: install-pdf-recursive
  39031. +install-pdf-am:
  39032. +
  39033. install-ps: install-ps-recursive
  39034. +install-ps-am:
  39035. +
  39036. installcheck-am:
  39037. maintainer-clean: maintainer-clean-recursive
  39038. @@ -468,8 +536,8 @@
  39039. uninstall-am:
  39040. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  39041. - install-strip
  39042. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  39043. + install-am install-strip tags-recursive
  39044. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  39045. all all-am check check-am clean clean-generic clean-libtool \
  39046. @@ -485,6 +553,7 @@
  39047. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  39048. uninstall uninstall-am
  39049. +
  39050. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  39051. # Otherwise a system limit (for SysV at least) may be exceeded.
  39052. .NOEXPORT:
  39053. diff -Nur libnfnetlink-1.0.0.orig/install-sh libnfnetlink-1.0.0/install-sh
  39054. --- libnfnetlink-1.0.0.orig/install-sh 2008-02-10 03:55:24.000000000 +0100
  39055. +++ libnfnetlink-1.0.0/install-sh 2011-02-21 18:03:05.193550809 +0100
  39056. @@ -1,7 +1,7 @@
  39057. #!/bin/sh
  39058. # install - install a program, script, or datafile
  39059. -scriptversion=2006-12-25.00
  39060. +scriptversion=2009-04-28.21; # UTC
  39061. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  39062. # later released in X11R6 (xc/config/util/install.sh) with the
  39063. @@ -515,5 +515,6 @@
  39064. # eval: (add-hook 'write-file-hooks 'time-stamp)
  39065. # time-stamp-start: "scriptversion="
  39066. # time-stamp-format: "%:y-%02m-%02d.%02H"
  39067. -# time-stamp-end: "$"
  39068. +# time-stamp-time-zone: "UTC"
  39069. +# time-stamp-end: "; # UTC"
  39070. # End:
  39071. diff -Nur libnfnetlink-1.0.0.orig/ltmain.sh libnfnetlink-1.0.0/ltmain.sh
  39072. --- libnfnetlink-1.0.0.orig/ltmain.sh 2008-04-29 23:33:55.000000000 +0200
  39073. +++ libnfnetlink-1.0.0/ltmain.sh 2011-02-21 18:03:01.423553534 +0100
  39074. @@ -1,52 +1,83 @@
  39075. -# ltmain.sh - Provide generalized library-building support services.
  39076. -# NOTE: Changing this file will not affect anything until you rerun configure.
  39077. -#
  39078. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  39079. -# 2007, 2008 Free Software Foundation, Inc.
  39080. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  39081. -#
  39082. -# This program is free software; you can redistribute it and/or modify
  39083. +# Generated from ltmain.m4sh.
  39084. +
  39085. +# ltmain.sh (GNU libtool) 2.2.6b
  39086. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  39087. +
  39088. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  39089. +# This is free software; see the source for copying conditions. There is NO
  39090. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  39091. +
  39092. +# GNU Libtool is free software; you can redistribute it and/or modify
  39093. # it under the terms of the GNU General Public License as published by
  39094. # the Free Software Foundation; either version 2 of the License, or
  39095. # (at your option) any later version.
  39096. #
  39097. -# This program is distributed in the hope that it will be useful, but
  39098. +# As a special exception to the GNU General Public License,
  39099. +# if you distribute this file as part of a program or library that
  39100. +# is built using GNU Libtool, you may include this file under the
  39101. +# same distribution terms that you use for the rest of that program.
  39102. +#
  39103. +# GNU Libtool is distributed in the hope that it will be useful, but
  39104. # WITHOUT ANY WARRANTY; without even the implied warranty of
  39105. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  39106. # General Public License for more details.
  39107. #
  39108. # You should have received a copy of the GNU General Public License
  39109. -# along with this program; if not, write to the Free Software
  39110. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39111. -#
  39112. -# As a special exception to the GNU General Public License, if you
  39113. -# distribute this file as part of a program that contains a
  39114. -# configuration script generated by Autoconf, you may include it under
  39115. -# the same distribution terms that you use for the rest of that program.
  39116. -
  39117. -basename="s,^.*/,,g"
  39118. -
  39119. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  39120. -# is ksh but when the shell is invoked as "sh" and the current value of
  39121. -# the _XPG environment variable is not equal to 1 (one), the special
  39122. -# positional parameter $0, within a function call, is the name of the
  39123. -# function.
  39124. -progpath="$0"
  39125. -
  39126. -# The name of this program:
  39127. -progname=`echo "$progpath" | $SED $basename`
  39128. -modename="$progname"
  39129. +# along with GNU Libtool; see the file COPYING. If not, a copy
  39130. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  39131. +# or obtained by writing to the Free Software Foundation, Inc.,
  39132. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39133. -# Global variables:
  39134. -EXIT_SUCCESS=0
  39135. -EXIT_FAILURE=1
  39136. +# Usage: $progname [OPTION]... [MODE-ARG]...
  39137. +#
  39138. +# Provide generalized library-building support services.
  39139. +#
  39140. +# --config show all configuration variables
  39141. +# --debug enable verbose shell tracing
  39142. +# -n, --dry-run display commands without modifying any files
  39143. +# --features display basic configuration information and exit
  39144. +# --mode=MODE use operation mode MODE
  39145. +# --preserve-dup-deps don't remove duplicate dependency libraries
  39146. +# --quiet, --silent don't print informational messages
  39147. +# --tag=TAG use configuration variables from tag TAG
  39148. +# -v, --verbose print informational messages (default)
  39149. +# --version print version information
  39150. +# -h, --help print short or long help message
  39151. +#
  39152. +# MODE must be one of the following:
  39153. +#
  39154. +# clean remove files from the build directory
  39155. +# compile compile a source file into a libtool object
  39156. +# execute automatically set library path, then run a program
  39157. +# finish complete the installation of libtool libraries
  39158. +# install install libraries or executables
  39159. +# link create a library or an executable
  39160. +# uninstall remove libraries from an installed directory
  39161. +#
  39162. +# MODE-ARGS vary depending on the MODE.
  39163. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  39164. +#
  39165. +# When reporting a bug, please describe a test case to reproduce it and
  39166. +# include the following information:
  39167. +#
  39168. +# host-triplet: $host
  39169. +# shell: $SHELL
  39170. +# compiler: $LTCC
  39171. +# compiler flags: $LTCFLAGS
  39172. +# linker: $LD (gnu? $with_gnu_ld)
  39173. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  39174. +# automake: $automake_version
  39175. +# autoconf: $autoconf_version
  39176. +#
  39177. +# Report bugs to <bug-libtool@gnu.org>.
  39178. PROGRAM=ltmain.sh
  39179. PACKAGE=libtool
  39180. -VERSION="1.5.26 Debian 1.5.26-4"
  39181. -TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
  39182. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  39183. +TIMESTAMP=""
  39184. +package_revision=1.3017
  39185. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  39186. +# Be Bourne compatible
  39187. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  39188. emulate sh
  39189. NULLCMD=:
  39190. @@ -60,104 +91,261 @@
  39191. BIN_SH=xpg4; export BIN_SH # for Tru64
  39192. DUALCASE=1; export DUALCASE # for MKS sh
  39193. -# Check that we have a working $echo.
  39194. -if test "X$1" = X--no-reexec; then
  39195. - # Discard the --no-reexec flag, and continue.
  39196. - shift
  39197. -elif test "X$1" = X--fallback-echo; then
  39198. - # Avoid inline document here, it may be left over
  39199. - :
  39200. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  39201. - # Yippee, $echo works!
  39202. - :
  39203. -else
  39204. - # Restart under the correct shell, and then maybe $echo will work.
  39205. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  39206. -fi
  39207. -
  39208. -if test "X$1" = X--fallback-echo; then
  39209. - # used as fallback echo
  39210. - shift
  39211. - cat <<EOF
  39212. -$*
  39213. -EOF
  39214. - exit $EXIT_SUCCESS
  39215. -fi
  39216. -
  39217. -default_mode=
  39218. -help="Try \`$progname --help' for more information."
  39219. -magic="%%%MAGIC variable%%%"
  39220. -mkdir="mkdir"
  39221. -mv="mv -f"
  39222. -rm="rm -f"
  39223. -
  39224. -# Sed substitution that helps us do robust quoting. It backslashifies
  39225. -# metacharacters that are still active within double-quoted strings.
  39226. -Xsed="${SED}"' -e 1s/^X//'
  39227. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  39228. -# test EBCDIC or ASCII
  39229. -case `echo X|tr X '\101'` in
  39230. - A) # ASCII based system
  39231. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  39232. - SP2NL='tr \040 \012'
  39233. - NL2SP='tr \015\012 \040\040'
  39234. - ;;
  39235. - *) # EBCDIC based system
  39236. - SP2NL='tr \100 \n'
  39237. - NL2SP='tr \r\n \100\100'
  39238. - ;;
  39239. -esac
  39240. -
  39241. -# NLS nuisances.
  39242. +# NLS nuisances: We save the old values to restore during execute mode.
  39243. # Only set LANG and LC_ALL to C if already set.
  39244. # These must not be set unconditionally because not all systems understand
  39245. # e.g. LANG=C (notably SCO).
  39246. -# We save the old values to restore during execute mode.
  39247. -lt_env=
  39248. +lt_user_locale=
  39249. +lt_safe_locale=
  39250. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  39251. do
  39252. eval "if test \"\${$lt_var+set}\" = set; then
  39253. - save_$lt_var=\$$lt_var
  39254. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  39255. - $lt_var=C
  39256. + save_$lt_var=\$$lt_var
  39257. + $lt_var=C
  39258. export $lt_var
  39259. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  39260. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  39261. fi"
  39262. done
  39263. -if test -n "$lt_env"; then
  39264. - lt_env="env $lt_env"
  39265. -fi
  39266. +$lt_unset CDPATH
  39267. +
  39268. +
  39269. +
  39270. +
  39271. +
  39272. +: ${CP="cp -f"}
  39273. +: ${ECHO="echo"}
  39274. +: ${EGREP="/bin/grep -E"}
  39275. +: ${FGREP="/bin/grep -F"}
  39276. +: ${GREP="/bin/grep"}
  39277. +: ${LN_S="ln -s"}
  39278. +: ${MAKE="make"}
  39279. +: ${MKDIR="mkdir"}
  39280. +: ${MV="mv -f"}
  39281. +: ${RM="rm -f"}
  39282. +: ${SED="/bin/sed"}
  39283. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  39284. +: ${Xsed="$SED -e 1s/^X//"}
  39285. +
  39286. +# Global variables:
  39287. +EXIT_SUCCESS=0
  39288. +EXIT_FAILURE=1
  39289. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  39290. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  39291. +
  39292. +exit_status=$EXIT_SUCCESS
  39293. # Make sure IFS has a sensible default
  39294. lt_nl='
  39295. '
  39296. IFS=" $lt_nl"
  39297. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  39298. - $echo "$modename: not configured to build any kind of library" 1>&2
  39299. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  39300. - exit $EXIT_FAILURE
  39301. -fi
  39302. +dirname="s,/[^/]*$,,"
  39303. +basename="s,^.*/,,"
  39304. -# Global variables.
  39305. -mode=$default_mode
  39306. -nonopt=
  39307. -prev=
  39308. -prevopt=
  39309. -run=
  39310. -show="$echo"
  39311. -show_help=
  39312. -execute_dlfiles=
  39313. -duplicate_deps=no
  39314. -preserve_args=
  39315. -lo2o="s/\\.lo\$/.${objext}/"
  39316. -o2lo="s/\\.${objext}\$/.lo/"
  39317. -extracted_archives=
  39318. -extracted_serial=0
  39319. +# func_dirname_and_basename file append nondir_replacement
  39320. +# perform func_basename and func_dirname in a single function
  39321. +# call:
  39322. +# dirname: Compute the dirname of FILE. If nonempty,
  39323. +# add APPEND to the result, otherwise set result
  39324. +# to NONDIR_REPLACEMENT.
  39325. +# value returned in "$func_dirname_result"
  39326. +# basename: Compute filename of FILE.
  39327. +# value retuned in "$func_basename_result"
  39328. +# Implementation must be kept synchronized with func_dirname
  39329. +# and func_basename. For efficiency, we do not delegate to
  39330. +# those functions but instead duplicate the functionality here.
  39331. +func_dirname_and_basename ()
  39332. +{
  39333. + # Extract subdirectory from the argument.
  39334. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  39335. + if test "X$func_dirname_result" = "X${1}"; then
  39336. + func_dirname_result="${3}"
  39337. + else
  39338. + func_dirname_result="$func_dirname_result${2}"
  39339. + fi
  39340. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  39341. +}
  39342. +
  39343. +# Generated shell functions inserted here.
  39344. +
  39345. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  39346. +# is ksh but when the shell is invoked as "sh" and the current value of
  39347. +# the _XPG environment variable is not equal to 1 (one), the special
  39348. +# positional parameter $0, within a function call, is the name of the
  39349. +# function.
  39350. +progpath="$0"
  39351. +
  39352. +# The name of this program:
  39353. +# In the unlikely event $progname began with a '-', it would play havoc with
  39354. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  39355. +func_dirname_and_basename "$progpath"
  39356. +progname=$func_basename_result
  39357. +case $progname in
  39358. + -*) progname=./$progname ;;
  39359. +esac
  39360. +
  39361. +# Make sure we have an absolute path for reexecution:
  39362. +case $progpath in
  39363. + [\\/]*|[A-Za-z]:\\*) ;;
  39364. + *[\\/]*)
  39365. + progdir=$func_dirname_result
  39366. + progdir=`cd "$progdir" && pwd`
  39367. + progpath="$progdir/$progname"
  39368. + ;;
  39369. + *)
  39370. + save_IFS="$IFS"
  39371. + IFS=:
  39372. + for progdir in $PATH; do
  39373. + IFS="$save_IFS"
  39374. + test -x "$progdir/$progname" && break
  39375. + done
  39376. + IFS="$save_IFS"
  39377. + test -n "$progdir" || progdir=`pwd`
  39378. + progpath="$progdir/$progname"
  39379. + ;;
  39380. +esac
  39381. +
  39382. +# Sed substitution that helps us do robust quoting. It backslashifies
  39383. +# metacharacters that are still active within double-quoted strings.
  39384. +Xsed="${SED}"' -e 1s/^X//'
  39385. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  39386. +
  39387. +# Same as above, but do not quote variable references.
  39388. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  39389. +
  39390. +# Re-`\' parameter expansions in output of double_quote_subst that were
  39391. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  39392. +# in input to double_quote_subst, that '$' was protected from expansion.
  39393. +# Since each input `\' is now two `\'s, look for any number of runs of
  39394. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  39395. +bs='\\'
  39396. +bs2='\\\\'
  39397. +bs4='\\\\\\\\'
  39398. +dollar='\$'
  39399. +sed_double_backslash="\
  39400. + s/$bs4/&\\
  39401. +/g
  39402. + s/^$bs2$dollar/$bs&/
  39403. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  39404. + s/\n//g"
  39405. +
  39406. +# Standard options:
  39407. +opt_dry_run=false
  39408. +opt_help=false
  39409. +opt_quiet=false
  39410. +opt_verbose=false
  39411. +opt_warning=:
  39412. +
  39413. +# func_echo arg...
  39414. +# Echo program name prefixed message, along with the current mode
  39415. +# name if it has been set yet.
  39416. +func_echo ()
  39417. +{
  39418. + $ECHO "$progname${mode+: }$mode: $*"
  39419. +}
  39420. +
  39421. +# func_verbose arg...
  39422. +# Echo program name prefixed message in verbose mode only.
  39423. +func_verbose ()
  39424. +{
  39425. + $opt_verbose && func_echo ${1+"$@"}
  39426. +
  39427. + # A bug in bash halts the script if the last line of a function
  39428. + # fails when set -e is in force, so we need another command to
  39429. + # work around that:
  39430. + :
  39431. +}
  39432. +
  39433. +# func_error arg...
  39434. +# Echo program name prefixed message to standard error.
  39435. +func_error ()
  39436. +{
  39437. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  39438. +}
  39439. +
  39440. +# func_warning arg...
  39441. +# Echo program name prefixed warning message to standard error.
  39442. +func_warning ()
  39443. +{
  39444. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  39445. +
  39446. + # bash bug again:
  39447. + :
  39448. +}
  39449. +
  39450. +# func_fatal_error arg...
  39451. +# Echo program name prefixed message to standard error, and exit.
  39452. +func_fatal_error ()
  39453. +{
  39454. + func_error ${1+"$@"}
  39455. + exit $EXIT_FAILURE
  39456. +}
  39457. +
  39458. +# func_fatal_help arg...
  39459. +# Echo program name prefixed message to standard error, followed by
  39460. +# a help hint, and exit.
  39461. +func_fatal_help ()
  39462. +{
  39463. + func_error ${1+"$@"}
  39464. + func_fatal_error "$help"
  39465. +}
  39466. +help="Try \`$progname --help' for more information." ## default
  39467. +
  39468. +
  39469. +# func_grep expression filename
  39470. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  39471. +func_grep ()
  39472. +{
  39473. + $GREP "$1" "$2" >/dev/null 2>&1
  39474. +}
  39475. +
  39476. +
  39477. +# func_mkdir_p directory-path
  39478. +# Make sure the entire path to DIRECTORY-PATH is available.
  39479. +func_mkdir_p ()
  39480. +{
  39481. + my_directory_path="$1"
  39482. + my_dir_list=
  39483. +
  39484. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  39485. +
  39486. + # Protect directory names starting with `-'
  39487. + case $my_directory_path in
  39488. + -*) my_directory_path="./$my_directory_path" ;;
  39489. + esac
  39490. +
  39491. + # While some portion of DIR does not yet exist...
  39492. + while test ! -d "$my_directory_path"; do
  39493. + # ...make a list in topmost first order. Use a colon delimited
  39494. + # list incase some portion of path contains whitespace.
  39495. + my_dir_list="$my_directory_path:$my_dir_list"
  39496. +
  39497. + # If the last portion added has no slash in it, the list is done
  39498. + case $my_directory_path in */*) ;; *) break ;; esac
  39499. +
  39500. + # ...otherwise throw away the child directory and loop
  39501. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  39502. + done
  39503. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  39504. +
  39505. + save_mkdir_p_IFS="$IFS"; IFS=':'
  39506. + for my_dir in $my_dir_list; do
  39507. + IFS="$save_mkdir_p_IFS"
  39508. + # mkdir can fail with a `File exist' error if two processes
  39509. + # try to create one of the directories concurrently. Don't
  39510. + # stop in that case!
  39511. + $MKDIR "$my_dir" 2>/dev/null || :
  39512. + done
  39513. + IFS="$save_mkdir_p_IFS"
  39514. +
  39515. + # Bail out if we (or some other process) failed to create a directory.
  39516. + test -d "$my_directory_path" || \
  39517. + func_fatal_error "Failed to create \`$1'"
  39518. + fi
  39519. +}
  39520. -#####################################
  39521. -# Shell function definitions:
  39522. -# This seems to be the best place for them
  39523. # func_mktempdir [string]
  39524. # Make a temporary directory that won't clash with other running
  39525. @@ -167,7 +355,7 @@
  39526. {
  39527. my_template="${TMPDIR-/tmp}/${1-$progname}"
  39528. - if test "$run" = ":"; then
  39529. + if test "$opt_dry_run" = ":"; then
  39530. # Return a directory name, but don't create it in dry-run mode
  39531. my_tmpdir="${my_template}-$$"
  39532. else
  39533. @@ -176,526 +364,787 @@
  39534. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  39535. if test ! -d "$my_tmpdir"; then
  39536. - # Failing that, at least try and use $RANDOM to avoid a race
  39537. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  39538. + # Failing that, at least try and use $RANDOM to avoid a race
  39539. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  39540. - save_mktempdir_umask=`umask`
  39541. - umask 0077
  39542. - $mkdir "$my_tmpdir"
  39543. - umask $save_mktempdir_umask
  39544. + save_mktempdir_umask=`umask`
  39545. + umask 0077
  39546. + $MKDIR "$my_tmpdir"
  39547. + umask $save_mktempdir_umask
  39548. fi
  39549. # If we're not in dry-run mode, bomb out on failure
  39550. - test -d "$my_tmpdir" || {
  39551. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  39552. - exit $EXIT_FAILURE
  39553. - }
  39554. + test -d "$my_tmpdir" || \
  39555. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  39556. fi
  39557. - $echo "X$my_tmpdir" | $Xsed
  39558. + $ECHO "X$my_tmpdir" | $Xsed
  39559. }
  39560. -# func_win32_libid arg
  39561. -# return the library type of file 'arg'
  39562. -#
  39563. -# Need a lot of goo to handle *both* DLLs and import libs
  39564. -# Has to be a shell function in order to 'eat' the argument
  39565. -# that is supplied when $file_magic_command is called.
  39566. -func_win32_libid ()
  39567. +# func_quote_for_eval arg
  39568. +# Aesthetically quote ARG to be evaled later.
  39569. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  39570. +# is double-quoted, suitable for a subsequent eval, whereas
  39571. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  39572. +# which are still active within double quotes backslashified.
  39573. +func_quote_for_eval ()
  39574. {
  39575. - win32_libid_type="unknown"
  39576. - win32_fileres=`file -L $1 2>/dev/null`
  39577. - case $win32_fileres in
  39578. - *ar\ archive\ import\ library*) # definitely import
  39579. - win32_libid_type="x86 archive import"
  39580. - ;;
  39581. - *ar\ archive*) # could be an import, or static
  39582. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  39583. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  39584. - win32_nmres=`eval $NM -f posix -A $1 | \
  39585. - $SED -n -e '1,100{
  39586. - / I /{
  39587. - s,.*,import,
  39588. - p
  39589. - q
  39590. - }
  39591. - }'`
  39592. - case $win32_nmres in
  39593. - import*) win32_libid_type="x86 archive import";;
  39594. - *) win32_libid_type="x86 archive static";;
  39595. - esac
  39596. - fi
  39597. - ;;
  39598. - *DLL*)
  39599. - win32_libid_type="x86 DLL"
  39600. - ;;
  39601. - *executable*) # but shell scripts are "executable" too...
  39602. - case $win32_fileres in
  39603. - *MS\ Windows\ PE\ Intel*)
  39604. - win32_libid_type="x86 DLL"
  39605. - ;;
  39606. + case $1 in
  39607. + *[\\\`\"\$]*)
  39608. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  39609. + *)
  39610. + func_quote_for_eval_unquoted_result="$1" ;;
  39611. + esac
  39612. +
  39613. + case $func_quote_for_eval_unquoted_result in
  39614. + # Double-quote args containing shell metacharacters to delay
  39615. + # word splitting, command substitution and and variable
  39616. + # expansion for a subsequent eval.
  39617. + # Many Bourne shells cannot handle close brackets correctly
  39618. + # in scan sets, so we specify it separately.
  39619. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39620. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  39621. + ;;
  39622. + *)
  39623. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  39624. esac
  39625. - ;;
  39626. - esac
  39627. - $echo $win32_libid_type
  39628. }
  39629. -# func_infer_tag arg
  39630. -# Infer tagged configuration to use if any are available and
  39631. -# if one wasn't chosen via the "--tag" command line option.
  39632. -# Only attempt this if the compiler in the base compile
  39633. -# command doesn't match the default compiler.
  39634. -# arg is usually of the form 'gcc ...'
  39635. -func_infer_tag ()
  39636. +# func_quote_for_expand arg
  39637. +# Aesthetically quote ARG to be evaled later; same as above,
  39638. +# but do not quote variable references.
  39639. +func_quote_for_expand ()
  39640. {
  39641. - if test -n "$available_tags" && test -z "$tagname"; then
  39642. - CC_quoted=
  39643. - for arg in $CC; do
  39644. - case $arg in
  39645. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39646. - arg="\"$arg\""
  39647. - ;;
  39648. - esac
  39649. - CC_quoted="$CC_quoted $arg"
  39650. - done
  39651. - case $@ in
  39652. - # Blanks in the command may have been stripped by the calling shell,
  39653. - # but not from the CC environment variable when configure was run.
  39654. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  39655. - # Blanks at the start of $base_compile will cause this to fail
  39656. - # if we don't check for them as well.
  39657. + case $1 in
  39658. + *[\\\`\"]*)
  39659. + my_arg=`$ECHO "X$1" | $Xsed \
  39660. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  39661. *)
  39662. - for z in $available_tags; do
  39663. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  39664. - # Evaluate the configuration.
  39665. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  39666. - CC_quoted=
  39667. - for arg in $CC; do
  39668. - # Double-quote args containing other shell metacharacters.
  39669. - case $arg in
  39670. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39671. - arg="\"$arg\""
  39672. - ;;
  39673. - esac
  39674. - CC_quoted="$CC_quoted $arg"
  39675. - done
  39676. - case "$@ " in
  39677. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  39678. - # The compiler in the base compile command matches
  39679. - # the one in the tagged configuration.
  39680. - # Assume this is the tagged configuration we want.
  39681. - tagname=$z
  39682. - break
  39683. - ;;
  39684. - esac
  39685. - fi
  39686. - done
  39687. - # If $tagname still isn't set, then no tagged configuration
  39688. - # was found and let the user know that the "--tag" command
  39689. - # line option must be used.
  39690. - if test -z "$tagname"; then
  39691. - $echo "$modename: unable to infer tagged configuration"
  39692. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  39693. - exit $EXIT_FAILURE
  39694. -# else
  39695. -# $echo "$modename: using $tagname tagged configuration"
  39696. - fi
  39697. - ;;
  39698. - esac
  39699. - fi
  39700. + my_arg="$1" ;;
  39701. + esac
  39702. +
  39703. + case $my_arg in
  39704. + # Double-quote args containing shell metacharacters to delay
  39705. + # word splitting and command substitution for a subsequent eval.
  39706. + # Many Bourne shells cannot handle close brackets correctly
  39707. + # in scan sets, so we specify it separately.
  39708. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39709. + my_arg="\"$my_arg\""
  39710. + ;;
  39711. + esac
  39712. +
  39713. + func_quote_for_expand_result="$my_arg"
  39714. }
  39715. -# func_extract_an_archive dir oldlib
  39716. -func_extract_an_archive ()
  39717. +# func_show_eval cmd [fail_exp]
  39718. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  39719. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  39720. +# is given, then evaluate it.
  39721. +func_show_eval ()
  39722. {
  39723. - f_ex_an_ar_dir="$1"; shift
  39724. - f_ex_an_ar_oldlib="$1"
  39725. + my_cmd="$1"
  39726. + my_fail_exp="${2-:}"
  39727. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  39728. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  39729. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  39730. - :
  39731. - else
  39732. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  39733. - exit $EXIT_FAILURE
  39734. + ${opt_silent-false} || {
  39735. + func_quote_for_expand "$my_cmd"
  39736. + eval "func_echo $func_quote_for_expand_result"
  39737. + }
  39738. +
  39739. + if ${opt_dry_run-false}; then :; else
  39740. + eval "$my_cmd"
  39741. + my_status=$?
  39742. + if test "$my_status" -eq 0; then :; else
  39743. + eval "(exit $my_status); $my_fail_exp"
  39744. + fi
  39745. fi
  39746. }
  39747. -# func_extract_archives gentop oldlib ...
  39748. -func_extract_archives ()
  39749. +
  39750. +# func_show_eval_locale cmd [fail_exp]
  39751. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  39752. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  39753. +# is given, then evaluate it. Use the saved locale for evaluation.
  39754. +func_show_eval_locale ()
  39755. {
  39756. - my_gentop="$1"; shift
  39757. - my_oldlibs=${1+"$@"}
  39758. - my_oldobjs=""
  39759. - my_xlib=""
  39760. - my_xabs=""
  39761. - my_xdir=""
  39762. - my_status=""
  39763. + my_cmd="$1"
  39764. + my_fail_exp="${2-:}"
  39765. +
  39766. + ${opt_silent-false} || {
  39767. + func_quote_for_expand "$my_cmd"
  39768. + eval "func_echo $func_quote_for_expand_result"
  39769. + }
  39770. - $show "${rm}r $my_gentop"
  39771. - $run ${rm}r "$my_gentop"
  39772. - $show "$mkdir $my_gentop"
  39773. - $run $mkdir "$my_gentop"
  39774. - my_status=$?
  39775. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  39776. - exit $my_status
  39777. + if ${opt_dry_run-false}; then :; else
  39778. + eval "$lt_user_locale
  39779. + $my_cmd"
  39780. + my_status=$?
  39781. + eval "$lt_safe_locale"
  39782. + if test "$my_status" -eq 0; then :; else
  39783. + eval "(exit $my_status); $my_fail_exp"
  39784. + fi
  39785. fi
  39786. +}
  39787. - for my_xlib in $my_oldlibs; do
  39788. - # Extract the objects.
  39789. - case $my_xlib in
  39790. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  39791. - *) my_xabs=`pwd`"/$my_xlib" ;;
  39792. - esac
  39793. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  39794. - my_xlib_u=$my_xlib
  39795. - while :; do
  39796. - case " $extracted_archives " in
  39797. - *" $my_xlib_u "*)
  39798. - extracted_serial=`expr $extracted_serial + 1`
  39799. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  39800. - *) break ;;
  39801. - esac
  39802. - done
  39803. - extracted_archives="$extracted_archives $my_xlib_u"
  39804. - my_xdir="$my_gentop/$my_xlib_u"
  39805. - $show "${rm}r $my_xdir"
  39806. - $run ${rm}r "$my_xdir"
  39807. - $show "$mkdir $my_xdir"
  39808. - $run $mkdir "$my_xdir"
  39809. - exit_status=$?
  39810. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  39811. - exit $exit_status
  39812. - fi
  39813. - case $host in
  39814. - *-darwin*)
  39815. - $show "Extracting $my_xabs"
  39816. - # Do not bother doing anything if just a dry run
  39817. - if test -z "$run"; then
  39818. - darwin_orig_dir=`pwd`
  39819. - cd $my_xdir || exit $?
  39820. - darwin_archive=$my_xabs
  39821. - darwin_curdir=`pwd`
  39822. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  39823. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  39824. - if test -n "$darwin_arches"; then
  39825. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  39826. - darwin_arch=
  39827. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  39828. - for darwin_arch in $darwin_arches ; do
  39829. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  39830. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  39831. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  39832. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  39833. - cd "$darwin_curdir"
  39834. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  39835. - done # $darwin_arches
  39836. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  39837. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  39838. - darwin_file=
  39839. - darwin_files=
  39840. - for darwin_file in $darwin_filelist; do
  39841. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  39842. - lipo -create -output "$darwin_file" $darwin_files
  39843. - done # $darwin_filelist
  39844. - ${rm}r unfat-$$
  39845. - cd "$darwin_orig_dir"
  39846. - else
  39847. - cd "$darwin_orig_dir"
  39848. - func_extract_an_archive "$my_xdir" "$my_xabs"
  39849. - fi # $darwin_arches
  39850. - fi # $run
  39851. - ;;
  39852. - *)
  39853. - func_extract_an_archive "$my_xdir" "$my_xabs"
  39854. - ;;
  39855. - esac
  39856. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  39857. - done
  39858. - func_extract_archives_result="$my_oldobjs"
  39859. +
  39860. +
  39861. +
  39862. +# func_version
  39863. +# Echo version message to standard output and exit.
  39864. +func_version ()
  39865. +{
  39866. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  39867. + s/^# //
  39868. + s/^# *$//
  39869. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  39870. + p
  39871. + }' < "$progpath"
  39872. + exit $?
  39873. +}
  39874. +
  39875. +# func_usage
  39876. +# Echo short help message to standard output and exit.
  39877. +func_usage ()
  39878. +{
  39879. + $SED -n '/^# Usage:/,/# -h/ {
  39880. + s/^# //
  39881. + s/^# *$//
  39882. + s/\$progname/'$progname'/
  39883. + p
  39884. + }' < "$progpath"
  39885. + $ECHO
  39886. + $ECHO "run \`$progname --help | more' for full usage"
  39887. + exit $?
  39888. +}
  39889. +
  39890. +# func_help
  39891. +# Echo long help message to standard output and exit.
  39892. +func_help ()
  39893. +{
  39894. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  39895. + s/^# //
  39896. + s/^# *$//
  39897. + s*\$progname*'$progname'*
  39898. + s*\$host*'"$host"'*
  39899. + s*\$SHELL*'"$SHELL"'*
  39900. + s*\$LTCC*'"$LTCC"'*
  39901. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  39902. + s*\$LD*'"$LD"'*
  39903. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  39904. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  39905. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  39906. + p
  39907. + }' < "$progpath"
  39908. + exit $?
  39909. +}
  39910. +
  39911. +# func_missing_arg argname
  39912. +# Echo program name prefixed message to standard error and set global
  39913. +# exit_cmd.
  39914. +func_missing_arg ()
  39915. +{
  39916. + func_error "missing argument for $1"
  39917. + exit_cmd=exit
  39918. }
  39919. -# End of Shell function definitions
  39920. -#####################################
  39921. -# Darwin sucks
  39922. -eval std_shrext=\"$shrext_cmds\"
  39923. +exit_cmd=:
  39924. -disable_libs=no
  39925. -# Parse our command line options once, thoroughly.
  39926. -while test "$#" -gt 0
  39927. -do
  39928. - arg="$1"
  39929. +
  39930. +
  39931. +
  39932. +# Check that we have a working $ECHO.
  39933. +if test "X$1" = X--no-reexec; then
  39934. + # Discard the --no-reexec flag, and continue.
  39935. shift
  39936. +elif test "X$1" = X--fallback-echo; then
  39937. + # Avoid inline document here, it may be left over
  39938. + :
  39939. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  39940. + # Yippee, $ECHO works!
  39941. + :
  39942. +else
  39943. + # Restart under the correct shell, and then maybe $ECHO will work.
  39944. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  39945. +fi
  39946. - case $arg in
  39947. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  39948. - *) optarg= ;;
  39949. - esac
  39950. +if test "X$1" = X--fallback-echo; then
  39951. + # used as fallback echo
  39952. + shift
  39953. + cat <<EOF
  39954. +$*
  39955. +EOF
  39956. + exit $EXIT_SUCCESS
  39957. +fi
  39958. - # If the previous option needs an argument, assign it.
  39959. - if test -n "$prev"; then
  39960. - case $prev in
  39961. - execute_dlfiles)
  39962. - execute_dlfiles="$execute_dlfiles $arg"
  39963. - ;;
  39964. - tag)
  39965. - tagname="$arg"
  39966. - preserve_args="${preserve_args}=$arg"
  39967. -
  39968. - # Check whether tagname contains only valid characters
  39969. - case $tagname in
  39970. - *[!-_A-Za-z0-9,/]*)
  39971. - $echo "$progname: invalid tag name: $tagname" 1>&2
  39972. - exit $EXIT_FAILURE
  39973. - ;;
  39974. - esac
  39975. +magic="%%%MAGIC variable%%%"
  39976. +magic_exe="%%%MAGIC EXE variable%%%"
  39977. - case $tagname in
  39978. - CC)
  39979. - # Don't test for the "default" C tag, as we know, it's there, but
  39980. - # not specially marked.
  39981. - ;;
  39982. - *)
  39983. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  39984. - taglist="$taglist $tagname"
  39985. - # Evaluate the configuration.
  39986. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  39987. - else
  39988. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  39989. - fi
  39990. - ;;
  39991. - esac
  39992. - ;;
  39993. - *)
  39994. - eval "$prev=\$arg"
  39995. - ;;
  39996. - esac
  39997. +# Global variables.
  39998. +# $mode is unset
  39999. +nonopt=
  40000. +execute_dlfiles=
  40001. +preserve_args=
  40002. +lo2o="s/\\.lo\$/.${objext}/"
  40003. +o2lo="s/\\.${objext}\$/.lo/"
  40004. +extracted_archives=
  40005. +extracted_serial=0
  40006. - prev=
  40007. - prevopt=
  40008. - continue
  40009. - fi
  40010. +opt_dry_run=false
  40011. +opt_duplicate_deps=false
  40012. +opt_silent=false
  40013. +opt_debug=:
  40014. - # Have we seen a non-optional argument yet?
  40015. - case $arg in
  40016. - --help)
  40017. - show_help=yes
  40018. - ;;
  40019. +# If this variable is set in any of the actions, the command in it
  40020. +# will be execed at the end. This prevents here-documents from being
  40021. +# left over by shells.
  40022. +exec_cmd=
  40023. - --version)
  40024. - echo "\
  40025. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  40026. -
  40027. -Copyright (C) 2008 Free Software Foundation, Inc.
  40028. -This is free software; see the source for copying conditions. There is NO
  40029. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  40030. - exit $?
  40031. - ;;
  40032. +# func_fatal_configuration arg...
  40033. +# Echo program name prefixed message to standard error, followed by
  40034. +# a configuration failure hint, and exit.
  40035. +func_fatal_configuration ()
  40036. +{
  40037. + func_error ${1+"$@"}
  40038. + func_error "See the $PACKAGE documentation for more information."
  40039. + func_fatal_error "Fatal configuration error."
  40040. +}
  40041. +
  40042. +
  40043. +# func_config
  40044. +# Display the configuration for all the tags in this script.
  40045. +func_config ()
  40046. +{
  40047. + re_begincf='^# ### BEGIN LIBTOOL'
  40048. + re_endcf='^# ### END LIBTOOL'
  40049. +
  40050. + # Default configuration.
  40051. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  40052. - --config)
  40053. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  40054. # Now print the configurations for the tags.
  40055. for tagname in $taglist; do
  40056. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  40057. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  40058. done
  40059. - exit $?
  40060. - ;;
  40061. -
  40062. - --debug)
  40063. - $echo "$progname: enabling shell trace mode"
  40064. - set -x
  40065. - preserve_args="$preserve_args $arg"
  40066. - ;;
  40067. - --dry-run | -n)
  40068. - run=:
  40069. - ;;
  40070. + exit $?
  40071. +}
  40072. - --features)
  40073. - $echo "host: $host"
  40074. +# func_features
  40075. +# Display the features supported by this script.
  40076. +func_features ()
  40077. +{
  40078. + $ECHO "host: $host"
  40079. if test "$build_libtool_libs" = yes; then
  40080. - $echo "enable shared libraries"
  40081. + $ECHO "enable shared libraries"
  40082. else
  40083. - $echo "disable shared libraries"
  40084. + $ECHO "disable shared libraries"
  40085. fi
  40086. if test "$build_old_libs" = yes; then
  40087. - $echo "enable static libraries"
  40088. + $ECHO "enable static libraries"
  40089. else
  40090. - $echo "disable static libraries"
  40091. + $ECHO "disable static libraries"
  40092. fi
  40093. +
  40094. exit $?
  40095. - ;;
  40096. +}
  40097. - --finish) mode="finish" ;;
  40098. +# func_enable_tag tagname
  40099. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  40100. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  40101. +# variable here.
  40102. +func_enable_tag ()
  40103. +{
  40104. + # Global variable:
  40105. + tagname="$1"
  40106. +
  40107. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  40108. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  40109. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  40110. +
  40111. + # Validate tagname.
  40112. + case $tagname in
  40113. + *[!-_A-Za-z0-9,/]*)
  40114. + func_fatal_error "invalid tag name: $tagname"
  40115. + ;;
  40116. + esac
  40117. - --mode) prevopt="--mode" prev=mode ;;
  40118. - --mode=*) mode="$optarg" ;;
  40119. + # Don't test for the "default" C tag, as we know it's
  40120. + # there but not specially marked.
  40121. + case $tagname in
  40122. + CC) ;;
  40123. + *)
  40124. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  40125. + taglist="$taglist $tagname"
  40126. - --preserve-dup-deps) duplicate_deps="yes" ;;
  40127. + # Evaluate the configuration. Be careful to quote the path
  40128. + # and the sed script, to avoid splitting on whitespace, but
  40129. + # also don't use non-portable quotes within backquotes within
  40130. + # quotes we have to do it in 2 steps:
  40131. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  40132. + eval "$extractedcf"
  40133. + else
  40134. + func_error "ignoring unknown tag $tagname"
  40135. + fi
  40136. + ;;
  40137. + esac
  40138. +}
  40139. - --quiet | --silent)
  40140. - show=:
  40141. - preserve_args="$preserve_args $arg"
  40142. - ;;
  40143. +# Parse options once, thoroughly. This comes as soon as possible in
  40144. +# the script to make things like `libtool --version' happen quickly.
  40145. +{
  40146. - --tag)
  40147. - prevopt="--tag"
  40148. - prev=tag
  40149. - preserve_args="$preserve_args --tag"
  40150. + # Shorthand for --mode=foo, only valid as the first argument
  40151. + case $1 in
  40152. + clean|clea|cle|cl)
  40153. + shift; set dummy --mode clean ${1+"$@"}; shift
  40154. ;;
  40155. - --tag=*)
  40156. - set tag "$optarg" ${1+"$@"}
  40157. - shift
  40158. - prev=tag
  40159. - preserve_args="$preserve_args --tag"
  40160. + compile|compil|compi|comp|com|co|c)
  40161. + shift; set dummy --mode compile ${1+"$@"}; shift
  40162. ;;
  40163. -
  40164. - -dlopen)
  40165. - prevopt="-dlopen"
  40166. - prev=execute_dlfiles
  40167. + execute|execut|execu|exec|exe|ex|e)
  40168. + shift; set dummy --mode execute ${1+"$@"}; shift
  40169. ;;
  40170. -
  40171. - -*)
  40172. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  40173. - $echo "$help" 1>&2
  40174. - exit $EXIT_FAILURE
  40175. + finish|finis|fini|fin|fi|f)
  40176. + shift; set dummy --mode finish ${1+"$@"}; shift
  40177. ;;
  40178. -
  40179. - *)
  40180. - nonopt="$arg"
  40181. - break
  40182. + install|instal|insta|inst|ins|in|i)
  40183. + shift; set dummy --mode install ${1+"$@"}; shift
  40184. + ;;
  40185. + link|lin|li|l)
  40186. + shift; set dummy --mode link ${1+"$@"}; shift
  40187. + ;;
  40188. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  40189. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  40190. ;;
  40191. esac
  40192. -done
  40193. -if test -n "$prevopt"; then
  40194. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  40195. - $echo "$help" 1>&2
  40196. - exit $EXIT_FAILURE
  40197. -fi
  40198. + # Parse non-mode specific arguments:
  40199. + while test "$#" -gt 0; do
  40200. + opt="$1"
  40201. + shift
  40202. -case $disable_libs in
  40203. -no)
  40204. - ;;
  40205. -shared)
  40206. - build_libtool_libs=no
  40207. - build_old_libs=yes
  40208. - ;;
  40209. -static)
  40210. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  40211. - ;;
  40212. -esac
  40213. + case $opt in
  40214. + --config) func_config ;;
  40215. -# If this variable is set in any of the actions, the command in it
  40216. -# will be execed at the end. This prevents here-documents from being
  40217. -# left over by shells.
  40218. -exec_cmd=
  40219. + --debug) preserve_args="$preserve_args $opt"
  40220. + func_echo "enabling shell trace mode"
  40221. + opt_debug='set -x'
  40222. + $opt_debug
  40223. + ;;
  40224. -if test -z "$show_help"; then
  40225. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  40226. + execute_dlfiles="$execute_dlfiles $1"
  40227. + shift
  40228. + ;;
  40229. - # Infer the operation mode.
  40230. - if test -z "$mode"; then
  40231. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  40232. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  40233. - case $nonopt in
  40234. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  40235. - mode=link
  40236. - for arg
  40237. - do
  40238. - case $arg in
  40239. - -c)
  40240. - mode=compile
  40241. - break
  40242. - ;;
  40243. - esac
  40244. - done
  40245. - ;;
  40246. - *db | *dbx | *strace | *truss)
  40247. - mode=execute
  40248. - ;;
  40249. - *install*|cp|mv)
  40250. - mode=install
  40251. - ;;
  40252. - *rm)
  40253. - mode=uninstall
  40254. + --dry-run | -n) opt_dry_run=: ;;
  40255. + --features) func_features ;;
  40256. + --finish) mode="finish" ;;
  40257. +
  40258. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  40259. + case $1 in
  40260. + # Valid mode arguments:
  40261. + clean) ;;
  40262. + compile) ;;
  40263. + execute) ;;
  40264. + finish) ;;
  40265. + install) ;;
  40266. + link) ;;
  40267. + relink) ;;
  40268. + uninstall) ;;
  40269. +
  40270. + # Catch anything else as an error
  40271. + *) func_error "invalid argument for $opt"
  40272. + exit_cmd=exit
  40273. + break
  40274. + ;;
  40275. + esac
  40276. +
  40277. + mode="$1"
  40278. + shift
  40279. + ;;
  40280. +
  40281. + --preserve-dup-deps)
  40282. + opt_duplicate_deps=: ;;
  40283. +
  40284. + --quiet|--silent) preserve_args="$preserve_args $opt"
  40285. + opt_silent=:
  40286. + ;;
  40287. +
  40288. + --verbose| -v) preserve_args="$preserve_args $opt"
  40289. + opt_silent=false
  40290. + ;;
  40291. +
  40292. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  40293. + preserve_args="$preserve_args $opt $1"
  40294. + func_enable_tag "$1" # tagname is set here
  40295. + shift
  40296. + ;;
  40297. +
  40298. + # Separate optargs to long options:
  40299. + -dlopen=*|--mode=*|--tag=*)
  40300. + func_opt_split "$opt"
  40301. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  40302. + shift
  40303. + ;;
  40304. +
  40305. + -\?|-h) func_usage ;;
  40306. + --help) opt_help=: ;;
  40307. + --version) func_version ;;
  40308. +
  40309. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  40310. +
  40311. + *) nonopt="$opt"
  40312. + break
  40313. + ;;
  40314. + esac
  40315. + done
  40316. +
  40317. +
  40318. + case $host in
  40319. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  40320. + # don't eliminate duplications in $postdeps and $predeps
  40321. + opt_duplicate_compiler_generated_deps=:
  40322. ;;
  40323. *)
  40324. - # If we have no mode, but dlfiles were specified, then do execute mode.
  40325. - test -n "$execute_dlfiles" && mode=execute
  40326. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  40327. + ;;
  40328. + esac
  40329. - # Just use the default operation mode.
  40330. - if test -z "$mode"; then
  40331. - if test -n "$nonopt"; then
  40332. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  40333. - else
  40334. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  40335. - fi
  40336. + # Having warned about all mis-specified options, bail out if
  40337. + # anything was wrong.
  40338. + $exit_cmd $EXIT_FAILURE
  40339. +}
  40340. +
  40341. +# func_check_version_match
  40342. +# Ensure that we are using m4 macros, and libtool script from the same
  40343. +# release of libtool.
  40344. +func_check_version_match ()
  40345. +{
  40346. + if test "$package_revision" != "$macro_revision"; then
  40347. + if test "$VERSION" != "$macro_version"; then
  40348. + if test -z "$macro_version"; then
  40349. + cat >&2 <<_LT_EOF
  40350. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  40351. +$progname: definition of this LT_INIT comes from an older release.
  40352. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  40353. +$progname: and run autoconf again.
  40354. +_LT_EOF
  40355. + else
  40356. + cat >&2 <<_LT_EOF
  40357. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  40358. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  40359. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  40360. +$progname: and run autoconf again.
  40361. +_LT_EOF
  40362. fi
  40363. - ;;
  40364. - esac
  40365. + else
  40366. + cat >&2 <<_LT_EOF
  40367. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  40368. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  40369. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  40370. +$progname: of $PACKAGE $VERSION and run autoconf again.
  40371. +_LT_EOF
  40372. + fi
  40373. +
  40374. + exit $EXIT_MISMATCH
  40375. + fi
  40376. +}
  40377. +
  40378. +
  40379. +## ----------- ##
  40380. +## Main. ##
  40381. +## ----------- ##
  40382. +
  40383. +$opt_help || {
  40384. + # Sanity checks first:
  40385. + func_check_version_match
  40386. +
  40387. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  40388. + func_fatal_configuration "not configured to build any kind of library"
  40389. fi
  40390. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  40391. +
  40392. +
  40393. + # Darwin sucks
  40394. + eval std_shrext=\"$shrext_cmds\"
  40395. +
  40396. +
  40397. # Only execute mode is allowed to have -dlopen flags.
  40398. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  40399. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  40400. - $echo "$help" 1>&2
  40401. + func_error "unrecognized option \`-dlopen'"
  40402. + $ECHO "$help" 1>&2
  40403. exit $EXIT_FAILURE
  40404. fi
  40405. # Change the help message to a mode-specific one.
  40406. generic_help="$help"
  40407. - help="Try \`$modename --help --mode=$mode' for more information."
  40408. + help="Try \`$progname --help --mode=$mode' for more information."
  40409. +}
  40410. - # These modes are in order of execution frequency so that they run quickly.
  40411. - case $mode in
  40412. - # libtool compile mode
  40413. - compile)
  40414. - modename="$modename: compile"
  40415. - # Get the compilation command and the source file.
  40416. - base_compile=
  40417. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  40418. - suppress_opt=yes
  40419. - suppress_output=
  40420. - arg_mode=normal
  40421. - libobj=
  40422. - later=
  40423. - for arg
  40424. - do
  40425. - case $arg_mode in
  40426. - arg )
  40427. - # do not "continue". Instead, add this to base_compile
  40428. - lastarg="$arg"
  40429. - arg_mode=normal
  40430. - ;;
  40431. +# func_lalib_p file
  40432. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  40433. +# This function is only a basic sanity check; it will hardly flush out
  40434. +# determined imposters.
  40435. +func_lalib_p ()
  40436. +{
  40437. + test -f "$1" &&
  40438. + $SED -e 4q "$1" 2>/dev/null \
  40439. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  40440. +}
  40441. - target )
  40442. - libobj="$arg"
  40443. - arg_mode=normal
  40444. - continue
  40445. - ;;
  40446. +# func_lalib_unsafe_p file
  40447. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  40448. +# This function implements the same check as func_lalib_p without
  40449. +# resorting to external programs. To this end, it redirects stdin and
  40450. +# closes it afterwards, without saving the original file descriptor.
  40451. +# As a safety measure, use it only where a negative result would be
  40452. +# fatal anyway. Works if `file' does not exist.
  40453. +func_lalib_unsafe_p ()
  40454. +{
  40455. + lalib_p=no
  40456. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  40457. + for lalib_p_l in 1 2 3 4
  40458. + do
  40459. + read lalib_p_line
  40460. + case "$lalib_p_line" in
  40461. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  40462. + esac
  40463. + done
  40464. + exec 0<&5 5<&-
  40465. + fi
  40466. + test "$lalib_p" = yes
  40467. +}
  40468. - normal )
  40469. - # Accept any command-line options.
  40470. - case $arg in
  40471. - -o)
  40472. - if test -n "$libobj" ; then
  40473. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  40474. - exit $EXIT_FAILURE
  40475. - fi
  40476. - arg_mode=target
  40477. - continue
  40478. - ;;
  40479. +# func_ltwrapper_script_p file
  40480. +# True iff FILE is a libtool wrapper script
  40481. +# This function is only a basic sanity check; it will hardly flush out
  40482. +# determined imposters.
  40483. +func_ltwrapper_script_p ()
  40484. +{
  40485. + func_lalib_p "$1"
  40486. +}
  40487. - -static | -prefer-pic | -prefer-non-pic)
  40488. - later="$later $arg"
  40489. - continue
  40490. - ;;
  40491. +# func_ltwrapper_executable_p file
  40492. +# True iff FILE is a libtool wrapper executable
  40493. +# This function is only a basic sanity check; it will hardly flush out
  40494. +# determined imposters.
  40495. +func_ltwrapper_executable_p ()
  40496. +{
  40497. + func_ltwrapper_exec_suffix=
  40498. + case $1 in
  40499. + *.exe) ;;
  40500. + *) func_ltwrapper_exec_suffix=.exe ;;
  40501. + esac
  40502. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  40503. +}
  40504. +
  40505. +# func_ltwrapper_scriptname file
  40506. +# Assumes file is an ltwrapper_executable
  40507. +# uses $file to determine the appropriate filename for a
  40508. +# temporary ltwrapper_script.
  40509. +func_ltwrapper_scriptname ()
  40510. +{
  40511. + func_ltwrapper_scriptname_result=""
  40512. + if func_ltwrapper_executable_p "$1"; then
  40513. + func_dirname_and_basename "$1" "" "."
  40514. + func_stripname '' '.exe' "$func_basename_result"
  40515. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  40516. + fi
  40517. +}
  40518. +
  40519. +# func_ltwrapper_p file
  40520. +# True iff FILE is a libtool wrapper script or wrapper executable
  40521. +# This function is only a basic sanity check; it will hardly flush out
  40522. +# determined imposters.
  40523. +func_ltwrapper_p ()
  40524. +{
  40525. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  40526. +}
  40527. +
  40528. +
  40529. +# func_execute_cmds commands fail_cmd
  40530. +# Execute tilde-delimited COMMANDS.
  40531. +# If FAIL_CMD is given, eval that upon failure.
  40532. +# FAIL_CMD may read-access the current command in variable CMD!
  40533. +func_execute_cmds ()
  40534. +{
  40535. + $opt_debug
  40536. + save_ifs=$IFS; IFS='~'
  40537. + for cmd in $1; do
  40538. + IFS=$save_ifs
  40539. + eval cmd=\"$cmd\"
  40540. + func_show_eval "$cmd" "${2-:}"
  40541. + done
  40542. + IFS=$save_ifs
  40543. +}
  40544. +
  40545. +
  40546. +# func_source file
  40547. +# Source FILE, adding directory component if necessary.
  40548. +# Note that it is not necessary on cygwin/mingw to append a dot to
  40549. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  40550. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  40551. +# `FILE.' does not work on cygwin managed mounts.
  40552. +func_source ()
  40553. +{
  40554. + $opt_debug
  40555. + case $1 in
  40556. + */* | *\\*) . "$1" ;;
  40557. + *) . "./$1" ;;
  40558. + esac
  40559. +}
  40560. +
  40561. +
  40562. +# func_infer_tag arg
  40563. +# Infer tagged configuration to use if any are available and
  40564. +# if one wasn't chosen via the "--tag" command line option.
  40565. +# Only attempt this if the compiler in the base compile
  40566. +# command doesn't match the default compiler.
  40567. +# arg is usually of the form 'gcc ...'
  40568. +func_infer_tag ()
  40569. +{
  40570. + $opt_debug
  40571. + if test -n "$available_tags" && test -z "$tagname"; then
  40572. + CC_quoted=
  40573. + for arg in $CC; do
  40574. + func_quote_for_eval "$arg"
  40575. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  40576. + done
  40577. + case $@ in
  40578. + # Blanks in the command may have been stripped by the calling shell,
  40579. + # but not from the CC environment variable when configure was run.
  40580. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  40581. + # Blanks at the start of $base_compile will cause this to fail
  40582. + # if we don't check for them as well.
  40583. + *)
  40584. + for z in $available_tags; do
  40585. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  40586. + # Evaluate the configuration.
  40587. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  40588. + CC_quoted=
  40589. + for arg in $CC; do
  40590. + # Double-quote args containing other shell metacharacters.
  40591. + func_quote_for_eval "$arg"
  40592. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  40593. + done
  40594. + case "$@ " in
  40595. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  40596. + # The compiler in the base compile command matches
  40597. + # the one in the tagged configuration.
  40598. + # Assume this is the tagged configuration we want.
  40599. + tagname=$z
  40600. + break
  40601. + ;;
  40602. + esac
  40603. + fi
  40604. + done
  40605. + # If $tagname still isn't set, then no tagged configuration
  40606. + # was found and let the user know that the "--tag" command
  40607. + # line option must be used.
  40608. + if test -z "$tagname"; then
  40609. + func_echo "unable to infer tagged configuration"
  40610. + func_fatal_error "specify a tag with \`--tag'"
  40611. +# else
  40612. +# func_verbose "using $tagname tagged configuration"
  40613. + fi
  40614. + ;;
  40615. + esac
  40616. + fi
  40617. +}
  40618. +
  40619. +
  40620. +
  40621. +# func_write_libtool_object output_name pic_name nonpic_name
  40622. +# Create a libtool object file (analogous to a ".la" file),
  40623. +# but don't create it if we're doing a dry run.
  40624. +func_write_libtool_object ()
  40625. +{
  40626. + write_libobj=${1}
  40627. + if test "$build_libtool_libs" = yes; then
  40628. + write_lobj=\'${2}\'
  40629. + else
  40630. + write_lobj=none
  40631. + fi
  40632. +
  40633. + if test "$build_old_libs" = yes; then
  40634. + write_oldobj=\'${3}\'
  40635. + else
  40636. + write_oldobj=none
  40637. + fi
  40638. +
  40639. + $opt_dry_run || {
  40640. + cat >${write_libobj}T <<EOF
  40641. +# $write_libobj - a libtool object file
  40642. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  40643. +#
  40644. +# Please DO NOT delete this file!
  40645. +# It is necessary for linking the library.
  40646. +
  40647. +# Name of the PIC object.
  40648. +pic_object=$write_lobj
  40649. +
  40650. +# Name of the non-PIC object
  40651. +non_pic_object=$write_oldobj
  40652. +
  40653. +EOF
  40654. + $MV "${write_libobj}T" "${write_libobj}"
  40655. + }
  40656. +}
  40657. +
  40658. +# func_mode_compile arg...
  40659. +func_mode_compile ()
  40660. +{
  40661. + $opt_debug
  40662. + # Get the compilation command and the source file.
  40663. + base_compile=
  40664. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  40665. + suppress_opt=yes
  40666. + suppress_output=
  40667. + arg_mode=normal
  40668. + libobj=
  40669. + later=
  40670. + pie_flag=
  40671. +
  40672. + for arg
  40673. + do
  40674. + case $arg_mode in
  40675. + arg )
  40676. + # do not "continue". Instead, add this to base_compile
  40677. + lastarg="$arg"
  40678. + arg_mode=normal
  40679. + ;;
  40680. +
  40681. + target )
  40682. + libobj="$arg"
  40683. + arg_mode=normal
  40684. + continue
  40685. + ;;
  40686. +
  40687. + normal )
  40688. + # Accept any command-line options.
  40689. + case $arg in
  40690. + -o)
  40691. + test -n "$libobj" && \
  40692. + func_fatal_error "you cannot specify \`-o' more than once"
  40693. + arg_mode=target
  40694. + continue
  40695. + ;;
  40696. +
  40697. + -pie | -fpie | -fPIE)
  40698. + pie_flag="$pie_flag $arg"
  40699. + continue
  40700. + ;;
  40701. +
  40702. + -shared | -static | -prefer-pic | -prefer-non-pic)
  40703. + later="$later $arg"
  40704. + continue
  40705. + ;;
  40706. -no-suppress)
  40707. suppress_opt=no
  40708. @@ -708,31 +1157,25 @@
  40709. ;; # replaced later. I would guess that would be a bug.
  40710. -Wc,*)
  40711. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  40712. + func_stripname '-Wc,' '' "$arg"
  40713. + args=$func_stripname_result
  40714. lastarg=
  40715. save_ifs="$IFS"; IFS=','
  40716. - for arg in $args; do
  40717. + for arg in $args; do
  40718. IFS="$save_ifs"
  40719. -
  40720. - # Double-quote args containing other shell metacharacters.
  40721. - # Many Bourne shells cannot handle close brackets correctly
  40722. - # in scan sets, so we specify it separately.
  40723. - case $arg in
  40724. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40725. - arg="\"$arg\""
  40726. - ;;
  40727. - esac
  40728. - lastarg="$lastarg $arg"
  40729. + func_quote_for_eval "$arg"
  40730. + lastarg="$lastarg $func_quote_for_eval_result"
  40731. done
  40732. IFS="$save_ifs"
  40733. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  40734. + func_stripname ' ' '' "$lastarg"
  40735. + lastarg=$func_stripname_result
  40736. # Add the arguments to base_compile.
  40737. base_compile="$base_compile $lastarg"
  40738. continue
  40739. ;;
  40740. - * )
  40741. + *)
  40742. # Accept the current argument as the source file.
  40743. # The previous "srcfile" becomes the current argument.
  40744. #
  40745. @@ -744,66 +1187,42 @@
  40746. esac # case $arg_mode
  40747. # Aesthetically quote the previous argument.
  40748. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  40749. -
  40750. - case $lastarg in
  40751. - # Double-quote args containing other shell metacharacters.
  40752. - # Many Bourne shells cannot handle close brackets correctly
  40753. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  40754. - # in scan sets (worked around with variable expansion),
  40755. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  40756. - # at all, so we specify them separately.
  40757. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40758. - lastarg="\"$lastarg\""
  40759. - ;;
  40760. - esac
  40761. -
  40762. - base_compile="$base_compile $lastarg"
  40763. + func_quote_for_eval "$lastarg"
  40764. + base_compile="$base_compile $func_quote_for_eval_result"
  40765. done # for arg
  40766. case $arg_mode in
  40767. arg)
  40768. - $echo "$modename: you must specify an argument for -Xcompile"
  40769. - exit $EXIT_FAILURE
  40770. + func_fatal_error "you must specify an argument for -Xcompile"
  40771. ;;
  40772. target)
  40773. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  40774. - exit $EXIT_FAILURE
  40775. + func_fatal_error "you must specify a target with \`-o'"
  40776. ;;
  40777. *)
  40778. # Get the name of the library object.
  40779. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  40780. + test -z "$libobj" && {
  40781. + func_basename "$srcfile"
  40782. + libobj="$func_basename_result"
  40783. + }
  40784. ;;
  40785. esac
  40786. # Recognize several different file suffixes.
  40787. # If the user specifies -o file.o, it is replaced with file.lo
  40788. - xform='[cCFSifmso]'
  40789. case $libobj in
  40790. - *.ada) xform=ada ;;
  40791. - *.adb) xform=adb ;;
  40792. - *.ads) xform=ads ;;
  40793. - *.asm) xform=asm ;;
  40794. - *.c++) xform=c++ ;;
  40795. - *.cc) xform=cc ;;
  40796. - *.ii) xform=ii ;;
  40797. - *.class) xform=class ;;
  40798. - *.cpp) xform=cpp ;;
  40799. - *.cxx) xform=cxx ;;
  40800. - *.[fF][09]?) xform=[fF][09]. ;;
  40801. - *.for) xform=for ;;
  40802. - *.java) xform=java ;;
  40803. - *.obj) xform=obj ;;
  40804. - *.sx) xform=sx ;;
  40805. + *.[cCFSifmso] | \
  40806. + *.ada | *.adb | *.ads | *.asm | \
  40807. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  40808. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  40809. + func_xform "$libobj"
  40810. + libobj=$func_xform_result
  40811. + ;;
  40812. esac
  40813. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  40814. -
  40815. case $libobj in
  40816. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  40817. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  40818. *)
  40819. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  40820. - exit $EXIT_FAILURE
  40821. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  40822. ;;
  40823. esac
  40824. @@ -811,7 +1230,15 @@
  40825. for arg in $later; do
  40826. case $arg in
  40827. + -shared)
  40828. + test "$build_libtool_libs" != yes && \
  40829. + func_fatal_configuration "can not build a shared library"
  40830. + build_old_libs=no
  40831. + continue
  40832. + ;;
  40833. +
  40834. -static)
  40835. + build_libtool_libs=no
  40836. build_old_libs=yes
  40837. continue
  40838. ;;
  40839. @@ -828,28 +1255,17 @@
  40840. esac
  40841. done
  40842. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  40843. - case $qlibobj in
  40844. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40845. - qlibobj="\"$qlibobj\"" ;;
  40846. - esac
  40847. - test "X$libobj" != "X$qlibobj" \
  40848. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  40849. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  40850. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  40851. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  40852. - if test "X$xdir" = "X$obj"; then
  40853. - xdir=
  40854. - else
  40855. - xdir=$xdir/
  40856. - fi
  40857. + func_quote_for_eval "$libobj"
  40858. + test "X$libobj" != "X$func_quote_for_eval_result" \
  40859. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  40860. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  40861. + func_dirname_and_basename "$obj" "/" ""
  40862. + objname="$func_basename_result"
  40863. + xdir="$func_dirname_result"
  40864. lobj=${xdir}$objdir/$objname
  40865. - if test -z "$base_compile"; then
  40866. - $echo "$modename: you must specify a compilation command" 1>&2
  40867. - $echo "$help" 1>&2
  40868. - exit $EXIT_FAILURE
  40869. - fi
  40870. + test -z "$base_compile" && \
  40871. + func_fatal_help "you must specify a compilation command"
  40872. # Delete any leftover library objects.
  40873. if test "$build_old_libs" = yes; then
  40874. @@ -858,12 +1274,9 @@
  40875. removelist="$lobj $libobj ${libobj}T"
  40876. fi
  40877. - $run $rm $removelist
  40878. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  40879. -
  40880. # On Cygwin there's no "real" PIC flag so we must build both object types
  40881. case $host_os in
  40882. - cygwin* | mingw* | pw32* | os2*)
  40883. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  40884. pic_mode=default
  40885. ;;
  40886. esac
  40887. @@ -875,10 +1288,8 @@
  40888. # Calculate the filename of the output object if compiler does
  40889. # not support -o with -c
  40890. if test "$compiler_c_o" = no; then
  40891. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  40892. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  40893. lockfile="$output_obj.lock"
  40894. - removelist="$removelist $output_obj $lockfile"
  40895. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  40896. else
  40897. output_obj=
  40898. need_locks=no
  40899. @@ -888,13 +1299,13 @@
  40900. # Lock this critical section if it is needed
  40901. # We use this script file to make the link, it avoids creating a new file
  40902. if test "$need_locks" = yes; then
  40903. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  40904. - $show "Waiting for $lockfile to be removed"
  40905. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  40906. + func_echo "Waiting for $lockfile to be removed"
  40907. sleep 2
  40908. done
  40909. elif test "$need_locks" = warn; then
  40910. if test -f "$lockfile"; then
  40911. - $echo "\
  40912. + $ECHO "\
  40913. *** ERROR, $lockfile exists and contains:
  40914. `cat $lockfile 2>/dev/null`
  40915. @@ -905,34 +1316,22 @@
  40916. avoid parallel builds (make -j) in this platform, or get a better
  40917. compiler."
  40918. - $run $rm $removelist
  40919. + $opt_dry_run || $RM $removelist
  40920. exit $EXIT_FAILURE
  40921. fi
  40922. - $echo "$srcfile" > "$lockfile"
  40923. + removelist="$removelist $output_obj"
  40924. + $ECHO "$srcfile" > "$lockfile"
  40925. fi
  40926. + $opt_dry_run || $RM $removelist
  40927. + removelist="$removelist $lockfile"
  40928. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  40929. +
  40930. if test -n "$fix_srcfile_path"; then
  40931. eval srcfile=\"$fix_srcfile_path\"
  40932. fi
  40933. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  40934. - case $qsrcfile in
  40935. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40936. - qsrcfile="\"$qsrcfile\"" ;;
  40937. - esac
  40938. -
  40939. - $run $rm "$libobj" "${libobj}T"
  40940. -
  40941. - # Create a libtool object file (analogous to a ".la" file),
  40942. - # but don't create it if we're doing a dry run.
  40943. - test -z "$run" && cat > ${libobj}T <<EOF
  40944. -# $libobj - a libtool object file
  40945. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  40946. -#
  40947. -# Please DO NOT delete this file!
  40948. -# It is necessary for linking the library.
  40949. -
  40950. -# Name of the PIC object.
  40951. -EOF
  40952. + func_quote_for_eval "$srcfile"
  40953. + qsrcfile=$func_quote_for_eval_result
  40954. # Only build a PIC object if we are building libtool libraries.
  40955. if test "$build_libtool_libs" = yes; then
  40956. @@ -946,32 +1345,19 @@
  40957. command="$base_compile $qsrcfile"
  40958. fi
  40959. - if test ! -d "${xdir}$objdir"; then
  40960. - $show "$mkdir ${xdir}$objdir"
  40961. - $run $mkdir ${xdir}$objdir
  40962. - exit_status=$?
  40963. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  40964. - exit $exit_status
  40965. - fi
  40966. - fi
  40967. + func_mkdir_p "$xdir$objdir"
  40968. if test -z "$output_obj"; then
  40969. # Place PIC objects in $objdir
  40970. command="$command -o $lobj"
  40971. fi
  40972. - $run $rm "$lobj" "$output_obj"
  40973. -
  40974. - $show "$command"
  40975. - if $run eval $lt_env "$command"; then :
  40976. - else
  40977. - test -n "$output_obj" && $run $rm $removelist
  40978. - exit $EXIT_FAILURE
  40979. - fi
  40980. + func_show_eval_locale "$command" \
  40981. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  40982. if test "$need_locks" = warn &&
  40983. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  40984. - $echo "\
  40985. + $ECHO "\
  40986. *** ERROR, $lockfile contains:
  40987. `cat $lockfile 2>/dev/null`
  40988. @@ -985,45 +1371,27 @@
  40989. avoid parallel builds (make -j) in this platform, or get a better
  40990. compiler."
  40991. - $run $rm $removelist
  40992. + $opt_dry_run || $RM $removelist
  40993. exit $EXIT_FAILURE
  40994. fi
  40995. # Just move the object if needed, then go on to compile the next one
  40996. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  40997. - $show "$mv $output_obj $lobj"
  40998. - if $run $mv $output_obj $lobj; then :
  40999. - else
  41000. - error=$?
  41001. - $run $rm $removelist
  41002. - exit $error
  41003. - fi
  41004. + func_show_eval '$MV "$output_obj" "$lobj"' \
  41005. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  41006. fi
  41007. - # Append the name of the PIC object to the libtool object file.
  41008. - test -z "$run" && cat >> ${libobj}T <<EOF
  41009. -pic_object='$objdir/$objname'
  41010. -
  41011. -EOF
  41012. -
  41013. # Allow error messages only from the first compilation.
  41014. if test "$suppress_opt" = yes; then
  41015. - suppress_output=' >/dev/null 2>&1'
  41016. + suppress_output=' >/dev/null 2>&1'
  41017. fi
  41018. - else
  41019. - # No PIC object so indicate it doesn't exist in the libtool
  41020. - # object file.
  41021. - test -z "$run" && cat >> ${libobj}T <<EOF
  41022. -pic_object=none
  41023. -
  41024. -EOF
  41025. fi
  41026. # Only build a position-dependent object if we build old libraries.
  41027. if test "$build_old_libs" = yes; then
  41028. if test "$pic_mode" != yes; then
  41029. # Don't build PIC code
  41030. - command="$base_compile $qsrcfile"
  41031. + command="$base_compile $qsrcfile$pie_flag"
  41032. else
  41033. command="$base_compile $qsrcfile $pic_flag"
  41034. fi
  41035. @@ -1033,17 +1401,12 @@
  41036. # Suppress compiler output if we already did a PIC compilation.
  41037. command="$command$suppress_output"
  41038. - $run $rm "$obj" "$output_obj"
  41039. - $show "$command"
  41040. - if $run eval $lt_env "$command"; then :
  41041. - else
  41042. - $run $rm $removelist
  41043. - exit $EXIT_FAILURE
  41044. - fi
  41045. + func_show_eval_locale "$command" \
  41046. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  41047. if test "$need_locks" = warn &&
  41048. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  41049. - $echo "\
  41050. + $ECHO "\
  41051. *** ERROR, $lockfile contains:
  41052. `cat $lockfile 2>/dev/null`
  41053. @@ -1057,5485 +1420,6784 @@
  41054. avoid parallel builds (make -j) in this platform, or get a better
  41055. compiler."
  41056. - $run $rm $removelist
  41057. + $opt_dry_run || $RM $removelist
  41058. exit $EXIT_FAILURE
  41059. fi
  41060. # Just move the object if needed
  41061. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  41062. - $show "$mv $output_obj $obj"
  41063. - if $run $mv $output_obj $obj; then :
  41064. - else
  41065. - error=$?
  41066. - $run $rm $removelist
  41067. - exit $error
  41068. - fi
  41069. + func_show_eval '$MV "$output_obj" "$obj"' \
  41070. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  41071. fi
  41072. -
  41073. - # Append the name of the non-PIC object the libtool object file.
  41074. - # Only append if the libtool object file exists.
  41075. - test -z "$run" && cat >> ${libobj}T <<EOF
  41076. -# Name of the non-PIC object.
  41077. -non_pic_object='$objname'
  41078. -
  41079. -EOF
  41080. - else
  41081. - # Append the name of the non-PIC object the libtool object file.
  41082. - # Only append if the libtool object file exists.
  41083. - test -z "$run" && cat >> ${libobj}T <<EOF
  41084. -# Name of the non-PIC object.
  41085. -non_pic_object=none
  41086. -
  41087. -EOF
  41088. fi
  41089. - $run $mv "${libobj}T" "${libobj}"
  41090. + $opt_dry_run || {
  41091. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  41092. - # Unlock the critical section if it was locked
  41093. - if test "$need_locks" != no; then
  41094. - $run $rm "$lockfile"
  41095. - fi
  41096. + # Unlock the critical section if it was locked
  41097. + if test "$need_locks" != no; then
  41098. + removelist=$lockfile
  41099. + $RM "$lockfile"
  41100. + fi
  41101. + }
  41102. exit $EXIT_SUCCESS
  41103. - ;;
  41104. +}
  41105. - # libtool link mode
  41106. - link | relink)
  41107. - modename="$modename: link"
  41108. - case $host in
  41109. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  41110. - # It is impossible to link a dll without this setting, and
  41111. - # we shouldn't force the makefile maintainer to figure out
  41112. - # which system we are compiling for in order to pass an extra
  41113. - # flag for every libtool invocation.
  41114. - # allow_undefined=no
  41115. +$opt_help || {
  41116. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  41117. +}
  41118. - # FIXME: Unfortunately, there are problems with the above when trying
  41119. - # to make a dll which has undefined symbols, in which case not
  41120. - # even a static library is built. For now, we need to specify
  41121. - # -no-undefined on the libtool link line when we can be certain
  41122. - # that all symbols are satisfied, otherwise we get a static library.
  41123. - allow_undefined=yes
  41124. - ;;
  41125. - *)
  41126. - allow_undefined=yes
  41127. - ;;
  41128. - esac
  41129. - libtool_args="$nonopt"
  41130. - base_compile="$nonopt $@"
  41131. - compile_command="$nonopt"
  41132. - finalize_command="$nonopt"
  41133. +func_mode_help ()
  41134. +{
  41135. + # We need to display help for each of the modes.
  41136. + case $mode in
  41137. + "")
  41138. + # Generic help is extracted from the usage comments
  41139. + # at the start of this file.
  41140. + func_help
  41141. + ;;
  41142. - compile_rpath=
  41143. - finalize_rpath=
  41144. - compile_shlibpath=
  41145. - finalize_shlibpath=
  41146. - convenience=
  41147. - old_convenience=
  41148. - deplibs=
  41149. - old_deplibs=
  41150. - compiler_flags=
  41151. - linker_flags=
  41152. - dllsearchpath=
  41153. - lib_search_path=`pwd`
  41154. - inst_prefix_dir=
  41155. + clean)
  41156. + $ECHO \
  41157. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  41158. - avoid_version=no
  41159. - dlfiles=
  41160. - dlprefiles=
  41161. - dlself=no
  41162. - export_dynamic=no
  41163. - export_symbols=
  41164. - export_symbols_regex=
  41165. - generated=
  41166. - libobjs=
  41167. - ltlibs=
  41168. - module=no
  41169. - no_install=no
  41170. - objs=
  41171. - non_pic_objects=
  41172. - notinst_path= # paths that contain not-installed libtool libraries
  41173. - precious_files_regex=
  41174. - prefer_static_libs=no
  41175. - preload=no
  41176. - prev=
  41177. - prevarg=
  41178. - release=
  41179. - rpath=
  41180. - xrpath=
  41181. - perm_rpath=
  41182. - temp_rpath=
  41183. - thread_safe=no
  41184. - vinfo=
  41185. - vinfo_number=no
  41186. - single_module="${wl}-single_module"
  41187. +Remove files from the build directory.
  41188. - func_infer_tag $base_compile
  41189. +RM is the name of the program to use to delete files associated with each FILE
  41190. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  41191. +to RM.
  41192. - # We need to know -static, to get the right output filenames.
  41193. - for arg
  41194. - do
  41195. - case $arg in
  41196. - -all-static | -static | -static-libtool-libs)
  41197. - case $arg in
  41198. - -all-static)
  41199. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  41200. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  41201. - fi
  41202. - if test -n "$link_static_flag"; then
  41203. - dlopen_self=$dlopen_self_static
  41204. - fi
  41205. - prefer_static_libs=yes
  41206. - ;;
  41207. - -static)
  41208. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  41209. - dlopen_self=$dlopen_self_static
  41210. - fi
  41211. - prefer_static_libs=built
  41212. - ;;
  41213. - -static-libtool-libs)
  41214. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  41215. - dlopen_self=$dlopen_self_static
  41216. - fi
  41217. - prefer_static_libs=yes
  41218. - ;;
  41219. - esac
  41220. - build_libtool_libs=no
  41221. - build_old_libs=yes
  41222. - break
  41223. - ;;
  41224. - esac
  41225. - done
  41226. +If FILE is a libtool library, object or program, all the files associated
  41227. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  41228. + ;;
  41229. - # See if our shared archives depend on static archives.
  41230. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  41231. + compile)
  41232. + $ECHO \
  41233. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  41234. - # Go through the arguments, transforming them on the way.
  41235. - while test "$#" -gt 0; do
  41236. - arg="$1"
  41237. - shift
  41238. - case $arg in
  41239. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41240. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  41241. - ;;
  41242. - *) qarg=$arg ;;
  41243. - esac
  41244. - libtool_args="$libtool_args $qarg"
  41245. +Compile a source file into a libtool library object.
  41246. - # If the previous option needs an argument, assign it.
  41247. - if test -n "$prev"; then
  41248. - case $prev in
  41249. - output)
  41250. - compile_command="$compile_command @OUTPUT@"
  41251. - finalize_command="$finalize_command @OUTPUT@"
  41252. - ;;
  41253. - esac
  41254. +This mode accepts the following additional options:
  41255. - case $prev in
  41256. - dlfiles|dlprefiles)
  41257. - if test "$preload" = no; then
  41258. - # Add the symbol object into the linking commands.
  41259. - compile_command="$compile_command @SYMFILE@"
  41260. - finalize_command="$finalize_command @SYMFILE@"
  41261. - preload=yes
  41262. - fi
  41263. - case $arg in
  41264. - *.la | *.lo) ;; # We handle these cases below.
  41265. - force)
  41266. - if test "$dlself" = no; then
  41267. - dlself=needless
  41268. - export_dynamic=yes
  41269. - fi
  41270. - prev=
  41271. - continue
  41272. - ;;
  41273. - self)
  41274. - if test "$prev" = dlprefiles; then
  41275. - dlself=yes
  41276. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  41277. - dlself=yes
  41278. - else
  41279. - dlself=needless
  41280. - export_dynamic=yes
  41281. - fi
  41282. - prev=
  41283. - continue
  41284. - ;;
  41285. - *)
  41286. - if test "$prev" = dlfiles; then
  41287. - dlfiles="$dlfiles $arg"
  41288. - else
  41289. - dlprefiles="$dlprefiles $arg"
  41290. - fi
  41291. - prev=
  41292. - continue
  41293. - ;;
  41294. - esac
  41295. - ;;
  41296. - expsyms)
  41297. - export_symbols="$arg"
  41298. - if test ! -f "$arg"; then
  41299. - $echo "$modename: symbol file \`$arg' does not exist"
  41300. - exit $EXIT_FAILURE
  41301. - fi
  41302. - prev=
  41303. - continue
  41304. - ;;
  41305. - expsyms_regex)
  41306. - export_symbols_regex="$arg"
  41307. - prev=
  41308. - continue
  41309. - ;;
  41310. - inst_prefix)
  41311. - inst_prefix_dir="$arg"
  41312. - prev=
  41313. - continue
  41314. - ;;
  41315. - precious_regex)
  41316. - precious_files_regex="$arg"
  41317. - prev=
  41318. - continue
  41319. - ;;
  41320. - release)
  41321. - release="-$arg"
  41322. - prev=
  41323. - continue
  41324. - ;;
  41325. - objectlist)
  41326. - if test -f "$arg"; then
  41327. - save_arg=$arg
  41328. - moreargs=
  41329. - for fil in `cat $save_arg`
  41330. - do
  41331. -# moreargs="$moreargs $fil"
  41332. - arg=$fil
  41333. - # A libtool-controlled object.
  41334. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  41335. + -no-suppress do not suppress compiler output for multiple passes
  41336. + -prefer-pic try to building PIC objects only
  41337. + -prefer-non-pic try to building non-PIC objects only
  41338. + -shared do not build a \`.o' file suitable for static linking
  41339. + -static only build a \`.o' file suitable for static linking
  41340. - # Check to see that this really is a libtool object.
  41341. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  41342. - pic_object=
  41343. - non_pic_object=
  41344. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  41345. +from the given SOURCEFILE.
  41346. - # Read the .lo file
  41347. - # If there is no directory component, then add one.
  41348. - case $arg in
  41349. - */* | *\\*) . $arg ;;
  41350. - *) . ./$arg ;;
  41351. - esac
  41352. +The output file name is determined by removing the directory component from
  41353. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  41354. +library object suffix, \`.lo'."
  41355. + ;;
  41356. - if test -z "$pic_object" || \
  41357. - test -z "$non_pic_object" ||
  41358. - test "$pic_object" = none && \
  41359. - test "$non_pic_object" = none; then
  41360. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  41361. - exit $EXIT_FAILURE
  41362. - fi
  41363. + execute)
  41364. + $ECHO \
  41365. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  41366. - # Extract subdirectory from the argument.
  41367. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  41368. - if test "X$xdir" = "X$arg"; then
  41369. - xdir=
  41370. - else
  41371. - xdir="$xdir/"
  41372. - fi
  41373. +Automatically set library path, then run a program.
  41374. - if test "$pic_object" != none; then
  41375. - # Prepend the subdirectory the object is found in.
  41376. - pic_object="$xdir$pic_object"
  41377. +This mode accepts the following additional options:
  41378. - if test "$prev" = dlfiles; then
  41379. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  41380. - dlfiles="$dlfiles $pic_object"
  41381. - prev=
  41382. - continue
  41383. - else
  41384. - # If libtool objects are unsupported, then we need to preload.
  41385. - prev=dlprefiles
  41386. - fi
  41387. - fi
  41388. + -dlopen FILE add the directory containing FILE to the library path
  41389. - # CHECK ME: I think I busted this. -Ossama
  41390. - if test "$prev" = dlprefiles; then
  41391. - # Preload the old-style object.
  41392. - dlprefiles="$dlprefiles $pic_object"
  41393. - prev=
  41394. - fi
  41395. +This mode sets the library path environment variable according to \`-dlopen'
  41396. +flags.
  41397. - # A PIC object.
  41398. - libobjs="$libobjs $pic_object"
  41399. - arg="$pic_object"
  41400. - fi
  41401. +If any of the ARGS are libtool executable wrappers, then they are translated
  41402. +into their corresponding uninstalled binary, and any of their required library
  41403. +directories are added to the library path.
  41404. - # Non-PIC object.
  41405. - if test "$non_pic_object" != none; then
  41406. - # Prepend the subdirectory the object is found in.
  41407. - non_pic_object="$xdir$non_pic_object"
  41408. +Then, COMMAND is executed, with ARGS as arguments."
  41409. + ;;
  41410. - # A standard non-PIC object
  41411. - non_pic_objects="$non_pic_objects $non_pic_object"
  41412. - if test -z "$pic_object" || test "$pic_object" = none ; then
  41413. - arg="$non_pic_object"
  41414. - fi
  41415. - else
  41416. - # If the PIC object exists, use it instead.
  41417. - # $xdir was prepended to $pic_object above.
  41418. - non_pic_object="$pic_object"
  41419. - non_pic_objects="$non_pic_objects $non_pic_object"
  41420. - fi
  41421. - else
  41422. - # Only an error if not doing a dry-run.
  41423. - if test -z "$run"; then
  41424. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  41425. - exit $EXIT_FAILURE
  41426. - else
  41427. - # Dry-run case.
  41428. + finish)
  41429. + $ECHO \
  41430. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  41431. - # Extract subdirectory from the argument.
  41432. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  41433. - if test "X$xdir" = "X$arg"; then
  41434. - xdir=
  41435. - else
  41436. - xdir="$xdir/"
  41437. - fi
  41438. +Complete the installation of libtool libraries.
  41439. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  41440. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  41441. - libobjs="$libobjs $pic_object"
  41442. - non_pic_objects="$non_pic_objects $non_pic_object"
  41443. - fi
  41444. - fi
  41445. - done
  41446. - else
  41447. - $echo "$modename: link input file \`$save_arg' does not exist"
  41448. - exit $EXIT_FAILURE
  41449. - fi
  41450. - arg=$save_arg
  41451. - prev=
  41452. - continue
  41453. - ;;
  41454. - rpath | xrpath)
  41455. - # We need an absolute path.
  41456. - case $arg in
  41457. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  41458. - *)
  41459. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  41460. - exit $EXIT_FAILURE
  41461. - ;;
  41462. - esac
  41463. - if test "$prev" = rpath; then
  41464. - case "$rpath " in
  41465. - *" $arg "*) ;;
  41466. - *) rpath="$rpath $arg" ;;
  41467. - esac
  41468. - else
  41469. - case "$xrpath " in
  41470. - *" $arg "*) ;;
  41471. - *) xrpath="$xrpath $arg" ;;
  41472. - esac
  41473. - fi
  41474. - prev=
  41475. - continue
  41476. - ;;
  41477. - xcompiler)
  41478. - compiler_flags="$compiler_flags $qarg"
  41479. - prev=
  41480. - compile_command="$compile_command $qarg"
  41481. - finalize_command="$finalize_command $qarg"
  41482. - continue
  41483. - ;;
  41484. - xlinker)
  41485. - linker_flags="$linker_flags $qarg"
  41486. - compiler_flags="$compiler_flags $wl$qarg"
  41487. - prev=
  41488. - compile_command="$compile_command $wl$qarg"
  41489. - finalize_command="$finalize_command $wl$qarg"
  41490. - continue
  41491. - ;;
  41492. - xcclinker)
  41493. - linker_flags="$linker_flags $qarg"
  41494. - compiler_flags="$compiler_flags $qarg"
  41495. - prev=
  41496. - compile_command="$compile_command $qarg"
  41497. - finalize_command="$finalize_command $qarg"
  41498. - continue
  41499. - ;;
  41500. - shrext)
  41501. - shrext_cmds="$arg"
  41502. - prev=
  41503. - continue
  41504. - ;;
  41505. - darwin_framework|darwin_framework_skip)
  41506. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  41507. - compile_command="$compile_command $arg"
  41508. - finalize_command="$finalize_command $arg"
  41509. - prev=
  41510. - continue
  41511. - ;;
  41512. - *)
  41513. - eval "$prev=\"\$arg\""
  41514. - prev=
  41515. - continue
  41516. - ;;
  41517. - esac
  41518. - fi # test -n "$prev"
  41519. +Each LIBDIR is a directory that contains libtool libraries.
  41520. - prevarg="$arg"
  41521. +The commands that this mode executes may require superuser privileges. Use
  41522. +the \`--dry-run' option if you just want to see what would be executed."
  41523. + ;;
  41524. - case $arg in
  41525. - -all-static)
  41526. - if test -n "$link_static_flag"; then
  41527. - compile_command="$compile_command $link_static_flag"
  41528. - finalize_command="$finalize_command $link_static_flag"
  41529. - fi
  41530. - continue
  41531. - ;;
  41532. + install)
  41533. + $ECHO \
  41534. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  41535. - -allow-undefined)
  41536. - # FIXME: remove this flag sometime in the future.
  41537. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  41538. - continue
  41539. - ;;
  41540. +Install executables or libraries.
  41541. - -avoid-version)
  41542. - avoid_version=yes
  41543. - continue
  41544. - ;;
  41545. +INSTALL-COMMAND is the installation command. The first component should be
  41546. +either the \`install' or \`cp' program.
  41547. - -dlopen)
  41548. - prev=dlfiles
  41549. - continue
  41550. - ;;
  41551. +The following components of INSTALL-COMMAND are treated specially:
  41552. - -dlpreopen)
  41553. - prev=dlprefiles
  41554. - continue
  41555. - ;;
  41556. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  41557. - -export-dynamic)
  41558. - export_dynamic=yes
  41559. - continue
  41560. - ;;
  41561. +The rest of the components are interpreted as arguments to that command (only
  41562. +BSD-compatible install options are recognized)."
  41563. + ;;
  41564. - -export-symbols | -export-symbols-regex)
  41565. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  41566. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  41567. - exit $EXIT_FAILURE
  41568. - fi
  41569. - if test "X$arg" = "X-export-symbols"; then
  41570. - prev=expsyms
  41571. - else
  41572. - prev=expsyms_regex
  41573. - fi
  41574. - continue
  41575. - ;;
  41576. + link)
  41577. + $ECHO \
  41578. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  41579. - -framework|-arch|-isysroot)
  41580. - case " $CC " in
  41581. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  41582. - prev=darwin_framework_skip ;;
  41583. - *) compiler_flags="$compiler_flags $arg"
  41584. - prev=darwin_framework ;;
  41585. - esac
  41586. - compile_command="$compile_command $arg"
  41587. - finalize_command="$finalize_command $arg"
  41588. - continue
  41589. - ;;
  41590. +Link object files or libraries together to form another library, or to
  41591. +create an executable program.
  41592. - -inst-prefix-dir)
  41593. - prev=inst_prefix
  41594. - continue
  41595. - ;;
  41596. +LINK-COMMAND is a command using the C compiler that you would use to create
  41597. +a program from several object files.
  41598. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  41599. - # so, if we see these flags be careful not to treat them like -L
  41600. - -L[A-Z][A-Z]*:*)
  41601. - case $with_gcc/$host in
  41602. - no/*-*-irix* | /*-*-irix*)
  41603. - compile_command="$compile_command $arg"
  41604. - finalize_command="$finalize_command $arg"
  41605. - ;;
  41606. - esac
  41607. - continue
  41608. - ;;
  41609. +The following components of LINK-COMMAND are treated specially:
  41610. - -L*)
  41611. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  41612. - # We need an absolute path.
  41613. - case $dir in
  41614. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  41615. - *)
  41616. - absdir=`cd "$dir" && pwd`
  41617. - if test -z "$absdir"; then
  41618. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  41619. - absdir="$dir"
  41620. - notinst_path="$notinst_path $dir"
  41621. - fi
  41622. - dir="$absdir"
  41623. - ;;
  41624. - esac
  41625. - case "$deplibs " in
  41626. - *" -L$dir "*) ;;
  41627. - *)
  41628. - deplibs="$deplibs -L$dir"
  41629. - lib_search_path="$lib_search_path $dir"
  41630. - ;;
  41631. - esac
  41632. - case $host in
  41633. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  41634. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  41635. - case :$dllsearchpath: in
  41636. - *":$dir:"*) ;;
  41637. - *) dllsearchpath="$dllsearchpath:$dir";;
  41638. - esac
  41639. - case :$dllsearchpath: in
  41640. - *":$testbindir:"*) ;;
  41641. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  41642. - esac
  41643. - ;;
  41644. - esac
  41645. - continue
  41646. - ;;
  41647. + -all-static do not do any dynamic linking at all
  41648. + -avoid-version do not add a version suffix if possible
  41649. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  41650. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  41651. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  41652. + -export-symbols SYMFILE
  41653. + try to export only the symbols listed in SYMFILE
  41654. + -export-symbols-regex REGEX
  41655. + try to export only the symbols matching REGEX
  41656. + -LLIBDIR search LIBDIR for required installed libraries
  41657. + -lNAME OUTPUT-FILE requires the installed library libNAME
  41658. + -module build a library that can dlopened
  41659. + -no-fast-install disable the fast-install mode
  41660. + -no-install link a not-installable executable
  41661. + -no-undefined declare that a library does not refer to external symbols
  41662. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  41663. + -objectlist FILE Use a list of object files found in FILE to specify objects
  41664. + -precious-files-regex REGEX
  41665. + don't remove output files matching REGEX
  41666. + -release RELEASE specify package release information
  41667. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  41668. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  41669. + -shared only do dynamic linking of libtool libraries
  41670. + -shrext SUFFIX override the standard shared library file extension
  41671. + -static do not do any dynamic linking of uninstalled libtool libraries
  41672. + -static-libtool-libs
  41673. + do not do any dynamic linking of libtool libraries
  41674. + -version-info CURRENT[:REVISION[:AGE]]
  41675. + specify library version info [each variable defaults to 0]
  41676. + -weak LIBNAME declare that the target provides the LIBNAME interface
  41677. - -l*)
  41678. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  41679. - case $host in
  41680. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  41681. - # These systems don't actually have a C or math library (as such)
  41682. - continue
  41683. - ;;
  41684. - *-*-os2*)
  41685. - # These systems don't actually have a C library (as such)
  41686. - test "X$arg" = "X-lc" && continue
  41687. - ;;
  41688. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  41689. - # Do not include libc due to us having libc/libc_r.
  41690. - test "X$arg" = "X-lc" && continue
  41691. - ;;
  41692. - *-*-rhapsody* | *-*-darwin1.[012])
  41693. - # Rhapsody C and math libraries are in the System framework
  41694. - deplibs="$deplibs -framework System"
  41695. - continue
  41696. - ;;
  41697. - *-*-sco3.2v5* | *-*-sco5v6*)
  41698. - # Causes problems with __ctype
  41699. - test "X$arg" = "X-lc" && continue
  41700. - ;;
  41701. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  41702. - # Compiler inserts libc in the correct place for threads to work
  41703. - test "X$arg" = "X-lc" && continue
  41704. - ;;
  41705. - esac
  41706. - elif test "X$arg" = "X-lc_r"; then
  41707. - case $host in
  41708. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  41709. - # Do not include libc_r directly, use -pthread flag.
  41710. - continue
  41711. - ;;
  41712. - esac
  41713. - fi
  41714. - deplibs="$deplibs $arg"
  41715. - continue
  41716. - ;;
  41717. +All other options (arguments beginning with \`-') are ignored.
  41718. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  41719. - # classes, name mangling, and exception handling.
  41720. - -model)
  41721. - compile_command="$compile_command $arg"
  41722. - compiler_flags="$compiler_flags $arg"
  41723. - finalize_command="$finalize_command $arg"
  41724. - prev=xcompiler
  41725. - continue
  41726. - ;;
  41727. +Every other argument is treated as a filename. Files ending in \`.la' are
  41728. +treated as uninstalled libtool libraries, other files are standard or library
  41729. +object files.
  41730. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  41731. - compiler_flags="$compiler_flags $arg"
  41732. - compile_command="$compile_command $arg"
  41733. - finalize_command="$finalize_command $arg"
  41734. - continue
  41735. - ;;
  41736. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  41737. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  41738. +required, except when creating a convenience library.
  41739. - -multi_module)
  41740. - single_module="${wl}-multi_module"
  41741. - continue
  41742. - ;;
  41743. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  41744. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  41745. - -module)
  41746. - module=yes
  41747. - continue
  41748. - ;;
  41749. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  41750. +is created, otherwise an executable program is created."
  41751. + ;;
  41752. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  41753. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  41754. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  41755. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  41756. - # -q* pass through compiler args for the IBM compiler
  41757. - # -m* pass through architecture-specific compiler args for GCC
  41758. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  41759. - # compiler args for GCC
  41760. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  41761. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  41762. - # @file GCC response files
  41763. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  41764. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  41765. + uninstall)
  41766. + $ECHO \
  41767. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  41768. - # Unknown arguments in both finalize_command and compile_command need
  41769. - # to be aesthetically quoted because they are evaled later.
  41770. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  41771. - case $arg in
  41772. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41773. - arg="\"$arg\""
  41774. - ;;
  41775. - esac
  41776. - compile_command="$compile_command $arg"
  41777. - finalize_command="$finalize_command $arg"
  41778. - compiler_flags="$compiler_flags $arg"
  41779. - continue
  41780. +Remove libraries from an installation directory.
  41781. +
  41782. +RM is the name of the program to use to delete files associated with each FILE
  41783. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  41784. +to RM.
  41785. +
  41786. +If FILE is a libtool library, all the files associated with it are deleted.
  41787. +Otherwise, only FILE itself is deleted using RM."
  41788. ;;
  41789. - -shrext)
  41790. - prev=shrext
  41791. - continue
  41792. - ;;
  41793. + *)
  41794. + func_fatal_help "invalid operation mode \`$mode'"
  41795. + ;;
  41796. + esac
  41797. - -no-fast-install)
  41798. - fast_install=no
  41799. - continue
  41800. - ;;
  41801. + $ECHO
  41802. + $ECHO "Try \`$progname --help' for more information about other modes."
  41803. - -no-install)
  41804. - case $host in
  41805. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  41806. - # The PATH hackery in wrapper scripts is required on Windows
  41807. - # and Darwin in order for the loader to find any dlls it needs.
  41808. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  41809. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  41810. - fast_install=no
  41811. - ;;
  41812. - *) no_install=yes ;;
  41813. - esac
  41814. - continue
  41815. - ;;
  41816. + exit $?
  41817. +}
  41818. - -no-undefined)
  41819. - allow_undefined=no
  41820. - continue
  41821. - ;;
  41822. + # Now that we've collected a possible --mode arg, show help if necessary
  41823. + $opt_help && func_mode_help
  41824. - -objectlist)
  41825. - prev=objectlist
  41826. - continue
  41827. - ;;
  41828. - -o) prev=output ;;
  41829. +# func_mode_execute arg...
  41830. +func_mode_execute ()
  41831. +{
  41832. + $opt_debug
  41833. + # The first argument is the command name.
  41834. + cmd="$nonopt"
  41835. + test -z "$cmd" && \
  41836. + func_fatal_help "you must specify a COMMAND"
  41837. - -precious-files-regex)
  41838. - prev=precious_regex
  41839. - continue
  41840. - ;;
  41841. + # Handle -dlopen flags immediately.
  41842. + for file in $execute_dlfiles; do
  41843. + test -f "$file" \
  41844. + || func_fatal_help "\`$file' is not a file"
  41845. - -release)
  41846. - prev=release
  41847. - continue
  41848. - ;;
  41849. + dir=
  41850. + case $file in
  41851. + *.la)
  41852. + # Check to see that this really is a libtool archive.
  41853. + func_lalib_unsafe_p "$file" \
  41854. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  41855. - -rpath)
  41856. - prev=rpath
  41857. - continue
  41858. - ;;
  41859. + # Read the libtool library.
  41860. + dlname=
  41861. + library_names=
  41862. + func_source "$file"
  41863. - -R)
  41864. - prev=xrpath
  41865. - continue
  41866. - ;;
  41867. + # Skip this library if it cannot be dlopened.
  41868. + if test -z "$dlname"; then
  41869. + # Warn if it was a shared library.
  41870. + test -n "$library_names" && \
  41871. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  41872. + continue
  41873. + fi
  41874. - -R*)
  41875. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  41876. - # We need an absolute path.
  41877. - case $dir in
  41878. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  41879. - *)
  41880. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  41881. - exit $EXIT_FAILURE
  41882. - ;;
  41883. - esac
  41884. - case "$xrpath " in
  41885. - *" $dir "*) ;;
  41886. - *) xrpath="$xrpath $dir" ;;
  41887. - esac
  41888. - continue
  41889. - ;;
  41890. + func_dirname "$file" "" "."
  41891. + dir="$func_dirname_result"
  41892. - -static | -static-libtool-libs)
  41893. - # The effects of -static are defined in a previous loop.
  41894. - # We used to do the same as -all-static on platforms that
  41895. - # didn't have a PIC flag, but the assumption that the effects
  41896. - # would be equivalent was wrong. It would break on at least
  41897. - # Digital Unix and AIX.
  41898. - continue
  41899. + if test -f "$dir/$objdir/$dlname"; then
  41900. + dir="$dir/$objdir"
  41901. + else
  41902. + if test ! -f "$dir/$dlname"; then
  41903. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  41904. + fi
  41905. + fi
  41906. ;;
  41907. - -thread-safe)
  41908. - thread_safe=yes
  41909. - continue
  41910. + *.lo)
  41911. + # Just add the directory containing the .lo file.
  41912. + func_dirname "$file" "" "."
  41913. + dir="$func_dirname_result"
  41914. ;;
  41915. - -version-info)
  41916. - prev=vinfo
  41917. - continue
  41918. - ;;
  41919. - -version-number)
  41920. - prev=vinfo
  41921. - vinfo_number=yes
  41922. + *)
  41923. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  41924. continue
  41925. ;;
  41926. + esac
  41927. - -Wc,*)
  41928. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  41929. - arg=
  41930. - save_ifs="$IFS"; IFS=','
  41931. - for flag in $args; do
  41932. - IFS="$save_ifs"
  41933. - case $flag in
  41934. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41935. - flag="\"$flag\""
  41936. - ;;
  41937. - esac
  41938. - arg="$arg $wl$flag"
  41939. - compiler_flags="$compiler_flags $flag"
  41940. - done
  41941. - IFS="$save_ifs"
  41942. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  41943. - ;;
  41944. + # Get the absolute pathname.
  41945. + absdir=`cd "$dir" && pwd`
  41946. + test -n "$absdir" && dir="$absdir"
  41947. - -Wl,*)
  41948. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  41949. - arg=
  41950. - save_ifs="$IFS"; IFS=','
  41951. - for flag in $args; do
  41952. - IFS="$save_ifs"
  41953. - case $flag in
  41954. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41955. - flag="\"$flag\""
  41956. - ;;
  41957. - esac
  41958. - arg="$arg $wl$flag"
  41959. - compiler_flags="$compiler_flags $wl$flag"
  41960. - linker_flags="$linker_flags $flag"
  41961. - done
  41962. - IFS="$save_ifs"
  41963. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  41964. - ;;
  41965. + # Now add the directory to shlibpath_var.
  41966. + if eval "test -z \"\$$shlibpath_var\""; then
  41967. + eval "$shlibpath_var=\"\$dir\""
  41968. + else
  41969. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  41970. + fi
  41971. + done
  41972. - -Xcompiler)
  41973. - prev=xcompiler
  41974. - continue
  41975. - ;;
  41976. + # This variable tells wrapper scripts just to set shlibpath_var
  41977. + # rather than running their programs.
  41978. + libtool_execute_magic="$magic"
  41979. - -Xlinker)
  41980. - prev=xlinker
  41981. - continue
  41982. + # Check if any of the arguments is a wrapper script.
  41983. + args=
  41984. + for file
  41985. + do
  41986. + case $file in
  41987. + -*) ;;
  41988. + *)
  41989. + # Do a test to see if this is really a libtool program.
  41990. + if func_ltwrapper_script_p "$file"; then
  41991. + func_source "$file"
  41992. + # Transform arg to wrapped name.
  41993. + file="$progdir/$program"
  41994. + elif func_ltwrapper_executable_p "$file"; then
  41995. + func_ltwrapper_scriptname "$file"
  41996. + func_source "$func_ltwrapper_scriptname_result"
  41997. + # Transform arg to wrapped name.
  41998. + file="$progdir/$program"
  41999. + fi
  42000. ;;
  42001. + esac
  42002. + # Quote arguments (to preserve shell metacharacters).
  42003. + func_quote_for_eval "$file"
  42004. + args="$args $func_quote_for_eval_result"
  42005. + done
  42006. - -XCClinker)
  42007. - prev=xcclinker
  42008. - continue
  42009. - ;;
  42010. + if test "X$opt_dry_run" = Xfalse; then
  42011. + if test -n "$shlibpath_var"; then
  42012. + # Export the shlibpath_var.
  42013. + eval "export $shlibpath_var"
  42014. + fi
  42015. - # Some other compiler flag.
  42016. - -* | +*)
  42017. - # Unknown arguments in both finalize_command and compile_command need
  42018. - # to be aesthetically quoted because they are evaled later.
  42019. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  42020. - case $arg in
  42021. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42022. - arg="\"$arg\""
  42023. - ;;
  42024. - esac
  42025. - ;;
  42026. + # Restore saved environment variables
  42027. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  42028. + do
  42029. + eval "if test \"\${save_$lt_var+set}\" = set; then
  42030. + $lt_var=\$save_$lt_var; export $lt_var
  42031. + else
  42032. + $lt_unset $lt_var
  42033. + fi"
  42034. + done
  42035. - *.$objext)
  42036. - # A standard object.
  42037. - objs="$objs $arg"
  42038. - ;;
  42039. + # Now prepare to actually exec the command.
  42040. + exec_cmd="\$cmd$args"
  42041. + else
  42042. + # Display what would be done.
  42043. + if test -n "$shlibpath_var"; then
  42044. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  42045. + $ECHO "export $shlibpath_var"
  42046. + fi
  42047. + $ECHO "$cmd$args"
  42048. + exit $EXIT_SUCCESS
  42049. + fi
  42050. +}
  42051. - *.lo)
  42052. - # A libtool-controlled object.
  42053. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  42054. - # Check to see that this really is a libtool object.
  42055. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  42056. - pic_object=
  42057. - non_pic_object=
  42058. - # Read the .lo file
  42059. - # If there is no directory component, then add one.
  42060. - case $arg in
  42061. - */* | *\\*) . $arg ;;
  42062. - *) . ./$arg ;;
  42063. - esac
  42064. +# func_mode_finish arg...
  42065. +func_mode_finish ()
  42066. +{
  42067. + $opt_debug
  42068. + libdirs="$nonopt"
  42069. + admincmds=
  42070. - if test -z "$pic_object" || \
  42071. - test -z "$non_pic_object" ||
  42072. - test "$pic_object" = none && \
  42073. - test "$non_pic_object" = none; then
  42074. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  42075. - exit $EXIT_FAILURE
  42076. - fi
  42077. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  42078. + for dir
  42079. + do
  42080. + libdirs="$libdirs $dir"
  42081. + done
  42082. - # Extract subdirectory from the argument.
  42083. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42084. - if test "X$xdir" = "X$arg"; then
  42085. - xdir=
  42086. - else
  42087. - xdir="$xdir/"
  42088. - fi
  42089. + for libdir in $libdirs; do
  42090. + if test -n "$finish_cmds"; then
  42091. + # Do each command in the finish commands.
  42092. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  42093. +'"$cmd"'"'
  42094. + fi
  42095. + if test -n "$finish_eval"; then
  42096. + # Do the single finish_eval.
  42097. + eval cmds=\"$finish_eval\"
  42098. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  42099. + $cmds"
  42100. + fi
  42101. + done
  42102. + fi
  42103. - if test "$pic_object" != none; then
  42104. - # Prepend the subdirectory the object is found in.
  42105. - pic_object="$xdir$pic_object"
  42106. + # Exit here if they wanted silent mode.
  42107. + $opt_silent && exit $EXIT_SUCCESS
  42108. - if test "$prev" = dlfiles; then
  42109. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  42110. - dlfiles="$dlfiles $pic_object"
  42111. - prev=
  42112. - continue
  42113. - else
  42114. - # If libtool objects are unsupported, then we need to preload.
  42115. - prev=dlprefiles
  42116. - fi
  42117. - fi
  42118. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  42119. + $ECHO "Libraries have been installed in:"
  42120. + for libdir in $libdirs; do
  42121. + $ECHO " $libdir"
  42122. + done
  42123. + $ECHO
  42124. + $ECHO "If you ever happen to want to link against installed libraries"
  42125. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  42126. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  42127. + $ECHO "flag during linking and do at least one of the following:"
  42128. + if test -n "$shlibpath_var"; then
  42129. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  42130. + $ECHO " during execution"
  42131. + fi
  42132. + if test -n "$runpath_var"; then
  42133. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  42134. + $ECHO " during linking"
  42135. + fi
  42136. + if test -n "$hardcode_libdir_flag_spec"; then
  42137. + libdir=LIBDIR
  42138. + eval flag=\"$hardcode_libdir_flag_spec\"
  42139. - # CHECK ME: I think I busted this. -Ossama
  42140. - if test "$prev" = dlprefiles; then
  42141. - # Preload the old-style object.
  42142. - dlprefiles="$dlprefiles $pic_object"
  42143. - prev=
  42144. - fi
  42145. + $ECHO " - use the \`$flag' linker flag"
  42146. + fi
  42147. + if test -n "$admincmds"; then
  42148. + $ECHO " - have your system administrator run these commands:$admincmds"
  42149. + fi
  42150. + if test -f /etc/ld.so.conf; then
  42151. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  42152. + fi
  42153. + $ECHO
  42154. - # A PIC object.
  42155. - libobjs="$libobjs $pic_object"
  42156. - arg="$pic_object"
  42157. - fi
  42158. + $ECHO "See any operating system documentation about shared libraries for"
  42159. + case $host in
  42160. + solaris2.[6789]|solaris2.1[0-9])
  42161. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  42162. + $ECHO "pages."
  42163. + ;;
  42164. + *)
  42165. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  42166. + ;;
  42167. + esac
  42168. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  42169. + exit $EXIT_SUCCESS
  42170. +}
  42171. - # Non-PIC object.
  42172. - if test "$non_pic_object" != none; then
  42173. - # Prepend the subdirectory the object is found in.
  42174. - non_pic_object="$xdir$non_pic_object"
  42175. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  42176. - # A standard non-PIC object
  42177. - non_pic_objects="$non_pic_objects $non_pic_object"
  42178. - if test -z "$pic_object" || test "$pic_object" = none ; then
  42179. - arg="$non_pic_object"
  42180. - fi
  42181. - else
  42182. - # If the PIC object exists, use it instead.
  42183. - # $xdir was prepended to $pic_object above.
  42184. - non_pic_object="$pic_object"
  42185. - non_pic_objects="$non_pic_objects $non_pic_object"
  42186. - fi
  42187. - else
  42188. - # Only an error if not doing a dry-run.
  42189. - if test -z "$run"; then
  42190. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  42191. - exit $EXIT_FAILURE
  42192. - else
  42193. - # Dry-run case.
  42194. - # Extract subdirectory from the argument.
  42195. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42196. - if test "X$xdir" = "X$arg"; then
  42197. - xdir=
  42198. - else
  42199. - xdir="$xdir/"
  42200. - fi
  42201. +# func_mode_install arg...
  42202. +func_mode_install ()
  42203. +{
  42204. + $opt_debug
  42205. + # There may be an optional sh(1) argument at the beginning of
  42206. + # install_prog (especially on Windows NT).
  42207. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  42208. + # Allow the use of GNU shtool's install command.
  42209. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  42210. + # Aesthetically quote it.
  42211. + func_quote_for_eval "$nonopt"
  42212. + install_prog="$func_quote_for_eval_result "
  42213. + arg=$1
  42214. + shift
  42215. + else
  42216. + install_prog=
  42217. + arg=$nonopt
  42218. + fi
  42219. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  42220. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  42221. - libobjs="$libobjs $pic_object"
  42222. - non_pic_objects="$non_pic_objects $non_pic_object"
  42223. - fi
  42224. - fi
  42225. - ;;
  42226. + # The real first argument should be the name of the installation program.
  42227. + # Aesthetically quote it.
  42228. + func_quote_for_eval "$arg"
  42229. + install_prog="$install_prog$func_quote_for_eval_result"
  42230. - *.$libext)
  42231. - # An archive.
  42232. - deplibs="$deplibs $arg"
  42233. - old_deplibs="$old_deplibs $arg"
  42234. + # We need to accept at least all the BSD install flags.
  42235. + dest=
  42236. + files=
  42237. + opts=
  42238. + prev=
  42239. + install_type=
  42240. + isdir=no
  42241. + stripme=
  42242. + for arg
  42243. + do
  42244. + if test -n "$dest"; then
  42245. + files="$files $dest"
  42246. + dest=$arg
  42247. continue
  42248. - ;;
  42249. -
  42250. - *.la)
  42251. - # A libtool-controlled library.
  42252. + fi
  42253. - if test "$prev" = dlfiles; then
  42254. - # This library was specified with -dlopen.
  42255. - dlfiles="$dlfiles $arg"
  42256. - prev=
  42257. - elif test "$prev" = dlprefiles; then
  42258. - # The library was specified with -dlpreopen.
  42259. - dlprefiles="$dlprefiles $arg"
  42260. + case $arg in
  42261. + -d) isdir=yes ;;
  42262. + -f)
  42263. + case " $install_prog " in
  42264. + *[\\\ /]cp\ *) ;;
  42265. + *) prev=$arg ;;
  42266. + esac
  42267. + ;;
  42268. + -g | -m | -o)
  42269. + prev=$arg
  42270. + ;;
  42271. + -s)
  42272. + stripme=" -s"
  42273. + continue
  42274. + ;;
  42275. + -*)
  42276. + ;;
  42277. + *)
  42278. + # If the previous option needed an argument, then skip it.
  42279. + if test -n "$prev"; then
  42280. prev=
  42281. else
  42282. - deplibs="$deplibs $arg"
  42283. + dest=$arg
  42284. + continue
  42285. fi
  42286. - continue
  42287. ;;
  42288. + esac
  42289. - # Some other compiler argument.
  42290. - *)
  42291. - # Unknown arguments in both finalize_command and compile_command need
  42292. - # to be aesthetically quoted because they are evaled later.
  42293. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  42294. - case $arg in
  42295. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42296. - arg="\"$arg\""
  42297. - ;;
  42298. - esac
  42299. - ;;
  42300. - esac # arg
  42301. + # Aesthetically quote the argument.
  42302. + func_quote_for_eval "$arg"
  42303. + install_prog="$install_prog $func_quote_for_eval_result"
  42304. + done
  42305. - # Now actually substitute the argument into the commands.
  42306. - if test -n "$arg"; then
  42307. - compile_command="$compile_command $arg"
  42308. - finalize_command="$finalize_command $arg"
  42309. - fi
  42310. - done # argument parsing loop
  42311. + test -z "$install_prog" && \
  42312. + func_fatal_help "you must specify an install program"
  42313. - if test -n "$prev"; then
  42314. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  42315. - $echo "$help" 1>&2
  42316. - exit $EXIT_FAILURE
  42317. - fi
  42318. + test -n "$prev" && \
  42319. + func_fatal_help "the \`$prev' option requires an argument"
  42320. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  42321. - eval arg=\"$export_dynamic_flag_spec\"
  42322. - compile_command="$compile_command $arg"
  42323. - finalize_command="$finalize_command $arg"
  42324. + if test -z "$files"; then
  42325. + if test -z "$dest"; then
  42326. + func_fatal_help "no file or destination specified"
  42327. + else
  42328. + func_fatal_help "you must specify a destination"
  42329. + fi
  42330. fi
  42331. - oldlibs=
  42332. - # calculate the name of the file, without its directory
  42333. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  42334. - libobjs_save="$libobjs"
  42335. + # Strip any trailing slash from the destination.
  42336. + func_stripname '' '/' "$dest"
  42337. + dest=$func_stripname_result
  42338. - if test -n "$shlibpath_var"; then
  42339. - # get the directories listed in $shlibpath_var
  42340. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  42341. + # Check to see that the destination is a directory.
  42342. + test -d "$dest" && isdir=yes
  42343. + if test "$isdir" = yes; then
  42344. + destdir="$dest"
  42345. + destname=
  42346. else
  42347. - shlib_search_path=
  42348. - fi
  42349. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  42350. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  42351. + func_dirname_and_basename "$dest" "" "."
  42352. + destdir="$func_dirname_result"
  42353. + destname="$func_basename_result"
  42354. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  42355. - if test "X$output_objdir" = "X$output"; then
  42356. - output_objdir="$objdir"
  42357. - else
  42358. - output_objdir="$output_objdir/$objdir"
  42359. - fi
  42360. - # Create the object directory.
  42361. - if test ! -d "$output_objdir"; then
  42362. - $show "$mkdir $output_objdir"
  42363. - $run $mkdir $output_objdir
  42364. - exit_status=$?
  42365. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  42366. - exit $exit_status
  42367. - fi
  42368. + # Not a directory, so check to see that there is only one file specified.
  42369. + set dummy $files; shift
  42370. + test "$#" -gt 1 && \
  42371. + func_fatal_help "\`$dest' is not a directory"
  42372. fi
  42373. -
  42374. - # Determine the type of output
  42375. - case $output in
  42376. - "")
  42377. - $echo "$modename: you must specify an output file" 1>&2
  42378. - $echo "$help" 1>&2
  42379. - exit $EXIT_FAILURE
  42380. - ;;
  42381. - *.$libext) linkmode=oldlib ;;
  42382. - *.lo | *.$objext) linkmode=obj ;;
  42383. - *.la) linkmode=lib ;;
  42384. - *) linkmode=prog ;; # Anything else should be a program.
  42385. - esac
  42386. -
  42387. - case $host in
  42388. - *cygwin* | *mingw* | *pw32*)
  42389. - # don't eliminate duplications in $postdeps and $predeps
  42390. - duplicate_compiler_generated_deps=yes
  42391. - ;;
  42392. + case $destdir in
  42393. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  42394. *)
  42395. - duplicate_compiler_generated_deps=$duplicate_deps
  42396. + for file in $files; do
  42397. + case $file in
  42398. + *.lo) ;;
  42399. + *)
  42400. + func_fatal_help "\`$destdir' must be an absolute directory name"
  42401. + ;;
  42402. + esac
  42403. + done
  42404. ;;
  42405. esac
  42406. - specialdeplibs=
  42407. - libs=
  42408. - # Find all interdependent deplibs by searching for libraries
  42409. - # that are linked more than once (e.g. -la -lb -la)
  42410. - for deplib in $deplibs; do
  42411. - if test "X$duplicate_deps" = "Xyes" ; then
  42412. - case "$libs " in
  42413. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  42414. - esac
  42415. - fi
  42416. - libs="$libs $deplib"
  42417. - done
  42418. + # This variable tells wrapper scripts just to set variables rather
  42419. + # than running their programs.
  42420. + libtool_install_magic="$magic"
  42421. - if test "$linkmode" = lib; then
  42422. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  42423. + staticlibs=
  42424. + future_libdirs=
  42425. + current_libdirs=
  42426. + for file in $files; do
  42427. - # Compute libraries that are listed more than once in $predeps
  42428. - # $postdeps and mark them as special (i.e., whose duplicates are
  42429. - # not to be eliminated).
  42430. - pre_post_deps=
  42431. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  42432. - for pre_post_dep in $predeps $postdeps; do
  42433. - case "$pre_post_deps " in
  42434. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  42435. + # Do each installation.
  42436. + case $file in
  42437. + *.$libext)
  42438. + # Do the static libraries later.
  42439. + staticlibs="$staticlibs $file"
  42440. + ;;
  42441. +
  42442. + *.la)
  42443. + # Check to see that this really is a libtool archive.
  42444. + func_lalib_unsafe_p "$file" \
  42445. + || func_fatal_help "\`$file' is not a valid libtool archive"
  42446. +
  42447. + library_names=
  42448. + old_library=
  42449. + relink_command=
  42450. + func_source "$file"
  42451. +
  42452. + # Add the libdir to current_libdirs if it is the destination.
  42453. + if test "X$destdir" = "X$libdir"; then
  42454. + case "$current_libdirs " in
  42455. + *" $libdir "*) ;;
  42456. + *) current_libdirs="$current_libdirs $libdir" ;;
  42457. esac
  42458. - pre_post_deps="$pre_post_deps $pre_post_dep"
  42459. - done
  42460. - fi
  42461. - pre_post_deps=
  42462. - fi
  42463. + else
  42464. + # Note the libdir as a future libdir.
  42465. + case "$future_libdirs " in
  42466. + *" $libdir "*) ;;
  42467. + *) future_libdirs="$future_libdirs $libdir" ;;
  42468. + esac
  42469. + fi
  42470. - deplibs=
  42471. - newdependency_libs=
  42472. - newlib_search_path=
  42473. - need_relink=no # whether we're linking any uninstalled libtool libraries
  42474. - notinst_deplibs= # not-installed libtool libraries
  42475. - case $linkmode in
  42476. - lib)
  42477. - passes="conv link"
  42478. - for file in $dlfiles $dlprefiles; do
  42479. - case $file in
  42480. - *.la) ;;
  42481. - *)
  42482. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  42483. - exit $EXIT_FAILURE
  42484. + func_dirname "$file" "/" ""
  42485. + dir="$func_dirname_result"
  42486. + dir="$dir$objdir"
  42487. +
  42488. + if test -n "$relink_command"; then
  42489. + # Determine the prefix the user has applied to our future dir.
  42490. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  42491. +
  42492. + # Don't allow the user to place us outside of our expected
  42493. + # location b/c this prevents finding dependent libraries that
  42494. + # are installed to the same prefix.
  42495. + # At present, this check doesn't affect windows .dll's that
  42496. + # are installed into $libdir/../bin (currently, that works fine)
  42497. + # but it's something to keep an eye on.
  42498. + test "$inst_prefix_dir" = "$destdir" && \
  42499. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  42500. +
  42501. + if test -n "$inst_prefix_dir"; then
  42502. + # Stick the inst_prefix_dir data into the link command.
  42503. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  42504. + else
  42505. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  42506. + fi
  42507. +
  42508. + func_warning "relinking \`$file'"
  42509. + func_show_eval "$relink_command" \
  42510. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  42511. + fi
  42512. +
  42513. + # See the names of the shared library.
  42514. + set dummy $library_names; shift
  42515. + if test -n "$1"; then
  42516. + realname="$1"
  42517. + shift
  42518. +
  42519. + srcname="$realname"
  42520. + test -n "$relink_command" && srcname="$realname"T
  42521. +
  42522. + # Install the shared library and build the symlinks.
  42523. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  42524. + 'exit $?'
  42525. + tstripme="$stripme"
  42526. + case $host_os in
  42527. + cygwin* | mingw* | pw32* | cegcc*)
  42528. + case $realname in
  42529. + *.dll.a)
  42530. + tstripme=""
  42531. + ;;
  42532. + esac
  42533. ;;
  42534. esac
  42535. - done
  42536. - ;;
  42537. - prog)
  42538. - compile_deplibs=
  42539. - finalize_deplibs=
  42540. - alldeplibs=no
  42541. - newdlfiles=
  42542. - newdlprefiles=
  42543. - passes="conv scan dlopen dlpreopen link"
  42544. - ;;
  42545. - *) passes="conv"
  42546. - ;;
  42547. - esac
  42548. - for pass in $passes; do
  42549. - if test "$linkmode,$pass" = "lib,link" ||
  42550. - test "$linkmode,$pass" = "prog,scan"; then
  42551. - libs="$deplibs"
  42552. - deplibs=
  42553. - fi
  42554. - if test "$linkmode" = prog; then
  42555. - case $pass in
  42556. - dlopen) libs="$dlfiles" ;;
  42557. - dlpreopen) libs="$dlprefiles" ;;
  42558. - link)
  42559. - libs="$deplibs %DEPLIBS%"
  42560. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  42561. - ;;
  42562. - esac
  42563. - fi
  42564. - if test "$pass" = dlopen; then
  42565. - # Collect dlpreopened libraries
  42566. - save_deplibs="$deplibs"
  42567. - deplibs=
  42568. - fi
  42569. - for deplib in $libs; do
  42570. - lib=
  42571. - found=no
  42572. - case $deplib in
  42573. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  42574. - if test "$linkmode,$pass" = "prog,link"; then
  42575. - compile_deplibs="$deplib $compile_deplibs"
  42576. - finalize_deplibs="$deplib $finalize_deplibs"
  42577. - else
  42578. - compiler_flags="$compiler_flags $deplib"
  42579. - fi
  42580. - continue
  42581. - ;;
  42582. - -l*)
  42583. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  42584. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  42585. - continue
  42586. - fi
  42587. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  42588. - if test "$linkmode" = lib; then
  42589. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  42590. - else
  42591. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  42592. + if test -n "$tstripme" && test -n "$striplib"; then
  42593. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  42594. fi
  42595. - for searchdir in $searchdirs; do
  42596. - for search_ext in .la $std_shrext .so .a; do
  42597. - # Search the libtool library
  42598. - lib="$searchdir/lib${name}${search_ext}"
  42599. - if test -f "$lib"; then
  42600. - if test "$search_ext" = ".la"; then
  42601. - found=yes
  42602. - else
  42603. - found=no
  42604. - fi
  42605. - break 2
  42606. - fi
  42607. +
  42608. + if test "$#" -gt 0; then
  42609. + # Delete the old symlinks, and create new ones.
  42610. + # Try `ln -sf' first, because the `ln' binary might depend on
  42611. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  42612. + # so we also need to try rm && ln -s.
  42613. + for linkname
  42614. + do
  42615. + test "$linkname" != "$realname" \
  42616. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  42617. done
  42618. - done
  42619. - if test "$found" != yes; then
  42620. - # deplib doesn't seem to be a libtool library
  42621. - if test "$linkmode,$pass" = "prog,link"; then
  42622. - compile_deplibs="$deplib $compile_deplibs"
  42623. - finalize_deplibs="$deplib $finalize_deplibs"
  42624. - else
  42625. - deplibs="$deplib $deplibs"
  42626. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  42627. - fi
  42628. - continue
  42629. - else # deplib is a libtool library
  42630. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  42631. - # We need to do some special things here, and not later.
  42632. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42633. - case " $predeps $postdeps " in
  42634. - *" $deplib "*)
  42635. - if (${SED} -e '2q' $lib |
  42636. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  42637. - library_names=
  42638. - old_library=
  42639. - case $lib in
  42640. - */* | *\\*) . $lib ;;
  42641. - *) . ./$lib ;;
  42642. - esac
  42643. - for l in $old_library $library_names; do
  42644. - ll="$l"
  42645. - done
  42646. - if test "X$ll" = "X$old_library" ; then # only static version available
  42647. - found=no
  42648. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  42649. - test "X$ladir" = "X$lib" && ladir="."
  42650. - lib=$ladir/$old_library
  42651. - if test "$linkmode,$pass" = "prog,link"; then
  42652. - compile_deplibs="$deplib $compile_deplibs"
  42653. - finalize_deplibs="$deplib $finalize_deplibs"
  42654. - else
  42655. - deplibs="$deplib $deplibs"
  42656. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  42657. - fi
  42658. - continue
  42659. - fi
  42660. - fi
  42661. - ;;
  42662. - *) ;;
  42663. - esac
  42664. - fi
  42665. - fi
  42666. - ;; # -l
  42667. - -L*)
  42668. - case $linkmode in
  42669. - lib)
  42670. - deplibs="$deplib $deplibs"
  42671. - test "$pass" = conv && continue
  42672. - newdependency_libs="$deplib $newdependency_libs"
  42673. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  42674. - ;;
  42675. - prog)
  42676. - if test "$pass" = conv; then
  42677. - deplibs="$deplib $deplibs"
  42678. - continue
  42679. - fi
  42680. - if test "$pass" = scan; then
  42681. - deplibs="$deplib $deplibs"
  42682. - else
  42683. - compile_deplibs="$deplib $compile_deplibs"
  42684. - finalize_deplibs="$deplib $finalize_deplibs"
  42685. - fi
  42686. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  42687. - ;;
  42688. - *)
  42689. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  42690. - ;;
  42691. - esac # linkmode
  42692. - continue
  42693. - ;; # -L
  42694. - -R*)
  42695. - if test "$pass" = link; then
  42696. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  42697. - # Make sure the xrpath contains only unique directories.
  42698. - case "$xrpath " in
  42699. - *" $dir "*) ;;
  42700. - *) xrpath="$xrpath $dir" ;;
  42701. - esac
  42702. - fi
  42703. - deplibs="$deplib $deplibs"
  42704. - continue
  42705. - ;;
  42706. - *.la) lib="$deplib" ;;
  42707. - *.$libext)
  42708. - if test "$pass" = conv; then
  42709. - deplibs="$deplib $deplibs"
  42710. - continue
  42711. - fi
  42712. - case $linkmode in
  42713. - lib)
  42714. - valid_a_lib=no
  42715. - case $deplibs_check_method in
  42716. - match_pattern*)
  42717. - set dummy $deplibs_check_method
  42718. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  42719. - if eval $echo \"$deplib\" 2>/dev/null \
  42720. - | $SED 10q \
  42721. - | $EGREP "$match_pattern_regex" > /dev/null; then
  42722. - valid_a_lib=yes
  42723. - fi
  42724. - ;;
  42725. - pass_all)
  42726. - valid_a_lib=yes
  42727. - ;;
  42728. - esac
  42729. - if test "$valid_a_lib" != yes; then
  42730. - $echo
  42731. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  42732. - $echo "*** I have the capability to make that library automatically link in when"
  42733. - $echo "*** you link to this library. But I can only do this if you have a"
  42734. - $echo "*** shared version of the library, which you do not appear to have"
  42735. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  42736. - $echo "*** that it is just a static archive that I should not used here."
  42737. - else
  42738. - $echo
  42739. - $echo "*** Warning: Linking the shared library $output against the"
  42740. - $echo "*** static library $deplib is not portable!"
  42741. - deplibs="$deplib $deplibs"
  42742. - fi
  42743. - continue
  42744. - ;;
  42745. - prog)
  42746. - if test "$pass" != link; then
  42747. - deplibs="$deplib $deplibs"
  42748. - else
  42749. - compile_deplibs="$deplib $compile_deplibs"
  42750. - finalize_deplibs="$deplib $finalize_deplibs"
  42751. - fi
  42752. - continue
  42753. - ;;
  42754. - esac # linkmode
  42755. - ;; # *.$libext
  42756. - *.lo | *.$objext)
  42757. - if test "$pass" = conv; then
  42758. - deplibs="$deplib $deplibs"
  42759. - elif test "$linkmode" = prog; then
  42760. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  42761. - # If there is no dlopen support or we're linking statically,
  42762. - # we need to preload.
  42763. - newdlprefiles="$newdlprefiles $deplib"
  42764. - compile_deplibs="$deplib $compile_deplibs"
  42765. - finalize_deplibs="$deplib $finalize_deplibs"
  42766. - else
  42767. - newdlfiles="$newdlfiles $deplib"
  42768. - fi
  42769. fi
  42770. - continue
  42771. - ;;
  42772. - %DEPLIBS%)
  42773. - alldeplibs=yes
  42774. - continue
  42775. - ;;
  42776. - esac # case $deplib
  42777. - if test "$found" = yes || test -f "$lib"; then :
  42778. - else
  42779. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  42780. - exit $EXIT_FAILURE
  42781. - fi
  42782. - # Check to see that this really is a libtool archive.
  42783. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  42784. - else
  42785. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  42786. - exit $EXIT_FAILURE
  42787. + # Do each command in the postinstall commands.
  42788. + lib="$destdir/$realname"
  42789. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  42790. fi
  42791. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  42792. - test "X$ladir" = "X$lib" && ladir="."
  42793. -
  42794. - dlname=
  42795. - dlopen=
  42796. - dlpreopen=
  42797. - libdir=
  42798. - library_names=
  42799. - old_library=
  42800. - # If the library was installed with an old release of libtool,
  42801. - # it will not redefine variables installed, or shouldnotlink
  42802. - installed=yes
  42803. - shouldnotlink=no
  42804. - avoidtemprpath=
  42805. + # Install the pseudo-library for information purposes.
  42806. + func_basename "$file"
  42807. + name="$func_basename_result"
  42808. + instname="$dir/$name"i
  42809. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  42810. + # Maybe install the static library, too.
  42811. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  42812. + ;;
  42813. - # Read the .la file
  42814. - case $lib in
  42815. - */* | *\\*) . $lib ;;
  42816. - *) . ./$lib ;;
  42817. - esac
  42818. + *.lo)
  42819. + # Install (i.e. copy) a libtool object.
  42820. - if test "$linkmode,$pass" = "lib,link" ||
  42821. - test "$linkmode,$pass" = "prog,scan" ||
  42822. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  42823. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  42824. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  42825. + # Figure out destination file name, if it wasn't already specified.
  42826. + if test -n "$destname"; then
  42827. + destfile="$destdir/$destname"
  42828. + else
  42829. + func_basename "$file"
  42830. + destfile="$func_basename_result"
  42831. + destfile="$destdir/$destfile"
  42832. fi
  42833. - if test "$pass" = conv; then
  42834. - # Only check for convenience libraries
  42835. - deplibs="$lib $deplibs"
  42836. - if test -z "$libdir"; then
  42837. - if test -z "$old_library"; then
  42838. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  42839. - exit $EXIT_FAILURE
  42840. - fi
  42841. - # It is a libtool convenience library, so add in its objects.
  42842. - convenience="$convenience $ladir/$objdir/$old_library"
  42843. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  42844. - tmp_libs=
  42845. - for deplib in $dependency_libs; do
  42846. - deplibs="$deplib $deplibs"
  42847. - if test "X$duplicate_deps" = "Xyes" ; then
  42848. - case "$tmp_libs " in
  42849. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  42850. - esac
  42851. - fi
  42852. - tmp_libs="$tmp_libs $deplib"
  42853. - done
  42854. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  42855. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  42856. - exit $EXIT_FAILURE
  42857. - fi
  42858. - continue
  42859. - fi # $pass = conv
  42860. + # Deduce the name of the destination old-style object file.
  42861. + case $destfile in
  42862. + *.lo)
  42863. + func_lo2o "$destfile"
  42864. + staticdest=$func_lo2o_result
  42865. + ;;
  42866. + *.$objext)
  42867. + staticdest="$destfile"
  42868. + destfile=
  42869. + ;;
  42870. + *)
  42871. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  42872. + ;;
  42873. + esac
  42874. + # Install the libtool object if requested.
  42875. + test -n "$destfile" && \
  42876. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  42877. - # Get the name of the library we link against.
  42878. - linklib=
  42879. - for l in $old_library $library_names; do
  42880. - linklib="$l"
  42881. - done
  42882. - if test -z "$linklib"; then
  42883. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  42884. - exit $EXIT_FAILURE
  42885. + # Install the old object if enabled.
  42886. + if test "$build_old_libs" = yes; then
  42887. + # Deduce the name of the old-style object file.
  42888. + func_lo2o "$file"
  42889. + staticobj=$func_lo2o_result
  42890. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  42891. fi
  42892. + exit $EXIT_SUCCESS
  42893. + ;;
  42894. - # This library was specified with -dlopen.
  42895. - if test "$pass" = dlopen; then
  42896. - if test -z "$libdir"; then
  42897. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  42898. - exit $EXIT_FAILURE
  42899. - fi
  42900. - if test -z "$dlname" ||
  42901. - test "$dlopen_support" != yes ||
  42902. - test "$build_libtool_libs" = no; then
  42903. - # If there is no dlname, no dlopen support or we're linking
  42904. - # statically, we need to preload. We also need to preload any
  42905. - # dependent libraries so libltdl's deplib preloader doesn't
  42906. - # bomb out in the load deplibs phase.
  42907. - dlprefiles="$dlprefiles $lib $dependency_libs"
  42908. - else
  42909. - newdlfiles="$newdlfiles $lib"
  42910. - fi
  42911. - continue
  42912. - fi # $pass = dlopen
  42913. + *)
  42914. + # Figure out destination file name, if it wasn't already specified.
  42915. + if test -n "$destname"; then
  42916. + destfile="$destdir/$destname"
  42917. + else
  42918. + func_basename "$file"
  42919. + destfile="$func_basename_result"
  42920. + destfile="$destdir/$destfile"
  42921. + fi
  42922. - # We need an absolute path.
  42923. - case $ladir in
  42924. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  42925. + # If the file is missing, and there is a .exe on the end, strip it
  42926. + # because it is most likely a libtool script we actually want to
  42927. + # install
  42928. + stripped_ext=""
  42929. + case $file in
  42930. + *.exe)
  42931. + if test ! -f "$file"; then
  42932. + func_stripname '' '.exe' "$file"
  42933. + file=$func_stripname_result
  42934. + stripped_ext=".exe"
  42935. + fi
  42936. + ;;
  42937. + esac
  42938. +
  42939. + # Do a test to see if this is really a libtool program.
  42940. + case $host in
  42941. + *cygwin* | *mingw*)
  42942. + if func_ltwrapper_executable_p "$file"; then
  42943. + func_ltwrapper_scriptname "$file"
  42944. + wrapper=$func_ltwrapper_scriptname_result
  42945. + else
  42946. + func_stripname '' '.exe' "$file"
  42947. + wrapper=$func_stripname_result
  42948. + fi
  42949. + ;;
  42950. *)
  42951. - abs_ladir=`cd "$ladir" && pwd`
  42952. - if test -z "$abs_ladir"; then
  42953. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  42954. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  42955. - abs_ladir="$ladir"
  42956. + wrapper=$file
  42957. + ;;
  42958. + esac
  42959. + if func_ltwrapper_script_p "$wrapper"; then
  42960. + notinst_deplibs=
  42961. + relink_command=
  42962. +
  42963. + func_source "$wrapper"
  42964. +
  42965. + # Check the variables that should have been set.
  42966. + test -z "$generated_by_libtool_version" && \
  42967. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  42968. +
  42969. + finalize=yes
  42970. + for lib in $notinst_deplibs; do
  42971. + # Check to see that each library is installed.
  42972. + libdir=
  42973. + if test -f "$lib"; then
  42974. + func_source "$lib"
  42975. + fi
  42976. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  42977. + if test -n "$libdir" && test ! -f "$libfile"; then
  42978. + func_warning "\`$lib' has not been installed in \`$libdir'"
  42979. + finalize=no
  42980. + fi
  42981. + done
  42982. +
  42983. + relink_command=
  42984. + func_source "$wrapper"
  42985. +
  42986. + outputname=
  42987. + if test "$fast_install" = no && test -n "$relink_command"; then
  42988. + $opt_dry_run || {
  42989. + if test "$finalize" = yes; then
  42990. + tmpdir=`func_mktempdir`
  42991. + func_basename "$file$stripped_ext"
  42992. + file="$func_basename_result"
  42993. + outputname="$tmpdir/$file"
  42994. + # Replace the output file specification.
  42995. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  42996. +
  42997. + $opt_silent || {
  42998. + func_quote_for_expand "$relink_command"
  42999. + eval "func_echo $func_quote_for_expand_result"
  43000. + }
  43001. + if eval "$relink_command"; then :
  43002. + else
  43003. + func_error "error: relink \`$file' with the above command before installing it"
  43004. + $opt_dry_run || ${RM}r "$tmpdir"
  43005. + continue
  43006. + fi
  43007. + file="$outputname"
  43008. + else
  43009. + func_warning "cannot relink \`$file'"
  43010. + fi
  43011. + }
  43012. + else
  43013. + # Install the binary that we compiled earlier.
  43014. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  43015. fi
  43016. + fi
  43017. +
  43018. + # remove .exe since cygwin /usr/bin/install will append another
  43019. + # one anyway
  43020. + case $install_prog,$host in
  43021. + */usr/bin/install*,*cygwin*)
  43022. + case $file:$destfile in
  43023. + *.exe:*.exe)
  43024. + # this is ok
  43025. + ;;
  43026. + *.exe:*)
  43027. + destfile=$destfile.exe
  43028. + ;;
  43029. + *:*.exe)
  43030. + func_stripname '' '.exe' "$destfile"
  43031. + destfile=$func_stripname_result
  43032. + ;;
  43033. + esac
  43034. ;;
  43035. esac
  43036. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  43037. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  43038. + $opt_dry_run || if test -n "$outputname"; then
  43039. + ${RM}r "$tmpdir"
  43040. + fi
  43041. + ;;
  43042. + esac
  43043. + done
  43044. - # Find the relevant object directory and library name.
  43045. - if test "X$installed" = Xyes; then
  43046. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  43047. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  43048. - dir="$ladir"
  43049. - absdir="$abs_ladir"
  43050. - libdir="$abs_ladir"
  43051. - else
  43052. - dir="$libdir"
  43053. - absdir="$libdir"
  43054. + for file in $staticlibs; do
  43055. + func_basename "$file"
  43056. + name="$func_basename_result"
  43057. +
  43058. + # Set up the ranlib parameters.
  43059. + oldlib="$destdir/$name"
  43060. +
  43061. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  43062. +
  43063. + if test -n "$stripme" && test -n "$old_striplib"; then
  43064. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  43065. + fi
  43066. +
  43067. + # Do each command in the postinstall commands.
  43068. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  43069. + done
  43070. +
  43071. + test -n "$future_libdirs" && \
  43072. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  43073. +
  43074. + if test -n "$current_libdirs"; then
  43075. + # Maybe just do a dry run.
  43076. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  43077. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  43078. + else
  43079. + exit $EXIT_SUCCESS
  43080. + fi
  43081. +}
  43082. +
  43083. +test "$mode" = install && func_mode_install ${1+"$@"}
  43084. +
  43085. +
  43086. +# func_generate_dlsyms outputname originator pic_p
  43087. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  43088. +# a dlpreopen symbol table.
  43089. +func_generate_dlsyms ()
  43090. +{
  43091. + $opt_debug
  43092. + my_outputname="$1"
  43093. + my_originator="$2"
  43094. + my_pic_p="${3-no}"
  43095. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  43096. + my_dlsyms=
  43097. +
  43098. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  43099. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  43100. + my_dlsyms="${my_outputname}S.c"
  43101. + else
  43102. + func_error "not configured to extract global symbols from dlpreopened files"
  43103. + fi
  43104. + fi
  43105. +
  43106. + if test -n "$my_dlsyms"; then
  43107. + case $my_dlsyms in
  43108. + "") ;;
  43109. + *.c)
  43110. + # Discover the nlist of each of the dlfiles.
  43111. + nlist="$output_objdir/${my_outputname}.nm"
  43112. +
  43113. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  43114. +
  43115. + # Parse the name list into a source file.
  43116. + func_verbose "creating $output_objdir/$my_dlsyms"
  43117. +
  43118. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  43119. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  43120. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  43121. +
  43122. +#ifdef __cplusplus
  43123. +extern \"C\" {
  43124. +#endif
  43125. +
  43126. +/* External symbol declarations for the compiler. */\
  43127. +"
  43128. +
  43129. + if test "$dlself" = yes; then
  43130. + func_verbose "generating symbol list for \`$output'"
  43131. +
  43132. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  43133. +
  43134. + # Add our own program objects to the symbol list.
  43135. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43136. + for progfile in $progfiles; do
  43137. + func_verbose "extracting global C symbols from \`$progfile'"
  43138. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  43139. + done
  43140. +
  43141. + if test -n "$exclude_expsyms"; then
  43142. + $opt_dry_run || {
  43143. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  43144. + eval '$MV "$nlist"T "$nlist"'
  43145. + }
  43146. fi
  43147. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  43148. - else
  43149. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  43150. - dir="$ladir"
  43151. - absdir="$abs_ladir"
  43152. - # Remove this search path later
  43153. - notinst_path="$notinst_path $abs_ladir"
  43154. +
  43155. + if test -n "$export_symbols_regex"; then
  43156. + $opt_dry_run || {
  43157. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  43158. + eval '$MV "$nlist"T "$nlist"'
  43159. + }
  43160. + fi
  43161. +
  43162. + # Prepare the list of exported symbols
  43163. + if test -z "$export_symbols"; then
  43164. + export_symbols="$output_objdir/$outputname.exp"
  43165. + $opt_dry_run || {
  43166. + $RM $export_symbols
  43167. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  43168. + case $host in
  43169. + *cygwin* | *mingw* | *cegcc* )
  43170. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43171. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  43172. + ;;
  43173. + esac
  43174. + }
  43175. else
  43176. - dir="$ladir/$objdir"
  43177. - absdir="$abs_ladir/$objdir"
  43178. - # Remove this search path later
  43179. - notinst_path="$notinst_path $abs_ladir"
  43180. + $opt_dry_run || {
  43181. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  43182. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  43183. + eval '$MV "$nlist"T "$nlist"'
  43184. + case $host in
  43185. + *cygwin | *mingw* | *cegcc* )
  43186. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43187. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  43188. + ;;
  43189. + esac
  43190. + }
  43191. fi
  43192. - fi # $installed = yes
  43193. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  43194. + fi
  43195. - # This library was specified with -dlpreopen.
  43196. - if test "$pass" = dlpreopen; then
  43197. - if test -z "$libdir"; then
  43198. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  43199. - exit $EXIT_FAILURE
  43200. + for dlprefile in $dlprefiles; do
  43201. + func_verbose "extracting global C symbols from \`$dlprefile'"
  43202. + func_basename "$dlprefile"
  43203. + name="$func_basename_result"
  43204. + $opt_dry_run || {
  43205. + eval '$ECHO ": $name " >> "$nlist"'
  43206. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  43207. + }
  43208. + done
  43209. +
  43210. + $opt_dry_run || {
  43211. + # Make sure we have at least an empty file.
  43212. + test -f "$nlist" || : > "$nlist"
  43213. +
  43214. + if test -n "$exclude_expsyms"; then
  43215. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  43216. + $MV "$nlist"T "$nlist"
  43217. fi
  43218. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  43219. - # are required to link).
  43220. - if test -n "$old_library"; then
  43221. - newdlprefiles="$newdlprefiles $dir/$old_library"
  43222. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  43223. - elif test -n "$dlname"; then
  43224. - newdlprefiles="$newdlprefiles $dir/$dlname"
  43225. +
  43226. + # Try sorting and uniquifying the output.
  43227. + if $GREP -v "^: " < "$nlist" |
  43228. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  43229. + sort -k 3
  43230. + else
  43231. + sort +2
  43232. + fi |
  43233. + uniq > "$nlist"S; then
  43234. + :
  43235. else
  43236. - newdlprefiles="$newdlprefiles $dir/$linklib"
  43237. + $GREP -v "^: " < "$nlist" > "$nlist"S
  43238. fi
  43239. - fi # $pass = dlpreopen
  43240. - if test -z "$libdir"; then
  43241. - # Link the convenience library
  43242. - if test "$linkmode" = lib; then
  43243. - deplibs="$dir/$old_library $deplibs"
  43244. - elif test "$linkmode,$pass" = "prog,link"; then
  43245. - compile_deplibs="$dir/$old_library $compile_deplibs"
  43246. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  43247. + if test -f "$nlist"S; then
  43248. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  43249. else
  43250. - deplibs="$lib $deplibs" # used for prog,scan pass
  43251. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  43252. fi
  43253. - continue
  43254. - fi
  43255. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43256. - if test "$linkmode" = prog && test "$pass" != link; then
  43257. - newlib_search_path="$newlib_search_path $ladir"
  43258. - deplibs="$lib $deplibs"
  43259. +/* The mapping between symbol names and symbols. */
  43260. +typedef struct {
  43261. + const char *name;
  43262. + void *address;
  43263. +} lt_dlsymlist;
  43264. +"
  43265. + case $host in
  43266. + *cygwin* | *mingw* | *cegcc* )
  43267. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43268. +/* DATA imports from DLLs on WIN32 con't be const, because
  43269. + runtime relocations are performed -- see ld's documentation
  43270. + on pseudo-relocs. */"
  43271. + lt_dlsym_const= ;;
  43272. + *osf5*)
  43273. + echo >> "$output_objdir/$my_dlsyms" "\
  43274. +/* This system does not cope well with relocations in const data */"
  43275. + lt_dlsym_const= ;;
  43276. + *)
  43277. + lt_dlsym_const=const ;;
  43278. + esac
  43279. - linkalldeplibs=no
  43280. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  43281. - test "$build_libtool_libs" = no; then
  43282. - linkalldeplibs=yes
  43283. - fi
  43284. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43285. +extern $lt_dlsym_const lt_dlsymlist
  43286. +lt_${my_prefix}_LTX_preloaded_symbols[];
  43287. +$lt_dlsym_const lt_dlsymlist
  43288. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  43289. +{\
  43290. + { \"$my_originator\", (void *) 0 },"
  43291. - tmp_libs=
  43292. - for deplib in $dependency_libs; do
  43293. - case $deplib in
  43294. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  43295. - esac
  43296. - # Need to link against all dependency_libs?
  43297. - if test "$linkalldeplibs" = yes; then
  43298. - deplibs="$deplib $deplibs"
  43299. - else
  43300. - # Need to hardcode shared library paths
  43301. - # or/and link against static libraries
  43302. - newdependency_libs="$deplib $newdependency_libs"
  43303. - fi
  43304. - if test "X$duplicate_deps" = "Xyes" ; then
  43305. - case "$tmp_libs " in
  43306. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  43307. - esac
  43308. - fi
  43309. - tmp_libs="$tmp_libs $deplib"
  43310. - done # for deplib
  43311. - continue
  43312. - fi # $linkmode = prog...
  43313. + case $need_lib_prefix in
  43314. + no)
  43315. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  43316. + ;;
  43317. + *)
  43318. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  43319. + ;;
  43320. + esac
  43321. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43322. + {0, (void *) 0}
  43323. +};
  43324. - if test "$linkmode,$pass" = "prog,link"; then
  43325. - if test -n "$library_names" &&
  43326. - { { test "$prefer_static_libs" = no ||
  43327. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  43328. - test -z "$old_library"; }; then
  43329. - # We need to hardcode the library path
  43330. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  43331. - # Make sure the rpath contains only unique directories.
  43332. - case "$temp_rpath " in
  43333. - *" $dir "*) ;;
  43334. - *" $absdir "*) ;;
  43335. - *) temp_rpath="$temp_rpath $absdir" ;;
  43336. - esac
  43337. - fi
  43338. +/* This works around a problem in FreeBSD linker */
  43339. +#ifdef FREEBSD_WORKAROUND
  43340. +static const void *lt_preloaded_setup() {
  43341. + return lt_${my_prefix}_LTX_preloaded_symbols;
  43342. +}
  43343. +#endif
  43344. - # Hardcode the library path.
  43345. - # Skip directories that are in the system default run-time
  43346. - # search path.
  43347. - case " $sys_lib_dlsearch_path " in
  43348. - *" $absdir "*) ;;
  43349. - *)
  43350. - case "$compile_rpath " in
  43351. - *" $absdir "*) ;;
  43352. - *) compile_rpath="$compile_rpath $absdir"
  43353. - esac
  43354. - ;;
  43355. - esac
  43356. - case " $sys_lib_dlsearch_path " in
  43357. - *" $libdir "*) ;;
  43358. - *)
  43359. - case "$finalize_rpath " in
  43360. - *" $libdir "*) ;;
  43361. - *) finalize_rpath="$finalize_rpath $libdir"
  43362. - esac
  43363. - ;;
  43364. - esac
  43365. - fi # $linkmode,$pass = prog,link...
  43366. +#ifdef __cplusplus
  43367. +}
  43368. +#endif\
  43369. +"
  43370. + } # !$opt_dry_run
  43371. - if test "$alldeplibs" = yes &&
  43372. - { test "$deplibs_check_method" = pass_all ||
  43373. - { test "$build_libtool_libs" = yes &&
  43374. - test -n "$library_names"; }; }; then
  43375. - # We only need to search for static libraries
  43376. - continue
  43377. - fi
  43378. - fi
  43379. + pic_flag_for_symtable=
  43380. + case "$compile_command " in
  43381. + *" -static "*) ;;
  43382. + *)
  43383. + case $host in
  43384. + # compiling the symbol table file with pic_flag works around
  43385. + # a FreeBSD bug that causes programs to crash when -lm is
  43386. + # linked before any other PIC object. But we must not use
  43387. + # pic_flag when linking with -static. The problem exists in
  43388. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  43389. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  43390. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  43391. + *-*-hpux*)
  43392. + pic_flag_for_symtable=" $pic_flag" ;;
  43393. + *)
  43394. + if test "X$my_pic_p" != Xno; then
  43395. + pic_flag_for_symtable=" $pic_flag"
  43396. + fi
  43397. + ;;
  43398. + esac
  43399. + ;;
  43400. + esac
  43401. + symtab_cflags=
  43402. + for arg in $LTCFLAGS; do
  43403. + case $arg in
  43404. + -pie | -fpie | -fPIE) ;;
  43405. + *) symtab_cflags="$symtab_cflags $arg" ;;
  43406. + esac
  43407. + done
  43408. - link_static=no # Whether the deplib will be linked statically
  43409. - use_static_libs=$prefer_static_libs
  43410. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  43411. - use_static_libs=no
  43412. - fi
  43413. - if test -n "$library_names" &&
  43414. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  43415. - if test "$installed" = no; then
  43416. - notinst_deplibs="$notinst_deplibs $lib"
  43417. - need_relink=yes
  43418. - fi
  43419. - # This is a shared library
  43420. + # Now compile the dynamic symbol file.
  43421. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  43422. - # Warn about portability, can't link against -module's on
  43423. - # some systems (darwin)
  43424. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  43425. - $echo
  43426. - if test "$linkmode" = prog; then
  43427. - $echo "*** Warning: Linking the executable $output against the loadable module"
  43428. - else
  43429. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  43430. - fi
  43431. - $echo "*** $linklib is not portable!"
  43432. - fi
  43433. - if test "$linkmode" = lib &&
  43434. - test "$hardcode_into_libs" = yes; then
  43435. - # Hardcode the library path.
  43436. - # Skip directories that are in the system default run-time
  43437. - # search path.
  43438. - case " $sys_lib_dlsearch_path " in
  43439. - *" $absdir "*) ;;
  43440. - *)
  43441. - case "$compile_rpath " in
  43442. - *" $absdir "*) ;;
  43443. - *) compile_rpath="$compile_rpath $absdir"
  43444. - esac
  43445. - ;;
  43446. - esac
  43447. - case " $sys_lib_dlsearch_path " in
  43448. - *" $libdir "*) ;;
  43449. - *)
  43450. - case "$finalize_rpath " in
  43451. - *" $libdir "*) ;;
  43452. - *) finalize_rpath="$finalize_rpath $libdir"
  43453. - esac
  43454. - ;;
  43455. - esac
  43456. + # Clean up the generated files.
  43457. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  43458. +
  43459. + # Transform the symbol file into the correct name.
  43460. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  43461. + case $host in
  43462. + *cygwin* | *mingw* | *cegcc* )
  43463. + if test -f "$output_objdir/$my_outputname.def"; then
  43464. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  43465. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  43466. + else
  43467. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  43468. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  43469. fi
  43470. + ;;
  43471. + *)
  43472. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  43473. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  43474. + ;;
  43475. + esac
  43476. + ;;
  43477. + *)
  43478. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  43479. + ;;
  43480. + esac
  43481. + else
  43482. + # We keep going just in case the user didn't refer to
  43483. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  43484. + # really was required.
  43485. +
  43486. + # Nullify the symbol file.
  43487. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  43488. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  43489. + fi
  43490. +}
  43491. - if test -n "$old_archive_from_expsyms_cmds"; then
  43492. - # figure out the soname
  43493. - set dummy $library_names
  43494. - realname="$2"
  43495. - shift; shift
  43496. - libname=`eval \\$echo \"$libname_spec\"`
  43497. - # use dlname if we got it. it's perfectly good, no?
  43498. - if test -n "$dlname"; then
  43499. - soname="$dlname"
  43500. - elif test -n "$soname_spec"; then
  43501. - # bleh windows
  43502. - case $host in
  43503. - *cygwin* | mingw*)
  43504. - major=`expr $current - $age`
  43505. - versuffix="-$major"
  43506. - ;;
  43507. - esac
  43508. - eval soname=\"$soname_spec\"
  43509. - else
  43510. - soname="$realname"
  43511. - fi
  43512. +# func_win32_libid arg
  43513. +# return the library type of file 'arg'
  43514. +#
  43515. +# Need a lot of goo to handle *both* DLLs and import libs
  43516. +# Has to be a shell function in order to 'eat' the argument
  43517. +# that is supplied when $file_magic_command is called.
  43518. +func_win32_libid ()
  43519. +{
  43520. + $opt_debug
  43521. + win32_libid_type="unknown"
  43522. + win32_fileres=`file -L $1 2>/dev/null`
  43523. + case $win32_fileres in
  43524. + *ar\ archive\ import\ library*) # definitely import
  43525. + win32_libid_type="x86 archive import"
  43526. + ;;
  43527. + *ar\ archive*) # could be an import, or static
  43528. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  43529. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  43530. + win32_nmres=`eval $NM -f posix -A $1 |
  43531. + $SED -n -e '
  43532. + 1,100{
  43533. + / I /{
  43534. + s,.*,import,
  43535. + p
  43536. + q
  43537. + }
  43538. + }'`
  43539. + case $win32_nmres in
  43540. + import*) win32_libid_type="x86 archive import";;
  43541. + *) win32_libid_type="x86 archive static";;
  43542. + esac
  43543. + fi
  43544. + ;;
  43545. + *DLL*)
  43546. + win32_libid_type="x86 DLL"
  43547. + ;;
  43548. + *executable*) # but shell scripts are "executable" too...
  43549. + case $win32_fileres in
  43550. + *MS\ Windows\ PE\ Intel*)
  43551. + win32_libid_type="x86 DLL"
  43552. + ;;
  43553. + esac
  43554. + ;;
  43555. + esac
  43556. + $ECHO "$win32_libid_type"
  43557. +}
  43558. - # Make a new name for the extract_expsyms_cmds to use
  43559. - soroot="$soname"
  43560. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  43561. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  43562. - # If the library has no export list, then create one now
  43563. - if test -f "$output_objdir/$soname-def"; then :
  43564. - else
  43565. - $show "extracting exported symbol list from \`$soname'"
  43566. - save_ifs="$IFS"; IFS='~'
  43567. - cmds=$extract_expsyms_cmds
  43568. - for cmd in $cmds; do
  43569. - IFS="$save_ifs"
  43570. - eval cmd=\"$cmd\"
  43571. - $show "$cmd"
  43572. - $run eval "$cmd" || exit $?
  43573. - done
  43574. - IFS="$save_ifs"
  43575. - fi
  43576. - # Create $newlib
  43577. - if test -f "$output_objdir/$newlib"; then :; else
  43578. - $show "generating import library for \`$soname'"
  43579. - save_ifs="$IFS"; IFS='~'
  43580. - cmds=$old_archive_from_expsyms_cmds
  43581. - for cmd in $cmds; do
  43582. - IFS="$save_ifs"
  43583. - eval cmd=\"$cmd\"
  43584. - $show "$cmd"
  43585. - $run eval "$cmd" || exit $?
  43586. - done
  43587. - IFS="$save_ifs"
  43588. - fi
  43589. - # make sure the library variables are pointing to the new library
  43590. - dir=$output_objdir
  43591. - linklib=$newlib
  43592. - fi # test -n "$old_archive_from_expsyms_cmds"
  43593. +# func_extract_an_archive dir oldlib
  43594. +func_extract_an_archive ()
  43595. +{
  43596. + $opt_debug
  43597. + f_ex_an_ar_dir="$1"; shift
  43598. + f_ex_an_ar_oldlib="$1"
  43599. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  43600. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  43601. + :
  43602. + else
  43603. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  43604. + fi
  43605. +}
  43606. - if test "$linkmode" = prog || test "$mode" != relink; then
  43607. - add_shlibpath=
  43608. - add_dir=
  43609. - add=
  43610. - lib_linked=yes
  43611. - case $hardcode_action in
  43612. - immediate | unsupported)
  43613. - if test "$hardcode_direct" = no; then
  43614. - add="$dir/$linklib"
  43615. - case $host in
  43616. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  43617. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  43618. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  43619. - *-*-unixware7*) add_dir="-L$dir" ;;
  43620. - *-*-darwin* )
  43621. - # if the lib is a module then we can not link against
  43622. - # it, someone is ignoring the new warnings I added
  43623. - if /usr/bin/file -L $add 2> /dev/null |
  43624. - $EGREP ": [^:]* bundle" >/dev/null ; then
  43625. - $echo "** Warning, lib $linklib is a module, not a shared library"
  43626. - if test -z "$old_library" ; then
  43627. - $echo
  43628. - $echo "** And there doesn't seem to be a static archive available"
  43629. - $echo "** The link will probably fail, sorry"
  43630. - else
  43631. - add="$dir/$old_library"
  43632. - fi
  43633. - fi
  43634. - esac
  43635. - elif test "$hardcode_minus_L" = no; then
  43636. - case $host in
  43637. - *-*-sunos*) add_shlibpath="$dir" ;;
  43638. - esac
  43639. - add_dir="-L$dir"
  43640. - add="-l$name"
  43641. - elif test "$hardcode_shlibpath_var" = no; then
  43642. - add_shlibpath="$dir"
  43643. - add="-l$name"
  43644. - else
  43645. - lib_linked=no
  43646. - fi
  43647. - ;;
  43648. - relink)
  43649. - if test "$hardcode_direct" = yes; then
  43650. - add="$dir/$linklib"
  43651. - elif test "$hardcode_minus_L" = yes; then
  43652. - add_dir="-L$dir"
  43653. - # Try looking first in the location we're being installed to.
  43654. - if test -n "$inst_prefix_dir"; then
  43655. - case $libdir in
  43656. - [\\/]*)
  43657. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  43658. - ;;
  43659. - esac
  43660. - fi
  43661. - add="-l$name"
  43662. - elif test "$hardcode_shlibpath_var" = yes; then
  43663. - add_shlibpath="$dir"
  43664. - add="-l$name"
  43665. - else
  43666. - lib_linked=no
  43667. - fi
  43668. - ;;
  43669. - *) lib_linked=no ;;
  43670. - esac
  43671. - if test "$lib_linked" != yes; then
  43672. - $echo "$modename: configuration error: unsupported hardcode properties"
  43673. - exit $EXIT_FAILURE
  43674. - fi
  43675. +# func_extract_archives gentop oldlib ...
  43676. +func_extract_archives ()
  43677. +{
  43678. + $opt_debug
  43679. + my_gentop="$1"; shift
  43680. + my_oldlibs=${1+"$@"}
  43681. + my_oldobjs=""
  43682. + my_xlib=""
  43683. + my_xabs=""
  43684. + my_xdir=""
  43685. - if test -n "$add_shlibpath"; then
  43686. - case :$compile_shlibpath: in
  43687. - *":$add_shlibpath:"*) ;;
  43688. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  43689. - esac
  43690. - fi
  43691. - if test "$linkmode" = prog; then
  43692. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  43693. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  43694. - else
  43695. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  43696. - test -n "$add" && deplibs="$add $deplibs"
  43697. - if test "$hardcode_direct" != yes && \
  43698. - test "$hardcode_minus_L" != yes && \
  43699. - test "$hardcode_shlibpath_var" = yes; then
  43700. - case :$finalize_shlibpath: in
  43701. - *":$libdir:"*) ;;
  43702. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  43703. - esac
  43704. - fi
  43705. - fi
  43706. - fi
  43707. + for my_xlib in $my_oldlibs; do
  43708. + # Extract the objects.
  43709. + case $my_xlib in
  43710. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  43711. + *) my_xabs=`pwd`"/$my_xlib" ;;
  43712. + esac
  43713. + func_basename "$my_xlib"
  43714. + my_xlib="$func_basename_result"
  43715. + my_xlib_u=$my_xlib
  43716. + while :; do
  43717. + case " $extracted_archives " in
  43718. + *" $my_xlib_u "*)
  43719. + func_arith $extracted_serial + 1
  43720. + extracted_serial=$func_arith_result
  43721. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  43722. + *) break ;;
  43723. + esac
  43724. + done
  43725. + extracted_archives="$extracted_archives $my_xlib_u"
  43726. + my_xdir="$my_gentop/$my_xlib_u"
  43727. - if test "$linkmode" = prog || test "$mode" = relink; then
  43728. - add_shlibpath=
  43729. - add_dir=
  43730. - add=
  43731. - # Finalize command for both is simple: just hardcode it.
  43732. - if test "$hardcode_direct" = yes; then
  43733. - add="$libdir/$linklib"
  43734. - elif test "$hardcode_minus_L" = yes; then
  43735. - add_dir="-L$libdir"
  43736. - add="-l$name"
  43737. - elif test "$hardcode_shlibpath_var" = yes; then
  43738. - case :$finalize_shlibpath: in
  43739. - *":$libdir:"*) ;;
  43740. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  43741. - esac
  43742. - add="-l$name"
  43743. - elif test "$hardcode_automatic" = yes; then
  43744. - if test -n "$inst_prefix_dir" &&
  43745. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  43746. - add="$inst_prefix_dir$libdir/$linklib"
  43747. - else
  43748. - add="$libdir/$linklib"
  43749. - fi
  43750. - else
  43751. - # We cannot seem to hardcode it, guess we'll fake it.
  43752. - add_dir="-L$libdir"
  43753. - # Try looking first in the location we're being installed to.
  43754. - if test -n "$inst_prefix_dir"; then
  43755. - case $libdir in
  43756. - [\\/]*)
  43757. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  43758. - ;;
  43759. - esac
  43760. - fi
  43761. - add="-l$name"
  43762. - fi
  43763. + func_mkdir_p "$my_xdir"
  43764. - if test "$linkmode" = prog; then
  43765. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  43766. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  43767. - else
  43768. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  43769. - test -n "$add" && deplibs="$add $deplibs"
  43770. - fi
  43771. - fi
  43772. - elif test "$linkmode" = prog; then
  43773. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  43774. - # is not unsupported. This is valid on all known static and
  43775. - # shared platforms.
  43776. - if test "$hardcode_direct" != unsupported; then
  43777. - test -n "$old_library" && linklib="$old_library"
  43778. - compile_deplibs="$dir/$linklib $compile_deplibs"
  43779. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  43780. + case $host in
  43781. + *-darwin*)
  43782. + func_verbose "Extracting $my_xabs"
  43783. + # Do not bother doing anything if just a dry run
  43784. + $opt_dry_run || {
  43785. + darwin_orig_dir=`pwd`
  43786. + cd $my_xdir || exit $?
  43787. + darwin_archive=$my_xabs
  43788. + darwin_curdir=`pwd`
  43789. + darwin_base_archive=`basename "$darwin_archive"`
  43790. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  43791. + if test -n "$darwin_arches"; then
  43792. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  43793. + darwin_arch=
  43794. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  43795. + for darwin_arch in $darwin_arches ; do
  43796. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  43797. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  43798. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  43799. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  43800. + cd "$darwin_curdir"
  43801. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  43802. + done # $darwin_arches
  43803. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  43804. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  43805. + darwin_file=
  43806. + darwin_files=
  43807. + for darwin_file in $darwin_filelist; do
  43808. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  43809. + $LIPO -create -output "$darwin_file" $darwin_files
  43810. + done # $darwin_filelist
  43811. + $RM -rf unfat-$$
  43812. + cd "$darwin_orig_dir"
  43813. else
  43814. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  43815. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  43816. - fi
  43817. - elif test "$build_libtool_libs" = yes; then
  43818. - # Not a shared library
  43819. - if test "$deplibs_check_method" != pass_all; then
  43820. - # We're trying link a shared library against a static one
  43821. - # but the system doesn't support it.
  43822. + cd $darwin_orig_dir
  43823. + func_extract_an_archive "$my_xdir" "$my_xabs"
  43824. + fi # $darwin_arches
  43825. + } # !$opt_dry_run
  43826. + ;;
  43827. + *)
  43828. + func_extract_an_archive "$my_xdir" "$my_xabs"
  43829. + ;;
  43830. + esac
  43831. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  43832. + done
  43833. - # Just print a warning and add the library to dependency_libs so
  43834. - # that the program can be linked against the static library.
  43835. - $echo
  43836. - $echo "*** Warning: This system can not link to static lib archive $lib."
  43837. - $echo "*** I have the capability to make that library automatically link in when"
  43838. - $echo "*** you link to this library. But I can only do this if you have a"
  43839. - $echo "*** shared version of the library, which you do not appear to have."
  43840. - if test "$module" = yes; then
  43841. - $echo "*** But as you try to build a module library, libtool will still create "
  43842. - $echo "*** a static module, that should work as long as the dlopening application"
  43843. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  43844. - if test -z "$global_symbol_pipe"; then
  43845. - $echo
  43846. - $echo "*** However, this would only work if libtool was able to extract symbol"
  43847. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  43848. - $echo "*** not find such a program. So, this module is probably useless."
  43849. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  43850. - fi
  43851. - if test "$build_old_libs" = no; then
  43852. - build_libtool_libs=module
  43853. - build_old_libs=yes
  43854. - else
  43855. - build_libtool_libs=no
  43856. - fi
  43857. - fi
  43858. - else
  43859. - deplibs="$dir/$old_library $deplibs"
  43860. - link_static=yes
  43861. - fi
  43862. - fi # link shared/static library?
  43863. + func_extract_archives_result="$my_oldobjs"
  43864. +}
  43865. - if test "$linkmode" = lib; then
  43866. - if test -n "$dependency_libs" &&
  43867. - { test "$hardcode_into_libs" != yes ||
  43868. - test "$build_old_libs" = yes ||
  43869. - test "$link_static" = yes; }; then
  43870. - # Extract -R from dependency_libs
  43871. - temp_deplibs=
  43872. - for libdir in $dependency_libs; do
  43873. - case $libdir in
  43874. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  43875. - case " $xrpath " in
  43876. - *" $temp_xrpath "*) ;;
  43877. - *) xrpath="$xrpath $temp_xrpath";;
  43878. - esac;;
  43879. - *) temp_deplibs="$temp_deplibs $libdir";;
  43880. - esac
  43881. - done
  43882. - dependency_libs="$temp_deplibs"
  43883. - fi
  43884. - newlib_search_path="$newlib_search_path $absdir"
  43885. - # Link against this library
  43886. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  43887. - # ... and its dependency_libs
  43888. - tmp_libs=
  43889. - for deplib in $dependency_libs; do
  43890. - newdependency_libs="$deplib $newdependency_libs"
  43891. - if test "X$duplicate_deps" = "Xyes" ; then
  43892. - case "$tmp_libs " in
  43893. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  43894. - esac
  43895. - fi
  43896. - tmp_libs="$tmp_libs $deplib"
  43897. - done
  43898. - if test "$link_all_deplibs" != no; then
  43899. - # Add the search paths of all dependency libraries
  43900. - for deplib in $dependency_libs; do
  43901. - case $deplib in
  43902. - -L*) path="$deplib" ;;
  43903. - *.la)
  43904. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  43905. - test "X$dir" = "X$deplib" && dir="."
  43906. - # We need an absolute path.
  43907. - case $dir in
  43908. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  43909. - *)
  43910. - absdir=`cd "$dir" && pwd`
  43911. - if test -z "$absdir"; then
  43912. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  43913. - absdir="$dir"
  43914. - fi
  43915. - ;;
  43916. - esac
  43917. - if grep "^installed=no" $deplib > /dev/null; then
  43918. - path="$absdir/$objdir"
  43919. - else
  43920. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  43921. - if test -z "$libdir"; then
  43922. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  43923. - exit $EXIT_FAILURE
  43924. - fi
  43925. - if test "$absdir" != "$libdir"; then
  43926. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  43927. - fi
  43928. - path="$absdir"
  43929. - fi
  43930. - depdepl=
  43931. - case $host in
  43932. - *-*-darwin*)
  43933. - # we do not want to link against static libs,
  43934. - # but need to link against shared
  43935. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  43936. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  43937. - if test -n "$deplibrary_names" ; then
  43938. - for tmp in $deplibrary_names ; do
  43939. - depdepl=$tmp
  43940. - done
  43941. - if test -f "$deplibdir/$depdepl" ; then
  43942. - depdepl="$deplibdir/$depdepl"
  43943. - elif test -f "$path/$depdepl" ; then
  43944. - depdepl="$path/$depdepl"
  43945. - else
  43946. - # Can't find it, oh well...
  43947. - depdepl=
  43948. - fi
  43949. - # do not add paths which are already there
  43950. - case " $newlib_search_path " in
  43951. - *" $path "*) ;;
  43952. - *) newlib_search_path="$newlib_search_path $path";;
  43953. - esac
  43954. - fi
  43955. - path=""
  43956. - ;;
  43957. - *)
  43958. - path="-L$path"
  43959. - ;;
  43960. - esac
  43961. - ;;
  43962. - -l*)
  43963. - case $host in
  43964. - *-*-darwin*)
  43965. - # Again, we only want to link against shared libraries
  43966. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  43967. - for tmp in $newlib_search_path ; do
  43968. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  43969. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  43970. - break
  43971. - fi
  43972. - done
  43973. - path=""
  43974. - ;;
  43975. - *) continue ;;
  43976. - esac
  43977. - ;;
  43978. - *) continue ;;
  43979. - esac
  43980. - case " $deplibs " in
  43981. - *" $path "*) ;;
  43982. - *) deplibs="$path $deplibs" ;;
  43983. - esac
  43984. - case " $deplibs " in
  43985. - *" $depdepl "*) ;;
  43986. - *) deplibs="$depdepl $deplibs" ;;
  43987. - esac
  43988. - done
  43989. - fi # link_all_deplibs != no
  43990. - fi # linkmode = lib
  43991. - done # for deplib in $libs
  43992. - dependency_libs="$newdependency_libs"
  43993. - if test "$pass" = dlpreopen; then
  43994. - # Link the dlpreopened libraries before other libraries
  43995. - for deplib in $save_deplibs; do
  43996. - deplibs="$deplib $deplibs"
  43997. - done
  43998. - fi
  43999. - if test "$pass" != dlopen; then
  44000. - if test "$pass" != conv; then
  44001. - # Make sure lib_search_path contains only unique directories.
  44002. - lib_search_path=
  44003. - for dir in $newlib_search_path; do
  44004. - case "$lib_search_path " in
  44005. - *" $dir "*) ;;
  44006. - *) lib_search_path="$lib_search_path $dir" ;;
  44007. - esac
  44008. - done
  44009. - newlib_search_path=
  44010. +# func_emit_wrapper_part1 [arg=no]
  44011. +#
  44012. +# Emit the first part of a libtool wrapper script on stdout.
  44013. +# For more information, see the description associated with
  44014. +# func_emit_wrapper(), below.
  44015. +func_emit_wrapper_part1 ()
  44016. +{
  44017. + func_emit_wrapper_part1_arg1=no
  44018. + if test -n "$1" ; then
  44019. + func_emit_wrapper_part1_arg1=$1
  44020. fi
  44021. - if test "$linkmode,$pass" != "prog,link"; then
  44022. - vars="deplibs"
  44023. - else
  44024. - vars="compile_deplibs finalize_deplibs"
  44025. - fi
  44026. - for var in $vars dependency_libs; do
  44027. - # Add libraries to $var in reverse order
  44028. - eval tmp_libs=\"\$$var\"
  44029. - new_libs=
  44030. - for deplib in $tmp_libs; do
  44031. - # FIXME: Pedantically, this is the right thing to do, so
  44032. - # that some nasty dependency loop isn't accidentally
  44033. - # broken:
  44034. - #new_libs="$deplib $new_libs"
  44035. - # Pragmatically, this seems to cause very few problems in
  44036. - # practice:
  44037. - case $deplib in
  44038. - -L*) new_libs="$deplib $new_libs" ;;
  44039. - -R*) ;;
  44040. - *)
  44041. - # And here is the reason: when a library appears more
  44042. - # than once as an explicit dependence of a library, or
  44043. - # is implicitly linked in more than once by the
  44044. - # compiler, it is considered special, and multiple
  44045. - # occurrences thereof are not removed. Compare this
  44046. - # with having the same library being listed as a
  44047. - # dependency of multiple other libraries: in this case,
  44048. - # we know (pedantically, we assume) the library does not
  44049. - # need to be listed more than once, so we keep only the
  44050. - # last copy. This is not always right, but it is rare
  44051. - # enough that we require users that really mean to play
  44052. - # such unportable linking tricks to link the library
  44053. - # using -Wl,-lname, so that libtool does not consider it
  44054. - # for duplicate removal.
  44055. - case " $specialdeplibs " in
  44056. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  44057. - *)
  44058. - case " $new_libs " in
  44059. - *" $deplib "*) ;;
  44060. - *) new_libs="$deplib $new_libs" ;;
  44061. - esac
  44062. - ;;
  44063. - esac
  44064. - ;;
  44065. - esac
  44066. - done
  44067. - tmp_libs=
  44068. - for deplib in $new_libs; do
  44069. - case $deplib in
  44070. - -L*)
  44071. - case " $tmp_libs " in
  44072. - *" $deplib "*) ;;
  44073. - *) tmp_libs="$tmp_libs $deplib" ;;
  44074. - esac
  44075. - ;;
  44076. - *) tmp_libs="$tmp_libs $deplib" ;;
  44077. - esac
  44078. - done
  44079. - eval $var=\"$tmp_libs\"
  44080. - done # for var
  44081. - fi
  44082. - # Last step: remove runtime libs from dependency_libs
  44083. - # (they stay in deplibs)
  44084. - tmp_libs=
  44085. - for i in $dependency_libs ; do
  44086. - case " $predeps $postdeps $compiler_lib_search_path " in
  44087. - *" $i "*)
  44088. - i=""
  44089. - ;;
  44090. - esac
  44091. - if test -n "$i" ; then
  44092. - tmp_libs="$tmp_libs $i"
  44093. - fi
  44094. - done
  44095. - dependency_libs=$tmp_libs
  44096. - done # for pass
  44097. - if test "$linkmode" = prog; then
  44098. - dlfiles="$newdlfiles"
  44099. - dlprefiles="$newdlprefiles"
  44100. + $ECHO "\
  44101. +#! $SHELL
  44102. +
  44103. +# $output - temporary wrapper script for $objdir/$outputname
  44104. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  44105. +#
  44106. +# The $output program cannot be directly executed until all the libtool
  44107. +# libraries that it depends on are installed.
  44108. +#
  44109. +# This wrapper script should never be moved out of the build directory.
  44110. +# If it is, it will not operate correctly.
  44111. +
  44112. +# Sed substitution that helps us do robust quoting. It backslashifies
  44113. +# metacharacters that are still active within double-quoted strings.
  44114. +Xsed='${SED} -e 1s/^X//'
  44115. +sed_quote_subst='$sed_quote_subst'
  44116. +
  44117. +# Be Bourne compatible
  44118. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  44119. + emulate sh
  44120. + NULLCMD=:
  44121. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  44122. + # is contrary to our usage. Disable this feature.
  44123. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  44124. + setopt NO_GLOB_SUBST
  44125. +else
  44126. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  44127. +fi
  44128. +BIN_SH=xpg4; export BIN_SH # for Tru64
  44129. +DUALCASE=1; export DUALCASE # for MKS sh
  44130. +
  44131. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  44132. +# if CDPATH is set.
  44133. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  44134. +
  44135. +relink_command=\"$relink_command\"
  44136. +
  44137. +# This environment variable determines our operation mode.
  44138. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  44139. + # install mode needs the following variables:
  44140. + generated_by_libtool_version='$macro_version'
  44141. + notinst_deplibs='$notinst_deplibs'
  44142. +else
  44143. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  44144. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  44145. + ECHO=\"$qecho\"
  44146. + file=\"\$0\"
  44147. + # Make sure echo works.
  44148. + if test \"X\$1\" = X--no-reexec; then
  44149. + # Discard the --no-reexec flag, and continue.
  44150. + shift
  44151. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  44152. + # Yippee, \$ECHO works!
  44153. + :
  44154. + else
  44155. + # Restart under the correct shell, and then maybe \$ECHO will work.
  44156. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  44157. fi
  44158. + fi\
  44159. +"
  44160. + $ECHO "\
  44161. - case $linkmode in
  44162. - oldlib)
  44163. - case " $deplibs" in
  44164. - *\ -l* | *\ -L*)
  44165. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  44166. + # Find the directory that this script lives in.
  44167. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  44168. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  44169. +
  44170. + # Follow symbolic links until we get to the real thisdir.
  44171. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  44172. + while test -n \"\$file\"; do
  44173. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  44174. +
  44175. + # If there was a directory component, then change thisdir.
  44176. + if test \"x\$destdir\" != \"x\$file\"; then
  44177. + case \"\$destdir\" in
  44178. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  44179. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  44180. esac
  44181. + fi
  44182. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  44183. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  44184. - fi
  44185. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  44186. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  44187. + done
  44188. +"
  44189. +}
  44190. +# end: func_emit_wrapper_part1
  44191. - if test -n "$rpath"; then
  44192. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  44193. - fi
  44194. +# func_emit_wrapper_part2 [arg=no]
  44195. +#
  44196. +# Emit the second part of a libtool wrapper script on stdout.
  44197. +# For more information, see the description associated with
  44198. +# func_emit_wrapper(), below.
  44199. +func_emit_wrapper_part2 ()
  44200. +{
  44201. + func_emit_wrapper_part2_arg1=no
  44202. + if test -n "$1" ; then
  44203. + func_emit_wrapper_part2_arg1=$1
  44204. + fi
  44205. +
  44206. + $ECHO "\
  44207. +
  44208. + # Usually 'no', except on cygwin/mingw when embedded into
  44209. + # the cwrapper.
  44210. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  44211. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  44212. + # special case for '.'
  44213. + if test \"\$thisdir\" = \".\"; then
  44214. + thisdir=\`pwd\`
  44215. + fi
  44216. + # remove .libs from thisdir
  44217. + case \"\$thisdir\" in
  44218. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  44219. + $objdir ) thisdir=. ;;
  44220. + esac
  44221. + fi
  44222. - if test -n "$xrpath"; then
  44223. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  44224. - fi
  44225. + # Try to get the absolute directory name.
  44226. + absdir=\`cd \"\$thisdir\" && pwd\`
  44227. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  44228. +"
  44229. - if test -n "$vinfo"; then
  44230. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  44231. - fi
  44232. + if test "$fast_install" = yes; then
  44233. + $ECHO "\
  44234. + program=lt-'$outputname'$exeext
  44235. + progdir=\"\$thisdir/$objdir\"
  44236. - if test -n "$release"; then
  44237. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  44238. - fi
  44239. + if test ! -f \"\$progdir/\$program\" ||
  44240. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  44241. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  44242. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  44243. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  44244. - fi
  44245. + file=\"\$\$-\$program\"
  44246. - # Now set the variables for building old libraries.
  44247. - build_libtool_libs=no
  44248. - oldlibs="$output"
  44249. - objs="$objs$old_deplibs"
  44250. - ;;
  44251. + if test ! -d \"\$progdir\"; then
  44252. + $MKDIR \"\$progdir\"
  44253. + else
  44254. + $RM \"\$progdir/\$file\"
  44255. + fi"
  44256. - lib)
  44257. - # Make sure we only generate libraries of the form `libNAME.la'.
  44258. - case $outputname in
  44259. - lib*)
  44260. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  44261. - eval shared_ext=\"$shrext_cmds\"
  44262. - eval libname=\"$libname_spec\"
  44263. - ;;
  44264. - *)
  44265. - if test "$module" = no; then
  44266. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  44267. - $echo "$help" 1>&2
  44268. - exit $EXIT_FAILURE
  44269. - fi
  44270. - if test "$need_lib_prefix" != no; then
  44271. - # Add the "lib" prefix for modules if required
  44272. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  44273. - eval shared_ext=\"$shrext_cmds\"
  44274. - eval libname=\"$libname_spec\"
  44275. - else
  44276. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  44277. - fi
  44278. - ;;
  44279. - esac
  44280. + $ECHO "\
  44281. - if test -n "$objs"; then
  44282. - if test "$deplibs_check_method" != pass_all; then
  44283. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  44284. - exit $EXIT_FAILURE
  44285. + # relink executable if necessary
  44286. + if test -n \"\$relink_command\"; then
  44287. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  44288. + else
  44289. + $ECHO \"\$relink_command_output\" >&2
  44290. + $RM \"\$progdir/\$file\"
  44291. + exit 1
  44292. + fi
  44293. + fi
  44294. +
  44295. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  44296. + { $RM \"\$progdir/\$program\";
  44297. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  44298. + $RM \"\$progdir/\$file\"
  44299. + fi"
  44300. else
  44301. - $echo
  44302. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  44303. - $echo "*** objects $objs is not portable!"
  44304. - libobjs="$libobjs $objs"
  44305. + $ECHO "\
  44306. + program='$outputname'
  44307. + progdir=\"\$thisdir/$objdir\"
  44308. +"
  44309. fi
  44310. - fi
  44311. - if test "$dlself" != no; then
  44312. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  44313. - fi
  44314. + $ECHO "\
  44315. - set dummy $rpath
  44316. - if test "$#" -gt 2; then
  44317. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  44318. - fi
  44319. - install_libdir="$2"
  44320. + if test -f \"\$progdir/\$program\"; then"
  44321. - oldlibs=
  44322. - if test -z "$rpath"; then
  44323. - if test "$build_libtool_libs" = yes; then
  44324. - # Building a libtool convenience library.
  44325. - # Some compilers have problems with a `.al' extension so
  44326. - # convenience libraries should have the same extension an
  44327. - # archive normally would.
  44328. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  44329. - build_libtool_libs=convenience
  44330. - build_old_libs=yes
  44331. - fi
  44332. + # Export our shlibpath_var if we have one.
  44333. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  44334. + $ECHO "\
  44335. + # Add our own library path to $shlibpath_var
  44336. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  44337. - if test -n "$vinfo"; then
  44338. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  44339. + # Some systems cannot cope with colon-terminated $shlibpath_var
  44340. + # The second colon is a workaround for a bug in BeOS R4 sed
  44341. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  44342. +
  44343. + export $shlibpath_var
  44344. +"
  44345. fi
  44346. - if test -n "$release"; then
  44347. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  44348. + # fixup the dll searchpath if we need to.
  44349. + if test -n "$dllsearchpath"; then
  44350. + $ECHO "\
  44351. + # Add the dll search path components to the executable PATH
  44352. + PATH=$dllsearchpath:\$PATH
  44353. +"
  44354. fi
  44355. - else
  44356. - # Parse the version information argument.
  44357. - save_ifs="$IFS"; IFS=':'
  44358. - set dummy $vinfo 0 0 0
  44359. - IFS="$save_ifs"
  44360. + $ECHO "\
  44361. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  44362. + # Run the actual program with our arguments.
  44363. +"
  44364. + case $host in
  44365. + # Backslashes separate directories on plain windows
  44366. + *-*-mingw | *-*-os2* | *-cegcc*)
  44367. + $ECHO "\
  44368. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  44369. +"
  44370. + ;;
  44371. +
  44372. + *)
  44373. + $ECHO "\
  44374. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  44375. +"
  44376. + ;;
  44377. + esac
  44378. + $ECHO "\
  44379. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  44380. + exit 1
  44381. + fi
  44382. + else
  44383. + # The program doesn't exist.
  44384. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  44385. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  44386. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  44387. + exit 1
  44388. + fi
  44389. +fi\
  44390. +"
  44391. +}
  44392. +# end: func_emit_wrapper_part2
  44393. - if test -n "$8"; then
  44394. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  44395. - $echo "$help" 1>&2
  44396. - exit $EXIT_FAILURE
  44397. +
  44398. +# func_emit_wrapper [arg=no]
  44399. +#
  44400. +# Emit a libtool wrapper script on stdout.
  44401. +# Don't directly open a file because we may want to
  44402. +# incorporate the script contents within a cygwin/mingw
  44403. +# wrapper executable. Must ONLY be called from within
  44404. +# func_mode_link because it depends on a number of variables
  44405. +# set therein.
  44406. +#
  44407. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  44408. +# variable will take. If 'yes', then the emitted script
  44409. +# will assume that the directory in which it is stored is
  44410. +# the $objdir directory. This is a cygwin/mingw-specific
  44411. +# behavior.
  44412. +func_emit_wrapper ()
  44413. +{
  44414. + func_emit_wrapper_arg1=no
  44415. + if test -n "$1" ; then
  44416. + func_emit_wrapper_arg1=$1
  44417. fi
  44418. - # convert absolute version numbers to libtool ages
  44419. - # this retains compatibility with .la files and attempts
  44420. - # to make the code below a bit more comprehensible
  44421. + # split this up so that func_emit_cwrapperexe_src
  44422. + # can call each part independently.
  44423. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  44424. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  44425. +}
  44426. - case $vinfo_number in
  44427. - yes)
  44428. - number_major="$2"
  44429. - number_minor="$3"
  44430. - number_revision="$4"
  44431. - #
  44432. - # There are really only two kinds -- those that
  44433. - # use the current revision as the major version
  44434. - # and those that subtract age and use age as
  44435. - # a minor version. But, then there is irix
  44436. - # which has an extra 1 added just for fun
  44437. - #
  44438. - case $version_type in
  44439. - darwin|linux|osf|windows|none)
  44440. - current=`expr $number_major + $number_minor`
  44441. - age="$number_minor"
  44442. - revision="$number_revision"
  44443. - ;;
  44444. - freebsd-aout|freebsd-elf|sunos)
  44445. - current="$number_major"
  44446. - revision="$number_minor"
  44447. - age="0"
  44448. - ;;
  44449. - irix|nonstopux)
  44450. - current=`expr $number_major + $number_minor`
  44451. - age="$number_minor"
  44452. - revision="$number_minor"
  44453. - lt_irix_increment=no
  44454. - ;;
  44455. - *)
  44456. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  44457. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  44458. - exit $EXIT_FAILURE
  44459. - ;;
  44460. - esac
  44461. - ;;
  44462. - no)
  44463. - current="$2"
  44464. - revision="$3"
  44465. - age="$4"
  44466. - ;;
  44467. - esac
  44468. - # Check that each of the things are valid numbers.
  44469. - case $current in
  44470. - 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]) ;;
  44471. - *)
  44472. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  44473. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  44474. - exit $EXIT_FAILURE
  44475. - ;;
  44476. - esac
  44477. +# func_to_host_path arg
  44478. +#
  44479. +# Convert paths to host format when used with build tools.
  44480. +# Intended for use with "native" mingw (where libtool itself
  44481. +# is running under the msys shell), or in the following cross-
  44482. +# build environments:
  44483. +# $build $host
  44484. +# mingw (msys) mingw [e.g. native]
  44485. +# cygwin mingw
  44486. +# *nix + wine mingw
  44487. +# where wine is equipped with the `winepath' executable.
  44488. +# In the native mingw case, the (msys) shell automatically
  44489. +# converts paths for any non-msys applications it launches,
  44490. +# but that facility isn't available from inside the cwrapper.
  44491. +# Similar accommodations are necessary for $host mingw and
  44492. +# $build cygwin. Calling this function does no harm for other
  44493. +# $host/$build combinations not listed above.
  44494. +#
  44495. +# ARG is the path (on $build) that should be converted to
  44496. +# the proper representation for $host. The result is stored
  44497. +# in $func_to_host_path_result.
  44498. +func_to_host_path ()
  44499. +{
  44500. + func_to_host_path_result="$1"
  44501. + if test -n "$1" ; then
  44502. + case $host in
  44503. + *mingw* )
  44504. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  44505. + case $build in
  44506. + *mingw* ) # actually, msys
  44507. + # awkward: cmd appends spaces to result
  44508. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  44509. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  44510. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  44511. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  44512. + $SED -e "$lt_sed_naive_backslashify"`
  44513. + ;;
  44514. + *cygwin* )
  44515. + func_to_host_path_tmp1=`cygpath -w "$1"`
  44516. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  44517. + $SED -e "$lt_sed_naive_backslashify"`
  44518. + ;;
  44519. + * )
  44520. + # Unfortunately, winepath does not exit with a non-zero
  44521. + # error code, so we are forced to check the contents of
  44522. + # stdout. On the other hand, if the command is not
  44523. + # found, the shell will set an exit code of 127 and print
  44524. + # *an error message* to stdout. So we must check for both
  44525. + # error code of zero AND non-empty stdout, which explains
  44526. + # the odd construction:
  44527. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  44528. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  44529. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  44530. + $SED -e "$lt_sed_naive_backslashify"`
  44531. + else
  44532. + # Allow warning below.
  44533. + func_to_host_path_result=""
  44534. + fi
  44535. + ;;
  44536. + esac
  44537. + if test -z "$func_to_host_path_result" ; then
  44538. + func_error "Could not determine host path corresponding to"
  44539. + func_error " '$1'"
  44540. + func_error "Continuing, but uninstalled executables may not work."
  44541. + # Fallback:
  44542. + func_to_host_path_result="$1"
  44543. + fi
  44544. + ;;
  44545. + esac
  44546. + fi
  44547. +}
  44548. +# end: func_to_host_path
  44549. - case $revision in
  44550. - 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]) ;;
  44551. - *)
  44552. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  44553. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  44554. - exit $EXIT_FAILURE
  44555. - ;;
  44556. - esac
  44557. +# func_to_host_pathlist arg
  44558. +#
  44559. +# Convert pathlists to host format when used with build tools.
  44560. +# See func_to_host_path(), above. This function supports the
  44561. +# following $build/$host combinations (but does no harm for
  44562. +# combinations not listed here):
  44563. +# $build $host
  44564. +# mingw (msys) mingw [e.g. native]
  44565. +# cygwin mingw
  44566. +# *nix + wine mingw
  44567. +#
  44568. +# Path separators are also converted from $build format to
  44569. +# $host format. If ARG begins or ends with a path separator
  44570. +# character, it is preserved (but converted to $host format)
  44571. +# on output.
  44572. +#
  44573. +# ARG is a pathlist (on $build) that should be converted to
  44574. +# the proper representation on $host. The result is stored
  44575. +# in $func_to_host_pathlist_result.
  44576. +func_to_host_pathlist ()
  44577. +{
  44578. + func_to_host_pathlist_result="$1"
  44579. + if test -n "$1" ; then
  44580. + case $host in
  44581. + *mingw* )
  44582. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  44583. + # Remove leading and trailing path separator characters from
  44584. + # ARG. msys behavior is inconsistent here, cygpath turns them
  44585. + # into '.;' and ';.', and winepath ignores them completely.
  44586. + func_to_host_pathlist_tmp2="$1"
  44587. + # Once set for this call, this variable should not be
  44588. + # reassigned. It is used in tha fallback case.
  44589. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  44590. + $SED -e 's|^:*||' -e 's|:*$||'`
  44591. + case $build in
  44592. + *mingw* ) # Actually, msys.
  44593. + # Awkward: cmd appends spaces to result.
  44594. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  44595. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  44596. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  44597. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  44598. + $SED -e "$lt_sed_naive_backslashify"`
  44599. + ;;
  44600. + *cygwin* )
  44601. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  44602. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  44603. + $SED -e "$lt_sed_naive_backslashify"`
  44604. + ;;
  44605. + * )
  44606. + # unfortunately, winepath doesn't convert pathlists
  44607. + func_to_host_pathlist_result=""
  44608. + func_to_host_pathlist_oldIFS=$IFS
  44609. + IFS=:
  44610. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  44611. + IFS=$func_to_host_pathlist_oldIFS
  44612. + if test -n "$func_to_host_pathlist_f" ; then
  44613. + func_to_host_path "$func_to_host_pathlist_f"
  44614. + if test -n "$func_to_host_path_result" ; then
  44615. + if test -z "$func_to_host_pathlist_result" ; then
  44616. + func_to_host_pathlist_result="$func_to_host_path_result"
  44617. + else
  44618. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  44619. + fi
  44620. + fi
  44621. + fi
  44622. + IFS=:
  44623. + done
  44624. + IFS=$func_to_host_pathlist_oldIFS
  44625. + ;;
  44626. + esac
  44627. + if test -z "$func_to_host_pathlist_result" ; then
  44628. + func_error "Could not determine the host path(s) corresponding to"
  44629. + func_error " '$1'"
  44630. + func_error "Continuing, but uninstalled executables may not work."
  44631. + # Fallback. This may break if $1 contains DOS-style drive
  44632. + # specifications. The fix is not to complicate the expression
  44633. + # below, but for the user to provide a working wine installation
  44634. + # with winepath so that path translation in the cross-to-mingw
  44635. + # case works properly.
  44636. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  44637. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  44638. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  44639. + fi
  44640. + # Now, add the leading and trailing path separators back
  44641. + case "$1" in
  44642. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  44643. + ;;
  44644. + esac
  44645. + case "$1" in
  44646. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  44647. + ;;
  44648. + esac
  44649. + ;;
  44650. + esac
  44651. + fi
  44652. +}
  44653. +# end: func_to_host_pathlist
  44654. - case $age in
  44655. - 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]) ;;
  44656. - *)
  44657. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  44658. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  44659. - exit $EXIT_FAILURE
  44660. - ;;
  44661. - esac
  44662. +# func_emit_cwrapperexe_src
  44663. +# emit the source code for a wrapper executable on stdout
  44664. +# Must ONLY be called from within func_mode_link because
  44665. +# it depends on a number of variable set therein.
  44666. +func_emit_cwrapperexe_src ()
  44667. +{
  44668. + cat <<EOF
  44669. - if test "$age" -gt "$current"; then
  44670. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  44671. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  44672. - exit $EXIT_FAILURE
  44673. - fi
  44674. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  44675. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  44676. - # Calculate the version variables.
  44677. - major=
  44678. - versuffix=
  44679. - verstring=
  44680. - case $version_type in
  44681. - none) ;;
  44682. + The $output program cannot be directly executed until all the libtool
  44683. + libraries that it depends on are installed.
  44684. - darwin)
  44685. - # Like Linux, but with the current version available in
  44686. - # verstring for coding it into the library header
  44687. - major=.`expr $current - $age`
  44688. - versuffix="$major.$age.$revision"
  44689. - # Darwin ld doesn't like 0 for these options...
  44690. - minor_current=`expr $current + 1`
  44691. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  44692. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  44693. - ;;
  44694. + This wrapper executable should never be moved out of the build directory.
  44695. + If it is, it will not operate correctly.
  44696. - freebsd-aout)
  44697. - major=".$current"
  44698. - versuffix=".$current.$revision";
  44699. - ;;
  44700. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  44701. + but could eventually absorb all of the scripts functionality and
  44702. + exec $objdir/$outputname directly.
  44703. +*/
  44704. +EOF
  44705. + cat <<"EOF"
  44706. +#include <stdio.h>
  44707. +#include <stdlib.h>
  44708. +#ifdef _MSC_VER
  44709. +# include <direct.h>
  44710. +# include <process.h>
  44711. +# include <io.h>
  44712. +# define setmode _setmode
  44713. +#else
  44714. +# include <unistd.h>
  44715. +# include <stdint.h>
  44716. +# ifdef __CYGWIN__
  44717. +# include <io.h>
  44718. +# define HAVE_SETENV
  44719. +# ifdef __STRICT_ANSI__
  44720. +char *realpath (const char *, char *);
  44721. +int putenv (char *);
  44722. +int setenv (const char *, const char *, int);
  44723. +# endif
  44724. +# endif
  44725. +#endif
  44726. +#include <malloc.h>
  44727. +#include <stdarg.h>
  44728. +#include <assert.h>
  44729. +#include <string.h>
  44730. +#include <ctype.h>
  44731. +#include <errno.h>
  44732. +#include <fcntl.h>
  44733. +#include <sys/stat.h>
  44734. - freebsd-elf)
  44735. - major=".$current"
  44736. - versuffix=".$current";
  44737. - ;;
  44738. +#if defined(PATH_MAX)
  44739. +# define LT_PATHMAX PATH_MAX
  44740. +#elif defined(MAXPATHLEN)
  44741. +# define LT_PATHMAX MAXPATHLEN
  44742. +#else
  44743. +# define LT_PATHMAX 1024
  44744. +#endif
  44745. - irix | nonstopux)
  44746. - if test "X$lt_irix_increment" = "Xno"; then
  44747. - major=`expr $current - $age`
  44748. - else
  44749. - major=`expr $current - $age + 1`
  44750. - fi
  44751. - case $version_type in
  44752. - nonstopux) verstring_prefix=nonstopux ;;
  44753. - *) verstring_prefix=sgi ;;
  44754. - esac
  44755. - verstring="$verstring_prefix$major.$revision"
  44756. +#ifndef S_IXOTH
  44757. +# define S_IXOTH 0
  44758. +#endif
  44759. +#ifndef S_IXGRP
  44760. +# define S_IXGRP 0
  44761. +#endif
  44762. - # Add in all the interfaces that we are compatible with.
  44763. - loop=$revision
  44764. - while test "$loop" -ne 0; do
  44765. - iface=`expr $revision - $loop`
  44766. - loop=`expr $loop - 1`
  44767. - verstring="$verstring_prefix$major.$iface:$verstring"
  44768. - done
  44769. +#ifdef _MSC_VER
  44770. +# define S_IXUSR _S_IEXEC
  44771. +# define stat _stat
  44772. +# ifndef _INTPTR_T_DEFINED
  44773. +# define intptr_t int
  44774. +# endif
  44775. +#endif
  44776. - # Before this point, $major must not contain `.'.
  44777. - major=.$major
  44778. - versuffix="$major.$revision"
  44779. - ;;
  44780. +#ifndef DIR_SEPARATOR
  44781. +# define DIR_SEPARATOR '/'
  44782. +# define PATH_SEPARATOR ':'
  44783. +#endif
  44784. - linux)
  44785. - major=.`expr $current - $age`
  44786. - versuffix="$major.$age.$revision"
  44787. - ;;
  44788. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  44789. + defined (__OS2__)
  44790. +# define HAVE_DOS_BASED_FILE_SYSTEM
  44791. +# define FOPEN_WB "wb"
  44792. +# ifndef DIR_SEPARATOR_2
  44793. +# define DIR_SEPARATOR_2 '\\'
  44794. +# endif
  44795. +# ifndef PATH_SEPARATOR_2
  44796. +# define PATH_SEPARATOR_2 ';'
  44797. +# endif
  44798. +#endif
  44799. - osf)
  44800. - major=.`expr $current - $age`
  44801. - versuffix=".$current.$age.$revision"
  44802. - verstring="$current.$age.$revision"
  44803. +#ifndef DIR_SEPARATOR_2
  44804. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  44805. +#else /* DIR_SEPARATOR_2 */
  44806. +# define IS_DIR_SEPARATOR(ch) \
  44807. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  44808. +#endif /* DIR_SEPARATOR_2 */
  44809. - # Add in all the interfaces that we are compatible with.
  44810. - loop=$age
  44811. - while test "$loop" -ne 0; do
  44812. - iface=`expr $current - $loop`
  44813. - loop=`expr $loop - 1`
  44814. - verstring="$verstring:${iface}.0"
  44815. - done
  44816. +#ifndef PATH_SEPARATOR_2
  44817. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  44818. +#else /* PATH_SEPARATOR_2 */
  44819. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  44820. +#endif /* PATH_SEPARATOR_2 */
  44821. - # Make executables depend on our current version.
  44822. - verstring="$verstring:${current}.0"
  44823. - ;;
  44824. +#ifdef __CYGWIN__
  44825. +# define FOPEN_WB "wb"
  44826. +#endif
  44827. - sunos)
  44828. - major=".$current"
  44829. - versuffix=".$current.$revision"
  44830. - ;;
  44831. +#ifndef FOPEN_WB
  44832. +# define FOPEN_WB "w"
  44833. +#endif
  44834. +#ifndef _O_BINARY
  44835. +# define _O_BINARY 0
  44836. +#endif
  44837. - windows)
  44838. - # Use '-' rather than '.', since we only want one
  44839. - # extension on DOS 8.3 filesystems.
  44840. - major=`expr $current - $age`
  44841. - versuffix="-$major"
  44842. - ;;
  44843. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  44844. +#define XFREE(stale) do { \
  44845. + if (stale) { free ((void *) stale); stale = 0; } \
  44846. +} while (0)
  44847. - *)
  44848. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  44849. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  44850. - exit $EXIT_FAILURE
  44851. - ;;
  44852. - esac
  44853. +#undef LTWRAPPER_DEBUGPRINTF
  44854. +#if defined DEBUGWRAPPER
  44855. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  44856. +static void
  44857. +ltwrapper_debugprintf (const char *fmt, ...)
  44858. +{
  44859. + va_list args;
  44860. + va_start (args, fmt);
  44861. + (void) vfprintf (stderr, fmt, args);
  44862. + va_end (args);
  44863. +}
  44864. +#else
  44865. +# define LTWRAPPER_DEBUGPRINTF(args)
  44866. +#endif
  44867. - # Clear the version info if we defaulted, and they specified a release.
  44868. - if test -z "$vinfo" && test -n "$release"; then
  44869. - major=
  44870. - case $version_type in
  44871. - darwin)
  44872. - # we can't check for "0.0" in archive_cmds due to quoting
  44873. - # problems, so we reset it completely
  44874. - verstring=
  44875. - ;;
  44876. - *)
  44877. - verstring="0.0"
  44878. - ;;
  44879. - esac
  44880. - if test "$need_version" = no; then
  44881. - versuffix=
  44882. - else
  44883. - versuffix=".0.0"
  44884. - fi
  44885. - fi
  44886. +const char *program_name = NULL;
  44887. - # Remove version info from name if versioning should be avoided
  44888. - if test "$avoid_version" = yes && test "$need_version" = no; then
  44889. - major=
  44890. - versuffix=
  44891. - verstring=""
  44892. - fi
  44893. +void *xmalloc (size_t num);
  44894. +char *xstrdup (const char *string);
  44895. +const char *base_name (const char *name);
  44896. +char *find_executable (const char *wrapper);
  44897. +char *chase_symlinks (const char *pathspec);
  44898. +int make_executable (const char *path);
  44899. +int check_executable (const char *path);
  44900. +char *strendzap (char *str, const char *pat);
  44901. +void lt_fatal (const char *message, ...);
  44902. +void lt_setenv (const char *name, const char *value);
  44903. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  44904. +void lt_opt_process_env_set (const char *arg);
  44905. +void lt_opt_process_env_prepend (const char *arg);
  44906. +void lt_opt_process_env_append (const char *arg);
  44907. +int lt_split_name_value (const char *arg, char** name, char** value);
  44908. +void lt_update_exe_path (const char *name, const char *value);
  44909. +void lt_update_lib_path (const char *name, const char *value);
  44910. - # Check to see if the archive will have undefined symbols.
  44911. - if test "$allow_undefined" = yes; then
  44912. - if test "$allow_undefined_flag" = unsupported; then
  44913. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  44914. - build_libtool_libs=no
  44915. - build_old_libs=yes
  44916. - fi
  44917. - else
  44918. - # Don't allow undefined symbols.
  44919. - allow_undefined_flag="$no_undefined_flag"
  44920. - fi
  44921. - fi
  44922. +static const char *script_text_part1 =
  44923. +EOF
  44924. - if test "$mode" != relink; then
  44925. - # Remove our outputs, but don't remove object files since they
  44926. - # may have been created when compiling PIC objects.
  44927. - removelist=
  44928. - tempremovelist=`$echo "$output_objdir/*"`
  44929. - for p in $tempremovelist; do
  44930. - case $p in
  44931. - *.$objext)
  44932. - ;;
  44933. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  44934. - if test "X$precious_files_regex" != "X"; then
  44935. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  44936. - then
  44937. - continue
  44938. - fi
  44939. - fi
  44940. - removelist="$removelist $p"
  44941. - ;;
  44942. - *) ;;
  44943. - esac
  44944. - done
  44945. - if test -n "$removelist"; then
  44946. - $show "${rm}r $removelist"
  44947. - $run ${rm}r $removelist
  44948. - fi
  44949. - fi
  44950. + func_emit_wrapper_part1 yes |
  44951. + $SED -e 's/\([\\"]\)/\\\1/g' \
  44952. + -e 's/^/ "/' -e 's/$/\\n"/'
  44953. + echo ";"
  44954. + cat <<EOF
  44955. - # Now set the variables for building old libraries.
  44956. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  44957. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  44958. +static const char *script_text_part2 =
  44959. +EOF
  44960. + func_emit_wrapper_part2 yes |
  44961. + $SED -e 's/\([\\"]\)/\\\1/g' \
  44962. + -e 's/^/ "/' -e 's/$/\\n"/'
  44963. + echo ";"
  44964. +
  44965. + cat <<EOF
  44966. +const char * MAGIC_EXE = "$magic_exe";
  44967. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  44968. +EOF
  44969. - # Transform .lo files to .o files.
  44970. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  44971. - fi
  44972. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  44973. + func_to_host_pathlist "$temp_rpath"
  44974. + cat <<EOF
  44975. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  44976. +EOF
  44977. + else
  44978. + cat <<"EOF"
  44979. +const char * LIB_PATH_VALUE = "";
  44980. +EOF
  44981. + fi
  44982. - # Eliminate all temporary directories.
  44983. - #for path in $notinst_path; do
  44984. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  44985. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  44986. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  44987. - #done
  44988. + if test -n "$dllsearchpath"; then
  44989. + func_to_host_pathlist "$dllsearchpath:"
  44990. + cat <<EOF
  44991. +const char * EXE_PATH_VARNAME = "PATH";
  44992. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  44993. +EOF
  44994. + else
  44995. + cat <<"EOF"
  44996. +const char * EXE_PATH_VARNAME = "";
  44997. +const char * EXE_PATH_VALUE = "";
  44998. +EOF
  44999. + fi
  45000. - if test -n "$xrpath"; then
  45001. - # If the user specified any rpath flags, then add them.
  45002. - temp_xrpath=
  45003. - for libdir in $xrpath; do
  45004. - temp_xrpath="$temp_xrpath -R$libdir"
  45005. - case "$finalize_rpath " in
  45006. - *" $libdir "*) ;;
  45007. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  45008. - esac
  45009. - done
  45010. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  45011. - dependency_libs="$temp_xrpath $dependency_libs"
  45012. - fi
  45013. - fi
  45014. + if test "$fast_install" = yes; then
  45015. + cat <<EOF
  45016. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  45017. +EOF
  45018. + else
  45019. + cat <<EOF
  45020. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  45021. +EOF
  45022. + fi
  45023. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  45024. - old_dlfiles="$dlfiles"
  45025. - dlfiles=
  45026. - for lib in $old_dlfiles; do
  45027. - case " $dlprefiles $dlfiles " in
  45028. - *" $lib "*) ;;
  45029. - *) dlfiles="$dlfiles $lib" ;;
  45030. - esac
  45031. - done
  45032. - # Make sure dlprefiles contains only unique files
  45033. - old_dlprefiles="$dlprefiles"
  45034. - dlprefiles=
  45035. - for lib in $old_dlprefiles; do
  45036. - case "$dlprefiles " in
  45037. - *" $lib "*) ;;
  45038. - *) dlprefiles="$dlprefiles $lib" ;;
  45039. - esac
  45040. - done
  45041. + cat <<"EOF"
  45042. - if test "$build_libtool_libs" = yes; then
  45043. - if test -n "$rpath"; then
  45044. - case $host in
  45045. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  45046. - # these systems don't actually have a c library (as such)!
  45047. - ;;
  45048. - *-*-rhapsody* | *-*-darwin1.[012])
  45049. - # Rhapsody C library is in the System framework
  45050. - deplibs="$deplibs -framework System"
  45051. - ;;
  45052. - *-*-netbsd*)
  45053. - # Don't link with libc until the a.out ld.so is fixed.
  45054. - ;;
  45055. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45056. - # Do not include libc due to us having libc/libc_r.
  45057. - ;;
  45058. - *-*-sco3.2v5* | *-*-sco5v6*)
  45059. - # Causes problems with __ctype
  45060. - ;;
  45061. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  45062. - # Compiler inserts libc in the correct place for threads to work
  45063. - ;;
  45064. - *)
  45065. - # Add libc to deplibs on all other systems if necessary.
  45066. - if test "$build_libtool_need_lc" = "yes"; then
  45067. - deplibs="$deplibs -lc"
  45068. - fi
  45069. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  45070. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  45071. +
  45072. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  45073. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  45074. +
  45075. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  45076. +
  45077. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  45078. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  45079. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  45080. +
  45081. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  45082. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  45083. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  45084. +
  45085. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  45086. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  45087. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  45088. +
  45089. +int
  45090. +main (int argc, char *argv[])
  45091. +{
  45092. + char **newargz;
  45093. + int newargc;
  45094. + char *tmp_pathspec;
  45095. + char *actual_cwrapper_path;
  45096. + char *actual_cwrapper_name;
  45097. + char *target_name;
  45098. + char *lt_argv_zero;
  45099. + intptr_t rval = 127;
  45100. +
  45101. + int i;
  45102. +
  45103. + program_name = (char *) xstrdup (base_name (argv[0]));
  45104. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  45105. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  45106. +
  45107. + /* very simple arg parsing; don't want to rely on getopt */
  45108. + for (i = 1; i < argc; i++)
  45109. + {
  45110. + if (strcmp (argv[i], dumpscript_opt) == 0)
  45111. + {
  45112. +EOF
  45113. + case "$host" in
  45114. + *mingw* | *cygwin* )
  45115. + # make stdout use "unix" line endings
  45116. + echo " setmode(1,_O_BINARY);"
  45117. + ;;
  45118. + esac
  45119. +
  45120. + cat <<"EOF"
  45121. + printf ("%s", script_text_part1);
  45122. + printf ("%s", script_text_part2);
  45123. + return 0;
  45124. + }
  45125. + }
  45126. +
  45127. + newargz = XMALLOC (char *, argc + 1);
  45128. + tmp_pathspec = find_executable (argv[0]);
  45129. + if (tmp_pathspec == NULL)
  45130. + lt_fatal ("Couldn't find %s", argv[0]);
  45131. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  45132. + tmp_pathspec));
  45133. +
  45134. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  45135. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  45136. + actual_cwrapper_path));
  45137. + XFREE (tmp_pathspec);
  45138. +
  45139. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  45140. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  45141. +
  45142. + /* wrapper name transforms */
  45143. + strendzap (actual_cwrapper_name, ".exe");
  45144. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  45145. + XFREE (actual_cwrapper_name);
  45146. + actual_cwrapper_name = tmp_pathspec;
  45147. + tmp_pathspec = 0;
  45148. +
  45149. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  45150. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  45151. + strendzap (target_name, ".exe");
  45152. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  45153. + XFREE (target_name);
  45154. + target_name = tmp_pathspec;
  45155. + tmp_pathspec = 0;
  45156. +
  45157. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  45158. + target_name));
  45159. +EOF
  45160. +
  45161. + cat <<EOF
  45162. + newargz[0] =
  45163. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  45164. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  45165. + strcpy (newargz[0], actual_cwrapper_path);
  45166. + strcat (newargz[0], "$objdir");
  45167. + strcat (newargz[0], "/");
  45168. +EOF
  45169. +
  45170. + cat <<"EOF"
  45171. + /* stop here, and copy so we don't have to do this twice */
  45172. + tmp_pathspec = xstrdup (newargz[0]);
  45173. +
  45174. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  45175. + strcat (newargz[0], actual_cwrapper_name);
  45176. +
  45177. + /* DO want the lt- prefix here if it exists, so use target_name */
  45178. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  45179. + XFREE (tmp_pathspec);
  45180. + tmp_pathspec = NULL;
  45181. +EOF
  45182. +
  45183. + case $host_os in
  45184. + mingw*)
  45185. + cat <<"EOF"
  45186. + {
  45187. + char* p;
  45188. + while ((p = strchr (newargz[0], '\\')) != NULL)
  45189. + {
  45190. + *p = '/';
  45191. + }
  45192. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  45193. + {
  45194. + *p = '/';
  45195. + }
  45196. + }
  45197. +EOF
  45198. ;;
  45199. - esac
  45200. - fi
  45201. + esac
  45202. +
  45203. + cat <<"EOF"
  45204. + XFREE (target_name);
  45205. + XFREE (actual_cwrapper_path);
  45206. + XFREE (actual_cwrapper_name);
  45207. +
  45208. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  45209. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  45210. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  45211. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  45212. +
  45213. + newargc=0;
  45214. + for (i = 1; i < argc; i++)
  45215. + {
  45216. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  45217. + {
  45218. + if (argv[i][env_set_opt_len] == '=')
  45219. + {
  45220. + const char *p = argv[i] + env_set_opt_len + 1;
  45221. + lt_opt_process_env_set (p);
  45222. + }
  45223. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  45224. + {
  45225. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  45226. + }
  45227. + else
  45228. + lt_fatal ("%s missing required argument", env_set_opt);
  45229. + continue;
  45230. + }
  45231. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  45232. + {
  45233. + if (argv[i][env_prepend_opt_len] == '=')
  45234. + {
  45235. + const char *p = argv[i] + env_prepend_opt_len + 1;
  45236. + lt_opt_process_env_prepend (p);
  45237. + }
  45238. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  45239. + {
  45240. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  45241. + }
  45242. + else
  45243. + lt_fatal ("%s missing required argument", env_prepend_opt);
  45244. + continue;
  45245. + }
  45246. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  45247. + {
  45248. + if (argv[i][env_append_opt_len] == '=')
  45249. + {
  45250. + const char *p = argv[i] + env_append_opt_len + 1;
  45251. + lt_opt_process_env_append (p);
  45252. + }
  45253. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  45254. + {
  45255. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  45256. + }
  45257. + else
  45258. + lt_fatal ("%s missing required argument", env_append_opt);
  45259. + continue;
  45260. + }
  45261. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  45262. + {
  45263. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  45264. + namespace, but it is not one of the ones we know about and
  45265. + have already dealt with, above (inluding dump-script), then
  45266. + report an error. Otherwise, targets might begin to believe
  45267. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  45268. + namespace. The first time any user complains about this, we'll
  45269. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  45270. + or a configure.ac-settable value.
  45271. + */
  45272. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  45273. + ltwrapper_option_prefix, argv[i]);
  45274. + }
  45275. + /* otherwise ... */
  45276. + newargz[++newargc] = xstrdup (argv[i]);
  45277. + }
  45278. + newargz[++newargc] = NULL;
  45279. +
  45280. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  45281. + for (i = 0; i < newargc; i++)
  45282. + {
  45283. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  45284. + }
  45285. - # Transform deplibs into only deplibs that can be linked in shared.
  45286. - name_save=$name
  45287. - libname_save=$libname
  45288. - release_save=$release
  45289. - versuffix_save=$versuffix
  45290. - major_save=$major
  45291. - # I'm not sure if I'm treating the release correctly. I think
  45292. - # release should show up in the -l (ie -lgmp5) so we don't want to
  45293. - # add it in twice. Is that correct?
  45294. - release=""
  45295. - versuffix=""
  45296. - major=""
  45297. - newdeplibs=
  45298. - droppeddeps=no
  45299. - case $deplibs_check_method in
  45300. - pass_all)
  45301. - # Don't check for shared/static. Everything works.
  45302. - # This might be a little naive. We might want to check
  45303. - # whether the library exists or not. But this is on
  45304. - # osf3 & osf4 and I'm not really sure... Just
  45305. - # implementing what was already the behavior.
  45306. - newdeplibs=$deplibs
  45307. - ;;
  45308. - test_compile)
  45309. - # This code stresses the "libraries are programs" paradigm to its
  45310. - # limits. Maybe even breaks it. We compile a program, linking it
  45311. - # against the deplibs as a proxy for the library. Then we can check
  45312. - # whether they linked in statically or dynamically with ldd.
  45313. - $rm conftest.c
  45314. - cat > conftest.c <<EOF
  45315. - int main() { return 0; }
  45316. EOF
  45317. - $rm conftest
  45318. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  45319. - ldd_output=`ldd conftest`
  45320. - for i in $deplibs; do
  45321. - name=`expr $i : '-l\(.*\)'`
  45322. - # If $name is empty we are operating on a -L argument.
  45323. - if test "$name" != "" && test "$name" != "0"; then
  45324. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45325. - case " $predeps $postdeps " in
  45326. - *" $i "*)
  45327. - newdeplibs="$newdeplibs $i"
  45328. - i=""
  45329. - ;;
  45330. - esac
  45331. - fi
  45332. - if test -n "$i" ; then
  45333. - libname=`eval \\$echo \"$libname_spec\"`
  45334. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  45335. - set dummy $deplib_matches
  45336. - deplib_match=$2
  45337. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  45338. - newdeplibs="$newdeplibs $i"
  45339. - else
  45340. - droppeddeps=yes
  45341. - $echo
  45342. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  45343. - $echo "*** I have the capability to make that library automatically link in when"
  45344. - $echo "*** you link to this library. But I can only do this if you have a"
  45345. - $echo "*** shared version of the library, which I believe you do not have"
  45346. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  45347. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  45348. - fi
  45349. - fi
  45350. - else
  45351. - newdeplibs="$newdeplibs $i"
  45352. - fi
  45353. - done
  45354. - else
  45355. - # Error occurred in the first compile. Let's try to salvage
  45356. - # the situation: Compile a separate program for each library.
  45357. - for i in $deplibs; do
  45358. - name=`expr $i : '-l\(.*\)'`
  45359. - # If $name is empty we are operating on a -L argument.
  45360. - if test "$name" != "" && test "$name" != "0"; then
  45361. - $rm conftest
  45362. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  45363. - ldd_output=`ldd conftest`
  45364. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45365. - case " $predeps $postdeps " in
  45366. - *" $i "*)
  45367. - newdeplibs="$newdeplibs $i"
  45368. - i=""
  45369. - ;;
  45370. - esac
  45371. - fi
  45372. - if test -n "$i" ; then
  45373. - libname=`eval \\$echo \"$libname_spec\"`
  45374. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  45375. - set dummy $deplib_matches
  45376. - deplib_match=$2
  45377. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  45378. - newdeplibs="$newdeplibs $i"
  45379. - else
  45380. - droppeddeps=yes
  45381. - $echo
  45382. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  45383. - $echo "*** I have the capability to make that library automatically link in when"
  45384. - $echo "*** you link to this library. But I can only do this if you have a"
  45385. - $echo "*** shared version of the library, which you do not appear to have"
  45386. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  45387. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  45388. - fi
  45389. - fi
  45390. - else
  45391. - droppeddeps=yes
  45392. - $echo
  45393. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  45394. - $echo "*** make it link in! You will probably need to install it or some"
  45395. - $echo "*** library that it depends on before this library will be fully"
  45396. - $echo "*** functional. Installing it before continuing would be even better."
  45397. - fi
  45398. - else
  45399. - newdeplibs="$newdeplibs $i"
  45400. - fi
  45401. - done
  45402. - fi
  45403. - ;;
  45404. - file_magic*)
  45405. - set dummy $deplibs_check_method
  45406. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  45407. - for a_deplib in $deplibs; do
  45408. - name=`expr $a_deplib : '-l\(.*\)'`
  45409. - # If $name is empty we are operating on a -L argument.
  45410. - if test "$name" != "" && test "$name" != "0"; then
  45411. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45412. - case " $predeps $postdeps " in
  45413. - *" $a_deplib "*)
  45414. - newdeplibs="$newdeplibs $a_deplib"
  45415. - a_deplib=""
  45416. - ;;
  45417. - esac
  45418. - fi
  45419. - if test -n "$a_deplib" ; then
  45420. - libname=`eval \\$echo \"$libname_spec\"`
  45421. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  45422. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  45423. - for potent_lib in $potential_libs; do
  45424. - # Follow soft links.
  45425. - if ls -lLd "$potent_lib" 2>/dev/null \
  45426. - | grep " -> " >/dev/null; then
  45427. - continue
  45428. - fi
  45429. - # The statement above tries to avoid entering an
  45430. - # endless loop below, in case of cyclic links.
  45431. - # We might still enter an endless loop, since a link
  45432. - # loop can be closed while we follow links,
  45433. - # but so what?
  45434. - potlib="$potent_lib"
  45435. - while test -h "$potlib" 2>/dev/null; do
  45436. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  45437. - case $potliblink in
  45438. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  45439. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  45440. - esac
  45441. - done
  45442. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  45443. - | ${SED} 10q \
  45444. - | $EGREP "$file_magic_regex" > /dev/null; then
  45445. - newdeplibs="$newdeplibs $a_deplib"
  45446. - a_deplib=""
  45447. - break 2
  45448. - fi
  45449. - done
  45450. - done
  45451. - fi
  45452. - if test -n "$a_deplib" ; then
  45453. - droppeddeps=yes
  45454. - $echo
  45455. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  45456. - $echo "*** I have the capability to make that library automatically link in when"
  45457. - $echo "*** you link to this library. But I can only do this if you have a"
  45458. - $echo "*** shared version of the library, which you do not appear to have"
  45459. - $echo "*** because I did check the linker path looking for a file starting"
  45460. - if test -z "$potlib" ; then
  45461. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  45462. - else
  45463. - $echo "*** with $libname and none of the candidates passed a file format test"
  45464. - $echo "*** using a file magic. Last file checked: $potlib"
  45465. - fi
  45466. - fi
  45467. - else
  45468. - # Add a -L argument.
  45469. - newdeplibs="$newdeplibs $a_deplib"
  45470. - fi
  45471. - done # Gone through all deplibs.
  45472. - ;;
  45473. - match_pattern*)
  45474. - set dummy $deplibs_check_method
  45475. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  45476. - for a_deplib in $deplibs; do
  45477. - name=`expr $a_deplib : '-l\(.*\)'`
  45478. - # If $name is empty we are operating on a -L argument.
  45479. - if test -n "$name" && test "$name" != "0"; then
  45480. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45481. - case " $predeps $postdeps " in
  45482. - *" $a_deplib "*)
  45483. - newdeplibs="$newdeplibs $a_deplib"
  45484. - a_deplib=""
  45485. - ;;
  45486. - esac
  45487. - fi
  45488. - if test -n "$a_deplib" ; then
  45489. - libname=`eval \\$echo \"$libname_spec\"`
  45490. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  45491. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  45492. - for potent_lib in $potential_libs; do
  45493. - potlib="$potent_lib" # see symlink-check above in file_magic test
  45494. - if eval $echo \"$potent_lib\" 2>/dev/null \
  45495. - | ${SED} 10q \
  45496. - | $EGREP "$match_pattern_regex" > /dev/null; then
  45497. - newdeplibs="$newdeplibs $a_deplib"
  45498. - a_deplib=""
  45499. - break 2
  45500. - fi
  45501. - done
  45502. - done
  45503. - fi
  45504. - if test -n "$a_deplib" ; then
  45505. - droppeddeps=yes
  45506. - $echo
  45507. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  45508. - $echo "*** I have the capability to make that library automatically link in when"
  45509. - $echo "*** you link to this library. But I can only do this if you have a"
  45510. - $echo "*** shared version of the library, which you do not appear to have"
  45511. - $echo "*** because I did check the linker path looking for a file starting"
  45512. - if test -z "$potlib" ; then
  45513. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  45514. - else
  45515. - $echo "*** with $libname and none of the candidates passed a file format test"
  45516. - $echo "*** using a regex pattern. Last file checked: $potlib"
  45517. - fi
  45518. - fi
  45519. - else
  45520. - # Add a -L argument.
  45521. - newdeplibs="$newdeplibs $a_deplib"
  45522. - fi
  45523. - done # Gone through all deplibs.
  45524. - ;;
  45525. - none | unknown | *)
  45526. - newdeplibs=""
  45527. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  45528. - -e 's/ -[LR][^ ]*//g'`
  45529. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45530. - for i in $predeps $postdeps ; do
  45531. - # can't use Xsed below, because $i might contain '/'
  45532. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  45533. - done
  45534. - fi
  45535. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  45536. - | grep . >/dev/null; then
  45537. - $echo
  45538. - if test "X$deplibs_check_method" = "Xnone"; then
  45539. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  45540. - else
  45541. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  45542. - fi
  45543. - $echo "*** All declared inter-library dependencies are being dropped."
  45544. - droppeddeps=yes
  45545. - fi
  45546. - ;;
  45547. - esac
  45548. - versuffix=$versuffix_save
  45549. - major=$major_save
  45550. - release=$release_save
  45551. - libname=$libname_save
  45552. - name=$name_save
  45553. - case $host in
  45554. - *-*-rhapsody* | *-*-darwin1.[012])
  45555. - # On Rhapsody replace the C library is the System framework
  45556. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  45557. - ;;
  45558. - esac
  45559. + case $host_os in
  45560. + mingw*)
  45561. + cat <<"EOF"
  45562. + /* execv doesn't actually work on mingw as expected on unix */
  45563. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  45564. + if (rval == -1)
  45565. + {
  45566. + /* failed to start process */
  45567. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  45568. + return 127;
  45569. + }
  45570. + return rval;
  45571. +EOF
  45572. + ;;
  45573. + *)
  45574. + cat <<"EOF"
  45575. + execv (lt_argv_zero, newargz);
  45576. + return rval; /* =127, but avoids unused variable warning */
  45577. +EOF
  45578. + ;;
  45579. + esac
  45580. - if test "$droppeddeps" = yes; then
  45581. - if test "$module" = yes; then
  45582. - $echo
  45583. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  45584. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  45585. - $echo "*** a static module, that should work as long as the dlopening"
  45586. - $echo "*** application is linked with the -dlopen flag."
  45587. - if test -z "$global_symbol_pipe"; then
  45588. - $echo
  45589. - $echo "*** However, this would only work if libtool was able to extract symbol"
  45590. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  45591. - $echo "*** not find such a program. So, this module is probably useless."
  45592. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  45593. - fi
  45594. - if test "$build_old_libs" = no; then
  45595. - oldlibs="$output_objdir/$libname.$libext"
  45596. - build_libtool_libs=module
  45597. - build_old_libs=yes
  45598. - else
  45599. - build_libtool_libs=no
  45600. - fi
  45601. - else
  45602. - $echo "*** The inter-library dependencies that have been dropped here will be"
  45603. - $echo "*** automatically added whenever a program is linked with this library"
  45604. - $echo "*** or is declared to -dlopen it."
  45605. + cat <<"EOF"
  45606. +}
  45607. - if test "$allow_undefined" = no; then
  45608. - $echo
  45609. - $echo "*** Since this library must not contain undefined symbols,"
  45610. - $echo "*** because either the platform does not support them or"
  45611. - $echo "*** it was explicitly requested with -no-undefined,"
  45612. - $echo "*** libtool will only create a static version of it."
  45613. - if test "$build_old_libs" = no; then
  45614. - oldlibs="$output_objdir/$libname.$libext"
  45615. - build_libtool_libs=module
  45616. - build_old_libs=yes
  45617. - else
  45618. - build_libtool_libs=no
  45619. - fi
  45620. - fi
  45621. - fi
  45622. - fi
  45623. - # Done checking deplibs!
  45624. - deplibs=$newdeplibs
  45625. - fi
  45626. +void *
  45627. +xmalloc (size_t num)
  45628. +{
  45629. + void *p = (void *) malloc (num);
  45630. + if (!p)
  45631. + lt_fatal ("Memory exhausted");
  45632. + return p;
  45633. +}
  45634. - # move library search paths that coincide with paths to not yet
  45635. - # installed libraries to the beginning of the library search list
  45636. - new_libs=
  45637. - for path in $notinst_path; do
  45638. - case " $new_libs " in
  45639. - *" -L$path/$objdir "*) ;;
  45640. - *)
  45641. - case " $deplibs " in
  45642. - *" -L$path/$objdir "*)
  45643. - new_libs="$new_libs -L$path/$objdir" ;;
  45644. - esac
  45645. - ;;
  45646. - esac
  45647. - done
  45648. - for deplib in $deplibs; do
  45649. - case $deplib in
  45650. - -L*)
  45651. - case " $new_libs " in
  45652. - *" $deplib "*) ;;
  45653. - *) new_libs="$new_libs $deplib" ;;
  45654. - esac
  45655. - ;;
  45656. - *) new_libs="$new_libs $deplib" ;;
  45657. - esac
  45658. - done
  45659. - deplibs="$new_libs"
  45660. +char *
  45661. +xstrdup (const char *string)
  45662. +{
  45663. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  45664. + string) : NULL;
  45665. +}
  45666. +const char *
  45667. +base_name (const char *name)
  45668. +{
  45669. + const char *base;
  45670. - # All the library-specific variables (install_libdir is set above).
  45671. - library_names=
  45672. - old_library=
  45673. - dlname=
  45674. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45675. + /* Skip over the disk name in MSDOS pathnames. */
  45676. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  45677. + name += 2;
  45678. +#endif
  45679. - # Test again, we may have decided not to build it any more
  45680. - if test "$build_libtool_libs" = yes; then
  45681. - if test "$hardcode_into_libs" = yes; then
  45682. - # Hardcode the library paths
  45683. - hardcode_libdirs=
  45684. - dep_rpath=
  45685. - rpath="$finalize_rpath"
  45686. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  45687. - for libdir in $rpath; do
  45688. - if test -n "$hardcode_libdir_flag_spec"; then
  45689. - if test -n "$hardcode_libdir_separator"; then
  45690. - if test -z "$hardcode_libdirs"; then
  45691. - hardcode_libdirs="$libdir"
  45692. - else
  45693. - # Just accumulate the unique libdirs.
  45694. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  45695. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  45696. - ;;
  45697. - *)
  45698. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  45699. - ;;
  45700. - esac
  45701. - fi
  45702. - else
  45703. - eval flag=\"$hardcode_libdir_flag_spec\"
  45704. - dep_rpath="$dep_rpath $flag"
  45705. - fi
  45706. - elif test -n "$runpath_var"; then
  45707. - case "$perm_rpath " in
  45708. - *" $libdir "*) ;;
  45709. - *) perm_rpath="$perm_rpath $libdir" ;;
  45710. - esac
  45711. - fi
  45712. - done
  45713. - # Substitute the hardcoded libdirs into the rpath.
  45714. - if test -n "$hardcode_libdir_separator" &&
  45715. - test -n "$hardcode_libdirs"; then
  45716. - libdir="$hardcode_libdirs"
  45717. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  45718. - case $archive_cmds in
  45719. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  45720. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  45721. - esac
  45722. - else
  45723. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  45724. - fi
  45725. - fi
  45726. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  45727. - # We should set the runpath_var.
  45728. - rpath=
  45729. - for dir in $perm_rpath; do
  45730. - rpath="$rpath$dir:"
  45731. - done
  45732. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  45733. - fi
  45734. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  45735. - fi
  45736. + for (base = name; *name; name++)
  45737. + if (IS_DIR_SEPARATOR (*name))
  45738. + base = name + 1;
  45739. + return base;
  45740. +}
  45741. - shlibpath="$finalize_shlibpath"
  45742. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  45743. - if test -n "$shlibpath"; then
  45744. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  45745. - fi
  45746. +int
  45747. +check_executable (const char *path)
  45748. +{
  45749. + struct stat st;
  45750. - # Get the real and link names of the library.
  45751. - eval shared_ext=\"$shrext_cmds\"
  45752. - eval library_names=\"$library_names_spec\"
  45753. - set dummy $library_names
  45754. - realname="$2"
  45755. - shift; shift
  45756. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  45757. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  45758. + if ((!path) || (!*path))
  45759. + return 0;
  45760. - if test -n "$soname_spec"; then
  45761. - eval soname=\"$soname_spec\"
  45762. - else
  45763. - soname="$realname"
  45764. - fi
  45765. - if test -z "$dlname"; then
  45766. - dlname=$soname
  45767. - fi
  45768. + if ((stat (path, &st) >= 0)
  45769. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  45770. + return 1;
  45771. + else
  45772. + return 0;
  45773. +}
  45774. - lib="$output_objdir/$realname"
  45775. - linknames=
  45776. - for link
  45777. - do
  45778. - linknames="$linknames $link"
  45779. - done
  45780. +int
  45781. +make_executable (const char *path)
  45782. +{
  45783. + int rval = 0;
  45784. + struct stat st;
  45785. - # Use standard objects if they are pic
  45786. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  45787. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  45788. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  45789. + if ((!path) || (!*path))
  45790. + return 0;
  45791. - # Prepare the list of exported symbols
  45792. - if test -z "$export_symbols"; then
  45793. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  45794. - $show "generating symbol list for \`$libname.la'"
  45795. - export_symbols="$output_objdir/$libname.exp"
  45796. - $run $rm $export_symbols
  45797. - cmds=$export_symbols_cmds
  45798. - save_ifs="$IFS"; IFS='~'
  45799. - for cmd in $cmds; do
  45800. - IFS="$save_ifs"
  45801. - eval cmd=\"$cmd\"
  45802. - if len=`expr "X$cmd" : ".*"` &&
  45803. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  45804. - $show "$cmd"
  45805. - $run eval "$cmd" || exit $?
  45806. - skipped_export=false
  45807. - else
  45808. - # The command line is too long to execute in one step.
  45809. - $show "using reloadable object file for export list..."
  45810. - skipped_export=:
  45811. - # Break out early, otherwise skipped_export may be
  45812. - # set to false by a later but shorter cmd.
  45813. - break
  45814. - fi
  45815. - done
  45816. - IFS="$save_ifs"
  45817. - if test -n "$export_symbols_regex"; then
  45818. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  45819. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  45820. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  45821. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  45822. - fi
  45823. - fi
  45824. - fi
  45825. + if (stat (path, &st) >= 0)
  45826. + {
  45827. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  45828. + }
  45829. + return rval;
  45830. +}
  45831. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  45832. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  45833. - fi
  45834. +/* Searches for the full path of the wrapper. Returns
  45835. + newly allocated full path name if found, NULL otherwise
  45836. + Does not chase symlinks, even on platforms that support them.
  45837. +*/
  45838. +char *
  45839. +find_executable (const char *wrapper)
  45840. +{
  45841. + int has_slash = 0;
  45842. + const char *p;
  45843. + const char *p_next;
  45844. + /* static buffer for getcwd */
  45845. + char tmp[LT_PATHMAX + 1];
  45846. + int tmp_len;
  45847. + char *concat_name;
  45848. - tmp_deplibs=
  45849. - for test_deplib in $deplibs; do
  45850. - case " $convenience " in
  45851. - *" $test_deplib "*) ;;
  45852. - *)
  45853. - tmp_deplibs="$tmp_deplibs $test_deplib"
  45854. - ;;
  45855. - esac
  45856. - done
  45857. - deplibs="$tmp_deplibs"
  45858. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  45859. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  45860. - if test -n "$convenience"; then
  45861. - if test -n "$whole_archive_flag_spec"; then
  45862. - save_libobjs=$libobjs
  45863. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  45864. - else
  45865. - gentop="$output_objdir/${outputname}x"
  45866. - generated="$generated $gentop"
  45867. + if ((wrapper == NULL) || (*wrapper == '\0'))
  45868. + return NULL;
  45869. - func_extract_archives $gentop $convenience
  45870. - libobjs="$libobjs $func_extract_archives_result"
  45871. - fi
  45872. - fi
  45873. -
  45874. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  45875. - eval flag=\"$thread_safe_flag_spec\"
  45876. - linker_flags="$linker_flags $flag"
  45877. - fi
  45878. + /* Absolute path? */
  45879. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45880. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  45881. + {
  45882. + concat_name = xstrdup (wrapper);
  45883. + if (check_executable (concat_name))
  45884. + return concat_name;
  45885. + XFREE (concat_name);
  45886. + }
  45887. + else
  45888. + {
  45889. +#endif
  45890. + if (IS_DIR_SEPARATOR (wrapper[0]))
  45891. + {
  45892. + concat_name = xstrdup (wrapper);
  45893. + if (check_executable (concat_name))
  45894. + return concat_name;
  45895. + XFREE (concat_name);
  45896. + }
  45897. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45898. + }
  45899. +#endif
  45900. - # Make a backup of the uninstalled library when relinking
  45901. - if test "$mode" = relink; then
  45902. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  45903. - fi
  45904. + for (p = wrapper; *p; p++)
  45905. + if (*p == '/')
  45906. + {
  45907. + has_slash = 1;
  45908. + break;
  45909. + }
  45910. + if (!has_slash)
  45911. + {
  45912. + /* no slashes; search PATH */
  45913. + const char *path = getenv ("PATH");
  45914. + if (path != NULL)
  45915. + {
  45916. + for (p = path; *p; p = p_next)
  45917. + {
  45918. + const char *q;
  45919. + size_t p_len;
  45920. + for (q = p; *q; q++)
  45921. + if (IS_PATH_SEPARATOR (*q))
  45922. + break;
  45923. + p_len = q - p;
  45924. + p_next = (*q == '\0' ? q : q + 1);
  45925. + if (p_len == 0)
  45926. + {
  45927. + /* empty path: current directory */
  45928. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  45929. + lt_fatal ("getcwd failed");
  45930. + tmp_len = strlen (tmp);
  45931. + concat_name =
  45932. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  45933. + memcpy (concat_name, tmp, tmp_len);
  45934. + concat_name[tmp_len] = '/';
  45935. + strcpy (concat_name + tmp_len + 1, wrapper);
  45936. + }
  45937. + else
  45938. + {
  45939. + concat_name =
  45940. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  45941. + memcpy (concat_name, p, p_len);
  45942. + concat_name[p_len] = '/';
  45943. + strcpy (concat_name + p_len + 1, wrapper);
  45944. + }
  45945. + if (check_executable (concat_name))
  45946. + return concat_name;
  45947. + XFREE (concat_name);
  45948. + }
  45949. + }
  45950. + /* not found in PATH; assume curdir */
  45951. + }
  45952. + /* Relative path | not found in path: prepend cwd */
  45953. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  45954. + lt_fatal ("getcwd failed");
  45955. + tmp_len = strlen (tmp);
  45956. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  45957. + memcpy (concat_name, tmp, tmp_len);
  45958. + concat_name[tmp_len] = '/';
  45959. + strcpy (concat_name + tmp_len + 1, wrapper);
  45960. - # Do each of the archive commands.
  45961. - if test "$module" = yes && test -n "$module_cmds" ; then
  45962. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  45963. - eval test_cmds=\"$module_expsym_cmds\"
  45964. - cmds=$module_expsym_cmds
  45965. - else
  45966. - eval test_cmds=\"$module_cmds\"
  45967. - cmds=$module_cmds
  45968. - fi
  45969. - else
  45970. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  45971. - eval test_cmds=\"$archive_expsym_cmds\"
  45972. - cmds=$archive_expsym_cmds
  45973. - else
  45974. - eval test_cmds=\"$archive_cmds\"
  45975. - cmds=$archive_cmds
  45976. - fi
  45977. - fi
  45978. + if (check_executable (concat_name))
  45979. + return concat_name;
  45980. + XFREE (concat_name);
  45981. + return NULL;
  45982. +}
  45983. - if test "X$skipped_export" != "X:" &&
  45984. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  45985. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  45986. - :
  45987. - else
  45988. - # The command line is too long to link in one step, link piecewise.
  45989. - $echo "creating reloadable object files..."
  45990. +char *
  45991. +chase_symlinks (const char *pathspec)
  45992. +{
  45993. +#ifndef S_ISLNK
  45994. + return xstrdup (pathspec);
  45995. +#else
  45996. + char buf[LT_PATHMAX];
  45997. + struct stat s;
  45998. + char *tmp_pathspec = xstrdup (pathspec);
  45999. + char *p;
  46000. + int has_symlinks = 0;
  46001. + while (strlen (tmp_pathspec) && !has_symlinks)
  46002. + {
  46003. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  46004. + tmp_pathspec));
  46005. + if (lstat (tmp_pathspec, &s) == 0)
  46006. + {
  46007. + if (S_ISLNK (s.st_mode) != 0)
  46008. + {
  46009. + has_symlinks = 1;
  46010. + break;
  46011. + }
  46012. - # Save the value of $output and $libobjs because we want to
  46013. - # use them later. If we have whole_archive_flag_spec, we
  46014. - # want to use save_libobjs as it was before
  46015. - # whole_archive_flag_spec was expanded, because we can't
  46016. - # assume the linker understands whole_archive_flag_spec.
  46017. - # This may have to be revisited, in case too many
  46018. - # convenience libraries get linked in and end up exceeding
  46019. - # the spec.
  46020. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  46021. - save_libobjs=$libobjs
  46022. - fi
  46023. - save_output=$output
  46024. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  46025. + /* search backwards for last DIR_SEPARATOR */
  46026. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  46027. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  46028. + p--;
  46029. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  46030. + {
  46031. + /* no more DIR_SEPARATORS left */
  46032. + break;
  46033. + }
  46034. + *p = '\0';
  46035. + }
  46036. + else
  46037. + {
  46038. + char *errstr = strerror (errno);
  46039. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  46040. + }
  46041. + }
  46042. + XFREE (tmp_pathspec);
  46043. - # Clear the reloadable object creation command queue and
  46044. - # initialize k to one.
  46045. - test_cmds=
  46046. - concat_cmds=
  46047. - objlist=
  46048. - delfiles=
  46049. - last_robj=
  46050. - k=1
  46051. - output=$output_objdir/$output_la-${k}.$objext
  46052. - # Loop over the list of objects to be linked.
  46053. - for obj in $save_libobjs
  46054. - do
  46055. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  46056. - if test "X$objlist" = X ||
  46057. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  46058. - test "$len" -le "$max_cmd_len"; }; then
  46059. - objlist="$objlist $obj"
  46060. - else
  46061. - # The command $test_cmds is almost too long, add a
  46062. - # command to the queue.
  46063. - if test "$k" -eq 1 ; then
  46064. - # The first file doesn't have a previous command to add.
  46065. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  46066. - else
  46067. - # All subsequent reloadable object files will link in
  46068. - # the last one created.
  46069. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  46070. - fi
  46071. - last_robj=$output_objdir/$output_la-${k}.$objext
  46072. - k=`expr $k + 1`
  46073. - output=$output_objdir/$output_la-${k}.$objext
  46074. - objlist=$obj
  46075. - len=1
  46076. - fi
  46077. - done
  46078. - # Handle the remaining objects by creating one last
  46079. - # reloadable object file. All subsequent reloadable object
  46080. - # files will link in the last one created.
  46081. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  46082. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  46083. + if (!has_symlinks)
  46084. + {
  46085. + return xstrdup (pathspec);
  46086. + }
  46087. - if ${skipped_export-false}; then
  46088. - $show "generating symbol list for \`$libname.la'"
  46089. - export_symbols="$output_objdir/$libname.exp"
  46090. - $run $rm $export_symbols
  46091. - libobjs=$output
  46092. - # Append the command to create the export file.
  46093. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  46094. - fi
  46095. -
  46096. - # Set up a command to remove the reloadable object files
  46097. - # after they are used.
  46098. - i=0
  46099. - while test "$i" -lt "$k"
  46100. - do
  46101. - i=`expr $i + 1`
  46102. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  46103. - done
  46104. + tmp_pathspec = realpath (pathspec, buf);
  46105. + if (tmp_pathspec == 0)
  46106. + {
  46107. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  46108. + }
  46109. + return xstrdup (tmp_pathspec);
  46110. +#endif
  46111. +}
  46112. - $echo "creating a temporary reloadable object file: $output"
  46113. +char *
  46114. +strendzap (char *str, const char *pat)
  46115. +{
  46116. + size_t len, patlen;
  46117. - # Loop through the commands generated above and execute them.
  46118. - save_ifs="$IFS"; IFS='~'
  46119. - for cmd in $concat_cmds; do
  46120. - IFS="$save_ifs"
  46121. - $show "$cmd"
  46122. - $run eval "$cmd" || exit $?
  46123. - done
  46124. - IFS="$save_ifs"
  46125. + assert (str != NULL);
  46126. + assert (pat != NULL);
  46127. - libobjs=$output
  46128. - # Restore the value of output.
  46129. - output=$save_output
  46130. + len = strlen (str);
  46131. + patlen = strlen (pat);
  46132. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  46133. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  46134. - fi
  46135. - # Expand the library linking commands again to reset the
  46136. - # value of $libobjs for piecewise linking.
  46137. + if (patlen <= len)
  46138. + {
  46139. + str += len - patlen;
  46140. + if (strcmp (str, pat) == 0)
  46141. + *str = '\0';
  46142. + }
  46143. + return str;
  46144. +}
  46145. - # Do each of the archive commands.
  46146. - if test "$module" = yes && test -n "$module_cmds" ; then
  46147. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  46148. - cmds=$module_expsym_cmds
  46149. - else
  46150. - cmds=$module_cmds
  46151. - fi
  46152. - else
  46153. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  46154. - cmds=$archive_expsym_cmds
  46155. - else
  46156. - cmds=$archive_cmds
  46157. - fi
  46158. - fi
  46159. +static void
  46160. +lt_error_core (int exit_status, const char *mode,
  46161. + const char *message, va_list ap)
  46162. +{
  46163. + fprintf (stderr, "%s: %s: ", program_name, mode);
  46164. + vfprintf (stderr, message, ap);
  46165. + fprintf (stderr, ".\n");
  46166. - # Append the command to remove the reloadable object files
  46167. - # to the just-reset $cmds.
  46168. - eval cmds=\"\$cmds~\$rm $delfiles\"
  46169. - fi
  46170. - save_ifs="$IFS"; IFS='~'
  46171. - for cmd in $cmds; do
  46172. - IFS="$save_ifs"
  46173. - eval cmd=\"$cmd\"
  46174. - $show "$cmd"
  46175. - $run eval "$cmd" || {
  46176. - lt_exit=$?
  46177. + if (exit_status >= 0)
  46178. + exit (exit_status);
  46179. +}
  46180. - # Restore the uninstalled library and exit
  46181. - if test "$mode" = relink; then
  46182. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  46183. - fi
  46184. +void
  46185. +lt_fatal (const char *message, ...)
  46186. +{
  46187. + va_list ap;
  46188. + va_start (ap, message);
  46189. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  46190. + va_end (ap);
  46191. +}
  46192. - exit $lt_exit
  46193. - }
  46194. - done
  46195. - IFS="$save_ifs"
  46196. +void
  46197. +lt_setenv (const char *name, const char *value)
  46198. +{
  46199. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  46200. + (name ? name : "<NULL>"),
  46201. + (value ? value : "<NULL>")));
  46202. + {
  46203. +#ifdef HAVE_SETENV
  46204. + /* always make a copy, for consistency with !HAVE_SETENV */
  46205. + char *str = xstrdup (value);
  46206. + setenv (name, str, 1);
  46207. +#else
  46208. + int len = strlen (name) + 1 + strlen (value) + 1;
  46209. + char *str = XMALLOC (char, len);
  46210. + sprintf (str, "%s=%s", name, value);
  46211. + if (putenv (str) != EXIT_SUCCESS)
  46212. + {
  46213. + XFREE (str);
  46214. + }
  46215. +#endif
  46216. + }
  46217. +}
  46218. - # Restore the uninstalled library and exit
  46219. - if test "$mode" = relink; then
  46220. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  46221. +char *
  46222. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  46223. +{
  46224. + char *new_value;
  46225. + if (orig_value && *orig_value)
  46226. + {
  46227. + int orig_value_len = strlen (orig_value);
  46228. + int add_len = strlen (add);
  46229. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  46230. + if (to_end)
  46231. + {
  46232. + strcpy (new_value, orig_value);
  46233. + strcpy (new_value + orig_value_len, add);
  46234. + }
  46235. + else
  46236. + {
  46237. + strcpy (new_value, add);
  46238. + strcpy (new_value + add_len, orig_value);
  46239. + }
  46240. + }
  46241. + else
  46242. + {
  46243. + new_value = xstrdup (add);
  46244. + }
  46245. + return new_value;
  46246. +}
  46247. - if test -n "$convenience"; then
  46248. - if test -z "$whole_archive_flag_spec"; then
  46249. - $show "${rm}r $gentop"
  46250. - $run ${rm}r "$gentop"
  46251. - fi
  46252. - fi
  46253. +int
  46254. +lt_split_name_value (const char *arg, char** name, char** value)
  46255. +{
  46256. + const char *p;
  46257. + int len;
  46258. + if (!arg || !*arg)
  46259. + return 1;
  46260. - exit $EXIT_SUCCESS
  46261. - fi
  46262. + p = strchr (arg, (int)'=');
  46263. - # Create links to the real library.
  46264. - for linkname in $linknames; do
  46265. - if test "$realname" != "$linkname"; then
  46266. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  46267. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  46268. - fi
  46269. - done
  46270. -
  46271. - # If -module or -export-dynamic was specified, set the dlname.
  46272. - if test "$module" = yes || test "$export_dynamic" = yes; then
  46273. - # On all known operating systems, these are identical.
  46274. - dlname="$soname"
  46275. - fi
  46276. - fi
  46277. - ;;
  46278. + if (!p)
  46279. + return 1;
  46280. - obj)
  46281. - case " $deplibs" in
  46282. - *\ -l* | *\ -L*)
  46283. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  46284. - esac
  46285. + *value = xstrdup (++p);
  46286. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  46287. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  46288. - fi
  46289. + len = strlen (arg) - strlen (*value);
  46290. + *name = XMALLOC (char, len);
  46291. + strncpy (*name, arg, len-1);
  46292. + (*name)[len - 1] = '\0';
  46293. - if test -n "$rpath"; then
  46294. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  46295. - fi
  46296. + return 0;
  46297. +}
  46298. - if test -n "$xrpath"; then
  46299. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  46300. - fi
  46301. +void
  46302. +lt_opt_process_env_set (const char *arg)
  46303. +{
  46304. + char *name = NULL;
  46305. + char *value = NULL;
  46306. - if test -n "$vinfo"; then
  46307. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  46308. - fi
  46309. + if (lt_split_name_value (arg, &name, &value) != 0)
  46310. + {
  46311. + XFREE (name);
  46312. + XFREE (value);
  46313. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  46314. + }
  46315. - if test -n "$release"; then
  46316. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  46317. - fi
  46318. + lt_setenv (name, value);
  46319. + XFREE (name);
  46320. + XFREE (value);
  46321. +}
  46322. - case $output in
  46323. - *.lo)
  46324. - if test -n "$objs$old_deplibs"; then
  46325. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  46326. - exit $EXIT_FAILURE
  46327. - fi
  46328. - libobj="$output"
  46329. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  46330. - ;;
  46331. - *)
  46332. - libobj=
  46333. - obj="$output"
  46334. - ;;
  46335. - esac
  46336. +void
  46337. +lt_opt_process_env_prepend (const char *arg)
  46338. +{
  46339. + char *name = NULL;
  46340. + char *value = NULL;
  46341. + char *new_value = NULL;
  46342. - # Delete the old objects.
  46343. - $run $rm $obj $libobj
  46344. + if (lt_split_name_value (arg, &name, &value) != 0)
  46345. + {
  46346. + XFREE (name);
  46347. + XFREE (value);
  46348. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  46349. + }
  46350. - # Objects from convenience libraries. This assumes
  46351. - # single-version convenience libraries. Whenever we create
  46352. - # different ones for PIC/non-PIC, this we'll have to duplicate
  46353. - # the extraction.
  46354. - reload_conv_objs=
  46355. - gentop=
  46356. - # reload_cmds runs $LD directly, so let us get rid of
  46357. - # -Wl from whole_archive_flag_spec and hope we can get by with
  46358. - # turning comma into space..
  46359. - wl=
  46360. + new_value = lt_extend_str (getenv (name), value, 0);
  46361. + lt_setenv (name, new_value);
  46362. + XFREE (new_value);
  46363. + XFREE (name);
  46364. + XFREE (value);
  46365. +}
  46366. - if test -n "$convenience"; then
  46367. - if test -n "$whole_archive_flag_spec"; then
  46368. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  46369. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  46370. - else
  46371. - gentop="$output_objdir/${obj}x"
  46372. - generated="$generated $gentop"
  46373. +void
  46374. +lt_opt_process_env_append (const char *arg)
  46375. +{
  46376. + char *name = NULL;
  46377. + char *value = NULL;
  46378. + char *new_value = NULL;
  46379. - func_extract_archives $gentop $convenience
  46380. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  46381. - fi
  46382. - fi
  46383. + if (lt_split_name_value (arg, &name, &value) != 0)
  46384. + {
  46385. + XFREE (name);
  46386. + XFREE (value);
  46387. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  46388. + }
  46389. - # Create the old-style object.
  46390. - 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
  46391. + new_value = lt_extend_str (getenv (name), value, 1);
  46392. + lt_setenv (name, new_value);
  46393. + XFREE (new_value);
  46394. + XFREE (name);
  46395. + XFREE (value);
  46396. +}
  46397. - output="$obj"
  46398. - cmds=$reload_cmds
  46399. - save_ifs="$IFS"; IFS='~'
  46400. - for cmd in $cmds; do
  46401. - IFS="$save_ifs"
  46402. - eval cmd=\"$cmd\"
  46403. - $show "$cmd"
  46404. - $run eval "$cmd" || exit $?
  46405. - done
  46406. - IFS="$save_ifs"
  46407. +void
  46408. +lt_update_exe_path (const char *name, const char *value)
  46409. +{
  46410. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  46411. + (name ? name : "<NULL>"),
  46412. + (value ? value : "<NULL>")));
  46413. - # Exit if we aren't doing a library object file.
  46414. - if test -z "$libobj"; then
  46415. - if test -n "$gentop"; then
  46416. - $show "${rm}r $gentop"
  46417. - $run ${rm}r $gentop
  46418. - fi
  46419. + if (name && *name && value && *value)
  46420. + {
  46421. + char *new_value = lt_extend_str (getenv (name), value, 0);
  46422. + /* some systems can't cope with a ':'-terminated path #' */
  46423. + int len = strlen (new_value);
  46424. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  46425. + {
  46426. + new_value[len-1] = '\0';
  46427. + }
  46428. + lt_setenv (name, new_value);
  46429. + XFREE (new_value);
  46430. + }
  46431. +}
  46432. - exit $EXIT_SUCCESS
  46433. - fi
  46434. +void
  46435. +lt_update_lib_path (const char *name, const char *value)
  46436. +{
  46437. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  46438. + (name ? name : "<NULL>"),
  46439. + (value ? value : "<NULL>")));
  46440. - if test "$build_libtool_libs" != yes; then
  46441. - if test -n "$gentop"; then
  46442. - $show "${rm}r $gentop"
  46443. - $run ${rm}r $gentop
  46444. - fi
  46445. + if (name && *name && value && *value)
  46446. + {
  46447. + char *new_value = lt_extend_str (getenv (name), value, 0);
  46448. + lt_setenv (name, new_value);
  46449. + XFREE (new_value);
  46450. + }
  46451. +}
  46452. - # Create an invalid libtool object if no PIC, so that we don't
  46453. - # accidentally link it into a program.
  46454. - # $show "echo timestamp > $libobj"
  46455. - # $run eval "echo timestamp > $libobj" || exit $?
  46456. - exit $EXIT_SUCCESS
  46457. - fi
  46458. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  46459. - # Only do commands if we really have different PIC objects.
  46460. - reload_objs="$libobjs $reload_conv_objs"
  46461. - output="$libobj"
  46462. - cmds=$reload_cmds
  46463. - save_ifs="$IFS"; IFS='~'
  46464. - for cmd in $cmds; do
  46465. - IFS="$save_ifs"
  46466. - eval cmd=\"$cmd\"
  46467. - $show "$cmd"
  46468. - $run eval "$cmd" || exit $?
  46469. - done
  46470. - IFS="$save_ifs"
  46471. - fi
  46472. +EOF
  46473. +}
  46474. +# end: func_emit_cwrapperexe_src
  46475. - if test -n "$gentop"; then
  46476. - $show "${rm}r $gentop"
  46477. - $run ${rm}r $gentop
  46478. - fi
  46479. +# func_mode_link arg...
  46480. +func_mode_link ()
  46481. +{
  46482. + $opt_debug
  46483. + case $host in
  46484. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  46485. + # It is impossible to link a dll without this setting, and
  46486. + # we shouldn't force the makefile maintainer to figure out
  46487. + # which system we are compiling for in order to pass an extra
  46488. + # flag for every libtool invocation.
  46489. + # allow_undefined=no
  46490. - exit $EXIT_SUCCESS
  46491. + # FIXME: Unfortunately, there are problems with the above when trying
  46492. + # to make a dll which has undefined symbols, in which case not
  46493. + # even a static library is built. For now, we need to specify
  46494. + # -no-undefined on the libtool link line when we can be certain
  46495. + # that all symbols are satisfied, otherwise we get a static library.
  46496. + allow_undefined=yes
  46497. ;;
  46498. + *)
  46499. + allow_undefined=yes
  46500. + ;;
  46501. + esac
  46502. + libtool_args=$nonopt
  46503. + base_compile="$nonopt $@"
  46504. + compile_command=$nonopt
  46505. + finalize_command=$nonopt
  46506. - prog)
  46507. - case $host in
  46508. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  46509. - esac
  46510. - if test -n "$vinfo"; then
  46511. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  46512. - fi
  46513. -
  46514. - if test -n "$release"; then
  46515. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  46516. - fi
  46517. + compile_rpath=
  46518. + finalize_rpath=
  46519. + compile_shlibpath=
  46520. + finalize_shlibpath=
  46521. + convenience=
  46522. + old_convenience=
  46523. + deplibs=
  46524. + old_deplibs=
  46525. + compiler_flags=
  46526. + linker_flags=
  46527. + dllsearchpath=
  46528. + lib_search_path=`pwd`
  46529. + inst_prefix_dir=
  46530. + new_inherited_linker_flags=
  46531. - if test "$preload" = yes; then
  46532. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  46533. - test "$dlopen_self_static" = unknown; then
  46534. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  46535. - fi
  46536. - fi
  46537. + avoid_version=no
  46538. + dlfiles=
  46539. + dlprefiles=
  46540. + dlself=no
  46541. + export_dynamic=no
  46542. + export_symbols=
  46543. + export_symbols_regex=
  46544. + generated=
  46545. + libobjs=
  46546. + ltlibs=
  46547. + module=no
  46548. + no_install=no
  46549. + objs=
  46550. + non_pic_objects=
  46551. + precious_files_regex=
  46552. + prefer_static_libs=no
  46553. + preload=no
  46554. + prev=
  46555. + prevarg=
  46556. + release=
  46557. + rpath=
  46558. + xrpath=
  46559. + perm_rpath=
  46560. + temp_rpath=
  46561. + thread_safe=no
  46562. + vinfo=
  46563. + vinfo_number=no
  46564. + weak_libs=
  46565. + single_module="${wl}-single_module"
  46566. + func_infer_tag $base_compile
  46567. - case $host in
  46568. - *-*-rhapsody* | *-*-darwin1.[012])
  46569. - # On Rhapsody replace the C library is the System framework
  46570. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  46571. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  46572. + # We need to know -static, to get the right output filenames.
  46573. + for arg
  46574. + do
  46575. + case $arg in
  46576. + -shared)
  46577. + test "$build_libtool_libs" != yes && \
  46578. + func_fatal_configuration "can not build a shared library"
  46579. + build_old_libs=no
  46580. + break
  46581. + ;;
  46582. + -all-static | -static | -static-libtool-libs)
  46583. + case $arg in
  46584. + -all-static)
  46585. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  46586. + func_warning "complete static linking is impossible in this configuration"
  46587. + fi
  46588. + if test -n "$link_static_flag"; then
  46589. + dlopen_self=$dlopen_self_static
  46590. + fi
  46591. + prefer_static_libs=yes
  46592. + ;;
  46593. + -static)
  46594. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  46595. + dlopen_self=$dlopen_self_static
  46596. + fi
  46597. + prefer_static_libs=built
  46598. + ;;
  46599. + -static-libtool-libs)
  46600. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  46601. + dlopen_self=$dlopen_self_static
  46602. + fi
  46603. + prefer_static_libs=yes
  46604. + ;;
  46605. + esac
  46606. + build_libtool_libs=no
  46607. + build_old_libs=yes
  46608. + break
  46609. ;;
  46610. esac
  46611. + done
  46612. - case $host in
  46613. - *darwin*)
  46614. - # Don't allow lazy linking, it breaks C++ global constructors
  46615. - if test "$tagname" = CXX ; then
  46616. - compile_command="$compile_command ${wl}-bind_at_load"
  46617. - finalize_command="$finalize_command ${wl}-bind_at_load"
  46618. - fi
  46619. - ;;
  46620. - esac
  46621. + # See if our shared archives depend on static archives.
  46622. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  46623. + # Go through the arguments, transforming them on the way.
  46624. + while test "$#" -gt 0; do
  46625. + arg="$1"
  46626. + shift
  46627. + func_quote_for_eval "$arg"
  46628. + qarg=$func_quote_for_eval_unquoted_result
  46629. + func_append libtool_args " $func_quote_for_eval_result"
  46630. - # move library search paths that coincide with paths to not yet
  46631. - # installed libraries to the beginning of the library search list
  46632. - new_libs=
  46633. - for path in $notinst_path; do
  46634. - case " $new_libs " in
  46635. - *" -L$path/$objdir "*) ;;
  46636. - *)
  46637. - case " $compile_deplibs " in
  46638. - *" -L$path/$objdir "*)
  46639. - new_libs="$new_libs -L$path/$objdir" ;;
  46640. - esac
  46641. - ;;
  46642. - esac
  46643. - done
  46644. - for deplib in $compile_deplibs; do
  46645. - case $deplib in
  46646. - -L*)
  46647. - case " $new_libs " in
  46648. - *" $deplib "*) ;;
  46649. - *) new_libs="$new_libs $deplib" ;;
  46650. - esac
  46651. + # If the previous option needs an argument, assign it.
  46652. + if test -n "$prev"; then
  46653. + case $prev in
  46654. + output)
  46655. + func_append compile_command " @OUTPUT@"
  46656. + func_append finalize_command " @OUTPUT@"
  46657. ;;
  46658. - *) new_libs="$new_libs $deplib" ;;
  46659. esac
  46660. - done
  46661. - compile_deplibs="$new_libs"
  46662. -
  46663. - compile_command="$compile_command $compile_deplibs"
  46664. - finalize_command="$finalize_command $finalize_deplibs"
  46665. -
  46666. - if test -n "$rpath$xrpath"; then
  46667. - # If the user specified any rpath flags, then add them.
  46668. - for libdir in $rpath $xrpath; do
  46669. - # This is the magic to use -rpath.
  46670. - case "$finalize_rpath " in
  46671. - *" $libdir "*) ;;
  46672. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  46673. - esac
  46674. - done
  46675. - fi
  46676. -
  46677. - # Now hardcode the library paths
  46678. - rpath=
  46679. - hardcode_libdirs=
  46680. - for libdir in $compile_rpath $finalize_rpath; do
  46681. - if test -n "$hardcode_libdir_flag_spec"; then
  46682. - if test -n "$hardcode_libdir_separator"; then
  46683. - if test -z "$hardcode_libdirs"; then
  46684. - hardcode_libdirs="$libdir"
  46685. + case $prev in
  46686. + dlfiles|dlprefiles)
  46687. + if test "$preload" = no; then
  46688. + # Add the symbol object into the linking commands.
  46689. + func_append compile_command " @SYMFILE@"
  46690. + func_append finalize_command " @SYMFILE@"
  46691. + preload=yes
  46692. + fi
  46693. + case $arg in
  46694. + *.la | *.lo) ;; # We handle these cases below.
  46695. + force)
  46696. + if test "$dlself" = no; then
  46697. + dlself=needless
  46698. + export_dynamic=yes
  46699. + fi
  46700. + prev=
  46701. + continue
  46702. + ;;
  46703. + self)
  46704. + if test "$prev" = dlprefiles; then
  46705. + dlself=yes
  46706. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  46707. + dlself=yes
  46708. else
  46709. - # Just accumulate the unique libdirs.
  46710. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  46711. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  46712. - ;;
  46713. - *)
  46714. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  46715. - ;;
  46716. - esac
  46717. + dlself=needless
  46718. + export_dynamic=yes
  46719. fi
  46720. - else
  46721. - eval flag=\"$hardcode_libdir_flag_spec\"
  46722. - rpath="$rpath $flag"
  46723. - fi
  46724. - elif test -n "$runpath_var"; then
  46725. - case "$perm_rpath " in
  46726. - *" $libdir "*) ;;
  46727. - *) perm_rpath="$perm_rpath $libdir" ;;
  46728. - esac
  46729. - fi
  46730. - case $host in
  46731. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  46732. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  46733. - case :$dllsearchpath: in
  46734. - *":$libdir:"*) ;;
  46735. - *) dllsearchpath="$dllsearchpath:$libdir";;
  46736. - esac
  46737. - case :$dllsearchpath: in
  46738. - *":$testbindir:"*) ;;
  46739. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  46740. + prev=
  46741. + continue
  46742. + ;;
  46743. + *)
  46744. + if test "$prev" = dlfiles; then
  46745. + dlfiles="$dlfiles $arg"
  46746. + else
  46747. + dlprefiles="$dlprefiles $arg"
  46748. + fi
  46749. + prev=
  46750. + continue
  46751. + ;;
  46752. esac
  46753. ;;
  46754. - esac
  46755. - done
  46756. - # Substitute the hardcoded libdirs into the rpath.
  46757. - if test -n "$hardcode_libdir_separator" &&
  46758. - test -n "$hardcode_libdirs"; then
  46759. - libdir="$hardcode_libdirs"
  46760. - eval rpath=\" $hardcode_libdir_flag_spec\"
  46761. - fi
  46762. - compile_rpath="$rpath"
  46763. -
  46764. - rpath=
  46765. - hardcode_libdirs=
  46766. - for libdir in $finalize_rpath; do
  46767. - if test -n "$hardcode_libdir_flag_spec"; then
  46768. - if test -n "$hardcode_libdir_separator"; then
  46769. - if test -z "$hardcode_libdirs"; then
  46770. - hardcode_libdirs="$libdir"
  46771. - else
  46772. - # Just accumulate the unique libdirs.
  46773. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  46774. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  46775. - ;;
  46776. - *)
  46777. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  46778. - ;;
  46779. + expsyms)
  46780. + export_symbols="$arg"
  46781. + test -f "$arg" \
  46782. + || func_fatal_error "symbol file \`$arg' does not exist"
  46783. + prev=
  46784. + continue
  46785. + ;;
  46786. + expsyms_regex)
  46787. + export_symbols_regex="$arg"
  46788. + prev=
  46789. + continue
  46790. + ;;
  46791. + framework)
  46792. + case $host in
  46793. + *-*-darwin*)
  46794. + case "$deplibs " in
  46795. + *" $qarg.ltframework "*) ;;
  46796. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  46797. + ;;
  46798. esac
  46799. - fi
  46800. - else
  46801. - eval flag=\"$hardcode_libdir_flag_spec\"
  46802. - rpath="$rpath $flag"
  46803. - fi
  46804. - elif test -n "$runpath_var"; then
  46805. - case "$finalize_perm_rpath " in
  46806. - *" $libdir "*) ;;
  46807. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  46808. + ;;
  46809. esac
  46810. - fi
  46811. - done
  46812. - # Substitute the hardcoded libdirs into the rpath.
  46813. - if test -n "$hardcode_libdir_separator" &&
  46814. - test -n "$hardcode_libdirs"; then
  46815. - libdir="$hardcode_libdirs"
  46816. - eval rpath=\" $hardcode_libdir_flag_spec\"
  46817. - fi
  46818. - finalize_rpath="$rpath"
  46819. -
  46820. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  46821. - # Transform all the library objects into standard objects.
  46822. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  46823. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  46824. - fi
  46825. + prev=
  46826. + continue
  46827. + ;;
  46828. + inst_prefix)
  46829. + inst_prefix_dir="$arg"
  46830. + prev=
  46831. + continue
  46832. + ;;
  46833. + objectlist)
  46834. + if test -f "$arg"; then
  46835. + save_arg=$arg
  46836. + moreargs=
  46837. + for fil in `cat "$save_arg"`
  46838. + do
  46839. +# moreargs="$moreargs $fil"
  46840. + arg=$fil
  46841. + # A libtool-controlled object.
  46842. - dlsyms=
  46843. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  46844. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  46845. - dlsyms="${outputname}S.c"
  46846. - else
  46847. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  46848. - fi
  46849. - fi
  46850. + # Check to see that this really is a libtool object.
  46851. + if func_lalib_unsafe_p "$arg"; then
  46852. + pic_object=
  46853. + non_pic_object=
  46854. - if test -n "$dlsyms"; then
  46855. - case $dlsyms in
  46856. - "") ;;
  46857. - *.c)
  46858. - # Discover the nlist of each of the dlfiles.
  46859. - nlist="$output_objdir/${outputname}.nm"
  46860. + # Read the .lo file
  46861. + func_source "$arg"
  46862. - $show "$rm $nlist ${nlist}S ${nlist}T"
  46863. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  46864. + if test -z "$pic_object" ||
  46865. + test -z "$non_pic_object" ||
  46866. + test "$pic_object" = none &&
  46867. + test "$non_pic_object" = none; then
  46868. + func_fatal_error "cannot find name of object for \`$arg'"
  46869. + fi
  46870. - # Parse the name list into a source file.
  46871. - $show "creating $output_objdir/$dlsyms"
  46872. + # Extract subdirectory from the argument.
  46873. + func_dirname "$arg" "/" ""
  46874. + xdir="$func_dirname_result"
  46875. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  46876. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  46877. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  46878. + if test "$pic_object" != none; then
  46879. + # Prepend the subdirectory the object is found in.
  46880. + pic_object="$xdir$pic_object"
  46881. -#ifdef __cplusplus
  46882. -extern \"C\" {
  46883. -#endif
  46884. + if test "$prev" = dlfiles; then
  46885. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  46886. + dlfiles="$dlfiles $pic_object"
  46887. + prev=
  46888. + continue
  46889. + else
  46890. + # If libtool objects are unsupported, then we need to preload.
  46891. + prev=dlprefiles
  46892. + fi
  46893. + fi
  46894. -/* Prevent the only kind of declaration conflicts we can make. */
  46895. -#define lt_preloaded_symbols some_other_symbol
  46896. + # CHECK ME: I think I busted this. -Ossama
  46897. + if test "$prev" = dlprefiles; then
  46898. + # Preload the old-style object.
  46899. + dlprefiles="$dlprefiles $pic_object"
  46900. + prev=
  46901. + fi
  46902. -/* External symbol declarations for the compiler. */\
  46903. -"
  46904. + # A PIC object.
  46905. + func_append libobjs " $pic_object"
  46906. + arg="$pic_object"
  46907. + fi
  46908. - if test "$dlself" = yes; then
  46909. - $show "generating symbol list for \`$output'"
  46910. + # Non-PIC object.
  46911. + if test "$non_pic_object" != none; then
  46912. + # Prepend the subdirectory the object is found in.
  46913. + non_pic_object="$xdir$non_pic_object"
  46914. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  46915. + # A standard non-PIC object
  46916. + func_append non_pic_objects " $non_pic_object"
  46917. + if test -z "$pic_object" || test "$pic_object" = none ; then
  46918. + arg="$non_pic_object"
  46919. + fi
  46920. + else
  46921. + # If the PIC object exists, use it instead.
  46922. + # $xdir was prepended to $pic_object above.
  46923. + non_pic_object="$pic_object"
  46924. + func_append non_pic_objects " $non_pic_object"
  46925. + fi
  46926. + else
  46927. + # Only an error if not doing a dry-run.
  46928. + if $opt_dry_run; then
  46929. + # Extract subdirectory from the argument.
  46930. + func_dirname "$arg" "/" ""
  46931. + xdir="$func_dirname_result"
  46932. - # Add our own program objects to the symbol list.
  46933. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  46934. - for arg in $progfiles; do
  46935. - $show "extracting global C symbols from \`$arg'"
  46936. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  46937. + func_lo2o "$arg"
  46938. + pic_object=$xdir$objdir/$func_lo2o_result
  46939. + non_pic_object=$xdir$func_lo2o_result
  46940. + func_append libobjs " $pic_object"
  46941. + func_append non_pic_objects " $non_pic_object"
  46942. + else
  46943. + func_fatal_error "\`$arg' is not a valid libtool object"
  46944. + fi
  46945. + fi
  46946. done
  46947. -
  46948. - if test -n "$exclude_expsyms"; then
  46949. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  46950. - $run eval '$mv "$nlist"T "$nlist"'
  46951. - fi
  46952. -
  46953. - if test -n "$export_symbols_regex"; then
  46954. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  46955. - $run eval '$mv "$nlist"T "$nlist"'
  46956. - fi
  46957. -
  46958. - # Prepare the list of exported symbols
  46959. - if test -z "$export_symbols"; then
  46960. - export_symbols="$output_objdir/$outputname.exp"
  46961. - $run $rm $export_symbols
  46962. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  46963. - case $host in
  46964. - *cygwin* | *mingw* )
  46965. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  46966. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  46967. - ;;
  46968. - esac
  46969. - else
  46970. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  46971. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  46972. - $run eval 'mv "$nlist"T "$nlist"'
  46973. - case $host in
  46974. - *cygwin* | *mingw* )
  46975. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  46976. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  46977. - ;;
  46978. - esac
  46979. - fi
  46980. + else
  46981. + func_fatal_error "link input file \`$arg' does not exist"
  46982. fi
  46983. -
  46984. - for arg in $dlprefiles; do
  46985. - $show "extracting global C symbols from \`$arg'"
  46986. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  46987. - $run eval '$echo ": $name " >> "$nlist"'
  46988. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  46989. - done
  46990. -
  46991. - if test -z "$run"; then
  46992. - # Make sure we have at least an empty file.
  46993. - test -f "$nlist" || : > "$nlist"
  46994. -
  46995. - if test -n "$exclude_expsyms"; then
  46996. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  46997. - $mv "$nlist"T "$nlist"
  46998. - fi
  46999. -
  47000. - # Try sorting and uniquifying the output.
  47001. - if grep -v "^: " < "$nlist" |
  47002. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  47003. - sort -k 3
  47004. - else
  47005. - sort +2
  47006. - fi |
  47007. - uniq > "$nlist"S; then
  47008. - :
  47009. - else
  47010. - grep -v "^: " < "$nlist" > "$nlist"S
  47011. - fi
  47012. -
  47013. - if test -f "$nlist"S; then
  47014. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  47015. - else
  47016. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  47017. - fi
  47018. -
  47019. - $echo >> "$output_objdir/$dlsyms" "\
  47020. -
  47021. -#undef lt_preloaded_symbols
  47022. -
  47023. -#if defined (__STDC__) && __STDC__
  47024. -# define lt_ptr void *
  47025. -#else
  47026. -# define lt_ptr char *
  47027. -# define const
  47028. -#endif
  47029. -
  47030. -/* The mapping between symbol names and symbols. */
  47031. -"
  47032. -
  47033. - case $host in
  47034. - *cygwin* | *mingw* )
  47035. - $echo >> "$output_objdir/$dlsyms" "\
  47036. -/* DATA imports from DLLs on WIN32 can't be const, because
  47037. - runtime relocations are performed -- see ld's documentation
  47038. - on pseudo-relocs */
  47039. -struct {
  47040. -"
  47041. - ;;
  47042. - * )
  47043. - $echo >> "$output_objdir/$dlsyms" "\
  47044. -const struct {
  47045. -"
  47046. - ;;
  47047. - esac
  47048. -
  47049. -
  47050. - $echo >> "$output_objdir/$dlsyms" "\
  47051. - const char *name;
  47052. - lt_ptr address;
  47053. -}
  47054. -lt_preloaded_symbols[] =
  47055. -{\
  47056. -"
  47057. -
  47058. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  47059. -
  47060. - $echo >> "$output_objdir/$dlsyms" "\
  47061. - {0, (lt_ptr) 0}
  47062. -};
  47063. -
  47064. -/* This works around a problem in FreeBSD linker */
  47065. -#ifdef FREEBSD_WORKAROUND
  47066. -static const void *lt_preloaded_setup() {
  47067. - return lt_preloaded_symbols;
  47068. -}
  47069. -#endif
  47070. -
  47071. -#ifdef __cplusplus
  47072. -}
  47073. -#endif\
  47074. -"
  47075. - fi
  47076. -
  47077. - pic_flag_for_symtable=
  47078. - case $host in
  47079. - # compiling the symbol table file with pic_flag works around
  47080. - # a FreeBSD bug that causes programs to crash when -lm is
  47081. - # linked before any other PIC object. But we must not use
  47082. - # pic_flag when linking with -static. The problem exists in
  47083. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  47084. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  47085. - case "$compile_command " in
  47086. - *" -static "*) ;;
  47087. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  47088. - esac;;
  47089. - *-*-hpux*)
  47090. - case "$compile_command " in
  47091. - *" -static "*) ;;
  47092. - *) pic_flag_for_symtable=" $pic_flag";;
  47093. - esac
  47094. + arg=$save_arg
  47095. + prev=
  47096. + continue
  47097. + ;;
  47098. + precious_regex)
  47099. + precious_files_regex="$arg"
  47100. + prev=
  47101. + continue
  47102. + ;;
  47103. + release)
  47104. + release="-$arg"
  47105. + prev=
  47106. + continue
  47107. + ;;
  47108. + rpath | xrpath)
  47109. + # We need an absolute path.
  47110. + case $arg in
  47111. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  47112. + *)
  47113. + func_fatal_error "only absolute run-paths are allowed"
  47114. + ;;
  47115. esac
  47116. -
  47117. - # Now compile the dynamic symbol file.
  47118. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  47119. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  47120. -
  47121. - # Clean up the generated files.
  47122. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  47123. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  47124. -
  47125. - # Transform the symbol file into the correct name.
  47126. - case $host in
  47127. - *cygwin* | *mingw* )
  47128. - if test -f "$output_objdir/${outputname}.def" ; then
  47129. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47130. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47131. - else
  47132. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47133. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47134. - fi
  47135. - ;;
  47136. - * )
  47137. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47138. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47139. - ;;
  47140. - esac
  47141. + if test "$prev" = rpath; then
  47142. + case "$rpath " in
  47143. + *" $arg "*) ;;
  47144. + *) rpath="$rpath $arg" ;;
  47145. + esac
  47146. + else
  47147. + case "$xrpath " in
  47148. + *" $arg "*) ;;
  47149. + *) xrpath="$xrpath $arg" ;;
  47150. + esac
  47151. + fi
  47152. + prev=
  47153. + continue
  47154. + ;;
  47155. + shrext)
  47156. + shrext_cmds="$arg"
  47157. + prev=
  47158. + continue
  47159. + ;;
  47160. + weak)
  47161. + weak_libs="$weak_libs $arg"
  47162. + prev=
  47163. + continue
  47164. + ;;
  47165. + xcclinker)
  47166. + linker_flags="$linker_flags $qarg"
  47167. + compiler_flags="$compiler_flags $qarg"
  47168. + prev=
  47169. + func_append compile_command " $qarg"
  47170. + func_append finalize_command " $qarg"
  47171. + continue
  47172. + ;;
  47173. + xcompiler)
  47174. + compiler_flags="$compiler_flags $qarg"
  47175. + prev=
  47176. + func_append compile_command " $qarg"
  47177. + func_append finalize_command " $qarg"
  47178. + continue
  47179. + ;;
  47180. + xlinker)
  47181. + linker_flags="$linker_flags $qarg"
  47182. + compiler_flags="$compiler_flags $wl$qarg"
  47183. + prev=
  47184. + func_append compile_command " $wl$qarg"
  47185. + func_append finalize_command " $wl$qarg"
  47186. + continue
  47187. ;;
  47188. *)
  47189. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  47190. - exit $EXIT_FAILURE
  47191. + eval "$prev=\"\$arg\""
  47192. + prev=
  47193. + continue
  47194. ;;
  47195. esac
  47196. - else
  47197. - # We keep going just in case the user didn't refer to
  47198. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  47199. - # really was required.
  47200. -
  47201. - # Nullify the symbol file.
  47202. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  47203. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  47204. - fi
  47205. -
  47206. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  47207. - # Replace the output file specification.
  47208. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  47209. - link_command="$compile_command$compile_rpath"
  47210. + fi # test -n "$prev"
  47211. - # We have no uninstalled library dependencies, so finalize right now.
  47212. - $show "$link_command"
  47213. - $run eval "$link_command"
  47214. - exit_status=$?
  47215. + prevarg="$arg"
  47216. - # Delete the generated files.
  47217. - if test -n "$dlsyms"; then
  47218. - $show "$rm $output_objdir/${outputname}S.${objext}"
  47219. - $run $rm "$output_objdir/${outputname}S.${objext}"
  47220. + case $arg in
  47221. + -all-static)
  47222. + if test -n "$link_static_flag"; then
  47223. + # See comment for -static flag below, for more details.
  47224. + func_append compile_command " $link_static_flag"
  47225. + func_append finalize_command " $link_static_flag"
  47226. fi
  47227. + continue
  47228. + ;;
  47229. - exit $exit_status
  47230. - fi
  47231. -
  47232. - if test -n "$shlibpath_var"; then
  47233. - # We should set the shlibpath_var
  47234. - rpath=
  47235. - for dir in $temp_rpath; do
  47236. - case $dir in
  47237. - [\\/]* | [A-Za-z]:[\\/]*)
  47238. - # Absolute path.
  47239. - rpath="$rpath$dir:"
  47240. - ;;
  47241. - *)
  47242. - # Relative path: add a thisdir entry.
  47243. - rpath="$rpath\$thisdir/$dir:"
  47244. - ;;
  47245. - esac
  47246. - done
  47247. - temp_rpath="$rpath"
  47248. - fi
  47249. + -allow-undefined)
  47250. + # FIXME: remove this flag sometime in the future.
  47251. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  47252. + ;;
  47253. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  47254. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  47255. - fi
  47256. - if test -n "$finalize_shlibpath"; then
  47257. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  47258. - fi
  47259. + -avoid-version)
  47260. + avoid_version=yes
  47261. + continue
  47262. + ;;
  47263. - compile_var=
  47264. - finalize_var=
  47265. - if test -n "$runpath_var"; then
  47266. - if test -n "$perm_rpath"; then
  47267. - # We should set the runpath_var.
  47268. - rpath=
  47269. - for dir in $perm_rpath; do
  47270. - rpath="$rpath$dir:"
  47271. - done
  47272. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  47273. - fi
  47274. - if test -n "$finalize_perm_rpath"; then
  47275. - # We should set the runpath_var.
  47276. - rpath=
  47277. - for dir in $finalize_perm_rpath; do
  47278. - rpath="$rpath$dir:"
  47279. - done
  47280. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  47281. - fi
  47282. - fi
  47283. + -dlopen)
  47284. + prev=dlfiles
  47285. + continue
  47286. + ;;
  47287. - if test "$no_install" = yes; then
  47288. - # We don't need to create a wrapper script.
  47289. - link_command="$compile_var$compile_command$compile_rpath"
  47290. - # Replace the output file specification.
  47291. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  47292. - # Delete the old output file.
  47293. - $run $rm $output
  47294. - # Link the executable and exit
  47295. - $show "$link_command"
  47296. - $run eval "$link_command" || exit $?
  47297. - exit $EXIT_SUCCESS
  47298. - fi
  47299. + -dlpreopen)
  47300. + prev=dlprefiles
  47301. + continue
  47302. + ;;
  47303. - if test "$hardcode_action" = relink; then
  47304. - # Fast installation is not supported
  47305. - link_command="$compile_var$compile_command$compile_rpath"
  47306. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  47307. + -export-dynamic)
  47308. + export_dynamic=yes
  47309. + continue
  47310. + ;;
  47311. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  47312. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  47313. - else
  47314. - if test "$fast_install" != no; then
  47315. - link_command="$finalize_var$compile_command$finalize_rpath"
  47316. - if test "$fast_install" = yes; then
  47317. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  47318. - else
  47319. - # fast_install is set to needless
  47320. - relink_command=
  47321. - fi
  47322. + -export-symbols | -export-symbols-regex)
  47323. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  47324. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  47325. + fi
  47326. + if test "X$arg" = "X-export-symbols"; then
  47327. + prev=expsyms
  47328. else
  47329. - link_command="$compile_var$compile_command$compile_rpath"
  47330. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  47331. + prev=expsyms_regex
  47332. fi
  47333. - fi
  47334. -
  47335. - # Replace the output file specification.
  47336. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  47337. + continue
  47338. + ;;
  47339. - # Delete the old output files.
  47340. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  47341. + -framework)
  47342. + prev=framework
  47343. + continue
  47344. + ;;
  47345. - $show "$link_command"
  47346. - $run eval "$link_command" || exit $?
  47347. + -inst-prefix-dir)
  47348. + prev=inst_prefix
  47349. + continue
  47350. + ;;
  47351. - # Now create the wrapper script.
  47352. - $show "creating $output"
  47353. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  47354. + # so, if we see these flags be careful not to treat them like -L
  47355. + -L[A-Z][A-Z]*:*)
  47356. + case $with_gcc/$host in
  47357. + no/*-*-irix* | /*-*-irix*)
  47358. + func_append compile_command " $arg"
  47359. + func_append finalize_command " $arg"
  47360. + ;;
  47361. + esac
  47362. + continue
  47363. + ;;
  47364. - # Quote the relink command for shipping.
  47365. - if test -n "$relink_command"; then
  47366. - # Preserve any variables that may affect compiler behavior
  47367. - for var in $variables_saved_for_relink; do
  47368. - if eval test -z \"\${$var+set}\"; then
  47369. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  47370. - elif eval var_value=\$$var; test -z "$var_value"; then
  47371. - relink_command="$var=; export $var; $relink_command"
  47372. + -L*)
  47373. + func_stripname '-L' '' "$arg"
  47374. + dir=$func_stripname_result
  47375. + if test -z "$dir"; then
  47376. + if test "$#" -gt 0; then
  47377. + func_fatal_error "require no space between \`-L' and \`$1'"
  47378. else
  47379. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  47380. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  47381. + func_fatal_error "need path for \`-L' option"
  47382. fi
  47383. - done
  47384. - relink_command="(cd `pwd`; $relink_command)"
  47385. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  47386. - fi
  47387. -
  47388. - # Quote $echo for shipping.
  47389. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  47390. - case $progpath in
  47391. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  47392. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  47393. + fi
  47394. + # We need an absolute path.
  47395. + case $dir in
  47396. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  47397. + *)
  47398. + absdir=`cd "$dir" && pwd`
  47399. + test -z "$absdir" && \
  47400. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  47401. + dir="$absdir"
  47402. + ;;
  47403. esac
  47404. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  47405. - else
  47406. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  47407. - fi
  47408. -
  47409. - # Only actually do things if our run command is non-null.
  47410. - if test -z "$run"; then
  47411. - # win32 will think the script is a binary if it has
  47412. - # a .exe suffix, so we strip it off here.
  47413. - case $output in
  47414. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  47415. + case "$deplibs " in
  47416. + *" -L$dir "*) ;;
  47417. + *)
  47418. + deplibs="$deplibs -L$dir"
  47419. + lib_search_path="$lib_search_path $dir"
  47420. + ;;
  47421. esac
  47422. - # test for cygwin because mv fails w/o .exe extensions
  47423. case $host in
  47424. - *cygwin*)
  47425. - exeext=.exe
  47426. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  47427. - *) exeext= ;;
  47428. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  47429. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  47430. + case :$dllsearchpath: in
  47431. + *":$dir:"*) ;;
  47432. + ::) dllsearchpath=$dir;;
  47433. + *) dllsearchpath="$dllsearchpath:$dir";;
  47434. + esac
  47435. + case :$dllsearchpath: in
  47436. + *":$testbindir:"*) ;;
  47437. + ::) dllsearchpath=$testbindir;;
  47438. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  47439. + esac
  47440. + ;;
  47441. esac
  47442. - case $host in
  47443. - *cygwin* | *mingw* )
  47444. - output_name=`basename $output`
  47445. - output_path=`dirname $output`
  47446. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  47447. - cwrapper="$output_path/$output_name.exe"
  47448. - $rm $cwrappersource $cwrapper
  47449. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  47450. + continue
  47451. + ;;
  47452. - cat > $cwrappersource <<EOF
  47453. + -l*)
  47454. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  47455. + case $host in
  47456. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  47457. + # These systems don't actually have a C or math library (as such)
  47458. + continue
  47459. + ;;
  47460. + *-*-os2*)
  47461. + # These systems don't actually have a C library (as such)
  47462. + test "X$arg" = "X-lc" && continue
  47463. + ;;
  47464. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47465. + # Do not include libc due to us having libc/libc_r.
  47466. + test "X$arg" = "X-lc" && continue
  47467. + ;;
  47468. + *-*-rhapsody* | *-*-darwin1.[012])
  47469. + # Rhapsody C and math libraries are in the System framework
  47470. + deplibs="$deplibs System.ltframework"
  47471. + continue
  47472. + ;;
  47473. + *-*-sco3.2v5* | *-*-sco5v6*)
  47474. + # Causes problems with __ctype
  47475. + test "X$arg" = "X-lc" && continue
  47476. + ;;
  47477. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47478. + # Compiler inserts libc in the correct place for threads to work
  47479. + test "X$arg" = "X-lc" && continue
  47480. + ;;
  47481. + esac
  47482. + elif test "X$arg" = "X-lc_r"; then
  47483. + case $host in
  47484. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47485. + # Do not include libc_r directly, use -pthread flag.
  47486. + continue
  47487. + ;;
  47488. + esac
  47489. + fi
  47490. + deplibs="$deplibs $arg"
  47491. + continue
  47492. + ;;
  47493. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  47494. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47495. + -module)
  47496. + module=yes
  47497. + continue
  47498. + ;;
  47499. - The $output program cannot be directly executed until all the libtool
  47500. - libraries that it depends on are installed.
  47501. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  47502. + # classes, name mangling, and exception handling.
  47503. + # Darwin uses the -arch flag to determine output architecture.
  47504. + -model|-arch|-isysroot)
  47505. + compiler_flags="$compiler_flags $arg"
  47506. + func_append compile_command " $arg"
  47507. + func_append finalize_command " $arg"
  47508. + prev=xcompiler
  47509. + continue
  47510. + ;;
  47511. - This wrapper executable should never be moved out of the build directory.
  47512. - If it is, it will not operate correctly.
  47513. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  47514. + compiler_flags="$compiler_flags $arg"
  47515. + func_append compile_command " $arg"
  47516. + func_append finalize_command " $arg"
  47517. + case "$new_inherited_linker_flags " in
  47518. + *" $arg "*) ;;
  47519. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  47520. + esac
  47521. + continue
  47522. + ;;
  47523. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  47524. - but could eventually absorb all of the scripts functionality and
  47525. - exec $objdir/$outputname directly.
  47526. -*/
  47527. -EOF
  47528. - cat >> $cwrappersource<<"EOF"
  47529. -#include <stdio.h>
  47530. -#include <stdlib.h>
  47531. -#include <unistd.h>
  47532. -#include <malloc.h>
  47533. -#include <stdarg.h>
  47534. -#include <assert.h>
  47535. -#include <string.h>
  47536. -#include <ctype.h>
  47537. -#include <sys/stat.h>
  47538. + -multi_module)
  47539. + single_module="${wl}-multi_module"
  47540. + continue
  47541. + ;;
  47542. -#if defined(PATH_MAX)
  47543. -# define LT_PATHMAX PATH_MAX
  47544. -#elif defined(MAXPATHLEN)
  47545. -# define LT_PATHMAX MAXPATHLEN
  47546. -#else
  47547. -# define LT_PATHMAX 1024
  47548. -#endif
  47549. + -no-fast-install)
  47550. + fast_install=no
  47551. + continue
  47552. + ;;
  47553. -#ifndef DIR_SEPARATOR
  47554. -# define DIR_SEPARATOR '/'
  47555. -# define PATH_SEPARATOR ':'
  47556. -#endif
  47557. + -no-install)
  47558. + case $host in
  47559. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  47560. + # The PATH hackery in wrapper scripts is required on Windows
  47561. + # and Darwin in order for the loader to find any dlls it needs.
  47562. + func_warning "\`-no-install' is ignored for $host"
  47563. + func_warning "assuming \`-no-fast-install' instead"
  47564. + fast_install=no
  47565. + ;;
  47566. + *) no_install=yes ;;
  47567. + esac
  47568. + continue
  47569. + ;;
  47570. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  47571. - defined (__OS2__)
  47572. -# define HAVE_DOS_BASED_FILE_SYSTEM
  47573. -# ifndef DIR_SEPARATOR_2
  47574. -# define DIR_SEPARATOR_2 '\\'
  47575. -# endif
  47576. -# ifndef PATH_SEPARATOR_2
  47577. -# define PATH_SEPARATOR_2 ';'
  47578. -# endif
  47579. -#endif
  47580. + -no-undefined)
  47581. + allow_undefined=no
  47582. + continue
  47583. + ;;
  47584. -#ifndef DIR_SEPARATOR_2
  47585. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  47586. -#else /* DIR_SEPARATOR_2 */
  47587. -# define IS_DIR_SEPARATOR(ch) \
  47588. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  47589. -#endif /* DIR_SEPARATOR_2 */
  47590. + -objectlist)
  47591. + prev=objectlist
  47592. + continue
  47593. + ;;
  47594. -#ifndef PATH_SEPARATOR_2
  47595. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  47596. -#else /* PATH_SEPARATOR_2 */
  47597. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  47598. -#endif /* PATH_SEPARATOR_2 */
  47599. + -o) prev=output ;;
  47600. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  47601. -#define XFREE(stale) do { \
  47602. - if (stale) { free ((void *) stale); stale = 0; } \
  47603. -} while (0)
  47604. + -precious-files-regex)
  47605. + prev=precious_regex
  47606. + continue
  47607. + ;;
  47608. -/* -DDEBUG is fairly common in CFLAGS. */
  47609. -#undef DEBUG
  47610. -#if defined DEBUGWRAPPER
  47611. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  47612. -#else
  47613. -# define DEBUG(format, ...)
  47614. -#endif
  47615. + -release)
  47616. + prev=release
  47617. + continue
  47618. + ;;
  47619. -const char *program_name = NULL;
  47620. + -rpath)
  47621. + prev=rpath
  47622. + continue
  47623. + ;;
  47624. -void * xmalloc (size_t num);
  47625. -char * xstrdup (const char *string);
  47626. -const char * base_name (const char *name);
  47627. -char * find_executable(const char *wrapper);
  47628. -int check_executable(const char *path);
  47629. -char * strendzap(char *str, const char *pat);
  47630. -void lt_fatal (const char *message, ...);
  47631. + -R)
  47632. + prev=xrpath
  47633. + continue
  47634. + ;;
  47635. -int
  47636. -main (int argc, char *argv[])
  47637. -{
  47638. - char **newargz;
  47639. - int i;
  47640. + -R*)
  47641. + func_stripname '-R' '' "$arg"
  47642. + dir=$func_stripname_result
  47643. + # We need an absolute path.
  47644. + case $dir in
  47645. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  47646. + *)
  47647. + func_fatal_error "only absolute run-paths are allowed"
  47648. + ;;
  47649. + esac
  47650. + case "$xrpath " in
  47651. + *" $dir "*) ;;
  47652. + *) xrpath="$xrpath $dir" ;;
  47653. + esac
  47654. + continue
  47655. + ;;
  47656. - program_name = (char *) xstrdup (base_name (argv[0]));
  47657. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  47658. - DEBUG("(main) program_name : %s\n",program_name);
  47659. - newargz = XMALLOC(char *, argc+2);
  47660. -EOF
  47661. + -shared)
  47662. + # The effects of -shared are defined in a previous loop.
  47663. + continue
  47664. + ;;
  47665. - cat >> $cwrappersource <<EOF
  47666. - newargz[0] = (char *) xstrdup("$SHELL");
  47667. -EOF
  47668. + -shrext)
  47669. + prev=shrext
  47670. + continue
  47671. + ;;
  47672. - cat >> $cwrappersource <<"EOF"
  47673. - newargz[1] = find_executable(argv[0]);
  47674. - if (newargz[1] == NULL)
  47675. - lt_fatal("Couldn't find %s", argv[0]);
  47676. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  47677. - /* we know the script has the same name, without the .exe */
  47678. - /* so make sure newargz[1] doesn't end in .exe */
  47679. - strendzap(newargz[1],".exe");
  47680. - for (i = 1; i < argc; i++)
  47681. - newargz[i+1] = xstrdup(argv[i]);
  47682. - newargz[argc+1] = NULL;
  47683. + -static | -static-libtool-libs)
  47684. + # The effects of -static are defined in a previous loop.
  47685. + # We used to do the same as -all-static on platforms that
  47686. + # didn't have a PIC flag, but the assumption that the effects
  47687. + # would be equivalent was wrong. It would break on at least
  47688. + # Digital Unix and AIX.
  47689. + continue
  47690. + ;;
  47691. - for (i=0; i<argc+1; i++)
  47692. - {
  47693. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  47694. - ;
  47695. - }
  47696. + -thread-safe)
  47697. + thread_safe=yes
  47698. + continue
  47699. + ;;
  47700. -EOF
  47701. + -version-info)
  47702. + prev=vinfo
  47703. + continue
  47704. + ;;
  47705. - case $host_os in
  47706. - mingw*)
  47707. - cat >> $cwrappersource <<EOF
  47708. - execv("$SHELL",(char const **)newargz);
  47709. -EOF
  47710. - ;;
  47711. - *)
  47712. - cat >> $cwrappersource <<EOF
  47713. - execv("$SHELL",newargz);
  47714. -EOF
  47715. - ;;
  47716. - esac
  47717. + -version-number)
  47718. + prev=vinfo
  47719. + vinfo_number=yes
  47720. + continue
  47721. + ;;
  47722. - cat >> $cwrappersource <<"EOF"
  47723. - return 127;
  47724. -}
  47725. + -weak)
  47726. + prev=weak
  47727. + continue
  47728. + ;;
  47729. -void *
  47730. -xmalloc (size_t num)
  47731. -{
  47732. - void * p = (void *) malloc (num);
  47733. - if (!p)
  47734. - lt_fatal ("Memory exhausted");
  47735. + -Wc,*)
  47736. + func_stripname '-Wc,' '' "$arg"
  47737. + args=$func_stripname_result
  47738. + arg=
  47739. + save_ifs="$IFS"; IFS=','
  47740. + for flag in $args; do
  47741. + IFS="$save_ifs"
  47742. + func_quote_for_eval "$flag"
  47743. + arg="$arg $wl$func_quote_for_eval_result"
  47744. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  47745. + done
  47746. + IFS="$save_ifs"
  47747. + func_stripname ' ' '' "$arg"
  47748. + arg=$func_stripname_result
  47749. + ;;
  47750. - return p;
  47751. -}
  47752. + -Wl,*)
  47753. + func_stripname '-Wl,' '' "$arg"
  47754. + args=$func_stripname_result
  47755. + arg=
  47756. + save_ifs="$IFS"; IFS=','
  47757. + for flag in $args; do
  47758. + IFS="$save_ifs"
  47759. + func_quote_for_eval "$flag"
  47760. + arg="$arg $wl$func_quote_for_eval_result"
  47761. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  47762. + linker_flags="$linker_flags $func_quote_for_eval_result"
  47763. + done
  47764. + IFS="$save_ifs"
  47765. + func_stripname ' ' '' "$arg"
  47766. + arg=$func_stripname_result
  47767. + ;;
  47768. -char *
  47769. -xstrdup (const char *string)
  47770. -{
  47771. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  47772. -;
  47773. -}
  47774. + -Xcompiler)
  47775. + prev=xcompiler
  47776. + continue
  47777. + ;;
  47778. -const char *
  47779. -base_name (const char *name)
  47780. -{
  47781. - const char *base;
  47782. + -Xlinker)
  47783. + prev=xlinker
  47784. + continue
  47785. + ;;
  47786. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47787. - /* Skip over the disk name in MSDOS pathnames. */
  47788. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  47789. - name += 2;
  47790. -#endif
  47791. + -XCClinker)
  47792. + prev=xcclinker
  47793. + continue
  47794. + ;;
  47795. - for (base = name; *name; name++)
  47796. - if (IS_DIR_SEPARATOR (*name))
  47797. - base = name + 1;
  47798. - return base;
  47799. -}
  47800. + # -msg_* for osf cc
  47801. + -msg_*)
  47802. + func_quote_for_eval "$arg"
  47803. + arg="$func_quote_for_eval_result"
  47804. + ;;
  47805. -int
  47806. -check_executable(const char * path)
  47807. -{
  47808. - struct stat st;
  47809. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  47810. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  47811. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  47812. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  47813. + # -q* pass through compiler args for the IBM compiler
  47814. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  47815. + # compiler args for GCC
  47816. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  47817. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  47818. + # @file GCC response files
  47819. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  47820. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  47821. + func_quote_for_eval "$arg"
  47822. + arg="$func_quote_for_eval_result"
  47823. + func_append compile_command " $arg"
  47824. + func_append finalize_command " $arg"
  47825. + compiler_flags="$compiler_flags $arg"
  47826. + continue
  47827. + ;;
  47828. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  47829. - if ((!path) || (!*path))
  47830. - return 0;
  47831. + # Some other compiler flag.
  47832. + -* | +*)
  47833. + func_quote_for_eval "$arg"
  47834. + arg="$func_quote_for_eval_result"
  47835. + ;;
  47836. - if ((stat (path, &st) >= 0) &&
  47837. - (
  47838. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  47839. -#if defined (S_IXOTH)
  47840. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  47841. -#endif
  47842. -#if defined (S_IXGRP)
  47843. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  47844. -#endif
  47845. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  47846. - )
  47847. - return 1;
  47848. - else
  47849. - return 0;
  47850. -}
  47851. + *.$objext)
  47852. + # A standard object.
  47853. + objs="$objs $arg"
  47854. + ;;
  47855. -/* Searches for the full path of the wrapper. Returns
  47856. - newly allocated full path name if found, NULL otherwise */
  47857. -char *
  47858. -find_executable (const char* wrapper)
  47859. -{
  47860. - int has_slash = 0;
  47861. - const char* p;
  47862. - const char* p_next;
  47863. - /* static buffer for getcwd */
  47864. - char tmp[LT_PATHMAX + 1];
  47865. - int tmp_len;
  47866. - char* concat_name;
  47867. + *.lo)
  47868. + # A libtool-controlled object.
  47869. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  47870. + # Check to see that this really is a libtool object.
  47871. + if func_lalib_unsafe_p "$arg"; then
  47872. + pic_object=
  47873. + non_pic_object=
  47874. - if ((wrapper == NULL) || (*wrapper == '\0'))
  47875. - return NULL;
  47876. + # Read the .lo file
  47877. + func_source "$arg"
  47878. - /* Absolute path? */
  47879. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47880. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  47881. - {
  47882. - concat_name = xstrdup (wrapper);
  47883. - if (check_executable(concat_name))
  47884. - return concat_name;
  47885. - XFREE(concat_name);
  47886. - }
  47887. - else
  47888. - {
  47889. -#endif
  47890. - if (IS_DIR_SEPARATOR (wrapper[0]))
  47891. - {
  47892. - concat_name = xstrdup (wrapper);
  47893. - if (check_executable(concat_name))
  47894. - return concat_name;
  47895. - XFREE(concat_name);
  47896. - }
  47897. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  47898. - }
  47899. -#endif
  47900. + if test -z "$pic_object" ||
  47901. + test -z "$non_pic_object" ||
  47902. + test "$pic_object" = none &&
  47903. + test "$non_pic_object" = none; then
  47904. + func_fatal_error "cannot find name of object for \`$arg'"
  47905. + fi
  47906. - for (p = wrapper; *p; p++)
  47907. - if (*p == '/')
  47908. - {
  47909. - has_slash = 1;
  47910. - break;
  47911. - }
  47912. - if (!has_slash)
  47913. - {
  47914. - /* no slashes; search PATH */
  47915. - const char* path = getenv ("PATH");
  47916. - if (path != NULL)
  47917. - {
  47918. - for (p = path; *p; p = p_next)
  47919. - {
  47920. - const char* q;
  47921. - size_t p_len;
  47922. - for (q = p; *q; q++)
  47923. - if (IS_PATH_SEPARATOR(*q))
  47924. - break;
  47925. - p_len = q - p;
  47926. - p_next = (*q == '\0' ? q : q + 1);
  47927. - if (p_len == 0)
  47928. - {
  47929. - /* empty path: current directory */
  47930. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  47931. - lt_fatal ("getcwd failed");
  47932. - tmp_len = strlen(tmp);
  47933. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  47934. - memcpy (concat_name, tmp, tmp_len);
  47935. - concat_name[tmp_len] = '/';
  47936. - strcpy (concat_name + tmp_len + 1, wrapper);
  47937. - }
  47938. - else
  47939. - {
  47940. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  47941. - memcpy (concat_name, p, p_len);
  47942. - concat_name[p_len] = '/';
  47943. - strcpy (concat_name + p_len + 1, wrapper);
  47944. - }
  47945. - if (check_executable(concat_name))
  47946. - return concat_name;
  47947. - XFREE(concat_name);
  47948. - }
  47949. - }
  47950. - /* not found in PATH; assume curdir */
  47951. - }
  47952. - /* Relative path | not found in path: prepend cwd */
  47953. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  47954. - lt_fatal ("getcwd failed");
  47955. - tmp_len = strlen(tmp);
  47956. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  47957. - memcpy (concat_name, tmp, tmp_len);
  47958. - concat_name[tmp_len] = '/';
  47959. - strcpy (concat_name + tmp_len + 1, wrapper);
  47960. + # Extract subdirectory from the argument.
  47961. + func_dirname "$arg" "/" ""
  47962. + xdir="$func_dirname_result"
  47963. - if (check_executable(concat_name))
  47964. - return concat_name;
  47965. - XFREE(concat_name);
  47966. - return NULL;
  47967. -}
  47968. + if test "$pic_object" != none; then
  47969. + # Prepend the subdirectory the object is found in.
  47970. + pic_object="$xdir$pic_object"
  47971. -char *
  47972. -strendzap(char *str, const char *pat)
  47973. -{
  47974. - size_t len, patlen;
  47975. + if test "$prev" = dlfiles; then
  47976. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47977. + dlfiles="$dlfiles $pic_object"
  47978. + prev=
  47979. + continue
  47980. + else
  47981. + # If libtool objects are unsupported, then we need to preload.
  47982. + prev=dlprefiles
  47983. + fi
  47984. + fi
  47985. - assert(str != NULL);
  47986. - assert(pat != NULL);
  47987. + # CHECK ME: I think I busted this. -Ossama
  47988. + if test "$prev" = dlprefiles; then
  47989. + # Preload the old-style object.
  47990. + dlprefiles="$dlprefiles $pic_object"
  47991. + prev=
  47992. + fi
  47993. - len = strlen(str);
  47994. - patlen = strlen(pat);
  47995. + # A PIC object.
  47996. + func_append libobjs " $pic_object"
  47997. + arg="$pic_object"
  47998. + fi
  47999. - if (patlen <= len)
  48000. - {
  48001. - str += len - patlen;
  48002. - if (strcmp(str, pat) == 0)
  48003. - *str = '\0';
  48004. - }
  48005. - return str;
  48006. -}
  48007. + # Non-PIC object.
  48008. + if test "$non_pic_object" != none; then
  48009. + # Prepend the subdirectory the object is found in.
  48010. + non_pic_object="$xdir$non_pic_object"
  48011. -static void
  48012. -lt_error_core (int exit_status, const char * mode,
  48013. - const char * message, va_list ap)
  48014. -{
  48015. - fprintf (stderr, "%s: %s: ", program_name, mode);
  48016. - vfprintf (stderr, message, ap);
  48017. - fprintf (stderr, ".\n");
  48018. + # A standard non-PIC object
  48019. + func_append non_pic_objects " $non_pic_object"
  48020. + if test -z "$pic_object" || test "$pic_object" = none ; then
  48021. + arg="$non_pic_object"
  48022. + fi
  48023. + else
  48024. + # If the PIC object exists, use it instead.
  48025. + # $xdir was prepended to $pic_object above.
  48026. + non_pic_object="$pic_object"
  48027. + func_append non_pic_objects " $non_pic_object"
  48028. + fi
  48029. + else
  48030. + # Only an error if not doing a dry-run.
  48031. + if $opt_dry_run; then
  48032. + # Extract subdirectory from the argument.
  48033. + func_dirname "$arg" "/" ""
  48034. + xdir="$func_dirname_result"
  48035. - if (exit_status >= 0)
  48036. - exit (exit_status);
  48037. -}
  48038. + func_lo2o "$arg"
  48039. + pic_object=$xdir$objdir/$func_lo2o_result
  48040. + non_pic_object=$xdir$func_lo2o_result
  48041. + func_append libobjs " $pic_object"
  48042. + func_append non_pic_objects " $non_pic_object"
  48043. + else
  48044. + func_fatal_error "\`$arg' is not a valid libtool object"
  48045. + fi
  48046. + fi
  48047. + ;;
  48048. -void
  48049. -lt_fatal (const char *message, ...)
  48050. -{
  48051. - va_list ap;
  48052. - va_start (ap, message);
  48053. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  48054. - va_end (ap);
  48055. -}
  48056. -EOF
  48057. - # we should really use a build-platform specific compiler
  48058. - # here, but OTOH, the wrappers (shell script and this C one)
  48059. - # are only useful if you want to execute the "real" binary.
  48060. - # Since the "real" binary is built for $host, then this
  48061. - # wrapper might as well be built for $host, too.
  48062. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  48063. - ;;
  48064. - esac
  48065. - $rm $output
  48066. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  48067. + *.$libext)
  48068. + # An archive.
  48069. + deplibs="$deplibs $arg"
  48070. + old_deplibs="$old_deplibs $arg"
  48071. + continue
  48072. + ;;
  48073. - $echo > $output "\
  48074. -#! $SHELL
  48075. + *.la)
  48076. + # A libtool-controlled library.
  48077. -# $output - temporary wrapper script for $objdir/$outputname
  48078. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48079. -#
  48080. -# The $output program cannot be directly executed until all the libtool
  48081. -# libraries that it depends on are installed.
  48082. -#
  48083. -# This wrapper script should never be moved out of the build directory.
  48084. -# If it is, it will not operate correctly.
  48085. + if test "$prev" = dlfiles; then
  48086. + # This library was specified with -dlopen.
  48087. + dlfiles="$dlfiles $arg"
  48088. + prev=
  48089. + elif test "$prev" = dlprefiles; then
  48090. + # The library was specified with -dlpreopen.
  48091. + dlprefiles="$dlprefiles $arg"
  48092. + prev=
  48093. + else
  48094. + deplibs="$deplibs $arg"
  48095. + fi
  48096. + continue
  48097. + ;;
  48098. -# Sed substitution that helps us do robust quoting. It backslashifies
  48099. -# metacharacters that are still active within double-quoted strings.
  48100. -Xsed='${SED} -e 1s/^X//'
  48101. -sed_quote_subst='$sed_quote_subst'
  48102. + # Some other compiler argument.
  48103. + *)
  48104. + # Unknown arguments in both finalize_command and compile_command need
  48105. + # to be aesthetically quoted because they are evaled later.
  48106. + func_quote_for_eval "$arg"
  48107. + arg="$func_quote_for_eval_result"
  48108. + ;;
  48109. + esac # arg
  48110. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  48111. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  48112. - emulate sh
  48113. - NULLCMD=:
  48114. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  48115. - # is contrary to our usage. Disable this feature.
  48116. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  48117. - setopt NO_GLOB_SUBST
  48118. -else
  48119. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  48120. -fi
  48121. -BIN_SH=xpg4; export BIN_SH # for Tru64
  48122. -DUALCASE=1; export DUALCASE # for MKS sh
  48123. + # Now actually substitute the argument into the commands.
  48124. + if test -n "$arg"; then
  48125. + func_append compile_command " $arg"
  48126. + func_append finalize_command " $arg"
  48127. + fi
  48128. + done # argument parsing loop
  48129. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  48130. -# if CDPATH is set.
  48131. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  48132. + test -n "$prev" && \
  48133. + func_fatal_help "the \`$prevarg' option requires an argument"
  48134. -relink_command=\"$relink_command\"
  48135. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  48136. + eval arg=\"$export_dynamic_flag_spec\"
  48137. + func_append compile_command " $arg"
  48138. + func_append finalize_command " $arg"
  48139. + fi
  48140. -# This environment variable determines our operation mode.
  48141. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  48142. - # install mode needs the following variable:
  48143. - notinst_deplibs='$notinst_deplibs'
  48144. -else
  48145. - # When we are sourced in execute mode, \$file and \$echo are already set.
  48146. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  48147. - echo=\"$qecho\"
  48148. - file=\"\$0\"
  48149. - # Make sure echo works.
  48150. - if test \"X\$1\" = X--no-reexec; then
  48151. - # Discard the --no-reexec flag, and continue.
  48152. - shift
  48153. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  48154. - # Yippee, \$echo works!
  48155. - :
  48156. + oldlibs=
  48157. + # calculate the name of the file, without its directory
  48158. + func_basename "$output"
  48159. + outputname="$func_basename_result"
  48160. + libobjs_save="$libobjs"
  48161. +
  48162. + if test -n "$shlibpath_var"; then
  48163. + # get the directories listed in $shlibpath_var
  48164. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  48165. else
  48166. - # Restart under the correct shell, and then maybe \$echo will work.
  48167. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  48168. + shlib_search_path=
  48169. fi
  48170. - fi\
  48171. -"
  48172. - $echo >> $output "\
  48173. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  48174. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  48175. - # Find the directory that this script lives in.
  48176. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  48177. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  48178. + func_dirname "$output" "/" ""
  48179. + output_objdir="$func_dirname_result$objdir"
  48180. + # Create the object directory.
  48181. + func_mkdir_p "$output_objdir"
  48182. - # Follow symbolic links until we get to the real thisdir.
  48183. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  48184. - while test -n \"\$file\"; do
  48185. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  48186. + # Determine the type of output
  48187. + case $output in
  48188. + "")
  48189. + func_fatal_help "you must specify an output file"
  48190. + ;;
  48191. + *.$libext) linkmode=oldlib ;;
  48192. + *.lo | *.$objext) linkmode=obj ;;
  48193. + *.la) linkmode=lib ;;
  48194. + *) linkmode=prog ;; # Anything else should be a program.
  48195. + esac
  48196. +
  48197. + specialdeplibs=
  48198. +
  48199. + libs=
  48200. + # Find all interdependent deplibs by searching for libraries
  48201. + # that are linked more than once (e.g. -la -lb -la)
  48202. + for deplib in $deplibs; do
  48203. + if $opt_duplicate_deps ; then
  48204. + case "$libs " in
  48205. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48206. + esac
  48207. + fi
  48208. + libs="$libs $deplib"
  48209. + done
  48210. +
  48211. + if test "$linkmode" = lib; then
  48212. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  48213. +
  48214. + # Compute libraries that are listed more than once in $predeps
  48215. + # $postdeps and mark them as special (i.e., whose duplicates are
  48216. + # not to be eliminated).
  48217. + pre_post_deps=
  48218. + if $opt_duplicate_compiler_generated_deps; then
  48219. + for pre_post_dep in $predeps $postdeps; do
  48220. + case "$pre_post_deps " in
  48221. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  48222. + esac
  48223. + pre_post_deps="$pre_post_deps $pre_post_dep"
  48224. + done
  48225. + fi
  48226. + pre_post_deps=
  48227. + fi
  48228. +
  48229. + deplibs=
  48230. + newdependency_libs=
  48231. + newlib_search_path=
  48232. + need_relink=no # whether we're linking any uninstalled libtool libraries
  48233. + notinst_deplibs= # not-installed libtool libraries
  48234. + notinst_path= # paths that contain not-installed libtool libraries
  48235. +
  48236. + case $linkmode in
  48237. + lib)
  48238. + passes="conv dlpreopen link"
  48239. + for file in $dlfiles $dlprefiles; do
  48240. + case $file in
  48241. + *.la) ;;
  48242. + *)
  48243. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  48244. + ;;
  48245. + esac
  48246. + done
  48247. + ;;
  48248. + prog)
  48249. + compile_deplibs=
  48250. + finalize_deplibs=
  48251. + alldeplibs=no
  48252. + newdlfiles=
  48253. + newdlprefiles=
  48254. + passes="conv scan dlopen dlpreopen link"
  48255. + ;;
  48256. + *) passes="conv"
  48257. + ;;
  48258. + esac
  48259. +
  48260. + for pass in $passes; do
  48261. + # The preopen pass in lib mode reverses $deplibs; put it back here
  48262. + # so that -L comes before libs that need it for instance...
  48263. + if test "$linkmode,$pass" = "lib,link"; then
  48264. + ## FIXME: Find the place where the list is rebuilt in the wrong
  48265. + ## order, and fix it there properly
  48266. + tmp_deplibs=
  48267. + for deplib in $deplibs; do
  48268. + tmp_deplibs="$deplib $tmp_deplibs"
  48269. + done
  48270. + deplibs="$tmp_deplibs"
  48271. + fi
  48272. +
  48273. + if test "$linkmode,$pass" = "lib,link" ||
  48274. + test "$linkmode,$pass" = "prog,scan"; then
  48275. + libs="$deplibs"
  48276. + deplibs=
  48277. + fi
  48278. + if test "$linkmode" = prog; then
  48279. + case $pass in
  48280. + dlopen) libs="$dlfiles" ;;
  48281. + dlpreopen) libs="$dlprefiles" ;;
  48282. + link)
  48283. + libs="$deplibs %DEPLIBS%"
  48284. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  48285. + ;;
  48286. + esac
  48287. + fi
  48288. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  48289. + # Collect and forward deplibs of preopened libtool libs
  48290. + for lib in $dlprefiles; do
  48291. + # Ignore non-libtool-libs
  48292. + dependency_libs=
  48293. + case $lib in
  48294. + *.la) func_source "$lib" ;;
  48295. + esac
  48296. +
  48297. + # Collect preopened libtool deplibs, except any this library
  48298. + # has declared as weak libs
  48299. + for deplib in $dependency_libs; do
  48300. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  48301. + case " $weak_libs " in
  48302. + *" $deplib_base "*) ;;
  48303. + *) deplibs="$deplibs $deplib" ;;
  48304. + esac
  48305. + done
  48306. + done
  48307. + libs="$dlprefiles"
  48308. + fi
  48309. + if test "$pass" = dlopen; then
  48310. + # Collect dlpreopened libraries
  48311. + save_deplibs="$deplibs"
  48312. + deplibs=
  48313. + fi
  48314. +
  48315. + for deplib in $libs; do
  48316. + lib=
  48317. + found=no
  48318. + case $deplib in
  48319. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  48320. + if test "$linkmode,$pass" = "prog,link"; then
  48321. + compile_deplibs="$deplib $compile_deplibs"
  48322. + finalize_deplibs="$deplib $finalize_deplibs"
  48323. + else
  48324. + compiler_flags="$compiler_flags $deplib"
  48325. + if test "$linkmode" = lib ; then
  48326. + case "$new_inherited_linker_flags " in
  48327. + *" $deplib "*) ;;
  48328. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  48329. + esac
  48330. + fi
  48331. + fi
  48332. + continue
  48333. + ;;
  48334. + -l*)
  48335. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  48336. + func_warning "\`-l' is ignored for archives/objects"
  48337. + continue
  48338. + fi
  48339. + func_stripname '-l' '' "$deplib"
  48340. + name=$func_stripname_result
  48341. + if test "$linkmode" = lib; then
  48342. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  48343. + else
  48344. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  48345. + fi
  48346. + for searchdir in $searchdirs; do
  48347. + for search_ext in .la $std_shrext .so .a; do
  48348. + # Search the libtool library
  48349. + lib="$searchdir/lib${name}${search_ext}"
  48350. + if test -f "$lib"; then
  48351. + if test "$search_ext" = ".la"; then
  48352. + found=yes
  48353. + else
  48354. + found=no
  48355. + fi
  48356. + break 2
  48357. + fi
  48358. + done
  48359. + done
  48360. + if test "$found" != yes; then
  48361. + # deplib doesn't seem to be a libtool library
  48362. + if test "$linkmode,$pass" = "prog,link"; then
  48363. + compile_deplibs="$deplib $compile_deplibs"
  48364. + finalize_deplibs="$deplib $finalize_deplibs"
  48365. + else
  48366. + deplibs="$deplib $deplibs"
  48367. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48368. + fi
  48369. + continue
  48370. + else # deplib is a libtool library
  48371. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  48372. + # We need to do some special things here, and not later.
  48373. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48374. + case " $predeps $postdeps " in
  48375. + *" $deplib "*)
  48376. + if func_lalib_p "$lib"; then
  48377. + library_names=
  48378. + old_library=
  48379. + func_source "$lib"
  48380. + for l in $old_library $library_names; do
  48381. + ll="$l"
  48382. + done
  48383. + if test "X$ll" = "X$old_library" ; then # only static version available
  48384. + found=no
  48385. + func_dirname "$lib" "" "."
  48386. + ladir="$func_dirname_result"
  48387. + lib=$ladir/$old_library
  48388. + if test "$linkmode,$pass" = "prog,link"; then
  48389. + compile_deplibs="$deplib $compile_deplibs"
  48390. + finalize_deplibs="$deplib $finalize_deplibs"
  48391. + else
  48392. + deplibs="$deplib $deplibs"
  48393. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48394. + fi
  48395. + continue
  48396. + fi
  48397. + fi
  48398. + ;;
  48399. + *) ;;
  48400. + esac
  48401. + fi
  48402. + fi
  48403. + ;; # -l
  48404. + *.ltframework)
  48405. + if test "$linkmode,$pass" = "prog,link"; then
  48406. + compile_deplibs="$deplib $compile_deplibs"
  48407. + finalize_deplibs="$deplib $finalize_deplibs"
  48408. + else
  48409. + deplibs="$deplib $deplibs"
  48410. + if test "$linkmode" = lib ; then
  48411. + case "$new_inherited_linker_flags " in
  48412. + *" $deplib "*) ;;
  48413. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  48414. + esac
  48415. + fi
  48416. + fi
  48417. + continue
  48418. + ;;
  48419. + -L*)
  48420. + case $linkmode in
  48421. + lib)
  48422. + deplibs="$deplib $deplibs"
  48423. + test "$pass" = conv && continue
  48424. + newdependency_libs="$deplib $newdependency_libs"
  48425. + func_stripname '-L' '' "$deplib"
  48426. + newlib_search_path="$newlib_search_path $func_stripname_result"
  48427. + ;;
  48428. + prog)
  48429. + if test "$pass" = conv; then
  48430. + deplibs="$deplib $deplibs"
  48431. + continue
  48432. + fi
  48433. + if test "$pass" = scan; then
  48434. + deplibs="$deplib $deplibs"
  48435. + else
  48436. + compile_deplibs="$deplib $compile_deplibs"
  48437. + finalize_deplibs="$deplib $finalize_deplibs"
  48438. + fi
  48439. + func_stripname '-L' '' "$deplib"
  48440. + newlib_search_path="$newlib_search_path $func_stripname_result"
  48441. + ;;
  48442. + *)
  48443. + func_warning "\`-L' is ignored for archives/objects"
  48444. + ;;
  48445. + esac # linkmode
  48446. + continue
  48447. + ;; # -L
  48448. + -R*)
  48449. + if test "$pass" = link; then
  48450. + func_stripname '-R' '' "$deplib"
  48451. + dir=$func_stripname_result
  48452. + # Make sure the xrpath contains only unique directories.
  48453. + case "$xrpath " in
  48454. + *" $dir "*) ;;
  48455. + *) xrpath="$xrpath $dir" ;;
  48456. + esac
  48457. + fi
  48458. + deplibs="$deplib $deplibs"
  48459. + continue
  48460. + ;;
  48461. + *.la) lib="$deplib" ;;
  48462. + *.$libext)
  48463. + if test "$pass" = conv; then
  48464. + deplibs="$deplib $deplibs"
  48465. + continue
  48466. + fi
  48467. + case $linkmode in
  48468. + lib)
  48469. + # Linking convenience modules into shared libraries is allowed,
  48470. + # but linking other static libraries is non-portable.
  48471. + case " $dlpreconveniencelibs " in
  48472. + *" $deplib "*) ;;
  48473. + *)
  48474. + valid_a_lib=no
  48475. + case $deplibs_check_method in
  48476. + match_pattern*)
  48477. + set dummy $deplibs_check_method; shift
  48478. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  48479. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  48480. + | $EGREP "$match_pattern_regex" > /dev/null; then
  48481. + valid_a_lib=yes
  48482. + fi
  48483. + ;;
  48484. + pass_all)
  48485. + valid_a_lib=yes
  48486. + ;;
  48487. + esac
  48488. + if test "$valid_a_lib" != yes; then
  48489. + $ECHO
  48490. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  48491. + $ECHO "*** I have the capability to make that library automatically link in when"
  48492. + $ECHO "*** you link to this library. But I can only do this if you have a"
  48493. + $ECHO "*** shared version of the library, which you do not appear to have"
  48494. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  48495. + $ECHO "*** that it is just a static archive that I should not use here."
  48496. + else
  48497. + $ECHO
  48498. + $ECHO "*** Warning: Linking the shared library $output against the"
  48499. + $ECHO "*** static library $deplib is not portable!"
  48500. + deplibs="$deplib $deplibs"
  48501. + fi
  48502. + ;;
  48503. + esac
  48504. + continue
  48505. + ;;
  48506. + prog)
  48507. + if test "$pass" != link; then
  48508. + deplibs="$deplib $deplibs"
  48509. + else
  48510. + compile_deplibs="$deplib $compile_deplibs"
  48511. + finalize_deplibs="$deplib $finalize_deplibs"
  48512. + fi
  48513. + continue
  48514. + ;;
  48515. + esac # linkmode
  48516. + ;; # *.$libext
  48517. + *.lo | *.$objext)
  48518. + if test "$pass" = conv; then
  48519. + deplibs="$deplib $deplibs"
  48520. + elif test "$linkmode" = prog; then
  48521. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  48522. + # If there is no dlopen support or we're linking statically,
  48523. + # we need to preload.
  48524. + newdlprefiles="$newdlprefiles $deplib"
  48525. + compile_deplibs="$deplib $compile_deplibs"
  48526. + finalize_deplibs="$deplib $finalize_deplibs"
  48527. + else
  48528. + newdlfiles="$newdlfiles $deplib"
  48529. + fi
  48530. + fi
  48531. + continue
  48532. + ;;
  48533. + %DEPLIBS%)
  48534. + alldeplibs=yes
  48535. + continue
  48536. + ;;
  48537. + esac # case $deplib
  48538. +
  48539. + if test "$found" = yes || test -f "$lib"; then :
  48540. + else
  48541. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  48542. + fi
  48543. +
  48544. + # Check to see that this really is a libtool archive.
  48545. + func_lalib_unsafe_p "$lib" \
  48546. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  48547. +
  48548. + func_dirname "$lib" "" "."
  48549. + ladir="$func_dirname_result"
  48550. +
  48551. + dlname=
  48552. + dlopen=
  48553. + dlpreopen=
  48554. + libdir=
  48555. + library_names=
  48556. + old_library=
  48557. + inherited_linker_flags=
  48558. + # If the library was installed with an old release of libtool,
  48559. + # it will not redefine variables installed, or shouldnotlink
  48560. + installed=yes
  48561. + shouldnotlink=no
  48562. + avoidtemprpath=
  48563. +
  48564. +
  48565. + # Read the .la file
  48566. + func_source "$lib"
  48567. +
  48568. + # Convert "-framework foo" to "foo.ltframework"
  48569. + if test -n "$inherited_linker_flags"; then
  48570. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  48571. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  48572. + case " $new_inherited_linker_flags " in
  48573. + *" $tmp_inherited_linker_flag "*) ;;
  48574. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  48575. + esac
  48576. + done
  48577. + fi
  48578. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  48579. + if test "$linkmode,$pass" = "lib,link" ||
  48580. + test "$linkmode,$pass" = "prog,scan" ||
  48581. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  48582. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  48583. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  48584. + fi
  48585. +
  48586. + if test "$pass" = conv; then
  48587. + # Only check for convenience libraries
  48588. + deplibs="$lib $deplibs"
  48589. + if test -z "$libdir"; then
  48590. + if test -z "$old_library"; then
  48591. + func_fatal_error "cannot find name of link library for \`$lib'"
  48592. + fi
  48593. + # It is a libtool convenience library, so add in its objects.
  48594. + convenience="$convenience $ladir/$objdir/$old_library"
  48595. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  48596. + tmp_libs=
  48597. + for deplib in $dependency_libs; do
  48598. + deplibs="$deplib $deplibs"
  48599. + if $opt_duplicate_deps ; then
  48600. + case "$tmp_libs " in
  48601. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48602. + esac
  48603. + fi
  48604. + tmp_libs="$tmp_libs $deplib"
  48605. + done
  48606. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  48607. + func_fatal_error "\`$lib' is not a convenience library"
  48608. + fi
  48609. + continue
  48610. + fi # $pass = conv
  48611. +
  48612. +
  48613. + # Get the name of the library we link against.
  48614. + linklib=
  48615. + for l in $old_library $library_names; do
  48616. + linklib="$l"
  48617. + done
  48618. + if test -z "$linklib"; then
  48619. + func_fatal_error "cannot find name of link library for \`$lib'"
  48620. + fi
  48621. +
  48622. + # This library was specified with -dlopen.
  48623. + if test "$pass" = dlopen; then
  48624. + if test -z "$libdir"; then
  48625. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  48626. + fi
  48627. + if test -z "$dlname" ||
  48628. + test "$dlopen_support" != yes ||
  48629. + test "$build_libtool_libs" = no; then
  48630. + # If there is no dlname, no dlopen support or we're linking
  48631. + # statically, we need to preload. We also need to preload any
  48632. + # dependent libraries so libltdl's deplib preloader doesn't
  48633. + # bomb out in the load deplibs phase.
  48634. + dlprefiles="$dlprefiles $lib $dependency_libs"
  48635. + else
  48636. + newdlfiles="$newdlfiles $lib"
  48637. + fi
  48638. + continue
  48639. + fi # $pass = dlopen
  48640. +
  48641. + # We need an absolute path.
  48642. + case $ladir in
  48643. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  48644. + *)
  48645. + abs_ladir=`cd "$ladir" && pwd`
  48646. + if test -z "$abs_ladir"; then
  48647. + func_warning "cannot determine absolute directory name of \`$ladir'"
  48648. + func_warning "passing it literally to the linker, although it might fail"
  48649. + abs_ladir="$ladir"
  48650. + fi
  48651. + ;;
  48652. + esac
  48653. + func_basename "$lib"
  48654. + laname="$func_basename_result"
  48655. +
  48656. + # Find the relevant object directory and library name.
  48657. + if test "X$installed" = Xyes; then
  48658. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  48659. + func_warning "library \`$lib' was moved."
  48660. + dir="$ladir"
  48661. + absdir="$abs_ladir"
  48662. + libdir="$abs_ladir"
  48663. + else
  48664. + dir="$libdir"
  48665. + absdir="$libdir"
  48666. + fi
  48667. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  48668. + else
  48669. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  48670. + dir="$ladir"
  48671. + absdir="$abs_ladir"
  48672. + # Remove this search path later
  48673. + notinst_path="$notinst_path $abs_ladir"
  48674. + else
  48675. + dir="$ladir/$objdir"
  48676. + absdir="$abs_ladir/$objdir"
  48677. + # Remove this search path later
  48678. + notinst_path="$notinst_path $abs_ladir"
  48679. + fi
  48680. + fi # $installed = yes
  48681. + func_stripname 'lib' '.la' "$laname"
  48682. + name=$func_stripname_result
  48683. +
  48684. + # This library was specified with -dlpreopen.
  48685. + if test "$pass" = dlpreopen; then
  48686. + if test -z "$libdir" && test "$linkmode" = prog; then
  48687. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  48688. + fi
  48689. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  48690. + # are required to link).
  48691. + if test -n "$old_library"; then
  48692. + newdlprefiles="$newdlprefiles $dir/$old_library"
  48693. + # Keep a list of preopened convenience libraries to check
  48694. + # that they are being used correctly in the link pass.
  48695. + test -z "$libdir" && \
  48696. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  48697. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  48698. + elif test -n "$dlname"; then
  48699. + newdlprefiles="$newdlprefiles $dir/$dlname"
  48700. + else
  48701. + newdlprefiles="$newdlprefiles $dir/$linklib"
  48702. + fi
  48703. + fi # $pass = dlpreopen
  48704. +
  48705. + if test -z "$libdir"; then
  48706. + # Link the convenience library
  48707. + if test "$linkmode" = lib; then
  48708. + deplibs="$dir/$old_library $deplibs"
  48709. + elif test "$linkmode,$pass" = "prog,link"; then
  48710. + compile_deplibs="$dir/$old_library $compile_deplibs"
  48711. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  48712. + else
  48713. + deplibs="$lib $deplibs" # used for prog,scan pass
  48714. + fi
  48715. + continue
  48716. + fi
  48717. +
  48718. +
  48719. + if test "$linkmode" = prog && test "$pass" != link; then
  48720. + newlib_search_path="$newlib_search_path $ladir"
  48721. + deplibs="$lib $deplibs"
  48722. +
  48723. + linkalldeplibs=no
  48724. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  48725. + test "$build_libtool_libs" = no; then
  48726. + linkalldeplibs=yes
  48727. + fi
  48728. +
  48729. + tmp_libs=
  48730. + for deplib in $dependency_libs; do
  48731. + case $deplib in
  48732. + -L*) func_stripname '-L' '' "$deplib"
  48733. + newlib_search_path="$newlib_search_path $func_stripname_result"
  48734. + ;;
  48735. + esac
  48736. + # Need to link against all dependency_libs?
  48737. + if test "$linkalldeplibs" = yes; then
  48738. + deplibs="$deplib $deplibs"
  48739. + else
  48740. + # Need to hardcode shared library paths
  48741. + # or/and link against static libraries
  48742. + newdependency_libs="$deplib $newdependency_libs"
  48743. + fi
  48744. + if $opt_duplicate_deps ; then
  48745. + case "$tmp_libs " in
  48746. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48747. + esac
  48748. + fi
  48749. + tmp_libs="$tmp_libs $deplib"
  48750. + done # for deplib
  48751. + continue
  48752. + fi # $linkmode = prog...
  48753. +
  48754. + if test "$linkmode,$pass" = "prog,link"; then
  48755. + if test -n "$library_names" &&
  48756. + { { test "$prefer_static_libs" = no ||
  48757. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  48758. + test -z "$old_library"; }; then
  48759. + # We need to hardcode the library path
  48760. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  48761. + # Make sure the rpath contains only unique directories.
  48762. + case "$temp_rpath:" in
  48763. + *"$absdir:"*) ;;
  48764. + *) temp_rpath="$temp_rpath$absdir:" ;;
  48765. + esac
  48766. + fi
  48767. +
  48768. + # Hardcode the library path.
  48769. + # Skip directories that are in the system default run-time
  48770. + # search path.
  48771. + case " $sys_lib_dlsearch_path " in
  48772. + *" $absdir "*) ;;
  48773. + *)
  48774. + case "$compile_rpath " in
  48775. + *" $absdir "*) ;;
  48776. + *) compile_rpath="$compile_rpath $absdir"
  48777. + esac
  48778. + ;;
  48779. + esac
  48780. + case " $sys_lib_dlsearch_path " in
  48781. + *" $libdir "*) ;;
  48782. + *)
  48783. + case "$finalize_rpath " in
  48784. + *" $libdir "*) ;;
  48785. + *) finalize_rpath="$finalize_rpath $libdir"
  48786. + esac
  48787. + ;;
  48788. + esac
  48789. + fi # $linkmode,$pass = prog,link...
  48790. +
  48791. + if test "$alldeplibs" = yes &&
  48792. + { test "$deplibs_check_method" = pass_all ||
  48793. + { test "$build_libtool_libs" = yes &&
  48794. + test -n "$library_names"; }; }; then
  48795. + # We only need to search for static libraries
  48796. + continue
  48797. + fi
  48798. + fi
  48799. +
  48800. + link_static=no # Whether the deplib will be linked statically
  48801. + use_static_libs=$prefer_static_libs
  48802. + if test "$use_static_libs" = built && test "$installed" = yes; then
  48803. + use_static_libs=no
  48804. + fi
  48805. + if test -n "$library_names" &&
  48806. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  48807. + case $host in
  48808. + *cygwin* | *mingw* | *cegcc*)
  48809. + # No point in relinking DLLs because paths are not encoded
  48810. + notinst_deplibs="$notinst_deplibs $lib"
  48811. + need_relink=no
  48812. + ;;
  48813. + *)
  48814. + if test "$installed" = no; then
  48815. + notinst_deplibs="$notinst_deplibs $lib"
  48816. + need_relink=yes
  48817. + fi
  48818. + ;;
  48819. + esac
  48820. + # This is a shared library
  48821. +
  48822. + # Warn about portability, can't link against -module's on some
  48823. + # systems (darwin). Don't bleat about dlopened modules though!
  48824. + dlopenmodule=""
  48825. + for dlpremoduletest in $dlprefiles; do
  48826. + if test "X$dlpremoduletest" = "X$lib"; then
  48827. + dlopenmodule="$dlpremoduletest"
  48828. + break
  48829. + fi
  48830. + done
  48831. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  48832. + $ECHO
  48833. + if test "$linkmode" = prog; then
  48834. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  48835. + else
  48836. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  48837. + fi
  48838. + $ECHO "*** $linklib is not portable!"
  48839. + fi
  48840. + if test "$linkmode" = lib &&
  48841. + test "$hardcode_into_libs" = yes; then
  48842. + # Hardcode the library path.
  48843. + # Skip directories that are in the system default run-time
  48844. + # search path.
  48845. + case " $sys_lib_dlsearch_path " in
  48846. + *" $absdir "*) ;;
  48847. + *)
  48848. + case "$compile_rpath " in
  48849. + *" $absdir "*) ;;
  48850. + *) compile_rpath="$compile_rpath $absdir"
  48851. + esac
  48852. + ;;
  48853. + esac
  48854. + case " $sys_lib_dlsearch_path " in
  48855. + *" $libdir "*) ;;
  48856. + *)
  48857. + case "$finalize_rpath " in
  48858. + *" $libdir "*) ;;
  48859. + *) finalize_rpath="$finalize_rpath $libdir"
  48860. + esac
  48861. + ;;
  48862. + esac
  48863. + fi
  48864. +
  48865. + if test -n "$old_archive_from_expsyms_cmds"; then
  48866. + # figure out the soname
  48867. + set dummy $library_names
  48868. + shift
  48869. + realname="$1"
  48870. + shift
  48871. + libname=`eval "\\$ECHO \"$libname_spec\""`
  48872. + # use dlname if we got it. it's perfectly good, no?
  48873. + if test -n "$dlname"; then
  48874. + soname="$dlname"
  48875. + elif test -n "$soname_spec"; then
  48876. + # bleh windows
  48877. + case $host in
  48878. + *cygwin* | mingw* | *cegcc*)
  48879. + func_arith $current - $age
  48880. + major=$func_arith_result
  48881. + versuffix="-$major"
  48882. + ;;
  48883. + esac
  48884. + eval soname=\"$soname_spec\"
  48885. + else
  48886. + soname="$realname"
  48887. + fi
  48888. +
  48889. + # Make a new name for the extract_expsyms_cmds to use
  48890. + soroot="$soname"
  48891. + func_basename "$soroot"
  48892. + soname="$func_basename_result"
  48893. + func_stripname 'lib' '.dll' "$soname"
  48894. + newlib=libimp-$func_stripname_result.a
  48895. +
  48896. + # If the library has no export list, then create one now
  48897. + if test -f "$output_objdir/$soname-def"; then :
  48898. + else
  48899. + func_verbose "extracting exported symbol list from \`$soname'"
  48900. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  48901. + fi
  48902. +
  48903. + # Create $newlib
  48904. + if test -f "$output_objdir/$newlib"; then :; else
  48905. + func_verbose "generating import library for \`$soname'"
  48906. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  48907. + fi
  48908. + # make sure the library variables are pointing to the new library
  48909. + dir=$output_objdir
  48910. + linklib=$newlib
  48911. + fi # test -n "$old_archive_from_expsyms_cmds"
  48912. +
  48913. + if test "$linkmode" = prog || test "$mode" != relink; then
  48914. + add_shlibpath=
  48915. + add_dir=
  48916. + add=
  48917. + lib_linked=yes
  48918. + case $hardcode_action in
  48919. + immediate | unsupported)
  48920. + if test "$hardcode_direct" = no; then
  48921. + add="$dir/$linklib"
  48922. + case $host in
  48923. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  48924. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  48925. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  48926. + *-*-unixware7*) add_dir="-L$dir" ;;
  48927. + *-*-darwin* )
  48928. + # if the lib is a (non-dlopened) module then we can not
  48929. + # link against it, someone is ignoring the earlier warnings
  48930. + if /usr/bin/file -L $add 2> /dev/null |
  48931. + $GREP ": [^:]* bundle" >/dev/null ; then
  48932. + if test "X$dlopenmodule" != "X$lib"; then
  48933. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  48934. + if test -z "$old_library" ; then
  48935. + $ECHO
  48936. + $ECHO "*** And there doesn't seem to be a static archive available"
  48937. + $ECHO "*** The link will probably fail, sorry"
  48938. + else
  48939. + add="$dir/$old_library"
  48940. + fi
  48941. + elif test -n "$old_library"; then
  48942. + add="$dir/$old_library"
  48943. + fi
  48944. + fi
  48945. + esac
  48946. + elif test "$hardcode_minus_L" = no; then
  48947. + case $host in
  48948. + *-*-sunos*) add_shlibpath="$dir" ;;
  48949. + esac
  48950. + add_dir="-L$dir"
  48951. + add="-l$name"
  48952. + elif test "$hardcode_shlibpath_var" = no; then
  48953. + add_shlibpath="$dir"
  48954. + add="-l$name"
  48955. + else
  48956. + lib_linked=no
  48957. + fi
  48958. + ;;
  48959. + relink)
  48960. + if test "$hardcode_direct" = yes &&
  48961. + test "$hardcode_direct_absolute" = no; then
  48962. + add="$dir/$linklib"
  48963. + elif test "$hardcode_minus_L" = yes; then
  48964. + add_dir="-L$dir"
  48965. + # Try looking first in the location we're being installed to.
  48966. + if test -n "$inst_prefix_dir"; then
  48967. + case $libdir in
  48968. + [\\/]*)
  48969. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  48970. + ;;
  48971. + esac
  48972. + fi
  48973. + add="-l$name"
  48974. + elif test "$hardcode_shlibpath_var" = yes; then
  48975. + add_shlibpath="$dir"
  48976. + add="-l$name"
  48977. + else
  48978. + lib_linked=no
  48979. + fi
  48980. + ;;
  48981. + *) lib_linked=no ;;
  48982. + esac
  48983. +
  48984. + if test "$lib_linked" != yes; then
  48985. + func_fatal_configuration "unsupported hardcode properties"
  48986. + fi
  48987. +
  48988. + if test -n "$add_shlibpath"; then
  48989. + case :$compile_shlibpath: in
  48990. + *":$add_shlibpath:"*) ;;
  48991. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  48992. + esac
  48993. + fi
  48994. + if test "$linkmode" = prog; then
  48995. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  48996. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  48997. + else
  48998. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  48999. + test -n "$add" && deplibs="$add $deplibs"
  49000. + if test "$hardcode_direct" != yes &&
  49001. + test "$hardcode_minus_L" != yes &&
  49002. + test "$hardcode_shlibpath_var" = yes; then
  49003. + case :$finalize_shlibpath: in
  49004. + *":$libdir:"*) ;;
  49005. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49006. + esac
  49007. + fi
  49008. + fi
  49009. + fi
  49010. +
  49011. + if test "$linkmode" = prog || test "$mode" = relink; then
  49012. + add_shlibpath=
  49013. + add_dir=
  49014. + add=
  49015. + # Finalize command for both is simple: just hardcode it.
  49016. + if test "$hardcode_direct" = yes &&
  49017. + test "$hardcode_direct_absolute" = no; then
  49018. + add="$libdir/$linklib"
  49019. + elif test "$hardcode_minus_L" = yes; then
  49020. + add_dir="-L$libdir"
  49021. + add="-l$name"
  49022. + elif test "$hardcode_shlibpath_var" = yes; then
  49023. + case :$finalize_shlibpath: in
  49024. + *":$libdir:"*) ;;
  49025. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49026. + esac
  49027. + add="-l$name"
  49028. + elif test "$hardcode_automatic" = yes; then
  49029. + if test -n "$inst_prefix_dir" &&
  49030. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  49031. + add="$inst_prefix_dir$libdir/$linklib"
  49032. + else
  49033. + add="$libdir/$linklib"
  49034. + fi
  49035. + else
  49036. + # We cannot seem to hardcode it, guess we'll fake it.
  49037. + add_dir="-L$libdir"
  49038. + # Try looking first in the location we're being installed to.
  49039. + if test -n "$inst_prefix_dir"; then
  49040. + case $libdir in
  49041. + [\\/]*)
  49042. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49043. + ;;
  49044. + esac
  49045. + fi
  49046. + add="-l$name"
  49047. + fi
  49048. +
  49049. + if test "$linkmode" = prog; then
  49050. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  49051. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  49052. + else
  49053. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49054. + test -n "$add" && deplibs="$add $deplibs"
  49055. + fi
  49056. + fi
  49057. + elif test "$linkmode" = prog; then
  49058. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  49059. + # is not unsupported. This is valid on all known static and
  49060. + # shared platforms.
  49061. + if test "$hardcode_direct" != unsupported; then
  49062. + test -n "$old_library" && linklib="$old_library"
  49063. + compile_deplibs="$dir/$linklib $compile_deplibs"
  49064. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  49065. + else
  49066. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  49067. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  49068. + fi
  49069. + elif test "$build_libtool_libs" = yes; then
  49070. + # Not a shared library
  49071. + if test "$deplibs_check_method" != pass_all; then
  49072. + # We're trying link a shared library against a static one
  49073. + # but the system doesn't support it.
  49074. +
  49075. + # Just print a warning and add the library to dependency_libs so
  49076. + # that the program can be linked against the static library.
  49077. + $ECHO
  49078. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  49079. + $ECHO "*** I have the capability to make that library automatically link in when"
  49080. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49081. + $ECHO "*** shared version of the library, which you do not appear to have."
  49082. + if test "$module" = yes; then
  49083. + $ECHO "*** But as you try to build a module library, libtool will still create "
  49084. + $ECHO "*** a static module, that should work as long as the dlopening application"
  49085. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  49086. + if test -z "$global_symbol_pipe"; then
  49087. + $ECHO
  49088. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  49089. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49090. + $ECHO "*** not find such a program. So, this module is probably useless."
  49091. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  49092. + fi
  49093. + if test "$build_old_libs" = no; then
  49094. + build_libtool_libs=module
  49095. + build_old_libs=yes
  49096. + else
  49097. + build_libtool_libs=no
  49098. + fi
  49099. + fi
  49100. + else
  49101. + deplibs="$dir/$old_library $deplibs"
  49102. + link_static=yes
  49103. + fi
  49104. + fi # link shared/static library?
  49105. +
  49106. + if test "$linkmode" = lib; then
  49107. + if test -n "$dependency_libs" &&
  49108. + { test "$hardcode_into_libs" != yes ||
  49109. + test "$build_old_libs" = yes ||
  49110. + test "$link_static" = yes; }; then
  49111. + # Extract -R from dependency_libs
  49112. + temp_deplibs=
  49113. + for libdir in $dependency_libs; do
  49114. + case $libdir in
  49115. + -R*) func_stripname '-R' '' "$libdir"
  49116. + temp_xrpath=$func_stripname_result
  49117. + case " $xrpath " in
  49118. + *" $temp_xrpath "*) ;;
  49119. + *) xrpath="$xrpath $temp_xrpath";;
  49120. + esac;;
  49121. + *) temp_deplibs="$temp_deplibs $libdir";;
  49122. + esac
  49123. + done
  49124. + dependency_libs="$temp_deplibs"
  49125. + fi
  49126. +
  49127. + newlib_search_path="$newlib_search_path $absdir"
  49128. + # Link against this library
  49129. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  49130. + # ... and its dependency_libs
  49131. + tmp_libs=
  49132. + for deplib in $dependency_libs; do
  49133. + newdependency_libs="$deplib $newdependency_libs"
  49134. + if $opt_duplicate_deps ; then
  49135. + case "$tmp_libs " in
  49136. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49137. + esac
  49138. + fi
  49139. + tmp_libs="$tmp_libs $deplib"
  49140. + done
  49141. +
  49142. + if test "$link_all_deplibs" != no; then
  49143. + # Add the search paths of all dependency libraries
  49144. + for deplib in $dependency_libs; do
  49145. + path=
  49146. + case $deplib in
  49147. + -L*) path="$deplib" ;;
  49148. + *.la)
  49149. + func_dirname "$deplib" "" "."
  49150. + dir="$func_dirname_result"
  49151. + # We need an absolute path.
  49152. + case $dir in
  49153. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  49154. + *)
  49155. + absdir=`cd "$dir" && pwd`
  49156. + if test -z "$absdir"; then
  49157. + func_warning "cannot determine absolute directory name of \`$dir'"
  49158. + absdir="$dir"
  49159. + fi
  49160. + ;;
  49161. + esac
  49162. + if $GREP "^installed=no" $deplib > /dev/null; then
  49163. + case $host in
  49164. + *-*-darwin*)
  49165. + depdepl=
  49166. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  49167. + if test -n "$deplibrary_names" ; then
  49168. + for tmp in $deplibrary_names ; do
  49169. + depdepl=$tmp
  49170. + done
  49171. + if test -f "$absdir/$objdir/$depdepl" ; then
  49172. + depdepl="$absdir/$objdir/$depdepl"
  49173. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  49174. + if test -z "$darwin_install_name"; then
  49175. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  49176. + fi
  49177. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  49178. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  49179. + path=
  49180. + fi
  49181. + fi
  49182. + ;;
  49183. + *)
  49184. + path="-L$absdir/$objdir"
  49185. + ;;
  49186. + esac
  49187. + else
  49188. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49189. + test -z "$libdir" && \
  49190. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  49191. + test "$absdir" != "$libdir" && \
  49192. + func_warning "\`$deplib' seems to be moved"
  49193. +
  49194. + path="-L$absdir"
  49195. + fi
  49196. + ;;
  49197. + esac
  49198. + case " $deplibs " in
  49199. + *" $path "*) ;;
  49200. + *) deplibs="$path $deplibs" ;;
  49201. + esac
  49202. + done
  49203. + fi # link_all_deplibs != no
  49204. + fi # linkmode = lib
  49205. + done # for deplib in $libs
  49206. + if test "$pass" = link; then
  49207. + if test "$linkmode" = "prog"; then
  49208. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  49209. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  49210. + else
  49211. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49212. + fi
  49213. + fi
  49214. + dependency_libs="$newdependency_libs"
  49215. + if test "$pass" = dlpreopen; then
  49216. + # Link the dlpreopened libraries before other libraries
  49217. + for deplib in $save_deplibs; do
  49218. + deplibs="$deplib $deplibs"
  49219. + done
  49220. + fi
  49221. + if test "$pass" != dlopen; then
  49222. + if test "$pass" != conv; then
  49223. + # Make sure lib_search_path contains only unique directories.
  49224. + lib_search_path=
  49225. + for dir in $newlib_search_path; do
  49226. + case "$lib_search_path " in
  49227. + *" $dir "*) ;;
  49228. + *) lib_search_path="$lib_search_path $dir" ;;
  49229. + esac
  49230. + done
  49231. + newlib_search_path=
  49232. + fi
  49233. +
  49234. + if test "$linkmode,$pass" != "prog,link"; then
  49235. + vars="deplibs"
  49236. + else
  49237. + vars="compile_deplibs finalize_deplibs"
  49238. + fi
  49239. + for var in $vars dependency_libs; do
  49240. + # Add libraries to $var in reverse order
  49241. + eval tmp_libs=\"\$$var\"
  49242. + new_libs=
  49243. + for deplib in $tmp_libs; do
  49244. + # FIXME: Pedantically, this is the right thing to do, so
  49245. + # that some nasty dependency loop isn't accidentally
  49246. + # broken:
  49247. + #new_libs="$deplib $new_libs"
  49248. + # Pragmatically, this seems to cause very few problems in
  49249. + # practice:
  49250. + case $deplib in
  49251. + -L*) new_libs="$deplib $new_libs" ;;
  49252. + -R*) ;;
  49253. + *)
  49254. + # And here is the reason: when a library appears more
  49255. + # than once as an explicit dependence of a library, or
  49256. + # is implicitly linked in more than once by the
  49257. + # compiler, it is considered special, and multiple
  49258. + # occurrences thereof are not removed. Compare this
  49259. + # with having the same library being listed as a
  49260. + # dependency of multiple other libraries: in this case,
  49261. + # we know (pedantically, we assume) the library does not
  49262. + # need to be listed more than once, so we keep only the
  49263. + # last copy. This is not always right, but it is rare
  49264. + # enough that we require users that really mean to play
  49265. + # such unportable linking tricks to link the library
  49266. + # using -Wl,-lname, so that libtool does not consider it
  49267. + # for duplicate removal.
  49268. + case " $specialdeplibs " in
  49269. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  49270. + *)
  49271. + case " $new_libs " in
  49272. + *" $deplib "*) ;;
  49273. + *) new_libs="$deplib $new_libs" ;;
  49274. + esac
  49275. + ;;
  49276. + esac
  49277. + ;;
  49278. + esac
  49279. + done
  49280. + tmp_libs=
  49281. + for deplib in $new_libs; do
  49282. + case $deplib in
  49283. + -L*)
  49284. + case " $tmp_libs " in
  49285. + *" $deplib "*) ;;
  49286. + *) tmp_libs="$tmp_libs $deplib" ;;
  49287. + esac
  49288. + ;;
  49289. + *) tmp_libs="$tmp_libs $deplib" ;;
  49290. + esac
  49291. + done
  49292. + eval $var=\"$tmp_libs\"
  49293. + done # for var
  49294. + fi
  49295. + # Last step: remove runtime libs from dependency_libs
  49296. + # (they stay in deplibs)
  49297. + tmp_libs=
  49298. + for i in $dependency_libs ; do
  49299. + case " $predeps $postdeps $compiler_lib_search_path " in
  49300. + *" $i "*)
  49301. + i=""
  49302. + ;;
  49303. + esac
  49304. + if test -n "$i" ; then
  49305. + tmp_libs="$tmp_libs $i"
  49306. + fi
  49307. + done
  49308. + dependency_libs=$tmp_libs
  49309. + done # for pass
  49310. + if test "$linkmode" = prog; then
  49311. + dlfiles="$newdlfiles"
  49312. + fi
  49313. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  49314. + dlprefiles="$newdlprefiles"
  49315. + fi
  49316. +
  49317. + case $linkmode in
  49318. + oldlib)
  49319. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49320. + func_warning "\`-dlopen' is ignored for archives"
  49321. + fi
  49322. +
  49323. + case " $deplibs" in
  49324. + *\ -l* | *\ -L*)
  49325. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  49326. + esac
  49327. +
  49328. + test -n "$rpath" && \
  49329. + func_warning "\`-rpath' is ignored for archives"
  49330. +
  49331. + test -n "$xrpath" && \
  49332. + func_warning "\`-R' is ignored for archives"
  49333. +
  49334. + test -n "$vinfo" && \
  49335. + func_warning "\`-version-info/-version-number' is ignored for archives"
  49336. +
  49337. + test -n "$release" && \
  49338. + func_warning "\`-release' is ignored for archives"
  49339. +
  49340. + test -n "$export_symbols$export_symbols_regex" && \
  49341. + func_warning "\`-export-symbols' is ignored for archives"
  49342. +
  49343. + # Now set the variables for building old libraries.
  49344. + build_libtool_libs=no
  49345. + oldlibs="$output"
  49346. + objs="$objs$old_deplibs"
  49347. + ;;
  49348. +
  49349. + lib)
  49350. + # Make sure we only generate libraries of the form `libNAME.la'.
  49351. + case $outputname in
  49352. + lib*)
  49353. + func_stripname 'lib' '.la' "$outputname"
  49354. + name=$func_stripname_result
  49355. + eval shared_ext=\"$shrext_cmds\"
  49356. + eval libname=\"$libname_spec\"
  49357. + ;;
  49358. + *)
  49359. + test "$module" = no && \
  49360. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  49361. +
  49362. + if test "$need_lib_prefix" != no; then
  49363. + # Add the "lib" prefix for modules if required
  49364. + func_stripname '' '.la' "$outputname"
  49365. + name=$func_stripname_result
  49366. + eval shared_ext=\"$shrext_cmds\"
  49367. + eval libname=\"$libname_spec\"
  49368. + else
  49369. + func_stripname '' '.la' "$outputname"
  49370. + libname=$func_stripname_result
  49371. + fi
  49372. + ;;
  49373. + esac
  49374. +
  49375. + if test -n "$objs"; then
  49376. + if test "$deplibs_check_method" != pass_all; then
  49377. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  49378. + else
  49379. + $ECHO
  49380. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  49381. + $ECHO "*** objects $objs is not portable!"
  49382. + libobjs="$libobjs $objs"
  49383. + fi
  49384. + fi
  49385. +
  49386. + test "$dlself" != no && \
  49387. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  49388. +
  49389. + set dummy $rpath
  49390. + shift
  49391. + test "$#" -gt 1 && \
  49392. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  49393. +
  49394. + install_libdir="$1"
  49395. +
  49396. + oldlibs=
  49397. + if test -z "$rpath"; then
  49398. + if test "$build_libtool_libs" = yes; then
  49399. + # Building a libtool convenience library.
  49400. + # Some compilers have problems with a `.al' extension so
  49401. + # convenience libraries should have the same extension an
  49402. + # archive normally would.
  49403. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  49404. + build_libtool_libs=convenience
  49405. + build_old_libs=yes
  49406. + fi
  49407. +
  49408. + test -n "$vinfo" && \
  49409. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  49410. +
  49411. + test -n "$release" && \
  49412. + func_warning "\`-release' is ignored for convenience libraries"
  49413. + else
  49414. +
  49415. + # Parse the version information argument.
  49416. + save_ifs="$IFS"; IFS=':'
  49417. + set dummy $vinfo 0 0 0
  49418. + shift
  49419. + IFS="$save_ifs"
  49420. +
  49421. + test -n "$7" && \
  49422. + func_fatal_help "too many parameters to \`-version-info'"
  49423. +
  49424. + # convert absolute version numbers to libtool ages
  49425. + # this retains compatibility with .la files and attempts
  49426. + # to make the code below a bit more comprehensible
  49427. +
  49428. + case $vinfo_number in
  49429. + yes)
  49430. + number_major="$1"
  49431. + number_minor="$2"
  49432. + number_revision="$3"
  49433. + #
  49434. + # There are really only two kinds -- those that
  49435. + # use the current revision as the major version
  49436. + # and those that subtract age and use age as
  49437. + # a minor version. But, then there is irix
  49438. + # which has an extra 1 added just for fun
  49439. + #
  49440. + case $version_type in
  49441. + darwin|linux|osf|windows|none)
  49442. + func_arith $number_major + $number_minor
  49443. + current=$func_arith_result
  49444. + age="$number_minor"
  49445. + revision="$number_revision"
  49446. + ;;
  49447. + freebsd-aout|freebsd-elf|sunos)
  49448. + current="$number_major"
  49449. + revision="$number_minor"
  49450. + age="0"
  49451. + ;;
  49452. + irix|nonstopux)
  49453. + func_arith $number_major + $number_minor
  49454. + current=$func_arith_result
  49455. + age="$number_minor"
  49456. + revision="$number_minor"
  49457. + lt_irix_increment=no
  49458. + ;;
  49459. + *)
  49460. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  49461. + ;;
  49462. + esac
  49463. + ;;
  49464. + no)
  49465. + current="$1"
  49466. + revision="$2"
  49467. + age="$3"
  49468. + ;;
  49469. + esac
  49470. +
  49471. + # Check that each of the things are valid numbers.
  49472. + case $current in
  49473. + 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]) ;;
  49474. + *)
  49475. + func_error "CURRENT \`$current' must be a nonnegative integer"
  49476. + func_fatal_error "\`$vinfo' is not valid version information"
  49477. + ;;
  49478. + esac
  49479. +
  49480. + case $revision in
  49481. + 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]) ;;
  49482. + *)
  49483. + func_error "REVISION \`$revision' must be a nonnegative integer"
  49484. + func_fatal_error "\`$vinfo' is not valid version information"
  49485. + ;;
  49486. + esac
  49487. +
  49488. + case $age in
  49489. + 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]) ;;
  49490. + *)
  49491. + func_error "AGE \`$age' must be a nonnegative integer"
  49492. + func_fatal_error "\`$vinfo' is not valid version information"
  49493. + ;;
  49494. + esac
  49495. +
  49496. + if test "$age" -gt "$current"; then
  49497. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  49498. + func_fatal_error "\`$vinfo' is not valid version information"
  49499. + fi
  49500. +
  49501. + # Calculate the version variables.
  49502. + major=
  49503. + versuffix=
  49504. + verstring=
  49505. + case $version_type in
  49506. + none) ;;
  49507. +
  49508. + darwin)
  49509. + # Like Linux, but with the current version available in
  49510. + # verstring for coding it into the library header
  49511. + func_arith $current - $age
  49512. + major=.$func_arith_result
  49513. + versuffix="$major.$age.$revision"
  49514. + # Darwin ld doesn't like 0 for these options...
  49515. + func_arith $current + 1
  49516. + minor_current=$func_arith_result
  49517. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  49518. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  49519. + ;;
  49520. +
  49521. + freebsd-aout)
  49522. + major=".$current"
  49523. + versuffix=".$current.$revision";
  49524. + ;;
  49525. +
  49526. + freebsd-elf)
  49527. + major=".$current"
  49528. + versuffix=".$current"
  49529. + ;;
  49530. +
  49531. + irix | nonstopux)
  49532. + if test "X$lt_irix_increment" = "Xno"; then
  49533. + func_arith $current - $age
  49534. + else
  49535. + func_arith $current - $age + 1
  49536. + fi
  49537. + major=$func_arith_result
  49538. +
  49539. + case $version_type in
  49540. + nonstopux) verstring_prefix=nonstopux ;;
  49541. + *) verstring_prefix=sgi ;;
  49542. + esac
  49543. + verstring="$verstring_prefix$major.$revision"
  49544. +
  49545. + # Add in all the interfaces that we are compatible with.
  49546. + loop=$revision
  49547. + while test "$loop" -ne 0; do
  49548. + func_arith $revision - $loop
  49549. + iface=$func_arith_result
  49550. + func_arith $loop - 1
  49551. + loop=$func_arith_result
  49552. + verstring="$verstring_prefix$major.$iface:$verstring"
  49553. + done
  49554. +
  49555. + # Before this point, $major must not contain `.'.
  49556. + major=.$major
  49557. + versuffix="$major.$revision"
  49558. + ;;
  49559. +
  49560. + linux)
  49561. + func_arith $current - $age
  49562. + major=.$func_arith_result
  49563. + versuffix="$major.$age.$revision"
  49564. + ;;
  49565. +
  49566. + osf)
  49567. + func_arith $current - $age
  49568. + major=.$func_arith_result
  49569. + versuffix=".$current.$age.$revision"
  49570. + verstring="$current.$age.$revision"
  49571. +
  49572. + # Add in all the interfaces that we are compatible with.
  49573. + loop=$age
  49574. + while test "$loop" -ne 0; do
  49575. + func_arith $current - $loop
  49576. + iface=$func_arith_result
  49577. + func_arith $loop - 1
  49578. + loop=$func_arith_result
  49579. + verstring="$verstring:${iface}.0"
  49580. + done
  49581. +
  49582. + # Make executables depend on our current version.
  49583. + verstring="$verstring:${current}.0"
  49584. + ;;
  49585. +
  49586. + qnx)
  49587. + major=".$current"
  49588. + versuffix=".$current"
  49589. + ;;
  49590. +
  49591. + sunos)
  49592. + major=".$current"
  49593. + versuffix=".$current.$revision"
  49594. + ;;
  49595. +
  49596. + windows)
  49597. + # Use '-' rather than '.', since we only want one
  49598. + # extension on DOS 8.3 filesystems.
  49599. + func_arith $current - $age
  49600. + major=$func_arith_result
  49601. + versuffix="-$major"
  49602. + ;;
  49603. +
  49604. + *)
  49605. + func_fatal_configuration "unknown library version type \`$version_type'"
  49606. + ;;
  49607. + esac
  49608. +
  49609. + # Clear the version info if we defaulted, and they specified a release.
  49610. + if test -z "$vinfo" && test -n "$release"; then
  49611. + major=
  49612. + case $version_type in
  49613. + darwin)
  49614. + # we can't check for "0.0" in archive_cmds due to quoting
  49615. + # problems, so we reset it completely
  49616. + verstring=
  49617. + ;;
  49618. + *)
  49619. + verstring="0.0"
  49620. + ;;
  49621. + esac
  49622. + if test "$need_version" = no; then
  49623. + versuffix=
  49624. + else
  49625. + versuffix=".0.0"
  49626. + fi
  49627. + fi
  49628. +
  49629. + # Remove version info from name if versioning should be avoided
  49630. + if test "$avoid_version" = yes && test "$need_version" = no; then
  49631. + major=
  49632. + versuffix=
  49633. + verstring=""
  49634. + fi
  49635. +
  49636. + # Check to see if the archive will have undefined symbols.
  49637. + if test "$allow_undefined" = yes; then
  49638. + if test "$allow_undefined_flag" = unsupported; then
  49639. + func_warning "undefined symbols not allowed in $host shared libraries"
  49640. + build_libtool_libs=no
  49641. + build_old_libs=yes
  49642. + fi
  49643. + else
  49644. + # Don't allow undefined symbols.
  49645. + allow_undefined_flag="$no_undefined_flag"
  49646. + fi
  49647. +
  49648. + fi
  49649. +
  49650. + func_generate_dlsyms "$libname" "$libname" "yes"
  49651. + libobjs="$libobjs $symfileobj"
  49652. + test "X$libobjs" = "X " && libobjs=
  49653. +
  49654. + if test "$mode" != relink; then
  49655. + # Remove our outputs, but don't remove object files since they
  49656. + # may have been created when compiling PIC objects.
  49657. + removelist=
  49658. + tempremovelist=`$ECHO "$output_objdir/*"`
  49659. + for p in $tempremovelist; do
  49660. + case $p in
  49661. + *.$objext | *.gcno)
  49662. + ;;
  49663. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  49664. + if test "X$precious_files_regex" != "X"; then
  49665. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  49666. + then
  49667. + continue
  49668. + fi
  49669. + fi
  49670. + removelist="$removelist $p"
  49671. + ;;
  49672. + *) ;;
  49673. + esac
  49674. + done
  49675. + test -n "$removelist" && \
  49676. + func_show_eval "${RM}r \$removelist"
  49677. + fi
  49678. +
  49679. + # Now set the variables for building old libraries.
  49680. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  49681. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  49682. +
  49683. + # Transform .lo files to .o files.
  49684. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  49685. + fi
  49686. +
  49687. + # Eliminate all temporary directories.
  49688. + #for path in $notinst_path; do
  49689. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  49690. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  49691. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  49692. + #done
  49693. +
  49694. + if test -n "$xrpath"; then
  49695. + # If the user specified any rpath flags, then add them.
  49696. + temp_xrpath=
  49697. + for libdir in $xrpath; do
  49698. + temp_xrpath="$temp_xrpath -R$libdir"
  49699. + case "$finalize_rpath " in
  49700. + *" $libdir "*) ;;
  49701. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  49702. + esac
  49703. + done
  49704. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  49705. + dependency_libs="$temp_xrpath $dependency_libs"
  49706. + fi
  49707. + fi
  49708. +
  49709. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  49710. + old_dlfiles="$dlfiles"
  49711. + dlfiles=
  49712. + for lib in $old_dlfiles; do
  49713. + case " $dlprefiles $dlfiles " in
  49714. + *" $lib "*) ;;
  49715. + *) dlfiles="$dlfiles $lib" ;;
  49716. + esac
  49717. + done
  49718. +
  49719. + # Make sure dlprefiles contains only unique files
  49720. + old_dlprefiles="$dlprefiles"
  49721. + dlprefiles=
  49722. + for lib in $old_dlprefiles; do
  49723. + case "$dlprefiles " in
  49724. + *" $lib "*) ;;
  49725. + *) dlprefiles="$dlprefiles $lib" ;;
  49726. + esac
  49727. + done
  49728. +
  49729. + if test "$build_libtool_libs" = yes; then
  49730. + if test -n "$rpath"; then
  49731. + case $host in
  49732. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  49733. + # these systems don't actually have a c library (as such)!
  49734. + ;;
  49735. + *-*-rhapsody* | *-*-darwin1.[012])
  49736. + # Rhapsody C library is in the System framework
  49737. + deplibs="$deplibs System.ltframework"
  49738. + ;;
  49739. + *-*-netbsd*)
  49740. + # Don't link with libc until the a.out ld.so is fixed.
  49741. + ;;
  49742. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49743. + # Do not include libc due to us having libc/libc_r.
  49744. + ;;
  49745. + *-*-sco3.2v5* | *-*-sco5v6*)
  49746. + # Causes problems with __ctype
  49747. + ;;
  49748. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  49749. + # Compiler inserts libc in the correct place for threads to work
  49750. + ;;
  49751. + *)
  49752. + # Add libc to deplibs on all other systems if necessary.
  49753. + if test "$build_libtool_need_lc" = "yes"; then
  49754. + deplibs="$deplibs -lc"
  49755. + fi
  49756. + ;;
  49757. + esac
  49758. + fi
  49759. +
  49760. + # Transform deplibs into only deplibs that can be linked in shared.
  49761. + name_save=$name
  49762. + libname_save=$libname
  49763. + release_save=$release
  49764. + versuffix_save=$versuffix
  49765. + major_save=$major
  49766. + # I'm not sure if I'm treating the release correctly. I think
  49767. + # release should show up in the -l (ie -lgmp5) so we don't want to
  49768. + # add it in twice. Is that correct?
  49769. + release=""
  49770. + versuffix=""
  49771. + major=""
  49772. + newdeplibs=
  49773. + droppeddeps=no
  49774. + case $deplibs_check_method in
  49775. + pass_all)
  49776. + # Don't check for shared/static. Everything works.
  49777. + # This might be a little naive. We might want to check
  49778. + # whether the library exists or not. But this is on
  49779. + # osf3 & osf4 and I'm not really sure... Just
  49780. + # implementing what was already the behavior.
  49781. + newdeplibs=$deplibs
  49782. + ;;
  49783. + test_compile)
  49784. + # This code stresses the "libraries are programs" paradigm to its
  49785. + # limits. Maybe even breaks it. We compile a program, linking it
  49786. + # against the deplibs as a proxy for the library. Then we can check
  49787. + # whether they linked in statically or dynamically with ldd.
  49788. + $opt_dry_run || $RM conftest.c
  49789. + cat > conftest.c <<EOF
  49790. + int main() { return 0; }
  49791. +EOF
  49792. + $opt_dry_run || $RM conftest
  49793. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  49794. + ldd_output=`ldd conftest`
  49795. + for i in $deplibs; do
  49796. + case $i in
  49797. + -l*)
  49798. + func_stripname -l '' "$i"
  49799. + name=$func_stripname_result
  49800. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49801. + case " $predeps $postdeps " in
  49802. + *" $i "*)
  49803. + newdeplibs="$newdeplibs $i"
  49804. + i=""
  49805. + ;;
  49806. + esac
  49807. + fi
  49808. + if test -n "$i" ; then
  49809. + libname=`eval "\\$ECHO \"$libname_spec\""`
  49810. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  49811. + set dummy $deplib_matches; shift
  49812. + deplib_match=$1
  49813. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  49814. + newdeplibs="$newdeplibs $i"
  49815. + else
  49816. + droppeddeps=yes
  49817. + $ECHO
  49818. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  49819. + $ECHO "*** I have the capability to make that library automatically link in when"
  49820. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49821. + $ECHO "*** shared version of the library, which I believe you do not have"
  49822. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  49823. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  49824. + fi
  49825. + fi
  49826. + ;;
  49827. + *)
  49828. + newdeplibs="$newdeplibs $i"
  49829. + ;;
  49830. + esac
  49831. + done
  49832. + else
  49833. + # Error occurred in the first compile. Let's try to salvage
  49834. + # the situation: Compile a separate program for each library.
  49835. + for i in $deplibs; do
  49836. + case $i in
  49837. + -l*)
  49838. + func_stripname -l '' "$i"
  49839. + name=$func_stripname_result
  49840. + $opt_dry_run || $RM conftest
  49841. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  49842. + ldd_output=`ldd conftest`
  49843. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49844. + case " $predeps $postdeps " in
  49845. + *" $i "*)
  49846. + newdeplibs="$newdeplibs $i"
  49847. + i=""
  49848. + ;;
  49849. + esac
  49850. + fi
  49851. + if test -n "$i" ; then
  49852. + libname=`eval "\\$ECHO \"$libname_spec\""`
  49853. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  49854. + set dummy $deplib_matches; shift
  49855. + deplib_match=$1
  49856. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  49857. + newdeplibs="$newdeplibs $i"
  49858. + else
  49859. + droppeddeps=yes
  49860. + $ECHO
  49861. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  49862. + $ECHO "*** I have the capability to make that library automatically link in when"
  49863. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49864. + $ECHO "*** shared version of the library, which you do not appear to have"
  49865. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  49866. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  49867. + fi
  49868. + fi
  49869. + else
  49870. + droppeddeps=yes
  49871. + $ECHO
  49872. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  49873. + $ECHO "*** make it link in! You will probably need to install it or some"
  49874. + $ECHO "*** library that it depends on before this library will be fully"
  49875. + $ECHO "*** functional. Installing it before continuing would be even better."
  49876. + fi
  49877. + ;;
  49878. + *)
  49879. + newdeplibs="$newdeplibs $i"
  49880. + ;;
  49881. + esac
  49882. + done
  49883. + fi
  49884. + ;;
  49885. + file_magic*)
  49886. + set dummy $deplibs_check_method; shift
  49887. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  49888. + for a_deplib in $deplibs; do
  49889. + case $a_deplib in
  49890. + -l*)
  49891. + func_stripname -l '' "$a_deplib"
  49892. + name=$func_stripname_result
  49893. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49894. + case " $predeps $postdeps " in
  49895. + *" $a_deplib "*)
  49896. + newdeplibs="$newdeplibs $a_deplib"
  49897. + a_deplib=""
  49898. + ;;
  49899. + esac
  49900. + fi
  49901. + if test -n "$a_deplib" ; then
  49902. + libname=`eval "\\$ECHO \"$libname_spec\""`
  49903. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49904. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  49905. + for potent_lib in $potential_libs; do
  49906. + # Follow soft links.
  49907. + if ls -lLd "$potent_lib" 2>/dev/null |
  49908. + $GREP " -> " >/dev/null; then
  49909. + continue
  49910. + fi
  49911. + # The statement above tries to avoid entering an
  49912. + # endless loop below, in case of cyclic links.
  49913. + # We might still enter an endless loop, since a link
  49914. + # loop can be closed while we follow links,
  49915. + # but so what?
  49916. + potlib="$potent_lib"
  49917. + while test -h "$potlib" 2>/dev/null; do
  49918. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  49919. + case $potliblink in
  49920. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  49921. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  49922. + esac
  49923. + done
  49924. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  49925. + $SED -e 10q |
  49926. + $EGREP "$file_magic_regex" > /dev/null; then
  49927. + newdeplibs="$newdeplibs $a_deplib"
  49928. + a_deplib=""
  49929. + break 2
  49930. + fi
  49931. + done
  49932. + done
  49933. + fi
  49934. + if test -n "$a_deplib" ; then
  49935. + droppeddeps=yes
  49936. + $ECHO
  49937. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  49938. + $ECHO "*** I have the capability to make that library automatically link in when"
  49939. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49940. + $ECHO "*** shared version of the library, which you do not appear to have"
  49941. + $ECHO "*** because I did check the linker path looking for a file starting"
  49942. + if test -z "$potlib" ; then
  49943. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  49944. + else
  49945. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  49946. + $ECHO "*** using a file magic. Last file checked: $potlib"
  49947. + fi
  49948. + fi
  49949. + ;;
  49950. + *)
  49951. + # Add a -L argument.
  49952. + newdeplibs="$newdeplibs $a_deplib"
  49953. + ;;
  49954. + esac
  49955. + done # Gone through all deplibs.
  49956. + ;;
  49957. + match_pattern*)
  49958. + set dummy $deplibs_check_method; shift
  49959. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  49960. + for a_deplib in $deplibs; do
  49961. + case $a_deplib in
  49962. + -l*)
  49963. + func_stripname -l '' "$a_deplib"
  49964. + name=$func_stripname_result
  49965. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49966. + case " $predeps $postdeps " in
  49967. + *" $a_deplib "*)
  49968. + newdeplibs="$newdeplibs $a_deplib"
  49969. + a_deplib=""
  49970. + ;;
  49971. + esac
  49972. + fi
  49973. + if test -n "$a_deplib" ; then
  49974. + libname=`eval "\\$ECHO \"$libname_spec\""`
  49975. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49976. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  49977. + for potent_lib in $potential_libs; do
  49978. + potlib="$potent_lib" # see symlink-check above in file_magic test
  49979. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  49980. + $EGREP "$match_pattern_regex" > /dev/null; then
  49981. + newdeplibs="$newdeplibs $a_deplib"
  49982. + a_deplib=""
  49983. + break 2
  49984. + fi
  49985. + done
  49986. + done
  49987. + fi
  49988. + if test -n "$a_deplib" ; then
  49989. + droppeddeps=yes
  49990. + $ECHO
  49991. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  49992. + $ECHO "*** I have the capability to make that library automatically link in when"
  49993. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49994. + $ECHO "*** shared version of the library, which you do not appear to have"
  49995. + $ECHO "*** because I did check the linker path looking for a file starting"
  49996. + if test -z "$potlib" ; then
  49997. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  49998. + else
  49999. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  50000. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  50001. + fi
  50002. + fi
  50003. + ;;
  50004. + *)
  50005. + # Add a -L argument.
  50006. + newdeplibs="$newdeplibs $a_deplib"
  50007. + ;;
  50008. + esac
  50009. + done # Gone through all deplibs.
  50010. + ;;
  50011. + none | unknown | *)
  50012. + newdeplibs=""
  50013. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  50014. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  50015. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50016. + for i in $predeps $postdeps ; do
  50017. + # can't use Xsed below, because $i might contain '/'
  50018. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  50019. + done
  50020. + fi
  50021. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  50022. + $GREP . >/dev/null; then
  50023. + $ECHO
  50024. + if test "X$deplibs_check_method" = "Xnone"; then
  50025. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  50026. + else
  50027. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  50028. + fi
  50029. + $ECHO "*** All declared inter-library dependencies are being dropped."
  50030. + droppeddeps=yes
  50031. + fi
  50032. + ;;
  50033. + esac
  50034. + versuffix=$versuffix_save
  50035. + major=$major_save
  50036. + release=$release_save
  50037. + libname=$libname_save
  50038. + name=$name_save
  50039. - # If there was a directory component, then change thisdir.
  50040. - if test \"x\$destdir\" != \"x\$file\"; then
  50041. - case \"\$destdir\" in
  50042. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  50043. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  50044. + case $host in
  50045. + *-*-rhapsody* | *-*-darwin1.[012])
  50046. + # On Rhapsody replace the C library with the System framework
  50047. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  50048. + ;;
  50049. + esac
  50050. +
  50051. + if test "$droppeddeps" = yes; then
  50052. + if test "$module" = yes; then
  50053. + $ECHO
  50054. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  50055. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  50056. + $ECHO "*** a static module, that should work as long as the dlopening"
  50057. + $ECHO "*** application is linked with the -dlopen flag."
  50058. + if test -z "$global_symbol_pipe"; then
  50059. + $ECHO
  50060. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  50061. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  50062. + $ECHO "*** not find such a program. So, this module is probably useless."
  50063. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  50064. + fi
  50065. + if test "$build_old_libs" = no; then
  50066. + oldlibs="$output_objdir/$libname.$libext"
  50067. + build_libtool_libs=module
  50068. + build_old_libs=yes
  50069. + else
  50070. + build_libtool_libs=no
  50071. + fi
  50072. + else
  50073. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  50074. + $ECHO "*** automatically added whenever a program is linked with this library"
  50075. + $ECHO "*** or is declared to -dlopen it."
  50076. +
  50077. + if test "$allow_undefined" = no; then
  50078. + $ECHO
  50079. + $ECHO "*** Since this library must not contain undefined symbols,"
  50080. + $ECHO "*** because either the platform does not support them or"
  50081. + $ECHO "*** it was explicitly requested with -no-undefined,"
  50082. + $ECHO "*** libtool will only create a static version of it."
  50083. + if test "$build_old_libs" = no; then
  50084. + oldlibs="$output_objdir/$libname.$libext"
  50085. + build_libtool_libs=module
  50086. + build_old_libs=yes
  50087. + else
  50088. + build_libtool_libs=no
  50089. + fi
  50090. + fi
  50091. + fi
  50092. + fi
  50093. + # Done checking deplibs!
  50094. + deplibs=$newdeplibs
  50095. + fi
  50096. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  50097. + case $host in
  50098. + *-*-darwin*)
  50099. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50100. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50101. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50102. + ;;
  50103. esac
  50104. - fi
  50105. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  50106. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  50107. - done
  50108. + # move library search paths that coincide with paths to not yet
  50109. + # installed libraries to the beginning of the library search list
  50110. + new_libs=
  50111. + for path in $notinst_path; do
  50112. + case " $new_libs " in
  50113. + *" -L$path/$objdir "*) ;;
  50114. + *)
  50115. + case " $deplibs " in
  50116. + *" -L$path/$objdir "*)
  50117. + new_libs="$new_libs -L$path/$objdir" ;;
  50118. + esac
  50119. + ;;
  50120. + esac
  50121. + done
  50122. + for deplib in $deplibs; do
  50123. + case $deplib in
  50124. + -L*)
  50125. + case " $new_libs " in
  50126. + *" $deplib "*) ;;
  50127. + *) new_libs="$new_libs $deplib" ;;
  50128. + esac
  50129. + ;;
  50130. + *) new_libs="$new_libs $deplib" ;;
  50131. + esac
  50132. + done
  50133. + deplibs="$new_libs"
  50134. - # Try to get the absolute directory name.
  50135. - absdir=\`cd \"\$thisdir\" && pwd\`
  50136. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  50137. -"
  50138. + # All the library-specific variables (install_libdir is set above).
  50139. + library_names=
  50140. + old_library=
  50141. + dlname=
  50142. +
  50143. + # Test again, we may have decided not to build it any more
  50144. + if test "$build_libtool_libs" = yes; then
  50145. + if test "$hardcode_into_libs" = yes; then
  50146. + # Hardcode the library paths
  50147. + hardcode_libdirs=
  50148. + dep_rpath=
  50149. + rpath="$finalize_rpath"
  50150. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  50151. + for libdir in $rpath; do
  50152. + if test -n "$hardcode_libdir_flag_spec"; then
  50153. + if test -n "$hardcode_libdir_separator"; then
  50154. + if test -z "$hardcode_libdirs"; then
  50155. + hardcode_libdirs="$libdir"
  50156. + else
  50157. + # Just accumulate the unique libdirs.
  50158. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  50159. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  50160. + ;;
  50161. + *)
  50162. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  50163. + ;;
  50164. + esac
  50165. + fi
  50166. + else
  50167. + eval flag=\"$hardcode_libdir_flag_spec\"
  50168. + dep_rpath="$dep_rpath $flag"
  50169. + fi
  50170. + elif test -n "$runpath_var"; then
  50171. + case "$perm_rpath " in
  50172. + *" $libdir "*) ;;
  50173. + *) perm_rpath="$perm_rpath $libdir" ;;
  50174. + esac
  50175. + fi
  50176. + done
  50177. + # Substitute the hardcoded libdirs into the rpath.
  50178. + if test -n "$hardcode_libdir_separator" &&
  50179. + test -n "$hardcode_libdirs"; then
  50180. + libdir="$hardcode_libdirs"
  50181. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  50182. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  50183. + else
  50184. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  50185. + fi
  50186. + fi
  50187. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  50188. + # We should set the runpath_var.
  50189. + rpath=
  50190. + for dir in $perm_rpath; do
  50191. + rpath="$rpath$dir:"
  50192. + done
  50193. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  50194. + fi
  50195. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  50196. + fi
  50197. - if test "$fast_install" = yes; then
  50198. - $echo >> $output "\
  50199. - program=lt-'$outputname'$exeext
  50200. - progdir=\"\$thisdir/$objdir\"
  50201. + shlibpath="$finalize_shlibpath"
  50202. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  50203. + if test -n "$shlibpath"; then
  50204. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  50205. + fi
  50206. - if test ! -f \"\$progdir/\$program\" || \\
  50207. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  50208. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  50209. + # Get the real and link names of the library.
  50210. + eval shared_ext=\"$shrext_cmds\"
  50211. + eval library_names=\"$library_names_spec\"
  50212. + set dummy $library_names
  50213. + shift
  50214. + realname="$1"
  50215. + shift
  50216. - file=\"\$\$-\$program\"
  50217. + if test -n "$soname_spec"; then
  50218. + eval soname=\"$soname_spec\"
  50219. + else
  50220. + soname="$realname"
  50221. + fi
  50222. + if test -z "$dlname"; then
  50223. + dlname=$soname
  50224. + fi
  50225. - if test ! -d \"\$progdir\"; then
  50226. - $mkdir \"\$progdir\"
  50227. - else
  50228. - $rm \"\$progdir/\$file\"
  50229. - fi"
  50230. + lib="$output_objdir/$realname"
  50231. + linknames=
  50232. + for link
  50233. + do
  50234. + linknames="$linknames $link"
  50235. + done
  50236. - $echo >> $output "\
  50237. + # Use standard objects if they are pic
  50238. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50239. + test "X$libobjs" = "X " && libobjs=
  50240. - # relink executable if necessary
  50241. - if test -n \"\$relink_command\"; then
  50242. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  50243. - else
  50244. - $echo \"\$relink_command_output\" >&2
  50245. - $rm \"\$progdir/\$file\"
  50246. - exit $EXIT_FAILURE
  50247. - fi
  50248. - fi
  50249. + delfiles=
  50250. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50251. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  50252. + export_symbols="$output_objdir/$libname.uexp"
  50253. + delfiles="$delfiles $export_symbols"
  50254. + fi
  50255. +
  50256. + orig_export_symbols=
  50257. + case $host_os in
  50258. + cygwin* | mingw* | cegcc*)
  50259. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  50260. + # exporting using user supplied symfile
  50261. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  50262. + # and it's NOT already a .def file. Must figure out
  50263. + # which of the given symbols are data symbols and tag
  50264. + # them as such. So, trigger use of export_symbols_cmds.
  50265. + # export_symbols gets reassigned inside the "prepare
  50266. + # the list of exported symbols" if statement, so the
  50267. + # include_expsyms logic still works.
  50268. + orig_export_symbols="$export_symbols"
  50269. + export_symbols=
  50270. + always_export_symbols=yes
  50271. + fi
  50272. + fi
  50273. + ;;
  50274. + esac
  50275. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  50276. - { $rm \"\$progdir/\$program\";
  50277. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  50278. - $rm \"\$progdir/\$file\"
  50279. - fi"
  50280. - else
  50281. - $echo >> $output "\
  50282. - program='$outputname'
  50283. - progdir=\"\$thisdir/$objdir\"
  50284. -"
  50285. + # Prepare the list of exported symbols
  50286. + if test -z "$export_symbols"; then
  50287. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  50288. + func_verbose "generating symbol list for \`$libname.la'"
  50289. + export_symbols="$output_objdir/$libname.exp"
  50290. + $opt_dry_run || $RM $export_symbols
  50291. + cmds=$export_symbols_cmds
  50292. + save_ifs="$IFS"; IFS='~'
  50293. + for cmd in $cmds; do
  50294. + IFS="$save_ifs"
  50295. + eval cmd=\"$cmd\"
  50296. + func_len " $cmd"
  50297. + len=$func_len_result
  50298. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  50299. + func_show_eval "$cmd" 'exit $?'
  50300. + skipped_export=false
  50301. + else
  50302. + # The command line is too long to execute in one step.
  50303. + func_verbose "using reloadable object file for export list..."
  50304. + skipped_export=:
  50305. + # Break out early, otherwise skipped_export may be
  50306. + # set to false by a later but shorter cmd.
  50307. + break
  50308. + fi
  50309. + done
  50310. + IFS="$save_ifs"
  50311. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  50312. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  50313. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  50314. + fi
  50315. + fi
  50316. fi
  50317. - $echo >> $output "\
  50318. -
  50319. - if test -f \"\$progdir/\$program\"; then"
  50320. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50321. + tmp_export_symbols="$export_symbols"
  50322. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  50323. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  50324. + fi
  50325. +
  50326. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  50327. + # The given exports_symbols file has to be filtered, so filter it.
  50328. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  50329. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  50330. + # 's' commands which not all seds can handle. GNU sed should be fine
  50331. + # though. Also, the filter scales superlinearly with the number of
  50332. + # global variables. join(1) would be nice here, but unfortunately
  50333. + # isn't a blessed tool.
  50334. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  50335. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  50336. + export_symbols=$output_objdir/$libname.def
  50337. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  50338. + fi
  50339. - # Export our shlibpath_var if we have one.
  50340. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50341. - $echo >> $output "\
  50342. - # Add our own library path to $shlibpath_var
  50343. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  50344. + tmp_deplibs=
  50345. + for test_deplib in $deplibs; do
  50346. + case " $convenience " in
  50347. + *" $test_deplib "*) ;;
  50348. + *)
  50349. + tmp_deplibs="$tmp_deplibs $test_deplib"
  50350. + ;;
  50351. + esac
  50352. + done
  50353. + deplibs="$tmp_deplibs"
  50354. - # Some systems cannot cope with colon-terminated $shlibpath_var
  50355. - # The second colon is a workaround for a bug in BeOS R4 sed
  50356. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  50357. + if test -n "$convenience"; then
  50358. + if test -n "$whole_archive_flag_spec" &&
  50359. + test "$compiler_needs_object" = yes &&
  50360. + test -z "$libobjs"; then
  50361. + # extract the archives, so we have objects to list.
  50362. + # TODO: could optimize this to just extract one archive.
  50363. + whole_archive_flag_spec=
  50364. + fi
  50365. + if test -n "$whole_archive_flag_spec"; then
  50366. + save_libobjs=$libobjs
  50367. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  50368. + test "X$libobjs" = "X " && libobjs=
  50369. + else
  50370. + gentop="$output_objdir/${outputname}x"
  50371. + generated="$generated $gentop"
  50372. - export $shlibpath_var
  50373. -"
  50374. + func_extract_archives $gentop $convenience
  50375. + libobjs="$libobjs $func_extract_archives_result"
  50376. + test "X$libobjs" = "X " && libobjs=
  50377. + fi
  50378. fi
  50379. - # fixup the dll searchpath if we need to.
  50380. - if test -n "$dllsearchpath"; then
  50381. - $echo >> $output "\
  50382. - # Add the dll search path components to the executable PATH
  50383. - PATH=$dllsearchpath:\$PATH
  50384. -"
  50385. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  50386. + eval flag=\"$thread_safe_flag_spec\"
  50387. + linker_flags="$linker_flags $flag"
  50388. fi
  50389. - $echo >> $output "\
  50390. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50391. - # Run the actual program with our arguments.
  50392. -"
  50393. - case $host in
  50394. - # Backslashes separate directories on plain windows
  50395. - *-*-mingw | *-*-os2*)
  50396. - $echo >> $output "\
  50397. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  50398. -"
  50399. - ;;
  50400. -
  50401. - *)
  50402. - $echo >> $output "\
  50403. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  50404. -"
  50405. - ;;
  50406. - esac
  50407. - $echo >> $output "\
  50408. - \$echo \"\$0: cannot exec \$program \$*\"
  50409. - exit $EXIT_FAILURE
  50410. - fi
  50411. - else
  50412. - # The program doesn't exist.
  50413. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  50414. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  50415. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  50416. - exit $EXIT_FAILURE
  50417. - fi
  50418. -fi\
  50419. -"
  50420. - chmod +x $output
  50421. - fi
  50422. - exit $EXIT_SUCCESS
  50423. - ;;
  50424. - esac
  50425. -
  50426. - # See if we need to build an old-fashioned archive.
  50427. - for oldlib in $oldlibs; do
  50428. + # Make a backup of the uninstalled library when relinking
  50429. + if test "$mode" = relink; then
  50430. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  50431. + fi
  50432. - if test "$build_libtool_libs" = convenience; then
  50433. - oldobjs="$libobjs_save"
  50434. - addlibs="$convenience"
  50435. - build_libtool_libs=no
  50436. - else
  50437. - if test "$build_libtool_libs" = module; then
  50438. - oldobjs="$libobjs_save"
  50439. - build_libtool_libs=no
  50440. + # Do each of the archive commands.
  50441. + if test "$module" = yes && test -n "$module_cmds" ; then
  50442. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  50443. + eval test_cmds=\"$module_expsym_cmds\"
  50444. + cmds=$module_expsym_cmds
  50445. + else
  50446. + eval test_cmds=\"$module_cmds\"
  50447. + cmds=$module_cmds
  50448. + fi
  50449. else
  50450. - oldobjs="$old_deplibs $non_pic_objects"
  50451. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  50452. + eval test_cmds=\"$archive_expsym_cmds\"
  50453. + cmds=$archive_expsym_cmds
  50454. + else
  50455. + eval test_cmds=\"$archive_cmds\"
  50456. + cmds=$archive_cmds
  50457. + fi
  50458. fi
  50459. - addlibs="$old_convenience"
  50460. - fi
  50461. - if test -n "$addlibs"; then
  50462. - gentop="$output_objdir/${outputname}x"
  50463. - generated="$generated $gentop"
  50464. + if test "X$skipped_export" != "X:" &&
  50465. + func_len " $test_cmds" &&
  50466. + len=$func_len_result &&
  50467. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  50468. + :
  50469. + else
  50470. + # The command line is too long to link in one step, link piecewise
  50471. + # or, if using GNU ld and skipped_export is not :, use a linker
  50472. + # script.
  50473. - func_extract_archives $gentop $addlibs
  50474. - oldobjs="$oldobjs $func_extract_archives_result"
  50475. - fi
  50476. + # Save the value of $output and $libobjs because we want to
  50477. + # use them later. If we have whole_archive_flag_spec, we
  50478. + # want to use save_libobjs as it was before
  50479. + # whole_archive_flag_spec was expanded, because we can't
  50480. + # assume the linker understands whole_archive_flag_spec.
  50481. + # This may have to be revisited, in case too many
  50482. + # convenience libraries get linked in and end up exceeding
  50483. + # the spec.
  50484. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  50485. + save_libobjs=$libobjs
  50486. + fi
  50487. + save_output=$output
  50488. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  50489. - # Do each command in the archive commands.
  50490. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  50491. - cmds=$old_archive_from_new_cmds
  50492. - else
  50493. - # POSIX demands no paths to be encoded in archives. We have
  50494. - # to avoid creating archives with duplicate basenames if we
  50495. - # might have to extract them afterwards, e.g., when creating a
  50496. - # static archive out of a convenience library, or when linking
  50497. - # the entirety of a libtool archive into another (currently
  50498. - # not supported by libtool).
  50499. - if (for obj in $oldobjs
  50500. + # Clear the reloadable object creation command queue and
  50501. + # initialize k to one.
  50502. + test_cmds=
  50503. + concat_cmds=
  50504. + objlist=
  50505. + last_robj=
  50506. + k=1
  50507. +
  50508. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  50509. + output=${output_objdir}/${output_la}.lnkscript
  50510. + func_verbose "creating GNU ld script: $output"
  50511. + $ECHO 'INPUT (' > $output
  50512. + for obj in $save_libobjs
  50513. do
  50514. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  50515. - done | sort | sort -uc >/dev/null 2>&1); then
  50516. - :
  50517. - else
  50518. - $echo "copying selected object files to avoid basename conflicts..."
  50519. + $ECHO "$obj" >> $output
  50520. + done
  50521. + $ECHO ')' >> $output
  50522. + delfiles="$delfiles $output"
  50523. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  50524. + output=${output_objdir}/${output_la}.lnk
  50525. + func_verbose "creating linker input file list: $output"
  50526. + : > $output
  50527. + set x $save_libobjs
  50528. + shift
  50529. + firstobj=
  50530. + if test "$compiler_needs_object" = yes; then
  50531. + firstobj="$1 "
  50532. + shift
  50533. + fi
  50534. + for obj
  50535. + do
  50536. + $ECHO "$obj" >> $output
  50537. + done
  50538. + delfiles="$delfiles $output"
  50539. + output=$firstobj\"$file_list_spec$output\"
  50540. + else
  50541. + if test -n "$save_libobjs"; then
  50542. + func_verbose "creating reloadable object files..."
  50543. + output=$output_objdir/$output_la-${k}.$objext
  50544. + eval test_cmds=\"$reload_cmds\"
  50545. + func_len " $test_cmds"
  50546. + len0=$func_len_result
  50547. + len=$len0
  50548. +
  50549. + # Loop over the list of objects to be linked.
  50550. + for obj in $save_libobjs
  50551. + do
  50552. + func_len " $obj"
  50553. + func_arith $len + $func_len_result
  50554. + len=$func_arith_result
  50555. + if test "X$objlist" = X ||
  50556. + test "$len" -lt "$max_cmd_len"; then
  50557. + func_append objlist " $obj"
  50558. + else
  50559. + # The command $test_cmds is almost too long, add a
  50560. + # command to the queue.
  50561. + if test "$k" -eq 1 ; then
  50562. + # The first file doesn't have a previous command to add.
  50563. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  50564. + else
  50565. + # All subsequent reloadable object files will link in
  50566. + # the last one created.
  50567. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  50568. + fi
  50569. + last_robj=$output_objdir/$output_la-${k}.$objext
  50570. + func_arith $k + 1
  50571. + k=$func_arith_result
  50572. + output=$output_objdir/$output_la-${k}.$objext
  50573. + objlist=$obj
  50574. + func_len " $last_robj"
  50575. + func_arith $len0 + $func_len_result
  50576. + len=$func_arith_result
  50577. + fi
  50578. + done
  50579. + # Handle the remaining objects by creating one last
  50580. + # reloadable object file. All subsequent reloadable object
  50581. + # files will link in the last one created.
  50582. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  50583. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  50584. + if test -n "$last_robj"; then
  50585. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  50586. + fi
  50587. + delfiles="$delfiles $output"
  50588. - if test -z "$gentop"; then
  50589. - gentop="$output_objdir/${outputname}x"
  50590. - generated="$generated $gentop"
  50591. + else
  50592. + output=
  50593. + fi
  50594. +
  50595. + if ${skipped_export-false}; then
  50596. + func_verbose "generating symbol list for \`$libname.la'"
  50597. + export_symbols="$output_objdir/$libname.exp"
  50598. + $opt_dry_run || $RM $export_symbols
  50599. + libobjs=$output
  50600. + # Append the command to create the export file.
  50601. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  50602. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  50603. + if test -n "$last_robj"; then
  50604. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  50605. + fi
  50606. + fi
  50607. +
  50608. + test -n "$save_libobjs" &&
  50609. + func_verbose "creating a temporary reloadable object file: $output"
  50610. +
  50611. + # Loop through the commands generated above and execute them.
  50612. + save_ifs="$IFS"; IFS='~'
  50613. + for cmd in $concat_cmds; do
  50614. + IFS="$save_ifs"
  50615. + $opt_silent || {
  50616. + func_quote_for_expand "$cmd"
  50617. + eval "func_echo $func_quote_for_expand_result"
  50618. + }
  50619. + $opt_dry_run || eval "$cmd" || {
  50620. + lt_exit=$?
  50621. +
  50622. + # Restore the uninstalled library and exit
  50623. + if test "$mode" = relink; then
  50624. + ( cd "$output_objdir" && \
  50625. + $RM "${realname}T" && \
  50626. + $MV "${realname}U" "$realname" )
  50627. + fi
  50628. +
  50629. + exit $lt_exit
  50630. + }
  50631. + done
  50632. + IFS="$save_ifs"
  50633. - $show "${rm}r $gentop"
  50634. - $run ${rm}r "$gentop"
  50635. - $show "$mkdir $gentop"
  50636. - $run $mkdir "$gentop"
  50637. - exit_status=$?
  50638. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  50639. - exit $exit_status
  50640. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  50641. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  50642. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  50643. fi
  50644. fi
  50645. - save_oldobjs=$oldobjs
  50646. - oldobjs=
  50647. - counter=1
  50648. - for obj in $save_oldobjs
  50649. - do
  50650. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  50651. - case " $oldobjs " in
  50652. - " ") oldobjs=$obj ;;
  50653. - *[\ /]"$objbase "*)
  50654. - while :; do
  50655. - # Make sure we don't pick an alternate name that also
  50656. - # overlaps.
  50657. - newobj=lt$counter-$objbase
  50658. - counter=`expr $counter + 1`
  50659. - case " $oldobjs " in
  50660. - *[\ /]"$newobj "*) ;;
  50661. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  50662. - esac
  50663. - done
  50664. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  50665. - $run ln "$obj" "$gentop/$newobj" ||
  50666. - $run cp "$obj" "$gentop/$newobj"
  50667. - oldobjs="$oldobjs $gentop/$newobj"
  50668. - ;;
  50669. - *) oldobjs="$oldobjs $obj" ;;
  50670. - esac
  50671. - done
  50672. - fi
  50673. + if ${skipped_export-false}; then
  50674. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50675. + tmp_export_symbols="$export_symbols"
  50676. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  50677. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  50678. + fi
  50679. +
  50680. + if test -n "$orig_export_symbols"; then
  50681. + # The given exports_symbols file has to be filtered, so filter it.
  50682. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  50683. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  50684. + # 's' commands which not all seds can handle. GNU sed should be fine
  50685. + # though. Also, the filter scales superlinearly with the number of
  50686. + # global variables. join(1) would be nice here, but unfortunately
  50687. + # isn't a blessed tool.
  50688. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  50689. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  50690. + export_symbols=$output_objdir/$libname.def
  50691. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  50692. + fi
  50693. + fi
  50694. - eval cmds=\"$old_archive_cmds\"
  50695. + libobjs=$output
  50696. + # Restore the value of output.
  50697. + output=$save_output
  50698. - if len=`expr "X$cmds" : ".*"` &&
  50699. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  50700. - cmds=$old_archive_cmds
  50701. - else
  50702. - # the command line is too long to link in one step, link in parts
  50703. - $echo "using piecewise archive linking..."
  50704. - save_RANLIB=$RANLIB
  50705. - RANLIB=:
  50706. - objlist=
  50707. - concat_cmds=
  50708. - save_oldobjs=$oldobjs
  50709. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  50710. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  50711. + test "X$libobjs" = "X " && libobjs=
  50712. + fi
  50713. + # Expand the library linking commands again to reset the
  50714. + # value of $libobjs for piecewise linking.
  50715. - # Is there a better way of finding the last object in the list?
  50716. - for obj in $save_oldobjs
  50717. - do
  50718. - last_oldobj=$obj
  50719. - done
  50720. - for obj in $save_oldobjs
  50721. - do
  50722. - oldobjs="$objlist $obj"
  50723. - objlist="$objlist $obj"
  50724. - eval test_cmds=\"$old_archive_cmds\"
  50725. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  50726. - test "$len" -le "$max_cmd_len"; then
  50727. - :
  50728. + # Do each of the archive commands.
  50729. + if test "$module" = yes && test -n "$module_cmds" ; then
  50730. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  50731. + cmds=$module_expsym_cmds
  50732. else
  50733. - # the above command should be used before it gets too long
  50734. - oldobjs=$objlist
  50735. - if test "$obj" = "$last_oldobj" ; then
  50736. - RANLIB=$save_RANLIB
  50737. - fi
  50738. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  50739. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  50740. - objlist=
  50741. + cmds=$module_cmds
  50742. fi
  50743. - done
  50744. - RANLIB=$save_RANLIB
  50745. - oldobjs=$objlist
  50746. - if test "X$oldobjs" = "X" ; then
  50747. - eval cmds=\"\$concat_cmds\"
  50748. else
  50749. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  50750. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  50751. + cmds=$archive_expsym_cmds
  50752. + else
  50753. + cmds=$archive_cmds
  50754. + fi
  50755. fi
  50756. fi
  50757. - fi
  50758. - save_ifs="$IFS"; IFS='~'
  50759. - for cmd in $cmds; do
  50760. - eval cmd=\"$cmd\"
  50761. - IFS="$save_ifs"
  50762. - $show "$cmd"
  50763. - $run eval "$cmd" || exit $?
  50764. - done
  50765. - IFS="$save_ifs"
  50766. - done
  50767. - if test -n "$generated"; then
  50768. - $show "${rm}r$generated"
  50769. - $run ${rm}r$generated
  50770. - fi
  50771. + if test -n "$delfiles"; then
  50772. + # Append the command to remove temporary files to $cmds.
  50773. + eval cmds=\"\$cmds~\$RM $delfiles\"
  50774. + fi
  50775. - # Now create the libtool archive.
  50776. - case $output in
  50777. - *.la)
  50778. - old_library=
  50779. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  50780. - $show "creating $output"
  50781. + # Add any objects from preloaded convenience libraries
  50782. + if test -n "$dlprefiles"; then
  50783. + gentop="$output_objdir/${outputname}x"
  50784. + generated="$generated $gentop"
  50785. - # Preserve any variables that may affect compiler behavior
  50786. - for var in $variables_saved_for_relink; do
  50787. - if eval test -z \"\${$var+set}\"; then
  50788. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  50789. - elif eval var_value=\$$var; test -z "$var_value"; then
  50790. - relink_command="$var=; export $var; $relink_command"
  50791. - else
  50792. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  50793. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  50794. + func_extract_archives $gentop $dlprefiles
  50795. + libobjs="$libobjs $func_extract_archives_result"
  50796. + test "X$libobjs" = "X " && libobjs=
  50797. fi
  50798. - done
  50799. - # Quote the link command for shipping.
  50800. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  50801. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  50802. - if test "$hardcode_automatic" = yes ; then
  50803. - relink_command=
  50804. - fi
  50805. + save_ifs="$IFS"; IFS='~'
  50806. + for cmd in $cmds; do
  50807. + IFS="$save_ifs"
  50808. + eval cmd=\"$cmd\"
  50809. + $opt_silent || {
  50810. + func_quote_for_expand "$cmd"
  50811. + eval "func_echo $func_quote_for_expand_result"
  50812. + }
  50813. + $opt_dry_run || eval "$cmd" || {
  50814. + lt_exit=$?
  50815. - # Only create the output if not a dry run.
  50816. - if test -z "$run"; then
  50817. - for installed in no yes; do
  50818. - if test "$installed" = yes; then
  50819. - if test -z "$install_libdir"; then
  50820. - break
  50821. + # Restore the uninstalled library and exit
  50822. + if test "$mode" = relink; then
  50823. + ( cd "$output_objdir" && \
  50824. + $RM "${realname}T" && \
  50825. + $MV "${realname}U" "$realname" )
  50826. fi
  50827. - output="$output_objdir/$outputname"i
  50828. - # Replace all uninstalled libtool libraries with the installed ones
  50829. - newdependency_libs=
  50830. - for deplib in $dependency_libs; do
  50831. - case $deplib in
  50832. - *.la)
  50833. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  50834. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50835. - if test -z "$libdir"; then
  50836. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  50837. - exit $EXIT_FAILURE
  50838. - fi
  50839. - newdependency_libs="$newdependency_libs $libdir/$name"
  50840. - ;;
  50841. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  50842. - esac
  50843. - done
  50844. - dependency_libs="$newdependency_libs"
  50845. - newdlfiles=
  50846. - for lib in $dlfiles; do
  50847. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  50848. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  50849. - if test -z "$libdir"; then
  50850. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  50851. - exit $EXIT_FAILURE
  50852. - fi
  50853. - newdlfiles="$newdlfiles $libdir/$name"
  50854. - done
  50855. - dlfiles="$newdlfiles"
  50856. - newdlprefiles=
  50857. - for lib in $dlprefiles; do
  50858. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  50859. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  50860. - if test -z "$libdir"; then
  50861. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  50862. - exit $EXIT_FAILURE
  50863. - fi
  50864. - newdlprefiles="$newdlprefiles $libdir/$name"
  50865. - done
  50866. - dlprefiles="$newdlprefiles"
  50867. - else
  50868. - newdlfiles=
  50869. - for lib in $dlfiles; do
  50870. - case $lib in
  50871. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  50872. - *) abs=`pwd`"/$lib" ;;
  50873. - esac
  50874. - newdlfiles="$newdlfiles $abs"
  50875. - done
  50876. - dlfiles="$newdlfiles"
  50877. - newdlprefiles=
  50878. - for lib in $dlprefiles; do
  50879. - case $lib in
  50880. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  50881. - *) abs=`pwd`"/$lib" ;;
  50882. - esac
  50883. - newdlprefiles="$newdlprefiles $abs"
  50884. - done
  50885. - dlprefiles="$newdlprefiles"
  50886. - fi
  50887. - $rm $output
  50888. - # place dlname in correct position for cygwin
  50889. - tdlname=$dlname
  50890. - case $host,$output,$installed,$module,$dlname in
  50891. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  50892. - esac
  50893. - $echo > $output "\
  50894. -# $outputname - a libtool library file
  50895. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  50896. -#
  50897. -# Please DO NOT delete this file!
  50898. -# It is necessary for linking the library.
  50899. -# The name that we can dlopen(3).
  50900. -dlname='$tdlname'
  50901. + exit $lt_exit
  50902. + }
  50903. + done
  50904. + IFS="$save_ifs"
  50905. -# Names of this library.
  50906. -library_names='$library_names'
  50907. + # Restore the uninstalled library and exit
  50908. + if test "$mode" = relink; then
  50909. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  50910. -# The name of the static archive.
  50911. -old_library='$old_library'
  50912. + if test -n "$convenience"; then
  50913. + if test -z "$whole_archive_flag_spec"; then
  50914. + func_show_eval '${RM}r "$gentop"'
  50915. + fi
  50916. + fi
  50917. -# Libraries that this one depends upon.
  50918. -dependency_libs='$dependency_libs'
  50919. + exit $EXIT_SUCCESS
  50920. + fi
  50921. -# Version information for $libname.
  50922. -current=$current
  50923. -age=$age
  50924. -revision=$revision
  50925. + # Create links to the real library.
  50926. + for linkname in $linknames; do
  50927. + if test "$realname" != "$linkname"; then
  50928. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  50929. + fi
  50930. + done
  50931. -# Is this an already installed library?
  50932. -installed=$installed
  50933. + # If -module or -export-dynamic was specified, set the dlname.
  50934. + if test "$module" = yes || test "$export_dynamic" = yes; then
  50935. + # On all known operating systems, these are identical.
  50936. + dlname="$soname"
  50937. + fi
  50938. + fi
  50939. + ;;
  50940. -# Should we warn about portability when linking against -modules?
  50941. -shouldnotlink=$module
  50942. + obj)
  50943. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  50944. + func_warning "\`-dlopen' is ignored for objects"
  50945. + fi
  50946. -# Files to dlopen/dlpreopen
  50947. -dlopen='$dlfiles'
  50948. -dlpreopen='$dlprefiles'
  50949. + case " $deplibs" in
  50950. + *\ -l* | *\ -L*)
  50951. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  50952. + esac
  50953. -# Directory that this library needs to be installed in:
  50954. -libdir='$install_libdir'"
  50955. - if test "$installed" = no && test "$need_relink" = yes; then
  50956. - $echo >> $output "\
  50957. -relink_command=\"$relink_command\""
  50958. - fi
  50959. - done
  50960. - fi
  50961. + test -n "$rpath" && \
  50962. + func_warning "\`-rpath' is ignored for objects"
  50963. - # Do a symbolic link so that the libtool archive can be found in
  50964. - # LD_LIBRARY_PATH before the program is installed.
  50965. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  50966. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  50967. - ;;
  50968. - esac
  50969. - exit $EXIT_SUCCESS
  50970. - ;;
  50971. + test -n "$xrpath" && \
  50972. + func_warning "\`-R' is ignored for objects"
  50973. - # libtool install mode
  50974. - install)
  50975. - modename="$modename: install"
  50976. + test -n "$vinfo" && \
  50977. + func_warning "\`-version-info' is ignored for objects"
  50978. - # There may be an optional sh(1) argument at the beginning of
  50979. - # install_prog (especially on Windows NT).
  50980. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  50981. - # Allow the use of GNU shtool's install command.
  50982. - $echo "X$nonopt" | grep shtool > /dev/null; then
  50983. - # Aesthetically quote it.
  50984. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  50985. - case $arg in
  50986. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50987. - arg="\"$arg\""
  50988. + test -n "$release" && \
  50989. + func_warning "\`-release' is ignored for objects"
  50990. +
  50991. + case $output in
  50992. + *.lo)
  50993. + test -n "$objs$old_deplibs" && \
  50994. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  50995. +
  50996. + libobj=$output
  50997. + func_lo2o "$libobj"
  50998. + obj=$func_lo2o_result
  50999. + ;;
  51000. + *)
  51001. + libobj=
  51002. + obj="$output"
  51003. ;;
  51004. esac
  51005. - install_prog="$arg "
  51006. - arg="$1"
  51007. - shift
  51008. - else
  51009. - install_prog=
  51010. - arg=$nonopt
  51011. - fi
  51012. - # The real first argument should be the name of the installation program.
  51013. - # Aesthetically quote it.
  51014. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51015. - case $arg in
  51016. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51017. - arg="\"$arg\""
  51018. - ;;
  51019. - esac
  51020. - install_prog="$install_prog$arg"
  51021. + # Delete the old objects.
  51022. + $opt_dry_run || $RM $obj $libobj
  51023. - # We need to accept at least all the BSD install flags.
  51024. - dest=
  51025. - files=
  51026. - opts=
  51027. - prev=
  51028. - install_type=
  51029. - isdir=no
  51030. - stripme=
  51031. - for arg
  51032. - do
  51033. - if test -n "$dest"; then
  51034. - files="$files $dest"
  51035. - dest=$arg
  51036. - continue
  51037. - fi
  51038. + # Objects from convenience libraries. This assumes
  51039. + # single-version convenience libraries. Whenever we create
  51040. + # different ones for PIC/non-PIC, this we'll have to duplicate
  51041. + # the extraction.
  51042. + reload_conv_objs=
  51043. + gentop=
  51044. + # reload_cmds runs $LD directly, so let us get rid of
  51045. + # -Wl from whole_archive_flag_spec and hope we can get by with
  51046. + # turning comma into space..
  51047. + wl=
  51048. - case $arg in
  51049. - -d) isdir=yes ;;
  51050. - -f)
  51051. - case " $install_prog " in
  51052. - *[\\\ /]cp\ *) ;;
  51053. - *) prev=$arg ;;
  51054. - esac
  51055. - ;;
  51056. - -g | -m | -o) prev=$arg ;;
  51057. - -s)
  51058. - stripme=" -s"
  51059. - continue
  51060. - ;;
  51061. - -*)
  51062. - ;;
  51063. - *)
  51064. - # If the previous option needed an argument, then skip it.
  51065. - if test -n "$prev"; then
  51066. - prev=
  51067. + if test -n "$convenience"; then
  51068. + if test -n "$whole_archive_flag_spec"; then
  51069. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  51070. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  51071. else
  51072. - dest=$arg
  51073. - continue
  51074. + gentop="$output_objdir/${obj}x"
  51075. + generated="$generated $gentop"
  51076. +
  51077. + func_extract_archives $gentop $convenience
  51078. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  51079. fi
  51080. - ;;
  51081. - esac
  51082. + fi
  51083. - # Aesthetically quote the argument.
  51084. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51085. - case $arg in
  51086. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51087. - arg="\"$arg\""
  51088. - ;;
  51089. - esac
  51090. - install_prog="$install_prog $arg"
  51091. - done
  51092. + # Create the old-style object.
  51093. + 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
  51094. - if test -z "$install_prog"; then
  51095. - $echo "$modename: you must specify an install program" 1>&2
  51096. - $echo "$help" 1>&2
  51097. - exit $EXIT_FAILURE
  51098. - fi
  51099. + output="$obj"
  51100. + func_execute_cmds "$reload_cmds" 'exit $?'
  51101. - if test -n "$prev"; then
  51102. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  51103. - $echo "$help" 1>&2
  51104. - exit $EXIT_FAILURE
  51105. - fi
  51106. + # Exit if we aren't doing a library object file.
  51107. + if test -z "$libobj"; then
  51108. + if test -n "$gentop"; then
  51109. + func_show_eval '${RM}r "$gentop"'
  51110. + fi
  51111. - if test -z "$files"; then
  51112. - if test -z "$dest"; then
  51113. - $echo "$modename: no file or destination specified" 1>&2
  51114. - else
  51115. - $echo "$modename: you must specify a destination" 1>&2
  51116. + exit $EXIT_SUCCESS
  51117. fi
  51118. - $echo "$help" 1>&2
  51119. - exit $EXIT_FAILURE
  51120. - fi
  51121. - # Strip any trailing slash from the destination.
  51122. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  51123. + if test "$build_libtool_libs" != yes; then
  51124. + if test -n "$gentop"; then
  51125. + func_show_eval '${RM}r "$gentop"'
  51126. + fi
  51127. - # Check to see that the destination is a directory.
  51128. - test -d "$dest" && isdir=yes
  51129. - if test "$isdir" = yes; then
  51130. - destdir="$dest"
  51131. - destname=
  51132. - else
  51133. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  51134. - test "X$destdir" = "X$dest" && destdir=.
  51135. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  51136. + # Create an invalid libtool object if no PIC, so that we don't
  51137. + # accidentally link it into a program.
  51138. + # $show "echo timestamp > $libobj"
  51139. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  51140. + exit $EXIT_SUCCESS
  51141. + fi
  51142. - # Not a directory, so check to see that there is only one file specified.
  51143. - set dummy $files
  51144. - if test "$#" -gt 2; then
  51145. - $echo "$modename: \`$dest' is not a directory" 1>&2
  51146. - $echo "$help" 1>&2
  51147. - exit $EXIT_FAILURE
  51148. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  51149. + # Only do commands if we really have different PIC objects.
  51150. + reload_objs="$libobjs $reload_conv_objs"
  51151. + output="$libobj"
  51152. + func_execute_cmds "$reload_cmds" 'exit $?'
  51153. fi
  51154. - fi
  51155. - case $destdir in
  51156. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  51157. - *)
  51158. - for file in $files; do
  51159. - case $file in
  51160. - *.lo) ;;
  51161. - *)
  51162. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  51163. - $echo "$help" 1>&2
  51164. - exit $EXIT_FAILURE
  51165. - ;;
  51166. - esac
  51167. - done
  51168. +
  51169. + if test -n "$gentop"; then
  51170. + func_show_eval '${RM}r "$gentop"'
  51171. + fi
  51172. +
  51173. + exit $EXIT_SUCCESS
  51174. ;;
  51175. - esac
  51176. - # This variable tells wrapper scripts just to set variables rather
  51177. - # than running their programs.
  51178. - libtool_install_magic="$magic"
  51179. + prog)
  51180. + case $host in
  51181. + *cygwin*) func_stripname '' '.exe' "$output"
  51182. + output=$func_stripname_result.exe;;
  51183. + esac
  51184. + test -n "$vinfo" && \
  51185. + func_warning "\`-version-info' is ignored for programs"
  51186. - staticlibs=
  51187. - future_libdirs=
  51188. - current_libdirs=
  51189. - for file in $files; do
  51190. + test -n "$release" && \
  51191. + func_warning "\`-release' is ignored for programs"
  51192. - # Do each installation.
  51193. - case $file in
  51194. - *.$libext)
  51195. - # Do the static libraries later.
  51196. - staticlibs="$staticlibs $file"
  51197. + test "$preload" = yes \
  51198. + && test "$dlopen_support" = unknown \
  51199. + && test "$dlopen_self" = unknown \
  51200. + && test "$dlopen_self_static" = unknown && \
  51201. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  51202. +
  51203. + case $host in
  51204. + *-*-rhapsody* | *-*-darwin1.[012])
  51205. + # On Rhapsody replace the C library is the System framework
  51206. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51207. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51208. ;;
  51209. + esac
  51210. - *.la)
  51211. - # Check to see that this really is a libtool archive.
  51212. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  51213. - else
  51214. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  51215. - $echo "$help" 1>&2
  51216. - exit $EXIT_FAILURE
  51217. + case $host in
  51218. + *-*-darwin*)
  51219. + # Don't allow lazy linking, it breaks C++ global constructors
  51220. + # But is supposedly fixed on 10.4 or later (yay!).
  51221. + if test "$tagname" = CXX ; then
  51222. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  51223. + 10.[0123])
  51224. + compile_command="$compile_command ${wl}-bind_at_load"
  51225. + finalize_command="$finalize_command ${wl}-bind_at_load"
  51226. + ;;
  51227. + esac
  51228. fi
  51229. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  51230. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51231. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51232. + ;;
  51233. + esac
  51234. - library_names=
  51235. - old_library=
  51236. - relink_command=
  51237. - # If there is no directory component, then add one.
  51238. - case $file in
  51239. - */* | *\\*) . $file ;;
  51240. - *) . ./$file ;;
  51241. - esac
  51242. - # Add the libdir to current_libdirs if it is the destination.
  51243. - if test "X$destdir" = "X$libdir"; then
  51244. - case "$current_libdirs " in
  51245. - *" $libdir "*) ;;
  51246. - *) current_libdirs="$current_libdirs $libdir" ;;
  51247. + # move library search paths that coincide with paths to not yet
  51248. + # installed libraries to the beginning of the library search list
  51249. + new_libs=
  51250. + for path in $notinst_path; do
  51251. + case " $new_libs " in
  51252. + *" -L$path/$objdir "*) ;;
  51253. + *)
  51254. + case " $compile_deplibs " in
  51255. + *" -L$path/$objdir "*)
  51256. + new_libs="$new_libs -L$path/$objdir" ;;
  51257. esac
  51258. - else
  51259. - # Note the libdir as a future libdir.
  51260. - case "$future_libdirs " in
  51261. - *" $libdir "*) ;;
  51262. - *) future_libdirs="$future_libdirs $libdir" ;;
  51263. + ;;
  51264. + esac
  51265. + done
  51266. + for deplib in $compile_deplibs; do
  51267. + case $deplib in
  51268. + -L*)
  51269. + case " $new_libs " in
  51270. + *" $deplib "*) ;;
  51271. + *) new_libs="$new_libs $deplib" ;;
  51272. esac
  51273. - fi
  51274. + ;;
  51275. + *) new_libs="$new_libs $deplib" ;;
  51276. + esac
  51277. + done
  51278. + compile_deplibs="$new_libs"
  51279. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  51280. - test "X$dir" = "X$file/" && dir=
  51281. - dir="$dir$objdir"
  51282. - if test -n "$relink_command"; then
  51283. - # Determine the prefix the user has applied to our future dir.
  51284. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  51285. + compile_command="$compile_command $compile_deplibs"
  51286. + finalize_command="$finalize_command $finalize_deplibs"
  51287. - # Don't allow the user to place us outside of our expected
  51288. - # location b/c this prevents finding dependent libraries that
  51289. - # are installed to the same prefix.
  51290. - # At present, this check doesn't affect windows .dll's that
  51291. - # are installed into $libdir/../bin (currently, that works fine)
  51292. - # but it's something to keep an eye on.
  51293. - if test "$inst_prefix_dir" = "$destdir"; then
  51294. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  51295. - exit $EXIT_FAILURE
  51296. - fi
  51297. + if test -n "$rpath$xrpath"; then
  51298. + # If the user specified any rpath flags, then add them.
  51299. + for libdir in $rpath $xrpath; do
  51300. + # This is the magic to use -rpath.
  51301. + case "$finalize_rpath " in
  51302. + *" $libdir "*) ;;
  51303. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  51304. + esac
  51305. + done
  51306. + fi
  51307. - if test -n "$inst_prefix_dir"; then
  51308. - # Stick the inst_prefix_dir data into the link command.
  51309. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  51310. + # Now hardcode the library paths
  51311. + rpath=
  51312. + hardcode_libdirs=
  51313. + for libdir in $compile_rpath $finalize_rpath; do
  51314. + if test -n "$hardcode_libdir_flag_spec"; then
  51315. + if test -n "$hardcode_libdir_separator"; then
  51316. + if test -z "$hardcode_libdirs"; then
  51317. + hardcode_libdirs="$libdir"
  51318. + else
  51319. + # Just accumulate the unique libdirs.
  51320. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51321. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51322. + ;;
  51323. + *)
  51324. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51325. + ;;
  51326. + esac
  51327. + fi
  51328. else
  51329. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  51330. + eval flag=\"$hardcode_libdir_flag_spec\"
  51331. + rpath="$rpath $flag"
  51332. fi
  51333. + elif test -n "$runpath_var"; then
  51334. + case "$perm_rpath " in
  51335. + *" $libdir "*) ;;
  51336. + *) perm_rpath="$perm_rpath $libdir" ;;
  51337. + esac
  51338. + fi
  51339. + case $host in
  51340. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  51341. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  51342. + case :$dllsearchpath: in
  51343. + *":$libdir:"*) ;;
  51344. + ::) dllsearchpath=$libdir;;
  51345. + *) dllsearchpath="$dllsearchpath:$libdir";;
  51346. + esac
  51347. + case :$dllsearchpath: in
  51348. + *":$testbindir:"*) ;;
  51349. + ::) dllsearchpath=$testbindir;;
  51350. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  51351. + esac
  51352. + ;;
  51353. + esac
  51354. + done
  51355. + # Substitute the hardcoded libdirs into the rpath.
  51356. + if test -n "$hardcode_libdir_separator" &&
  51357. + test -n "$hardcode_libdirs"; then
  51358. + libdir="$hardcode_libdirs"
  51359. + eval rpath=\" $hardcode_libdir_flag_spec\"
  51360. + fi
  51361. + compile_rpath="$rpath"
  51362. - $echo "$modename: warning: relinking \`$file'" 1>&2
  51363. - $show "$relink_command"
  51364. - if $run eval "$relink_command"; then :
  51365. + rpath=
  51366. + hardcode_libdirs=
  51367. + for libdir in $finalize_rpath; do
  51368. + if test -n "$hardcode_libdir_flag_spec"; then
  51369. + if test -n "$hardcode_libdir_separator"; then
  51370. + if test -z "$hardcode_libdirs"; then
  51371. + hardcode_libdirs="$libdir"
  51372. + else
  51373. + # Just accumulate the unique libdirs.
  51374. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51375. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51376. + ;;
  51377. + *)
  51378. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51379. + ;;
  51380. + esac
  51381. + fi
  51382. else
  51383. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  51384. - exit $EXIT_FAILURE
  51385. + eval flag=\"$hardcode_libdir_flag_spec\"
  51386. + rpath="$rpath $flag"
  51387. fi
  51388. + elif test -n "$runpath_var"; then
  51389. + case "$finalize_perm_rpath " in
  51390. + *" $libdir "*) ;;
  51391. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  51392. + esac
  51393. fi
  51394. + done
  51395. + # Substitute the hardcoded libdirs into the rpath.
  51396. + if test -n "$hardcode_libdir_separator" &&
  51397. + test -n "$hardcode_libdirs"; then
  51398. + libdir="$hardcode_libdirs"
  51399. + eval rpath=\" $hardcode_libdir_flag_spec\"
  51400. + fi
  51401. + finalize_rpath="$rpath"
  51402. - # See the names of the shared library.
  51403. - set dummy $library_names
  51404. - if test -n "$2"; then
  51405. - realname="$2"
  51406. - shift
  51407. - shift
  51408. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  51409. + # Transform all the library objects into standard objects.
  51410. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51411. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51412. + fi
  51413. - srcname="$realname"
  51414. - test -n "$relink_command" && srcname="$realname"T
  51415. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  51416. - # Install the shared library and build the symlinks.
  51417. - $show "$install_prog $dir/$srcname $destdir/$realname"
  51418. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  51419. - if test -n "$stripme" && test -n "$striplib"; then
  51420. - $show "$striplib $destdir/$realname"
  51421. - $run eval "$striplib $destdir/$realname" || exit $?
  51422. - fi
  51423. + # template prelinking step
  51424. + if test -n "$prelink_cmds"; then
  51425. + func_execute_cmds "$prelink_cmds" 'exit $?'
  51426. + fi
  51427. - if test "$#" -gt 0; then
  51428. - # Delete the old symlinks, and create new ones.
  51429. - # Try `ln -sf' first, because the `ln' binary might depend on
  51430. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  51431. - # so we also need to try rm && ln -s.
  51432. - for linkname
  51433. - do
  51434. - if test "$linkname" != "$realname"; then
  51435. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  51436. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  51437. - fi
  51438. - done
  51439. - fi
  51440. + wrappers_required=yes
  51441. + case $host in
  51442. + *cygwin* | *mingw* )
  51443. + if test "$build_libtool_libs" != yes; then
  51444. + wrappers_required=no
  51445. + fi
  51446. + ;;
  51447. + *cegcc)
  51448. + # Disable wrappers for cegcc, we are cross compiling anyway.
  51449. + wrappers_required=no
  51450. + ;;
  51451. + *)
  51452. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  51453. + wrappers_required=no
  51454. + fi
  51455. + ;;
  51456. + esac
  51457. + if test "$wrappers_required" = no; then
  51458. + # Replace the output file specification.
  51459. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  51460. + link_command="$compile_command$compile_rpath"
  51461. - # Do each command in the postinstall commands.
  51462. - lib="$destdir/$realname"
  51463. - cmds=$postinstall_cmds
  51464. - save_ifs="$IFS"; IFS='~'
  51465. - for cmd in $cmds; do
  51466. - IFS="$save_ifs"
  51467. - eval cmd=\"$cmd\"
  51468. - $show "$cmd"
  51469. - $run eval "$cmd" || {
  51470. - lt_exit=$?
  51471. -
  51472. - # Restore the uninstalled library and exit
  51473. - if test "$mode" = relink; then
  51474. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  51475. - fi
  51476. + # We have no uninstalled library dependencies, so finalize right now.
  51477. + exit_status=0
  51478. + func_show_eval "$link_command" 'exit_status=$?'
  51479. - exit $lt_exit
  51480. - }
  51481. - done
  51482. - IFS="$save_ifs"
  51483. + # Delete the generated files.
  51484. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  51485. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  51486. fi
  51487. - # Install the pseudo-library for information purposes.
  51488. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  51489. - instname="$dir/$name"i
  51490. - $show "$install_prog $instname $destdir/$name"
  51491. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  51492. -
  51493. - # Maybe install the static library, too.
  51494. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  51495. - ;;
  51496. + exit $exit_status
  51497. + fi
  51498. - *.lo)
  51499. - # Install (i.e. copy) a libtool object.
  51500. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  51501. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  51502. + fi
  51503. + if test -n "$finalize_shlibpath"; then
  51504. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  51505. + fi
  51506. - # Figure out destination file name, if it wasn't already specified.
  51507. - if test -n "$destname"; then
  51508. - destfile="$destdir/$destname"
  51509. - else
  51510. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  51511. - destfile="$destdir/$destfile"
  51512. + compile_var=
  51513. + finalize_var=
  51514. + if test -n "$runpath_var"; then
  51515. + if test -n "$perm_rpath"; then
  51516. + # We should set the runpath_var.
  51517. + rpath=
  51518. + for dir in $perm_rpath; do
  51519. + rpath="$rpath$dir:"
  51520. + done
  51521. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  51522. fi
  51523. -
  51524. - # Deduce the name of the destination old-style object file.
  51525. - case $destfile in
  51526. - *.lo)
  51527. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  51528. - ;;
  51529. - *.$objext)
  51530. - staticdest="$destfile"
  51531. - destfile=
  51532. - ;;
  51533. - *)
  51534. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  51535. - $echo "$help" 1>&2
  51536. - exit $EXIT_FAILURE
  51537. - ;;
  51538. - esac
  51539. -
  51540. - # Install the libtool object if requested.
  51541. - if test -n "$destfile"; then
  51542. - $show "$install_prog $file $destfile"
  51543. - $run eval "$install_prog $file $destfile" || exit $?
  51544. + if test -n "$finalize_perm_rpath"; then
  51545. + # We should set the runpath_var.
  51546. + rpath=
  51547. + for dir in $finalize_perm_rpath; do
  51548. + rpath="$rpath$dir:"
  51549. + done
  51550. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  51551. fi
  51552. + fi
  51553. - # Install the old object if enabled.
  51554. - if test "$build_old_libs" = yes; then
  51555. - # Deduce the name of the old-style object file.
  51556. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  51557. -
  51558. - $show "$install_prog $staticobj $staticdest"
  51559. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  51560. - fi
  51561. + if test "$no_install" = yes; then
  51562. + # We don't need to create a wrapper script.
  51563. + link_command="$compile_var$compile_command$compile_rpath"
  51564. + # Replace the output file specification.
  51565. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  51566. + # Delete the old output file.
  51567. + $opt_dry_run || $RM $output
  51568. + # Link the executable and exit
  51569. + func_show_eval "$link_command" 'exit $?'
  51570. exit $EXIT_SUCCESS
  51571. - ;;
  51572. + fi
  51573. - *)
  51574. - # Figure out destination file name, if it wasn't already specified.
  51575. - if test -n "$destname"; then
  51576. - destfile="$destdir/$destname"
  51577. + if test "$hardcode_action" = relink; then
  51578. + # Fast installation is not supported
  51579. + link_command="$compile_var$compile_command$compile_rpath"
  51580. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  51581. +
  51582. + func_warning "this platform does not like uninstalled shared libraries"
  51583. + func_warning "\`$output' will be relinked during installation"
  51584. + else
  51585. + if test "$fast_install" != no; then
  51586. + link_command="$finalize_var$compile_command$finalize_rpath"
  51587. + if test "$fast_install" = yes; then
  51588. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  51589. + else
  51590. + # fast_install is set to needless
  51591. + relink_command=
  51592. + fi
  51593. else
  51594. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  51595. - destfile="$destdir/$destfile"
  51596. + link_command="$compile_var$compile_command$compile_rpath"
  51597. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  51598. fi
  51599. + fi
  51600. - # If the file is missing, and there is a .exe on the end, strip it
  51601. - # because it is most likely a libtool script we actually want to
  51602. - # install
  51603. - stripped_ext=""
  51604. - case $file in
  51605. - *.exe)
  51606. - if test ! -f "$file"; then
  51607. - file=`$echo $file|${SED} 's,.exe$,,'`
  51608. - stripped_ext=".exe"
  51609. - fi
  51610. - ;;
  51611. - esac
  51612. -
  51613. - # Do a test to see if this is really a libtool program.
  51614. - case $host in
  51615. - *cygwin*|*mingw*)
  51616. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  51617. - ;;
  51618. - *)
  51619. - wrapper=$file
  51620. - ;;
  51621. - esac
  51622. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  51623. - notinst_deplibs=
  51624. - relink_command=
  51625. -
  51626. - # Note that it is not necessary on cygwin/mingw to append a dot to
  51627. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  51628. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  51629. - # `FILE.' does not work on cygwin managed mounts.
  51630. - #
  51631. - # If there is no directory component, then add one.
  51632. - case $wrapper in
  51633. - */* | *\\*) . ${wrapper} ;;
  51634. - *) . ./${wrapper} ;;
  51635. - esac
  51636. -
  51637. - # Check the variables that should have been set.
  51638. - if test -z "$notinst_deplibs"; then
  51639. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  51640. - exit $EXIT_FAILURE
  51641. - fi
  51642. + # Replace the output file specification.
  51643. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  51644. - finalize=yes
  51645. - for lib in $notinst_deplibs; do
  51646. - # Check to see that each library is installed.
  51647. - libdir=
  51648. - if test -f "$lib"; then
  51649. - # If there is no directory component, then add one.
  51650. - case $lib in
  51651. - */* | *\\*) . $lib ;;
  51652. - *) . ./$lib ;;
  51653. - esac
  51654. - fi
  51655. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  51656. - if test -n "$libdir" && test ! -f "$libfile"; then
  51657. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  51658. - finalize=no
  51659. - fi
  51660. - done
  51661. + # Delete the old output files.
  51662. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  51663. - relink_command=
  51664. - # Note that it is not necessary on cygwin/mingw to append a dot to
  51665. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  51666. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  51667. - # `FILE.' does not work on cygwin managed mounts.
  51668. - #
  51669. - # If there is no directory component, then add one.
  51670. - case $wrapper in
  51671. - */* | *\\*) . ${wrapper} ;;
  51672. - *) . ./${wrapper} ;;
  51673. - esac
  51674. + func_show_eval "$link_command" 'exit $?'
  51675. - outputname=
  51676. - if test "$fast_install" = no && test -n "$relink_command"; then
  51677. - if test "$finalize" = yes && test -z "$run"; then
  51678. - tmpdir=`func_mktempdir`
  51679. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  51680. - outputname="$tmpdir/$file"
  51681. - # Replace the output file specification.
  51682. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  51683. + # Now create the wrapper script.
  51684. + func_verbose "creating $output"
  51685. - $show "$relink_command"
  51686. - if $run eval "$relink_command"; then :
  51687. - else
  51688. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  51689. - ${rm}r "$tmpdir"
  51690. - continue
  51691. - fi
  51692. - file="$outputname"
  51693. - else
  51694. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  51695. - fi
  51696. + # Quote the relink command for shipping.
  51697. + if test -n "$relink_command"; then
  51698. + # Preserve any variables that may affect compiler behavior
  51699. + for var in $variables_saved_for_relink; do
  51700. + if eval test -z \"\${$var+set}\"; then
  51701. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  51702. + elif eval var_value=\$$var; test -z "$var_value"; then
  51703. + relink_command="$var=; export $var; $relink_command"
  51704. else
  51705. - # Install the binary that we compiled earlier.
  51706. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  51707. + func_quote_for_eval "$var_value"
  51708. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  51709. fi
  51710. - fi
  51711. + done
  51712. + relink_command="(cd `pwd`; $relink_command)"
  51713. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  51714. + fi
  51715. - # remove .exe since cygwin /usr/bin/install will append another
  51716. - # one anyway
  51717. - case $install_prog,$host in
  51718. - */usr/bin/install*,*cygwin*)
  51719. - case $file:$destfile in
  51720. - *.exe:*.exe)
  51721. - # this is ok
  51722. - ;;
  51723. - *.exe:*)
  51724. - destfile=$destfile.exe
  51725. - ;;
  51726. - *:*.exe)
  51727. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  51728. - ;;
  51729. - esac
  51730. - ;;
  51731. + # Quote $ECHO for shipping.
  51732. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  51733. + case $progpath in
  51734. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  51735. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  51736. + esac
  51737. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  51738. + else
  51739. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  51740. + fi
  51741. +
  51742. + # Only actually do things if not in dry run mode.
  51743. + $opt_dry_run || {
  51744. + # win32 will think the script is a binary if it has
  51745. + # a .exe suffix, so we strip it off here.
  51746. + case $output in
  51747. + *.exe) func_stripname '' '.exe' "$output"
  51748. + output=$func_stripname_result ;;
  51749. + esac
  51750. + # test for cygwin because mv fails w/o .exe extensions
  51751. + case $host in
  51752. + *cygwin*)
  51753. + exeext=.exe
  51754. + func_stripname '' '.exe' "$outputname"
  51755. + outputname=$func_stripname_result ;;
  51756. + *) exeext= ;;
  51757. esac
  51758. - $show "$install_prog$stripme $file $destfile"
  51759. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  51760. - test -n "$outputname" && ${rm}r "$tmpdir"
  51761. - ;;
  51762. - esac
  51763. - done
  51764. + case $host in
  51765. + *cygwin* | *mingw* )
  51766. + func_dirname_and_basename "$output" "" "."
  51767. + output_name=$func_basename_result
  51768. + output_path=$func_dirname_result
  51769. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  51770. + cwrapper="$output_path/$output_name.exe"
  51771. + $RM $cwrappersource $cwrapper
  51772. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  51773. +
  51774. + func_emit_cwrapperexe_src > $cwrappersource
  51775. +
  51776. + # The wrapper executable is built using the $host compiler,
  51777. + # because it contains $host paths and files. If cross-
  51778. + # compiling, it, like the target executable, must be
  51779. + # executed on the $host or under an emulation environment.
  51780. + $opt_dry_run || {
  51781. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  51782. + $STRIP $cwrapper
  51783. + }
  51784. - for file in $staticlibs; do
  51785. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  51786. + # Now, create the wrapper script for func_source use:
  51787. + func_ltwrapper_scriptname $cwrapper
  51788. + $RM $func_ltwrapper_scriptname_result
  51789. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  51790. + $opt_dry_run || {
  51791. + # note: this script will not be executed, so do not chmod.
  51792. + if test "x$build" = "x$host" ; then
  51793. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  51794. + else
  51795. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  51796. + fi
  51797. + }
  51798. + ;;
  51799. + * )
  51800. + $RM $output
  51801. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  51802. - # Set up the ranlib parameters.
  51803. - oldlib="$destdir/$name"
  51804. + func_emit_wrapper no > $output
  51805. + chmod +x $output
  51806. + ;;
  51807. + esac
  51808. + }
  51809. + exit $EXIT_SUCCESS
  51810. + ;;
  51811. + esac
  51812. - $show "$install_prog $file $oldlib"
  51813. - $run eval "$install_prog \$file \$oldlib" || exit $?
  51814. + # See if we need to build an old-fashioned archive.
  51815. + for oldlib in $oldlibs; do
  51816. - if test -n "$stripme" && test -n "$old_striplib"; then
  51817. - $show "$old_striplib $oldlib"
  51818. - $run eval "$old_striplib $oldlib" || exit $?
  51819. + if test "$build_libtool_libs" = convenience; then
  51820. + oldobjs="$libobjs_save $symfileobj"
  51821. + addlibs="$convenience"
  51822. + build_libtool_libs=no
  51823. + else
  51824. + if test "$build_libtool_libs" = module; then
  51825. + oldobjs="$libobjs_save"
  51826. + build_libtool_libs=no
  51827. + else
  51828. + oldobjs="$old_deplibs $non_pic_objects"
  51829. + if test "$preload" = yes && test -f "$symfileobj"; then
  51830. + oldobjs="$oldobjs $symfileobj"
  51831. + fi
  51832. + fi
  51833. + addlibs="$old_convenience"
  51834. fi
  51835. - # Do each command in the postinstall commands.
  51836. - cmds=$old_postinstall_cmds
  51837. - save_ifs="$IFS"; IFS='~'
  51838. - for cmd in $cmds; do
  51839. - IFS="$save_ifs"
  51840. - eval cmd=\"$cmd\"
  51841. - $show "$cmd"
  51842. - $run eval "$cmd" || exit $?
  51843. - done
  51844. - IFS="$save_ifs"
  51845. - done
  51846. + if test -n "$addlibs"; then
  51847. + gentop="$output_objdir/${outputname}x"
  51848. + generated="$generated $gentop"
  51849. - if test -n "$future_libdirs"; then
  51850. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  51851. - fi
  51852. + func_extract_archives $gentop $addlibs
  51853. + oldobjs="$oldobjs $func_extract_archives_result"
  51854. + fi
  51855. - if test -n "$current_libdirs"; then
  51856. - # Maybe just do a dry run.
  51857. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  51858. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  51859. - else
  51860. - exit $EXIT_SUCCESS
  51861. - fi
  51862. - ;;
  51863. + # Do each command in the archive commands.
  51864. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  51865. + cmds=$old_archive_from_new_cmds
  51866. + else
  51867. - # libtool finish mode
  51868. - finish)
  51869. - modename="$modename: finish"
  51870. - libdirs="$nonopt"
  51871. - admincmds=
  51872. + # Add any objects from preloaded convenience libraries
  51873. + if test -n "$dlprefiles"; then
  51874. + gentop="$output_objdir/${outputname}x"
  51875. + generated="$generated $gentop"
  51876. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  51877. - for dir
  51878. - do
  51879. - libdirs="$libdirs $dir"
  51880. - done
  51881. + func_extract_archives $gentop $dlprefiles
  51882. + oldobjs="$oldobjs $func_extract_archives_result"
  51883. + fi
  51884. - for libdir in $libdirs; do
  51885. - if test -n "$finish_cmds"; then
  51886. - # Do each command in the finish commands.
  51887. - cmds=$finish_cmds
  51888. - save_ifs="$IFS"; IFS='~'
  51889. - for cmd in $cmds; do
  51890. - IFS="$save_ifs"
  51891. - eval cmd=\"$cmd\"
  51892. - $show "$cmd"
  51893. - $run eval "$cmd" || admincmds="$admincmds
  51894. - $cmd"
  51895. + # POSIX demands no paths to be encoded in archives. We have
  51896. + # to avoid creating archives with duplicate basenames if we
  51897. + # might have to extract them afterwards, e.g., when creating a
  51898. + # static archive out of a convenience library, or when linking
  51899. + # the entirety of a libtool archive into another (currently
  51900. + # not supported by libtool).
  51901. + if (for obj in $oldobjs
  51902. + do
  51903. + func_basename "$obj"
  51904. + $ECHO "$func_basename_result"
  51905. + done | sort | sort -uc >/dev/null 2>&1); then
  51906. + :
  51907. + else
  51908. + $ECHO "copying selected object files to avoid basename conflicts..."
  51909. + gentop="$output_objdir/${outputname}x"
  51910. + generated="$generated $gentop"
  51911. + func_mkdir_p "$gentop"
  51912. + save_oldobjs=$oldobjs
  51913. + oldobjs=
  51914. + counter=1
  51915. + for obj in $save_oldobjs
  51916. + do
  51917. + func_basename "$obj"
  51918. + objbase="$func_basename_result"
  51919. + case " $oldobjs " in
  51920. + " ") oldobjs=$obj ;;
  51921. + *[\ /]"$objbase "*)
  51922. + while :; do
  51923. + # Make sure we don't pick an alternate name that also
  51924. + # overlaps.
  51925. + newobj=lt$counter-$objbase
  51926. + func_arith $counter + 1
  51927. + counter=$func_arith_result
  51928. + case " $oldobjs " in
  51929. + *[\ /]"$newobj "*) ;;
  51930. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  51931. + esac
  51932. + done
  51933. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  51934. + oldobjs="$oldobjs $gentop/$newobj"
  51935. + ;;
  51936. + *) oldobjs="$oldobjs $obj" ;;
  51937. + esac
  51938. done
  51939. - IFS="$save_ifs"
  51940. - fi
  51941. - if test -n "$finish_eval"; then
  51942. - # Do the single finish_eval.
  51943. - eval cmds=\"$finish_eval\"
  51944. - $run eval "$cmds" || admincmds="$admincmds
  51945. - $cmds"
  51946. fi
  51947. - done
  51948. - fi
  51949. -
  51950. - # Exit here if they wanted silent mode.
  51951. - test "$show" = : && exit $EXIT_SUCCESS
  51952. + eval cmds=\"$old_archive_cmds\"
  51953. - $echo "X----------------------------------------------------------------------" | $Xsed
  51954. - $echo "Libraries have been installed in:"
  51955. - for libdir in $libdirs; do
  51956. - $echo " $libdir"
  51957. + func_len " $cmds"
  51958. + len=$func_len_result
  51959. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51960. + cmds=$old_archive_cmds
  51961. + else
  51962. + # the command line is too long to link in one step, link in parts
  51963. + func_verbose "using piecewise archive linking..."
  51964. + save_RANLIB=$RANLIB
  51965. + RANLIB=:
  51966. + objlist=
  51967. + concat_cmds=
  51968. + save_oldobjs=$oldobjs
  51969. + oldobjs=
  51970. + # Is there a better way of finding the last object in the list?
  51971. + for obj in $save_oldobjs
  51972. + do
  51973. + last_oldobj=$obj
  51974. + done
  51975. + eval test_cmds=\"$old_archive_cmds\"
  51976. + func_len " $test_cmds"
  51977. + len0=$func_len_result
  51978. + len=$len0
  51979. + for obj in $save_oldobjs
  51980. + do
  51981. + func_len " $obj"
  51982. + func_arith $len + $func_len_result
  51983. + len=$func_arith_result
  51984. + func_append objlist " $obj"
  51985. + if test "$len" -lt "$max_cmd_len"; then
  51986. + :
  51987. + else
  51988. + # the above command should be used before it gets too long
  51989. + oldobjs=$objlist
  51990. + if test "$obj" = "$last_oldobj" ; then
  51991. + RANLIB=$save_RANLIB
  51992. + fi
  51993. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51994. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  51995. + objlist=
  51996. + len=$len0
  51997. + fi
  51998. + done
  51999. + RANLIB=$save_RANLIB
  52000. + oldobjs=$objlist
  52001. + if test "X$oldobjs" = "X" ; then
  52002. + eval cmds=\"\$concat_cmds\"
  52003. + else
  52004. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  52005. + fi
  52006. + fi
  52007. + fi
  52008. + func_execute_cmds "$cmds" 'exit $?'
  52009. done
  52010. - $echo
  52011. - $echo "If you ever happen to want to link against installed libraries"
  52012. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  52013. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  52014. - $echo "flag during linking and do at least one of the following:"
  52015. - if test -n "$shlibpath_var"; then
  52016. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  52017. - $echo " during execution"
  52018. - fi
  52019. - if test -n "$runpath_var"; then
  52020. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  52021. - $echo " during linking"
  52022. - fi
  52023. - if test -n "$hardcode_libdir_flag_spec"; then
  52024. - libdir=LIBDIR
  52025. - eval flag=\"$hardcode_libdir_flag_spec\"
  52026. -
  52027. - $echo " - use the \`$flag' linker flag"
  52028. - fi
  52029. - if test -n "$admincmds"; then
  52030. - $echo " - have your system administrator run these commands:$admincmds"
  52031. - fi
  52032. - if test -f /etc/ld.so.conf; then
  52033. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  52034. - fi
  52035. - $echo
  52036. - $echo "See any operating system documentation about shared libraries for"
  52037. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  52038. - $echo "X----------------------------------------------------------------------" | $Xsed
  52039. - exit $EXIT_SUCCESS
  52040. - ;;
  52041. -
  52042. - # libtool execute mode
  52043. - execute)
  52044. - modename="$modename: execute"
  52045. - # The first argument is the command name.
  52046. - cmd="$nonopt"
  52047. - if test -z "$cmd"; then
  52048. - $echo "$modename: you must specify a COMMAND" 1>&2
  52049. - $echo "$help"
  52050. - exit $EXIT_FAILURE
  52051. - fi
  52052. + test -n "$generated" && \
  52053. + func_show_eval "${RM}r$generated"
  52054. - # Handle -dlopen flags immediately.
  52055. - for file in $execute_dlfiles; do
  52056. - if test ! -f "$file"; then
  52057. - $echo "$modename: \`$file' is not a file" 1>&2
  52058. - $echo "$help" 1>&2
  52059. - exit $EXIT_FAILURE
  52060. - fi
  52061. + # Now create the libtool archive.
  52062. + case $output in
  52063. + *.la)
  52064. + old_library=
  52065. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  52066. + func_verbose "creating $output"
  52067. - dir=
  52068. - case $file in
  52069. - *.la)
  52070. - # Check to see that this really is a libtool archive.
  52071. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  52072. + # Preserve any variables that may affect compiler behavior
  52073. + for var in $variables_saved_for_relink; do
  52074. + if eval test -z \"\${$var+set}\"; then
  52075. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  52076. + elif eval var_value=\$$var; test -z "$var_value"; then
  52077. + relink_command="$var=; export $var; $relink_command"
  52078. else
  52079. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  52080. - $echo "$help" 1>&2
  52081. - exit $EXIT_FAILURE
  52082. + func_quote_for_eval "$var_value"
  52083. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  52084. fi
  52085. + done
  52086. + # Quote the link command for shipping.
  52087. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  52088. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  52089. + if test "$hardcode_automatic" = yes ; then
  52090. + relink_command=
  52091. + fi
  52092. - # Read the libtool library.
  52093. - dlname=
  52094. - library_names=
  52095. + # Only create the output if not a dry run.
  52096. + $opt_dry_run || {
  52097. + for installed in no yes; do
  52098. + if test "$installed" = yes; then
  52099. + if test -z "$install_libdir"; then
  52100. + break
  52101. + fi
  52102. + output="$output_objdir/$outputname"i
  52103. + # Replace all uninstalled libtool libraries with the installed ones
  52104. + newdependency_libs=
  52105. + for deplib in $dependency_libs; do
  52106. + case $deplib in
  52107. + *.la)
  52108. + func_basename "$deplib"
  52109. + name="$func_basename_result"
  52110. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  52111. + test -z "$libdir" && \
  52112. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  52113. + newdependency_libs="$newdependency_libs $libdir/$name"
  52114. + ;;
  52115. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  52116. + esac
  52117. + done
  52118. + dependency_libs="$newdependency_libs"
  52119. + newdlfiles=
  52120. +
  52121. + for lib in $dlfiles; do
  52122. + case $lib in
  52123. + *.la)
  52124. + func_basename "$lib"
  52125. + name="$func_basename_result"
  52126. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  52127. + test -z "$libdir" && \
  52128. + func_fatal_error "\`$lib' is not a valid libtool archive"
  52129. + newdlfiles="$newdlfiles $libdir/$name"
  52130. + ;;
  52131. + *) newdlfiles="$newdlfiles $lib" ;;
  52132. + esac
  52133. + done
  52134. + dlfiles="$newdlfiles"
  52135. + newdlprefiles=
  52136. + for lib in $dlprefiles; do
  52137. + case $lib in
  52138. + *.la)
  52139. + # Only pass preopened files to the pseudo-archive (for
  52140. + # eventual linking with the app. that links it) if we
  52141. + # didn't already link the preopened objects directly into
  52142. + # the library:
  52143. + func_basename "$lib"
  52144. + name="$func_basename_result"
  52145. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  52146. + test -z "$libdir" && \
  52147. + func_fatal_error "\`$lib' is not a valid libtool archive"
  52148. + newdlprefiles="$newdlprefiles $libdir/$name"
  52149. + ;;
  52150. + esac
  52151. + done
  52152. + dlprefiles="$newdlprefiles"
  52153. + else
  52154. + newdlfiles=
  52155. + for lib in $dlfiles; do
  52156. + case $lib in
  52157. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  52158. + *) abs=`pwd`"/$lib" ;;
  52159. + esac
  52160. + newdlfiles="$newdlfiles $abs"
  52161. + done
  52162. + dlfiles="$newdlfiles"
  52163. + newdlprefiles=
  52164. + for lib in $dlprefiles; do
  52165. + case $lib in
  52166. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  52167. + *) abs=`pwd`"/$lib" ;;
  52168. + esac
  52169. + newdlprefiles="$newdlprefiles $abs"
  52170. + done
  52171. + dlprefiles="$newdlprefiles"
  52172. + fi
  52173. + $RM $output
  52174. + # place dlname in correct position for cygwin
  52175. + tdlname=$dlname
  52176. + case $host,$output,$installed,$module,$dlname in
  52177. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  52178. + esac
  52179. + $ECHO > $output "\
  52180. +# $outputname - a libtool library file
  52181. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52182. +#
  52183. +# Please DO NOT delete this file!
  52184. +# It is necessary for linking the library.
  52185. - # If there is no directory component, then add one.
  52186. - case $file in
  52187. - */* | *\\*) . $file ;;
  52188. - *) . ./$file ;;
  52189. - esac
  52190. +# The name that we can dlopen(3).
  52191. +dlname='$tdlname'
  52192. - # Skip this library if it cannot be dlopened.
  52193. - if test -z "$dlname"; then
  52194. - # Warn if it was a shared library.
  52195. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  52196. - continue
  52197. - fi
  52198. +# Names of this library.
  52199. +library_names='$library_names'
  52200. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  52201. - test "X$dir" = "X$file" && dir=.
  52202. +# The name of the static archive.
  52203. +old_library='$old_library'
  52204. - if test -f "$dir/$objdir/$dlname"; then
  52205. - dir="$dir/$objdir"
  52206. - else
  52207. - if test ! -f "$dir/$dlname"; then
  52208. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  52209. - exit $EXIT_FAILURE
  52210. - fi
  52211. - fi
  52212. - ;;
  52213. +# Linker flags that can not go in dependency_libs.
  52214. +inherited_linker_flags='$new_inherited_linker_flags'
  52215. - *.lo)
  52216. - # Just add the directory containing the .lo file.
  52217. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  52218. - test "X$dir" = "X$file" && dir=.
  52219. - ;;
  52220. +# Libraries that this one depends upon.
  52221. +dependency_libs='$dependency_libs'
  52222. - *)
  52223. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  52224. - continue
  52225. - ;;
  52226. - esac
  52227. +# Names of additional weak libraries provided by this library
  52228. +weak_library_names='$weak_libs'
  52229. - # Get the absolute pathname.
  52230. - absdir=`cd "$dir" && pwd`
  52231. - test -n "$absdir" && dir="$absdir"
  52232. +# Version information for $libname.
  52233. +current=$current
  52234. +age=$age
  52235. +revision=$revision
  52236. - # Now add the directory to shlibpath_var.
  52237. - if eval "test -z \"\$$shlibpath_var\""; then
  52238. - eval "$shlibpath_var=\"\$dir\""
  52239. - else
  52240. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  52241. - fi
  52242. - done
  52243. +# Is this an already installed library?
  52244. +installed=$installed
  52245. - # This variable tells wrapper scripts just to set shlibpath_var
  52246. - # rather than running their programs.
  52247. - libtool_execute_magic="$magic"
  52248. +# Should we warn about portability when linking against -modules?
  52249. +shouldnotlink=$module
  52250. - # Check if any of the arguments is a wrapper script.
  52251. - args=
  52252. - for file
  52253. - do
  52254. - case $file in
  52255. - -*) ;;
  52256. - *)
  52257. - # Do a test to see if this is really a libtool program.
  52258. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52259. - # If there is no directory component, then add one.
  52260. - case $file in
  52261. - */* | *\\*) . $file ;;
  52262. - *) . ./$file ;;
  52263. - esac
  52264. +# Files to dlopen/dlpreopen
  52265. +dlopen='$dlfiles'
  52266. +dlpreopen='$dlprefiles'
  52267. - # Transform arg to wrapped name.
  52268. - file="$progdir/$program"
  52269. - fi
  52270. - ;;
  52271. - esac
  52272. - # Quote arguments (to preserve shell metacharacters).
  52273. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  52274. - args="$args \"$file\""
  52275. - done
  52276. +# Directory that this library needs to be installed in:
  52277. +libdir='$install_libdir'"
  52278. + if test "$installed" = no && test "$need_relink" = yes; then
  52279. + $ECHO >> $output "\
  52280. +relink_command=\"$relink_command\""
  52281. + fi
  52282. + done
  52283. + }
  52284. - if test -z "$run"; then
  52285. - if test -n "$shlibpath_var"; then
  52286. - # Export the shlibpath_var.
  52287. - eval "export $shlibpath_var"
  52288. - fi
  52289. + # Do a symbolic link so that the libtool archive can be found in
  52290. + # LD_LIBRARY_PATH before the program is installed.
  52291. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  52292. + ;;
  52293. + esac
  52294. + exit $EXIT_SUCCESS
  52295. +}
  52296. - # Restore saved environment variables
  52297. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  52298. - do
  52299. - eval "if test \"\${save_$lt_var+set}\" = set; then
  52300. - $lt_var=\$save_$lt_var; export $lt_var
  52301. - fi"
  52302. - done
  52303. +{ test "$mode" = link || test "$mode" = relink; } &&
  52304. + func_mode_link ${1+"$@"}
  52305. - # Now prepare to actually exec the command.
  52306. - exec_cmd="\$cmd$args"
  52307. - else
  52308. - # Display what would be done.
  52309. - if test -n "$shlibpath_var"; then
  52310. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  52311. - $echo "export $shlibpath_var"
  52312. - fi
  52313. - $echo "$cmd$args"
  52314. - exit $EXIT_SUCCESS
  52315. - fi
  52316. - ;;
  52317. - # libtool clean and uninstall mode
  52318. - clean | uninstall)
  52319. - modename="$modename: $mode"
  52320. - rm="$nonopt"
  52321. +# func_mode_uninstall arg...
  52322. +func_mode_uninstall ()
  52323. +{
  52324. + $opt_debug
  52325. + RM="$nonopt"
  52326. files=
  52327. rmforce=
  52328. exit_status=0
  52329. @@ -6547,30 +8209,28 @@
  52330. for arg
  52331. do
  52332. case $arg in
  52333. - -f) rm="$rm $arg"; rmforce=yes ;;
  52334. - -*) rm="$rm $arg" ;;
  52335. + -f) RM="$RM $arg"; rmforce=yes ;;
  52336. + -*) RM="$RM $arg" ;;
  52337. *) files="$files $arg" ;;
  52338. esac
  52339. done
  52340. - if test -z "$rm"; then
  52341. - $echo "$modename: you must specify an RM program" 1>&2
  52342. - $echo "$help" 1>&2
  52343. - exit $EXIT_FAILURE
  52344. - fi
  52345. + test -z "$RM" && \
  52346. + func_fatal_help "you must specify an RM program"
  52347. rmdirs=
  52348. origobjdir="$objdir"
  52349. for file in $files; do
  52350. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  52351. - if test "X$dir" = "X$file"; then
  52352. - dir=.
  52353. + func_dirname "$file" "" "."
  52354. + dir="$func_dirname_result"
  52355. + if test "X$dir" = X.; then
  52356. objdir="$origobjdir"
  52357. else
  52358. objdir="$dir/$origobjdir"
  52359. fi
  52360. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52361. + func_basename "$file"
  52362. + name="$func_basename_result"
  52363. test "$mode" = uninstall && objdir="$dir"
  52364. # Remember objdir for removal later, being careful to avoid duplicates
  52365. @@ -6582,9 +8242,9 @@
  52366. fi
  52367. # Don't error if the file doesn't exist and rm -f was used.
  52368. - if (test -L "$file") >/dev/null 2>&1 \
  52369. - || (test -h "$file") >/dev/null 2>&1 \
  52370. - || test -f "$file"; then
  52371. + if { test -L "$file"; } >/dev/null 2>&1 ||
  52372. + { test -h "$file"; } >/dev/null 2>&1 ||
  52373. + test -f "$file"; then
  52374. :
  52375. elif test -d "$file"; then
  52376. exit_status=1
  52377. @@ -6598,8 +8258,8 @@
  52378. case $name in
  52379. *.la)
  52380. # Possibly a libtool archive, so verify it.
  52381. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52382. - . $dir/$name
  52383. + if func_lalib_p "$file"; then
  52384. + func_source $dir/$name
  52385. # Delete the libtool libraries and symlinks.
  52386. for n in $library_names; do
  52387. @@ -6614,39 +8274,17 @@
  52388. *" $dlname "*) ;;
  52389. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  52390. esac
  52391. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  52392. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  52393. ;;
  52394. uninstall)
  52395. if test -n "$library_names"; then
  52396. # Do each command in the postuninstall commands.
  52397. - cmds=$postuninstall_cmds
  52398. - save_ifs="$IFS"; IFS='~'
  52399. - for cmd in $cmds; do
  52400. - IFS="$save_ifs"
  52401. - eval cmd=\"$cmd\"
  52402. - $show "$cmd"
  52403. - $run eval "$cmd"
  52404. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  52405. - exit_status=1
  52406. - fi
  52407. - done
  52408. - IFS="$save_ifs"
  52409. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  52410. fi
  52411. if test -n "$old_library"; then
  52412. # Do each command in the old_postuninstall commands.
  52413. - cmds=$old_postuninstall_cmds
  52414. - save_ifs="$IFS"; IFS='~'
  52415. - for cmd in $cmds; do
  52416. - IFS="$save_ifs"
  52417. - eval cmd=\"$cmd\"
  52418. - $show "$cmd"
  52419. - $run eval "$cmd"
  52420. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  52421. - exit_status=1
  52422. - fi
  52423. - done
  52424. - IFS="$save_ifs"
  52425. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  52426. fi
  52427. # FIXME: should reinstall the best remaining shared library.
  52428. ;;
  52429. @@ -6656,20 +8294,20 @@
  52430. *.lo)
  52431. # Possibly a libtool object, so verify it.
  52432. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52433. + if func_lalib_p "$file"; then
  52434. # Read the .lo file
  52435. - . $dir/$name
  52436. + func_source $dir/$name
  52437. # Add PIC object to the list of files to remove.
  52438. - if test -n "$pic_object" \
  52439. - && test "$pic_object" != none; then
  52440. + if test -n "$pic_object" &&
  52441. + test "$pic_object" != none; then
  52442. rmfiles="$rmfiles $dir/$pic_object"
  52443. fi
  52444. # Add non-PIC object to the list of files to remove.
  52445. - if test -n "$non_pic_object" \
  52446. - && test "$non_pic_object" != none; then
  52447. + if test -n "$non_pic_object" &&
  52448. + test "$non_pic_object" != none; then
  52449. rmfiles="$rmfiles $dir/$non_pic_object"
  52450. fi
  52451. fi
  52452. @@ -6680,17 +8318,26 @@
  52453. noexename=$name
  52454. case $file in
  52455. *.exe)
  52456. - file=`$echo $file|${SED} 's,.exe$,,'`
  52457. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  52458. + func_stripname '' '.exe' "$file"
  52459. + file=$func_stripname_result
  52460. + func_stripname '' '.exe' "$name"
  52461. + noexename=$func_stripname_result
  52462. # $file with .exe has already been added to rmfiles,
  52463. # add $file without .exe
  52464. rmfiles="$rmfiles $file"
  52465. ;;
  52466. esac
  52467. # Do a test to see if this is a libtool program.
  52468. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52469. - relink_command=
  52470. - . $dir/$noexename
  52471. + if func_ltwrapper_p "$file"; then
  52472. + if func_ltwrapper_executable_p "$file"; then
  52473. + func_ltwrapper_scriptname "$file"
  52474. + relink_command=
  52475. + func_source $func_ltwrapper_scriptname_result
  52476. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  52477. + else
  52478. + relink_command=
  52479. + func_source $dir/$noexename
  52480. + fi
  52481. # note $name still contains .exe if it was in $file originally
  52482. # as does the version of $file that was added into $rmfiles
  52483. @@ -6705,239 +8352,38 @@
  52484. fi
  52485. ;;
  52486. esac
  52487. - $show "$rm $rmfiles"
  52488. - $run $rm $rmfiles || exit_status=1
  52489. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  52490. done
  52491. objdir="$origobjdir"
  52492. # Try to remove the ${objdir}s in the directories where we deleted files
  52493. for dir in $rmdirs; do
  52494. if test -d "$dir"; then
  52495. - $show "rmdir $dir"
  52496. - $run rmdir $dir >/dev/null 2>&1
  52497. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  52498. fi
  52499. done
  52500. exit $exit_status
  52501. - ;;
  52502. +}
  52503. - "")
  52504. - $echo "$modename: you must specify a MODE" 1>&2
  52505. - $echo "$generic_help" 1>&2
  52506. - exit $EXIT_FAILURE
  52507. - ;;
  52508. - esac
  52509. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  52510. + func_mode_uninstall ${1+"$@"}
  52511. - if test -z "$exec_cmd"; then
  52512. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  52513. - $echo "$generic_help" 1>&2
  52514. - exit $EXIT_FAILURE
  52515. - fi
  52516. -fi # test -z "$show_help"
  52517. +test -z "$mode" && {
  52518. + help="$generic_help"
  52519. + func_fatal_help "you must specify a MODE"
  52520. +}
  52521. +
  52522. +test -z "$exec_cmd" && \
  52523. + func_fatal_help "invalid operation mode \`$mode'"
  52524. if test -n "$exec_cmd"; then
  52525. - eval exec $exec_cmd
  52526. + eval exec "$exec_cmd"
  52527. exit $EXIT_FAILURE
  52528. fi
  52529. -# We need to display help for each of the modes.
  52530. -case $mode in
  52531. -"") $echo \
  52532. -"Usage: $modename [OPTION]... [MODE-ARG]...
  52533. -
  52534. -Provide generalized library-building support services.
  52535. -
  52536. - --config show all configuration variables
  52537. - --debug enable verbose shell tracing
  52538. --n, --dry-run display commands without modifying any files
  52539. - --features display basic configuration information and exit
  52540. - --finish same as \`--mode=finish'
  52541. - --help display this help message and exit
  52542. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  52543. - --quiet same as \`--silent'
  52544. - --silent don't print informational messages
  52545. - --tag=TAG use configuration variables from tag TAG
  52546. - --version print version information
  52547. -
  52548. -MODE must be one of the following:
  52549. -
  52550. - clean remove files from the build directory
  52551. - compile compile a source file into a libtool object
  52552. - execute automatically set library path, then run a program
  52553. - finish complete the installation of libtool libraries
  52554. - install install libraries or executables
  52555. - link create a library or an executable
  52556. - uninstall remove libraries from an installed directory
  52557. -
  52558. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  52559. -a more detailed description of MODE.
  52560. -
  52561. -Report bugs to <bug-libtool@gnu.org>."
  52562. - exit $EXIT_SUCCESS
  52563. - ;;
  52564. -
  52565. -clean)
  52566. - $echo \
  52567. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  52568. -
  52569. -Remove files from the build directory.
  52570. -
  52571. -RM is the name of the program to use to delete files associated with each FILE
  52572. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  52573. -to RM.
  52574. -
  52575. -If FILE is a libtool library, object or program, all the files associated
  52576. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  52577. - ;;
  52578. -
  52579. -compile)
  52580. - $echo \
  52581. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  52582. -
  52583. -Compile a source file into a libtool library object.
  52584. -
  52585. -This mode accepts the following additional options:
  52586. -
  52587. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  52588. - -prefer-pic try to building PIC objects only
  52589. - -prefer-non-pic try to building non-PIC objects only
  52590. - -static always build a \`.o' file suitable for static linking
  52591. -
  52592. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  52593. -from the given SOURCEFILE.
  52594. -
  52595. -The output file name is determined by removing the directory component from
  52596. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  52597. -library object suffix, \`.lo'."
  52598. - ;;
  52599. -
  52600. -execute)
  52601. - $echo \
  52602. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  52603. -
  52604. -Automatically set library path, then run a program.
  52605. -
  52606. -This mode accepts the following additional options:
  52607. -
  52608. - -dlopen FILE add the directory containing FILE to the library path
  52609. -
  52610. -This mode sets the library path environment variable according to \`-dlopen'
  52611. -flags.
  52612. -
  52613. -If any of the ARGS are libtool executable wrappers, then they are translated
  52614. -into their corresponding uninstalled binary, and any of their required library
  52615. -directories are added to the library path.
  52616. -
  52617. -Then, COMMAND is executed, with ARGS as arguments."
  52618. - ;;
  52619. -
  52620. -finish)
  52621. - $echo \
  52622. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  52623. -
  52624. -Complete the installation of libtool libraries.
  52625. -
  52626. -Each LIBDIR is a directory that contains libtool libraries.
  52627. -
  52628. -The commands that this mode executes may require superuser privileges. Use
  52629. -the \`--dry-run' option if you just want to see what would be executed."
  52630. - ;;
  52631. -
  52632. -install)
  52633. - $echo \
  52634. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  52635. -
  52636. -Install executables or libraries.
  52637. -
  52638. -INSTALL-COMMAND is the installation command. The first component should be
  52639. -either the \`install' or \`cp' program.
  52640. -
  52641. -The rest of the components are interpreted as arguments to that command (only
  52642. -BSD-compatible install options are recognized)."
  52643. - ;;
  52644. -
  52645. -link)
  52646. - $echo \
  52647. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  52648. -
  52649. -Link object files or libraries together to form another library, or to
  52650. -create an executable program.
  52651. +exit $exit_status
  52652. -LINK-COMMAND is a command using the C compiler that you would use to create
  52653. -a program from several object files.
  52654. -
  52655. -The following components of LINK-COMMAND are treated specially:
  52656. -
  52657. - -all-static do not do any dynamic linking at all
  52658. - -avoid-version do not add a version suffix if possible
  52659. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  52660. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  52661. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  52662. - -export-symbols SYMFILE
  52663. - try to export only the symbols listed in SYMFILE
  52664. - -export-symbols-regex REGEX
  52665. - try to export only the symbols matching REGEX
  52666. - -LLIBDIR search LIBDIR for required installed libraries
  52667. - -lNAME OUTPUT-FILE requires the installed library libNAME
  52668. - -module build a library that can dlopened
  52669. - -no-fast-install disable the fast-install mode
  52670. - -no-install link a not-installable executable
  52671. - -no-undefined declare that a library does not refer to external symbols
  52672. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  52673. - -objectlist FILE Use a list of object files found in FILE to specify objects
  52674. - -precious-files-regex REGEX
  52675. - don't remove output files matching REGEX
  52676. - -release RELEASE specify package release information
  52677. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  52678. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  52679. - -static do not do any dynamic linking of uninstalled libtool libraries
  52680. - -static-libtool-libs
  52681. - do not do any dynamic linking of libtool libraries
  52682. - -version-info CURRENT[:REVISION[:AGE]]
  52683. - specify library version info [each variable defaults to 0]
  52684. -
  52685. -All other options (arguments beginning with \`-') are ignored.
  52686. -
  52687. -Every other argument is treated as a filename. Files ending in \`.la' are
  52688. -treated as uninstalled libtool libraries, other files are standard or library
  52689. -object files.
  52690. -
  52691. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  52692. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  52693. -required, except when creating a convenience library.
  52694. -
  52695. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  52696. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  52697. -
  52698. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  52699. -is created, otherwise an executable program is created."
  52700. - ;;
  52701. -
  52702. -uninstall)
  52703. - $echo \
  52704. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  52705. -
  52706. -Remove libraries from an installation directory.
  52707. -
  52708. -RM is the name of the program to use to delete files associated with each FILE
  52709. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  52710. -to RM.
  52711. -
  52712. -If FILE is a libtool library, all the files associated with it are deleted.
  52713. -Otherwise, only FILE itself is deleted using RM."
  52714. - ;;
  52715. -
  52716. -*)
  52717. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  52718. - $echo "$help" 1>&2
  52719. - exit $EXIT_FAILURE
  52720. - ;;
  52721. -esac
  52722. -
  52723. -$echo
  52724. -$echo "Try \`$modename --help' for more information about other modes."
  52725. -
  52726. -exit $?
  52727. # The TAGs below are defined such that we never get into a situation
  52728. # in which we disable both kinds of libraries. Given conflicting
  52729. @@ -6951,14 +8397,17 @@
  52730. # configuration. But we'll never go from static-only to shared-only.
  52731. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  52732. -disable_libs=shared
  52733. +build_libtool_libs=no
  52734. +build_old_libs=yes
  52735. # ### END LIBTOOL TAG CONFIG: disable-shared
  52736. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  52737. -disable_libs=static
  52738. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  52739. # ### END LIBTOOL TAG CONFIG: disable-static
  52740. # Local Variables:
  52741. # mode:shell-script
  52742. # sh-indentation:2
  52743. # End:
  52744. +# vi:sw=2
  52745. +
  52746. diff -Nur libnfnetlink-1.0.0.orig/Makefile.in libnfnetlink-1.0.0/Makefile.in
  52747. --- libnfnetlink-1.0.0.orig/Makefile.in 2009-06-22 19:48:36.000000000 +0200
  52748. +++ libnfnetlink-1.0.0/Makefile.in 2011-02-21 18:03:05.643553220 +0100
  52749. @@ -1,8 +1,9 @@
  52750. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  52751. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  52752. # @configure_input@
  52753. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  52754. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  52755. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  52756. +# Inc.
  52757. # This Makefile.in is free software; the Free Software Foundation
  52758. # gives unlimited permission to copy and/or distribute it,
  52759. # with or without modifications, as long as this notice is preserved.
  52760. @@ -16,8 +17,9 @@
  52761. VPATH = @srcdir@
  52762. pkgdatadir = $(datadir)/@PACKAGE@
  52763. -pkglibdir = $(libdir)/@PACKAGE@
  52764. pkgincludedir = $(includedir)/@PACKAGE@
  52765. +pkglibdir = $(libdir)/@PACKAGE@
  52766. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  52767. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  52768. install_sh_DATA = $(install_sh) -c -m 644
  52769. install_sh_PROGRAM = $(install_sh) -c
  52770. @@ -46,6 +48,7 @@
  52771. configure.lineno config.status.lineno
  52772. mkinstalldirs = $(install_sh) -d
  52773. CONFIG_CLEAN_FILES = libnfnetlink.pc
  52774. +CONFIG_CLEAN_VPATH_FILES =
  52775. SOURCES =
  52776. DIST_SOURCES =
  52777. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  52778. @@ -60,21 +63,63 @@
  52779. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  52780. *) f=$$p;; \
  52781. esac;
  52782. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  52783. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  52784. +am__install_max = 40
  52785. +am__nobase_strip_setup = \
  52786. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  52787. +am__nobase_strip = \
  52788. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  52789. +am__nobase_list = $(am__nobase_strip_setup); \
  52790. + for p in $$list; do echo "$$p $$p"; done | \
  52791. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  52792. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  52793. + if (++n[$$2] == $(am__install_max)) \
  52794. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  52795. + END { for (dir in files) print dir, files[dir] }'
  52796. +am__base_list = \
  52797. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  52798. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  52799. am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  52800. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  52801. DATA = $(pkgconfig_DATA)
  52802. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  52803. distclean-recursive maintainer-clean-recursive
  52804. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  52805. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  52806. + distdir dist dist-all distcheck
  52807. ETAGS = etags
  52808. CTAGS = ctags
  52809. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  52810. distdir = $(PACKAGE)-$(VERSION)
  52811. top_distdir = $(distdir)
  52812. am__remove_distdir = \
  52813. - { test ! -d $(distdir) \
  52814. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  52815. - && rm -fr $(distdir); }; }
  52816. + { test ! -d "$(distdir)" \
  52817. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  52818. + && rm -fr "$(distdir)"; }; }
  52819. +am__relativize = \
  52820. + dir0=`pwd`; \
  52821. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  52822. + sed_rest='s,^[^/]*/*,,'; \
  52823. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  52824. + sed_butlast='s,/*[^/]*$$,,'; \
  52825. + while test -n "$$dir1"; do \
  52826. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  52827. + if test "$$first" != "."; then \
  52828. + if test "$$first" = ".."; then \
  52829. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  52830. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  52831. + else \
  52832. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  52833. + if test "$$first2" = "$$first"; then \
  52834. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  52835. + else \
  52836. + dir2="../$$dir2"; \
  52837. + fi; \
  52838. + dir0="$$dir0"/"$$first"; \
  52839. + fi; \
  52840. + fi; \
  52841. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  52842. + done; \
  52843. + reldir="$$dir2"
  52844. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  52845. GZIP_ENV = --best
  52846. distuninstallcheck_listfiles = find . -type f -print
  52847. @@ -91,44 +136,46 @@
  52848. CFLAGS = @CFLAGS@
  52849. CPP = @CPP@
  52850. CPPFLAGS = @CPPFLAGS@
  52851. -CXX = @CXX@
  52852. -CXXCPP = @CXXCPP@
  52853. -CXXDEPMODE = @CXXDEPMODE@
  52854. -CXXFLAGS = @CXXFLAGS@
  52855. CYGPATH_W = @CYGPATH_W@
  52856. DEFS = @DEFS@
  52857. DEPDIR = @DEPDIR@
  52858. DSYMUTIL = @DSYMUTIL@
  52859. -ECHO = @ECHO@
  52860. +DUMPBIN = @DUMPBIN@
  52861. ECHO_C = @ECHO_C@
  52862. ECHO_N = @ECHO_N@
  52863. ECHO_T = @ECHO_T@
  52864. EGREP = @EGREP@
  52865. EXEEXT = @EXEEXT@
  52866. -F77 = @F77@
  52867. -FFLAGS = @FFLAGS@
  52868. +FGREP = @FGREP@
  52869. GREP = @GREP@
  52870. INSTALL = @INSTALL@
  52871. INSTALL_DATA = @INSTALL_DATA@
  52872. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  52873. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  52874. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  52875. +LD = @LD@
  52876. LDFLAGS = @LDFLAGS@
  52877. LIBOBJS = @LIBOBJS@
  52878. LIBS = @LIBS@
  52879. LIBTOOL = @LIBTOOL@
  52880. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  52881. +LIPO = @LIPO@
  52882. LN_S = @LN_S@
  52883. LTLIBOBJS = @LTLIBOBJS@
  52884. MAKEINFO = @MAKEINFO@
  52885. MKDIR_P = @MKDIR_P@
  52886. +NM = @NM@
  52887. NMEDIT = @NMEDIT@
  52888. +OBJDUMP = @OBJDUMP@
  52889. OBJEXT = @OBJEXT@
  52890. +OTOOL = @OTOOL@
  52891. +OTOOL64 = @OTOOL64@
  52892. PACKAGE = @PACKAGE@
  52893. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  52894. PACKAGE_NAME = @PACKAGE_NAME@
  52895. PACKAGE_STRING = @PACKAGE_STRING@
  52896. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  52897. +PACKAGE_URL = @PACKAGE_URL@
  52898. PACKAGE_VERSION = @PACKAGE_VERSION@
  52899. PATH_SEPARATOR = @PATH_SEPARATOR@
  52900. RANLIB = @RANLIB@
  52901. @@ -142,8 +189,7 @@
  52902. abs_top_builddir = @abs_top_builddir@
  52903. abs_top_srcdir = @abs_top_srcdir@
  52904. ac_ct_CC = @ac_ct_CC@
  52905. -ac_ct_CXX = @ac_ct_CXX@
  52906. -ac_ct_F77 = @ac_ct_F77@
  52907. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  52908. am__include = @am__include@
  52909. am__leading_dot = @am__leading_dot@
  52910. am__quote = @am__quote@
  52911. @@ -174,6 +220,7 @@
  52912. libexecdir = @libexecdir@
  52913. localedir = @localedir@
  52914. localstatedir = @localstatedir@
  52915. +lt_ECHO = @lt_ECHO@
  52916. mandir = @mandir@
  52917. mkdir_p = @mkdir_p@
  52918. oldincludedir = @oldincludedir@
  52919. @@ -190,6 +237,7 @@
  52920. target_cpu = @target_cpu@
  52921. target_os = @target_os@
  52922. target_vendor = @target_vendor@
  52923. +top_build_prefix = @top_build_prefix@
  52924. top_builddir = @top_builddir@
  52925. top_srcdir = @top_srcdir@
  52926. @@ -215,15 +263,15 @@
  52927. @for dep in $?; do \
  52928. case '$(am__configure_deps)' in \
  52929. *$$dep*) \
  52930. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  52931. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  52932. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  52933. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  52934. && exit 0; \
  52935. exit 1;; \
  52936. esac; \
  52937. done; \
  52938. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  52939. - cd $(top_srcdir) && \
  52940. - $(AUTOMAKE) --foreign Makefile
  52941. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  52942. + $(am__cd) $(top_srcdir) && \
  52943. + $(AUTOMAKE) --foreign Makefile
  52944. .PRECIOUS: Makefile
  52945. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  52946. @case '$?' in \
  52947. @@ -239,9 +287,10 @@
  52948. $(SHELL) ./config.status --recheck
  52949. $(top_srcdir)/configure: $(am__configure_deps)
  52950. - cd $(srcdir) && $(AUTOCONF)
  52951. + $(am__cd) $(srcdir) && $(AUTOCONF)
  52952. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  52953. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  52954. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  52955. +$(am__aclocal_m4_deps):
  52956. libnfnetlink.pc: $(top_builddir)/config.status $(srcdir)/libnfnetlink.pc.in
  52957. cd $(top_builddir) && $(SHELL) ./config.status $@
  52958. @@ -252,24 +301,27 @@
  52959. -rm -rf .libs _libs
  52960. distclean-libtool:
  52961. - -rm -f libtool
  52962. + -rm -f libtool config.lt
  52963. install-pkgconfigDATA: $(pkgconfig_DATA)
  52964. @$(NORMAL_INSTALL)
  52965. test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  52966. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  52967. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  52968. + for p in $$list; do \
  52969. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  52970. - f=$(am__strip_dir) \
  52971. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  52972. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  52973. + echo "$$d$$p"; \
  52974. + done | $(am__base_list) | \
  52975. + while read files; do \
  52976. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  52977. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  52978. done
  52979. uninstall-pkgconfigDATA:
  52980. @$(NORMAL_UNINSTALL)
  52981. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  52982. - f=$(am__strip_dir) \
  52983. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  52984. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  52985. - done
  52986. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  52987. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  52988. + test -n "$$files" || exit 0; \
  52989. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  52990. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  52991. # This directory's subdirectories are mostly independent; you can cd
  52992. # into them and run `make' without going through this Makefile.
  52993. @@ -278,7 +330,7 @@
  52994. # (which will cause the Makefiles to be regenerated when you run `make');
  52995. # (2) otherwise, pass the desired values on the `make' command line.
  52996. $(RECURSIVE_TARGETS):
  52997. - @failcom='exit 1'; \
  52998. + @fail= failcom='exit 1'; \
  52999. for f in x $$MAKEFLAGS; do \
  53000. case $$f in \
  53001. *=* | --[!k]*);; \
  53002. @@ -295,7 +347,7 @@
  53003. else \
  53004. local_target="$$target"; \
  53005. fi; \
  53006. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53007. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53008. || eval $$failcom; \
  53009. done; \
  53010. if test "$$dot_seen" = "no"; then \
  53011. @@ -303,7 +355,7 @@
  53012. fi; test -z "$$fail"
  53013. $(RECURSIVE_CLEAN_TARGETS):
  53014. - @failcom='exit 1'; \
  53015. + @fail= failcom='exit 1'; \
  53016. for f in x $$MAKEFLAGS; do \
  53017. case $$f in \
  53018. *=* | --[!k]*);; \
  53019. @@ -329,16 +381,16 @@
  53020. else \
  53021. local_target="$$target"; \
  53022. fi; \
  53023. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53024. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53025. || eval $$failcom; \
  53026. done && test -z "$$fail"
  53027. tags-recursive:
  53028. list='$(SUBDIRS)'; for subdir in $$list; do \
  53029. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  53030. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  53031. done
  53032. ctags-recursive:
  53033. list='$(SUBDIRS)'; for subdir in $$list; do \
  53034. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  53035. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  53036. done
  53037. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  53038. @@ -346,14 +398,14 @@
  53039. unique=`for i in $$list; do \
  53040. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53041. done | \
  53042. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  53043. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53044. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53045. mkid -fID $$unique
  53046. tags: TAGS
  53047. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53048. $(TAGS_FILES) $(LISP)
  53049. - tags=; \
  53050. + set x; \
  53051. here=`pwd`; \
  53052. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  53053. include_option=--etags-include; \
  53054. @@ -365,7 +417,7 @@
  53055. list='$(SUBDIRS)'; for subdir in $$list; do \
  53056. if test "$$subdir" = .; then :; else \
  53057. test ! -f $$subdir/TAGS || \
  53058. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  53059. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  53060. fi; \
  53061. done; \
  53062. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53063. @@ -374,36 +426,41 @@
  53064. done | \
  53065. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53066. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53067. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  53068. + shift; \
  53069. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  53070. test -n "$$unique" || unique=$$empty_fix; \
  53071. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53072. - $$tags $$unique; \
  53073. + if test $$# -gt 0; then \
  53074. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53075. + "$$@" $$unique; \
  53076. + else \
  53077. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53078. + $$unique; \
  53079. + fi; \
  53080. fi
  53081. ctags: CTAGS
  53082. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53083. $(TAGS_FILES) $(LISP)
  53084. - tags=; \
  53085. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53086. unique=`for i in $$list; do \
  53087. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53088. done | \
  53089. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53090. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53091. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  53092. + test -z "$(CTAGS_ARGS)$$unique" \
  53093. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  53094. - $$tags $$unique
  53095. + $$unique
  53096. GTAGS:
  53097. here=`$(am__cd) $(top_builddir) && pwd` \
  53098. - && cd $(top_srcdir) \
  53099. - && gtags -i $(GTAGS_ARGS) $$here
  53100. + && $(am__cd) $(top_srcdir) \
  53101. + && gtags -i $(GTAGS_ARGS) "$$here"
  53102. distclean-tags:
  53103. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  53104. distdir: $(DISTFILES)
  53105. $(am__remove_distdir)
  53106. - test -d $(distdir) || mkdir $(distdir)
  53107. + test -d "$(distdir)" || mkdir "$(distdir)"
  53108. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53109. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53110. list='$(DISTFILES)'; \
  53111. @@ -419,29 +476,44 @@
  53112. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  53113. if test -d $$d/$$file; then \
  53114. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  53115. + if test -d "$(distdir)/$$file"; then \
  53116. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53117. + fi; \
  53118. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  53119. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  53120. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  53121. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53122. fi; \
  53123. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  53124. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  53125. else \
  53126. - test -f $(distdir)/$$file \
  53127. - || cp -p $$d/$$file $(distdir)/$$file \
  53128. + test -f "$(distdir)/$$file" \
  53129. + || cp -p $$d/$$file "$(distdir)/$$file" \
  53130. || exit 1; \
  53131. fi; \
  53132. done
  53133. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53134. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53135. if test "$$subdir" = .; then :; else \
  53136. test -d "$(distdir)/$$subdir" \
  53137. || $(MKDIR_P) "$(distdir)/$$subdir" \
  53138. || exit 1; \
  53139. - distdir=`$(am__cd) $(distdir) && pwd`; \
  53140. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  53141. - (cd $$subdir && \
  53142. + fi; \
  53143. + done
  53144. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53145. + if test "$$subdir" = .; then :; else \
  53146. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  53147. + $(am__relativize); \
  53148. + new_distdir=$$reldir; \
  53149. + dir1=$$subdir; dir2="$(top_distdir)"; \
  53150. + $(am__relativize); \
  53151. + new_top_distdir=$$reldir; \
  53152. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  53153. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  53154. + ($(am__cd) $$subdir && \
  53155. $(MAKE) $(AM_MAKEFLAGS) \
  53156. - top_distdir="$$top_distdir" \
  53157. - distdir="$$distdir/$$subdir" \
  53158. + top_distdir="$$new_top_distdir" \
  53159. + distdir="$$new_distdir" \
  53160. am__remove_distdir=: \
  53161. am__skip_length_check=: \
  53162. + am__skip_mode_fix=: \
  53163. distdir) \
  53164. || exit 1; \
  53165. fi; \
  53166. @@ -449,11 +521,13 @@
  53167. $(MAKE) $(AM_MAKEFLAGS) \
  53168. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  53169. dist-hook
  53170. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  53171. + -test -n "$(am__skip_mode_fix)" \
  53172. + || find "$(distdir)" -type d ! -perm -755 \
  53173. + -exec chmod u+rwx,go+rx {} \; -o \
  53174. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  53175. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  53176. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  53177. - || chmod -R a+r $(distdir)
  53178. + || chmod -R a+r "$(distdir)"
  53179. dist-gzip: distdir
  53180. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  53181. $(am__remove_distdir)
  53182. @@ -465,6 +539,10 @@
  53183. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  53184. $(am__remove_distdir)
  53185. +dist-xz: distdir
  53186. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  53187. + $(am__remove_distdir)
  53188. +
  53189. dist-tarZ: distdir
  53190. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  53191. $(am__remove_distdir)
  53192. @@ -489,15 +567,17 @@
  53193. distcheck: dist
  53194. case '$(DIST_ARCHIVES)' in \
  53195. *.tar.gz*) \
  53196. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  53197. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  53198. *.tar.bz2*) \
  53199. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  53200. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  53201. *.tar.lzma*) \
  53202. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  53203. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  53204. + *.tar.xz*) \
  53205. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  53206. *.tar.Z*) \
  53207. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  53208. *.shar.gz*) \
  53209. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  53210. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  53211. *.zip*) \
  53212. unzip $(distdir).zip ;;\
  53213. esac
  53214. @@ -505,9 +585,11 @@
  53215. mkdir $(distdir)/_build
  53216. mkdir $(distdir)/_inst
  53217. chmod a-w $(distdir)
  53218. + test -d $(distdir)/_build || exit 0; \
  53219. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  53220. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  53221. - && cd $(distdir)/_build \
  53222. + && am__cwd=`pwd` \
  53223. + && $(am__cd) $(distdir)/_build \
  53224. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  53225. $(DISTCHECK_CONFIGURE_FLAGS) \
  53226. && $(MAKE) $(AM_MAKEFLAGS) \
  53227. @@ -529,13 +611,15 @@
  53228. && rm -rf "$$dc_destdir" \
  53229. && $(MAKE) $(AM_MAKEFLAGS) dist \
  53230. && rm -rf $(DIST_ARCHIVES) \
  53231. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  53232. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  53233. + && cd "$$am__cwd" \
  53234. + || exit 1
  53235. $(am__remove_distdir)
  53236. @(echo "$(distdir) archives ready for distribution: "; \
  53237. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  53238. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  53239. distuninstallcheck:
  53240. - @cd $(distuninstallcheck_dir) \
  53241. + @$(am__cd) '$(distuninstallcheck_dir)' \
  53242. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  53243. || { echo "ERROR: files left after uninstall:" ; \
  53244. if test -n "$(DESTDIR)"; then \
  53245. @@ -580,6 +664,7 @@
  53246. distclean-generic:
  53247. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  53248. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  53249. maintainer-clean-generic:
  53250. @echo "This command is intended for maintainers to use"
  53251. @@ -600,6 +685,8 @@
  53252. html: html-recursive
  53253. +html-am:
  53254. +
  53255. info: info-recursive
  53256. info-am:
  53257. @@ -608,18 +695,28 @@
  53258. install-dvi: install-dvi-recursive
  53259. +install-dvi-am:
  53260. +
  53261. install-exec-am:
  53262. install-html: install-html-recursive
  53263. +install-html-am:
  53264. +
  53265. install-info: install-info-recursive
  53266. +install-info-am:
  53267. +
  53268. install-man:
  53269. install-pdf: install-pdf-recursive
  53270. +install-pdf-am:
  53271. +
  53272. install-ps: install-ps-recursive
  53273. +install-ps-am:
  53274. +
  53275. installcheck-am:
  53276. maintainer-clean: maintainer-clean-recursive
  53277. @@ -642,25 +739,25 @@
  53278. uninstall-am: uninstall-pkgconfigDATA
  53279. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  53280. - install-strip
  53281. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  53282. + install-am install-strip tags-recursive
  53283. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  53284. all all-am am--refresh check check-am clean clean-generic \
  53285. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  53286. - dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-zip \
  53287. - distcheck distclean distclean-generic distclean-libtool \
  53288. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  53289. - dvi-am html html-am info info-am install install-am \
  53290. - install-data install-data-am install-dvi install-dvi-am \
  53291. - install-exec install-exec-am install-html install-html-am \
  53292. - install-info install-info-am install-man install-pdf \
  53293. - install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
  53294. - install-strip installcheck installcheck-am installdirs \
  53295. - installdirs-am maintainer-clean maintainer-clean-generic \
  53296. - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  53297. - ps ps-am tags tags-recursive uninstall uninstall-am \
  53298. - uninstall-pkgconfigDATA
  53299. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  53300. + dist-zip distcheck distclean distclean-generic \
  53301. + distclean-libtool distclean-tags distcleancheck distdir \
  53302. + distuninstallcheck dvi dvi-am html html-am info info-am \
  53303. + install install-am install-data install-data-am install-dvi \
  53304. + install-dvi-am install-exec install-exec-am install-html \
  53305. + install-html-am install-info install-info-am install-man \
  53306. + install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  53307. + install-ps-am install-strip installcheck installcheck-am \
  53308. + installdirs installdirs-am maintainer-clean \
  53309. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  53310. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  53311. + uninstall uninstall-am uninstall-pkgconfigDATA
  53312. $(OBJECTS): libtool
  53313. @@ -669,6 +766,7 @@
  53314. dist-hook:
  53315. rm -rf `find $(distdir)/debian -name .svn`
  53316. +
  53317. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  53318. # Otherwise a system limit (for SysV at least) may be exceeded.
  53319. .NOEXPORT:
  53320. diff -Nur libnfnetlink-1.0.0.orig/missing libnfnetlink-1.0.0/missing
  53321. --- libnfnetlink-1.0.0.orig/missing 2008-02-10 03:55:24.000000000 +0100
  53322. +++ libnfnetlink-1.0.0/missing 2011-02-21 18:03:05.203552605 +0100
  53323. @@ -1,10 +1,10 @@
  53324. #! /bin/sh
  53325. # Common stub for a few missing GNU programs while installing.
  53326. -scriptversion=2006-05-10.23
  53327. +scriptversion=2009-04-28.21; # UTC
  53328. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  53329. -# Free Software Foundation, Inc.
  53330. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  53331. +# 2008, 2009 Free Software Foundation, Inc.
  53332. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  53333. # This program is free software; you can redistribute it and/or modify
  53334. @@ -18,9 +18,7 @@
  53335. # GNU General Public License for more details.
  53336. # You should have received a copy of the GNU General Public License
  53337. -# along with this program; if not, write to the Free Software
  53338. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  53339. -# 02110-1301, USA.
  53340. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  53341. # As a special exception to the GNU General Public License, if you
  53342. # distribute this file as part of a program that contains a
  53343. @@ -89,6 +87,9 @@
  53344. tar try tar, gnutar, gtar, then tar without non-portable flags
  53345. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  53346. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  53347. +\`g' are ignored when checking the name.
  53348. +
  53349. Send bug reports to <bug-automake@gnu.org>."
  53350. exit $?
  53351. ;;
  53352. @@ -106,15 +107,22 @@
  53353. esac
  53354. +# normalize program name to check for.
  53355. +program=`echo "$1" | sed '
  53356. + s/^gnu-//; t
  53357. + s/^gnu//; t
  53358. + s/^g//; t'`
  53359. +
  53360. # Now exit if we have it, but it failed. Also exit now if we
  53361. # don't have it and --version was passed (most likely to detect
  53362. -# the program).
  53363. +# the program). This is about non-GNU programs, so use $1 not
  53364. +# $program.
  53365. case $1 in
  53366. - lex|yacc)
  53367. + lex*|yacc*)
  53368. # Not GNU programs, they don't have --version.
  53369. ;;
  53370. - tar)
  53371. + tar*)
  53372. if test -n "$run"; then
  53373. echo 1>&2 "ERROR: \`tar' requires --run"
  53374. exit 1
  53375. @@ -138,7 +146,7 @@
  53376. # If it does not exist, or fails to run (possibly an outdated version),
  53377. # try to emulate it.
  53378. -case $1 in
  53379. +case $program in
  53380. aclocal*)
  53381. echo 1>&2 "\
  53382. WARNING: \`$1' is $msg. You should only need it if
  53383. @@ -148,7 +156,7 @@
  53384. touch aclocal.m4
  53385. ;;
  53386. - autoconf)
  53387. + autoconf*)
  53388. echo 1>&2 "\
  53389. WARNING: \`$1' is $msg. You should only need it if
  53390. you modified \`${configure_ac}'. You might want to install the
  53391. @@ -157,7 +165,7 @@
  53392. touch configure
  53393. ;;
  53394. - autoheader)
  53395. + autoheader*)
  53396. echo 1>&2 "\
  53397. WARNING: \`$1' is $msg. You should only need it if
  53398. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  53399. @@ -187,7 +195,7 @@
  53400. while read f; do touch "$f"; done
  53401. ;;
  53402. - autom4te)
  53403. + autom4te*)
  53404. echo 1>&2 "\
  53405. WARNING: \`$1' is needed, but is $msg.
  53406. You might have modified some files without having the
  53407. @@ -210,7 +218,7 @@
  53408. fi
  53409. ;;
  53410. - bison|yacc)
  53411. + bison*|yacc*)
  53412. echo 1>&2 "\
  53413. WARNING: \`$1' $msg. You should only need it if
  53414. you modified a \`.y' file. You may need the \`Bison' package
  53415. @@ -240,7 +248,7 @@
  53416. fi
  53417. ;;
  53418. - lex|flex)
  53419. + lex*|flex*)
  53420. echo 1>&2 "\
  53421. WARNING: \`$1' is $msg. You should only need it if
  53422. you modified a \`.l' file. You may need the \`Flex' package
  53423. @@ -263,7 +271,7 @@
  53424. fi
  53425. ;;
  53426. - help2man)
  53427. + help2man*)
  53428. echo 1>&2 "\
  53429. WARNING: \`$1' is $msg. You should only need it if
  53430. you modified a dependency of a manual page. You may need the
  53431. @@ -277,11 +285,11 @@
  53432. else
  53433. test -z "$file" || exec >$file
  53434. echo ".ab help2man is required to generate this page"
  53435. - exit 1
  53436. + exit $?
  53437. fi
  53438. ;;
  53439. - makeinfo)
  53440. + makeinfo*)
  53441. echo 1>&2 "\
  53442. WARNING: \`$1' is $msg. You should only need it if
  53443. you modified a \`.texi' or \`.texinfo' file, or any other file
  53444. @@ -310,7 +318,7 @@
  53445. touch $file
  53446. ;;
  53447. - tar)
  53448. + tar*)
  53449. shift
  53450. # We have already tried tar in the generic part.
  53451. @@ -363,5 +371,6 @@
  53452. # eval: (add-hook 'write-file-hooks 'time-stamp)
  53453. # time-stamp-start: "scriptversion="
  53454. # time-stamp-format: "%:y-%02m-%02d.%02H"
  53455. -# time-stamp-end: "$"
  53456. +# time-stamp-time-zone: "UTC"
  53457. +# time-stamp-end: "; # UTC"
  53458. # End:
  53459. diff -Nur libnfnetlink-1.0.0.orig/src/Makefile.in libnfnetlink-1.0.0/src/Makefile.in
  53460. --- libnfnetlink-1.0.0.orig/src/Makefile.in 2009-06-22 19:48:36.000000000 +0200
  53461. +++ libnfnetlink-1.0.0/src/Makefile.in 2011-02-21 18:03:05.483559126 +0100
  53462. @@ -1,8 +1,9 @@
  53463. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  53464. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  53465. # @configure_input@
  53466. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  53467. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  53468. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  53469. +# Inc.
  53470. # This Makefile.in is free software; the Free Software Foundation
  53471. # gives unlimited permission to copy and/or distribute it,
  53472. # with or without modifications, as long as this notice is preserved.
  53473. @@ -17,8 +18,9 @@
  53474. VPATH = @srcdir@
  53475. pkgdatadir = $(datadir)/@PACKAGE@
  53476. -pkglibdir = $(libdir)/@PACKAGE@
  53477. pkgincludedir = $(includedir)/@PACKAGE@
  53478. +pkglibdir = $(libdir)/@PACKAGE@
  53479. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  53480. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  53481. install_sh_DATA = $(install_sh) -c -m 644
  53482. install_sh_PROGRAM = $(install_sh) -c
  53483. @@ -43,14 +45,29 @@
  53484. $(ACLOCAL_M4)
  53485. mkinstalldirs = $(install_sh) -d
  53486. CONFIG_CLEAN_FILES =
  53487. +CONFIG_CLEAN_VPATH_FILES =
  53488. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  53489. am__vpath_adj = case $$p in \
  53490. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  53491. *) f=$$p;; \
  53492. esac;
  53493. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  53494. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  53495. +am__install_max = 40
  53496. +am__nobase_strip_setup = \
  53497. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  53498. +am__nobase_strip = \
  53499. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  53500. +am__nobase_list = $(am__nobase_strip_setup); \
  53501. + for p in $$list; do echo "$$p $$p"; done | \
  53502. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  53503. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  53504. + if (++n[$$2] == $(am__install_max)) \
  53505. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  53506. + END { for (dir in files) print dir, files[dir] }'
  53507. +am__base_list = \
  53508. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  53509. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  53510. am__installdirs = "$(DESTDIR)$(libdir)"
  53511. -libLTLIBRARIES_INSTALL = $(INSTALL)
  53512. LTLIBRARIES = $(lib_LTLIBRARIES)
  53513. libnfnetlink_la_LIBADD =
  53514. am_libnfnetlink_la_OBJECTS = libnfnetlink.lo iftable.lo rtnl.lo
  53515. @@ -61,6 +78,7 @@
  53516. DEFAULT_INCLUDES = -I.@am__isrc@
  53517. depcomp = $(SHELL) $(top_srcdir)/depcomp
  53518. am__depfiles_maybe = depfiles
  53519. +am__mv = mv -f
  53520. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  53521. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  53522. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  53523. @@ -88,44 +106,46 @@
  53524. CFLAGS = @CFLAGS@
  53525. CPP = @CPP@
  53526. CPPFLAGS = @CPPFLAGS@
  53527. -CXX = @CXX@
  53528. -CXXCPP = @CXXCPP@
  53529. -CXXDEPMODE = @CXXDEPMODE@
  53530. -CXXFLAGS = @CXXFLAGS@
  53531. CYGPATH_W = @CYGPATH_W@
  53532. DEFS = @DEFS@
  53533. DEPDIR = @DEPDIR@
  53534. DSYMUTIL = @DSYMUTIL@
  53535. -ECHO = @ECHO@
  53536. +DUMPBIN = @DUMPBIN@
  53537. ECHO_C = @ECHO_C@
  53538. ECHO_N = @ECHO_N@
  53539. ECHO_T = @ECHO_T@
  53540. EGREP = @EGREP@
  53541. EXEEXT = @EXEEXT@
  53542. -F77 = @F77@
  53543. -FFLAGS = @FFLAGS@
  53544. +FGREP = @FGREP@
  53545. GREP = @GREP@
  53546. INSTALL = @INSTALL@
  53547. INSTALL_DATA = @INSTALL_DATA@
  53548. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  53549. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  53550. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  53551. +LD = @LD@
  53552. LDFLAGS = @LDFLAGS@
  53553. LIBOBJS = @LIBOBJS@
  53554. LIBS =
  53555. LIBTOOL = @LIBTOOL@
  53556. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  53557. +LIPO = @LIPO@
  53558. LN_S = @LN_S@
  53559. LTLIBOBJS = @LTLIBOBJS@
  53560. MAKEINFO = @MAKEINFO@
  53561. MKDIR_P = @MKDIR_P@
  53562. +NM = @NM@
  53563. NMEDIT = @NMEDIT@
  53564. +OBJDUMP = @OBJDUMP@
  53565. OBJEXT = @OBJEXT@
  53566. +OTOOL = @OTOOL@
  53567. +OTOOL64 = @OTOOL64@
  53568. PACKAGE = @PACKAGE@
  53569. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  53570. PACKAGE_NAME = @PACKAGE_NAME@
  53571. PACKAGE_STRING = @PACKAGE_STRING@
  53572. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  53573. +PACKAGE_URL = @PACKAGE_URL@
  53574. PACKAGE_VERSION = @PACKAGE_VERSION@
  53575. PATH_SEPARATOR = @PATH_SEPARATOR@
  53576. RANLIB = @RANLIB@
  53577. @@ -139,8 +159,7 @@
  53578. abs_top_builddir = @abs_top_builddir@
  53579. abs_top_srcdir = @abs_top_srcdir@
  53580. ac_ct_CC = @ac_ct_CC@
  53581. -ac_ct_CXX = @ac_ct_CXX@
  53582. -ac_ct_F77 = @ac_ct_F77@
  53583. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  53584. am__include = @am__include@
  53585. am__leading_dot = @am__leading_dot@
  53586. am__quote = @am__quote@
  53587. @@ -171,6 +190,7 @@
  53588. libexecdir = @libexecdir@
  53589. localedir = @localedir@
  53590. localstatedir = @localstatedir@
  53591. +lt_ECHO = @lt_ECHO@
  53592. mandir = @mandir@
  53593. mkdir_p = @mkdir_p@
  53594. oldincludedir = @oldincludedir@
  53595. @@ -187,6 +207,7 @@
  53596. target_cpu = @target_cpu@
  53597. target_os = @target_os@
  53598. target_vendor = @target_vendor@
  53599. +top_build_prefix = @top_build_prefix@
  53600. top_builddir = @top_builddir@
  53601. top_srcdir = @top_srcdir@
  53602. @@ -211,14 +232,14 @@
  53603. @for dep in $?; do \
  53604. case '$(am__configure_deps)' in \
  53605. *$$dep*) \
  53606. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  53607. - && exit 0; \
  53608. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  53609. + && { if test -f $@; then exit 0; else break; fi; }; \
  53610. exit 1;; \
  53611. esac; \
  53612. done; \
  53613. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  53614. - cd $(top_srcdir) && \
  53615. - $(AUTOMAKE) --gnu src/Makefile
  53616. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  53617. + $(am__cd) $(top_srcdir) && \
  53618. + $(AUTOMAKE) --gnu src/Makefile
  53619. .PRECIOUS: Makefile
  53620. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  53621. @case '$?' in \
  53622. @@ -236,23 +257,28 @@
  53623. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53624. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  53625. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53626. +$(am__aclocal_m4_deps):
  53627. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  53628. @$(NORMAL_INSTALL)
  53629. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  53630. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  53631. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  53632. + list2=; for p in $$list; do \
  53633. if test -f $$p; then \
  53634. - f=$(am__strip_dir) \
  53635. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  53636. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  53637. + list2="$$list2 $$p"; \
  53638. else :; fi; \
  53639. - done
  53640. + done; \
  53641. + test -z "$$list2" || { \
  53642. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  53643. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  53644. + }
  53645. uninstall-libLTLIBRARIES:
  53646. @$(NORMAL_UNINSTALL)
  53647. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  53648. - p=$(am__strip_dir) \
  53649. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  53650. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  53651. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  53652. + for p in $$list; do \
  53653. + $(am__strip_dir) \
  53654. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  53655. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  53656. done
  53657. clean-libLTLIBRARIES:
  53658. @@ -278,21 +304,21 @@
  53659. .c.o:
  53660. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53661. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53662. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53663. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53664. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53665. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  53666. .c.obj:
  53667. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  53668. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53669. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53670. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53671. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53672. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  53673. .c.lo:
  53674. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53675. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  53676. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  53677. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  53678. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53679. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  53680. @@ -308,14 +334,14 @@
  53681. unique=`for i in $$list; do \
  53682. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53683. done | \
  53684. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  53685. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53686. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53687. mkid -fID $$unique
  53688. tags: TAGS
  53689. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53690. $(TAGS_FILES) $(LISP)
  53691. - tags=; \
  53692. + set x; \
  53693. here=`pwd`; \
  53694. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53695. unique=`for i in $$list; do \
  53696. @@ -323,29 +349,34 @@
  53697. done | \
  53698. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53699. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53700. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  53701. + shift; \
  53702. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  53703. test -n "$$unique" || unique=$$empty_fix; \
  53704. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53705. - $$tags $$unique; \
  53706. + if test $$# -gt 0; then \
  53707. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53708. + "$$@" $$unique; \
  53709. + else \
  53710. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53711. + $$unique; \
  53712. + fi; \
  53713. fi
  53714. ctags: CTAGS
  53715. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53716. $(TAGS_FILES) $(LISP)
  53717. - tags=; \
  53718. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53719. unique=`for i in $$list; do \
  53720. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53721. done | \
  53722. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53723. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53724. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  53725. + test -z "$(CTAGS_ARGS)$$unique" \
  53726. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  53727. - $$tags $$unique
  53728. + $$unique
  53729. GTAGS:
  53730. here=`$(am__cd) $(top_builddir) && pwd` \
  53731. - && cd $(top_srcdir) \
  53732. - && gtags -i $(GTAGS_ARGS) $$here
  53733. + && $(am__cd) $(top_srcdir) \
  53734. + && gtags -i $(GTAGS_ARGS) "$$here"
  53735. distclean-tags:
  53736. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  53737. @@ -366,13 +397,17 @@
  53738. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  53739. if test -d $$d/$$file; then \
  53740. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  53741. + if test -d "$(distdir)/$$file"; then \
  53742. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53743. + fi; \
  53744. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  53745. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  53746. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  53747. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53748. fi; \
  53749. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  53750. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  53751. else \
  53752. - test -f $(distdir)/$$file \
  53753. - || cp -p $$d/$$file $(distdir)/$$file \
  53754. + test -f "$(distdir)/$$file" \
  53755. + || cp -p $$d/$$file "$(distdir)/$$file" \
  53756. || exit 1; \
  53757. fi; \
  53758. done
  53759. @@ -403,6 +438,7 @@
  53760. distclean-generic:
  53761. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  53762. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  53763. maintainer-clean-generic:
  53764. @echo "This command is intended for maintainers to use"
  53765. @@ -424,6 +460,8 @@
  53766. html: html-am
  53767. +html-am:
  53768. +
  53769. info: info-am
  53770. info-am:
  53771. @@ -432,18 +470,28 @@
  53772. install-dvi: install-dvi-am
  53773. +install-dvi-am:
  53774. +
  53775. install-exec-am: install-libLTLIBRARIES
  53776. install-html: install-html-am
  53777. +install-html-am:
  53778. +
  53779. install-info: install-info-am
  53780. +install-info-am:
  53781. +
  53782. install-man:
  53783. install-pdf: install-pdf-am
  53784. +install-pdf-am:
  53785. +
  53786. install-ps: install-ps-am
  53787. +install-ps-am:
  53788. +
  53789. installcheck-am:
  53790. maintainer-clean: maintainer-clean-am
  53791. @@ -482,6 +530,7 @@
  53792. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  53793. tags uninstall uninstall-am uninstall-libLTLIBRARIES
  53794. +
  53795. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  53796. # Otherwise a system limit (for SysV at least) may be exceeded.
  53797. .NOEXPORT:
  53798. diff -Nur libnfnetlink-1.0.0.orig/utils/Makefile.in libnfnetlink-1.0.0/utils/Makefile.in
  53799. --- libnfnetlink-1.0.0.orig/utils/Makefile.in 2009-06-22 19:48:36.000000000 +0200
  53800. +++ libnfnetlink-1.0.0/utils/Makefile.in 2011-02-21 18:03:05.573553457 +0100
  53801. @@ -1,8 +1,9 @@
  53802. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  53803. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  53804. # @configure_input@
  53805. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  53806. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  53807. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  53808. +# Inc.
  53809. # This Makefile.in is free software; the Free Software Foundation
  53810. # gives unlimited permission to copy and/or distribute it,
  53811. # with or without modifications, as long as this notice is preserved.
  53812. @@ -15,8 +16,9 @@
  53813. @SET_MAKE@
  53814. VPATH = @srcdir@
  53815. pkgdatadir = $(datadir)/@PACKAGE@
  53816. -pkglibdir = $(libdir)/@PACKAGE@
  53817. pkgincludedir = $(includedir)/@PACKAGE@
  53818. +pkglibdir = $(libdir)/@PACKAGE@
  53819. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  53820. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  53821. install_sh_DATA = $(install_sh) -c -m 644
  53822. install_sh_PROGRAM = $(install_sh) -c
  53823. @@ -42,6 +44,7 @@
  53824. $(ACLOCAL_M4)
  53825. mkinstalldirs = $(install_sh) -d
  53826. CONFIG_CLEAN_FILES =
  53827. +CONFIG_CLEAN_VPATH_FILES =
  53828. am_iftest_OBJECTS = iftest.$(OBJEXT)
  53829. iftest_OBJECTS = $(am_iftest_OBJECTS)
  53830. iftest_DEPENDENCIES = ../src/libnfnetlink.la
  53831. @@ -51,6 +54,7 @@
  53832. DEFAULT_INCLUDES = -I.@am__isrc@
  53833. depcomp = $(SHELL) $(top_srcdir)/depcomp
  53834. am__depfiles_maybe = depfiles
  53835. +am__mv = mv -f
  53836. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  53837. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  53838. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  53839. @@ -77,44 +81,46 @@
  53840. CFLAGS = @CFLAGS@
  53841. CPP = @CPP@
  53842. CPPFLAGS = @CPPFLAGS@
  53843. -CXX = @CXX@
  53844. -CXXCPP = @CXXCPP@
  53845. -CXXDEPMODE = @CXXDEPMODE@
  53846. -CXXFLAGS = @CXXFLAGS@
  53847. CYGPATH_W = @CYGPATH_W@
  53848. DEFS = @DEFS@
  53849. DEPDIR = @DEPDIR@
  53850. DSYMUTIL = @DSYMUTIL@
  53851. -ECHO = @ECHO@
  53852. +DUMPBIN = @DUMPBIN@
  53853. ECHO_C = @ECHO_C@
  53854. ECHO_N = @ECHO_N@
  53855. ECHO_T = @ECHO_T@
  53856. EGREP = @EGREP@
  53857. EXEEXT = @EXEEXT@
  53858. -F77 = @F77@
  53859. -FFLAGS = @FFLAGS@
  53860. +FGREP = @FGREP@
  53861. GREP = @GREP@
  53862. INSTALL = @INSTALL@
  53863. INSTALL_DATA = @INSTALL_DATA@
  53864. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  53865. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  53866. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  53867. +LD = @LD@
  53868. LDFLAGS = @LDFLAGS@
  53869. LIBOBJS = @LIBOBJS@
  53870. LIBS = @LIBS@
  53871. LIBTOOL = @LIBTOOL@
  53872. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  53873. +LIPO = @LIPO@
  53874. LN_S = @LN_S@
  53875. LTLIBOBJS = @LTLIBOBJS@
  53876. MAKEINFO = @MAKEINFO@
  53877. MKDIR_P = @MKDIR_P@
  53878. +NM = @NM@
  53879. NMEDIT = @NMEDIT@
  53880. +OBJDUMP = @OBJDUMP@
  53881. OBJEXT = @OBJEXT@
  53882. +OTOOL = @OTOOL@
  53883. +OTOOL64 = @OTOOL64@
  53884. PACKAGE = @PACKAGE@
  53885. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  53886. PACKAGE_NAME = @PACKAGE_NAME@
  53887. PACKAGE_STRING = @PACKAGE_STRING@
  53888. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  53889. +PACKAGE_URL = @PACKAGE_URL@
  53890. PACKAGE_VERSION = @PACKAGE_VERSION@
  53891. PATH_SEPARATOR = @PATH_SEPARATOR@
  53892. RANLIB = @RANLIB@
  53893. @@ -128,8 +134,7 @@
  53894. abs_top_builddir = @abs_top_builddir@
  53895. abs_top_srcdir = @abs_top_srcdir@
  53896. ac_ct_CC = @ac_ct_CC@
  53897. -ac_ct_CXX = @ac_ct_CXX@
  53898. -ac_ct_F77 = @ac_ct_F77@
  53899. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  53900. am__include = @am__include@
  53901. am__leading_dot = @am__leading_dot@
  53902. am__quote = @am__quote@
  53903. @@ -160,6 +165,7 @@
  53904. libexecdir = @libexecdir@
  53905. localedir = @localedir@
  53906. localstatedir = @localstatedir@
  53907. +lt_ECHO = @lt_ECHO@
  53908. mandir = @mandir@
  53909. mkdir_p = @mkdir_p@
  53910. oldincludedir = @oldincludedir@
  53911. @@ -176,6 +182,7 @@
  53912. target_cpu = @target_cpu@
  53913. target_os = @target_os@
  53914. target_vendor = @target_vendor@
  53915. +top_build_prefix = @top_build_prefix@
  53916. top_builddir = @top_builddir@
  53917. top_srcdir = @top_srcdir@
  53918. @@ -196,14 +203,14 @@
  53919. @for dep in $?; do \
  53920. case '$(am__configure_deps)' in \
  53921. *$$dep*) \
  53922. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  53923. - && exit 0; \
  53924. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  53925. + && { if test -f $@; then exit 0; else break; fi; }; \
  53926. exit 1;; \
  53927. esac; \
  53928. done; \
  53929. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/Makefile'; \
  53930. - cd $(top_srcdir) && \
  53931. - $(AUTOMAKE) --gnu utils/Makefile
  53932. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/Makefile'; \
  53933. + $(am__cd) $(top_srcdir) && \
  53934. + $(AUTOMAKE) --gnu utils/Makefile
  53935. .PRECIOUS: Makefile
  53936. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  53937. @case '$?' in \
  53938. @@ -221,13 +228,16 @@
  53939. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53940. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  53941. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53942. +$(am__aclocal_m4_deps):
  53943. clean-checkPROGRAMS:
  53944. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  53945. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  53946. - echo " rm -f $$p $$f"; \
  53947. - rm -f $$p $$f ; \
  53948. - done
  53949. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  53950. + echo " rm -f" $$list; \
  53951. + rm -f $$list || exit $$?; \
  53952. + test -n "$(EXEEXT)" || exit 0; \
  53953. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  53954. + echo " rm -f" $$list; \
  53955. + rm -f $$list
  53956. iftest$(EXEEXT): $(iftest_OBJECTS) $(iftest_DEPENDENCIES)
  53957. @rm -f iftest$(EXEEXT)
  53958. $(iftest_LINK) $(iftest_OBJECTS) $(iftest_LDADD) $(LIBS)
  53959. @@ -242,21 +252,21 @@
  53960. .c.o:
  53961. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53962. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53963. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53964. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53965. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53966. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  53967. .c.obj:
  53968. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  53969. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53970. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53971. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53972. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53973. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  53974. .c.lo:
  53975. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53976. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  53977. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  53978. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  53979. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53980. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  53981. @@ -272,14 +282,14 @@
  53982. unique=`for i in $$list; do \
  53983. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53984. done | \
  53985. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  53986. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53987. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53988. mkid -fID $$unique
  53989. tags: TAGS
  53990. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53991. $(TAGS_FILES) $(LISP)
  53992. - tags=; \
  53993. + set x; \
  53994. here=`pwd`; \
  53995. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53996. unique=`for i in $$list; do \
  53997. @@ -287,29 +297,34 @@
  53998. done | \
  53999. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  54000. END { if (nonempty) { for (i in files) print i; }; }'`; \
  54001. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  54002. + shift; \
  54003. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  54004. test -n "$$unique" || unique=$$empty_fix; \
  54005. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54006. - $$tags $$unique; \
  54007. + if test $$# -gt 0; then \
  54008. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54009. + "$$@" $$unique; \
  54010. + else \
  54011. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54012. + $$unique; \
  54013. + fi; \
  54014. fi
  54015. ctags: CTAGS
  54016. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  54017. $(TAGS_FILES) $(LISP)
  54018. - tags=; \
  54019. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  54020. unique=`for i in $$list; do \
  54021. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  54022. done | \
  54023. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  54024. END { if (nonempty) { for (i in files) print i; }; }'`; \
  54025. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  54026. + test -z "$(CTAGS_ARGS)$$unique" \
  54027. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  54028. - $$tags $$unique
  54029. + $$unique
  54030. GTAGS:
  54031. here=`$(am__cd) $(top_builddir) && pwd` \
  54032. - && cd $(top_srcdir) \
  54033. - && gtags -i $(GTAGS_ARGS) $$here
  54034. + && $(am__cd) $(top_srcdir) \
  54035. + && gtags -i $(GTAGS_ARGS) "$$here"
  54036. distclean-tags:
  54037. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  54038. @@ -330,13 +345,17 @@
  54039. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  54040. if test -d $$d/$$file; then \
  54041. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  54042. + if test -d "$(distdir)/$$file"; then \
  54043. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54044. + fi; \
  54045. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  54046. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  54047. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  54048. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54049. fi; \
  54050. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  54051. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  54052. else \
  54053. - test -f $(distdir)/$$file \
  54054. - || cp -p $$d/$$file $(distdir)/$$file \
  54055. + test -f "$(distdir)/$$file" \
  54056. + || cp -p $$d/$$file "$(distdir)/$$file" \
  54057. || exit 1; \
  54058. fi; \
  54059. done
  54060. @@ -365,6 +384,7 @@
  54061. distclean-generic:
  54062. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  54063. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  54064. maintainer-clean-generic:
  54065. @echo "This command is intended for maintainers to use"
  54066. @@ -386,6 +406,8 @@
  54067. html: html-am
  54068. +html-am:
  54069. +
  54070. info: info-am
  54071. info-am:
  54072. @@ -394,18 +416,28 @@
  54073. install-dvi: install-dvi-am
  54074. +install-dvi-am:
  54075. +
  54076. install-exec-am:
  54077. install-html: install-html-am
  54078. +install-html-am:
  54079. +
  54080. install-info: install-info-am
  54081. +install-info-am:
  54082. +
  54083. install-man:
  54084. install-pdf: install-pdf-am
  54085. +install-pdf-am:
  54086. +
  54087. install-ps: install-ps-am
  54088. +install-ps-am:
  54089. +
  54090. installcheck-am:
  54091. maintainer-clean: maintainer-clean-am
  54092. @@ -428,7 +460,7 @@
  54093. uninstall-am:
  54094. -.MAKE: install-am install-strip
  54095. +.MAKE: check-am install-am install-strip
  54096. .PHONY: CTAGS GTAGS all all-am check check-am clean \
  54097. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  54098. @@ -444,6 +476,7 @@
  54099. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  54100. tags uninstall uninstall-am
  54101. +
  54102. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  54103. # Otherwise a system limit (for SysV at least) may be exceeded.
  54104. .NOEXPORT: