autotool.patch 699 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349
  1. diff -Nur opensc-0.11.13.orig/Makefile.in opensc-0.11.13/Makefile.in
  2. --- opensc-0.11.13.orig/Makefile.in 2010-02-16 10:32:19.000000000 +0100
  3. +++ opensc-0.11.13/Makefile.in 2011-01-19 18:20:22.000000000 +0100
  4. @@ -1,4 +1,4 @@
  5. -# Makefile.in generated by automake 1.11 from Makefile.am.
  6. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7. # @configure_input@
  8. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  9. @@ -180,6 +180,7 @@
  10. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  11. LTLIB_LIBS = @LTLIB_LIBS@
  12. MAKEINFO = @MAKEINFO@
  13. +MANIFEST_TOOL = @MANIFEST_TOOL@
  14. MKDIR_P = @MKDIR_P@
  15. NM = @NM@
  16. NMEDIT = @NMEDIT@
  17. @@ -220,6 +221,8 @@
  18. PCSC_CFLAGS = @PCSC_CFLAGS@
  19. PCSC_LIBS = @PCSC_LIBS@
  20. PKG_CONFIG = @PKG_CONFIG@
  21. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  22. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  23. PTHREAD_CC = @PTHREAD_CC@
  24. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  25. PTHREAD_LIBS = @PTHREAD_LIBS@
  26. @@ -244,6 +247,7 @@
  27. abs_srcdir = @abs_srcdir@
  28. abs_top_builddir = @abs_top_builddir@
  29. abs_top_srcdir = @abs_top_srcdir@
  30. +ac_ct_AR = @ac_ct_AR@
  31. ac_ct_CC = @ac_ct_CC@
  32. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  33. acx_pthread_config = @acx_pthread_config@
  34. @@ -277,7 +281,6 @@
  35. libexecdir = @libexecdir@
  36. localedir = @localedir@
  37. localstatedir = @localstatedir@
  38. -lt_ECHO = @lt_ECHO@
  39. mandir = @mandir@
  40. mkdir_p = @mkdir_p@
  41. oldincludedir = @oldincludedir@
  42. @@ -313,7 +316,7 @@
  43. $(srcdir)/packaged
  44. EXTRA_DIST = Makefile.mak svnignore
  45. -SUBDIRS = etc src win32 doc
  46. +SUBDIRS = etc src win32
  47. dist_noinst_SCRIPTS = bootstrap
  48. dist_noinst_DATA = README \
  49. solaris/Makefile solaris/README solaris/checkinstall.in \
  50. @@ -412,7 +415,7 @@
  51. # (which will cause the Makefiles to be regenerated when you run `make');
  52. # (2) otherwise, pass the desired values on the `make' command line.
  53. $(RECURSIVE_TARGETS):
  54. - @failcom='exit 1'; \
  55. + @fail= failcom='exit 1'; \
  56. for f in x $$MAKEFLAGS; do \
  57. case $$f in \
  58. *=* | --[!k]*);; \
  59. @@ -437,7 +440,7 @@
  60. fi; test -z "$$fail"
  61. $(RECURSIVE_CLEAN_TARGETS):
  62. - @failcom='exit 1'; \
  63. + @fail= failcom='exit 1'; \
  64. for f in x $$MAKEFLAGS; do \
  65. case $$f in \
  66. *=* | --[!k]*);; \
  67. @@ -604,7 +607,8 @@
  68. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  69. dist-hook
  70. -test -n "$(am__skip_mode_fix)" \
  71. - || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  72. + || find "$(distdir)" -type d ! -perm -755 \
  73. + -exec chmod u+rwx,go+rx {} \; -o \
  74. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  75. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  76. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  77. @@ -648,17 +652,17 @@
  78. distcheck: dist
  79. case '$(DIST_ARCHIVES)' in \
  80. *.tar.gz*) \
  81. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  82. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  83. *.tar.bz2*) \
  84. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  85. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  86. *.tar.lzma*) \
  87. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  88. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  89. *.tar.xz*) \
  90. xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  91. *.tar.Z*) \
  92. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  93. *.shar.gz*) \
  94. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  95. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  96. *.zip*) \
  97. unzip $(distdir).zip ;;\
  98. esac
  99. diff -Nur opensc-0.11.13.orig/aclocal.m4 opensc-0.11.13/aclocal.m4
  100. --- opensc-0.11.13.orig/aclocal.m4 2010-02-16 10:32:15.000000000 +0100
  101. +++ opensc-0.11.13/aclocal.m4 2011-01-19 18:18:09.000000000 +0100
  102. @@ -1,4 +1,4 @@
  103. -# generated automatically by aclocal 1.11 -*- Autoconf -*-
  104. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  105. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  106. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  107. @@ -13,13 +13,14 @@
  108. m4_ifndef([AC_AUTOCONF_VERSION],
  109. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  110. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
  111. -[m4_warning([this file was generated for autoconf 2.64.
  112. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  113. +[m4_warning([this file was generated for autoconf 2.68.
  114. You have another version of autoconf. It may work, but is not guaranteed to.
  115. If you have problems, you may need to regenerate the build system entirely.
  116. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  117. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  118. +# serial 1 (pkg-config-0.24)
  119. #
  120. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  121. #
  122. @@ -47,7 +48,10 @@
  123. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  124. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  125. m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  126. -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  127. +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  128. +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  129. +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  130. +
  131. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  132. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  133. fi
  134. @@ -60,7 +64,6 @@
  135. AC_MSG_RESULT([no])
  136. PKG_CONFIG=""
  137. fi
  138. -
  139. fi[]dnl
  140. ])# PKG_PROG_PKG_CONFIG
  141. @@ -69,34 +72,31 @@
  142. # Check to see whether a particular set of modules exists. Similar
  143. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  144. #
  145. -#
  146. -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
  147. -# this or PKG_CHECK_MODULES is called, or make sure to call
  148. -# PKG_CHECK_EXISTS manually
  149. +# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  150. +# only at the first occurence in configure.ac, so if the first place
  151. +# it's called might be skipped (such as if it is within an "if", you
  152. +# have to call PKG_CHECK_EXISTS manually
  153. # --------------------------------------------------------------
  154. AC_DEFUN([PKG_CHECK_EXISTS],
  155. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  156. if test -n "$PKG_CONFIG" && \
  157. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  158. - m4_ifval([$2], [$2], [:])
  159. + m4_default([$2], [:])
  160. m4_ifvaln([$3], [else
  161. $3])dnl
  162. fi])
  163. -
  164. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  165. # ---------------------------------------------
  166. m4_define([_PKG_CONFIG],
  167. -[if test -n "$PKG_CONFIG"; then
  168. - if test -n "$$1"; then
  169. - pkg_cv_[]$1="$$1"
  170. - else
  171. - PKG_CHECK_EXISTS([$3],
  172. - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  173. - [pkg_failed=yes])
  174. - fi
  175. -else
  176. - pkg_failed=untried
  177. +[if test -n "$$1"; then
  178. + pkg_cv_[]$1="$$1"
  179. + elif test -n "$PKG_CONFIG"; then
  180. + PKG_CHECK_EXISTS([$3],
  181. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  182. + [pkg_failed=yes])
  183. + else
  184. + pkg_failed=untried
  185. fi[]dnl
  186. ])# _PKG_CONFIG
  187. @@ -138,16 +138,17 @@
  188. See the pkg-config man page for more details.])
  189. if test $pkg_failed = yes; then
  190. + AC_MSG_RESULT([no])
  191. _PKG_SHORT_ERRORS_SUPPORTED
  192. if test $_pkg_short_errors_supported = yes; then
  193. - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  194. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  195. else
  196. - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  197. + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  198. fi
  199. # Put the nasty error message in config.log where it belongs
  200. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  201. - ifelse([$4], , [AC_MSG_ERROR(dnl
  202. + m4_default([$4], [AC_MSG_ERROR(
  203. [Package requirements ($2) were not met:
  204. $$1_PKG_ERRORS
  205. @@ -155,25 +156,24 @@
  206. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  207. installed software in a non-standard prefix.
  208. -_PKG_TEXT
  209. -])],
  210. - [AC_MSG_RESULT([no])
  211. - $4])
  212. +_PKG_TEXT])[]dnl
  213. + ])
  214. elif test $pkg_failed = untried; then
  215. - ifelse([$4], , [AC_MSG_FAILURE(dnl
  216. + AC_MSG_RESULT([no])
  217. + m4_default([$4], [AC_MSG_FAILURE(
  218. [The pkg-config script could not be found or is too old. Make sure it
  219. is in your PATH or set the PKG_CONFIG environment variable to the full
  220. path to pkg-config.
  221. _PKG_TEXT
  222. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
  223. - [$4])
  224. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
  225. + ])
  226. else
  227. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  228. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  229. AC_MSG_RESULT([yes])
  230. - ifelse([$3], , :, [$3])
  231. + $3
  232. fi[]dnl
  233. ])# PKG_CHECK_MODULES
  234. @@ -192,7 +192,7 @@
  235. [am__api_version='1.11'
  236. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  237. dnl require some minimum version. Point them to the right macro.
  238. -m4_if([$1], [1.11], [],
  239. +m4_if([$1], [1.11.1], [],
  240. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  241. ])
  242. @@ -208,7 +208,7 @@
  243. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  244. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  245. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  246. -[AM_AUTOMAKE_VERSION([1.11])dnl
  247. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  248. m4_ifndef([AC_AUTOCONF_VERSION],
  249. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  250. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  251. diff -Nur opensc-0.11.13.orig/config.guess opensc-0.11.13/config.guess
  252. --- opensc-0.11.13.orig/config.guess 2010-02-16 10:32:17.000000000 +0100
  253. +++ opensc-0.11.13/config.guess 2011-01-19 18:18:11.000000000 +0100
  254. @@ -1,10 +1,10 @@
  255. #! /bin/sh
  256. # Attempt to guess a canonical system name.
  257. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  258. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  259. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  260. # Free Software Foundation, Inc.
  261. -timestamp='2009-04-27'
  262. +timestamp='2009-11-20'
  263. # This file is free software; you can redistribute it and/or modify it
  264. # under the terms of the GNU General Public License as published by
  265. @@ -27,16 +27,16 @@
  266. # the same distribution terms that you use for the rest of that program.
  267. -# Originally written by Per Bothner <per@bothner.com>.
  268. -# Please send patches to <config-patches@gnu.org>. Submit a context
  269. -# diff and a properly formatted ChangeLog entry.
  270. +# Originally written by Per Bothner. Please send patches (context
  271. +# diff format) to <config-patches@gnu.org> and include a ChangeLog
  272. +# entry.
  273. #
  274. # This script attempts to guess a canonical system name similar to
  275. # config.sub. If it succeeds, it prints the system name on stdout, and
  276. # exits with 0. Otherwise, it exits with 1.
  277. #
  278. -# The plan is that this can be called by configure scripts if you
  279. -# don't specify an explicit build system type.
  280. +# You can get the latest version of this script from:
  281. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  282. me=`echo "$0" | sed -e 's,.*/,,'`
  283. @@ -170,7 +170,7 @@
  284. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  285. eval $set_cc_for_build
  286. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  287. - | grep __ELF__ >/dev/null
  288. + | grep -q __ELF__
  289. then
  290. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  291. # Return netbsd for either. FIX?
  292. @@ -333,6 +333,9 @@
  293. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  294. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  295. exit ;;
  296. + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
  297. + echo i386-pc-auroraux${UNAME_RELEASE}
  298. + exit ;;
  299. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  300. eval $set_cc_for_build
  301. SUN_ARCH="i386"
  302. @@ -656,7 +659,7 @@
  303. # => hppa64-hp-hpux11.23
  304. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  305. - grep __LP64__ >/dev/null
  306. + grep -q __LP64__
  307. then
  308. HP_ARCH="hppa2.0w"
  309. else
  310. @@ -807,12 +810,12 @@
  311. i*:PW*:*)
  312. echo ${UNAME_MACHINE}-pc-pw32
  313. exit ;;
  314. - *:Interix*:[3456]*)
  315. + *:Interix*:*)
  316. case ${UNAME_MACHINE} in
  317. x86)
  318. echo i586-pc-interix${UNAME_RELEASE}
  319. exit ;;
  320. - EM64T | authenticamd | genuineintel)
  321. + authenticamd | genuineintel | EM64T)
  322. echo x86_64-unknown-interix${UNAME_RELEASE}
  323. exit ;;
  324. IA64)
  325. @@ -822,6 +825,9 @@
  326. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  327. echo i${UNAME_MACHINE}-pc-mks
  328. exit ;;
  329. + 8664:Windows_NT:*)
  330. + echo x86_64-pc-mks
  331. + exit ;;
  332. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  333. # How do we know it's Interix rather than the generic POSIX subsystem?
  334. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  335. @@ -851,6 +857,20 @@
  336. i*86:Minix:*:*)
  337. echo ${UNAME_MACHINE}-pc-minix
  338. exit ;;
  339. + alpha:Linux:*:*)
  340. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  341. + EV5) UNAME_MACHINE=alphaev5 ;;
  342. + EV56) UNAME_MACHINE=alphaev56 ;;
  343. + PCA56) UNAME_MACHINE=alphapca56 ;;
  344. + PCA57) UNAME_MACHINE=alphapca56 ;;
  345. + EV6) UNAME_MACHINE=alphaev6 ;;
  346. + EV67) UNAME_MACHINE=alphaev67 ;;
  347. + EV68*) UNAME_MACHINE=alphaev68 ;;
  348. + esac
  349. + objdump --private-headers /bin/sh | grep -q ld.so.1
  350. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  351. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  352. + exit ;;
  353. arm*:Linux:*:*)
  354. eval $set_cc_for_build
  355. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  356. @@ -873,6 +893,17 @@
  357. frv:Linux:*:*)
  358. echo frv-unknown-linux-gnu
  359. exit ;;
  360. + i*86:Linux:*:*)
  361. + LIBC=gnu
  362. + eval $set_cc_for_build
  363. + sed 's/^ //' << EOF >$dummy.c
  364. + #ifdef __dietlibc__
  365. + LIBC=dietlibc
  366. + #endif
  367. +EOF
  368. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  369. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  370. + exit ;;
  371. ia64:Linux:*:*)
  372. echo ${UNAME_MACHINE}-unknown-linux-gnu
  373. exit ;;
  374. @@ -882,78 +913,34 @@
  375. m68*:Linux:*:*)
  376. echo ${UNAME_MACHINE}-unknown-linux-gnu
  377. exit ;;
  378. - mips:Linux:*:*)
  379. - eval $set_cc_for_build
  380. - sed 's/^ //' << EOF >$dummy.c
  381. - #undef CPU
  382. - #undef mips
  383. - #undef mipsel
  384. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  385. - CPU=mipsel
  386. - #else
  387. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  388. - CPU=mips
  389. - #else
  390. - CPU=
  391. - #endif
  392. - #endif
  393. -EOF
  394. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  395. - /^CPU/{
  396. - s: ::g
  397. - p
  398. - }'`"
  399. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  400. - ;;
  401. - mips64:Linux:*:*)
  402. + mips:Linux:*:* | mips64:Linux:*:*)
  403. eval $set_cc_for_build
  404. sed 's/^ //' << EOF >$dummy.c
  405. #undef CPU
  406. - #undef mips64
  407. - #undef mips64el
  408. + #undef ${UNAME_MACHINE}
  409. + #undef ${UNAME_MACHINE}el
  410. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  411. - CPU=mips64el
  412. + CPU=${UNAME_MACHINE}el
  413. #else
  414. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  415. - CPU=mips64
  416. + CPU=${UNAME_MACHINE}
  417. #else
  418. CPU=
  419. #endif
  420. #endif
  421. EOF
  422. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  423. - /^CPU/{
  424. - s: ::g
  425. - p
  426. - }'`"
  427. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  428. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  429. ;;
  430. or32:Linux:*:*)
  431. echo or32-unknown-linux-gnu
  432. exit ;;
  433. - ppc:Linux:*:*)
  434. - echo powerpc-unknown-linux-gnu
  435. - exit ;;
  436. - ppc64:Linux:*:*)
  437. - echo powerpc64-unknown-linux-gnu
  438. - exit ;;
  439. - alpha:Linux:*:*)
  440. - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  441. - EV5) UNAME_MACHINE=alphaev5 ;;
  442. - EV56) UNAME_MACHINE=alphaev56 ;;
  443. - PCA56) UNAME_MACHINE=alphapca56 ;;
  444. - PCA57) UNAME_MACHINE=alphapca56 ;;
  445. - EV6) UNAME_MACHINE=alphaev6 ;;
  446. - EV67) UNAME_MACHINE=alphaev67 ;;
  447. - EV68*) UNAME_MACHINE=alphaev68 ;;
  448. - esac
  449. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  450. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  451. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  452. - exit ;;
  453. padre:Linux:*:*)
  454. echo sparc-unknown-linux-gnu
  455. exit ;;
  456. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  457. + echo hppa64-unknown-linux-gnu
  458. + exit ;;
  459. parisc:Linux:*:* | hppa:Linux:*:*)
  460. # Look for CPU level
  461. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  462. @@ -962,8 +949,11 @@
  463. *) echo hppa-unknown-linux-gnu ;;
  464. esac
  465. exit ;;
  466. - parisc64:Linux:*:* | hppa64:Linux:*:*)
  467. - echo hppa64-unknown-linux-gnu
  468. + ppc64:Linux:*:*)
  469. + echo powerpc64-unknown-linux-gnu
  470. + exit ;;
  471. + ppc:Linux:*:*)
  472. + echo powerpc-unknown-linux-gnu
  473. exit ;;
  474. s390:Linux:*:* | s390x:Linux:*:*)
  475. echo ${UNAME_MACHINE}-ibm-linux
  476. @@ -986,66 +976,6 @@
  477. xtensa*:Linux:*:*)
  478. echo ${UNAME_MACHINE}-unknown-linux-gnu
  479. exit ;;
  480. - i*86:Linux:*:*)
  481. - # The BFD linker knows what the default object file format is, so
  482. - # first see if it will tell us. cd to the root directory to prevent
  483. - # problems with other programs or directories called `ld' in the path.
  484. - # Set LC_ALL=C to ensure ld outputs messages in English.
  485. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  486. - | sed -ne '/supported targets:/!d
  487. - s/[ ][ ]*/ /g
  488. - s/.*supported targets: *//
  489. - s/ .*//
  490. - p'`
  491. - case "$ld_supported_targets" in
  492. - elf32-i386)
  493. - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  494. - ;;
  495. - a.out-i386-linux)
  496. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  497. - exit ;;
  498. - "")
  499. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  500. - # one that does not give us useful --help.
  501. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  502. - exit ;;
  503. - esac
  504. - # Determine whether the default compiler is a.out or elf
  505. - eval $set_cc_for_build
  506. - sed 's/^ //' << EOF >$dummy.c
  507. - #include <features.h>
  508. - #ifdef __ELF__
  509. - # ifdef __GLIBC__
  510. - # if __GLIBC__ >= 2
  511. - LIBC=gnu
  512. - # else
  513. - LIBC=gnulibc1
  514. - # endif
  515. - # else
  516. - LIBC=gnulibc1
  517. - # endif
  518. - #else
  519. - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  520. - LIBC=gnu
  521. - #else
  522. - LIBC=gnuaout
  523. - #endif
  524. - #endif
  525. - #ifdef __dietlibc__
  526. - LIBC=dietlibc
  527. - #endif
  528. -EOF
  529. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  530. - /^LIBC/{
  531. - s: ::g
  532. - p
  533. - }'`"
  534. - test x"${LIBC}" != x && {
  535. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  536. - exit
  537. - }
  538. - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  539. - ;;
  540. i*86:DYNIX/ptx:4*:*)
  541. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  542. # earlier versions are messed up and put the nodename in both
  543. @@ -1074,7 +1004,7 @@
  544. i*86:syllable:*:*)
  545. echo ${UNAME_MACHINE}-pc-syllable
  546. exit ;;
  547. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  548. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  549. echo i386-unknown-lynxos${UNAME_RELEASE}
  550. exit ;;
  551. i*86:*DOS:*:*)
  552. @@ -1182,7 +1112,7 @@
  553. rs6000:LynxOS:2.*:*)
  554. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  555. exit ;;
  556. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  557. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  558. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  559. exit ;;
  560. SM[BE]S:UNIX_SV:*:*)
  561. @@ -1275,6 +1205,16 @@
  562. *:Darwin:*:*)
  563. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  564. case $UNAME_PROCESSOR in
  565. + i386)
  566. + eval $set_cc_for_build
  567. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  568. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  569. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  570. + grep IS_64BIT_ARCH >/dev/null
  571. + then
  572. + UNAME_PROCESSOR="x86_64"
  573. + fi
  574. + fi ;;
  575. unknown) UNAME_PROCESSOR=powerpc ;;
  576. esac
  577. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  578. diff -Nur opensc-0.11.13.orig/config.h.in~ opensc-0.11.13/config.h.in~
  579. --- opensc-0.11.13.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  580. +++ opensc-0.11.13/config.h.in~ 2010-02-16 10:32:17.000000000 +0100
  581. @@ -0,0 +1,224 @@
  582. +/* config.h.in. Generated from configure.ac by autoheader. */
  583. +
  584. +/* Define if building universal (internal helper macro) */
  585. +#undef AC_APPLE_UNIVERSAL_BUILD
  586. +
  587. +/* Default PC/SC provider */
  588. +#undef DEFAULT_PCSC_PROVIDER
  589. +
  590. +/* Use iconv libraries and header files */
  591. +#undef ENABLE_ICONV
  592. +
  593. +/* Have OpenCT libraries and header files */
  594. +#undef ENABLE_OPENCT
  595. +
  596. +/* Have OpenSSL libraries and header files */
  597. +#undef ENABLE_OPENSSL
  598. +
  599. +/* Define if PC/SC is to be enabled */
  600. +#undef ENABLE_PCSC
  601. +
  602. +/* Use readline libraries and header files */
  603. +#undef ENABLE_READLINE
  604. +
  605. +/* Use zlib libraries and header files */
  606. +#undef ENABLE_ZLIB
  607. +
  608. +/* Define to 1 if you have the <dlfcn.h> header file. */
  609. +#undef HAVE_DLFCN_H
  610. +
  611. +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  612. +#undef HAVE_DOPRNT
  613. +
  614. +/* Define to 1 if you have the <errno.h> header file. */
  615. +#undef HAVE_ERRNO_H
  616. +
  617. +/* Define to 1 if you have the <fcntl.h> header file. */
  618. +#undef HAVE_FCNTL_H
  619. +
  620. +/* Define to 1 if you have the <getopt.h> header file. */
  621. +#undef HAVE_GETOPT_H
  622. +
  623. +/* Define to 1 if you have the `getopt_long' function. */
  624. +#undef HAVE_GETOPT_LONG
  625. +
  626. +/* Define to 1 if you have the `getpass' function. */
  627. +#undef HAVE_GETPASS
  628. +
  629. +/* Define to 1 if you have the `gettimeofday' function. */
  630. +#undef HAVE_GETTIMEOFDAY
  631. +
  632. +/* Define to 1 if you have the <iconv.h> header file. */
  633. +#undef HAVE_ICONV_H
  634. +
  635. +/* Define to 1 if you have the <inttypes.h> header file. */
  636. +#undef HAVE_INTTYPES_H
  637. +
  638. +/* Define to 1 if you have the <locale.h> header file. */
  639. +#undef HAVE_LOCALE_H
  640. +
  641. +/* Define to 1 if you have the <malloc.h> header file. */
  642. +#undef HAVE_MALLOC_H
  643. +
  644. +/* Define to 1 if you have the <memory.h> header file. */
  645. +#undef HAVE_MEMORY_H
  646. +
  647. +/* Define to 1 if you have the `memset' function. */
  648. +#undef HAVE_MEMSET
  649. +
  650. +/* Define to 1 if you have the `mkdir' function. */
  651. +#undef HAVE_MKDIR
  652. +
  653. +/* Define if you have POSIX threads libraries and header files. */
  654. +#undef HAVE_PTHREAD
  655. +
  656. +/* Define to 1 if you have the <readline/readline.h> header file. */
  657. +#undef HAVE_READLINE_READLINE_H
  658. +
  659. +/* Define to 1 if you have the `setlocale' function. */
  660. +#undef HAVE_SETLOCALE
  661. +
  662. +/* Define to 1 if you have the `setutent' function. */
  663. +#undef HAVE_SETUTENT
  664. +
  665. +/* Define to 1 if `stat' has the bug that it succeeds when given the
  666. + zero-length file name argument. */
  667. +#undef HAVE_STAT_EMPTY_STRING_BUG
  668. +
  669. +/* Define to 1 if you have the <stdint.h> header file. */
  670. +#undef HAVE_STDINT_H
  671. +
  672. +/* Define to 1 if you have the <stdlib.h> header file. */
  673. +#undef HAVE_STDLIB_H
  674. +
  675. +/* Define to 1 if you have the `strdup' function. */
  676. +#undef HAVE_STRDUP
  677. +
  678. +/* Define to 1 if you have the `strerror' function. */
  679. +#undef HAVE_STRERROR
  680. +
  681. +/* Define to 1 if you have the <strings.h> header file. */
  682. +#undef HAVE_STRINGS_H
  683. +
  684. +/* Define to 1 if you have the <string.h> header file. */
  685. +#undef HAVE_STRING_H
  686. +
  687. +/* Define to 1 if you have the `strlcpy' function. */
  688. +#undef HAVE_STRLCPY
  689. +
  690. +/* Define to 1 if you have the <sys/stat.h> header file. */
  691. +#undef HAVE_SYS_STAT_H
  692. +
  693. +/* Define to 1 if you have the <sys/time.h> header file. */
  694. +#undef HAVE_SYS_TIME_H
  695. +
  696. +/* Define to 1 if you have the <sys/types.h> header file. */
  697. +#undef HAVE_SYS_TYPES_H
  698. +
  699. +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  700. +#undef HAVE_SYS_WAIT_H
  701. +
  702. +/* Define to 1 if you have the <unistd.h> header file. */
  703. +#undef HAVE_UNISTD_H
  704. +
  705. +/* Define to 1 if you have the `vprintf' function. */
  706. +#undef HAVE_VPRINTF
  707. +
  708. +/* Define to 1 if you have the `vsyslog' function. */
  709. +#undef HAVE_VSYSLOG
  710. +
  711. +/* Define to 1 if you have the <winscard.h> header file. */
  712. +#undef HAVE_WINSCARD_H
  713. +
  714. +/* Define to 1 if you have the <zlib.h> header file. */
  715. +#undef HAVE_ZLIB_H
  716. +
  717. +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  718. + slash. */
  719. +#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
  720. +
  721. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  722. + */
  723. +#undef LT_OBJDIR
  724. +
  725. +/* Enabled OpenSC features */
  726. +#undef OPENSC_FEATURES
  727. +
  728. +/* OpenSC version fix component */
  729. +#undef OPENSC_VERSION_FIX
  730. +
  731. +/* OpenSC version major component */
  732. +#undef OPENSC_VERSION_MAJOR
  733. +
  734. +/* OpenSC version minor component */
  735. +#undef OPENSC_VERSION_MINOR
  736. +
  737. +/* Name of package */
  738. +#undef PACKAGE
  739. +
  740. +/* Define to the address where bug reports for this package should be sent. */
  741. +#undef PACKAGE_BUGREPORT
  742. +
  743. +/* Define to the full name of this package. */
  744. +#undef PACKAGE_NAME
  745. +
  746. +/* Define to the full name and version of this package. */
  747. +#undef PACKAGE_STRING
  748. +
  749. +/* Define to the one symbol short name of this package. */
  750. +#undef PACKAGE_TARNAME
  751. +
  752. +/* Define to the home page for this package. */
  753. +#undef PACKAGE_URL
  754. +
  755. +/* Define to the version of this package. */
  756. +#undef PACKAGE_VERSION
  757. +
  758. +/* PIN-entry program for OpenSC Signer */
  759. +#undef PIN_ENTRY
  760. +
  761. +/* Define to necessary symbol if this constant uses a non-standard name on
  762. + your system. */
  763. +#undef PTHREAD_CREATE_JOINABLE
  764. +
  765. +/* Define to 1 if you have the ANSI C header files. */
  766. +#undef STDC_HEADERS
  767. +
  768. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  769. +#undef TIME_WITH_SYS_TIME
  770. +
  771. +/* Define if you are on Cygwin */
  772. +#undef USE_CYGWIN
  773. +
  774. +/* Version number of package */
  775. +#undef VERSION
  776. +
  777. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  778. + significant byte first (like Motorola and SPARC, unlike Intel). */
  779. +#if defined AC_APPLE_UNIVERSAL_BUILD
  780. +# if defined __BIG_ENDIAN__
  781. +# define WORDS_BIGENDIAN 1
  782. +# endif
  783. +#else
  784. +# ifndef WORDS_BIGENDIAN
  785. +# undef WORDS_BIGENDIAN
  786. +# endif
  787. +#endif
  788. +
  789. +/* Define to empty if `const' does not conform to ANSI C. */
  790. +#undef const
  791. +
  792. +/* Define to `int' if <sys/types.h> doesn't define. */
  793. +#undef gid_t
  794. +
  795. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  796. + calls it, or to nothing if 'inline' is not supported under any name. */
  797. +#ifndef __cplusplus
  798. +#undef inline
  799. +#endif
  800. +
  801. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  802. +#undef size_t
  803. +
  804. +/* Define to `int' if <sys/types.h> doesn't define. */
  805. +#undef uid_t
  806. diff -Nur opensc-0.11.13.orig/config.sub opensc-0.11.13/config.sub
  807. --- opensc-0.11.13.orig/config.sub 2010-02-16 10:32:17.000000000 +0100
  808. +++ opensc-0.11.13/config.sub 2011-01-19 18:18:11.000000000 +0100
  809. @@ -1,10 +1,10 @@
  810. #! /bin/sh
  811. # Configuration validation subroutine script.
  812. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  813. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  814. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  815. # Free Software Foundation, Inc.
  816. -timestamp='2009-04-17'
  817. +timestamp='2009-11-20'
  818. # This file is (in principle) common to ALL GNU software.
  819. # The presence of a machine in this file suggests that SOME GNU software
  820. @@ -32,13 +32,16 @@
  821. # Please send patches to <config-patches@gnu.org>. Submit a context
  822. -# diff and a properly formatted ChangeLog entry.
  823. +# diff and a properly formatted GNU ChangeLog entry.
  824. #
  825. # Configuration subroutine to validate and canonicalize a configuration type.
  826. # Supply the specified configuration type as an argument.
  827. # If it is invalid, we print an error message on stderr and exit with code 1.
  828. # Otherwise, we print the canonical config type on stdout and succeed.
  829. +# You can get the latest version of this script from:
  830. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  831. +
  832. # This file is supposed to be the same for all GNU packages
  833. # and recognize all the CPU types, system types and aliases
  834. # that are meaningful with *any* GNU software.
  835. @@ -149,10 +152,13 @@
  836. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  837. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  838. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  839. - -apple | -axis | -knuth | -cray)
  840. + -apple | -axis | -knuth | -cray | -microblaze)
  841. os=
  842. basic_machine=$1
  843. ;;
  844. + -bluegene*)
  845. + os=-cnk
  846. + ;;
  847. -sim | -cisco | -oki | -wec | -winbond)
  848. os=
  849. basic_machine=$1
  850. @@ -281,6 +287,7 @@
  851. | pdp10 | pdp11 | pj | pjl \
  852. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  853. | pyramid \
  854. + | rx \
  855. | score \
  856. | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  857. | sh64 | sh64le \
  858. @@ -288,13 +295,14 @@
  859. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  860. | spu | strongarm \
  861. | tahoe | thumb | tic4x | tic80 | tron \
  862. + | ubicom32 \
  863. | v850 | v850e \
  864. | we32k \
  865. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  866. | z8k | z80)
  867. basic_machine=$basic_machine-unknown
  868. ;;
  869. - m6811 | m68hc11 | m6812 | m68hc12)
  870. + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
  871. # Motorola 68HC11/12.
  872. basic_machine=$basic_machine-unknown
  873. os=-none
  874. @@ -337,7 +345,7 @@
  875. | lm32-* \
  876. | m32c-* | m32r-* | m32rle-* \
  877. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  878. - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  879. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
  880. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  881. | mips16-* \
  882. | mips64-* | mips64el-* \
  883. @@ -365,7 +373,7 @@
  884. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  885. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  886. | pyramid-* \
  887. - | romp-* | rs6000-* \
  888. + | romp-* | rs6000-* | rx-* \
  889. | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  890. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  891. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  892. @@ -374,6 +382,7 @@
  893. | tahoe-* | thumb-* \
  894. | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  895. | tron-* \
  896. + | ubicom32-* \
  897. | v850-* | v850e-* | vax-* \
  898. | we32k-* \
  899. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  900. @@ -467,6 +476,10 @@
  901. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  902. os=-linux
  903. ;;
  904. + bluegene*)
  905. + basic_machine=powerpc-ibm
  906. + os=-cnk
  907. + ;;
  908. c90)
  909. basic_machine=c90-cray
  910. os=-unicos
  911. @@ -719,6 +732,9 @@
  912. basic_machine=ns32k-utek
  913. os=-sysv
  914. ;;
  915. + microblaze)
  916. + basic_machine=microblaze-xilinx
  917. + ;;
  918. mingw32)
  919. basic_machine=i386-pc
  920. os=-mingw32
  921. @@ -1240,6 +1256,9 @@
  922. # First match some system type aliases
  923. # that might get confused with valid system types.
  924. # -solaris* is a basic system type, with this one exception.
  925. + -auroraux)
  926. + os=-auroraux
  927. + ;;
  928. -solaris1 | -solaris1.*)
  929. os=`echo $os | sed -e 's|solaris1|sunos4|'`
  930. ;;
  931. @@ -1260,9 +1279,9 @@
  932. # Each alternative MUST END IN A *, to match a version number.
  933. # -sysv* is not here because it comes later, after sysvr4.
  934. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  935. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  936. - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  937. - | -kopensolaris* \
  938. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  939. + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  940. + | -sym* | -kopensolaris* \
  941. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  942. | -aos* | -aros* \
  943. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  944. @@ -1283,7 +1302,7 @@
  945. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  946. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  947. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  948. - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  949. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
  950. # Remember, each alternative MUST END IN *, to match a version number.
  951. ;;
  952. -qnx*)
  953. @@ -1613,7 +1632,7 @@
  954. -sunos*)
  955. vendor=sun
  956. ;;
  957. - -aix*)
  958. + -cnk*|-aix*)
  959. vendor=ibm
  960. ;;
  961. -beos*)
  962. diff -Nur opensc-0.11.13.orig/configure opensc-0.11.13/configure
  963. --- opensc-0.11.13.orig/configure 2010-02-16 10:32:16.000000000 +0100
  964. +++ opensc-0.11.13/configure 2011-01-19 18:18:10.000000000 +0100
  965. @@ -1,11 +1,13 @@
  966. #! /bin/sh
  967. # Guess values for system-dependent variables and create Makefiles.
  968. -# Generated by GNU Autoconf 2.64 for opensc 0.11.13.
  969. +# Generated by GNU Autoconf 2.68 for opensc 0.11.13.
  970. +#
  971. #
  972. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  973. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  974. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  975. # Foundation, Inc.
  976. #
  977. +#
  978. # This configure script is free software; the Free Software Foundation
  979. # gives unlimited permission to copy, distribute and modify it.
  980. ## -------------------- ##
  981. @@ -87,6 +89,7 @@
  982. IFS=" "" $as_nl"
  983. # Find who we are. Look in the path if we contain no directory separator.
  984. +as_myself=
  985. case $0 in #((
  986. *[\\/]* ) as_myself=$0 ;;
  987. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  988. @@ -169,7 +172,15 @@
  989. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  990. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  991. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  992. -test \$(( 1 + 1 )) = 2 || exit 1"
  993. +test \$(( 1 + 1 )) = 2 || exit 1
  994. +
  995. + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  996. + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  997. + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  998. + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  999. + PATH=/empty FPATH=/empty; export PATH FPATH
  1000. + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  1001. + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  1002. if (eval "$as_required") 2>/dev/null; then :
  1003. as_have_required=yes
  1004. else
  1005. @@ -212,11 +223,18 @@
  1006. # We cannot yet assume a decent shell, so we have to provide a
  1007. # neutralization value for shells without unset; and this also
  1008. # works around shells that cannot unset nonexistent variables.
  1009. + # Preserve -v and -x to the replacement shell.
  1010. BASH_ENV=/dev/null
  1011. ENV=/dev/null
  1012. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  1013. export CONFIG_SHELL
  1014. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  1015. + case $- in # ((((
  1016. + *v*x* | *x*v* ) as_opts=-vx ;;
  1017. + *v* ) as_opts=-v ;;
  1018. + *x* ) as_opts=-x ;;
  1019. + * ) as_opts= ;;
  1020. + esac
  1021. + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  1022. fi
  1023. if test x$as_have_required = xno; then :
  1024. @@ -314,7 +332,7 @@
  1025. test -d "$as_dir" && break
  1026. done
  1027. test -z "$as_dirs" || eval "mkdir $as_dirs"
  1028. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  1029. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  1030. } # as_fn_mkdir_p
  1031. @@ -354,19 +372,19 @@
  1032. fi # as_fn_arith
  1033. -# as_fn_error ERROR [LINENO LOG_FD]
  1034. -# ---------------------------------
  1035. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  1036. +# ----------------------------------------
  1037. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  1038. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  1039. -# script with status $?, using 1 if that was 0.
  1040. +# script with STATUS, using 1 if that was 0.
  1041. as_fn_error ()
  1042. {
  1043. - as_status=$?; test $as_status -eq 0 && as_status=1
  1044. - if test "$3"; then
  1045. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1046. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  1047. + as_status=$1; test $as_status -eq 0 && as_status=1
  1048. + if test "$4"; then
  1049. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1050. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  1051. fi
  1052. - $as_echo "$as_me: error: $1" >&2
  1053. + $as_echo "$as_me: error: $2" >&2
  1054. as_fn_exit $as_status
  1055. } # as_fn_error
  1056. @@ -523,160 +541,14 @@
  1057. # Sed expression to map a string onto a valid variable name.
  1058. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  1059. -
  1060. -
  1061. -# Check that we are running under the correct shell.
  1062. SHELL=${CONFIG_SHELL-/bin/sh}
  1063. -case X$lt_ECHO in
  1064. -X*--fallback-echo)
  1065. - # Remove one level of quotation (which was required for Make).
  1066. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  1067. - ;;
  1068. -esac
  1069. -
  1070. -ECHO=${lt_ECHO-echo}
  1071. -if test "X$1" = X--no-reexec; then
  1072. - # Discard the --no-reexec flag, and continue.
  1073. - shift
  1074. -elif test "X$1" = X--fallback-echo; then
  1075. - # Avoid inline document here, it may be left over
  1076. - :
  1077. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1078. - # Yippee, $ECHO works!
  1079. - :
  1080. -else
  1081. - # Restart under the correct shell.
  1082. - exec $SHELL "$0" --no-reexec ${1+"$@"}
  1083. -fi
  1084. -
  1085. -if test "X$1" = X--fallback-echo; then
  1086. - # used as fallback echo
  1087. - shift
  1088. - cat <<_LT_EOF
  1089. -$*
  1090. -_LT_EOF
  1091. - exit 0
  1092. -fi
  1093. -
  1094. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  1095. -# if CDPATH is set.
  1096. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1097. -
  1098. -if test -z "$lt_ECHO"; then
  1099. - if test "X${echo_test_string+set}" != Xset; then
  1100. - # find a string as large as possible, as long as the shell can cope with it
  1101. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  1102. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1103. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1104. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1105. - then
  1106. - break
  1107. - fi
  1108. - done
  1109. - fi
  1110. -
  1111. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1112. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1113. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1114. - :
  1115. - else
  1116. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1117. - # backslashes. This makes it impossible to quote backslashes using
  1118. - # echo "$something" | sed 's/\\/\\\\/g'
  1119. - #
  1120. - # So, first we look for a working echo in the user's PATH.
  1121. -
  1122. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1123. - for dir in $PATH /usr/ucb; do
  1124. - IFS="$lt_save_ifs"
  1125. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1126. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1127. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1128. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1129. - ECHO="$dir/echo"
  1130. - break
  1131. - fi
  1132. - done
  1133. - IFS="$lt_save_ifs"
  1134. -
  1135. - if test "X$ECHO" = Xecho; then
  1136. - # We didn't find a better echo, so look for alternatives.
  1137. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1138. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1139. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1140. - # This shell has a builtin print -r that does the trick.
  1141. - ECHO='print -r'
  1142. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1143. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1144. - # If we have ksh, try running configure again with it.
  1145. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1146. - export ORIGINAL_CONFIG_SHELL
  1147. - CONFIG_SHELL=/bin/ksh
  1148. - export CONFIG_SHELL
  1149. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  1150. - else
  1151. - # Try using printf.
  1152. - ECHO='printf %s\n'
  1153. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1154. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1155. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1156. - # Cool, printf works
  1157. - :
  1158. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  1159. - test "X$echo_testing_string" = 'X\t' &&
  1160. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1161. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1162. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1163. - export CONFIG_SHELL
  1164. - SHELL="$CONFIG_SHELL"
  1165. - export SHELL
  1166. - ECHO="$CONFIG_SHELL $0 --fallback-echo"
  1167. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  1168. - test "X$echo_testing_string" = 'X\t' &&
  1169. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1170. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1171. - ECHO="$CONFIG_SHELL $0 --fallback-echo"
  1172. - else
  1173. - # maybe with a smaller string...
  1174. - prev=:
  1175. -
  1176. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  1177. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1178. - then
  1179. - break
  1180. - fi
  1181. - prev="$cmd"
  1182. - done
  1183. -
  1184. - if test "$prev" != 'sed 50q "$0"'; then
  1185. - echo_test_string=`eval $prev`
  1186. - export echo_test_string
  1187. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  1188. - else
  1189. - # Oops. We lost completely, so just stick with echo.
  1190. - ECHO=echo
  1191. - fi
  1192. - fi
  1193. - fi
  1194. - fi
  1195. - fi
  1196. -fi
  1197. -
  1198. -# Copy echo and quote the copy suitably for passing to libtool from
  1199. -# the Makefile, instead of quoting the original, which is used later.
  1200. -lt_ECHO=$ECHO
  1201. -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  1202. - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  1203. -fi
  1204. -
  1205. -
  1206. -
  1207. -exec 7<&0 </dev/null 6>&1
  1208. +test -n "$DJDIR" || exec 7<&0 </dev/null
  1209. +exec 6>&1
  1210. # Name of the host.
  1211. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  1212. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  1213. # so uname gets run too.
  1214. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  1215. @@ -820,8 +692,9 @@
  1216. LIPO
  1217. NMEDIT
  1218. DSYMUTIL
  1219. -lt_ECHO
  1220. +MANIFEST_TOOL
  1221. RANLIB
  1222. +ac_ct_AR
  1223. AR
  1224. NM
  1225. ac_ct_DUMPBIN
  1226. @@ -837,6 +710,8 @@
  1227. EGREP
  1228. GREP
  1229. CPP
  1230. +PKG_CONFIG_LIBDIR
  1231. +PKG_CONFIG_PATH
  1232. PKG_CONFIG
  1233. am__fastdepCC_FALSE
  1234. am__fastdepCC_TRUE
  1235. @@ -948,6 +823,7 @@
  1236. with_pic
  1237. enable_fast_install
  1238. with_gnu_ld
  1239. +with_sysroot
  1240. enable_libtool_lock
  1241. with_libassuan_prefix
  1242. '
  1243. @@ -960,6 +836,10 @@
  1244. LIBS
  1245. CPPFLAGS
  1246. PKG_CONFIG
  1247. +PKG_CONFIG_PATH
  1248. +PKG_CONFIG_LIBDIR
  1249. +CPP
  1250. +CPPFLAGS
  1251. CPP
  1252. XSLTPROC
  1253. SVN
  1254. @@ -976,6 +856,7 @@
  1255. ICONV_LIBS
  1256. OPENSSL_CFLAGS
  1257. OPENSSL_LIBS
  1258. +OPENSSL_LIBS
  1259. OPENCT_CFLAGS
  1260. OPENCT_LIBS
  1261. PCSC_CFLAGS
  1262. @@ -1042,8 +923,9 @@
  1263. fi
  1264. case $ac_option in
  1265. - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1266. - *) ac_optarg=yes ;;
  1267. + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1268. + *=) ac_optarg= ;;
  1269. + *) ac_optarg=yes ;;
  1270. esac
  1271. # Accept the important Cygnus configure options, so we can diagnose typos.
  1272. @@ -1088,7 +970,7 @@
  1273. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1274. # Reject names that are not valid shell variable names.
  1275. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1276. - as_fn_error "invalid feature name: $ac_useropt"
  1277. + as_fn_error $? "invalid feature name: $ac_useropt"
  1278. ac_useropt_orig=$ac_useropt
  1279. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1280. case $ac_user_opts in
  1281. @@ -1114,7 +996,7 @@
  1282. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1283. # Reject names that are not valid shell variable names.
  1284. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1285. - as_fn_error "invalid feature name: $ac_useropt"
  1286. + as_fn_error $? "invalid feature name: $ac_useropt"
  1287. ac_useropt_orig=$ac_useropt
  1288. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1289. case $ac_user_opts in
  1290. @@ -1318,7 +1200,7 @@
  1291. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1292. # Reject names that are not valid shell variable names.
  1293. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1294. - as_fn_error "invalid package name: $ac_useropt"
  1295. + as_fn_error $? "invalid package name: $ac_useropt"
  1296. ac_useropt_orig=$ac_useropt
  1297. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1298. case $ac_user_opts in
  1299. @@ -1334,7 +1216,7 @@
  1300. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1301. # Reject names that are not valid shell variable names.
  1302. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1303. - as_fn_error "invalid package name: $ac_useropt"
  1304. + as_fn_error $? "invalid package name: $ac_useropt"
  1305. ac_useropt_orig=$ac_useropt
  1306. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1307. case $ac_user_opts in
  1308. @@ -1364,8 +1246,8 @@
  1309. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1310. x_libraries=$ac_optarg ;;
  1311. - -*) as_fn_error "unrecognized option: \`$ac_option'
  1312. -Try \`$0 --help' for more information."
  1313. + -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1314. +Try \`$0 --help' for more information"
  1315. ;;
  1316. *=*)
  1317. @@ -1373,7 +1255,7 @@
  1318. # Reject names that are not valid shell variable names.
  1319. case $ac_envvar in #(
  1320. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1321. - as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1322. + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1323. esac
  1324. eval $ac_envvar=\$ac_optarg
  1325. export $ac_envvar ;;
  1326. @@ -1383,7 +1265,7 @@
  1327. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1328. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1329. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1330. - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1331. + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1332. ;;
  1333. esac
  1334. @@ -1391,13 +1273,13 @@
  1335. if test -n "$ac_prev"; then
  1336. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1337. - as_fn_error "missing argument to $ac_option"
  1338. + as_fn_error $? "missing argument to $ac_option"
  1339. fi
  1340. if test -n "$ac_unrecognized_opts"; then
  1341. case $enable_option_checking in
  1342. no) ;;
  1343. - fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1344. + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1345. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1346. esac
  1347. fi
  1348. @@ -1420,7 +1302,7 @@
  1349. [\\/$]* | ?:[\\/]* ) continue;;
  1350. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1351. esac
  1352. - as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1353. + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1354. done
  1355. # There might be people who depend on the old broken behavior: `$host'
  1356. @@ -1434,8 +1316,8 @@
  1357. if test "x$host_alias" != x; then
  1358. if test "x$build_alias" = x; then
  1359. cross_compiling=maybe
  1360. - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1361. - If a cross compiler is detected then cross compile mode will be used." >&2
  1362. + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1363. + If a cross compiler is detected then cross compile mode will be used" >&2
  1364. elif test "x$build_alias" != "x$host_alias"; then
  1365. cross_compiling=yes
  1366. fi
  1367. @@ -1450,9 +1332,9 @@
  1368. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1369. ac_ls_di=`ls -di .` &&
  1370. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1371. - as_fn_error "working directory cannot be determined"
  1372. + as_fn_error $? "working directory cannot be determined"
  1373. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1374. - as_fn_error "pwd does not report name of working directory"
  1375. + as_fn_error $? "pwd does not report name of working directory"
  1376. # Find the source files, if location was not specified.
  1377. @@ -1491,11 +1373,11 @@
  1378. fi
  1379. if test ! -r "$srcdir/$ac_unique_file"; then
  1380. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1381. - as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1382. + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1383. fi
  1384. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1385. ac_abs_confdir=`(
  1386. - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1387. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1388. pwd)`
  1389. # When building in place, set srcdir=.
  1390. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1391. @@ -1535,7 +1417,7 @@
  1392. --help=short display options specific to this package
  1393. --help=recursive display the short help of all the included packages
  1394. -V, --version display version information and exit
  1395. - -q, --quiet, --silent do not print \`checking...' messages
  1396. + -q, --quiet, --silent do not print \`checking ...' messages
  1397. --cache-file=FILE cache test results in FILE [disabled]
  1398. -C, --config-cache alias for \`--cache-file=config.cache'
  1399. -n, --no-create do not create output files
  1400. @@ -1634,6 +1516,8 @@
  1401. --with-pic try to use only PIC/non-PIC objects [default=use
  1402. both]
  1403. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1404. + --with-sysroot=DIR Search for dependent libraries within DIR
  1405. + (or the compiler's sysroot if not specified).
  1406. --with-libassuan-prefix=PFX
  1407. prefix where LIBASSUAN is installed (optional)
  1408. @@ -1643,9 +1527,13 @@
  1409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1410. nonstandard directory <lib dir>
  1411. LIBS libraries to pass to the linker, e.g. -l<library>
  1412. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1413. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1414. you have headers in a nonstandard directory <include dir>
  1415. PKG_CONFIG path to pkg-config utility
  1416. + PKG_CONFIG_PATH
  1417. + directories to add to pkg-config's search path
  1418. + PKG_CONFIG_LIBDIR
  1419. + path overriding pkg-config's built-in search path
  1420. CPP C preprocessor
  1421. XSLTPROC xsltproc utility
  1422. SVN subversion utility
  1423. @@ -1741,9 +1629,9 @@
  1424. if $ac_init_version; then
  1425. cat <<\_ACEOF
  1426. opensc configure 0.11.13
  1427. -generated by GNU Autoconf 2.64
  1428. +generated by GNU Autoconf 2.68
  1429. -Copyright (C) 2009 Free Software Foundation, Inc.
  1430. +Copyright (C) 2010 Free Software Foundation, Inc.
  1431. This configure script is free software; the Free Software Foundation
  1432. gives unlimited permission to copy, distribute and modify it.
  1433. _ACEOF
  1434. @@ -1787,8 +1675,8 @@
  1435. ac_retval=1
  1436. fi
  1437. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1438. - return $ac_retval
  1439. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1440. + as_fn_set_status $ac_retval
  1441. } # ac_fn_c_try_compile
  1442. @@ -1829,8 +1717,8 @@
  1443. ac_retval=$ac_status
  1444. fi
  1445. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1446. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1447. - return $ac_retval
  1448. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. + as_fn_set_status $ac_retval
  1450. } # ac_fn_c_try_run
  1451. @@ -1855,7 +1743,7 @@
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. - test $ac_status = 0; } >/dev/null && {
  1456. + test $ac_status = 0; } > conftest.i && {
  1457. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. }; then :
  1460. @@ -1866,8 +1754,8 @@
  1461. ac_retval=1
  1462. fi
  1463. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1464. - return $ac_retval
  1465. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. + as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_cpp
  1468. @@ -1880,7 +1768,7 @@
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1471. $as_echo_n "checking for $2... " >&6; }
  1472. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1473. +if eval \${$3+:} false; then :
  1474. $as_echo_n "(cached) " >&6
  1475. else
  1476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1477. @@ -1898,7 +1786,7 @@
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1482. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. } # ac_fn_c_check_header_compile
  1484. @@ -1943,8 +1831,8 @@
  1485. # interfere with the next link command; also delete a directory that is
  1486. # left behind by Apple's compiler. We do this before executing the actions.
  1487. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1488. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1489. - return $ac_retval
  1490. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. + as_fn_set_status $ac_retval
  1492. } # ac_fn_c_try_link
  1493. @@ -1956,7 +1844,7 @@
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1496. $as_echo_n "checking for $2... " >&6; }
  1497. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1498. +if eval \${$3+:} false; then :
  1499. $as_echo_n "(cached) " >&6
  1500. else
  1501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1502. @@ -2011,7 +1899,7 @@
  1503. eval ac_res=\$$3
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1505. $as_echo "$ac_res" >&6; }
  1506. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1507. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1508. } # ac_fn_c_check_func
  1509. @@ -2023,10 +1911,10 @@
  1510. ac_fn_c_check_header_mongrel ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. - if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1514. + if eval \${$3+:} false; then :
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1516. $as_echo_n "checking for $2... " >&6; }
  1517. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1518. +if eval \${$3+:} false; then :
  1519. $as_echo_n "(cached) " >&6
  1520. fi
  1521. eval ac_res=\$$3
  1522. @@ -2062,7 +1950,7 @@
  1523. else
  1524. ac_header_preproc=no
  1525. fi
  1526. -rm -f conftest.err conftest.$ac_ext
  1527. +rm -f conftest.err conftest.i conftest.$ac_ext
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1529. $as_echo "$ac_header_preproc" >&6; }
  1530. @@ -2089,7 +1977,7 @@
  1531. esac
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1533. $as_echo_n "checking for $2... " >&6; }
  1534. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1535. +if eval \${$3+:} false; then :
  1536. $as_echo_n "(cached) " >&6
  1537. else
  1538. eval "$3=\$ac_header_compiler"
  1539. @@ -2098,7 +1986,7 @@
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1541. $as_echo "$ac_res" >&6; }
  1542. fi
  1543. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1544. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1545. } # ac_fn_c_check_header_mongrel
  1546. @@ -2111,7 +1999,7 @@
  1547. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1549. $as_echo_n "checking for $2... " >&6; }
  1550. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1551. +if eval \${$3+:} false; then :
  1552. $as_echo_n "(cached) " >&6
  1553. else
  1554. eval "$3=no"
  1555. @@ -2152,7 +2040,7 @@
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_c_check_type
  1562. cat >config.log <<_ACEOF
  1563. @@ -2160,7 +2048,7 @@
  1564. running configure, to aid debugging if configure makes a mistake.
  1565. It was created by opensc $as_me 0.11.13, which was
  1566. -generated by GNU Autoconf 2.64. Invocation command line was
  1567. +generated by GNU Autoconf 2.68. Invocation command line was
  1568. $ $0 $@
  1569. @@ -2270,11 +2158,9 @@
  1570. {
  1571. echo
  1572. - cat <<\_ASBOX
  1573. -## ---------------- ##
  1574. + $as_echo "## ---------------- ##
  1575. ## Cache variables. ##
  1576. -## ---------------- ##
  1577. -_ASBOX
  1578. +## ---------------- ##"
  1579. echo
  1580. # The following way of writing the cache mishandles newlines in values,
  1581. (
  1582. @@ -2308,11 +2194,9 @@
  1583. )
  1584. echo
  1585. - cat <<\_ASBOX
  1586. -## ----------------- ##
  1587. + $as_echo "## ----------------- ##
  1588. ## Output variables. ##
  1589. -## ----------------- ##
  1590. -_ASBOX
  1591. +## ----------------- ##"
  1592. echo
  1593. for ac_var in $ac_subst_vars
  1594. do
  1595. @@ -2325,11 +2209,9 @@
  1596. echo
  1597. if test -n "$ac_subst_files"; then
  1598. - cat <<\_ASBOX
  1599. -## ------------------- ##
  1600. + $as_echo "## ------------------- ##
  1601. ## File substitutions. ##
  1602. -## ------------------- ##
  1603. -_ASBOX
  1604. +## ------------------- ##"
  1605. echo
  1606. for ac_var in $ac_subst_files
  1607. do
  1608. @@ -2343,11 +2225,9 @@
  1609. fi
  1610. if test -s confdefs.h; then
  1611. - cat <<\_ASBOX
  1612. -## ----------- ##
  1613. + $as_echo "## ----------- ##
  1614. ## confdefs.h. ##
  1615. -## ----------- ##
  1616. -_ASBOX
  1617. +## ----------- ##"
  1618. echo
  1619. cat confdefs.h
  1620. echo
  1621. @@ -2402,7 +2282,12 @@
  1622. ac_site_file1=NONE
  1623. ac_site_file2=NONE
  1624. if test -n "$CONFIG_SITE"; then
  1625. - ac_site_file1=$CONFIG_SITE
  1626. + # We do not want a PATH search for config.site.
  1627. + case $CONFIG_SITE in #((
  1628. + -*) ac_site_file1=./$CONFIG_SITE;;
  1629. + */*) ac_site_file1=$CONFIG_SITE;;
  1630. + *) ac_site_file1=./$CONFIG_SITE;;
  1631. + esac
  1632. elif test "x$prefix" != xNONE; then
  1633. ac_site_file1=$prefix/share/config.site
  1634. ac_site_file2=$prefix/etc/config.site
  1635. @@ -2413,18 +2298,22 @@
  1636. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1637. do
  1638. test "x$ac_site_file" = xNONE && continue
  1639. - if test -r "$ac_site_file"; then
  1640. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1642. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1643. sed 's/^/| /' "$ac_site_file" >&5
  1644. - . "$ac_site_file"
  1645. + . "$ac_site_file" \
  1646. + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1647. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1648. +as_fn_error $? "failed to load site script $ac_site_file
  1649. +See \`config.log' for more details" "$LINENO" 5; }
  1650. fi
  1651. done
  1652. if test -r "$cache_file"; then
  1653. - # Some versions of bash will fail to source /dev/null (special
  1654. - # files actually), so we avoid doing that.
  1655. - if test -f "$cache_file"; then
  1656. + # Some versions of bash will fail to source /dev/null (special files
  1657. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1658. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1660. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1661. case $cache_file in
  1662. @@ -2493,7 +2382,7 @@
  1663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1665. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1666. - as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1667. + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1668. fi
  1669. ## -------------------- ##
  1670. ## Main body of script. ##
  1671. @@ -2508,16 +2397,22 @@
  1672. ac_aux_dir=
  1673. for ac_dir in . "$srcdir"/.; do
  1674. - for ac_t in install-sh install.sh shtool; do
  1675. - if test -f "$ac_dir/$ac_t"; then
  1676. - ac_aux_dir=$ac_dir
  1677. - ac_install_sh="$ac_aux_dir/$ac_t -c"
  1678. - break 2
  1679. - fi
  1680. - done
  1681. + if test -f "$ac_dir/install-sh"; then
  1682. + ac_aux_dir=$ac_dir
  1683. + ac_install_sh="$ac_aux_dir/install-sh -c"
  1684. + break
  1685. + elif test -f "$ac_dir/install.sh"; then
  1686. + ac_aux_dir=$ac_dir
  1687. + ac_install_sh="$ac_aux_dir/install.sh -c"
  1688. + break
  1689. + elif test -f "$ac_dir/shtool"; then
  1690. + ac_aux_dir=$ac_dir
  1691. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1692. + break
  1693. + fi
  1694. done
  1695. if test -z "$ac_aux_dir"; then
  1696. - as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  1697. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  1698. fi
  1699. # These three variables are undocumented and unsupported,
  1700. @@ -2551,7 +2446,7 @@
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1702. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1703. if test -z "$INSTALL"; then
  1704. -if test "${ac_cv_path_install+set}" = set; then :
  1705. +if ${ac_cv_path_install+:} false; then :
  1706. $as_echo_n "(cached) " >&6
  1707. else
  1708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1709. @@ -2638,11 +2533,11 @@
  1710. '
  1711. case `pwd` in
  1712. *[\\\"\#\$\&\'\`$am_lf]*)
  1713. - as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  1714. + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  1715. esac
  1716. case $srcdir in
  1717. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  1718. - as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  1719. + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  1720. esac
  1721. # Do `set' in a subshell so we don't clobber the current shell's
  1722. @@ -2664,7 +2559,7 @@
  1723. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1724. # broken ls alias from the environment. This has actually
  1725. # happened. Such a system could not be considered "sane".
  1726. - as_fn_error "ls -t appears to fail. Make sure there is not a broken
  1727. + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  1728. alias in your environment" "$LINENO" 5
  1729. fi
  1730. @@ -2674,7 +2569,7 @@
  1731. # Ok.
  1732. :
  1733. else
  1734. - as_fn_error "newly created file is older than distributed files!
  1735. + as_fn_error $? "newly created file is older than distributed files!
  1736. Check your system clock" "$LINENO" 5
  1737. fi
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1739. @@ -2728,7 +2623,7 @@
  1740. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1742. $as_echo_n "checking for $ac_word... " >&6; }
  1743. -if test "${ac_cv_prog_STRIP+set}" = set; then :
  1744. +if ${ac_cv_prog_STRIP+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. if test -n "$STRIP"; then
  1748. @@ -2768,7 +2663,7 @@
  1749. set dummy strip; ac_word=$2
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1751. $as_echo_n "checking for $ac_word... " >&6; }
  1752. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  1753. +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  1754. $as_echo_n "(cached) " >&6
  1755. else
  1756. if test -n "$ac_ct_STRIP"; then
  1757. @@ -2821,7 +2716,7 @@
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  1759. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1760. if test -z "$MKDIR_P"; then
  1761. - if test "${ac_cv_path_mkdir+set}" = set; then :
  1762. + if ${ac_cv_path_mkdir+:} false; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1766. @@ -2846,6 +2741,7 @@
  1767. fi
  1768. + test -d ./--version && rmdir ./--version
  1769. if test "${ac_cv_path_mkdir+set}" = set; then
  1770. MKDIR_P="$ac_cv_path_mkdir -p"
  1771. else
  1772. @@ -2853,7 +2749,6 @@
  1773. # value for MKDIR_P within a source directory, because that will
  1774. # break other packages using the cache if that directory is
  1775. # removed, or if the value is a relative name.
  1776. - test -d ./--version && rmdir ./--version
  1777. MKDIR_P="$ac_install_sh -d"
  1778. fi
  1779. fi
  1780. @@ -2872,7 +2767,7 @@
  1781. set dummy $ac_prog; ac_word=$2
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1783. $as_echo_n "checking for $ac_word... " >&6; }
  1784. -if test "${ac_cv_prog_AWK+set}" = set; then :
  1785. +if ${ac_cv_prog_AWK+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. if test -n "$AWK"; then
  1789. @@ -2912,7 +2807,7 @@
  1790. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  1791. set x ${MAKE-make}
  1792. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1793. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  1794. +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  1795. $as_echo_n "(cached) " >&6
  1796. else
  1797. cat >conftest.make <<\_ACEOF
  1798. @@ -2920,7 +2815,7 @@
  1799. all:
  1800. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1801. _ACEOF
  1802. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1803. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  1804. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1805. *@@@%%%=?*=@@@%%%*)
  1806. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1807. @@ -2954,7 +2849,7 @@
  1808. am__isrc=' -I$(srcdir)'
  1809. # test to see if srcdir already configured
  1810. if test -f $srcdir/config.status; then
  1811. - as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  1812. + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  1813. fi
  1814. fi
  1815. @@ -3029,27 +2924,27 @@
  1816. # Make sure we can run config.sub.
  1817. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1818. - as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1819. + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1821. $as_echo_n "checking build system type... " >&6; }
  1822. -if test "${ac_cv_build+set}" = set; then :
  1823. +if ${ac_cv_build+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. ac_build_alias=$build_alias
  1827. test "x$ac_build_alias" = x &&
  1828. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1829. test "x$ac_build_alias" = x &&
  1830. - as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  1831. + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1832. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1833. - as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1834. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1835. fi
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1837. $as_echo "$ac_cv_build" >&6; }
  1838. case $ac_cv_build in
  1839. *-*-*) ;;
  1840. -*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  1841. +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1842. esac
  1843. build=$ac_cv_build
  1844. ac_save_IFS=$IFS; IFS='-'
  1845. @@ -3067,14 +2962,14 @@
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1847. $as_echo_n "checking host system type... " >&6; }
  1848. -if test "${ac_cv_host+set}" = set; then :
  1849. +if ${ac_cv_host+:} false; then :
  1850. $as_echo_n "(cached) " >&6
  1851. else
  1852. if test "x$host_alias" = x; then
  1853. ac_cv_host=$ac_cv_build
  1854. else
  1855. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1856. - as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1857. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1858. fi
  1859. fi
  1860. @@ -3082,7 +2977,7 @@
  1861. $as_echo "$ac_cv_host" >&6; }
  1862. case $ac_cv_host in
  1863. *-*-*) ;;
  1864. -*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  1865. +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1866. esac
  1867. host=$ac_cv_host
  1868. ac_save_IFS=$IFS; IFS='-'
  1869. @@ -3108,7 +3003,7 @@
  1870. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1872. $as_echo_n "checking for $ac_word... " >&6; }
  1873. -if test "${ac_cv_prog_CC+set}" = set; then :
  1874. +if ${ac_cv_prog_CC+:} false; then :
  1875. $as_echo_n "(cached) " >&6
  1876. else
  1877. if test -n "$CC"; then
  1878. @@ -3148,7 +3043,7 @@
  1879. set dummy gcc; ac_word=$2
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1881. $as_echo_n "checking for $ac_word... " >&6; }
  1882. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  1883. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1884. $as_echo_n "(cached) " >&6
  1885. else
  1886. if test -n "$ac_ct_CC"; then
  1887. @@ -3201,7 +3096,7 @@
  1888. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1890. $as_echo_n "checking for $ac_word... " >&6; }
  1891. -if test "${ac_cv_prog_CC+set}" = set; then :
  1892. +if ${ac_cv_prog_CC+:} false; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. if test -n "$CC"; then
  1896. @@ -3241,7 +3136,7 @@
  1897. set dummy cc; ac_word=$2
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1899. $as_echo_n "checking for $ac_word... " >&6; }
  1900. -if test "${ac_cv_prog_CC+set}" = set; then :
  1901. +if ${ac_cv_prog_CC+:} false; then :
  1902. $as_echo_n "(cached) " >&6
  1903. else
  1904. if test -n "$CC"; then
  1905. @@ -3300,7 +3195,7 @@
  1906. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1908. $as_echo_n "checking for $ac_word... " >&6; }
  1909. -if test "${ac_cv_prog_CC+set}" = set; then :
  1910. +if ${ac_cv_prog_CC+:} false; then :
  1911. $as_echo_n "(cached) " >&6
  1912. else
  1913. if test -n "$CC"; then
  1914. @@ -3344,7 +3239,7 @@
  1915. set dummy $ac_prog; ac_word=$2
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1917. $as_echo_n "checking for $ac_word... " >&6; }
  1918. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  1919. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1920. $as_echo_n "(cached) " >&6
  1921. else
  1922. if test -n "$ac_ct_CC"; then
  1923. @@ -3398,8 +3293,8 @@
  1924. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1926. -as_fn_error "no acceptable C compiler found in \$PATH
  1927. -See \`config.log' for more details." "$LINENO" 5; }
  1928. +as_fn_error $? "no acceptable C compiler found in \$PATH
  1929. +See \`config.log' for more details" "$LINENO" 5; }
  1930. # Provide some information about the compiler.
  1931. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1932. @@ -3420,32 +3315,30 @@
  1933. ... rest of stderr output deleted ...
  1934. 10q' conftest.err >conftest.er1
  1935. cat conftest.er1 >&5
  1936. - rm -f conftest.er1 conftest.err
  1937. fi
  1938. + rm -f conftest.er1 conftest.err
  1939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1940. test $ac_status = 0; }
  1941. done
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. -#include <stdio.h>
  1945. +
  1946. int
  1947. main ()
  1948. {
  1949. -FILE *f = fopen ("conftest.out", "w");
  1950. - return ferror (f) || fclose (f) != 0;
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. ac_clean_files_save=$ac_clean_files
  1956. -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  1957. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1958. # Try to create an executable without -o first, disregard a.out.
  1959. # It will help us diagnose broken compilers, and finding out an intuition
  1960. # of exeext.
  1961. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1962. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  1963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1964. +$as_echo_n "checking whether the C compiler works... " >&6; }
  1965. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1966. # The possible output files:
  1967. @@ -3507,62 +3400,28 @@
  1968. else
  1969. ac_file=''
  1970. fi
  1971. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1972. -$as_echo "$ac_file" >&6; }
  1973. if test -z "$ac_file"; then :
  1974. - $as_echo "$as_me: failed program was:" >&5
  1975. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1976. +$as_echo "no" >&6; }
  1977. +$as_echo "$as_me: failed program was:" >&5
  1978. sed 's/^/| /' conftest.$ac_ext >&5
  1979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1981. -{ as_fn_set_status 77
  1982. -as_fn_error "C compiler cannot create executables
  1983. -See \`config.log' for more details." "$LINENO" 5; }; }
  1984. +as_fn_error 77 "C compiler cannot create executables
  1985. +See \`config.log' for more details" "$LINENO" 5; }
  1986. +else
  1987. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1988. +$as_echo "yes" >&6; }
  1989. fi
  1990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1991. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  1992. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1993. +$as_echo "$ac_file" >&6; }
  1994. ac_exeext=$ac_cv_exeext
  1995. -# Check that the compiler produces executables we can run. If not, either
  1996. -# the compiler is broken, or we cross compile.
  1997. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1998. -$as_echo_n "checking whether the C compiler works... " >&6; }
  1999. -# If not cross compiling, check that we can run a simple program.
  2000. -if test "$cross_compiling" != yes; then
  2001. - if { ac_try='./$ac_file'
  2002. - { { case "(($ac_try" in
  2003. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2004. - *) ac_try_echo=$ac_try;;
  2005. -esac
  2006. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2007. -$as_echo "$ac_try_echo"; } >&5
  2008. - (eval "$ac_try") 2>&5
  2009. - ac_status=$?
  2010. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2011. - test $ac_status = 0; }; }; then
  2012. - cross_compiling=no
  2013. - else
  2014. - if test "$cross_compiling" = maybe; then
  2015. - cross_compiling=yes
  2016. - else
  2017. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2018. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2019. -as_fn_error "cannot run C compiled programs.
  2020. -If you meant to cross compile, use \`--host'.
  2021. -See \`config.log' for more details." "$LINENO" 5; }
  2022. - fi
  2023. - fi
  2024. -fi
  2025. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2026. -$as_echo "yes" >&6; }
  2027. -
  2028. -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2029. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2030. ac_clean_files=$ac_clean_files_save
  2031. -# Check that the compiler produces executables we can run. If not, either
  2032. -# the compiler is broken, or we cross compile.
  2033. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2034. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  2035. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2036. -$as_echo "$cross_compiling" >&6; }
  2037. -
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2039. $as_echo_n "checking for suffix of executables... " >&6; }
  2040. if { { ac_try="$ac_link"
  2041. @@ -3592,19 +3451,78 @@
  2042. else
  2043. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2045. -as_fn_error "cannot compute suffix of executables: cannot compile and link
  2046. -See \`config.log' for more details." "$LINENO" 5; }
  2047. +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2048. +See \`config.log' for more details" "$LINENO" 5; }
  2049. fi
  2050. -rm -f conftest$ac_cv_exeext
  2051. +rm -f conftest conftest$ac_cv_exeext
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2053. $as_echo "$ac_cv_exeext" >&6; }
  2054. rm -f conftest.$ac_ext
  2055. EXEEXT=$ac_cv_exeext
  2056. ac_exeext=$EXEEXT
  2057. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. +/* end confdefs.h. */
  2059. +#include <stdio.h>
  2060. +int
  2061. +main ()
  2062. +{
  2063. +FILE *f = fopen ("conftest.out", "w");
  2064. + return ferror (f) || fclose (f) != 0;
  2065. +
  2066. + ;
  2067. + return 0;
  2068. +}
  2069. +_ACEOF
  2070. +ac_clean_files="$ac_clean_files conftest.out"
  2071. +# Check that the compiler produces executables we can run. If not, either
  2072. +# the compiler is broken, or we cross compile.
  2073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2074. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  2075. +if test "$cross_compiling" != yes; then
  2076. + { { ac_try="$ac_link"
  2077. +case "(($ac_try" in
  2078. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2079. + *) ac_try_echo=$ac_try;;
  2080. +esac
  2081. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2082. +$as_echo "$ac_try_echo"; } >&5
  2083. + (eval "$ac_link") 2>&5
  2084. + ac_status=$?
  2085. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2086. + test $ac_status = 0; }
  2087. + if { ac_try='./conftest$ac_cv_exeext'
  2088. + { { case "(($ac_try" in
  2089. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2090. + *) ac_try_echo=$ac_try;;
  2091. +esac
  2092. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2093. +$as_echo "$ac_try_echo"; } >&5
  2094. + (eval "$ac_try") 2>&5
  2095. + ac_status=$?
  2096. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2097. + test $ac_status = 0; }; }; then
  2098. + cross_compiling=no
  2099. + else
  2100. + if test "$cross_compiling" = maybe; then
  2101. + cross_compiling=yes
  2102. + else
  2103. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2104. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2105. +as_fn_error $? "cannot run C compiled programs.
  2106. +If you meant to cross compile, use \`--host'.
  2107. +See \`config.log' for more details" "$LINENO" 5; }
  2108. + fi
  2109. + fi
  2110. +fi
  2111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2112. +$as_echo "$cross_compiling" >&6; }
  2113. +
  2114. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2115. +ac_clean_files=$ac_clean_files_save
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2117. $as_echo_n "checking for suffix of object files... " >&6; }
  2118. -if test "${ac_cv_objext+set}" = set; then :
  2119. +if ${ac_cv_objext+:} false; then :
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2123. @@ -3644,8 +3562,8 @@
  2124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2126. -as_fn_error "cannot compute suffix of object files: cannot compile
  2127. -See \`config.log' for more details." "$LINENO" 5; }
  2128. +as_fn_error $? "cannot compute suffix of object files: cannot compile
  2129. +See \`config.log' for more details" "$LINENO" 5; }
  2130. fi
  2131. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2132. fi
  2133. @@ -3655,7 +3573,7 @@
  2134. ac_objext=$OBJEXT
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2136. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2137. -if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2138. +if ${ac_cv_c_compiler_gnu+:} false; then :
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2142. @@ -3692,7 +3610,7 @@
  2143. ac_save_CFLAGS=$CFLAGS
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2145. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2146. -if test "${ac_cv_prog_cc_g+set}" = set; then :
  2147. +if ${ac_cv_prog_cc_g+:} false; then :
  2148. $as_echo_n "(cached) " >&6
  2149. else
  2150. ac_save_c_werror_flag=$ac_c_werror_flag
  2151. @@ -3770,7 +3688,7 @@
  2152. fi
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2154. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2155. -if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2156. +if ${ac_cv_prog_cc_c89+:} false; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. ac_cv_prog_cc_c89=no
  2160. @@ -3931,7 +3849,7 @@
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  2162. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2163. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  2164. +if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2168. @@ -4056,13 +3974,17 @@
  2169. +
  2170. +
  2171. +
  2172. +
  2173. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  2174. if test -n "$ac_tool_prefix"; then
  2175. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2176. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  2180. +if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. case $PKG_CONFIG in
  2184. @@ -4105,7 +4027,7 @@
  2185. set dummy pkg-config; ac_word=$2
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2187. $as_echo_n "checking for $ac_word... " >&6; }
  2188. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  2189. +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. case $ac_pt_PKG_CONFIG in
  2193. @@ -4168,7 +4090,6 @@
  2194. $as_echo "no" >&6; }
  2195. PKG_CONFIG=""
  2196. fi
  2197. -
  2198. fi
  2199. ac_ext=c
  2200. @@ -4183,7 +4104,7 @@
  2201. CPP=
  2202. fi
  2203. if test -z "$CPP"; then
  2204. - if test "${ac_cv_prog_CPP+set}" = set; then :
  2205. + if ${ac_cv_prog_CPP+:} false; then :
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. # Double quotes because CPP needs to be expanded
  2209. @@ -4213,7 +4134,7 @@
  2210. # Broken: fails on valid input.
  2211. continue
  2212. fi
  2213. -rm -f conftest.err conftest.$ac_ext
  2214. +rm -f conftest.err conftest.i conftest.$ac_ext
  2215. # OK, works on sane cases. Now check whether nonexistent headers
  2216. # can be detected and how.
  2217. @@ -4229,11 +4150,11 @@
  2218. ac_preproc_ok=:
  2219. break
  2220. fi
  2221. -rm -f conftest.err conftest.$ac_ext
  2222. +rm -f conftest.err conftest.i conftest.$ac_ext
  2223. done
  2224. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2225. -rm -f conftest.err conftest.$ac_ext
  2226. +rm -f conftest.i conftest.err conftest.$ac_ext
  2227. if $ac_preproc_ok; then :
  2228. break
  2229. fi
  2230. @@ -4272,7 +4193,7 @@
  2231. # Broken: fails on valid input.
  2232. continue
  2233. fi
  2234. -rm -f conftest.err conftest.$ac_ext
  2235. +rm -f conftest.err conftest.i conftest.$ac_ext
  2236. # OK, works on sane cases. Now check whether nonexistent headers
  2237. # can be detected and how.
  2238. @@ -4288,18 +4209,18 @@
  2239. ac_preproc_ok=:
  2240. break
  2241. fi
  2242. -rm -f conftest.err conftest.$ac_ext
  2243. +rm -f conftest.err conftest.i conftest.$ac_ext
  2244. done
  2245. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2246. -rm -f conftest.err conftest.$ac_ext
  2247. +rm -f conftest.i conftest.err conftest.$ac_ext
  2248. if $ac_preproc_ok; then :
  2249. else
  2250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2252. -as_fn_error "C preprocessor \"$CPP\" fails sanity check
  2253. -See \`config.log' for more details." "$LINENO" 5; }
  2254. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2255. +See \`config.log' for more details" "$LINENO" 5; }
  2256. fi
  2257. ac_ext=c
  2258. @@ -4311,7 +4232,7 @@
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2260. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2261. -if test "${ac_cv_path_GREP+set}" = set; then :
  2262. +if ${ac_cv_path_GREP+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -z "$GREP"; then
  2266. @@ -4360,7 +4281,7 @@
  2267. done
  2268. IFS=$as_save_IFS
  2269. if test -z "$ac_cv_path_GREP"; then
  2270. - as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2271. + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2272. fi
  2273. else
  2274. ac_cv_path_GREP=$GREP
  2275. @@ -4374,7 +4295,7 @@
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2277. $as_echo_n "checking for egrep... " >&6; }
  2278. -if test "${ac_cv_path_EGREP+set}" = set; then :
  2279. +if ${ac_cv_path_EGREP+:} false; then :
  2280. $as_echo_n "(cached) " >&6
  2281. else
  2282. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2283. @@ -4426,7 +4347,7 @@
  2284. done
  2285. IFS=$as_save_IFS
  2286. if test -z "$ac_cv_path_EGREP"; then
  2287. - as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2288. + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2289. fi
  2290. else
  2291. ac_cv_path_EGREP=$EGREP
  2292. @@ -4441,7 +4362,7 @@
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2294. $as_echo_n "checking for ANSI C header files... " >&6; }
  2295. -if test "${ac_cv_header_stdc+set}" = set; then :
  2296. +if ${ac_cv_header_stdc+:} false; then :
  2297. $as_echo_n "(cached) " >&6
  2298. else
  2299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2300. @@ -4558,8 +4479,7 @@
  2301. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2302. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  2303. "
  2304. -eval as_val=\$$as_ac_Header
  2305. - if test "x$as_val" = x""yes; then :
  2306. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2309. _ACEOF
  2310. @@ -4571,7 +4491,7 @@
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  2312. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  2313. -if test "${ac_cv_c_bigendian+set}" = set; then :
  2314. +if ${ac_cv_c_bigendian+:} false; then :
  2315. $as_echo_n "(cached) " >&6
  2316. else
  2317. ac_cv_c_bigendian=unknown
  2318. @@ -4789,7 +4709,7 @@
  2319. ;; #(
  2320. *)
  2321. - as_fn_error "unknown endianness
  2322. + as_fn_error $? "unknown endianness
  2323. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  2324. esac
  2325. @@ -5028,7 +4948,7 @@
  2326. CPP=
  2327. fi
  2328. if test -z "$CPP"; then
  2329. - if test "${ac_cv_prog_CPP+set}" = set; then :
  2330. + if ${ac_cv_prog_CPP+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. # Double quotes because CPP needs to be expanded
  2334. @@ -5058,7 +4978,7 @@
  2335. # Broken: fails on valid input.
  2336. continue
  2337. fi
  2338. -rm -f conftest.err conftest.$ac_ext
  2339. +rm -f conftest.err conftest.i conftest.$ac_ext
  2340. # OK, works on sane cases. Now check whether nonexistent headers
  2341. # can be detected and how.
  2342. @@ -5074,11 +4994,11 @@
  2343. ac_preproc_ok=:
  2344. break
  2345. fi
  2346. -rm -f conftest.err conftest.$ac_ext
  2347. +rm -f conftest.err conftest.i conftest.$ac_ext
  2348. done
  2349. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2350. -rm -f conftest.err conftest.$ac_ext
  2351. +rm -f conftest.i conftest.err conftest.$ac_ext
  2352. if $ac_preproc_ok; then :
  2353. break
  2354. fi
  2355. @@ -5117,7 +5037,7 @@
  2356. # Broken: fails on valid input.
  2357. continue
  2358. fi
  2359. -rm -f conftest.err conftest.$ac_ext
  2360. +rm -f conftest.err conftest.i conftest.$ac_ext
  2361. # OK, works on sane cases. Now check whether nonexistent headers
  2362. # can be detected and how.
  2363. @@ -5133,18 +5053,18 @@
  2364. ac_preproc_ok=:
  2365. break
  2366. fi
  2367. -rm -f conftest.err conftest.$ac_ext
  2368. +rm -f conftest.err conftest.i conftest.$ac_ext
  2369. done
  2370. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2371. -rm -f conftest.err conftest.$ac_ext
  2372. +rm -f conftest.i conftest.err conftest.$ac_ext
  2373. if $ac_preproc_ok; then :
  2374. else
  2375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2377. -as_fn_error "C preprocessor \"$CPP\" fails sanity check
  2378. -See \`config.log' for more details." "$LINENO" 5; }
  2379. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2380. +See \`config.log' for more details" "$LINENO" 5; }
  2381. fi
  2382. ac_ext=c
  2383. @@ -5168,7 +5088,7 @@
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2385. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2386. -if test "${ac_cv_path_SED+set}" = set; then :
  2387. +if ${ac_cv_path_SED+:} false; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2391. @@ -5223,7 +5143,7 @@
  2392. done
  2393. IFS=$as_save_IFS
  2394. if test -z "$ac_cv_path_SED"; then
  2395. - as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2396. + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2397. fi
  2398. else
  2399. ac_cv_path_SED=$SED
  2400. @@ -5239,7 +5159,7 @@
  2401. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2402. set x ${MAKE-make}
  2403. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2404. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2405. +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. cat >conftest.make <<\_ACEOF
  2409. @@ -5247,7 +5167,7 @@
  2410. all:
  2411. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2412. _ACEOF
  2413. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2414. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2415. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2416. *@@@%%%=?*=@@@%%%*)
  2417. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2418. @@ -5276,8 +5196,8 @@
  2419. -macro_version='2.2.6'
  2420. -macro_revision='1.3012'
  2421. +macro_version='2.4'
  2422. +macro_revision='1.3293'
  2423. @@ -5293,9 +5213,78 @@
  2424. ltmain="$ac_aux_dir/ltmain.sh"
  2425. +# Backslashify metacharacters that are still active within
  2426. +# double-quoted strings.
  2427. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2428. +
  2429. +# Same as above, but do not quote variable references.
  2430. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2431. +
  2432. +# Sed substitution to delay expansion of an escaped shell variable in a
  2433. +# double_quote_subst'ed string.
  2434. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2435. +
  2436. +# Sed substitution to delay expansion of an escaped single quote.
  2437. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2438. +
  2439. +# Sed substitution to avoid accidental globbing in evaled expressions
  2440. +no_glob_subst='s/\*/\\\*/g'
  2441. +
  2442. +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2443. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2444. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2445. +
  2446. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2447. +$as_echo_n "checking how to print strings... " >&6; }
  2448. +# Test print first, because it will be a builtin if present.
  2449. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2450. + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2451. + ECHO='print -r --'
  2452. +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2453. + ECHO='printf %s\n'
  2454. +else
  2455. + # Use this function as a fallback that always works.
  2456. + func_fallback_echo ()
  2457. + {
  2458. + eval 'cat <<_LTECHO_EOF
  2459. +$1
  2460. +_LTECHO_EOF'
  2461. + }
  2462. + ECHO='func_fallback_echo'
  2463. +fi
  2464. +
  2465. +# func_echo_all arg...
  2466. +# Invoke $ECHO with all args, space-separated.
  2467. +func_echo_all ()
  2468. +{
  2469. + $ECHO ""
  2470. +}
  2471. +
  2472. +case "$ECHO" in
  2473. + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2474. +$as_echo "printf" >&6; } ;;
  2475. + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2476. +$as_echo "print -r" >&6; } ;;
  2477. + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2478. +$as_echo "cat" >&6; } ;;
  2479. +esac
  2480. +
  2481. +
  2482. +
  2483. +
  2484. +
  2485. +
  2486. +
  2487. +
  2488. +
  2489. +
  2490. +
  2491. +
  2492. +
  2493. +
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2495. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2496. -if test "${ac_cv_path_SED+set}" = set; then :
  2497. +if ${ac_cv_path_SED+:} false; then :
  2498. $as_echo_n "(cached) " >&6
  2499. else
  2500. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2501. @@ -5350,7 +5339,7 @@
  2502. done
  2503. IFS=$as_save_IFS
  2504. if test -z "$ac_cv_path_SED"; then
  2505. - as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2506. + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2507. fi
  2508. else
  2509. ac_cv_path_SED=$SED
  2510. @@ -5377,7 +5366,7 @@
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  2512. $as_echo_n "checking for fgrep... " >&6; }
  2513. -if test "${ac_cv_path_FGREP+set}" = set; then :
  2514. +if ${ac_cv_path_FGREP+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  2518. @@ -5429,7 +5418,7 @@
  2519. done
  2520. IFS=$as_save_IFS
  2521. if test -z "$ac_cv_path_FGREP"; then
  2522. - as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2523. + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2524. fi
  2525. else
  2526. ac_cv_path_FGREP=$FGREP
  2527. @@ -5508,7 +5497,7 @@
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  2529. $as_echo_n "checking for non-GNU ld... " >&6; }
  2530. fi
  2531. -if test "${lt_cv_path_LD+set}" = set; then :
  2532. +if ${lt_cv_path_LD+:} false; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test -z "$LD"; then
  2536. @@ -5545,10 +5534,10 @@
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2538. $as_echo "no" >&6; }
  2539. fi
  2540. -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  2541. +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  2543. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  2544. -if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  2545. +if ${lt_cv_prog_gnu_ld+:} false; then :
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  2549. @@ -5575,7 +5564,7 @@
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  2551. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  2552. -if test "${lt_cv_path_NM+set}" = set; then :
  2553. +if ${lt_cv_path_NM+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$NM"; then
  2557. @@ -5628,14 +5617,17 @@
  2558. NM="$lt_cv_path_NM"
  2559. else
  2560. # Didn't find any BSD compatible name lister, look for dumpbin.
  2561. - if test -n "$ac_tool_prefix"; then
  2562. - for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  2563. + if test -n "$DUMPBIN"; then :
  2564. + # Let the user override the test.
  2565. + else
  2566. + if test -n "$ac_tool_prefix"; then
  2567. + for ac_prog in dumpbin "link -dump"
  2568. do
  2569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. -if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  2574. +if ${ac_cv_prog_DUMPBIN+:} false; then :
  2575. $as_echo_n "(cached) " >&6
  2576. else
  2577. if test -n "$DUMPBIN"; then
  2578. @@ -5673,13 +5665,13 @@
  2579. fi
  2580. if test -z "$DUMPBIN"; then
  2581. ac_ct_DUMPBIN=$DUMPBIN
  2582. - for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  2583. + for ac_prog in dumpbin "link -dump"
  2584. do
  2585. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2586. set dummy $ac_prog; ac_word=$2
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2588. $as_echo_n "checking for $ac_word... " >&6; }
  2589. -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  2590. +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$ac_ct_DUMPBIN"; then
  2594. @@ -5728,6 +5720,15 @@
  2595. fi
  2596. fi
  2597. + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  2598. + *COFF*)
  2599. + DUMPBIN="$DUMPBIN -symbols"
  2600. + ;;
  2601. + *)
  2602. + DUMPBIN=:
  2603. + ;;
  2604. + esac
  2605. + fi
  2606. if test "$DUMPBIN" != ":"; then
  2607. NM="$DUMPBIN"
  2608. @@ -5742,18 +5743,18 @@
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  2610. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  2611. -if test "${lt_cv_nm_interface+set}" = set; then :
  2612. +if ${lt_cv_nm_interface+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. lt_cv_nm_interface="BSD nm"
  2616. echo "int some_variable = 0;" > conftest.$ac_ext
  2617. - (eval echo "\"\$as_me:5750: $ac_compile\"" >&5)
  2618. + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  2619. (eval "$ac_compile" 2>conftest.err)
  2620. cat conftest.err >&5
  2621. - (eval echo "\"\$as_me:5753: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  2622. + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  2623. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  2624. cat conftest.err >&5
  2625. - (eval echo "\"\$as_me:5756: output\"" >&5)
  2626. + (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  2627. cat conftest.out >&5
  2628. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  2629. lt_cv_nm_interface="MS dumpbin"
  2630. @@ -5766,7 +5767,7 @@
  2631. # find the maximum length of command line arguments
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  2633. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  2634. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  2635. +if ${lt_cv_sys_max_cmd_len+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. i=0
  2639. @@ -5799,6 +5800,11 @@
  2640. lt_cv_sys_max_cmd_len=8192;
  2641. ;;
  2642. + mint*)
  2643. + # On MiNT this can take a long time and run out of memory.
  2644. + lt_cv_sys_max_cmd_len=8192;
  2645. + ;;
  2646. +
  2647. amigaos*)
  2648. # On AmigaOS with pdksh, this test takes hours, literally.
  2649. # So we just punt and use a minimum line length of 8192.
  2650. @@ -5863,8 +5869,8 @@
  2651. # If test is not a shell built-in, we'll probably end up computing a
  2652. # maximum length that is only half of the actual maximum length, but
  2653. # we can't tell.
  2654. - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2655. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2656. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  2657. + = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  2658. test $i != 17 # 1/2 MB should be enough
  2659. do
  2660. i=`expr $i + 1`
  2661. @@ -5906,8 +5912,8 @@
  2662. # Try some XSI features
  2663. xsi_shell=no
  2664. ( _lt_dummy="a/b/c"
  2665. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  2666. - = c,a/b,, \
  2667. + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  2668. + = c,a/b,b/c, \
  2669. && eval 'test $(( 1 + 1 )) -eq 2 \
  2670. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  2671. && xsi_shell=yes
  2672. @@ -5956,24 +5962,103 @@
  2673. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  2674. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  2675. -if test "${lt_cv_ld_reload_flag+set}" = set; then :
  2676. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  2677. +$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  2678. +if ${lt_cv_to_host_file_cmd+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. - lt_cv_ld_reload_flag='-r'
  2682. -fi
  2683. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  2684. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  2685. -reload_flag=$lt_cv_ld_reload_flag
  2686. -case $reload_flag in
  2687. -"" | " "*) ;;
  2688. -*) reload_flag=" $reload_flag" ;;
  2689. -esac
  2690. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2691. -case $host_os in
  2692. - darwin*)
  2693. - if test "$GCC" = yes; then
  2694. + case $host in
  2695. + *-*-mingw* )
  2696. + case $build in
  2697. + *-*-mingw* ) # actually msys
  2698. + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  2699. + ;;
  2700. + *-*-cygwin* )
  2701. + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  2702. + ;;
  2703. + * ) # otherwise, assume *nix
  2704. + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  2705. + ;;
  2706. + esac
  2707. + ;;
  2708. + *-*-cygwin* )
  2709. + case $build in
  2710. + *-*-mingw* ) # actually msys
  2711. + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  2712. + ;;
  2713. + *-*-cygwin* )
  2714. + lt_cv_to_host_file_cmd=func_convert_file_noop
  2715. + ;;
  2716. + * ) # otherwise, assume *nix
  2717. + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  2718. + ;;
  2719. + esac
  2720. + ;;
  2721. + * ) # unhandled hosts (and "normal" native builds)
  2722. + lt_cv_to_host_file_cmd=func_convert_file_noop
  2723. + ;;
  2724. +esac
  2725. +
  2726. +fi
  2727. +
  2728. +to_host_file_cmd=$lt_cv_to_host_file_cmd
  2729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  2730. +$as_echo "$lt_cv_to_host_file_cmd" >&6; }
  2731. +
  2732. +
  2733. +
  2734. +
  2735. +
  2736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  2737. +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  2738. +if ${lt_cv_to_tool_file_cmd+:} false; then :
  2739. + $as_echo_n "(cached) " >&6
  2740. +else
  2741. + #assume ordinary cross tools, or native build.
  2742. +lt_cv_to_tool_file_cmd=func_convert_file_noop
  2743. +case $host in
  2744. + *-*-mingw* )
  2745. + case $build in
  2746. + *-*-mingw* ) # actually msys
  2747. + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  2748. + ;;
  2749. + esac
  2750. + ;;
  2751. +esac
  2752. +
  2753. +fi
  2754. +
  2755. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  2756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  2757. +$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  2758. +
  2759. +
  2760. +
  2761. +
  2762. +
  2763. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  2764. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  2765. +if ${lt_cv_ld_reload_flag+:} false; then :
  2766. + $as_echo_n "(cached) " >&6
  2767. +else
  2768. + lt_cv_ld_reload_flag='-r'
  2769. +fi
  2770. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  2771. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  2772. +reload_flag=$lt_cv_ld_reload_flag
  2773. +case $reload_flag in
  2774. +"" | " "*) ;;
  2775. +*) reload_flag=" $reload_flag" ;;
  2776. +esac
  2777. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2778. +case $host_os in
  2779. + cygwin* | mingw* | pw32* | cegcc*)
  2780. + if test "$GCC" != yes; then
  2781. + reload_cmds=false
  2782. + fi
  2783. + ;;
  2784. + darwin*)
  2785. + if test "$GCC" = yes; then
  2786. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2787. else
  2788. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2789. @@ -5994,7 +6079,7 @@
  2790. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2792. $as_echo_n "checking for $ac_word... " >&6; }
  2793. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  2794. +if ${ac_cv_prog_OBJDUMP+:} false; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. if test -n "$OBJDUMP"; then
  2798. @@ -6034,7 +6119,7 @@
  2799. set dummy objdump; ac_word=$2
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2801. $as_echo_n "checking for $ac_word... " >&6; }
  2802. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  2803. +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$ac_ct_OBJDUMP"; then
  2807. @@ -6090,7 +6175,7 @@
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  2809. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  2810. -if test "${lt_cv_deplibs_check_method+set}" = set; then :
  2811. +if ${lt_cv_deplibs_check_method+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2815. @@ -6132,16 +6217,18 @@
  2816. # Base MSYS/MinGW do not provide the 'file' command needed by
  2817. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2818. # unless we find 'file', for example because we are cross-compiling.
  2819. - if ( file / ) >/dev/null 2>&1; then
  2820. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2821. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2822. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2823. lt_cv_file_magic_cmd='func_win32_libid'
  2824. else
  2825. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2826. + # Keep this pattern in sync with the one in func_win32_libid.
  2827. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2828. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2829. fi
  2830. ;;
  2831. -cegcc)
  2832. +cegcc*)
  2833. # use the weaker test based on 'objdump'. See mingw*.
  2834. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2835. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2836. @@ -6171,6 +6258,10 @@
  2837. lt_cv_deplibs_check_method=pass_all
  2838. ;;
  2839. +haiku*)
  2840. + lt_cv_deplibs_check_method=pass_all
  2841. + ;;
  2842. +
  2843. hpux10.20* | hpux11*)
  2844. lt_cv_file_magic_cmd=/usr/bin/file
  2845. case $host_cpu in
  2846. @@ -6179,11 +6270,11 @@
  2847. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2848. ;;
  2849. hppa*64*)
  2850. - 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]'
  2851. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  2852. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2853. ;;
  2854. *)
  2855. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2856. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  2857. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2858. ;;
  2859. esac
  2860. @@ -6205,11 +6296,11 @@
  2861. ;;
  2862. # This must be Linux ELF.
  2863. -linux* | k*bsd*-gnu)
  2864. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2865. lt_cv_deplibs_check_method=pass_all
  2866. ;;
  2867. -netbsd* | netbsdelf*-gnu)
  2868. +netbsd*)
  2869. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2870. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2871. else
  2872. @@ -6286,6 +6377,21 @@
  2873. fi
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  2875. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  2876. +
  2877. +file_magic_glob=
  2878. +want_nocaseglob=no
  2879. +if test "$build" = "$host"; then
  2880. + case $host_os in
  2881. + mingw* | pw32*)
  2882. + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  2883. + want_nocaseglob=yes
  2884. + else
  2885. + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  2886. + fi
  2887. + ;;
  2888. + esac
  2889. +fi
  2890. +
  2891. file_magic_cmd=$lt_cv_file_magic_cmd
  2892. deplibs_check_method=$lt_cv_deplibs_check_method
  2893. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2894. @@ -6301,12 +6407,162 @@
  2895. +
  2896. +
  2897. +
  2898. +
  2899. +
  2900. +
  2901. +
  2902. +
  2903. +
  2904. +
  2905. +if test -n "$ac_tool_prefix"; then
  2906. + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  2907. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  2908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2909. +$as_echo_n "checking for $ac_word... " >&6; }
  2910. +if ${ac_cv_prog_DLLTOOL+:} false; then :
  2911. + $as_echo_n "(cached) " >&6
  2912. +else
  2913. + if test -n "$DLLTOOL"; then
  2914. + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  2915. +else
  2916. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. +for as_dir in $PATH
  2918. +do
  2919. + IFS=$as_save_IFS
  2920. + test -z "$as_dir" && as_dir=.
  2921. + for ac_exec_ext in '' $ac_executable_extensions; do
  2922. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2923. + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  2924. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2925. + break 2
  2926. + fi
  2927. +done
  2928. + done
  2929. +IFS=$as_save_IFS
  2930. +
  2931. +fi
  2932. +fi
  2933. +DLLTOOL=$ac_cv_prog_DLLTOOL
  2934. +if test -n "$DLLTOOL"; then
  2935. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  2936. +$as_echo "$DLLTOOL" >&6; }
  2937. +else
  2938. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2939. +$as_echo "no" >&6; }
  2940. +fi
  2941. +
  2942. +
  2943. +fi
  2944. +if test -z "$ac_cv_prog_DLLTOOL"; then
  2945. + ac_ct_DLLTOOL=$DLLTOOL
  2946. + # Extract the first word of "dlltool", so it can be a program name with args.
  2947. +set dummy dlltool; ac_word=$2
  2948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. +$as_echo_n "checking for $ac_word... " >&6; }
  2950. +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  2951. + $as_echo_n "(cached) " >&6
  2952. +else
  2953. + if test -n "$ac_ct_DLLTOOL"; then
  2954. + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  2955. +else
  2956. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. +for as_dir in $PATH
  2958. +do
  2959. + IFS=$as_save_IFS
  2960. + test -z "$as_dir" && as_dir=.
  2961. + for ac_exec_ext in '' $ac_executable_extensions; do
  2962. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2963. + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  2964. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. + break 2
  2966. + fi
  2967. +done
  2968. + done
  2969. +IFS=$as_save_IFS
  2970. +
  2971. +fi
  2972. +fi
  2973. +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  2974. +if test -n "$ac_ct_DLLTOOL"; then
  2975. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  2976. +$as_echo "$ac_ct_DLLTOOL" >&6; }
  2977. +else
  2978. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. +$as_echo "no" >&6; }
  2980. +fi
  2981. +
  2982. + if test "x$ac_ct_DLLTOOL" = x; then
  2983. + DLLTOOL="false"
  2984. + else
  2985. + case $cross_compiling:$ac_tool_warned in
  2986. +yes:)
  2987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2988. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2989. +ac_tool_warned=yes ;;
  2990. +esac
  2991. + DLLTOOL=$ac_ct_DLLTOOL
  2992. + fi
  2993. +else
  2994. + DLLTOOL="$ac_cv_prog_DLLTOOL"
  2995. +fi
  2996. +
  2997. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  2998. +
  2999. +
  3000. +
  3001. +
  3002. +
  3003. +
  3004. +
  3005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  3006. +$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  3007. +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  3008. + $as_echo_n "(cached) " >&6
  3009. +else
  3010. + lt_cv_sharedlib_from_linklib_cmd='unknown'
  3011. +
  3012. +case $host_os in
  3013. +cygwin* | mingw* | pw32* | cegcc*)
  3014. + # two different shell functions defined in ltmain.sh
  3015. + # decide which to use based on capabilities of $DLLTOOL
  3016. + case `$DLLTOOL --help 2>&1` in
  3017. + *--identify-strict*)
  3018. + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3019. + ;;
  3020. + *)
  3021. + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3022. + ;;
  3023. + esac
  3024. + ;;
  3025. +*)
  3026. + # fallback: assume linklib IS sharedlib
  3027. + lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3028. + ;;
  3029. +esac
  3030. +
  3031. +fi
  3032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  3033. +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  3034. +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3035. +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3036. +
  3037. +
  3038. +
  3039. +
  3040. +
  3041. +
  3042. +
  3043. if test -n "$ac_tool_prefix"; then
  3044. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3045. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  3046. + for ac_prog in ar
  3047. + do
  3048. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3049. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3051. $as_echo_n "checking for $ac_word... " >&6; }
  3052. -if test "${ac_cv_prog_AR+set}" = set; then :
  3053. +if ${ac_cv_prog_AR+:} false; then :
  3054. $as_echo_n "(cached) " >&6
  3055. else
  3056. if test -n "$AR"; then
  3057. @@ -6319,7 +6575,7 @@
  3058. test -z "$as_dir" && as_dir=.
  3059. for ac_exec_ext in '' $ac_executable_extensions; do
  3060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3061. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  3062. + ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. @@ -6339,14 +6595,18 @@
  3067. fi
  3068. + test -n "$AR" && break
  3069. + done
  3070. fi
  3071. -if test -z "$ac_cv_prog_AR"; then
  3072. +if test -z "$AR"; then
  3073. ac_ct_AR=$AR
  3074. - # Extract the first word of "ar", so it can be a program name with args.
  3075. -set dummy ar; ac_word=$2
  3076. + for ac_prog in ar
  3077. +do
  3078. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3079. +set dummy $ac_prog; ac_word=$2
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3081. $as_echo_n "checking for $ac_word... " >&6; }
  3082. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  3083. +if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -n "$ac_ct_AR"; then
  3087. @@ -6359,7 +6619,7 @@
  3088. test -z "$as_dir" && as_dir=.
  3089. for ac_exec_ext in '' $ac_executable_extensions; do
  3090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3091. - ac_cv_prog_ac_ct_AR="ar"
  3092. + ac_cv_prog_ac_ct_AR="$ac_prog"
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3094. break 2
  3095. fi
  3096. @@ -6378,6 +6638,10 @@
  3097. $as_echo "no" >&6; }
  3098. fi
  3099. +
  3100. + test -n "$ac_ct_AR" && break
  3101. +done
  3102. +
  3103. if test "x$ac_ct_AR" = x; then
  3104. AR="false"
  3105. else
  3106. @@ -6389,12 +6653,14 @@
  3107. esac
  3108. AR=$ac_ct_AR
  3109. fi
  3110. -else
  3111. - AR="$ac_cv_prog_AR"
  3112. fi
  3113. -test -z "$AR" && AR=ar
  3114. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  3115. +: ${AR=ar}
  3116. +: ${AR_FLAGS=cru}
  3117. +
  3118. +
  3119. +
  3120. +
  3121. @@ -6402,6 +6668,60 @@
  3122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  3123. +$as_echo_n "checking for archiver @FILE support... " >&6; }
  3124. +if ${lt_cv_ar_at_file+:} false; then :
  3125. + $as_echo_n "(cached) " >&6
  3126. +else
  3127. + lt_cv_ar_at_file=no
  3128. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. +/* end confdefs.h. */
  3130. +
  3131. +int
  3132. +main ()
  3133. +{
  3134. +
  3135. + ;
  3136. + return 0;
  3137. +}
  3138. +_ACEOF
  3139. +if ac_fn_c_try_compile "$LINENO"; then :
  3140. + echo conftest.$ac_objext > conftest.lst
  3141. + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  3142. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  3143. + (eval $lt_ar_try) 2>&5
  3144. + ac_status=$?
  3145. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3146. + test $ac_status = 0; }
  3147. + if test "$ac_status" -eq 0; then
  3148. + # Ensure the archiver fails upon bogus file names.
  3149. + rm -f conftest.$ac_objext libconftest.a
  3150. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  3151. + (eval $lt_ar_try) 2>&5
  3152. + ac_status=$?
  3153. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3154. + test $ac_status = 0; }
  3155. + if test "$ac_status" -ne 0; then
  3156. + lt_cv_ar_at_file=@
  3157. + fi
  3158. + fi
  3159. + rm -f conftest.* libconftest.a
  3160. +
  3161. +fi
  3162. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3163. +
  3164. +fi
  3165. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  3166. +$as_echo "$lt_cv_ar_at_file" >&6; }
  3167. +
  3168. +if test "x$lt_cv_ar_at_file" = xno; then
  3169. + archiver_list_spec=
  3170. +else
  3171. + archiver_list_spec=$lt_cv_ar_at_file
  3172. +fi
  3173. +
  3174. +
  3175. +
  3176. @@ -6411,7 +6731,7 @@
  3177. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. -if test "${ac_cv_prog_STRIP+set}" = set; then :
  3181. +if ${ac_cv_prog_STRIP+:} false; then :
  3182. $as_echo_n "(cached) " >&6
  3183. else
  3184. if test -n "$STRIP"; then
  3185. @@ -6451,7 +6771,7 @@
  3186. set dummy strip; ac_word=$2
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3188. $as_echo_n "checking for $ac_word... " >&6; }
  3189. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3190. +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. if test -n "$ac_ct_STRIP"; then
  3194. @@ -6510,7 +6830,7 @@
  3195. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3197. $as_echo_n "checking for $ac_word... " >&6; }
  3198. -if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3199. +if ${ac_cv_prog_RANLIB+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. if test -n "$RANLIB"; then
  3203. @@ -6550,7 +6870,7 @@
  3204. set dummy ranlib; ac_word=$2
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3206. $as_echo_n "checking for $ac_word... " >&6; }
  3207. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3208. +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. if test -n "$ac_ct_RANLIB"; then
  3212. @@ -6621,6 +6941,18 @@
  3213. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  3214. fi
  3215. +case $host_os in
  3216. + darwin*)
  3217. + lock_old_archive_extraction=yes ;;
  3218. + *)
  3219. + lock_old_archive_extraction=no ;;
  3220. +esac
  3221. +
  3222. +
  3223. +
  3224. +
  3225. +
  3226. +
  3227. @@ -6667,7 +6999,7 @@
  3228. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  3230. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  3231. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  3232. +if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. @@ -6728,8 +7060,8 @@
  3236. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3237. # Transform an extracted symbol line into symbol name and symbol address
  3238. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3239. -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'"
  3240. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3241. +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'"
  3242. # Handle CRLF in mingw tool chain
  3243. opt_cr=
  3244. @@ -6765,6 +7097,7 @@
  3245. else
  3246. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3247. fi
  3248. + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3249. # Check to see that the pipe works correctly.
  3250. pipe_works=no
  3251. @@ -6790,8 +7123,8 @@
  3252. test $ac_status = 0; }; then
  3253. # Now try to grab the symbols.
  3254. nlist=conftest.nm
  3255. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  3256. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  3257. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  3258. + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  3259. ac_status=$?
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3261. test $ac_status = 0; } && test -s "$nlist"; then
  3262. @@ -6806,6 +7139,18 @@
  3263. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3264. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3265. cat <<_LT_EOF > conftest.$ac_ext
  3266. +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3267. +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3268. +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  3269. + relocations are performed -- see ld's documentation on pseudo-relocs. */
  3270. +# define LT_DLSYM_CONST
  3271. +#elif defined(__osf__)
  3272. +/* This system does not cope well with relocations in const data. */
  3273. +# define LT_DLSYM_CONST
  3274. +#else
  3275. +# define LT_DLSYM_CONST const
  3276. +#endif
  3277. +
  3278. #ifdef __cplusplus
  3279. extern "C" {
  3280. #endif
  3281. @@ -6817,7 +7162,7 @@
  3282. cat <<_LT_EOF >> conftest.$ac_ext
  3283. /* The mapping between symbol names and symbols. */
  3284. -const struct {
  3285. +LT_DLSYM_CONST struct {
  3286. const char *name;
  3287. void *address;
  3288. }
  3289. @@ -6843,8 +7188,8 @@
  3290. _LT_EOF
  3291. # Now try linking the two files.
  3292. mv conftest.$ac_objext conftstm.$ac_objext
  3293. - lt_save_LIBS="$LIBS"
  3294. - lt_save_CFLAGS="$CFLAGS"
  3295. + lt_globsym_save_LIBS=$LIBS
  3296. + lt_globsym_save_CFLAGS=$CFLAGS
  3297. LIBS="conftstm.$ac_objext"
  3298. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  3299. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3300. @@ -6854,8 +7199,8 @@
  3301. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  3302. pipe_works=yes
  3303. fi
  3304. - LIBS="$lt_save_LIBS"
  3305. - CFLAGS="$lt_save_CFLAGS"
  3306. + LIBS=$lt_globsym_save_LIBS
  3307. + CFLAGS=$lt_globsym_save_CFLAGS
  3308. else
  3309. echo "cannot find nm_test_func in $nlist" >&5
  3310. fi
  3311. @@ -6892,6 +7237,20 @@
  3312. $as_echo "ok" >&6; }
  3313. fi
  3314. +# Response file support.
  3315. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3316. + nm_file_list_spec='@'
  3317. +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  3318. + nm_file_list_spec='@'
  3319. +fi
  3320. +
  3321. +
  3322. +
  3323. +
  3324. +
  3325. +
  3326. +
  3327. +
  3328. @@ -6911,6 +7270,41 @@
  3329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  3330. +$as_echo_n "checking for sysroot... " >&6; }
  3331. +
  3332. +# Check whether --with-sysroot was given.
  3333. +if test "${with_sysroot+set}" = set; then :
  3334. + withval=$with_sysroot;
  3335. +else
  3336. + with_sysroot=no
  3337. +fi
  3338. +
  3339. +
  3340. +lt_sysroot=
  3341. +case ${with_sysroot} in #(
  3342. + yes)
  3343. + if test "$GCC" = yes; then
  3344. + lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  3345. + fi
  3346. + ;; #(
  3347. + /*)
  3348. + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  3349. + ;; #(
  3350. + no|'')
  3351. + ;; #(
  3352. + *)
  3353. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  3354. +$as_echo "${with_sysroot}" >&6; }
  3355. + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  3356. + ;;
  3357. +esac
  3358. +
  3359. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  3360. +$as_echo "${lt_sysroot:-no}" >&6; }
  3361. +
  3362. +
  3363. +
  3364. # Check whether --enable-libtool-lock was given.
  3365. @@ -6944,7 +7338,7 @@
  3366. ;;
  3367. *-*-irix6*)
  3368. # Find out which ABI we are using.
  3369. - echo '#line 6947 "configure"' > conftest.$ac_ext
  3370. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  3371. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  3372. (eval $ac_compile) 2>&5
  3373. ac_status=$?
  3374. @@ -7038,7 +7432,7 @@
  3375. CFLAGS="$CFLAGS -belf"
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  3377. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  3378. -if test "${lt_cv_cc_needs_belf+set}" = set; then :
  3379. +if ${lt_cv_cc_needs_belf+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. ac_ext=c
  3383. @@ -7100,11 +7494,128 @@
  3384. ;;
  3385. esac
  3386. fi
  3387. - rm -rf conftest*
  3388. - ;;
  3389. + rm -rf conftest*
  3390. + ;;
  3391. +esac
  3392. +
  3393. +need_locks="$enable_libtool_lock"
  3394. +
  3395. +if test -n "$ac_tool_prefix"; then
  3396. + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  3397. +set dummy ${ac_tool_prefix}mt; ac_word=$2
  3398. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3399. +$as_echo_n "checking for $ac_word... " >&6; }
  3400. +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  3401. + $as_echo_n "(cached) " >&6
  3402. +else
  3403. + if test -n "$MANIFEST_TOOL"; then
  3404. + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  3405. +else
  3406. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3407. +for as_dir in $PATH
  3408. +do
  3409. + IFS=$as_save_IFS
  3410. + test -z "$as_dir" && as_dir=.
  3411. + for ac_exec_ext in '' $ac_executable_extensions; do
  3412. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3413. + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  3414. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3415. + break 2
  3416. + fi
  3417. +done
  3418. + done
  3419. +IFS=$as_save_IFS
  3420. +
  3421. +fi
  3422. +fi
  3423. +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  3424. +if test -n "$MANIFEST_TOOL"; then
  3425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  3426. +$as_echo "$MANIFEST_TOOL" >&6; }
  3427. +else
  3428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3429. +$as_echo "no" >&6; }
  3430. +fi
  3431. +
  3432. +
  3433. +fi
  3434. +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  3435. + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  3436. + # Extract the first word of "mt", so it can be a program name with args.
  3437. +set dummy mt; ac_word=$2
  3438. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3439. +$as_echo_n "checking for $ac_word... " >&6; }
  3440. +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  3441. + $as_echo_n "(cached) " >&6
  3442. +else
  3443. + if test -n "$ac_ct_MANIFEST_TOOL"; then
  3444. + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  3445. +else
  3446. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. +for as_dir in $PATH
  3448. +do
  3449. + IFS=$as_save_IFS
  3450. + test -z "$as_dir" && as_dir=.
  3451. + for ac_exec_ext in '' $ac_executable_extensions; do
  3452. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3453. + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  3454. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3455. + break 2
  3456. + fi
  3457. +done
  3458. + done
  3459. +IFS=$as_save_IFS
  3460. +
  3461. +fi
  3462. +fi
  3463. +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  3464. +if test -n "$ac_ct_MANIFEST_TOOL"; then
  3465. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  3466. +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  3467. +else
  3468. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. +$as_echo "no" >&6; }
  3470. +fi
  3471. +
  3472. + if test "x$ac_ct_MANIFEST_TOOL" = x; then
  3473. + MANIFEST_TOOL=":"
  3474. + else
  3475. + case $cross_compiling:$ac_tool_warned in
  3476. +yes:)
  3477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3478. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3479. +ac_tool_warned=yes ;;
  3480. esac
  3481. + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  3482. + fi
  3483. +else
  3484. + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  3485. +fi
  3486. +
  3487. +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3488. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  3489. +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  3490. +if ${lt_cv_path_mainfest_tool+:} false; then :
  3491. + $as_echo_n "(cached) " >&6
  3492. +else
  3493. + lt_cv_path_mainfest_tool=no
  3494. + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  3495. + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3496. + cat conftest.err >&5
  3497. + if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3498. + lt_cv_path_mainfest_tool=yes
  3499. + fi
  3500. + rm -f conftest*
  3501. +fi
  3502. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  3503. +$as_echo "$lt_cv_path_mainfest_tool" >&6; }
  3504. +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3505. + MANIFEST_TOOL=:
  3506. +fi
  3507. +
  3508. +
  3509. +
  3510. -need_locks="$enable_libtool_lock"
  3511. case $host_os in
  3512. @@ -7114,7 +7625,7 @@
  3513. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3515. $as_echo_n "checking for $ac_word... " >&6; }
  3516. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  3517. +if ${ac_cv_prog_DSYMUTIL+:} false; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -n "$DSYMUTIL"; then
  3521. @@ -7154,7 +7665,7 @@
  3522. set dummy dsymutil; ac_word=$2
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3524. $as_echo_n "checking for $ac_word... " >&6; }
  3525. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  3526. +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. if test -n "$ac_ct_DSYMUTIL"; then
  3530. @@ -7206,7 +7717,7 @@
  3531. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. -if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  3535. +if ${ac_cv_prog_NMEDIT+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if test -n "$NMEDIT"; then
  3539. @@ -7246,7 +7757,7 @@
  3540. set dummy nmedit; ac_word=$2
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3542. $as_echo_n "checking for $ac_word... " >&6; }
  3543. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  3544. +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if test -n "$ac_ct_NMEDIT"; then
  3548. @@ -7298,7 +7809,7 @@
  3549. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3551. $as_echo_n "checking for $ac_word... " >&6; }
  3552. -if test "${ac_cv_prog_LIPO+set}" = set; then :
  3553. +if ${ac_cv_prog_LIPO+:} false; then :
  3554. $as_echo_n "(cached) " >&6
  3555. else
  3556. if test -n "$LIPO"; then
  3557. @@ -7338,7 +7849,7 @@
  3558. set dummy lipo; ac_word=$2
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3560. $as_echo_n "checking for $ac_word... " >&6; }
  3561. -if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  3562. +if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$ac_ct_LIPO"; then
  3566. @@ -7390,7 +7901,7 @@
  3567. set dummy ${ac_tool_prefix}otool; ac_word=$2
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. $as_echo_n "checking for $ac_word... " >&6; }
  3570. -if test "${ac_cv_prog_OTOOL+set}" = set; then :
  3571. +if ${ac_cv_prog_OTOOL+:} false; then :
  3572. $as_echo_n "(cached) " >&6
  3573. else
  3574. if test -n "$OTOOL"; then
  3575. @@ -7430,7 +7941,7 @@
  3576. set dummy otool; ac_word=$2
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. $as_echo_n "checking for $ac_word... " >&6; }
  3579. -if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  3580. +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. if test -n "$ac_ct_OTOOL"; then
  3584. @@ -7482,7 +7993,7 @@
  3585. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3587. $as_echo_n "checking for $ac_word... " >&6; }
  3588. -if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  3589. +if ${ac_cv_prog_OTOOL64+:} false; then :
  3590. $as_echo_n "(cached) " >&6
  3591. else
  3592. if test -n "$OTOOL64"; then
  3593. @@ -7522,7 +8033,7 @@
  3594. set dummy otool64; ac_word=$2
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. $as_echo_n "checking for $ac_word... " >&6; }
  3597. -if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  3598. +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -n "$ac_ct_OTOOL64"; then
  3602. @@ -7597,7 +8108,7 @@
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  3604. $as_echo_n "checking for -single_module linker flag... " >&6; }
  3605. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  3606. +if ${lt_cv_apple_cc_single_mod+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. lt_cv_apple_cc_single_mod=no
  3610. @@ -7626,7 +8137,7 @@
  3611. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  3613. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  3614. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  3615. +if ${lt_cv_ld_exported_symbols_list+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. lt_cv_ld_exported_symbols_list=no
  3619. @@ -7656,6 +8167,38 @@
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  3622. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  3623. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  3624. +$as_echo_n "checking for -force_load linker flag... " >&6; }
  3625. +if ${lt_cv_ld_force_load+:} false; then :
  3626. + $as_echo_n "(cached) " >&6
  3627. +else
  3628. + lt_cv_ld_force_load=no
  3629. + cat > conftest.c << _LT_EOF
  3630. +int forced_loaded() { return 2;}
  3631. +_LT_EOF
  3632. + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  3633. + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  3634. + echo "$AR cru libconftest.a conftest.o" >&5
  3635. + $AR cru libconftest.a conftest.o 2>&5
  3636. + echo "$RANLIB libconftest.a" >&5
  3637. + $RANLIB libconftest.a 2>&5
  3638. + cat > conftest.c << _LT_EOF
  3639. +int main() { return 0;}
  3640. +_LT_EOF
  3641. + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  3642. + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  3643. + _lt_result=$?
  3644. + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  3645. + lt_cv_ld_force_load=yes
  3646. + else
  3647. + cat conftest.err >&5
  3648. + fi
  3649. + rm -f conftest.err libconftest.a conftest conftest.c
  3650. + rm -rf conftest.dSYM
  3651. +
  3652. +fi
  3653. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  3654. +$as_echo "$lt_cv_ld_force_load" >&6; }
  3655. case $host_os in
  3656. rhapsody* | darwin1.[012])
  3657. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  3658. @@ -7683,7 +8226,7 @@
  3659. else
  3660. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3661. fi
  3662. - if test "$DSYMUTIL" != ":"; then
  3663. + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  3664. _lt_dsymutil='~$DSYMUTIL $lib || :'
  3665. else
  3666. _lt_dsymutil=
  3667. @@ -7695,7 +8238,7 @@
  3668. do :
  3669. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  3670. "
  3671. -if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  3672. +if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  3673. cat >>confdefs.h <<_ACEOF
  3674. #define HAVE_DLFCN_H 1
  3675. _ACEOF
  3676. @@ -7706,17 +8249,19 @@
  3677. +
  3678. +
  3679. # Set options
  3680. enable_win32_dll=yes
  3681. case $host in
  3682. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3683. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3684. if test -n "$ac_tool_prefix"; then
  3685. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3686. set dummy ${ac_tool_prefix}as; ac_word=$2
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. $as_echo_n "checking for $ac_word... " >&6; }
  3689. -if test "${ac_cv_prog_AS+set}" = set; then :
  3690. +if ${ac_cv_prog_AS+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. if test -n "$AS"; then
  3694. @@ -7756,7 +8301,7 @@
  3695. set dummy as; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3699. +if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if test -n "$ac_ct_AS"; then
  3703. @@ -7808,7 +8353,7 @@
  3704. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3706. $as_echo_n "checking for $ac_word... " >&6; }
  3707. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3708. +if ${ac_cv_prog_DLLTOOL+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$DLLTOOL"; then
  3712. @@ -7848,7 +8393,7 @@
  3713. set dummy dlltool; ac_word=$2
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3715. $as_echo_n "checking for $ac_word... " >&6; }
  3716. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3717. +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. if test -n "$ac_ct_DLLTOOL"; then
  3721. @@ -7900,7 +8445,7 @@
  3722. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3724. $as_echo_n "checking for $ac_word... " >&6; }
  3725. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3726. +if ${ac_cv_prog_OBJDUMP+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. if test -n "$OBJDUMP"; then
  3730. @@ -7940,7 +8485,7 @@
  3731. set dummy objdump; ac_word=$2
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3733. $as_echo_n "checking for $ac_word... " >&6; }
  3734. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3735. +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. if test -n "$ac_ct_OBJDUMP"; then
  3739. @@ -8156,6 +8701,7 @@
  3740. +
  3741. test -z "$LN_S" && LN_S="ln -s"
  3742. @@ -8177,7 +8723,7 @@
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  3744. $as_echo_n "checking for objdir... " >&6; }
  3745. -if test "${lt_cv_objdir+set}" = set; then :
  3746. +if ${lt_cv_objdir+:} false; then :
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. rm -f .libs 2>/dev/null
  3750. @@ -8205,19 +8751,6 @@
  3751. -
  3752. -
  3753. -
  3754. -
  3755. -
  3756. -
  3757. -
  3758. -
  3759. -
  3760. -
  3761. -
  3762. -
  3763. -
  3764. case $host_os in
  3765. aix3*)
  3766. # AIX sometimes has problems with the GCC collect2 program. For some
  3767. @@ -8230,23 +8763,6 @@
  3768. ;;
  3769. esac
  3770. -# Sed substitution that helps us do robust quoting. It backslashifies
  3771. -# metacharacters that are still active within double-quoted strings.
  3772. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3773. -
  3774. -# Same as above, but do not quote variable references.
  3775. -double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3776. -
  3777. -# Sed substitution to delay expansion of an escaped shell variable in a
  3778. -# double_quote_subst'ed string.
  3779. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3780. -
  3781. -# Sed substitution to delay expansion of an escaped single quote.
  3782. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3783. -
  3784. -# Sed substitution to avoid accidental globbing in evaled expressions
  3785. -no_glob_subst='s/\*/\\\*/g'
  3786. -
  3787. # Global variables:
  3788. ofile=libtool
  3789. can_build_shared=yes
  3790. @@ -8275,7 +8791,7 @@
  3791. *) break;;
  3792. esac
  3793. done
  3794. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  3795. +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  3796. # Only perform the check for file, if the check method requires it
  3797. @@ -8285,7 +8801,7 @@
  3798. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  3800. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  3801. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  3802. +if ${lt_cv_path_MAGIC_CMD+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. case $MAGIC_CMD in
  3806. @@ -8351,7 +8867,7 @@
  3807. if test -n "$ac_tool_prefix"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  3809. $as_echo_n "checking for file... " >&6; }
  3810. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  3811. +if ${lt_cv_path_MAGIC_CMD+:} false; then :
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. case $MAGIC_CMD in
  3815. @@ -8484,11 +9000,16 @@
  3816. lt_prog_compiler_no_builtin_flag=
  3817. if test "$GCC" = yes; then
  3818. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  3819. + case $cc_basename in
  3820. + nvcc*)
  3821. + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  3822. + *)
  3823. + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  3824. + esac
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  3826. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  3827. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  3828. +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. lt_cv_prog_compiler_rtti_exceptions=no
  3832. @@ -8504,15 +9025,15 @@
  3833. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3834. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  3835. -e 's:$: $lt_compiler_flag:'`
  3836. - (eval echo "\"\$as_me:8507: $lt_compile\"" >&5)
  3837. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  3838. (eval "$lt_compile" 2>conftest.err)
  3839. ac_status=$?
  3840. cat conftest.err >&5
  3841. - echo "$as_me:8511: \$? = $ac_status" >&5
  3842. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3843. if (exit $ac_status) && test -s "$ac_outfile"; then
  3844. # The compiler can only warn and ignore the option if not recognized
  3845. # So say no if there are warnings other than the usual output.
  3846. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  3847. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  3848. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3849. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  3850. lt_cv_prog_compiler_rtti_exceptions=yes
  3851. @@ -8541,8 +9062,6 @@
  3852. lt_prog_compiler_pic=
  3853. lt_prog_compiler_static=
  3854. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  3855. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  3856. if test "$GCC" = yes; then
  3857. lt_prog_compiler_wl='-Wl,'
  3858. @@ -8590,6 +9109,12 @@
  3859. lt_prog_compiler_pic='-fno-common'
  3860. ;;
  3861. + haiku*)
  3862. + # PIC is the default for Haiku.
  3863. + # The "-static" flag exists, but is broken.
  3864. + lt_prog_compiler_static=
  3865. + ;;
  3866. +
  3867. hpux*)
  3868. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3869. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3870. @@ -8632,6 +9157,13 @@
  3871. lt_prog_compiler_pic='-fPIC'
  3872. ;;
  3873. esac
  3874. +
  3875. + case $cc_basename in
  3876. + nvcc*) # Cuda Compiler Driver 2.2
  3877. + lt_prog_compiler_wl='-Xlinker '
  3878. + lt_prog_compiler_pic='-Xcompiler -fPIC'
  3879. + ;;
  3880. + esac
  3881. else
  3882. # PORTME Check for flag to pass linker flags through the system compiler.
  3883. case $host_os in
  3884. @@ -8673,7 +9205,7 @@
  3885. lt_prog_compiler_static='-non_shared'
  3886. ;;
  3887. - linux* | k*bsd*-gnu)
  3888. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3889. case $cc_basename in
  3890. # old Intel for x86_64 which still supported -KPIC.
  3891. ecc*)
  3892. @@ -8694,7 +9226,13 @@
  3893. lt_prog_compiler_pic='--shared'
  3894. lt_prog_compiler_static='--static'
  3895. ;;
  3896. - pgcc* | pgf77* | pgf90* | pgf95*)
  3897. + nagfor*)
  3898. + # NAG Fortran compiler
  3899. + lt_prog_compiler_wl='-Wl,-Wl,,'
  3900. + lt_prog_compiler_pic='-PIC'
  3901. + lt_prog_compiler_static='-Bstatic'
  3902. + ;;
  3903. + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3904. # Portland Group compilers (*not* the Pentium gcc compiler,
  3905. # which looks to be a dead project)
  3906. lt_prog_compiler_wl='-Wl,'
  3907. @@ -8706,25 +9244,25 @@
  3908. # All Alpha code is PIC.
  3909. lt_prog_compiler_static='-non_shared'
  3910. ;;
  3911. - xl*)
  3912. - # IBM XL C 8.0/Fortran 10.1 on PPC
  3913. + xl* | bgxl* | bgf* | mpixl*)
  3914. + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3915. lt_prog_compiler_wl='-Wl,'
  3916. lt_prog_compiler_pic='-qpic'
  3917. lt_prog_compiler_static='-qstaticlink'
  3918. ;;
  3919. *)
  3920. case `$CC -V 2>&1 | sed 5q` in
  3921. - *Sun\ C*)
  3922. - # Sun C 5.9
  3923. + *Sun\ F* | *Sun*Fortran*)
  3924. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3925. lt_prog_compiler_pic='-KPIC'
  3926. lt_prog_compiler_static='-Bstatic'
  3927. - lt_prog_compiler_wl='-Wl,'
  3928. + lt_prog_compiler_wl=''
  3929. ;;
  3930. - *Sun\ F*)
  3931. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3932. + *Sun\ C*)
  3933. + # Sun C 5.9
  3934. lt_prog_compiler_pic='-KPIC'
  3935. lt_prog_compiler_static='-Bstatic'
  3936. - lt_prog_compiler_wl=''
  3937. + lt_prog_compiler_wl='-Wl,'
  3938. ;;
  3939. esac
  3940. ;;
  3941. @@ -8756,7 +9294,7 @@
  3942. lt_prog_compiler_pic='-KPIC'
  3943. lt_prog_compiler_static='-Bstatic'
  3944. case $cc_basename in
  3945. - f77* | f90* | f95*)
  3946. + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  3947. lt_prog_compiler_wl='-Qoption ld ';;
  3948. *)
  3949. lt_prog_compiler_wl='-Wl,';;
  3950. @@ -8813,13 +9351,17 @@
  3951. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  3952. ;;
  3953. esac
  3954. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  3955. -$as_echo "$lt_prog_compiler_pic" >&6; }
  3956. -
  3957. -
  3958. -
  3959. -
  3960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  3961. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  3962. +if ${lt_cv_prog_compiler_pic+:} false; then :
  3963. + $as_echo_n "(cached) " >&6
  3964. +else
  3965. + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  3966. +fi
  3967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  3968. +$as_echo "$lt_cv_prog_compiler_pic" >&6; }
  3969. +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  3970. #
  3971. # Check to make sure the PIC flag actually works.
  3972. @@ -8827,7 +9369,7 @@
  3973. if test -n "$lt_prog_compiler_pic"; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  3975. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  3976. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  3977. +if ${lt_cv_prog_compiler_pic_works+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. lt_cv_prog_compiler_pic_works=no
  3981. @@ -8843,15 +9385,15 @@
  3982. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3983. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  3984. -e 's:$: $lt_compiler_flag:'`
  3985. - (eval echo "\"\$as_me:8846: $lt_compile\"" >&5)
  3986. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  3987. (eval "$lt_compile" 2>conftest.err)
  3988. ac_status=$?
  3989. cat conftest.err >&5
  3990. - echo "$as_me:8850: \$? = $ac_status" >&5
  3991. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3992. if (exit $ac_status) && test -s "$ac_outfile"; then
  3993. # The compiler can only warn and ignore the option if not recognized
  3994. # So say no if there are warnings other than the usual output.
  3995. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  3996. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  3997. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3998. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  3999. lt_cv_prog_compiler_pic_works=yes
  4000. @@ -8880,13 +9422,18 @@
  4001. +
  4002. +
  4003. +
  4004. +
  4005. +
  4006. #
  4007. # Check to make sure the static flag actually works.
  4008. #
  4009. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  4011. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  4012. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  4013. +if ${lt_cv_prog_compiler_static_works+:} false; then :
  4014. $as_echo_n "(cached) " >&6
  4015. else
  4016. lt_cv_prog_compiler_static_works=no
  4017. @@ -8899,7 +9446,7 @@
  4018. if test -s conftest.err; then
  4019. # Append any errors to the config.log.
  4020. cat conftest.err 1>&5
  4021. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  4022. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  4023. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4024. if diff conftest.exp conftest.er2 >/dev/null; then
  4025. lt_cv_prog_compiler_static_works=yes
  4026. @@ -8929,7 +9476,7 @@
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  4028. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  4029. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  4030. +if ${lt_cv_prog_compiler_c_o+:} false; then :
  4031. $as_echo_n "(cached) " >&6
  4032. else
  4033. lt_cv_prog_compiler_c_o=no
  4034. @@ -8948,16 +9495,16 @@
  4035. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4036. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  4037. -e 's:$: $lt_compiler_flag:'`
  4038. - (eval echo "\"\$as_me:8951: $lt_compile\"" >&5)
  4039. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  4040. (eval "$lt_compile" 2>out/conftest.err)
  4041. ac_status=$?
  4042. cat out/conftest.err >&5
  4043. - echo "$as_me:8955: \$? = $ac_status" >&5
  4044. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4045. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  4046. then
  4047. # The compiler can only warn and ignore the option if not recognized
  4048. # So say no if there are warnings
  4049. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  4050. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  4051. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  4052. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  4053. lt_cv_prog_compiler_c_o=yes
  4054. @@ -8984,7 +9531,7 @@
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  4056. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  4057. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  4058. +if ${lt_cv_prog_compiler_c_o+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. lt_cv_prog_compiler_c_o=no
  4062. @@ -9003,16 +9550,16 @@
  4063. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4064. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  4065. -e 's:$: $lt_compiler_flag:'`
  4066. - (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
  4067. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  4068. (eval "$lt_compile" 2>out/conftest.err)
  4069. ac_status=$?
  4070. cat out/conftest.err >&5
  4071. - echo "$as_me:9010: \$? = $ac_status" >&5
  4072. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  4074. then
  4075. # The compiler can only warn and ignore the option if not recognized
  4076. # So say no if there are warnings
  4077. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  4078. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  4079. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  4080. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  4081. lt_cv_prog_compiler_c_o=yes
  4082. @@ -9122,13 +9669,36 @@
  4083. openbsd*)
  4084. with_gnu_ld=no
  4085. ;;
  4086. - linux* | k*bsd*-gnu)
  4087. - link_all_deplibs=no
  4088. - ;;
  4089. esac
  4090. ld_shlibs=yes
  4091. +
  4092. + # On some targets, GNU ld is compatible enough with the native linker
  4093. + # that we're better off using the native interface for both.
  4094. + lt_use_gnu_ld_interface=no
  4095. if test "$with_gnu_ld" = yes; then
  4096. + case $host_os in
  4097. + aix*)
  4098. + # The AIX port of GNU ld has always aspired to compatibility
  4099. + # with the native linker. However, as the warning in the GNU ld
  4100. + # block says, versions before 2.19.5* couldn't really create working
  4101. + # shared libraries, regardless of the interface used.
  4102. + case `$LD -v 2>&1` in
  4103. + *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4104. + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  4105. + *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  4106. + *)
  4107. + lt_use_gnu_ld_interface=yes
  4108. + ;;
  4109. + esac
  4110. + ;;
  4111. + *)
  4112. + lt_use_gnu_ld_interface=yes
  4113. + ;;
  4114. + esac
  4115. + fi
  4116. +
  4117. + if test "$lt_use_gnu_ld_interface" = yes; then
  4118. # If archive_cmds runs LD, not CC, wlarc should be empty
  4119. wlarc='${wl}'
  4120. @@ -9146,6 +9716,7 @@
  4121. fi
  4122. supports_anon_versioning=no
  4123. case `$LD -v 2>&1` in
  4124. + *GNU\ gold*) supports_anon_versioning=yes ;;
  4125. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  4126. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4127. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4128. @@ -9161,11 +9732,12 @@
  4129. ld_shlibs=no
  4130. cat <<_LT_EOF 1>&2
  4131. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4132. +*** Warning: the GNU linker, at least up to release 2.19, is reported
  4133. *** to be unable to reliably create shared libraries on AIX.
  4134. *** Therefore, libtool is disabling shared libraries support. If you
  4135. -*** really care for shared libraries, you may want to modify your PATH
  4136. -*** so that a non-GNU linker is found, and then restart.
  4137. +*** really care for shared libraries, you may want to install binutils
  4138. +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4139. +*** You will then need to restart the configuration process.
  4140. _LT_EOF
  4141. fi
  4142. @@ -9201,10 +9773,12 @@
  4143. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  4144. # as there is no search path for DLLs.
  4145. hardcode_libdir_flag_spec='-L$libdir'
  4146. + export_dynamic_flag_spec='${wl}--export-all-symbols'
  4147. allow_undefined_flag=unsupported
  4148. always_export_symbols=no
  4149. enable_shared_with_static_runtimes=yes
  4150. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  4151. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  4152. + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  4153. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4154. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4155. @@ -9222,6 +9796,11 @@
  4156. fi
  4157. ;;
  4158. + haiku*)
  4159. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4160. + link_all_deplibs=yes
  4161. + ;;
  4162. +
  4163. interix[3-9]*)
  4164. hardcode_direct=no
  4165. hardcode_shlibpath_var=no
  4166. @@ -9237,7 +9816,7 @@
  4167. 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'
  4168. ;;
  4169. - gnu* | linux* | tpf* | k*bsd*-gnu)
  4170. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4171. tmp_diet=no
  4172. if test "$host_os" = linux-dietlibc; then
  4173. case $cc_basename in
  4174. @@ -9247,15 +9826,16 @@
  4175. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4176. && test "$tmp_diet" = no
  4177. then
  4178. - tmp_addflag=
  4179. + tmp_addflag=' $pic_flag'
  4180. tmp_sharedflag='-shared'
  4181. case $cc_basename,$host_cpu in
  4182. pgcc*) # Portland Group C compiler
  4183. - 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'
  4184. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4185. tmp_addflag=' $pic_flag'
  4186. ;;
  4187. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  4188. - 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'
  4189. + pgf77* | pgf90* | pgf95* | pgfortran*)
  4190. + # Portland Group f77 and f90 compilers
  4191. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4192. tmp_addflag=' $pic_flag -Mnomain' ;;
  4193. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4194. tmp_addflag=' -i_dynamic' ;;
  4195. @@ -9266,13 +9846,17 @@
  4196. lf95*) # Lahey Fortran 8.1
  4197. whole_archive_flag_spec=
  4198. tmp_sharedflag='--shared' ;;
  4199. - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4200. + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4201. tmp_sharedflag='-qmkshrobj'
  4202. tmp_addflag= ;;
  4203. + nvcc*) # Cuda Compiler Driver 2.2
  4204. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4205. + compiler_needs_object=yes
  4206. + ;;
  4207. esac
  4208. case `$CC -V 2>&1 | sed 5q` in
  4209. *Sun\ C*) # Sun C 5.9
  4210. - 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'
  4211. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4212. compiler_needs_object=yes
  4213. tmp_sharedflag='-G' ;;
  4214. *Sun\ F*) # Sun Fortran 8.3
  4215. @@ -9288,17 +9872,17 @@
  4216. fi
  4217. case $cc_basename in
  4218. - xlf*)
  4219. + xlf* | bgf* | bgxlf* | mpixlf*)
  4220. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4221. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  4222. hardcode_libdir_flag_spec=
  4223. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  4224. - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  4225. + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4226. if test "x$supports_anon_versioning" = xyes; then
  4227. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  4228. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4229. echo "local: *; };" >> $output_objdir/$libname.ver~
  4230. - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4231. + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4232. fi
  4233. ;;
  4234. esac
  4235. @@ -9307,13 +9891,13 @@
  4236. fi
  4237. ;;
  4238. - netbsd* | netbsdelf*-gnu)
  4239. + netbsd*)
  4240. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4241. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4242. wlarc=
  4243. else
  4244. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4245. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4246. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4247. + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4248. fi
  4249. ;;
  4250. @@ -9331,8 +9915,8 @@
  4251. _LT_EOF
  4252. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4253. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4254. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4255. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4256. + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4257. else
  4258. ld_shlibs=no
  4259. fi
  4260. @@ -9378,8 +9962,8 @@
  4261. *)
  4262. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4263. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4264. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4265. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4266. + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4267. else
  4268. ld_shlibs=no
  4269. fi
  4270. @@ -9419,8 +10003,10 @@
  4271. else
  4272. # If we're using GNU nm, then we don't want the "-C" option.
  4273. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4274. + # Also, AIX nm treats weak defined symbols like other global
  4275. + # defined symbols, whereas GNU nm marks them as "W".
  4276. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4277. - 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'
  4278. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4279. else
  4280. 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'
  4281. fi
  4282. @@ -9482,7 +10068,6 @@
  4283. if test "$aix_use_runtimelinking" = yes; then
  4284. shared_flag="$shared_flag "'${wl}-G'
  4285. fi
  4286. - link_all_deplibs=no
  4287. else
  4288. # not using gcc
  4289. if test "$host_cpu" = ia64; then
  4290. @@ -9508,7 +10093,13 @@
  4291. allow_undefined_flag='-berok'
  4292. # Determine the default libpath from the value encoded in an
  4293. # empty executable.
  4294. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. + if test "${lt_cv_aix_libpath+set}" = set; then
  4296. + aix_libpath=$lt_cv_aix_libpath
  4297. +else
  4298. + if ${lt_cv_aix_libpath_+:} false; then :
  4299. + $as_echo_n "(cached) " >&6
  4300. +else
  4301. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. int
  4304. @@ -9521,25 +10112,32 @@
  4305. _ACEOF
  4306. if ac_fn_c_try_link "$LINENO"; then :
  4307. -lt_aix_libpath_sed='
  4308. - /Import File Strings/,/^$/ {
  4309. - /^0/ {
  4310. - s/^0 *\(.*\)$/\1/
  4311. - p
  4312. - }
  4313. - }'
  4314. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4315. -# Check for a 64-bit object if we didn't find anything.
  4316. -if test -z "$aix_libpath"; then
  4317. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4318. -fi
  4319. + lt_aix_libpath_sed='
  4320. + /Import File Strings/,/^$/ {
  4321. + /^0/ {
  4322. + s/^0 *\([^ ]*\) *$/\1/
  4323. + p
  4324. + }
  4325. + }'
  4326. + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4327. + # Check for a 64-bit object if we didn't find anything.
  4328. + if test -z "$lt_cv_aix_libpath_"; then
  4329. + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4330. + fi
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext \
  4333. conftest$ac_exeext conftest.$ac_ext
  4334. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  4335. + if test -z "$lt_cv_aix_libpath_"; then
  4336. + lt_cv_aix_libpath_="/usr/lib:/lib"
  4337. + fi
  4338. +
  4339. +fi
  4340. +
  4341. + aix_libpath=$lt_cv_aix_libpath_
  4342. +fi
  4343. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  4344. - 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"
  4345. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4346. else
  4347. if test "$host_cpu" = ia64; then
  4348. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  4349. @@ -9548,7 +10146,13 @@
  4350. else
  4351. # Determine the default libpath from the value encoded in an
  4352. # empty executable.
  4353. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4354. + if test "${lt_cv_aix_libpath+set}" = set; then
  4355. + aix_libpath=$lt_cv_aix_libpath
  4356. +else
  4357. + if ${lt_cv_aix_libpath_+:} false; then :
  4358. + $as_echo_n "(cached) " >&6
  4359. +else
  4360. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4361. /* end confdefs.h. */
  4362. int
  4363. @@ -9561,30 +10165,42 @@
  4364. _ACEOF
  4365. if ac_fn_c_try_link "$LINENO"; then :
  4366. -lt_aix_libpath_sed='
  4367. - /Import File Strings/,/^$/ {
  4368. - /^0/ {
  4369. - s/^0 *\(.*\)$/\1/
  4370. - p
  4371. - }
  4372. - }'
  4373. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4374. -# Check for a 64-bit object if we didn't find anything.
  4375. -if test -z "$aix_libpath"; then
  4376. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4377. -fi
  4378. + lt_aix_libpath_sed='
  4379. + /Import File Strings/,/^$/ {
  4380. + /^0/ {
  4381. + s/^0 *\([^ ]*\) *$/\1/
  4382. + p
  4383. + }
  4384. + }'
  4385. + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4386. + # Check for a 64-bit object if we didn't find anything.
  4387. + if test -z "$lt_cv_aix_libpath_"; then
  4388. + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4389. + fi
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext \
  4392. conftest$ac_exeext conftest.$ac_ext
  4393. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  4394. + if test -z "$lt_cv_aix_libpath_"; then
  4395. + lt_cv_aix_libpath_="/usr/lib:/lib"
  4396. + fi
  4397. +
  4398. +fi
  4399. +
  4400. + aix_libpath=$lt_cv_aix_libpath_
  4401. +fi
  4402. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  4403. # Warning - without using the other run time loading flags,
  4404. # -berok will link without error, but may produce a broken library.
  4405. no_undefined_flag=' ${wl}-bernotok'
  4406. allow_undefined_flag=' ${wl}-berok'
  4407. - # Exported symbols can be pulled into shared objects from archives
  4408. - whole_archive_flag_spec='$convenience'
  4409. + if test "$with_gnu_ld" = yes; then
  4410. + # We only use this code for GNU lds that support --whole-archive.
  4411. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4412. + else
  4413. + # Exported symbols can be pulled into shared objects from archives
  4414. + whole_archive_flag_spec='$convenience'
  4415. + fi
  4416. archive_cmds_need_lc=yes
  4417. # This is similar to how AIX traditionally builds its shared libraries.
  4418. 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'
  4419. @@ -9616,20 +10232,63 @@
  4420. # Microsoft Visual C++.
  4421. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4422. # no search path for DLLs.
  4423. - hardcode_libdir_flag_spec=' '
  4424. - allow_undefined_flag=unsupported
  4425. - # Tell ltmain to make .lib files, not .a files.
  4426. - libext=lib
  4427. - # Tell ltmain to make .dll files, not .so files.
  4428. - shrext_cmds=".dll"
  4429. - # FIXME: Setting linknames here is a bad hack.
  4430. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4431. - # The linker will automatically build a .lib file if we build a DLL.
  4432. - old_archive_from_new_cmds='true'
  4433. - # FIXME: Should let the user specify the lib program.
  4434. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4435. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  4436. - enable_shared_with_static_runtimes=yes
  4437. + case $cc_basename in
  4438. + cl*)
  4439. + # Native MSVC
  4440. + hardcode_libdir_flag_spec=' '
  4441. + allow_undefined_flag=unsupported
  4442. + always_export_symbols=yes
  4443. + file_list_spec='@'
  4444. + # Tell ltmain to make .lib files, not .a files.
  4445. + libext=lib
  4446. + # Tell ltmain to make .dll files, not .so files.
  4447. + shrext_cmds=".dll"
  4448. + # FIXME: Setting linknames here is a bad hack.
  4449. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4450. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4451. + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4452. + else
  4453. + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4454. + fi~
  4455. + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4456. + linknames='
  4457. + # The linker will not automatically build a static lib if we build a DLL.
  4458. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  4459. + enable_shared_with_static_runtimes=yes
  4460. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  4461. + # Don't use ranlib
  4462. + old_postinstall_cmds='chmod 644 $oldlib'
  4463. + postlink_cmds='lt_outputfile="@OUTPUT@"~
  4464. + lt_tool_outputfile="@TOOL_OUTPUT@"~
  4465. + case $lt_outputfile in
  4466. + *.exe|*.EXE) ;;
  4467. + *)
  4468. + lt_outputfile="$lt_outputfile.exe"
  4469. + lt_tool_outputfile="$lt_tool_outputfile.exe"
  4470. + ;;
  4471. + esac~
  4472. + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4473. + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4474. + $RM "$lt_outputfile.manifest";
  4475. + fi'
  4476. + ;;
  4477. + *)
  4478. + # Assume MSVC wrapper
  4479. + hardcode_libdir_flag_spec=' '
  4480. + allow_undefined_flag=unsupported
  4481. + # Tell ltmain to make .lib files, not .a files.
  4482. + libext=lib
  4483. + # Tell ltmain to make .dll files, not .so files.
  4484. + shrext_cmds=".dll"
  4485. + # FIXME: Setting linknames here is a bad hack.
  4486. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4487. + # The linker will automatically build a .lib file if we build a DLL.
  4488. + old_archive_from_new_cmds='true'
  4489. + # FIXME: Should let the user specify the lib program.
  4490. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4491. + enable_shared_with_static_runtimes=yes
  4492. + ;;
  4493. + esac
  4494. ;;
  4495. darwin* | rhapsody*)
  4496. @@ -9639,7 +10298,11 @@
  4497. hardcode_direct=no
  4498. hardcode_automatic=yes
  4499. hardcode_shlibpath_var=unsupported
  4500. - whole_archive_flag_spec=''
  4501. + if test "$lt_cv_ld_force_load" = "yes"; then
  4502. + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  4503. + else
  4504. + whole_archive_flag_spec=''
  4505. + fi
  4506. link_all_deplibs=yes
  4507. allow_undefined_flag="$_lt_dar_allow_undefined"
  4508. case $cc_basename in
  4509. @@ -9647,7 +10310,7 @@
  4510. *) _lt_dar_can_shared=$GCC ;;
  4511. esac
  4512. if test "$_lt_dar_can_shared" = "yes"; then
  4513. - output_verbose_link_cmd=echo
  4514. + output_verbose_link_cmd=func_echo_all
  4515. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  4516. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  4517. 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}"
  4518. @@ -9690,7 +10353,7 @@
  4519. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4520. freebsd* | dragonfly*)
  4521. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4522. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4523. hardcode_libdir_flag_spec='-R$libdir'
  4524. hardcode_direct=yes
  4525. hardcode_shlibpath_var=no
  4526. @@ -9698,7 +10361,7 @@
  4527. hpux9*)
  4528. if test "$GCC" = yes; then
  4529. - 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'
  4530. + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4531. else
  4532. 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'
  4533. fi
  4534. @@ -9713,8 +10376,8 @@
  4535. ;;
  4536. hpux10*)
  4537. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4538. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4539. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4540. + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4541. else
  4542. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4543. fi
  4544. @@ -9732,16 +10395,16 @@
  4545. ;;
  4546. hpux11*)
  4547. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4548. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4549. case $host_cpu in
  4550. hppa*64*)
  4551. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4552. ;;
  4553. ia64*)
  4554. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4555. + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4556. ;;
  4557. *)
  4558. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4559. + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4560. ;;
  4561. esac
  4562. else
  4563. @@ -9753,7 +10416,46 @@
  4564. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4565. ;;
  4566. *)
  4567. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4568. +
  4569. + # Older versions of the 11.00 compiler do not understand -b yet
  4570. + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4571. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  4572. +$as_echo_n "checking if $CC understands -b... " >&6; }
  4573. +if ${lt_cv_prog_compiler__b+:} false; then :
  4574. + $as_echo_n "(cached) " >&6
  4575. +else
  4576. + lt_cv_prog_compiler__b=no
  4577. + save_LDFLAGS="$LDFLAGS"
  4578. + LDFLAGS="$LDFLAGS -b"
  4579. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  4580. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  4581. + # The linker can only warn and ignore the option if not recognized
  4582. + # So say no if there are warnings
  4583. + if test -s conftest.err; then
  4584. + # Append any errors to the config.log.
  4585. + cat conftest.err 1>&5
  4586. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  4587. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4588. + if diff conftest.exp conftest.er2 >/dev/null; then
  4589. + lt_cv_prog_compiler__b=yes
  4590. + fi
  4591. + else
  4592. + lt_cv_prog_compiler__b=yes
  4593. + fi
  4594. + fi
  4595. + $RM -r conftest*
  4596. + LDFLAGS="$save_LDFLAGS"
  4597. +
  4598. +fi
  4599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  4600. +$as_echo "$lt_cv_prog_compiler__b" >&6; }
  4601. +
  4602. +if test x"$lt_cv_prog_compiler__b" = xyes; then
  4603. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4604. +else
  4605. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4606. +fi
  4607. +
  4608. ;;
  4609. esac
  4610. fi
  4611. @@ -9781,26 +10483,39 @@
  4612. irix5* | irix6* | nonstopux*)
  4613. if test "$GCC" = yes; then
  4614. - 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'
  4615. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4616. # Try to use the -exported_symbol ld option, if it does not
  4617. # work, assume that -exports_file does not work either and
  4618. # implicitly export all symbols.
  4619. - save_LDFLAGS="$LDFLAGS"
  4620. - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4621. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. + # This should be the same for all languages, so no per-tag cache variable.
  4623. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  4624. +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  4625. +if ${lt_cv_irix_exported_symbol+:} false; then :
  4626. + $as_echo_n "(cached) " >&6
  4627. +else
  4628. + save_LDFLAGS="$LDFLAGS"
  4629. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4630. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4631. /* end confdefs.h. */
  4632. -int foo(void) {}
  4633. +int foo (void) { return 0; }
  4634. _ACEOF
  4635. if ac_fn_c_try_link "$LINENO"; then :
  4636. - 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'
  4637. -
  4638. + lt_cv_irix_exported_symbol=yes
  4639. +else
  4640. + lt_cv_irix_exported_symbol=no
  4641. fi
  4642. rm -f core conftest.err conftest.$ac_objext \
  4643. conftest$ac_exeext conftest.$ac_ext
  4644. - LDFLAGS="$save_LDFLAGS"
  4645. + LDFLAGS="$save_LDFLAGS"
  4646. +fi
  4647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  4648. +$as_echo "$lt_cv_irix_exported_symbol" >&6; }
  4649. + if test "$lt_cv_irix_exported_symbol" = yes; then
  4650. + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4651. + fi
  4652. else
  4653. - 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'
  4654. - 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'
  4655. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4656. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4657. fi
  4658. archive_cmds_need_lc='no'
  4659. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4660. @@ -9809,7 +10524,7 @@
  4661. link_all_deplibs=yes
  4662. ;;
  4663. - netbsd* | netbsdelf*-gnu)
  4664. + netbsd*)
  4665. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4666. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4667. else
  4668. @@ -9862,17 +10577,17 @@
  4669. hardcode_libdir_flag_spec='-L$libdir'
  4670. hardcode_minus_L=yes
  4671. allow_undefined_flag=unsupported
  4672. - 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'
  4673. + 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'
  4674. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4675. ;;
  4676. osf3*)
  4677. if test "$GCC" = yes; then
  4678. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4679. - 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'
  4680. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4681. else
  4682. allow_undefined_flag=' -expect_unresolved \*'
  4683. - 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'
  4684. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4685. fi
  4686. archive_cmds_need_lc='no'
  4687. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4688. @@ -9882,13 +10597,13 @@
  4689. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4690. if test "$GCC" = yes; then
  4691. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4692. - 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'
  4693. + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4694. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4695. else
  4696. allow_undefined_flag=' -expect_unresolved \*'
  4697. - 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'
  4698. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4699. 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~
  4700. - $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'
  4701. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4702. # Both c and cxx compiler support -rpath directly
  4703. hardcode_libdir_flag_spec='-rpath $libdir'
  4704. @@ -9901,9 +10616,9 @@
  4705. no_undefined_flag=' -z defs'
  4706. if test "$GCC" = yes; then
  4707. wlarc='${wl}'
  4708. - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4709. + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4710. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4711. - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4712. + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4713. else
  4714. case `$CC -V 2>&1` in
  4715. *"Compilers 5.0"*)
  4716. @@ -10091,44 +10806,50 @@
  4717. # to ld, don't add -lc before -lgcc.
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  4719. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  4720. - $RM conftest*
  4721. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4722. +if ${lt_cv_archive_cmds_need_lc+:} false; then :
  4723. + $as_echo_n "(cached) " >&6
  4724. +else
  4725. + $RM conftest*
  4726. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4727. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4728. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4729. (eval $ac_compile) 2>&5
  4730. ac_status=$?
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4732. test $ac_status = 0; } 2>conftest.err; then
  4733. - soname=conftest
  4734. - lib=conftest
  4735. - libobjs=conftest.$ac_objext
  4736. - deplibs=
  4737. - wl=$lt_prog_compiler_wl
  4738. - pic_flag=$lt_prog_compiler_pic
  4739. - compiler_flags=-v
  4740. - linker_flags=-v
  4741. - verstring=
  4742. - output_objdir=.
  4743. - libname=conftest
  4744. - lt_save_allow_undefined_flag=$allow_undefined_flag
  4745. - allow_undefined_flag=
  4746. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  4747. + soname=conftest
  4748. + lib=conftest
  4749. + libobjs=conftest.$ac_objext
  4750. + deplibs=
  4751. + wl=$lt_prog_compiler_wl
  4752. + pic_flag=$lt_prog_compiler_pic
  4753. + compiler_flags=-v
  4754. + linker_flags=-v
  4755. + verstring=
  4756. + output_objdir=.
  4757. + libname=conftest
  4758. + lt_save_allow_undefined_flag=$allow_undefined_flag
  4759. + allow_undefined_flag=
  4760. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  4761. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  4762. ac_status=$?
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4764. test $ac_status = 0; }
  4765. - then
  4766. - archive_cmds_need_lc=no
  4767. - else
  4768. - archive_cmds_need_lc=yes
  4769. - fi
  4770. - allow_undefined_flag=$lt_save_allow_undefined_flag
  4771. - else
  4772. - cat conftest.err 1>&5
  4773. - fi
  4774. - $RM conftest*
  4775. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  4776. -$as_echo "$archive_cmds_need_lc" >&6; }
  4777. + then
  4778. + lt_cv_archive_cmds_need_lc=no
  4779. + else
  4780. + lt_cv_archive_cmds_need_lc=yes
  4781. + fi
  4782. + allow_undefined_flag=$lt_save_allow_undefined_flag
  4783. + else
  4784. + cat conftest.err 1>&5
  4785. + fi
  4786. + $RM conftest*
  4787. +
  4788. +fi
  4789. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  4790. +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  4791. + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  4792. ;;
  4793. esac
  4794. fi
  4795. @@ -10299,16 +11020,23 @@
  4796. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  4797. *) lt_awk_arg="/^libraries:/" ;;
  4798. esac
  4799. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4800. - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  4801. + case $host_os in
  4802. + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  4803. + *) lt_sed_strip_eq="s,=/,/,g" ;;
  4804. + esac
  4805. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  4806. + case $lt_search_path_spec in
  4807. + *\;*)
  4808. # if the path contains ";" then we assume it to be the separator
  4809. # otherwise default to the standard path separator (i.e. ":") - it is
  4810. # assumed that no part of a normal pathname contains ";" but that should
  4811. # okay in the real world where ";" in dirpaths is itself problematic.
  4812. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  4813. - else
  4814. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4815. - fi
  4816. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  4817. + ;;
  4818. + *)
  4819. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  4820. + ;;
  4821. + esac
  4822. # Ok, now we have the path, separated by spaces, we can step through it
  4823. # and add multilib dir if necessary.
  4824. lt_tmp_lt_search_path_spec=
  4825. @@ -10321,7 +11049,7 @@
  4826. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  4827. fi
  4828. done
  4829. - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  4830. + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  4831. BEGIN {RS=" "; FS="/|\n";} {
  4832. lt_foo="";
  4833. lt_count=0;
  4834. @@ -10341,7 +11069,13 @@
  4835. if (lt_foo != "") { lt_freq[lt_foo]++; }
  4836. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  4837. }'`
  4838. - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  4839. + # AWK program above erroneously prepends '/' to C:/dos/paths
  4840. + # for these hosts.
  4841. + case $host_os in
  4842. + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  4843. + $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  4844. + esac
  4845. + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  4846. else
  4847. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  4848. fi
  4849. @@ -10429,7 +11163,7 @@
  4850. m68k)
  4851. library_names_spec='$libname.ixlibrary $libname.a'
  4852. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4853. - 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'
  4854. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  4855. ;;
  4856. esac
  4857. ;;
  4858. @@ -10460,8 +11194,9 @@
  4859. need_version=no
  4860. need_lib_prefix=no
  4861. - case $GCC,$host_os in
  4862. - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4863. + case $GCC,$cc_basename in
  4864. + yes,*)
  4865. + # gcc
  4866. library_names_spec='$libname.dll.a'
  4867. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4868. postinstall_cmds='base_file=`basename \${file}`~
  4869. @@ -10482,36 +11217,83 @@
  4870. cygwin*)
  4871. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4872. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  4873. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4874. +
  4875. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  4876. ;;
  4877. mingw* | cegcc*)
  4878. # MinGW DLLs use traditional 'lib' prefix
  4879. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  4880. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4881. - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  4882. - # It is most probably a Windows format PATH printed by
  4883. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4884. - # path with ; separators, and with drive letters. We can handle the
  4885. - # drive letters (cygwin fileutils understands them), so leave them,
  4886. - # especially as we might pass files found there to a mingw objdump,
  4887. - # which wouldn't understand a cygwinified path. Ahh.
  4888. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4889. - else
  4890. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4891. - fi
  4892. ;;
  4893. pw32*)
  4894. # pw32 DLLs use 'pw' prefix rather than 'lib'
  4895. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  4896. ;;
  4897. esac
  4898. + dynamic_linker='Win32 ld.exe'
  4899. + ;;
  4900. +
  4901. + *,cl*)
  4902. + # Native MSVC
  4903. + libname_spec='$name'
  4904. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  4905. + library_names_spec='${libname}.dll.lib'
  4906. +
  4907. + case $build_os in
  4908. + mingw*)
  4909. + sys_lib_search_path_spec=
  4910. + lt_save_ifs=$IFS
  4911. + IFS=';'
  4912. + for lt_path in $LIB
  4913. + do
  4914. + IFS=$lt_save_ifs
  4915. + # Let DOS variable expansion print the short 8.3 style file name.
  4916. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  4917. + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  4918. + done
  4919. + IFS=$lt_save_ifs
  4920. + # Convert to MSYS style.
  4921. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  4922. + ;;
  4923. + cygwin*)
  4924. + # Convert to unix form, then to dos form, then back to unix form
  4925. + # but this time dos style (no spaces!) so that the unix form looks
  4926. + # like /cygdrive/c/PROGRA~1:/cygdr...
  4927. + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  4928. + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  4929. + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4930. + ;;
  4931. + *)
  4932. + sys_lib_search_path_spec="$LIB"
  4933. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  4934. + # It is most probably a Windows format PATH.
  4935. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4936. + else
  4937. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4938. + fi
  4939. + # FIXME: find the short name or the path components, as spaces are
  4940. + # common. (e.g. "Program Files" -> "PROGRA~1")
  4941. + ;;
  4942. + esac
  4943. +
  4944. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4945. + postinstall_cmds='base_file=`basename \${file}`~
  4946. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4947. + dldir=$destdir/`dirname \$dlpath`~
  4948. + test -d \$dldir || mkdir -p \$dldir~
  4949. + $install_prog $dir/$dlname \$dldir/$dlname'
  4950. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4951. + dlpath=$dir/\$dldll~
  4952. + $RM \$dlpath'
  4953. + shlibpath_overrides_runpath=yes
  4954. + dynamic_linker='Win32 link.exe'
  4955. ;;
  4956. *)
  4957. + # Assume MSVC wrapper
  4958. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4959. + dynamic_linker='Win32 ld.exe'
  4960. ;;
  4961. esac
  4962. - dynamic_linker='Win32 ld.exe'
  4963. # FIXME: first we should search . and the directory the executable is in
  4964. shlibpath_var=PATH
  4965. ;;
  4966. @@ -10598,6 +11380,19 @@
  4967. hardcode_into_libs=yes
  4968. ;;
  4969. +haiku*)
  4970. + version_type=linux
  4971. + need_lib_prefix=no
  4972. + need_version=no
  4973. + dynamic_linker="$host_os runtime_loader"
  4974. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4975. + soname_spec='${libname}${release}${shared_ext}$major'
  4976. + shlibpath_var=LIBRARY_PATH
  4977. + shlibpath_overrides_runpath=yes
  4978. + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  4979. + hardcode_into_libs=yes
  4980. + ;;
  4981. +
  4982. hpux9* | hpux10* | hpux11*)
  4983. # Give a soname corresponding to the major version so that dld.sl refuses to
  4984. # link against other versions.
  4985. @@ -10640,8 +11435,10 @@
  4986. soname_spec='${libname}${release}${shared_ext}$major'
  4987. ;;
  4988. esac
  4989. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4990. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  4991. postinstall_cmds='chmod 555 $lib'
  4992. + # or fails outright, so override atomically:
  4993. + install_override_mode=555
  4994. ;;
  4995. interix[3-9]*)
  4996. @@ -10699,7 +11496,7 @@
  4997. ;;
  4998. # This must be Linux ELF.
  4999. -linux* | k*bsd*-gnu)
  5000. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5001. version_type=linux
  5002. need_lib_prefix=no
  5003. need_version=no
  5004. @@ -10708,12 +11505,17 @@
  5005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5006. shlibpath_var=LD_LIBRARY_PATH
  5007. shlibpath_overrides_runpath=no
  5008. +
  5009. # Some binutils ld are patched to set DT_RUNPATH
  5010. - save_LDFLAGS=$LDFLAGS
  5011. - save_libdir=$libdir
  5012. - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  5013. - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  5014. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5015. + if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  5016. + $as_echo_n "(cached) " >&6
  5017. +else
  5018. + lt_cv_shlibpath_overrides_runpath=no
  5019. + save_LDFLAGS=$LDFLAGS
  5020. + save_libdir=$libdir
  5021. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  5022. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  5023. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5024. /* end confdefs.h. */
  5025. int
  5026. @@ -10726,13 +11528,17 @@
  5027. _ACEOF
  5028. if ac_fn_c_try_link "$LINENO"; then :
  5029. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  5030. - shlibpath_overrides_runpath=yes
  5031. + lt_cv_shlibpath_overrides_runpath=yes
  5032. fi
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext \
  5035. conftest$ac_exeext conftest.$ac_ext
  5036. - LDFLAGS=$save_LDFLAGS
  5037. - libdir=$save_libdir
  5038. + LDFLAGS=$save_LDFLAGS
  5039. + libdir=$save_libdir
  5040. +
  5041. +fi
  5042. +
  5043. + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  5044. # This implies no fast_install, which is unacceptable.
  5045. # Some rework will be needed to allow for fast_install
  5046. @@ -10741,7 +11547,7 @@
  5047. # Append ld.so.conf contents to the search path
  5048. if test -f /etc/ld.so.conf; then
  5049. - 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' ' '`
  5050. + 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;s/"//g;/^$/d' | tr '\n' ' '`
  5051. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  5052. fi
  5053. @@ -10754,18 +11560,6 @@
  5054. dynamic_linker='GNU/Linux ld.so'
  5055. ;;
  5056. -netbsdelf*-gnu)
  5057. - version_type=linux
  5058. - need_lib_prefix=no
  5059. - need_version=no
  5060. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  5061. - soname_spec='${libname}${release}${shared_ext}$major'
  5062. - shlibpath_var=LD_LIBRARY_PATH
  5063. - shlibpath_overrides_runpath=no
  5064. - hardcode_into_libs=yes
  5065. - dynamic_linker='NetBSD ld.elf_so'
  5066. - ;;
  5067. -
  5068. netbsd*)
  5069. version_type=sunos
  5070. need_lib_prefix=no
  5071. @@ -11056,6 +11850,11 @@
  5072. +
  5073. +
  5074. +
  5075. +
  5076. +
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  5078. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  5079. hardcode_action=
  5080. @@ -11128,7 +11927,7 @@
  5081. # if libdl is installed we need to link against it
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5083. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5084. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  5085. +if ${ac_cv_lib_dl_dlopen+:} false; then :
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. ac_check_lib_save_LIBS=$LIBS
  5089. @@ -11162,7 +11961,7 @@
  5090. fi
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5092. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5093. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  5094. +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5095. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  5096. else
  5097. @@ -11176,12 +11975,12 @@
  5098. *)
  5099. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  5100. -if test "x$ac_cv_func_shl_load" = x""yes; then :
  5101. +if test "x$ac_cv_func_shl_load" = xyes; then :
  5102. lt_cv_dlopen="shl_load"
  5103. else
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  5105. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  5106. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  5107. +if ${ac_cv_lib_dld_shl_load+:} false; then :
  5108. $as_echo_n "(cached) " >&6
  5109. else
  5110. ac_check_lib_save_LIBS=$LIBS
  5111. @@ -11215,16 +12014,16 @@
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  5114. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  5115. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  5116. +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  5117. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  5118. else
  5119. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  5120. -if test "x$ac_cv_func_dlopen" = x""yes; then :
  5121. +if test "x$ac_cv_func_dlopen" = xyes; then :
  5122. lt_cv_dlopen="dlopen"
  5123. else
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5125. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5126. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  5127. +if ${ac_cv_lib_dl_dlopen+:} false; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. ac_check_lib_save_LIBS=$LIBS
  5131. @@ -11258,12 +12057,12 @@
  5132. fi
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5134. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5135. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  5136. +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5137. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  5138. else
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  5140. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  5141. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  5142. +if ${ac_cv_lib_svld_dlopen+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. ac_check_lib_save_LIBS=$LIBS
  5146. @@ -11297,12 +12096,12 @@
  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  5149. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  5150. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  5151. +if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  5152. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  5153. else
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  5155. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  5156. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  5157. +if ${ac_cv_lib_dld_dld_link+:} false; then :
  5158. $as_echo_n "(cached) " >&6
  5159. else
  5160. ac_check_lib_save_LIBS=$LIBS
  5161. @@ -11336,7 +12135,7 @@
  5162. fi
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  5164. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  5165. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  5166. +if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  5167. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  5168. fi
  5169. @@ -11377,7 +12176,7 @@
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  5171. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  5172. -if test "${lt_cv_dlopen_self+set}" = set; then :
  5173. +if ${lt_cv_dlopen_self+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. if test "$cross_compiling" = yes; then :
  5177. @@ -11386,7 +12185,7 @@
  5178. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5179. lt_status=$lt_dlunknown
  5180. cat > conftest.$ac_ext <<_LT_EOF
  5181. -#line 11389 "configure"
  5182. +#line $LINENO "configure"
  5183. #include "confdefs.h"
  5184. #if HAVE_DLFCN_H
  5185. @@ -11427,7 +12226,13 @@
  5186. # endif
  5187. #endif
  5188. -void fnord() { int i=42;}
  5189. +/* When -fvisbility=hidden is used, assume the code has been annotated
  5190. + correspondingly for the symbols needed. */
  5191. +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  5192. +int fnord () __attribute__((visibility("default")));
  5193. +#endif
  5194. +
  5195. +int fnord () { return 42; }
  5196. int main ()
  5197. {
  5198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5199. @@ -11436,7 +12241,11 @@
  5200. if (self)
  5201. {
  5202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5203. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5204. + else
  5205. + {
  5206. + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5207. + else puts (dlerror ());
  5208. + }
  5209. /* dlclose (self); */
  5210. }
  5211. else
  5212. @@ -11473,7 +12282,7 @@
  5213. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  5215. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  5216. -if test "${lt_cv_dlopen_self_static+set}" = set; then :
  5217. +if ${lt_cv_dlopen_self_static+:} false; then :
  5218. $as_echo_n "(cached) " >&6
  5219. else
  5220. if test "$cross_compiling" = yes; then :
  5221. @@ -11482,7 +12291,7 @@
  5222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5223. lt_status=$lt_dlunknown
  5224. cat > conftest.$ac_ext <<_LT_EOF
  5225. -#line 11485 "configure"
  5226. +#line $LINENO "configure"
  5227. #include "confdefs.h"
  5228. #if HAVE_DLFCN_H
  5229. @@ -11523,7 +12332,13 @@
  5230. # endif
  5231. #endif
  5232. -void fnord() { int i=42;}
  5233. +/* When -fvisbility=hidden is used, assume the code has been annotated
  5234. + correspondingly for the symbols needed. */
  5235. +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  5236. +int fnord () __attribute__((visibility("default")));
  5237. +#endif
  5238. +
  5239. +int fnord () { return 42; }
  5240. int main ()
  5241. {
  5242. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5243. @@ -11532,7 +12347,11 @@
  5244. if (self)
  5245. {
  5246. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5247. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5248. + else
  5249. + {
  5250. + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5251. + else puts (dlerror ());
  5252. + }
  5253. /* dlclose (self); */
  5254. }
  5255. else
  5256. @@ -11714,7 +12533,7 @@
  5257. set dummy ${ac_tool_prefix}windres; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. -if test "${ac_cv_prog_RC+set}" = set; then :
  5261. +if ${ac_cv_prog_RC+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. if test -n "$RC"; then
  5265. @@ -11754,7 +12573,7 @@
  5266. set dummy windres; ac_word=$2
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5268. $as_echo_n "checking for $ac_word... " >&6; }
  5269. -if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
  5270. +if ${ac_cv_prog_ac_ct_RC+:} false; then :
  5271. $as_echo_n "(cached) " >&6
  5272. else
  5273. if test -n "$ac_ct_RC"; then
  5274. @@ -11850,9 +12669,11 @@
  5275. # Allow CC to be a program name with arguments.
  5276. lt_save_CC="$CC"
  5277. +lt_save_CFLAGS=$CFLAGS
  5278. lt_save_GCC=$GCC
  5279. GCC=
  5280. CC=${RC-"windres"}
  5281. +CFLAGS=
  5282. compiler=$CC
  5283. compiler_RC=$CC
  5284. for cc_temp in $compiler""; do
  5285. @@ -11863,7 +12684,7 @@
  5286. *) break;;
  5287. esac
  5288. done
  5289. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5290. +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5291. lt_cv_prog_compiler_c_o_RC=yes
  5292. @@ -11881,7 +12702,8 @@
  5293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5295. -CC="$lt_save_CC"
  5296. +CC=$lt_save_CC
  5297. +CFLAGS=$lt_save_CFLAGS
  5298. @@ -11896,7 +12718,7 @@
  5299. set dummy $ac_prog; ac_word=$2
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. -if test "${ac_cv_prog_XSLTPROC+set}" = set; then :
  5303. +if ${ac_cv_prog_XSLTPROC+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$XSLTPROC"; then
  5307. @@ -11938,7 +12760,7 @@
  5308. set dummy $ac_prog; ac_word=$2
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5310. $as_echo_n "checking for $ac_word... " >&6; }
  5311. -if test "${ac_cv_prog_SVN+set}" = set; then :
  5312. +if ${ac_cv_prog_SVN+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. if test -n "$SVN"; then
  5316. @@ -11980,7 +12802,7 @@
  5317. set dummy $ac_prog; ac_word=$2
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5319. $as_echo_n "checking for $ac_word... " >&6; }
  5320. -if test "${ac_cv_prog_WGET+set}" = set; then :
  5321. +if ${ac_cv_prog_WGET+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. if test -n "$WGET"; then
  5325. @@ -12022,7 +12844,7 @@
  5326. set dummy $ac_prog; ac_word=$2
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5328. $as_echo_n "checking for $ac_word... " >&6; }
  5329. -if test "${ac_cv_prog_TR+set}" = set; then :
  5330. +if ${ac_cv_prog_TR+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. if test -n "$TR"; then
  5334. @@ -12075,7 +12897,7 @@
  5335. elif test "${xslstylesheetsdir}" != "no"; then
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking xsl-stylesheets" >&5
  5337. $as_echo_n "checking xsl-stylesheets... " >&6; }
  5338. - test -e "${xslstylesheetsdir}/html/docbook.xsl" || as_fn_error "invalid" "$LINENO" 5
  5339. + test -e "${xslstylesheetsdir}/html/docbook.xsl" || as_fn_error $? "invalid" "$LINENO" 5
  5340. fi
  5341. if test "${svn_checkout}" = "yes"; then
  5342. @@ -12086,7 +12908,7 @@
  5343. $as_echo "ok" >&6; }
  5344. else
  5345. if test "${enable_man}" = "yes" -o "${enable_doc}" = "yes"; then
  5346. - as_fn_error "Missing XSLTPROC svn build with man or doc" "$LINENO" 5
  5347. + as_fn_error $? "Missing XSLTPROC svn build with man or doc" "$LINENO" 5
  5348. else
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"make dist\" will not work" >&5
  5350. $as_echo "$as_me: WARNING: \"make dist\" will not work" >&2;}
  5351. @@ -12094,7 +12916,7 @@
  5352. fi
  5353. if test "${enable_man}" = "yes"; then
  5354. - test "${xslstylesheetsdir}" = "no" && as_fn_error "xsl-stylesheets are required for svn build with man" "$LINENO" 5
  5355. + test "${xslstylesheetsdir}" = "no" && as_fn_error $? "xsl-stylesheets are required for svn build with man" "$LINENO" 5
  5356. fi
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking svn doc build dependencies" >&5
  5358. @@ -12104,7 +12926,7 @@
  5359. $as_echo "ok" >&6; }
  5360. else
  5361. if test "${enable_doc}" = "yes"; then
  5362. - as_fn_error "Missing SVN, TR or WGET for svn doc build" "$LINENO" 5
  5363. + as_fn_error $? "Missing SVN, TR or WGET for svn doc build" "$LINENO" 5
  5364. else
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"make dist\" will not work" >&5
  5366. $as_echo "$as_me: WARNING: \"make dist\" will not work" >&2;}
  5367. @@ -12114,7 +12936,7 @@
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5369. $as_echo_n "checking for inline... " >&6; }
  5370. -if test "${ac_cv_c_inline+set}" = set; then :
  5371. +if ${ac_cv_c_inline+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. ac_cv_c_inline=no
  5375. @@ -12157,7 +12979,7 @@
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5377. $as_echo_n "checking for ANSI C header files... " >&6; }
  5378. -if test "${ac_cv_header_stdc+set}" = set; then :
  5379. +if ${ac_cv_header_stdc+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5383. @@ -12269,7 +13091,7 @@
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5385. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5386. -if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  5387. +if ${ac_cv_header_sys_wait_h+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5391. @@ -12316,8 +13138,7 @@
  5392. do :
  5393. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5394. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5395. -eval as_val=\$$as_ac_Header
  5396. - if test "x$as_val" = x""yes; then :
  5397. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5398. cat >>confdefs.h <<_ACEOF
  5399. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5400. _ACEOF
  5401. @@ -12329,7 +13150,7 @@
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5403. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5404. -if test "${ac_cv_c_const+set}" = set; then :
  5405. +if ${ac_cv_c_const+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5409. @@ -12409,7 +13230,7 @@
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5411. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5412. -if test "${ac_cv_type_uid_t+set}" = set; then :
  5413. +if ${ac_cv_type_uid_t+:} false; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5417. @@ -12438,7 +13259,7 @@
  5418. fi
  5419. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5420. -if test "x$ac_cv_type_size_t" = x""yes; then :
  5421. +if test "x$ac_cv_type_size_t" = xyes; then :
  5422. else
  5423. @@ -12450,7 +13271,7 @@
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5425. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5426. -if test "${ac_cv_header_time+set}" = set; then :
  5427. +if ${ac_cv_header_time+:} false; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5431. @@ -12486,7 +13307,7 @@
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  5433. $as_echo_n "checking for error_at_line... " >&6; }
  5434. -if test "${ac_cv_lib_error_at_line+set}" = set; then :
  5435. +if ${ac_cv_lib_error_at_line+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5439. @@ -12519,9 +13340,9 @@
  5440. fi
  5441. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  5442. -$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  5443. -if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  5444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  5445. +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  5446. +if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. rm -f conftest.sym conftest.file
  5450. @@ -12537,7 +13358,7 @@
  5451. main ()
  5452. {
  5453. struct stat sbuf;
  5454. - /* Linux will dereference the symlink and fail.
  5455. + /* Linux will dereference the symlink and fail, as required by POSIX.
  5456. That is better in the sense that it means we will not
  5457. have to compile and use the lstat wrapper. */
  5458. return lstat ("conftest.sym/", &sbuf) == 0;
  5459. @@ -12572,7 +13393,7 @@
  5460. _ACEOF
  5461. -if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  5462. +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  5463. case " $LIBOBJS " in
  5464. *" lstat.$ac_objext "* ) ;;
  5465. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  5466. @@ -12583,7 +13404,7 @@
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  5468. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  5469. -if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  5470. +if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test "$cross_compiling" = yes; then :
  5474. @@ -12630,13 +13451,13 @@
  5475. for ac_func in vprintf
  5476. do :
  5477. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  5478. -if test "x$ac_cv_func_vprintf" = x""yes; then :
  5479. +if test "x$ac_cv_func_vprintf" = xyes; then :
  5480. cat >>confdefs.h <<_ACEOF
  5481. #define HAVE_VPRINTF 1
  5482. _ACEOF
  5483. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  5484. -if test "x$ac_cv_func__doprnt" = x""yes; then :
  5485. +if test "x$ac_cv_func__doprnt" = xyes; then :
  5486. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  5487. @@ -12655,8 +13476,7 @@
  5488. do :
  5489. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5490. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5491. -eval as_val=\$$as_ac_var
  5492. - if test "x$as_val" = x""yes; then :
  5493. +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5494. cat >>confdefs.h <<_ACEOF
  5495. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5496. _ACEOF
  5497. @@ -12667,7 +13487,7 @@
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  5499. $as_echo_n "checking for socket in -lsocket... " >&6; }
  5500. -if test "${ac_cv_lib_socket_socket+set}" = set; then :
  5501. +if ${ac_cv_lib_socket_socket+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. ac_check_lib_save_LIBS=$LIBS
  5505. @@ -12701,12 +13521,12 @@
  5506. fi
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  5508. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  5509. -if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  5510. +if test "x$ac_cv_lib_socket_socket" = xyes; then :
  5511. LIBS="${LIBS} -lsocket"
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
  5513. $as_echo_n "checking for res_query in -lresolv... " >&6; }
  5514. -if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
  5515. +if ${ac_cv_lib_resolv_res_query+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. ac_check_lib_save_LIBS=$LIBS
  5519. @@ -12740,7 +13560,7 @@
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
  5522. $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
  5523. -if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
  5524. +if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
  5525. LIBS="${LIBS} -lresolv"
  5526. fi
  5527. @@ -12755,7 +13575,7 @@
  5528. if test -z "${LTLIB_LIBS}"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
  5530. $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
  5531. -if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  5532. +if ${ac_cv_lib_ltdl_lt_dlopen+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. ac_check_lib_save_LIBS=$LIBS
  5536. @@ -12789,10 +13609,10 @@
  5537. fi
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
  5539. $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
  5540. -if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  5541. +if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes; then :
  5542. LTLIB_LIBS="-lltdl"
  5543. else
  5544. - as_fn_error "ltdl not found, please install libltdl and/or libtool" "$LINENO" 5
  5545. + as_fn_error $? "ltdl not found, please install libltdl and/or libtool" "$LINENO" 5
  5546. fi
  5547. @@ -12800,10 +13620,10 @@
  5548. saved_CFLAGS="${CFLAGS}"
  5549. CFLAGS="${CFLAGS} ${LTLIB_CFLAGS}"
  5550. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  5551. -if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  5552. +if test "x$ac_cv_header_ltdl_h" = xyes; then :
  5553. else
  5554. - as_fn_error "ltdl.h not found, please install libltdl and/or libtool" "$LINENO" 5
  5555. + as_fn_error $? "ltdl.h not found, please install libltdl and/or libtool" "$LINENO" 5
  5556. fi
  5557. @@ -12936,7 +13756,7 @@
  5558. set dummy pthread-config; ac_word=$2
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5560. $as_echo_n "checking for $ac_word... " >&6; }
  5561. -if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  5562. +if ${ac_cv_prog_acx_pthread_config+:} false; then :
  5563. $as_echo_n "(cached) " >&6
  5564. else
  5565. if test -n "$acx_pthread_config"; then
  5566. @@ -13092,7 +13912,7 @@
  5567. set dummy $ac_prog; ac_word=$2
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5569. $as_echo_n "checking for $ac_word... " >&6; }
  5570. -if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  5571. +if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. if test -n "$PTHREAD_CC"; then
  5575. @@ -13148,7 +13968,7 @@
  5576. :
  5577. else
  5578. acx_pthread_ok=no
  5579. - as_fn_error "POSIX thread support required" "$LINENO" 5
  5580. + as_fn_error $? "POSIX thread support required" "$LINENO" 5
  5581. fi
  5582. ac_ext=c
  5583. @@ -13166,7 +13986,7 @@
  5584. if test -z "${ZLIB_LIBS}"; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5586. $as_echo_n "checking for inflate in -lz... " >&6; }
  5587. -if test "${ac_cv_lib_z_inflate+set}" = set; then :
  5588. +if ${ac_cv_lib_z_inflate+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_check_lib_save_LIBS=$LIBS
  5592. @@ -13200,7 +14020,7 @@
  5593. fi
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5595. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5596. -if test "x$ac_cv_lib_z_inflate" = x""yes; then :
  5597. +if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5598. ZLIB_LIBS="-lz"
  5599. fi
  5600. @@ -13211,7 +14031,7 @@
  5601. for ac_header in zlib.h
  5602. do :
  5603. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5604. -if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5605. +if test "x$ac_cv_header_zlib_h" = xyes; then :
  5606. cat >>confdefs.h <<_ACEOF
  5607. #define HAVE_ZLIB_H 1
  5608. _ACEOF
  5609. @@ -13242,7 +14062,7 @@
  5610. $as_echo "#define ENABLE_ZLIB 1" >>confdefs.h
  5611. else
  5612. - as_fn_error "zlib linkage required, but no zlib was found" "$LINENO" 5
  5613. + as_fn_error $? "zlib linkage required, but no zlib was found" "$LINENO" 5
  5614. fi
  5615. fi
  5616. @@ -13253,7 +14073,7 @@
  5617. unset ac_cv_lib_readline_readline
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  5619. $as_echo_n "checking for readline in -lreadline... " >&6; }
  5620. -if test "${ac_cv_lib_readline_readline+set}" = set; then :
  5621. +if ${ac_cv_lib_readline_readline+:} false; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. ac_check_lib_save_LIBS=$LIBS
  5625. @@ -13288,7 +14108,7 @@
  5626. fi
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  5628. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  5629. -if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  5630. +if test "x$ac_cv_lib_readline_readline" = xyes; then :
  5631. READLINE_LIBS="-lreadline ${l}"
  5632. fi
  5633. @@ -13300,7 +14120,7 @@
  5634. for ac_header in readline/readline.h
  5635. do :
  5636. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  5637. -if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
  5638. +if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  5639. cat >>confdefs.h <<_ACEOF
  5640. #define HAVE_READLINE_READLINE_H 1
  5641. _ACEOF
  5642. @@ -13331,7 +14151,7 @@
  5643. $as_echo "#define ENABLE_READLINE 1" >>confdefs.h
  5644. else
  5645. - as_fn_error "readline linkage required, but no readline was found" "$LINENO" 5
  5646. + as_fn_error $? "readline linkage required, but no readline was found" "$LINENO" 5
  5647. fi
  5648. fi
  5649. @@ -13395,7 +14215,7 @@
  5650. $as_echo "no" >&6; }
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
  5652. $as_echo_n "checking for iconv in -liconv... " >&6; }
  5653. -if test "${ac_cv_lib_iconv_iconv+set}" = set; then :
  5654. +if ${ac_cv_lib_iconv_iconv+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. ac_check_lib_save_LIBS=$LIBS
  5658. @@ -13429,7 +14249,7 @@
  5659. fi
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
  5661. $as_echo "$ac_cv_lib_iconv_iconv" >&6; }
  5662. -if test "x$ac_cv_lib_iconv_iconv" = x""yes; then :
  5663. +if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
  5664. ac_cv_lib_iconv="yes"
  5665. ICONV_LIBS="-liconv"
  5666. @@ -13437,7 +14257,7 @@
  5667. else
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
  5669. $as_echo_n "checking for libiconv in -liconv... " >&6; }
  5670. -if test "${ac_cv_lib_iconv_libiconv+set}" = set; then :
  5671. +if ${ac_cv_lib_iconv_libiconv+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. ac_check_lib_save_LIBS=$LIBS
  5675. @@ -13471,7 +14291,7 @@
  5676. fi
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
  5678. $as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
  5679. -if test "x$ac_cv_lib_iconv_libiconv" = x""yes; then :
  5680. +if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
  5681. ac_cv_lib_iconv="yes"
  5682. ICONV_LIBS="-liconv"
  5683. @@ -13493,7 +14313,7 @@
  5684. for ac_header in iconv.h
  5685. do :
  5686. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  5687. -if test "x$ac_cv_header_iconv_h" = x""yes; then :
  5688. +if test "x$ac_cv_header_iconv_h" = xyes; then :
  5689. cat >>confdefs.h <<_ACEOF
  5690. #define HAVE_ICONV_H 1
  5691. _ACEOF
  5692. @@ -13524,7 +14344,7 @@
  5693. $as_echo "#define ENABLE_ICONV 1" >>confdefs.h
  5694. else
  5695. - as_fn_error "iconv linkage required, but no iconv was found" "$LINENO" 5
  5696. + as_fn_error $? "iconv linkage required, but no iconv was found" "$LINENO" 5
  5697. fi
  5698. fi
  5699. @@ -13533,11 +14353,10 @@
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
  5701. $as_echo_n "checking for OPENSSL... " >&6; }
  5702. -if test -n "$PKG_CONFIG"; then
  5703. - if test -n "$OPENSSL_CFLAGS"; then
  5704. - pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5705. - else
  5706. - if test -n "$PKG_CONFIG" && \
  5707. +if test -n "$OPENSSL_CFLAGS"; then
  5708. + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5709. + elif test -n "$PKG_CONFIG"; then
  5710. + if test -n "$PKG_CONFIG" && \
  5711. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
  5712. ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
  5713. ac_status=$?
  5714. @@ -13547,15 +14366,13 @@
  5715. else
  5716. pkg_failed=yes
  5717. fi
  5718. - fi
  5719. -else
  5720. - pkg_failed=untried
  5721. + else
  5722. + pkg_failed=untried
  5723. fi
  5724. -if test -n "$PKG_CONFIG"; then
  5725. - if test -n "$OPENSSL_LIBS"; then
  5726. - pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5727. - else
  5728. - if test -n "$PKG_CONFIG" && \
  5729. +if test -n "$OPENSSL_LIBS"; then
  5730. + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5731. + elif test -n "$PKG_CONFIG"; then
  5732. + if test -n "$PKG_CONFIG" && \
  5733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
  5734. ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
  5735. ac_status=$?
  5736. @@ -13565,14 +14382,15 @@
  5737. else
  5738. pkg_failed=yes
  5739. fi
  5740. - fi
  5741. -else
  5742. - pkg_failed=untried
  5743. + else
  5744. + pkg_failed=untried
  5745. fi
  5746. if test $pkg_failed = yes; then
  5747. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. +$as_echo "no" >&6; }
  5749. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5750. _pkg_short_errors_supported=yes
  5751. @@ -13580,25 +14398,22 @@
  5752. _pkg_short_errors_supported=no
  5753. fi
  5754. if test $_pkg_short_errors_supported = yes; then
  5755. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcrypto >= 0.9.7"`
  5756. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcrypto >= 0.9.7" 2>&1`
  5757. else
  5758. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcrypto >= 0.9.7"`
  5759. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcrypto >= 0.9.7" 2>&1`
  5760. fi
  5761. # Put the nasty error message in config.log where it belongs
  5762. echo "$OPENSSL_PKG_ERRORS" >&5
  5763. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. -$as_echo "no" >&6; }
  5765. pkg_failed=no
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
  5767. $as_echo_n "checking for OPENSSL... " >&6; }
  5768. -if test -n "$PKG_CONFIG"; then
  5769. - if test -n "$OPENSSL_CFLAGS"; then
  5770. - pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5771. - else
  5772. - if test -n "$PKG_CONFIG" && \
  5773. +if test -n "$OPENSSL_CFLAGS"; then
  5774. + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5775. + elif test -n "$PKG_CONFIG"; then
  5776. + if test -n "$PKG_CONFIG" && \
  5777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
  5778. ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
  5779. ac_status=$?
  5780. @@ -13608,15 +14423,13 @@
  5781. else
  5782. pkg_failed=yes
  5783. fi
  5784. - fi
  5785. -else
  5786. - pkg_failed=untried
  5787. + else
  5788. + pkg_failed=untried
  5789. fi
  5790. -if test -n "$PKG_CONFIG"; then
  5791. - if test -n "$OPENSSL_LIBS"; then
  5792. - pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5793. - else
  5794. - if test -n "$PKG_CONFIG" && \
  5795. +if test -n "$OPENSSL_LIBS"; then
  5796. + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5797. + elif test -n "$PKG_CONFIG"; then
  5798. + if test -n "$PKG_CONFIG" && \
  5799. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
  5800. ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
  5801. ac_status=$?
  5802. @@ -13626,14 +14439,15 @@
  5803. else
  5804. pkg_failed=yes
  5805. fi
  5806. - fi
  5807. -else
  5808. - pkg_failed=untried
  5809. + else
  5810. + pkg_failed=untried
  5811. fi
  5812. if test $pkg_failed = yes; then
  5813. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. +$as_echo "no" >&6; }
  5815. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5816. _pkg_short_errors_supported=yes
  5817. @@ -13641,18 +14455,16 @@
  5818. _pkg_short_errors_supported=no
  5819. fi
  5820. if test $_pkg_short_errors_supported = yes; then
  5821. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.7"`
  5822. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl >= 0.9.7" 2>&1`
  5823. else
  5824. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.7"`
  5825. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl >= 0.9.7" 2>&1`
  5826. fi
  5827. # Put the nasty error message in config.log where it belongs
  5828. echo "$OPENSSL_PKG_ERRORS" >&5
  5829. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5830. -$as_echo "no" >&6; }
  5831. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5832. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5833. $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
  5834. -if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then :
  5835. +if ${ac_cv_lib_crypto_RSA_version+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. ac_check_lib_save_LIBS=$LIBS
  5839. @@ -13686,7 +14498,7 @@
  5840. fi
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
  5842. $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
  5843. -if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then :
  5844. +if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
  5845. have_openssl="yes"
  5846. OPENSSL_LIBS="-lcrypto"
  5847. @@ -13698,9 +14510,11 @@
  5848. elif test $pkg_failed = untried; then
  5849. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. +$as_echo "no" >&6; }
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5852. $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
  5853. -if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then :
  5854. +if ${ac_cv_lib_crypto_RSA_version+:} false; then :
  5855. $as_echo_n "(cached) " >&6
  5856. else
  5857. ac_check_lib_save_LIBS=$LIBS
  5858. @@ -13734,7 +14548,7 @@
  5859. fi
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
  5861. $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
  5862. -if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then :
  5863. +if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
  5864. have_openssl="yes"
  5865. OPENSSL_LIBS="-lcrypto"
  5866. @@ -13754,16 +14568,17 @@
  5867. fi
  5868. elif test $pkg_failed = untried; then
  5869. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5870. +$as_echo "no" >&6; }
  5871. pkg_failed=no
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
  5873. $as_echo_n "checking for OPENSSL... " >&6; }
  5874. -if test -n "$PKG_CONFIG"; then
  5875. - if test -n "$OPENSSL_CFLAGS"; then
  5876. - pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5877. - else
  5878. - if test -n "$PKG_CONFIG" && \
  5879. +if test -n "$OPENSSL_CFLAGS"; then
  5880. + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  5881. + elif test -n "$PKG_CONFIG"; then
  5882. + if test -n "$PKG_CONFIG" && \
  5883. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
  5884. ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
  5885. ac_status=$?
  5886. @@ -13773,15 +14588,13 @@
  5887. else
  5888. pkg_failed=yes
  5889. fi
  5890. - fi
  5891. -else
  5892. - pkg_failed=untried
  5893. + else
  5894. + pkg_failed=untried
  5895. fi
  5896. -if test -n "$PKG_CONFIG"; then
  5897. - if test -n "$OPENSSL_LIBS"; then
  5898. - pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5899. - else
  5900. - if test -n "$PKG_CONFIG" && \
  5901. +if test -n "$OPENSSL_LIBS"; then
  5902. + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  5903. + elif test -n "$PKG_CONFIG"; then
  5904. + if test -n "$PKG_CONFIG" && \
  5905. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
  5906. ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
  5907. ac_status=$?
  5908. @@ -13791,14 +14604,15 @@
  5909. else
  5910. pkg_failed=yes
  5911. fi
  5912. - fi
  5913. -else
  5914. - pkg_failed=untried
  5915. + else
  5916. + pkg_failed=untried
  5917. fi
  5918. if test $pkg_failed = yes; then
  5919. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5920. +$as_echo "no" >&6; }
  5921. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5922. _pkg_short_errors_supported=yes
  5923. @@ -13806,18 +14620,16 @@
  5924. _pkg_short_errors_supported=no
  5925. fi
  5926. if test $_pkg_short_errors_supported = yes; then
  5927. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.7"`
  5928. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl >= 0.9.7" 2>&1`
  5929. else
  5930. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.7"`
  5931. + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl >= 0.9.7" 2>&1`
  5932. fi
  5933. # Put the nasty error message in config.log where it belongs
  5934. echo "$OPENSSL_PKG_ERRORS" >&5
  5935. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. -$as_echo "no" >&6; }
  5937. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5938. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5939. $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
  5940. -if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then :
  5941. +if ${ac_cv_lib_crypto_RSA_version+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. ac_check_lib_save_LIBS=$LIBS
  5945. @@ -13851,7 +14663,7 @@
  5946. fi
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
  5948. $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
  5949. -if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then :
  5950. +if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
  5951. have_openssl="yes"
  5952. OPENSSL_LIBS="-lcrypto"
  5953. @@ -13863,9 +14675,11 @@
  5954. elif test $pkg_failed = untried; then
  5955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. +$as_echo "no" >&6; }
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
  5958. $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
  5959. -if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then :
  5960. +if ${ac_cv_lib_crypto_RSA_version+:} false; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. ac_check_lib_save_LIBS=$LIBS
  5964. @@ -13899,7 +14713,7 @@
  5965. fi
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
  5967. $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
  5968. -if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then :
  5969. +if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
  5970. have_openssl="yes"
  5971. OPENSSL_LIBS="-lcrypto"
  5972. @@ -13945,7 +14759,7 @@
  5973. $as_echo "#define ENABLE_OPENSSL 1" >>confdefs.h
  5974. else
  5975. - as_fn_error "OpenSSL linkage required, but no OpenSSL was found" "$LINENO" 5
  5976. + as_fn_error $? "OpenSSL linkage required, but no OpenSSL was found" "$LINENO" 5
  5977. fi
  5978. fi
  5979. @@ -13955,11 +14769,10 @@
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCT" >&5
  5981. $as_echo_n "checking for OPENCT... " >&6; }
  5982. -if test -n "$PKG_CONFIG"; then
  5983. - if test -n "$OPENCT_CFLAGS"; then
  5984. - pkg_cv_OPENCT_CFLAGS="$OPENCT_CFLAGS"
  5985. - else
  5986. - if test -n "$PKG_CONFIG" && \
  5987. +if test -n "$OPENCT_CFLAGS"; then
  5988. + pkg_cv_OPENCT_CFLAGS="$OPENCT_CFLAGS"
  5989. + elif test -n "$PKG_CONFIG"; then
  5990. + if test -n "$PKG_CONFIG" && \
  5991. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenct\""; } >&5
  5992. ($PKG_CONFIG --exists --print-errors "libopenct") 2>&5
  5993. ac_status=$?
  5994. @@ -13969,15 +14782,13 @@
  5995. else
  5996. pkg_failed=yes
  5997. fi
  5998. - fi
  5999. -else
  6000. - pkg_failed=untried
  6001. + else
  6002. + pkg_failed=untried
  6003. fi
  6004. -if test -n "$PKG_CONFIG"; then
  6005. - if test -n "$OPENCT_LIBS"; then
  6006. - pkg_cv_OPENCT_LIBS="$OPENCT_LIBS"
  6007. - else
  6008. - if test -n "$PKG_CONFIG" && \
  6009. +if test -n "$OPENCT_LIBS"; then
  6010. + pkg_cv_OPENCT_LIBS="$OPENCT_LIBS"
  6011. + elif test -n "$PKG_CONFIG"; then
  6012. + if test -n "$PKG_CONFIG" && \
  6013. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenct\""; } >&5
  6014. ($PKG_CONFIG --exists --print-errors "libopenct") 2>&5
  6015. ac_status=$?
  6016. @@ -13987,14 +14798,15 @@
  6017. else
  6018. pkg_failed=yes
  6019. fi
  6020. - fi
  6021. -else
  6022. - pkg_failed=untried
  6023. + else
  6024. + pkg_failed=untried
  6025. fi
  6026. if test $pkg_failed = yes; then
  6027. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6028. +$as_echo "no" >&6; }
  6029. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6030. _pkg_short_errors_supported=yes
  6031. @@ -14002,19 +14814,19 @@
  6032. _pkg_short_errors_supported=no
  6033. fi
  6034. if test $_pkg_short_errors_supported = yes; then
  6035. - OPENCT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libopenct"`
  6036. + OPENCT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenct" 2>&1`
  6037. else
  6038. - OPENCT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libopenct"`
  6039. + OPENCT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenct" 2>&1`
  6040. fi
  6041. # Put the nasty error message in config.log where it belongs
  6042. echo "$OPENCT_PKG_ERRORS" >&5
  6043. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6044. -$as_echo "no" >&6; }
  6045. - as_fn_error "openct requested but not available" "$LINENO" 5
  6046. + as_fn_error $? "openct requested but not available" "$LINENO" 5
  6047. elif test $pkg_failed = untried; then
  6048. - as_fn_error "openct requested but not available" "$LINENO" 5
  6049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. +$as_echo "no" >&6; }
  6051. + as_fn_error $? "openct requested but not available" "$LINENO" 5
  6052. else
  6053. OPENCT_CFLAGS=$pkg_cv_OPENCT_CFLAGS
  6054. @@ -14040,11 +14852,10 @@
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCSC" >&5
  6056. $as_echo_n "checking for PCSC... " >&6; }
  6057. -if test -n "$PKG_CONFIG"; then
  6058. - if test -n "$PCSC_CFLAGS"; then
  6059. - pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS"
  6060. - else
  6061. - if test -n "$PKG_CONFIG" && \
  6062. +if test -n "$PCSC_CFLAGS"; then
  6063. + pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS"
  6064. + elif test -n "$PKG_CONFIG"; then
  6065. + if test -n "$PKG_CONFIG" && \
  6066. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
  6067. ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
  6068. ac_status=$?
  6069. @@ -14054,15 +14865,13 @@
  6070. else
  6071. pkg_failed=yes
  6072. fi
  6073. - fi
  6074. -else
  6075. - pkg_failed=untried
  6076. + else
  6077. + pkg_failed=untried
  6078. fi
  6079. -if test -n "$PKG_CONFIG"; then
  6080. - if test -n "$PCSC_LIBS"; then
  6081. - pkg_cv_PCSC_LIBS="$PCSC_LIBS"
  6082. - else
  6083. - if test -n "$PKG_CONFIG" && \
  6084. +if test -n "$PCSC_LIBS"; then
  6085. + pkg_cv_PCSC_LIBS="$PCSC_LIBS"
  6086. + elif test -n "$PKG_CONFIG"; then
  6087. + if test -n "$PKG_CONFIG" && \
  6088. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
  6089. ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
  6090. ac_status=$?
  6091. @@ -14072,14 +14881,15 @@
  6092. else
  6093. pkg_failed=yes
  6094. fi
  6095. - fi
  6096. -else
  6097. - pkg_failed=untried
  6098. + else
  6099. + pkg_failed=untried
  6100. fi
  6101. if test $pkg_failed = yes; then
  6102. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. +$as_echo "no" >&6; }
  6104. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6105. _pkg_short_errors_supported=yes
  6106. @@ -14087,14 +14897,14 @@
  6107. _pkg_short_errors_supported=no
  6108. fi
  6109. if test $_pkg_short_errors_supported = yes; then
  6110. - PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite"`
  6111. + PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcsclite" 2>&1`
  6112. else
  6113. - PCSC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite"`
  6114. + PCSC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcsclite" 2>&1`
  6115. fi
  6116. # Put the nasty error message in config.log where it belongs
  6117. echo "$PCSC_PKG_ERRORS" >&5
  6118. - as_fn_error "Package requirements (libpcsclite) were not met:
  6119. + as_fn_error $? "Package requirements (libpcsclite) were not met:
  6120. $PCSC_PKG_ERRORS
  6121. @@ -14103,12 +14913,13 @@
  6122. Alternatively, you may set the environment variables PCSC_CFLAGS
  6123. and PCSC_LIBS to avoid the need to call pkg-config.
  6124. -See the pkg-config man page for more details.
  6125. -" "$LINENO" 5
  6126. +See the pkg-config man page for more details." "$LINENO" 5
  6127. elif test $pkg_failed = untried; then
  6128. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. +$as_echo "no" >&6; }
  6130. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6132. -as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  6133. +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  6134. is in your PATH or set the PKG_CONFIG environment variable to the full
  6135. path to pkg-config.
  6136. @@ -14117,13 +14928,13 @@
  6137. See the pkg-config man page for more details.
  6138. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6139. -See \`config.log' for more details." "$LINENO" 5; }
  6140. +See \`config.log' for more details" "$LINENO" 5; }
  6141. else
  6142. PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS
  6143. PCSC_LIBS=$pkg_cv_PCSC_LIBS
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6145. $as_echo "yes" >&6; }
  6146. - :
  6147. +
  6148. fi
  6149. fi
  6150. @@ -14145,13 +14956,13 @@
  6151. for ac_header in winscard.h
  6152. do :
  6153. ac_fn_c_check_header_mongrel "$LINENO" "winscard.h" "ac_cv_header_winscard_h" "$ac_includes_default"
  6154. -if test "x$ac_cv_header_winscard_h" = x""yes; then :
  6155. +if test "x$ac_cv_header_winscard_h" = xyes; then :
  6156. cat >>confdefs.h <<_ACEOF
  6157. #define HAVE_WINSCARD_H 1
  6158. _ACEOF
  6159. else
  6160. - test "${WIN32}" != "yes" && as_fn_error "winscard.h is required for pcsc" "$LINENO" 5
  6161. + test "${WIN32}" != "yes" && as_fn_error $? "winscard.h is required for pcsc" "$LINENO" 5
  6162. fi
  6163. done
  6164. @@ -14201,7 +15012,7 @@
  6165. set dummy libassuan-config; ac_word=$2
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6167. $as_echo_n "checking for $ac_word... " >&6; }
  6168. -if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then :
  6169. +if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. case $LIBASSUAN_CONFIG in
  6173. @@ -14330,7 +15141,7 @@
  6174. if test "${enable_nsplugin}" = "yes"; then
  6175. if test "x${have_assuan}" != "xyes" -o "x${have_openssl}" != "xyes"; then
  6176. - as_fn_error "nsplugin requires assuan and openssl" "$LINENO" 5
  6177. + as_fn_error $? "nsplugin requires assuan and openssl" "$LINENO" 5
  6178. fi
  6179. fi
  6180. @@ -14589,10 +15400,21 @@
  6181. :end' >>confcache
  6182. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6183. if test -w "$cache_file"; then
  6184. - test "x$cache_file" != "x/dev/null" &&
  6185. + if test "x$cache_file" != "x/dev/null"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6187. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6188. - cat confcache >$cache_file
  6189. + if test ! -f "$cache_file" || test -h "$cache_file"; then
  6190. + cat confcache >"$cache_file"
  6191. + else
  6192. + case $cache_file in #(
  6193. + */* | ?:*)
  6194. + mv -f confcache "$cache_file"$$ &&
  6195. + mv -f "$cache_file"$$ "$cache_file" ;; #(
  6196. + *)
  6197. + mv -f confcache "$cache_file" ;;
  6198. + esac
  6199. + fi
  6200. + fi
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6203. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6204. @@ -14608,6 +15430,7 @@
  6205. ac_libobjs=
  6206. ac_ltlibobjs=
  6207. +U=
  6208. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6209. # 1. Remove the extension, and $U if already installed.
  6210. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6211. @@ -14631,60 +15454,60 @@
  6212. fi
  6213. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6214. - as_fn_error "conditional \"AMDEP\" was never defined.
  6215. + as_fn_error $? "conditional \"AMDEP\" was never defined.
  6216. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6217. fi
  6218. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6219. - as_fn_error "conditional \"am__fastdepCC\" was never defined.
  6220. + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6222. fi
  6223. if test -z "${SVN_CHECKOUT_TRUE}" && test -z "${SVN_CHECKOUT_FALSE}"; then
  6224. - as_fn_error "conditional \"SVN_CHECKOUT\" was never defined.
  6225. + as_fn_error $? "conditional \"SVN_CHECKOUT\" was never defined.
  6226. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6227. fi
  6228. if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
  6229. - as_fn_error "conditional \"ENABLE_MAN\" was never defined.
  6230. + as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
  6231. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6232. fi
  6233. if test -z "${ENABLE_ZLIB_TRUE}" && test -z "${ENABLE_ZLIB_FALSE}"; then
  6234. - as_fn_error "conditional \"ENABLE_ZLIB\" was never defined.
  6235. + as_fn_error $? "conditional \"ENABLE_ZLIB\" was never defined.
  6236. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6237. fi
  6238. if test -z "${ENABLE_READLINE_TRUE}" && test -z "${ENABLE_READLINE_FALSE}"; then
  6239. - as_fn_error "conditional \"ENABLE_READLINE\" was never defined.
  6240. + as_fn_error $? "conditional \"ENABLE_READLINE\" was never defined.
  6241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6242. fi
  6243. if test -z "${ENABLE_ICONV_TRUE}" && test -z "${ENABLE_ICONV_FALSE}"; then
  6244. - as_fn_error "conditional \"ENABLE_ICONV\" was never defined.
  6245. + as_fn_error $? "conditional \"ENABLE_ICONV\" was never defined.
  6246. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6247. fi
  6248. if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
  6249. - as_fn_error "conditional \"ENABLE_OPENSSL\" was never defined.
  6250. + as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
  6251. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6252. fi
  6253. if test -z "${ENABLE_OPENCT_TRUE}" && test -z "${ENABLE_OPENCT_FALSE}"; then
  6254. - as_fn_error "conditional \"ENABLE_OPENCT\" was never defined.
  6255. + as_fn_error $? "conditional \"ENABLE_OPENCT\" was never defined.
  6256. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6257. fi
  6258. if test -z "${ENABLE_NSPLUGIN_TRUE}" && test -z "${ENABLE_NSPLUGIN_FALSE}"; then
  6259. - as_fn_error "conditional \"ENABLE_NSPLUGIN\" was never defined.
  6260. + as_fn_error $? "conditional \"ENABLE_NSPLUGIN\" was never defined.
  6261. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6262. fi
  6263. if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
  6264. - as_fn_error "conditional \"ENABLE_DOC\" was never defined.
  6265. + as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
  6266. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6267. fi
  6268. if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  6269. - as_fn_error "conditional \"WIN32\" was never defined.
  6270. + as_fn_error $? "conditional \"WIN32\" was never defined.
  6271. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6272. fi
  6273. if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
  6274. - as_fn_error "conditional \"CYGWIN\" was never defined.
  6275. + as_fn_error $? "conditional \"CYGWIN\" was never defined.
  6276. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6277. fi
  6278. -: ${CONFIG_STATUS=./config.status}
  6279. +: "${CONFIG_STATUS=./config.status}"
  6280. ac_write_fail=0
  6281. ac_clean_files_save=$ac_clean_files
  6282. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6283. @@ -14785,6 +15608,7 @@
  6284. IFS=" "" $as_nl"
  6285. # Find who we are. Look in the path if we contain no directory separator.
  6286. +as_myself=
  6287. case $0 in #((
  6288. *[\\/]* ) as_myself=$0 ;;
  6289. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6290. @@ -14830,19 +15654,19 @@
  6291. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6292. -# as_fn_error ERROR [LINENO LOG_FD]
  6293. -# ---------------------------------
  6294. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  6295. +# ----------------------------------------
  6296. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6297. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6298. -# script with status $?, using 1 if that was 0.
  6299. +# script with STATUS, using 1 if that was 0.
  6300. as_fn_error ()
  6301. {
  6302. - as_status=$?; test $as_status -eq 0 && as_status=1
  6303. - if test "$3"; then
  6304. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6305. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  6306. + as_status=$1; test $as_status -eq 0 && as_status=1
  6307. + if test "$4"; then
  6308. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6309. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6310. fi
  6311. - $as_echo "$as_me: error: $1" >&2
  6312. + $as_echo "$as_me: error: $2" >&2
  6313. as_fn_exit $as_status
  6314. } # as_fn_error
  6315. @@ -15038,7 +15862,7 @@
  6316. test -d "$as_dir" && break
  6317. done
  6318. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6319. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  6320. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6321. } # as_fn_mkdir_p
  6322. @@ -15092,7 +15916,7 @@
  6323. # values after options handling.
  6324. ac_log="
  6325. This file was extended by opensc $as_me 0.11.13, which was
  6326. -generated by GNU Autoconf 2.64. Invocation command line was
  6327. +generated by GNU Autoconf 2.68. Invocation command line was
  6328. CONFIG_FILES = $CONFIG_FILES
  6329. CONFIG_HEADERS = $CONFIG_HEADERS
  6330. @@ -15132,6 +15956,7 @@
  6331. -h, --help print this help, then exit
  6332. -V, --version print version number and configuration settings, then exit
  6333. + --config print configuration, then exit
  6334. -q, --quiet, --silent
  6335. do not print progress messages
  6336. -d, --debug don't remove temporary files
  6337. @@ -15154,12 +15979,13 @@
  6338. _ACEOF
  6339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6340. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6341. ac_cs_version="\\
  6342. opensc config.status 0.11.13
  6343. -configured by $0, generated by GNU Autoconf 2.64,
  6344. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  6345. +configured by $0, generated by GNU Autoconf 2.68,
  6346. + with options \\"\$ac_cs_config\\"
  6347. -Copyright (C) 2009 Free Software Foundation, Inc.
  6348. +Copyright (C) 2010 Free Software Foundation, Inc.
  6349. This config.status script is free software; the Free Software Foundation
  6350. gives unlimited permission to copy, distribute and modify it."
  6351. @@ -15177,11 +16003,16 @@
  6352. while test $# != 0
  6353. do
  6354. case $1 in
  6355. - --*=*)
  6356. + --*=?*)
  6357. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6358. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6359. ac_shift=:
  6360. ;;
  6361. + --*=)
  6362. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6363. + ac_optarg=
  6364. + ac_shift=:
  6365. + ;;
  6366. *)
  6367. ac_option=$1
  6368. ac_optarg=$2
  6369. @@ -15195,12 +16026,15 @@
  6370. ac_cs_recheck=: ;;
  6371. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6372. $as_echo "$ac_cs_version"; exit ;;
  6373. + --config | --confi | --conf | --con | --co | --c )
  6374. + $as_echo "$ac_cs_config"; exit ;;
  6375. --debug | --debu | --deb | --de | --d | -d )
  6376. debug=: ;;
  6377. --file | --fil | --fi | --f )
  6378. $ac_shift
  6379. case $ac_optarg in
  6380. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6381. + '') as_fn_error $? "missing file argument" ;;
  6382. esac
  6383. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6384. ac_need_defaults=false;;
  6385. @@ -15213,7 +16047,7 @@
  6386. ac_need_defaults=false;;
  6387. --he | --h)
  6388. # Conflict between --help and --header
  6389. - as_fn_error "ambiguous option: \`$1'
  6390. + as_fn_error $? "ambiguous option: \`$1'
  6391. Try \`$0 --help' for more information.";;
  6392. --help | --hel | -h )
  6393. $as_echo "$ac_cs_usage"; exit ;;
  6394. @@ -15222,7 +16056,7 @@
  6395. ac_cs_silent=: ;;
  6396. # This is an error.
  6397. - -*) as_fn_error "unrecognized option: \`$1'
  6398. + -*) as_fn_error $? "unrecognized option: \`$1'
  6399. Try \`$0 --help' for more information." ;;
  6400. *) as_fn_append ac_config_targets " $1"
  6401. @@ -15276,174 +16110,200 @@
  6402. sed_quote_subst='$sed_quote_subst'
  6403. double_quote_subst='$double_quote_subst'
  6404. delay_variable_subst='$delay_variable_subst'
  6405. -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  6406. -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  6407. -AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  6408. -DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  6409. -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  6410. -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  6411. -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  6412. -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  6413. -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  6414. -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  6415. -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  6416. -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  6417. -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  6418. -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  6419. -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  6420. -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  6421. -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  6422. -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  6423. -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  6424. -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  6425. -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  6426. -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  6427. -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  6428. -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  6429. -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  6430. -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  6431. -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  6432. -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  6433. -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  6434. -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  6435. -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6436. -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  6437. -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  6438. -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  6439. -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  6440. -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  6441. -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  6442. -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6443. -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6444. -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6445. -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  6446. -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  6447. -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  6448. -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  6449. -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  6450. -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  6451. -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"`'
  6452. -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"`'
  6453. -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  6454. -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  6455. -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  6456. -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  6457. -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  6458. -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  6459. -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  6460. -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  6461. -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  6462. -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  6463. -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  6464. -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  6465. -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  6466. -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  6467. -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  6468. -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  6469. -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6470. -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6471. -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  6472. -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  6473. -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6474. -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6475. -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  6476. -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6477. -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6478. -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6479. -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6480. -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6481. -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6482. -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  6483. -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  6484. -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  6485. -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6486. -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  6487. -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  6488. -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  6489. -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  6490. -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  6491. -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  6492. -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  6493. -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  6494. -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  6495. -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  6496. -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  6497. -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6498. -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  6499. -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  6500. -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6501. -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6502. -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  6503. -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  6504. -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  6505. -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  6506. -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  6507. -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  6508. -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  6509. -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6510. -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6511. -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6512. -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6513. -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6514. -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  6515. -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  6516. -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  6517. -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6518. -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  6519. -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  6520. -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  6521. -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  6522. -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  6523. -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  6524. -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  6525. -LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6526. -old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6527. -compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6528. -GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6529. -lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6530. -lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6531. -lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6532. -lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6533. -lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6534. -archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6535. -enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6536. -export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6537. -whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6538. -compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6539. -old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6540. -old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6541. -archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6542. -archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6543. -module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6544. -module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6545. -with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6546. -allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6547. -no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6548. -hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6549. -hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6550. -hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6551. -hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6552. -hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6553. -hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6554. -hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6555. -hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6556. -inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6557. -link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6558. -fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6559. -always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6560. -export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6561. -exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6562. -include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6563. -prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6564. -file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6565. -hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
  6566. +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  6567. +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  6568. +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  6569. +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  6570. +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  6571. +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  6572. +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  6573. +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  6574. +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  6575. +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  6576. +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  6577. +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  6578. +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  6579. +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  6580. +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  6581. +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  6582. +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  6583. +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  6584. +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  6585. +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  6586. +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  6587. +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  6588. +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  6589. +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  6590. +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  6591. +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  6592. +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  6593. +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  6594. +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  6595. +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  6596. +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  6597. +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  6598. +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  6599. +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  6600. +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  6601. +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  6602. +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  6603. +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  6604. +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  6605. +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  6606. +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  6607. +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  6608. +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  6609. +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  6610. +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  6611. +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  6612. +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  6613. +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  6614. +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  6615. +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  6616. +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  6617. +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  6618. +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  6619. +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  6620. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  6621. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  6622. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  6623. +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  6624. +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  6625. +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  6626. +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  6627. +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  6628. +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  6629. +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  6630. +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  6631. +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  6632. +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  6633. +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  6634. +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  6635. +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  6636. +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  6637. +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  6638. +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  6639. +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  6640. +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  6641. +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  6642. +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  6643. +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  6644. +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  6645. +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  6646. +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  6647. +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  6648. +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  6649. +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  6650. +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  6651. +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  6652. +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  6653. +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  6654. +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  6655. +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  6656. +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  6657. +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  6658. +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  6659. +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  6660. +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  6661. +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  6662. +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  6663. +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  6664. +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  6665. +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  6666. +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  6667. +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  6668. +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  6669. +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  6670. +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  6671. +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  6672. +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  6673. +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  6674. +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  6675. +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  6676. +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  6677. +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  6678. +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  6679. +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  6680. +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  6681. +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  6682. +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  6683. +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  6684. +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  6685. +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  6686. +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  6687. +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  6688. +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  6689. +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  6690. +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  6691. +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  6692. +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  6693. +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  6694. +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  6695. +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  6696. +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  6697. +LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  6698. +reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  6699. +reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6700. +old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6701. +compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  6702. +GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  6703. +lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  6704. +lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  6705. +lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  6706. +lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  6707. +lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  6708. +archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  6709. +enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  6710. +export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  6711. +whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  6712. +compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  6713. +old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6714. +old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6715. +archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6716. +archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6717. +module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6718. +module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6719. +with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  6720. +allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  6721. +no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  6722. +hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  6723. +hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
  6724. +hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  6725. +hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  6726. +hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  6727. +hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  6728. +hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  6729. +hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  6730. +inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  6731. +link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  6732. +always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  6733. +export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6734. +exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  6735. +include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  6736. +prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6737. +postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  6738. +file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  6739. +hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  6740. LTCC='$LTCC'
  6741. LTCFLAGS='$LTCFLAGS'
  6742. compiler='$compiler_DEFAULT'
  6743. +# A function that is used when there is no print builtin or printf.
  6744. +func_fallback_echo ()
  6745. +{
  6746. + eval 'cat <<_LTECHO_EOF
  6747. +\$1
  6748. +_LTECHO_EOF'
  6749. +}
  6750. +
  6751. # Quote evaled strings.
  6752. -for var in SED \
  6753. +for var in AS \
  6754. +DLLTOOL \
  6755. +OBJDUMP \
  6756. +SHELL \
  6757. +ECHO \
  6758. +SED \
  6759. GREP \
  6760. EGREP \
  6761. FGREP \
  6762. @@ -15455,8 +16315,12 @@
  6763. reload_flag \
  6764. deplibs_check_method \
  6765. file_magic_cmd \
  6766. +file_magic_glob \
  6767. +want_nocaseglob \
  6768. +sharedlib_from_linklib_cmd \
  6769. AR \
  6770. AR_FLAGS \
  6771. +archiver_list_spec \
  6772. STRIP \
  6773. RANLIB \
  6774. CC \
  6775. @@ -15466,14 +16330,14 @@
  6776. lt_cv_sys_global_symbol_to_cdecl \
  6777. lt_cv_sys_global_symbol_to_c_name_address \
  6778. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  6779. -SHELL \
  6780. -ECHO \
  6781. +nm_file_list_spec \
  6782. lt_prog_compiler_no_builtin_flag \
  6783. -lt_prog_compiler_wl \
  6784. lt_prog_compiler_pic \
  6785. +lt_prog_compiler_wl \
  6786. lt_prog_compiler_static \
  6787. lt_cv_prog_compiler_c_o \
  6788. need_locks \
  6789. +MANIFEST_TOOL \
  6790. DSYMUTIL \
  6791. NMEDIT \
  6792. LIPO \
  6793. @@ -15489,7 +16353,6 @@
  6794. hardcode_libdir_flag_spec \
  6795. hardcode_libdir_flag_spec_ld \
  6796. hardcode_libdir_separator \
  6797. -fix_srcfile_path \
  6798. exclude_expsyms \
  6799. include_expsyms \
  6800. file_list_spec \
  6801. @@ -15497,14 +16360,16 @@
  6802. libname_spec \
  6803. library_names_spec \
  6804. soname_spec \
  6805. +install_override_mode \
  6806. finish_eval \
  6807. old_striplib \
  6808. striplib \
  6809. LD_RC \
  6810. +reload_flag_RC \
  6811. compiler_RC \
  6812. lt_prog_compiler_no_builtin_flag_RC \
  6813. -lt_prog_compiler_wl_RC \
  6814. lt_prog_compiler_pic_RC \
  6815. +lt_prog_compiler_wl_RC \
  6816. lt_prog_compiler_static_RC \
  6817. lt_cv_prog_compiler_c_o_RC \
  6818. export_dynamic_flag_spec_RC \
  6819. @@ -15516,13 +16381,12 @@
  6820. hardcode_libdir_flag_spec_RC \
  6821. hardcode_libdir_flag_spec_ld_RC \
  6822. hardcode_libdir_separator_RC \
  6823. -fix_srcfile_path_RC \
  6824. exclude_expsyms_RC \
  6825. include_expsyms_RC \
  6826. file_list_spec_RC; do
  6827. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  6828. + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  6829. *[\\\\\\\`\\"\\\$]*)
  6830. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  6831. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  6832. ;;
  6833. *)
  6834. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  6835. @@ -15544,11 +16408,13 @@
  6836. module_expsym_cmds \
  6837. export_symbols_cmds \
  6838. prelink_cmds \
  6839. +postlink_cmds \
  6840. postinstall_cmds \
  6841. postuninstall_cmds \
  6842. finish_cmds \
  6843. sys_lib_search_path_spec \
  6844. sys_lib_dlsearch_path_spec \
  6845. +reload_cmds_RC \
  6846. old_archive_cmds_RC \
  6847. old_archive_from_new_cmds_RC \
  6848. old_archive_from_expsyms_cmds_RC \
  6849. @@ -15557,10 +16423,11 @@
  6850. module_cmds_RC \
  6851. module_expsym_cmds_RC \
  6852. export_symbols_cmds_RC \
  6853. -prelink_cmds_RC; do
  6854. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  6855. +prelink_cmds_RC \
  6856. +postlink_cmds_RC; do
  6857. + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  6858. *[\\\\\\\`\\"\\\$]*)
  6859. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  6860. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  6861. ;;
  6862. *)
  6863. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  6864. @@ -15568,12 +16435,6 @@
  6865. esac
  6866. done
  6867. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  6868. -case \$lt_ECHO in
  6869. -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  6870. - ;;
  6871. -esac
  6872. -
  6873. ac_aux_dir='$ac_aux_dir'
  6874. xsi_shell='$xsi_shell'
  6875. lt_shell_append='$lt_shell_append'
  6876. @@ -15633,7 +16494,7 @@
  6877. "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  6878. "win32/versioninfo.rc.in") CONFIG_FILES="$CONFIG_FILES win32/versioninfo.rc.in" ;;
  6879. - *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6880. + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6881. esac
  6882. done
  6883. @@ -15656,9 +16517,10 @@
  6884. # after its creation but before its name has been assigned to `$tmp'.
  6885. $debug ||
  6886. {
  6887. - tmp=
  6888. + tmp= ac_tmp=
  6889. trap 'exit_status=$?
  6890. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6891. + : "${ac_tmp:=$tmp}"
  6892. + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6893. ' 0
  6894. trap 'as_fn_exit 1' 1 2 13 15
  6895. }
  6896. @@ -15666,12 +16528,13 @@
  6897. {
  6898. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6899. - test -n "$tmp" && test -d "$tmp"
  6900. + test -d "$tmp"
  6901. } ||
  6902. {
  6903. tmp=./conf$$-$RANDOM
  6904. (umask 077 && mkdir "$tmp")
  6905. -} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  6906. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6907. +ac_tmp=$tmp
  6908. # Set up the scripts for CONFIG_FILES section.
  6909. # No need to generate them if there are no CONFIG_FILES.
  6910. @@ -15688,12 +16551,12 @@
  6911. fi
  6912. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6913. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6914. - ac_cs_awk_cr='\r'
  6915. + ac_cs_awk_cr='\\r'
  6916. else
  6917. ac_cs_awk_cr=$ac_cr
  6918. fi
  6919. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  6920. +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6921. _ACEOF
  6922. @@ -15702,18 +16565,18 @@
  6923. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6924. echo "_ACEOF"
  6925. } >conf$$subs.sh ||
  6926. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  6927. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  6928. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6929. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6930. ac_delim='%!_!# '
  6931. for ac_last_try in false false false false false :; do
  6932. . ./conf$$subs.sh ||
  6933. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  6934. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6935. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6936. if test $ac_delim_n = $ac_delim_num; then
  6937. break
  6938. elif $ac_last_try; then
  6939. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  6940. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6941. else
  6942. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6943. fi
  6944. @@ -15721,7 +16584,7 @@
  6945. rm -f conf$$subs.sh
  6946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6947. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  6948. +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6949. _ACEOF
  6950. sed -n '
  6951. h
  6952. @@ -15735,7 +16598,7 @@
  6953. t delim
  6954. :nl
  6955. h
  6956. -s/\(.\{148\}\).*/\1/
  6957. +s/\(.\{148\}\)..*/\1/
  6958. t more1
  6959. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6960. p
  6961. @@ -15749,7 +16612,7 @@
  6962. t nl
  6963. :delim
  6964. h
  6965. -s/\(.\{148\}\).*/\1/
  6966. +s/\(.\{148\}\)..*/\1/
  6967. t more2
  6968. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6969. p
  6970. @@ -15769,7 +16632,7 @@
  6971. rm -f conf$$subs.awk
  6972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6973. _ACAWK
  6974. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  6975. +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6976. for (key in S) S_is_set[key] = 1
  6977. FS = ""
  6978. @@ -15801,21 +16664,29 @@
  6979. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6980. else
  6981. cat
  6982. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  6983. - || as_fn_error "could not setup config files machinery" "$LINENO" 5
  6984. +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6985. + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6986. _ACEOF
  6987. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  6988. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6989. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6990. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6991. # trailing colons and then remove the whole line if VPATH becomes empty
  6992. # (actually we leave an empty line to preserve line numbers).
  6993. if test "x$srcdir" = x.; then
  6994. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6995. -s/:*\$(srcdir):*/:/
  6996. -s/:*\${srcdir}:*/:/
  6997. -s/:*@srcdir@:*/:/
  6998. -s/^\([^=]*=[ ]*\):*/\1/
  6999. + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7000. +h
  7001. +s///
  7002. +s/^/:/
  7003. +s/[ ]*$/:/
  7004. +s/:\$(srcdir):/:/g
  7005. +s/:\${srcdir}:/:/g
  7006. +s/:@srcdir@:/:/g
  7007. +s/^:*//
  7008. s/:*$//
  7009. +x
  7010. +s/\(=[ ]*\).*/\1/
  7011. +G
  7012. +s/\n//
  7013. s/^[^=]*=[ ]*$//
  7014. }'
  7015. fi
  7016. @@ -15827,7 +16698,7 @@
  7017. # No need to generate them if there are no CONFIG_HEADERS.
  7018. # This happens for instance with `./config.status Makefile'.
  7019. if test -n "$CONFIG_HEADERS"; then
  7020. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  7021. +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7022. BEGIN {
  7023. _ACEOF
  7024. @@ -15839,11 +16710,11 @@
  7025. # handling of long lines.
  7026. ac_delim='%!_!# '
  7027. for ac_last_try in false false :; do
  7028. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7029. - if test -z "$ac_t"; then
  7030. + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7031. + if test -z "$ac_tt"; then
  7032. break
  7033. elif $ac_last_try; then
  7034. - as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  7035. + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7036. else
  7037. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7038. fi
  7039. @@ -15928,7 +16799,7 @@
  7040. _ACAWK
  7041. _ACEOF
  7042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7043. - as_fn_error "could not setup config headers machinery" "$LINENO" 5
  7044. + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7045. fi # test -n "$CONFIG_HEADERS"
  7046. @@ -15941,7 +16812,7 @@
  7047. esac
  7048. case $ac_mode$ac_tag in
  7049. :[FHL]*:*);;
  7050. - :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7051. + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7052. :[FH]-) ac_tag=-:-;;
  7053. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7054. esac
  7055. @@ -15960,7 +16831,7 @@
  7056. for ac_f
  7057. do
  7058. case $ac_f in
  7059. - -) ac_f="$tmp/stdin";;
  7060. + -) ac_f="$ac_tmp/stdin";;
  7061. *) # Look for the file first in the build tree, then in the source tree
  7062. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7063. # because $ac_f cannot contain `:'.
  7064. @@ -15969,7 +16840,7 @@
  7065. [\\/$]*) false;;
  7066. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7067. esac ||
  7068. - as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7069. + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7070. esac
  7071. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7072. as_fn_append ac_file_inputs " '$ac_f'"
  7073. @@ -15995,8 +16866,8 @@
  7074. esac
  7075. case $ac_tag in
  7076. - *:-:* | *:-) cat >"$tmp/stdin" \
  7077. - || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  7078. + *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7079. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7080. esac
  7081. ;;
  7082. esac
  7083. @@ -16132,23 +17003,24 @@
  7084. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7085. $ac_datarootdir_hack
  7086. "
  7087. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7088. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  7089. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7090. + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7091. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7092. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7093. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7094. + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7095. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7096. + "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7098. -which seems to be undefined. Please make sure it is defined." >&5
  7099. +which seems to be undefined. Please make sure it is defined" >&5
  7100. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7101. -which seems to be undefined. Please make sure it is defined." >&2;}
  7102. +which seems to be undefined. Please make sure it is defined" >&2;}
  7103. - rm -f "$tmp/stdin"
  7104. + rm -f "$ac_tmp/stdin"
  7105. case $ac_file in
  7106. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  7107. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7108. + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7109. + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7110. esac \
  7111. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  7112. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7113. ;;
  7114. :H)
  7115. #
  7116. @@ -16157,21 +17029,21 @@
  7117. if test x"$ac_file" != x-; then
  7118. {
  7119. $as_echo "/* $configure_input */" \
  7120. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7121. - } >"$tmp/config.h" \
  7122. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  7123. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7124. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7125. + } >"$ac_tmp/config.h" \
  7126. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7127. + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7129. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7130. else
  7131. rm -f "$ac_file"
  7132. - mv "$tmp/config.h" "$ac_file" \
  7133. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  7134. + mv "$ac_tmp/config.h" "$ac_file" \
  7135. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7136. fi
  7137. else
  7138. $as_echo "/* $configure_input */" \
  7139. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7140. - || as_fn_error "could not create -" "$LINENO" 5
  7141. + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7142. + || as_fn_error $? "could not create -" "$LINENO" 5
  7143. fi
  7144. # Compute "$ac_file"'s index in $config_headers.
  7145. _am_arg="$ac_file"
  7146. @@ -16332,7 +17204,8 @@
  7147. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7148. #
  7149. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  7150. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  7151. +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  7152. +# Inc.
  7153. # Written by Gordon Matzigkeit, 1996
  7154. #
  7155. # This file is part of GNU Libtool.
  7156. @@ -16369,13 +17242,13 @@
  7157. macro_revision=$macro_revision
  7158. # Assembler program.
  7159. -AS=$AS
  7160. +AS=$lt_AS
  7161. # DLL creation program.
  7162. -DLLTOOL=$DLLTOOL
  7163. +DLLTOOL=$lt_DLLTOOL
  7164. # Object dumper program.
  7165. -OBJDUMP=$OBJDUMP
  7166. +OBJDUMP=$lt_OBJDUMP
  7167. # Whether or not to build shared libraries.
  7168. build_libtool_libs=$enable_shared
  7169. @@ -16389,6 +17262,12 @@
  7170. # Whether or not to optimize for fast installation.
  7171. fast_install=$enable_fast_install
  7172. +# Shell to use when invoking shell scripts.
  7173. +SHELL=$lt_SHELL
  7174. +
  7175. +# An echo program that protects backslashes.
  7176. +ECHO=$lt_ECHO
  7177. +
  7178. # The host system.
  7179. host_alias=$host_alias
  7180. host=$host
  7181. @@ -16438,20 +17317,36 @@
  7182. # turn newlines into spaces.
  7183. NL2SP=$lt_lt_NL2SP
  7184. -# How to create reloadable object files.
  7185. -reload_flag=$lt_reload_flag
  7186. -reload_cmds=$lt_reload_cmds
  7187. +# convert \$build file names to \$host format.
  7188. +to_host_file_cmd=$lt_cv_to_host_file_cmd
  7189. +
  7190. +# convert \$build files to toolchain format.
  7191. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7192. # Method to check whether dependent libraries are shared objects.
  7193. deplibs_check_method=$lt_deplibs_check_method
  7194. -# Command to use when deplibs_check_method == "file_magic".
  7195. +# Command to use when deplibs_check_method = "file_magic".
  7196. file_magic_cmd=$lt_file_magic_cmd
  7197. +# How to find potential files when deplibs_check_method = "file_magic".
  7198. +file_magic_glob=$lt_file_magic_glob
  7199. +
  7200. +# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  7201. +want_nocaseglob=$lt_want_nocaseglob
  7202. +
  7203. +# Command to associate shared and link libraries.
  7204. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  7205. +
  7206. # The archiver.
  7207. AR=$lt_AR
  7208. +
  7209. +# Flags to create an archive.
  7210. AR_FLAGS=$lt_AR_FLAGS
  7211. +# How to feed a file listing to the archiver.
  7212. +archiver_list_spec=$lt_archiver_list_spec
  7213. +
  7214. # A symbol stripping program.
  7215. STRIP=$lt_STRIP
  7216. @@ -16460,6 +17355,9 @@
  7217. old_postinstall_cmds=$lt_old_postinstall_cmds
  7218. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7219. +# Whether to use a lock for old archive extraction.
  7220. +lock_old_archive_extraction=$lock_old_archive_extraction
  7221. +
  7222. # A C compiler.
  7223. LTCC=$lt_CC
  7224. @@ -16478,14 +17376,14 @@
  7225. # Transform the output of nm in a C name address pair when lib prefix is needed.
  7226. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  7227. -# The name of the directory that contains temporary libtool files.
  7228. -objdir=$objdir
  7229. +# Specify filename containing input files for \$NM.
  7230. +nm_file_list_spec=$lt_nm_file_list_spec
  7231. -# Shell to use when invoking shell scripts.
  7232. -SHELL=$lt_SHELL
  7233. +# The root where to search for dependent libraries,and in which our libraries should be installed.
  7234. +lt_sysroot=$lt_sysroot
  7235. -# An echo program that does not interpret backslashes.
  7236. -ECHO=$lt_ECHO
  7237. +# The name of the directory that contains temporary libtool files.
  7238. +objdir=$objdir
  7239. # Used to examine libraries when file_magic_cmd begins with "file".
  7240. MAGIC_CMD=$MAGIC_CMD
  7241. @@ -16493,6 +17391,9 @@
  7242. # Must we lock files when doing compilation?
  7243. need_locks=$lt_need_locks
  7244. +# Manifest tool.
  7245. +MANIFEST_TOOL=$lt_MANIFEST_TOOL
  7246. +
  7247. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  7248. DSYMUTIL=$lt_DSYMUTIL
  7249. @@ -16549,6 +17450,9 @@
  7250. # The coded name of the library, if different from the real name.
  7251. soname_spec=$lt_soname_spec
  7252. +# Permission mode override for installation of shared libraries.
  7253. +install_override_mode=$lt_install_override_mode
  7254. +
  7255. # Command to use after installation of a shared archive.
  7256. postinstall_cmds=$lt_postinstall_cmds
  7257. @@ -16588,6 +17492,10 @@
  7258. # The linker used to build libraries.
  7259. LD=$lt_LD
  7260. +# How to create reloadable object files.
  7261. +reload_flag=$lt_reload_flag
  7262. +reload_cmds=$lt_reload_cmds
  7263. +
  7264. # Commands used to build an old-style archive.
  7265. old_archive_cmds=$lt_old_archive_cmds
  7266. @@ -16600,12 +17508,12 @@
  7267. # Compiler flag to turn off builtin functions.
  7268. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  7269. -# How to pass a linker flag through the compiler.
  7270. -wl=$lt_lt_prog_compiler_wl
  7271. -
  7272. # Additional compiler flags for building library objects.
  7273. pic_flag=$lt_lt_prog_compiler_pic
  7274. +# How to pass a linker flag through the compiler.
  7275. +wl=$lt_lt_prog_compiler_wl
  7276. +
  7277. # Compiler flag to prevent dynamic linking.
  7278. link_static_flag=$lt_lt_prog_compiler_static
  7279. @@ -16692,9 +17600,6 @@
  7280. # Whether libtool must link a program against all its dependency libraries.
  7281. link_all_deplibs=$link_all_deplibs
  7282. -# Fix the shell variable \$srcfile for the compiler.
  7283. -fix_srcfile_path=$lt_fix_srcfile_path
  7284. -
  7285. # Set to "yes" if exported symbols are required.
  7286. always_export_symbols=$always_export_symbols
  7287. @@ -16710,6 +17615,9 @@
  7288. # Commands necessary for linking programs (against libraries) with templates.
  7289. prelink_cmds=$lt_prelink_cmds
  7290. +# Commands necessary for finishing linking programs.
  7291. +postlink_cmds=$lt_postlink_cmds
  7292. +
  7293. # Specify filename containing input files.
  7294. file_list_spec=$lt_file_list_spec
  7295. @@ -16742,212 +17650,169 @@
  7296. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7297. # text mode, it properly converts lines to CR/LF. This bash problem
  7298. # is reportedly fixed, but why not run on old versions too?
  7299. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  7300. - || (rm -f "$cfgfile"; exit 1)
  7301. -
  7302. - case $xsi_shell in
  7303. - yes)
  7304. - cat << \_LT_EOF >> "$cfgfile"
  7305. -
  7306. -# func_dirname file append nondir_replacement
  7307. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7308. -# otherwise set result to NONDIR_REPLACEMENT.
  7309. -func_dirname ()
  7310. -{
  7311. - case ${1} in
  7312. - */*) func_dirname_result="${1%/*}${2}" ;;
  7313. - * ) func_dirname_result="${3}" ;;
  7314. - esac
  7315. -}
  7316. -
  7317. -# func_basename file
  7318. -func_basename ()
  7319. -{
  7320. - func_basename_result="${1##*/}"
  7321. -}
  7322. -
  7323. -# func_dirname_and_basename file append nondir_replacement
  7324. -# perform func_basename and func_dirname in a single function
  7325. -# call:
  7326. -# dirname: Compute the dirname of FILE. If nonempty,
  7327. -# add APPEND to the result, otherwise set result
  7328. -# to NONDIR_REPLACEMENT.
  7329. -# value returned in "$func_dirname_result"
  7330. -# basename: Compute filename of FILE.
  7331. -# value retuned in "$func_basename_result"
  7332. -# Implementation must be kept synchronized with func_dirname
  7333. -# and func_basename. For efficiency, we do not delegate to
  7334. -# those functions but instead duplicate the functionality here.
  7335. -func_dirname_and_basename ()
  7336. -{
  7337. - case ${1} in
  7338. - */*) func_dirname_result="${1%/*}${2}" ;;
  7339. - * ) func_dirname_result="${3}" ;;
  7340. - esac
  7341. - func_basename_result="${1##*/}"
  7342. -}
  7343. -
  7344. -# func_stripname prefix suffix name
  7345. -# strip PREFIX and SUFFIX off of NAME.
  7346. -# PREFIX and SUFFIX must not contain globbing or regex special
  7347. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  7348. -# dot (in which case that matches only a dot).
  7349. -func_stripname ()
  7350. -{
  7351. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7352. - # positional parameters, so assign one to ordinary parameter first.
  7353. - func_stripname_result=${3}
  7354. - func_stripname_result=${func_stripname_result#"${1}"}
  7355. - func_stripname_result=${func_stripname_result%"${2}"}
  7356. -}
  7357. -
  7358. -# func_opt_split
  7359. -func_opt_split ()
  7360. -{
  7361. - func_opt_split_opt=${1%%=*}
  7362. - func_opt_split_arg=${1#*=}
  7363. -}
  7364. -
  7365. -# func_lo2o object
  7366. -func_lo2o ()
  7367. -{
  7368. - case ${1} in
  7369. - *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7370. - *) func_lo2o_result=${1} ;;
  7371. - esac
  7372. -}
  7373. -
  7374. -# func_xform libobj-or-source
  7375. -func_xform ()
  7376. -{
  7377. - func_xform_result=${1%.*}.lo
  7378. -}
  7379. -
  7380. -# func_arith arithmetic-term...
  7381. -func_arith ()
  7382. -{
  7383. - func_arith_result=$(( $* ))
  7384. -}
  7385. -
  7386. -# func_len string
  7387. -# STRING may not start with a hyphen.
  7388. -func_len ()
  7389. -{
  7390. - func_len_result=${#1}
  7391. -}
  7392. -
  7393. -_LT_EOF
  7394. - ;;
  7395. - *) # Bourne compatible functions.
  7396. - cat << \_LT_EOF >> "$cfgfile"
  7397. -
  7398. -# func_dirname file append nondir_replacement
  7399. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7400. -# otherwise set result to NONDIR_REPLACEMENT.
  7401. -func_dirname ()
  7402. -{
  7403. - # Extract subdirectory from the argument.
  7404. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  7405. - if test "X$func_dirname_result" = "X${1}"; then
  7406. - func_dirname_result="${3}"
  7407. - else
  7408. - func_dirname_result="$func_dirname_result${2}"
  7409. - fi
  7410. -}
  7411. -
  7412. -# func_basename file
  7413. -func_basename ()
  7414. -{
  7415. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  7416. -}
  7417. -
  7418. -
  7419. -# func_stripname prefix suffix name
  7420. -# strip PREFIX and SUFFIX off of NAME.
  7421. -# PREFIX and SUFFIX must not contain globbing or regex special
  7422. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  7423. -# dot (in which case that matches only a dot).
  7424. -# func_strip_suffix prefix name
  7425. -func_stripname ()
  7426. -{
  7427. - case ${2} in
  7428. - .*) func_stripname_result=`$ECHO "X${3}" \
  7429. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  7430. - *) func_stripname_result=`$ECHO "X${3}" \
  7431. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  7432. - esac
  7433. -}
  7434. -
  7435. -# sed scripts:
  7436. -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  7437. -my_sed_long_arg='1s/^-[^=]*=//'
  7438. -
  7439. -# func_opt_split
  7440. -func_opt_split ()
  7441. -{
  7442. - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  7443. - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  7444. -}
  7445. -
  7446. -# func_lo2o object
  7447. -func_lo2o ()
  7448. -{
  7449. - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  7450. -}
  7451. -
  7452. -# func_xform libobj-or-source
  7453. -func_xform ()
  7454. -{
  7455. - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  7456. -}
  7457. -
  7458. -# func_arith arithmetic-term...
  7459. -func_arith ()
  7460. -{
  7461. - func_arith_result=`expr "$@"`
  7462. -}
  7463. -
  7464. -# func_len string
  7465. -# STRING may not start with a hyphen.
  7466. -func_len ()
  7467. -{
  7468. - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  7469. -}
  7470. -
  7471. -_LT_EOF
  7472. -esac
  7473. -
  7474. -case $lt_shell_append in
  7475. - yes)
  7476. - cat << \_LT_EOF >> "$cfgfile"
  7477. -
  7478. -# func_append var value
  7479. -# Append VALUE to the end of shell variable VAR.
  7480. -func_append ()
  7481. -{
  7482. - eval "$1+=\$2"
  7483. -}
  7484. -_LT_EOF
  7485. - ;;
  7486. - *)
  7487. - cat << \_LT_EOF >> "$cfgfile"
  7488. -
  7489. -# func_append var value
  7490. -# Append VALUE to the end of shell variable VAR.
  7491. -func_append ()
  7492. -{
  7493. - eval "$1=\$$1\$2"
  7494. -}
  7495. -
  7496. -_LT_EOF
  7497. - ;;
  7498. - esac
  7499. + sed '$q' "$ltmain" >> "$cfgfile" \
  7500. + || (rm -f "$cfgfile"; exit 1)
  7501. + if test x"$xsi_shell" = xyes; then
  7502. + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  7503. +func_dirname ()\
  7504. +{\
  7505. +\ case ${1} in\
  7506. +\ */*) func_dirname_result="${1%/*}${2}" ;;\
  7507. +\ * ) func_dirname_result="${3}" ;;\
  7508. +\ esac\
  7509. +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  7510. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7511. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7512. +test 0 -eq $? || _lt_function_replace_fail=:
  7513. +
  7514. +
  7515. + sed -e '/^func_basename ()$/,/^} # func_basename /c\
  7516. +func_basename ()\
  7517. +{\
  7518. +\ func_basename_result="${1##*/}"\
  7519. +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  7520. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7521. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7522. +test 0 -eq $? || _lt_function_replace_fail=:
  7523. +
  7524. +
  7525. + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  7526. +func_dirname_and_basename ()\
  7527. +{\
  7528. +\ case ${1} in\
  7529. +\ */*) func_dirname_result="${1%/*}${2}" ;;\
  7530. +\ * ) func_dirname_result="${3}" ;;\
  7531. +\ esac\
  7532. +\ func_basename_result="${1##*/}"\
  7533. +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  7534. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7535. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7536. +test 0 -eq $? || _lt_function_replace_fail=:
  7537. +
  7538. +
  7539. + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  7540. +func_stripname ()\
  7541. +{\
  7542. +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  7543. +\ # positional parameters, so assign one to ordinary parameter first.\
  7544. +\ func_stripname_result=${3}\
  7545. +\ func_stripname_result=${func_stripname_result#"${1}"}\
  7546. +\ func_stripname_result=${func_stripname_result%"${2}"}\
  7547. +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  7548. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7549. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7550. +test 0 -eq $? || _lt_function_replace_fail=:
  7551. +
  7552. +
  7553. + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  7554. +func_split_long_opt ()\
  7555. +{\
  7556. +\ func_split_long_opt_name=${1%%=*}\
  7557. +\ func_split_long_opt_arg=${1#*=}\
  7558. +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  7559. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7560. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7561. +test 0 -eq $? || _lt_function_replace_fail=:
  7562. +
  7563. +
  7564. + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  7565. +func_split_short_opt ()\
  7566. +{\
  7567. +\ func_split_short_opt_arg=${1#??}\
  7568. +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  7569. +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  7570. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7571. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7572. +test 0 -eq $? || _lt_function_replace_fail=:
  7573. +
  7574. +
  7575. + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  7576. +func_lo2o ()\
  7577. +{\
  7578. +\ case ${1} in\
  7579. +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  7580. +\ *) func_lo2o_result=${1} ;;\
  7581. +\ esac\
  7582. +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  7583. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7584. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7585. +test 0 -eq $? || _lt_function_replace_fail=:
  7586. +
  7587. +
  7588. + sed -e '/^func_xform ()$/,/^} # func_xform /c\
  7589. +func_xform ()\
  7590. +{\
  7591. + func_xform_result=${1%.*}.lo\
  7592. +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  7593. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7594. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7595. +test 0 -eq $? || _lt_function_replace_fail=:
  7596. +
  7597. +
  7598. + sed -e '/^func_arith ()$/,/^} # func_arith /c\
  7599. +func_arith ()\
  7600. +{\
  7601. + func_arith_result=$(( $* ))\
  7602. +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  7603. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7604. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7605. +test 0 -eq $? || _lt_function_replace_fail=:
  7606. +
  7607. +
  7608. + sed -e '/^func_len ()$/,/^} # func_len /c\
  7609. +func_len ()\
  7610. +{\
  7611. + func_len_result=${#1}\
  7612. +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  7613. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7614. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7615. +test 0 -eq $? || _lt_function_replace_fail=:
  7616. +
  7617. +fi
  7618. +
  7619. +if test x"$lt_shell_append" = xyes; then
  7620. + sed -e '/^func_append ()$/,/^} # func_append /c\
  7621. +func_append ()\
  7622. +{\
  7623. + eval "${1}+=\\${2}"\
  7624. +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  7625. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7626. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7627. +test 0 -eq $? || _lt_function_replace_fail=:
  7628. +
  7629. +
  7630. + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  7631. +func_append_quoted ()\
  7632. +{\
  7633. +\ func_quote_for_eval "${2}"\
  7634. +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  7635. +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  7636. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7637. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7638. +test 0 -eq $? || _lt_function_replace_fail=:
  7639. +
  7640. +
  7641. + # Save a `func_append' function call where possible by direct use of '+='
  7642. + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7643. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7644. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7645. + test 0 -eq $? || _lt_function_replace_fail=:
  7646. +else
  7647. + # Save a `func_append' function call even when '+=' is not available
  7648. + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7649. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  7650. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7651. + test 0 -eq $? || _lt_function_replace_fail=:
  7652. +fi
  7653. +
  7654. +if test x"$_lt_function_replace_fail" = x":"; then
  7655. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  7656. +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  7657. +fi
  7658. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  7659. - || (rm -f "$cfgfile"; exit 1)
  7660. - mv -f "$cfgfile" "$ofile" ||
  7661. + mv -f "$cfgfile" "$ofile" ||
  7662. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7663. chmod +x "$ofile"
  7664. @@ -16959,6 +17824,10 @@
  7665. # The linker used to build libraries.
  7666. LD=$lt_LD_RC
  7667. +# How to create reloadable object files.
  7668. +reload_flag=$lt_reload_flag_RC
  7669. +reload_cmds=$lt_reload_cmds_RC
  7670. +
  7671. # Commands used to build an old-style archive.
  7672. old_archive_cmds=$lt_old_archive_cmds_RC
  7673. @@ -16971,12 +17840,12 @@
  7674. # Compiler flag to turn off builtin functions.
  7675. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  7676. -# How to pass a linker flag through the compiler.
  7677. -wl=$lt_lt_prog_compiler_wl_RC
  7678. -
  7679. # Additional compiler flags for building library objects.
  7680. pic_flag=$lt_lt_prog_compiler_pic_RC
  7681. +# How to pass a linker flag through the compiler.
  7682. +wl=$lt_lt_prog_compiler_wl_RC
  7683. +
  7684. # Compiler flag to prevent dynamic linking.
  7685. link_static_flag=$lt_lt_prog_compiler_static_RC
  7686. @@ -17063,9 +17932,6 @@
  7687. # Whether libtool must link a program against all its dependency libraries.
  7688. link_all_deplibs=$link_all_deplibs_RC
  7689. -# Fix the shell variable \$srcfile for the compiler.
  7690. -fix_srcfile_path=$lt_fix_srcfile_path_RC
  7691. -
  7692. # Set to "yes" if exported symbols are required.
  7693. always_export_symbols=$always_export_symbols_RC
  7694. @@ -17081,6 +17947,9 @@
  7695. # Commands necessary for linking programs (against libraries) with templates.
  7696. prelink_cmds=$lt_prelink_cmds_RC
  7697. +# Commands necessary for finishing linking programs.
  7698. +postlink_cmds=$lt_postlink_cmds_RC
  7699. +
  7700. # Specify filename containing input files.
  7701. file_list_spec=$lt_file_list_spec_RC
  7702. @@ -17101,7 +17970,7 @@
  7703. ac_clean_files=$ac_clean_files_save
  7704. test $ac_write_fail = 0 ||
  7705. - as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7706. + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7707. # configure is writing to config.log, and then calls config.status.
  7708. @@ -17122,7 +17991,7 @@
  7709. exec 5>>config.log
  7710. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7711. # would make configure fail if this is the last instruction.
  7712. - $ac_cs_success || as_fn_exit $?
  7713. + $ac_cs_success || as_fn_exit 1
  7714. fi
  7715. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7717. diff -Nur opensc-0.11.13.orig/doc/Makefile.in opensc-0.11.13/doc/Makefile.in
  7718. --- opensc-0.11.13.orig/doc/Makefile.in 2010-02-16 10:32:17.000000000 +0100
  7719. +++ opensc-0.11.13/doc/Makefile.in 2011-01-19 18:18:11.000000000 +0100
  7720. @@ -1,4 +1,4 @@
  7721. -# Makefile.in generated by automake 1.11 from Makefile.am.
  7722. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7723. # @configure_input@
  7724. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  7725. @@ -181,6 +181,7 @@
  7726. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  7727. LTLIB_LIBS = @LTLIB_LIBS@
  7728. MAKEINFO = @MAKEINFO@
  7729. +MANIFEST_TOOL = @MANIFEST_TOOL@
  7730. MKDIR_P = @MKDIR_P@
  7731. NM = @NM@
  7732. NMEDIT = @NMEDIT@
  7733. @@ -221,6 +222,8 @@
  7734. PCSC_CFLAGS = @PCSC_CFLAGS@
  7735. PCSC_LIBS = @PCSC_LIBS@
  7736. PKG_CONFIG = @PKG_CONFIG@
  7737. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  7738. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  7739. PTHREAD_CC = @PTHREAD_CC@
  7740. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  7741. PTHREAD_LIBS = @PTHREAD_LIBS@
  7742. @@ -245,6 +248,7 @@
  7743. abs_srcdir = @abs_srcdir@
  7744. abs_top_builddir = @abs_top_builddir@
  7745. abs_top_srcdir = @abs_top_srcdir@
  7746. +ac_ct_AR = @ac_ct_AR@
  7747. ac_ct_CC = @ac_ct_CC@
  7748. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  7749. acx_pthread_config = @acx_pthread_config@
  7750. @@ -278,7 +282,6 @@
  7751. libexecdir = @libexecdir@
  7752. localedir = @localedir@
  7753. localstatedir = @localstatedir@
  7754. -lt_ECHO = @lt_ECHO@
  7755. mandir = @mandir@
  7756. mkdir_p = @mkdir_p@
  7757. oldincludedir = @oldincludedir@
  7758. @@ -504,7 +507,7 @@
  7759. # (which will cause the Makefiles to be regenerated when you run `make');
  7760. # (2) otherwise, pass the desired values on the `make' command line.
  7761. $(RECURSIVE_TARGETS):
  7762. - @failcom='exit 1'; \
  7763. + @fail= failcom='exit 1'; \
  7764. for f in x $$MAKEFLAGS; do \
  7765. case $$f in \
  7766. *=* | --[!k]*);; \
  7767. @@ -529,7 +532,7 @@
  7768. fi; test -z "$$fail"
  7769. $(RECURSIVE_CLEAN_TARGETS):
  7770. - @failcom='exit 1'; \
  7771. + @fail= failcom='exit 1'; \
  7772. for f in x $$MAKEFLAGS; do \
  7773. case $$f in \
  7774. *=* | --[!k]*);; \
  7775. diff -Nur opensc-0.11.13.orig/doc/nonpersistent/Makefile.in opensc-0.11.13/doc/nonpersistent/Makefile.in
  7776. --- opensc-0.11.13.orig/doc/nonpersistent/Makefile.in 2010-02-16 10:32:17.000000000 +0100
  7777. +++ opensc-0.11.13/doc/nonpersistent/Makefile.in 2011-01-19 18:18:11.000000000 +0100
  7778. @@ -1,4 +1,4 @@
  7779. -# Makefile.in generated by automake 1.11 from Makefile.am.
  7780. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7781. # @configure_input@
  7782. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  7783. @@ -126,6 +126,7 @@
  7784. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  7785. LTLIB_LIBS = @LTLIB_LIBS@
  7786. MAKEINFO = @MAKEINFO@
  7787. +MANIFEST_TOOL = @MANIFEST_TOOL@
  7788. MKDIR_P = @MKDIR_P@
  7789. NM = @NM@
  7790. NMEDIT = @NMEDIT@
  7791. @@ -166,6 +167,8 @@
  7792. PCSC_CFLAGS = @PCSC_CFLAGS@
  7793. PCSC_LIBS = @PCSC_LIBS@
  7794. PKG_CONFIG = @PKG_CONFIG@
  7795. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  7796. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  7797. PTHREAD_CC = @PTHREAD_CC@
  7798. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  7799. PTHREAD_LIBS = @PTHREAD_LIBS@
  7800. @@ -190,6 +193,7 @@
  7801. abs_srcdir = @abs_srcdir@
  7802. abs_top_builddir = @abs_top_builddir@
  7803. abs_top_srcdir = @abs_top_srcdir@
  7804. +ac_ct_AR = @ac_ct_AR@
  7805. ac_ct_CC = @ac_ct_CC@
  7806. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  7807. acx_pthread_config = @acx_pthread_config@
  7808. @@ -223,7 +227,6 @@
  7809. libexecdir = @libexecdir@
  7810. localedir = @localedir@
  7811. localstatedir = @localstatedir@
  7812. -lt_ECHO = @lt_ECHO@
  7813. mandir = @mandir@
  7814. mkdir_p = @mkdir_p@
  7815. oldincludedir = @oldincludedir@
  7816. diff -Nur opensc-0.11.13.orig/etc/Makefile.in opensc-0.11.13/etc/Makefile.in
  7817. --- opensc-0.11.13.orig/etc/Makefile.in 2010-02-16 10:32:17.000000000 +0100
  7818. +++ opensc-0.11.13/etc/Makefile.in 2011-01-19 18:18:11.000000000 +0100
  7819. @@ -1,4 +1,4 @@
  7820. -# Makefile.in generated by automake 1.11 from Makefile.am.
  7821. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7822. # @configure_input@
  7823. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  7824. @@ -123,6 +123,7 @@
  7825. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  7826. LTLIB_LIBS = @LTLIB_LIBS@
  7827. MAKEINFO = @MAKEINFO@
  7828. +MANIFEST_TOOL = @MANIFEST_TOOL@
  7829. MKDIR_P = @MKDIR_P@
  7830. NM = @NM@
  7831. NMEDIT = @NMEDIT@
  7832. @@ -163,6 +164,8 @@
  7833. PCSC_CFLAGS = @PCSC_CFLAGS@
  7834. PCSC_LIBS = @PCSC_LIBS@
  7835. PKG_CONFIG = @PKG_CONFIG@
  7836. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  7837. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  7838. PTHREAD_CC = @PTHREAD_CC@
  7839. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  7840. PTHREAD_LIBS = @PTHREAD_LIBS@
  7841. @@ -187,6 +190,7 @@
  7842. abs_srcdir = @abs_srcdir@
  7843. abs_top_builddir = @abs_top_builddir@
  7844. abs_top_srcdir = @abs_top_srcdir@
  7845. +ac_ct_AR = @ac_ct_AR@
  7846. ac_ct_CC = @ac_ct_CC@
  7847. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  7848. acx_pthread_config = @acx_pthread_config@
  7849. @@ -220,7 +224,6 @@
  7850. libexecdir = @libexecdir@
  7851. localedir = @localedir@
  7852. localstatedir = @localstatedir@
  7853. -lt_ECHO = @lt_ECHO@
  7854. mandir = @mandir@
  7855. mkdir_p = @mkdir_p@
  7856. oldincludedir = @oldincludedir@
  7857. diff -Nur opensc-0.11.13.orig/ltmain.sh opensc-0.11.13/ltmain.sh
  7858. --- opensc-0.11.13.orig/ltmain.sh 2010-02-16 10:32:09.000000000 +0100
  7859. +++ opensc-0.11.13/ltmain.sh 2011-01-19 18:18:43.000000000 +0100
  7860. @@ -1,9 +1,9 @@
  7861. -# Generated from ltmain.m4sh.
  7862. -# ltmain.sh (GNU libtool) 2.2.6
  7863. +# libtool (GNU libtool) 2.4
  7864. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7865. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  7866. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  7867. +# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
  7868. # This is free software; see the source for copying conditions. There is NO
  7869. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  7870. @@ -32,50 +32,56 @@
  7871. #
  7872. # Provide generalized library-building support services.
  7873. #
  7874. -# --config show all configuration variables
  7875. -# --debug enable verbose shell tracing
  7876. -# -n, --dry-run display commands without modifying any files
  7877. -# --features display basic configuration information and exit
  7878. -# --mode=MODE use operation mode MODE
  7879. -# --preserve-dup-deps don't remove duplicate dependency libraries
  7880. -# --quiet, --silent don't print informational messages
  7881. -# --tag=TAG use configuration variables from tag TAG
  7882. -# -v, --verbose print informational messages (default)
  7883. -# --version print version information
  7884. -# -h, --help print short or long help message
  7885. +# --config show all configuration variables
  7886. +# --debug enable verbose shell tracing
  7887. +# -n, --dry-run display commands without modifying any files
  7888. +# --features display basic configuration information and exit
  7889. +# --mode=MODE use operation mode MODE
  7890. +# --preserve-dup-deps don't remove duplicate dependency libraries
  7891. +# --quiet, --silent don't print informational messages
  7892. +# --no-quiet, --no-silent
  7893. +# print informational messages (default)
  7894. +# --tag=TAG use configuration variables from tag TAG
  7895. +# -v, --verbose print more informational messages than default
  7896. +# --no-verbose don't print the extra informational messages
  7897. +# --version print version information
  7898. +# -h, --help, --help-all print short, long, or detailed help message
  7899. #
  7900. # MODE must be one of the following:
  7901. #
  7902. -# clean remove files from the build directory
  7903. -# compile compile a source file into a libtool object
  7904. -# execute automatically set library path, then run a program
  7905. -# finish complete the installation of libtool libraries
  7906. -# install install libraries or executables
  7907. -# link create a library or an executable
  7908. -# uninstall remove libraries from an installed directory
  7909. +# clean remove files from the build directory
  7910. +# compile compile a source file into a libtool object
  7911. +# execute automatically set library path, then run a program
  7912. +# finish complete the installation of libtool libraries
  7913. +# install install libraries or executables
  7914. +# link create a library or an executable
  7915. +# uninstall remove libraries from an installed directory
  7916. #
  7917. -# MODE-ARGS vary depending on the MODE.
  7918. +# MODE-ARGS vary depending on the MODE. When passed as first option,
  7919. +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
  7920. # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  7921. #
  7922. # When reporting a bug, please describe a test case to reproduce it and
  7923. # include the following information:
  7924. #
  7925. -# host-triplet: $host
  7926. -# shell: $SHELL
  7927. -# compiler: $LTCC
  7928. -# compiler flags: $LTCFLAGS
  7929. -# linker: $LD (gnu? $with_gnu_ld)
  7930. -# $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-4
  7931. -# automake: $automake_version
  7932. -# autoconf: $autoconf_version
  7933. +# host-triplet: $host
  7934. +# shell: $SHELL
  7935. +# compiler: $LTCC
  7936. +# compiler flags: $LTCFLAGS
  7937. +# linker: $LD (gnu? $with_gnu_ld)
  7938. +# $progname: (GNU libtool) 2.4
  7939. +# automake: $automake_version
  7940. +# autoconf: $autoconf_version
  7941. #
  7942. # Report bugs to <bug-libtool@gnu.org>.
  7943. +# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
  7944. +# General help using GNU software: <http://www.gnu.org/gethelp/>.
  7945. -PROGRAM=ltmain.sh
  7946. +PROGRAM=libtool
  7947. PACKAGE=libtool
  7948. -VERSION="2.2.6 Debian-2.2.6a-4"
  7949. +VERSION=2.4
  7950. TIMESTAMP=""
  7951. -package_revision=1.3012
  7952. +package_revision=1.3293
  7953. # Be Bourne compatible
  7954. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7955. @@ -91,10 +97,15 @@
  7956. BIN_SH=xpg4; export BIN_SH # for Tru64
  7957. DUALCASE=1; export DUALCASE # for MKS sh
  7958. +# A function that is used when there is no print builtin or printf.
  7959. +func_fallback_echo ()
  7960. +{
  7961. + eval 'cat <<_LTECHO_EOF
  7962. +$1
  7963. +_LTECHO_EOF'
  7964. +}
  7965. +
  7966. # NLS nuisances: We save the old values to restore during execute mode.
  7967. -# Only set LANG and LC_ALL to C if already set.
  7968. -# These must not be set unconditionally because not all systems understand
  7969. -# e.g. LANG=C (notably SCO).
  7970. lt_user_locale=
  7971. lt_safe_locale=
  7972. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  7973. @@ -107,24 +118,33 @@
  7974. lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  7975. fi"
  7976. done
  7977. +LC_ALL=C
  7978. +LANGUAGE=C
  7979. +export LANGUAGE LC_ALL
  7980. $lt_unset CDPATH
  7981. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  7982. +# is ksh but when the shell is invoked as "sh" and the current value of
  7983. +# the _XPG environment variable is not equal to 1 (one), the special
  7984. +# positional parameter $0, within a function call, is the name of the
  7985. +# function.
  7986. +progpath="$0"
  7987. : ${CP="cp -f"}
  7988. -: ${ECHO="echo"}
  7989. -: ${EGREP="/bin/grep -E"}
  7990. -: ${FGREP="/bin/grep -F"}
  7991. -: ${GREP="/bin/grep"}
  7992. +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
  7993. +: ${EGREP="grep -E"}
  7994. +: ${FGREP="grep -F"}
  7995. +: ${GREP="grep"}
  7996. : ${LN_S="ln -s"}
  7997. : ${MAKE="make"}
  7998. : ${MKDIR="mkdir"}
  7999. : ${MV="mv -f"}
  8000. : ${RM="rm -f"}
  8001. -: ${SED="/bin/sed"}
  8002. +: ${SED="sed"}
  8003. : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  8004. : ${Xsed="$SED -e 1s/^X//"}
  8005. @@ -144,6 +164,27 @@
  8006. dirname="s,/[^/]*$,,"
  8007. basename="s,^.*/,,"
  8008. +# func_dirname file append nondir_replacement
  8009. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  8010. +# otherwise set result to NONDIR_REPLACEMENT.
  8011. +func_dirname ()
  8012. +{
  8013. + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  8014. + if test "X$func_dirname_result" = "X${1}"; then
  8015. + func_dirname_result="${3}"
  8016. + else
  8017. + func_dirname_result="$func_dirname_result${2}"
  8018. + fi
  8019. +} # func_dirname may be replaced by extended shell implementation
  8020. +
  8021. +
  8022. +# func_basename file
  8023. +func_basename ()
  8024. +{
  8025. + func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  8026. +} # func_basename may be replaced by extended shell implementation
  8027. +
  8028. +
  8029. # func_dirname_and_basename file append nondir_replacement
  8030. # perform func_basename and func_dirname in a single function
  8031. # call:
  8032. @@ -158,33 +199,183 @@
  8033. # those functions but instead duplicate the functionality here.
  8034. func_dirname_and_basename ()
  8035. {
  8036. - # Extract subdirectory from the argument.
  8037. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  8038. - if test "X$func_dirname_result" = "X${1}"; then
  8039. - func_dirname_result="${3}"
  8040. - else
  8041. - func_dirname_result="$func_dirname_result${2}"
  8042. - fi
  8043. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  8044. + # Extract subdirectory from the argument.
  8045. + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
  8046. + if test "X$func_dirname_result" = "X${1}"; then
  8047. + func_dirname_result="${3}"
  8048. + else
  8049. + func_dirname_result="$func_dirname_result${2}"
  8050. + fi
  8051. + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
  8052. +} # func_dirname_and_basename may be replaced by extended shell implementation
  8053. +
  8054. +
  8055. +# func_stripname prefix suffix name
  8056. +# strip PREFIX and SUFFIX off of NAME.
  8057. +# PREFIX and SUFFIX must not contain globbing or regex special
  8058. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  8059. +# dot (in which case that matches only a dot).
  8060. +# func_strip_suffix prefix name
  8061. +func_stripname ()
  8062. +{
  8063. + case ${2} in
  8064. + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  8065. + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  8066. + esac
  8067. +} # func_stripname may be replaced by extended shell implementation
  8068. +
  8069. +
  8070. +# These SED scripts presuppose an absolute path with a trailing slash.
  8071. +pathcar='s,^/\([^/]*\).*$,\1,'
  8072. +pathcdr='s,^/[^/]*,,'
  8073. +removedotparts=':dotsl
  8074. + s@/\./@/@g
  8075. + t dotsl
  8076. + s,/\.$,/,'
  8077. +collapseslashes='s@/\{1,\}@/@g'
  8078. +finalslash='s,/*$,/,'
  8079. +
  8080. +# func_normal_abspath PATH
  8081. +# Remove doubled-up and trailing slashes, "." path components,
  8082. +# and cancel out any ".." path components in PATH after making
  8083. +# it an absolute path.
  8084. +# value returned in "$func_normal_abspath_result"
  8085. +func_normal_abspath ()
  8086. +{
  8087. + # Start from root dir and reassemble the path.
  8088. + func_normal_abspath_result=
  8089. + func_normal_abspath_tpath=$1
  8090. + func_normal_abspath_altnamespace=
  8091. + case $func_normal_abspath_tpath in
  8092. + "")
  8093. + # Empty path, that just means $cwd.
  8094. + func_stripname '' '/' "`pwd`"
  8095. + func_normal_abspath_result=$func_stripname_result
  8096. + return
  8097. + ;;
  8098. + # The next three entries are used to spot a run of precisely
  8099. + # two leading slashes without using negated character classes;
  8100. + # we take advantage of case's first-match behaviour.
  8101. + ///*)
  8102. + # Unusual form of absolute path, do nothing.
  8103. + ;;
  8104. + //*)
  8105. + # Not necessarily an ordinary path; POSIX reserves leading '//'
  8106. + # and for example Cygwin uses it to access remote file shares
  8107. + # over CIFS/SMB, so we conserve a leading double slash if found.
  8108. + func_normal_abspath_altnamespace=/
  8109. + ;;
  8110. + /*)
  8111. + # Absolute path, do nothing.
  8112. + ;;
  8113. + *)
  8114. + # Relative path, prepend $cwd.
  8115. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
  8116. + ;;
  8117. + esac
  8118. + # Cancel out all the simple stuff to save iterations. We also want
  8119. + # the path to end with a slash for ease of parsing, so make sure
  8120. + # there is one (and only one) here.
  8121. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
  8122. + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
  8123. + while :; do
  8124. + # Processed it all yet?
  8125. + if test "$func_normal_abspath_tpath" = / ; then
  8126. + # If we ascended to the root using ".." the result may be empty now.
  8127. + if test -z "$func_normal_abspath_result" ; then
  8128. + func_normal_abspath_result=/
  8129. + fi
  8130. + break
  8131. + fi
  8132. + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
  8133. + -e "$pathcar"`
  8134. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
  8135. + -e "$pathcdr"`
  8136. + # Figure out what to do with it
  8137. + case $func_normal_abspath_tcomponent in
  8138. + "")
  8139. + # Trailing empty path component, ignore it.
  8140. + ;;
  8141. + ..)
  8142. + # Parent dir; strip last assembled component from result.
  8143. + func_dirname "$func_normal_abspath_result"
  8144. + func_normal_abspath_result=$func_dirname_result
  8145. + ;;
  8146. + *)
  8147. + # Actual path component, append it.
  8148. + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
  8149. + ;;
  8150. + esac
  8151. + done
  8152. + # Restore leading double-slash if one was found on entry.
  8153. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
  8154. }
  8155. -# Generated shell functions inserted here.
  8156. +# func_relative_path SRCDIR DSTDIR
  8157. +# generates a relative path from SRCDIR to DSTDIR, with a trailing
  8158. +# slash if non-empty, suitable for immediately appending a filename
  8159. +# without needing to append a separator.
  8160. +# value returned in "$func_relative_path_result"
  8161. +func_relative_path ()
  8162. +{
  8163. + func_relative_path_result=
  8164. + func_normal_abspath "$1"
  8165. + func_relative_path_tlibdir=$func_normal_abspath_result
  8166. + func_normal_abspath "$2"
  8167. + func_relative_path_tbindir=$func_normal_abspath_result
  8168. +
  8169. + # Ascend the tree starting from libdir
  8170. + while :; do
  8171. + # check if we have found a prefix of bindir
  8172. + case $func_relative_path_tbindir in
  8173. + $func_relative_path_tlibdir)
  8174. + # found an exact match
  8175. + func_relative_path_tcancelled=
  8176. + break
  8177. + ;;
  8178. + $func_relative_path_tlibdir*)
  8179. + # found a matching prefix
  8180. + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
  8181. + func_relative_path_tcancelled=$func_stripname_result
  8182. + if test -z "$func_relative_path_result"; then
  8183. + func_relative_path_result=.
  8184. + fi
  8185. + break
  8186. + ;;
  8187. + *)
  8188. + func_dirname $func_relative_path_tlibdir
  8189. + func_relative_path_tlibdir=${func_dirname_result}
  8190. + if test "x$func_relative_path_tlibdir" = x ; then
  8191. + # Have to descend all the way to the root!
  8192. + func_relative_path_result=../$func_relative_path_result
  8193. + func_relative_path_tcancelled=$func_relative_path_tbindir
  8194. + break
  8195. + fi
  8196. + func_relative_path_result=../$func_relative_path_result
  8197. + ;;
  8198. + esac
  8199. + done
  8200. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  8201. -# is ksh but when the shell is invoked as "sh" and the current value of
  8202. -# the _XPG environment variable is not equal to 1 (one), the special
  8203. -# positional parameter $0, within a function call, is the name of the
  8204. -# function.
  8205. -progpath="$0"
  8206. + # Now calculate path; take care to avoid doubling-up slashes.
  8207. + func_stripname '' '/' "$func_relative_path_result"
  8208. + func_relative_path_result=$func_stripname_result
  8209. + func_stripname '/' '/' "$func_relative_path_tcancelled"
  8210. + if test "x$func_stripname_result" != x ; then
  8211. + func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
  8212. + fi
  8213. +
  8214. + # Normalisation. If bindir is libdir, return empty string,
  8215. + # else relative path ending with a slash; either way, target
  8216. + # file name can be directly appended.
  8217. + if test ! -z "$func_relative_path_result"; then
  8218. + func_stripname './' '' "$func_relative_path_result/"
  8219. + func_relative_path_result=$func_stripname_result
  8220. + fi
  8221. +}
  8222. # The name of this program:
  8223. -# In the unlikely event $progname began with a '-', it would play havoc with
  8224. -# func_echo (imagine progname=-n), so we prepend ./ in that case:
  8225. func_dirname_and_basename "$progpath"
  8226. progname=$func_basename_result
  8227. -case $progname in
  8228. - -*) progname=./$progname ;;
  8229. -esac
  8230. # Make sure we have an absolute path for reexecution:
  8231. case $progpath in
  8232. @@ -215,6 +406,15 @@
  8233. # Same as above, but do not quote variable references.
  8234. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8235. +# Sed substitution that turns a string into a regex matching for the
  8236. +# string literally.
  8237. +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
  8238. +
  8239. +# Sed substitution that converts a w32 file name or path
  8240. +# which contains forward slashes, into one that contains
  8241. +# (escaped) backslashes. A very naive implementation.
  8242. +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  8243. +
  8244. # Re-`\' parameter expansions in output of double_quote_subst that were
  8245. # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  8246. # in input to double_quote_subst, that '$' was protected from expansion.
  8247. @@ -243,7 +443,7 @@
  8248. # name if it has been set yet.
  8249. func_echo ()
  8250. {
  8251. - $ECHO "$progname${mode+: }$mode: $*"
  8252. + $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
  8253. }
  8254. # func_verbose arg...
  8255. @@ -258,18 +458,25 @@
  8256. :
  8257. }
  8258. +# func_echo_all arg...
  8259. +# Invoke $ECHO with all args, space-separated.
  8260. +func_echo_all ()
  8261. +{
  8262. + $ECHO "$*"
  8263. +}
  8264. +
  8265. # func_error arg...
  8266. # Echo program name prefixed message to standard error.
  8267. func_error ()
  8268. {
  8269. - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  8270. + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
  8271. }
  8272. # func_warning arg...
  8273. # Echo program name prefixed warning message to standard error.
  8274. func_warning ()
  8275. {
  8276. - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  8277. + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
  8278. # bash bug again:
  8279. :
  8280. @@ -326,9 +533,9 @@
  8281. case $my_directory_path in */*) ;; *) break ;; esac
  8282. # ...otherwise throw away the child directory and loop
  8283. - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  8284. + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
  8285. done
  8286. - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  8287. + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
  8288. save_mkdir_p_IFS="$IFS"; IFS=':'
  8289. for my_dir in $my_dir_list; do
  8290. @@ -378,7 +585,7 @@
  8291. func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  8292. fi
  8293. - $ECHO "X$my_tmpdir" | $Xsed
  8294. + $ECHO "$my_tmpdir"
  8295. }
  8296. @@ -392,7 +599,7 @@
  8297. {
  8298. case $1 in
  8299. *[\\\`\"\$]*)
  8300. - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  8301. + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
  8302. *)
  8303. func_quote_for_eval_unquoted_result="$1" ;;
  8304. esac
  8305. @@ -419,7 +626,7 @@
  8306. {
  8307. case $1 in
  8308. *[\\\`\"]*)
  8309. - my_arg=`$ECHO "X$1" | $Xsed \
  8310. + my_arg=`$ECHO "$1" | $SED \
  8311. -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  8312. *)
  8313. my_arg="$1" ;;
  8314. @@ -488,15 +695,39 @@
  8315. fi
  8316. }
  8317. -
  8318. -
  8319. +# func_tr_sh
  8320. +# Turn $1 into a string suitable for a shell variable name.
  8321. +# Result is stored in $func_tr_sh_result. All characters
  8322. +# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
  8323. +# if $1 begins with a digit, a '_' is prepended as well.
  8324. +func_tr_sh ()
  8325. +{
  8326. + case $1 in
  8327. + [0-9]* | *[!a-zA-Z0-9_]*)
  8328. + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
  8329. + ;;
  8330. + * )
  8331. + func_tr_sh_result=$1
  8332. + ;;
  8333. + esac
  8334. +}
  8335. # func_version
  8336. # Echo version message to standard output and exit.
  8337. func_version ()
  8338. {
  8339. - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  8340. + $opt_debug
  8341. +
  8342. + $SED -n '/(C)/!b go
  8343. + :more
  8344. + /\./!{
  8345. + N
  8346. + s/\n# / /
  8347. + b more
  8348. + }
  8349. + :go
  8350. + /^# '$PROGRAM' (GNU /,/# warranty; / {
  8351. s/^# //
  8352. s/^# *$//
  8353. s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  8354. @@ -509,22 +740,28 @@
  8355. # Echo short help message to standard output and exit.
  8356. func_usage ()
  8357. {
  8358. - $SED -n '/^# Usage:/,/# -h/ {
  8359. + $opt_debug
  8360. +
  8361. + $SED -n '/^# Usage:/,/^# *.*--help/ {
  8362. s/^# //
  8363. s/^# *$//
  8364. s/\$progname/'$progname'/
  8365. p
  8366. }' < "$progpath"
  8367. - $ECHO
  8368. + echo
  8369. $ECHO "run \`$progname --help | more' for full usage"
  8370. exit $?
  8371. }
  8372. -# func_help
  8373. -# Echo long help message to standard output and exit.
  8374. +# func_help [NOEXIT]
  8375. +# Echo long help message to standard output and exit,
  8376. +# unless 'noexit' is passed as argument.
  8377. func_help ()
  8378. {
  8379. + $opt_debug
  8380. +
  8381. $SED -n '/^# Usage:/,/# Report bugs to/ {
  8382. + :print
  8383. s/^# //
  8384. s/^# *$//
  8385. s*\$progname*'$progname'*
  8386. @@ -537,8 +774,15 @@
  8387. s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  8388. s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  8389. p
  8390. - }' < "$progpath"
  8391. - exit $?
  8392. + d
  8393. + }
  8394. + /^# .* home page:/b print
  8395. + /^# General help using/b print
  8396. + ' < "$progpath"
  8397. + ret=$?
  8398. + if test -z "$1"; then
  8399. + exit $ret
  8400. + fi
  8401. }
  8402. # func_missing_arg argname
  8403. @@ -546,63 +790,106 @@
  8404. # exit_cmd.
  8405. func_missing_arg ()
  8406. {
  8407. - func_error "missing argument for $1"
  8408. + $opt_debug
  8409. +
  8410. + func_error "missing argument for $1."
  8411. exit_cmd=exit
  8412. }
  8413. -exit_cmd=:
  8414. +# func_split_short_opt shortopt
  8415. +# Set func_split_short_opt_name and func_split_short_opt_arg shell
  8416. +# variables after splitting SHORTOPT after the 2nd character.
  8417. +func_split_short_opt ()
  8418. +{
  8419. + my_sed_short_opt='1s/^\(..\).*$/\1/;q'
  8420. + my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
  8421. +
  8422. + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
  8423. + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
  8424. +} # func_split_short_opt may be replaced by extended shell implementation
  8425. +
  8426. +
  8427. +# func_split_long_opt longopt
  8428. +# Set func_split_long_opt_name and func_split_long_opt_arg shell
  8429. +# variables after splitting LONGOPT at the `=' sign.
  8430. +func_split_long_opt ()
  8431. +{
  8432. + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
  8433. + my_sed_long_arg='1s/^--[^=]*=//'
  8434. +
  8435. + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
  8436. + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
  8437. +} # func_split_long_opt may be replaced by extended shell implementation
  8438. +exit_cmd=:
  8439. -# Check that we have a working $ECHO.
  8440. -if test "X$1" = X--no-reexec; then
  8441. - # Discard the --no-reexec flag, and continue.
  8442. - shift
  8443. -elif test "X$1" = X--fallback-echo; then
  8444. - # Avoid inline document here, it may be left over
  8445. - :
  8446. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  8447. - # Yippee, $ECHO works!
  8448. - :
  8449. -else
  8450. - # Restart under the correct shell, and then maybe $ECHO will work.
  8451. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  8452. -fi
  8453. -if test "X$1" = X--fallback-echo; then
  8454. - # used as fallback echo
  8455. - shift
  8456. - cat <<EOF
  8457. -$*
  8458. -EOF
  8459. - exit $EXIT_SUCCESS
  8460. -fi
  8461. magic="%%%MAGIC variable%%%"
  8462. magic_exe="%%%MAGIC EXE variable%%%"
  8463. # Global variables.
  8464. -# $mode is unset
  8465. nonopt=
  8466. -execute_dlfiles=
  8467. preserve_args=
  8468. lo2o="s/\\.lo\$/.${objext}/"
  8469. o2lo="s/\\.${objext}\$/.lo/"
  8470. extracted_archives=
  8471. extracted_serial=0
  8472. -opt_dry_run=false
  8473. -opt_duplicate_deps=false
  8474. -opt_silent=false
  8475. -opt_debug=:
  8476. -
  8477. # If this variable is set in any of the actions, the command in it
  8478. # will be execed at the end. This prevents here-documents from being
  8479. # left over by shells.
  8480. exec_cmd=
  8481. +# func_append var value
  8482. +# Append VALUE to the end of shell variable VAR.
  8483. +func_append ()
  8484. +{
  8485. + eval "${1}=\$${1}\${2}"
  8486. +} # func_append may be replaced by extended shell implementation
  8487. +
  8488. +# func_append_quoted var value
  8489. +# Quote VALUE and append to the end of shell variable VAR, separated
  8490. +# by a space.
  8491. +func_append_quoted ()
  8492. +{
  8493. + func_quote_for_eval "${2}"
  8494. + eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
  8495. +} # func_append_quoted may be replaced by extended shell implementation
  8496. +
  8497. +
  8498. +# func_arith arithmetic-term...
  8499. +func_arith ()
  8500. +{
  8501. + func_arith_result=`expr "${@}"`
  8502. +} # func_arith may be replaced by extended shell implementation
  8503. +
  8504. +
  8505. +# func_len string
  8506. +# STRING may not start with a hyphen.
  8507. +func_len ()
  8508. +{
  8509. + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
  8510. +} # func_len may be replaced by extended shell implementation
  8511. +
  8512. +
  8513. +# func_lo2o object
  8514. +func_lo2o ()
  8515. +{
  8516. + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  8517. +} # func_lo2o may be replaced by extended shell implementation
  8518. +
  8519. +
  8520. +# func_xform libobj-or-source
  8521. +func_xform ()
  8522. +{
  8523. + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  8524. +} # func_xform may be replaced by extended shell implementation
  8525. +
  8526. +
  8527. # func_fatal_configuration arg...
  8528. # Echo program name prefixed message to standard error, followed by
  8529. # a configuration failure hint, and exit.
  8530. @@ -636,16 +923,16 @@
  8531. # Display the features supported by this script.
  8532. func_features ()
  8533. {
  8534. - $ECHO "host: $host"
  8535. + echo "host: $host"
  8536. if test "$build_libtool_libs" = yes; then
  8537. - $ECHO "enable shared libraries"
  8538. + echo "enable shared libraries"
  8539. else
  8540. - $ECHO "disable shared libraries"
  8541. + echo "disable shared libraries"
  8542. fi
  8543. if test "$build_old_libs" = yes; then
  8544. - $ECHO "enable static libraries"
  8545. + echo "enable static libraries"
  8546. else
  8547. - $ECHO "disable static libraries"
  8548. + echo "disable static libraries"
  8549. fi
  8550. exit $?
  8551. @@ -692,117 +979,204 @@
  8552. esac
  8553. }
  8554. -# Parse options once, thoroughly. This comes as soon as possible in
  8555. -# the script to make things like `libtool --version' happen quickly.
  8556. +# func_check_version_match
  8557. +# Ensure that we are using m4 macros, and libtool script from the same
  8558. +# release of libtool.
  8559. +func_check_version_match ()
  8560. {
  8561. + if test "$package_revision" != "$macro_revision"; then
  8562. + if test "$VERSION" != "$macro_version"; then
  8563. + if test -z "$macro_version"; then
  8564. + cat >&2 <<_LT_EOF
  8565. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8566. +$progname: definition of this LT_INIT comes from an older release.
  8567. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8568. +$progname: and run autoconf again.
  8569. +_LT_EOF
  8570. + else
  8571. + cat >&2 <<_LT_EOF
  8572. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8573. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  8574. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8575. +$progname: and run autoconf again.
  8576. +_LT_EOF
  8577. + fi
  8578. + else
  8579. + cat >&2 <<_LT_EOF
  8580. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  8581. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  8582. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  8583. +$progname: of $PACKAGE $VERSION and run autoconf again.
  8584. +_LT_EOF
  8585. + fi
  8586. - # Shorthand for --mode=foo, only valid as the first argument
  8587. - case $1 in
  8588. - clean|clea|cle|cl)
  8589. - shift; set dummy --mode clean ${1+"$@"}; shift
  8590. - ;;
  8591. - compile|compil|compi|comp|com|co|c)
  8592. - shift; set dummy --mode compile ${1+"$@"}; shift
  8593. - ;;
  8594. - execute|execut|execu|exec|exe|ex|e)
  8595. - shift; set dummy --mode execute ${1+"$@"}; shift
  8596. - ;;
  8597. - finish|finis|fini|fin|fi|f)
  8598. - shift; set dummy --mode finish ${1+"$@"}; shift
  8599. - ;;
  8600. - install|instal|insta|inst|ins|in|i)
  8601. - shift; set dummy --mode install ${1+"$@"}; shift
  8602. - ;;
  8603. - link|lin|li|l)
  8604. - shift; set dummy --mode link ${1+"$@"}; shift
  8605. - ;;
  8606. - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  8607. - shift; set dummy --mode uninstall ${1+"$@"}; shift
  8608. - ;;
  8609. - esac
  8610. + exit $EXIT_MISMATCH
  8611. + fi
  8612. +}
  8613. - # Parse non-mode specific arguments:
  8614. - while test "$#" -gt 0; do
  8615. +
  8616. +# Shorthand for --mode=foo, only valid as the first argument
  8617. +case $1 in
  8618. +clean|clea|cle|cl)
  8619. + shift; set dummy --mode clean ${1+"$@"}; shift
  8620. + ;;
  8621. +compile|compil|compi|comp|com|co|c)
  8622. + shift; set dummy --mode compile ${1+"$@"}; shift
  8623. + ;;
  8624. +execute|execut|execu|exec|exe|ex|e)
  8625. + shift; set dummy --mode execute ${1+"$@"}; shift
  8626. + ;;
  8627. +finish|finis|fini|fin|fi|f)
  8628. + shift; set dummy --mode finish ${1+"$@"}; shift
  8629. + ;;
  8630. +install|instal|insta|inst|ins|in|i)
  8631. + shift; set dummy --mode install ${1+"$@"}; shift
  8632. + ;;
  8633. +link|lin|li|l)
  8634. + shift; set dummy --mode link ${1+"$@"}; shift
  8635. + ;;
  8636. +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  8637. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  8638. + ;;
  8639. +esac
  8640. +
  8641. +
  8642. +
  8643. +# Option defaults:
  8644. +opt_debug=:
  8645. +opt_dry_run=false
  8646. +opt_config=false
  8647. +opt_preserve_dup_deps=false
  8648. +opt_features=false
  8649. +opt_finish=false
  8650. +opt_help=false
  8651. +opt_help_all=false
  8652. +opt_silent=:
  8653. +opt_verbose=:
  8654. +opt_silent=false
  8655. +opt_verbose=false
  8656. +
  8657. +
  8658. +# Parse options once, thoroughly. This comes as soon as possible in the
  8659. +# script to make things like `--version' happen as quickly as we can.
  8660. +{
  8661. + # this just eases exit handling
  8662. + while test $# -gt 0; do
  8663. opt="$1"
  8664. shift
  8665. -
  8666. case $opt in
  8667. - --config) func_config ;;
  8668. -
  8669. - --debug) preserve_args="$preserve_args $opt"
  8670. + --debug|-x) opt_debug='set -x'
  8671. func_echo "enabling shell trace mode"
  8672. - opt_debug='set -x'
  8673. $opt_debug
  8674. ;;
  8675. -
  8676. - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8677. - execute_dlfiles="$execute_dlfiles $1"
  8678. - shift
  8679. + --dry-run|--dryrun|-n)
  8680. + opt_dry_run=:
  8681. ;;
  8682. -
  8683. - --dry-run | -n) opt_dry_run=: ;;
  8684. - --features) func_features ;;
  8685. - --finish) mode="finish" ;;
  8686. -
  8687. - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8688. - case $1 in
  8689. - # Valid mode arguments:
  8690. - clean) ;;
  8691. - compile) ;;
  8692. - execute) ;;
  8693. - finish) ;;
  8694. - install) ;;
  8695. - link) ;;
  8696. - relink) ;;
  8697. - uninstall) ;;
  8698. -
  8699. - # Catch anything else as an error
  8700. - *) func_error "invalid argument for $opt"
  8701. - exit_cmd=exit
  8702. - break
  8703. - ;;
  8704. - esac
  8705. -
  8706. - mode="$1"
  8707. + --config)
  8708. + opt_config=:
  8709. +func_config
  8710. + ;;
  8711. + --dlopen|-dlopen)
  8712. + optarg="$1"
  8713. + opt_dlopen="${opt_dlopen+$opt_dlopen
  8714. +}$optarg"
  8715. shift
  8716. ;;
  8717. -
  8718. --preserve-dup-deps)
  8719. - opt_duplicate_deps=: ;;
  8720. -
  8721. - --quiet|--silent) preserve_args="$preserve_args $opt"
  8722. - opt_silent=:
  8723. + opt_preserve_dup_deps=:
  8724. ;;
  8725. -
  8726. - --verbose| -v) preserve_args="$preserve_args $opt"
  8727. + --features)
  8728. + opt_features=:
  8729. +func_features
  8730. + ;;
  8731. + --finish)
  8732. + opt_finish=:
  8733. +set dummy --mode finish ${1+"$@"}; shift
  8734. + ;;
  8735. + --help)
  8736. + opt_help=:
  8737. + ;;
  8738. + --help-all)
  8739. + opt_help_all=:
  8740. +opt_help=': help-all'
  8741. + ;;
  8742. + --mode)
  8743. + test $# = 0 && func_missing_arg $opt && break
  8744. + optarg="$1"
  8745. + opt_mode="$optarg"
  8746. +case $optarg in
  8747. + # Valid mode arguments:
  8748. + clean|compile|execute|finish|install|link|relink|uninstall) ;;
  8749. +
  8750. + # Catch anything else as an error
  8751. + *) func_error "invalid argument for $opt"
  8752. + exit_cmd=exit
  8753. + break
  8754. + ;;
  8755. +esac
  8756. + shift
  8757. + ;;
  8758. + --no-silent|--no-quiet)
  8759. opt_silent=false
  8760. +func_append preserve_args " $opt"
  8761. ;;
  8762. -
  8763. - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8764. - preserve_args="$preserve_args $opt $1"
  8765. - func_enable_tag "$1" # tagname is set here
  8766. + --no-verbose)
  8767. + opt_verbose=false
  8768. +func_append preserve_args " $opt"
  8769. + ;;
  8770. + --silent|--quiet)
  8771. + opt_silent=:
  8772. +func_append preserve_args " $opt"
  8773. + opt_verbose=false
  8774. + ;;
  8775. + --verbose|-v)
  8776. + opt_verbose=:
  8777. +func_append preserve_args " $opt"
  8778. +opt_silent=false
  8779. + ;;
  8780. + --tag)
  8781. + test $# = 0 && func_missing_arg $opt && break
  8782. + optarg="$1"
  8783. + opt_tag="$optarg"
  8784. +func_append preserve_args " $opt $optarg"
  8785. +func_enable_tag "$optarg"
  8786. shift
  8787. ;;
  8788. + -\?|-h) func_usage ;;
  8789. + --help) func_help ;;
  8790. + --version) func_version ;;
  8791. +
  8792. # Separate optargs to long options:
  8793. - -dlopen=*|--mode=*|--tag=*)
  8794. - func_opt_split "$opt"
  8795. - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  8796. + --*=*)
  8797. + func_split_long_opt "$opt"
  8798. + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
  8799. shift
  8800. ;;
  8801. - -\?|-h) func_usage ;;
  8802. - --help) opt_help=: ;;
  8803. - --version) func_version ;;
  8804. -
  8805. - -*) func_fatal_help "unrecognized option \`$opt'" ;;
  8806. -
  8807. - *) nonopt="$opt"
  8808. - break
  8809. + # Separate non-argument short options:
  8810. + -\?*|-h*|-n*|-v*)
  8811. + func_split_short_opt "$opt"
  8812. + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
  8813. + shift
  8814. ;;
  8815. +
  8816. + --) break ;;
  8817. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  8818. + *) set dummy "$opt" ${1+"$@"}; shift; break ;;
  8819. esac
  8820. done
  8821. + # Validate options:
  8822. +
  8823. + # save first non-option argument
  8824. + if test "$#" -gt 0; then
  8825. + nonopt="$opt"
  8826. + shift
  8827. + fi
  8828. +
  8829. + # preserve --debug
  8830. + test "$opt_debug" = : || func_append preserve_args " --debug"
  8831. case $host in
  8832. *cygwin* | *mingw* | *pw32* | *cegcc*)
  8833. @@ -810,82 +1184,44 @@
  8834. opt_duplicate_compiler_generated_deps=:
  8835. ;;
  8836. *)
  8837. - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  8838. + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
  8839. ;;
  8840. esac
  8841. - # Having warned about all mis-specified options, bail out if
  8842. - # anything was wrong.
  8843. - $exit_cmd $EXIT_FAILURE
  8844. -}
  8845. + $opt_help || {
  8846. + # Sanity checks first:
  8847. + func_check_version_match
  8848. -# func_check_version_match
  8849. -# Ensure that we are using m4 macros, and libtool script from the same
  8850. -# release of libtool.
  8851. -func_check_version_match ()
  8852. -{
  8853. - if test "$package_revision" != "$macro_revision"; then
  8854. - if test "$VERSION" != "$macro_version"; then
  8855. - if test -z "$macro_version"; then
  8856. - cat >&2 <<_LT_EOF
  8857. -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8858. -$progname: definition of this LT_INIT comes from an older release.
  8859. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8860. -$progname: and run autoconf again.
  8861. -_LT_EOF
  8862. - else
  8863. - cat >&2 <<_LT_EOF
  8864. -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8865. -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  8866. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8867. -$progname: and run autoconf again.
  8868. -_LT_EOF
  8869. - fi
  8870. - else
  8871. - cat >&2 <<_LT_EOF
  8872. -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  8873. -$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  8874. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  8875. -$progname: of $PACKAGE $VERSION and run autoconf again.
  8876. -_LT_EOF
  8877. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  8878. + func_fatal_configuration "not configured to build any kind of library"
  8879. fi
  8880. - exit $EXIT_MISMATCH
  8881. - fi
  8882. -}
  8883. -
  8884. -
  8885. -## ----------- ##
  8886. -## Main. ##
  8887. -## ----------- ##
  8888. + # Darwin sucks
  8889. + eval std_shrext=\"$shrext_cmds\"
  8890. -$opt_help || {
  8891. - # Sanity checks first:
  8892. - func_check_version_match
  8893. + # Only execute mode is allowed to have -dlopen flags.
  8894. + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
  8895. + func_error "unrecognized option \`-dlopen'"
  8896. + $ECHO "$help" 1>&2
  8897. + exit $EXIT_FAILURE
  8898. + fi
  8899. - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  8900. - func_fatal_configuration "not configured to build any kind of library"
  8901. - fi
  8902. + # Change the help message to a mode-specific one.
  8903. + generic_help="$help"
  8904. + help="Try \`$progname --help --mode=$opt_mode' for more information."
  8905. + }
  8906. - test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  8907. + # Bail if the options were screwed
  8908. + $exit_cmd $EXIT_FAILURE
  8909. +}
  8910. - # Darwin sucks
  8911. - eval std_shrext=\"$shrext_cmds\"
  8912. - # Only execute mode is allowed to have -dlopen flags.
  8913. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  8914. - func_error "unrecognized option \`-dlopen'"
  8915. - $ECHO "$help" 1>&2
  8916. - exit $EXIT_FAILURE
  8917. - fi
  8918. -
  8919. - # Change the help message to a mode-specific one.
  8920. - generic_help="$help"
  8921. - help="Try \`$progname --help --mode=$mode' for more information."
  8922. -}
  8923. +## ----------- ##
  8924. +## Main. ##
  8925. +## ----------- ##
  8926. # func_lalib_p file
  8927. # True iff FILE is a libtool `.la' library or `.lo' object file.
  8928. @@ -950,12 +1286,9 @@
  8929. # temporary ltwrapper_script.
  8930. func_ltwrapper_scriptname ()
  8931. {
  8932. - func_ltwrapper_scriptname_result=""
  8933. - if func_ltwrapper_executable_p "$1"; then
  8934. - func_dirname_and_basename "$1" "" "."
  8935. - func_stripname '' '.exe' "$func_basename_result"
  8936. - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  8937. - fi
  8938. + func_dirname_and_basename "$1" "" "."
  8939. + func_stripname '' '.exe' "$func_basename_result"
  8940. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  8941. }
  8942. # func_ltwrapper_p file
  8943. @@ -1001,6 +1334,37 @@
  8944. }
  8945. +# func_resolve_sysroot PATH
  8946. +# Replace a leading = in PATH with a sysroot. Store the result into
  8947. +# func_resolve_sysroot_result
  8948. +func_resolve_sysroot ()
  8949. +{
  8950. + func_resolve_sysroot_result=$1
  8951. + case $func_resolve_sysroot_result in
  8952. + =*)
  8953. + func_stripname '=' '' "$func_resolve_sysroot_result"
  8954. + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
  8955. + ;;
  8956. + esac
  8957. +}
  8958. +
  8959. +# func_replace_sysroot PATH
  8960. +# If PATH begins with the sysroot, replace it with = and
  8961. +# store the result into func_replace_sysroot_result.
  8962. +func_replace_sysroot ()
  8963. +{
  8964. + case "$lt_sysroot:$1" in
  8965. + ?*:"$lt_sysroot"*)
  8966. + func_stripname "$lt_sysroot" '' "$1"
  8967. + func_replace_sysroot_result="=$func_stripname_result"
  8968. + ;;
  8969. + *)
  8970. + # Including no sysroot.
  8971. + func_replace_sysroot_result=$1
  8972. + ;;
  8973. + esac
  8974. +}
  8975. +
  8976. # func_infer_tag arg
  8977. # Infer tagged configuration to use if any are available and
  8978. # if one wasn't chosen via the "--tag" command line option.
  8979. @@ -1013,13 +1377,15 @@
  8980. if test -n "$available_tags" && test -z "$tagname"; then
  8981. CC_quoted=
  8982. for arg in $CC; do
  8983. - func_quote_for_eval "$arg"
  8984. - CC_quoted="$CC_quoted $func_quote_for_eval_result"
  8985. + func_append_quoted CC_quoted "$arg"
  8986. done
  8987. + CC_expanded=`func_echo_all $CC`
  8988. + CC_quoted_expanded=`func_echo_all $CC_quoted`
  8989. case $@ in
  8990. # Blanks in the command may have been stripped by the calling shell,
  8991. # but not from the CC environment variable when configure was run.
  8992. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  8993. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
  8994. + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
  8995. # Blanks at the start of $base_compile will cause this to fail
  8996. # if we don't check for them as well.
  8997. *)
  8998. @@ -1030,11 +1396,13 @@
  8999. CC_quoted=
  9000. for arg in $CC; do
  9001. # Double-quote args containing other shell metacharacters.
  9002. - func_quote_for_eval "$arg"
  9003. - CC_quoted="$CC_quoted $func_quote_for_eval_result"
  9004. + func_append_quoted CC_quoted "$arg"
  9005. done
  9006. + CC_expanded=`func_echo_all $CC`
  9007. + CC_quoted_expanded=`func_echo_all $CC_quoted`
  9008. case "$@ " in
  9009. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  9010. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
  9011. + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
  9012. # The compiler in the base compile command matches
  9013. # the one in the tagged configuration.
  9014. # Assume this is the tagged configuration we want.
  9015. @@ -1097,6 +1465,486 @@
  9016. }
  9017. }
  9018. +
  9019. +##################################################
  9020. +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
  9021. +##################################################
  9022. +
  9023. +# func_convert_core_file_wine_to_w32 ARG
  9024. +# Helper function used by file name conversion functions when $build is *nix,
  9025. +# and $host is mingw, cygwin, or some other w32 environment. Relies on a
  9026. +# correctly configured wine environment available, with the winepath program
  9027. +# in $build's $PATH.
  9028. +#
  9029. +# ARG is the $build file name to be converted to w32 format.
  9030. +# Result is available in $func_convert_core_file_wine_to_w32_result, and will
  9031. +# be empty on error (or when ARG is empty)
  9032. +func_convert_core_file_wine_to_w32 ()
  9033. +{
  9034. + $opt_debug
  9035. + func_convert_core_file_wine_to_w32_result="$1"
  9036. + if test -n "$1"; then
  9037. + # Unfortunately, winepath does not exit with a non-zero error code, so we
  9038. + # are forced to check the contents of stdout. On the other hand, if the
  9039. + # command is not found, the shell will set an exit code of 127 and print
  9040. + # *an error message* to stdout. So we must check for both error code of
  9041. + # zero AND non-empty stdout, which explains the odd construction:
  9042. + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
  9043. + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
  9044. + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
  9045. + $SED -e "$lt_sed_naive_backslashify"`
  9046. + else
  9047. + func_convert_core_file_wine_to_w32_result=
  9048. + fi
  9049. + fi
  9050. +}
  9051. +# end: func_convert_core_file_wine_to_w32
  9052. +
  9053. +
  9054. +# func_convert_core_path_wine_to_w32 ARG
  9055. +# Helper function used by path conversion functions when $build is *nix, and
  9056. +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
  9057. +# configured wine environment available, with the winepath program in $build's
  9058. +# $PATH. Assumes ARG has no leading or trailing path separator characters.
  9059. +#
  9060. +# ARG is path to be converted from $build format to win32.
  9061. +# Result is available in $func_convert_core_path_wine_to_w32_result.
  9062. +# Unconvertible file (directory) names in ARG are skipped; if no directory names
  9063. +# are convertible, then the result may be empty.
  9064. +func_convert_core_path_wine_to_w32 ()
  9065. +{
  9066. + $opt_debug
  9067. + # unfortunately, winepath doesn't convert paths, only file names
  9068. + func_convert_core_path_wine_to_w32_result=""
  9069. + if test -n "$1"; then
  9070. + oldIFS=$IFS
  9071. + IFS=:
  9072. + for func_convert_core_path_wine_to_w32_f in $1; do
  9073. + IFS=$oldIFS
  9074. + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
  9075. + if test -n "$func_convert_core_file_wine_to_w32_result" ; then
  9076. + if test -z "$func_convert_core_path_wine_to_w32_result"; then
  9077. + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
  9078. + else
  9079. + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
  9080. + fi
  9081. + fi
  9082. + done
  9083. + IFS=$oldIFS
  9084. + fi
  9085. +}
  9086. +# end: func_convert_core_path_wine_to_w32
  9087. +
  9088. +
  9089. +# func_cygpath ARGS...
  9090. +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
  9091. +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
  9092. +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
  9093. +# (2), returns the Cygwin file name or path in func_cygpath_result (input
  9094. +# file name or path is assumed to be in w32 format, as previously converted
  9095. +# from $build's *nix or MSYS format). In case (3), returns the w32 file name
  9096. +# or path in func_cygpath_result (input file name or path is assumed to be in
  9097. +# Cygwin format). Returns an empty string on error.
  9098. +#
  9099. +# ARGS are passed to cygpath, with the last one being the file name or path to
  9100. +# be converted.
  9101. +#
  9102. +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
  9103. +# environment variable; do not put it in $PATH.
  9104. +func_cygpath ()
  9105. +{
  9106. + $opt_debug
  9107. + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
  9108. + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
  9109. + if test "$?" -ne 0; then
  9110. + # on failure, ensure result is empty
  9111. + func_cygpath_result=
  9112. + fi
  9113. + else
  9114. + func_cygpath_result=
  9115. + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
  9116. + fi
  9117. +}
  9118. +#end: func_cygpath
  9119. +
  9120. +
  9121. +# func_convert_core_msys_to_w32 ARG
  9122. +# Convert file name or path ARG from MSYS format to w32 format. Return
  9123. +# result in func_convert_core_msys_to_w32_result.
  9124. +func_convert_core_msys_to_w32 ()
  9125. +{
  9126. + $opt_debug
  9127. + # awkward: cmd appends spaces to result
  9128. + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
  9129. + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
  9130. +}
  9131. +#end: func_convert_core_msys_to_w32
  9132. +
  9133. +
  9134. +# func_convert_file_check ARG1 ARG2
  9135. +# Verify that ARG1 (a file name in $build format) was converted to $host
  9136. +# format in ARG2. Otherwise, emit an error message, but continue (resetting
  9137. +# func_to_host_file_result to ARG1).
  9138. +func_convert_file_check ()
  9139. +{
  9140. + $opt_debug
  9141. + if test -z "$2" && test -n "$1" ; then
  9142. + func_error "Could not determine host file name corresponding to"
  9143. + func_error " \`$1'"
  9144. + func_error "Continuing, but uninstalled executables may not work."
  9145. + # Fallback:
  9146. + func_to_host_file_result="$1"
  9147. + fi
  9148. +}
  9149. +# end func_convert_file_check
  9150. +
  9151. +
  9152. +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
  9153. +# Verify that FROM_PATH (a path in $build format) was converted to $host
  9154. +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
  9155. +# func_to_host_file_result to a simplistic fallback value (see below).
  9156. +func_convert_path_check ()
  9157. +{
  9158. + $opt_debug
  9159. + if test -z "$4" && test -n "$3"; then
  9160. + func_error "Could not determine the host path corresponding to"
  9161. + func_error " \`$3'"
  9162. + func_error "Continuing, but uninstalled executables may not work."
  9163. + # Fallback. This is a deliberately simplistic "conversion" and
  9164. + # should not be "improved". See libtool.info.
  9165. + if test "x$1" != "x$2"; then
  9166. + lt_replace_pathsep_chars="s|$1|$2|g"
  9167. + func_to_host_path_result=`echo "$3" |
  9168. + $SED -e "$lt_replace_pathsep_chars"`
  9169. + else
  9170. + func_to_host_path_result="$3"
  9171. + fi
  9172. + fi
  9173. +}
  9174. +# end func_convert_path_check
  9175. +
  9176. +
  9177. +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
  9178. +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
  9179. +# and appending REPL if ORIG matches BACKPAT.
  9180. +func_convert_path_front_back_pathsep ()
  9181. +{
  9182. + $opt_debug
  9183. + case $4 in
  9184. + $1 ) func_to_host_path_result="$3$func_to_host_path_result"
  9185. + ;;
  9186. + esac
  9187. + case $4 in
  9188. + $2 ) func_append func_to_host_path_result "$3"
  9189. + ;;
  9190. + esac
  9191. +}
  9192. +# end func_convert_path_front_back_pathsep
  9193. +
  9194. +
  9195. +##################################################
  9196. +# $build to $host FILE NAME CONVERSION FUNCTIONS #
  9197. +##################################################
  9198. +# invoked via `$to_host_file_cmd ARG'
  9199. +#
  9200. +# In each case, ARG is the path to be converted from $build to $host format.
  9201. +# Result will be available in $func_to_host_file_result.
  9202. +
  9203. +
  9204. +# func_to_host_file ARG
  9205. +# Converts the file name ARG from $build format to $host format. Return result
  9206. +# in func_to_host_file_result.
  9207. +func_to_host_file ()
  9208. +{
  9209. + $opt_debug
  9210. + $to_host_file_cmd "$1"
  9211. +}
  9212. +# end func_to_host_file
  9213. +
  9214. +
  9215. +# func_to_tool_file ARG LAZY
  9216. +# converts the file name ARG from $build format to toolchain format. Return
  9217. +# result in func_to_tool_file_result. If the conversion in use is listed
  9218. +# in (the comma separated) LAZY, no conversion takes place.
  9219. +func_to_tool_file ()
  9220. +{
  9221. + $opt_debug
  9222. + case ,$2, in
  9223. + *,"$to_tool_file_cmd",*)
  9224. + func_to_tool_file_result=$1
  9225. + ;;
  9226. + *)
  9227. + $to_tool_file_cmd "$1"
  9228. + func_to_tool_file_result=$func_to_host_file_result
  9229. + ;;
  9230. + esac
  9231. +}
  9232. +# end func_to_tool_file
  9233. +
  9234. +
  9235. +# func_convert_file_noop ARG
  9236. +# Copy ARG to func_to_host_file_result.
  9237. +func_convert_file_noop ()
  9238. +{
  9239. + func_to_host_file_result="$1"
  9240. +}
  9241. +# end func_convert_file_noop
  9242. +
  9243. +
  9244. +# func_convert_file_msys_to_w32 ARG
  9245. +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
  9246. +# conversion to w32 is not available inside the cwrapper. Returns result in
  9247. +# func_to_host_file_result.
  9248. +func_convert_file_msys_to_w32 ()
  9249. +{
  9250. + $opt_debug
  9251. + func_to_host_file_result="$1"
  9252. + if test -n "$1"; then
  9253. + func_convert_core_msys_to_w32 "$1"
  9254. + func_to_host_file_result="$func_convert_core_msys_to_w32_result"
  9255. + fi
  9256. + func_convert_file_check "$1" "$func_to_host_file_result"
  9257. +}
  9258. +# end func_convert_file_msys_to_w32
  9259. +
  9260. +
  9261. +# func_convert_file_cygwin_to_w32 ARG
  9262. +# Convert file name ARG from Cygwin to w32 format. Returns result in
  9263. +# func_to_host_file_result.
  9264. +func_convert_file_cygwin_to_w32 ()
  9265. +{
  9266. + $opt_debug
  9267. + func_to_host_file_result="$1"
  9268. + if test -n "$1"; then
  9269. + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
  9270. + # LT_CYGPATH in this case.
  9271. + func_to_host_file_result=`cygpath -m "$1"`
  9272. + fi
  9273. + func_convert_file_check "$1" "$func_to_host_file_result"
  9274. +}
  9275. +# end func_convert_file_cygwin_to_w32
  9276. +
  9277. +
  9278. +# func_convert_file_nix_to_w32 ARG
  9279. +# Convert file name ARG from *nix to w32 format. Requires a wine environment
  9280. +# and a working winepath. Returns result in func_to_host_file_result.
  9281. +func_convert_file_nix_to_w32 ()
  9282. +{
  9283. + $opt_debug
  9284. + func_to_host_file_result="$1"
  9285. + if test -n "$1"; then
  9286. + func_convert_core_file_wine_to_w32 "$1"
  9287. + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
  9288. + fi
  9289. + func_convert_file_check "$1" "$func_to_host_file_result"
  9290. +}
  9291. +# end func_convert_file_nix_to_w32
  9292. +
  9293. +
  9294. +# func_convert_file_msys_to_cygwin ARG
  9295. +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
  9296. +# Returns result in func_to_host_file_result.
  9297. +func_convert_file_msys_to_cygwin ()
  9298. +{
  9299. + $opt_debug
  9300. + func_to_host_file_result="$1"
  9301. + if test -n "$1"; then
  9302. + func_convert_core_msys_to_w32 "$1"
  9303. + func_cygpath -u "$func_convert_core_msys_to_w32_result"
  9304. + func_to_host_file_result="$func_cygpath_result"
  9305. + fi
  9306. + func_convert_file_check "$1" "$func_to_host_file_result"
  9307. +}
  9308. +# end func_convert_file_msys_to_cygwin
  9309. +
  9310. +
  9311. +# func_convert_file_nix_to_cygwin ARG
  9312. +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
  9313. +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
  9314. +# in func_to_host_file_result.
  9315. +func_convert_file_nix_to_cygwin ()
  9316. +{
  9317. + $opt_debug
  9318. + func_to_host_file_result="$1"
  9319. + if test -n "$1"; then
  9320. + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
  9321. + func_convert_core_file_wine_to_w32 "$1"
  9322. + func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
  9323. + func_to_host_file_result="$func_cygpath_result"
  9324. + fi
  9325. + func_convert_file_check "$1" "$func_to_host_file_result"
  9326. +}
  9327. +# end func_convert_file_nix_to_cygwin
  9328. +
  9329. +
  9330. +#############################################
  9331. +# $build to $host PATH CONVERSION FUNCTIONS #
  9332. +#############################################
  9333. +# invoked via `$to_host_path_cmd ARG'
  9334. +#
  9335. +# In each case, ARG is the path to be converted from $build to $host format.
  9336. +# The result will be available in $func_to_host_path_result.
  9337. +#
  9338. +# Path separators are also converted from $build format to $host format. If
  9339. +# ARG begins or ends with a path separator character, it is preserved (but
  9340. +# converted to $host format) on output.
  9341. +#
  9342. +# All path conversion functions are named using the following convention:
  9343. +# file name conversion function : func_convert_file_X_to_Y ()
  9344. +# path conversion function : func_convert_path_X_to_Y ()
  9345. +# where, for any given $build/$host combination the 'X_to_Y' value is the
  9346. +# same. If conversion functions are added for new $build/$host combinations,
  9347. +# the two new functions must follow this pattern, or func_init_to_host_path_cmd
  9348. +# will break.
  9349. +
  9350. +
  9351. +# func_init_to_host_path_cmd
  9352. +# Ensures that function "pointer" variable $to_host_path_cmd is set to the
  9353. +# appropriate value, based on the value of $to_host_file_cmd.
  9354. +to_host_path_cmd=
  9355. +func_init_to_host_path_cmd ()
  9356. +{
  9357. + $opt_debug
  9358. + if test -z "$to_host_path_cmd"; then
  9359. + func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
  9360. + to_host_path_cmd="func_convert_path_${func_stripname_result}"
  9361. + fi
  9362. +}
  9363. +
  9364. +
  9365. +# func_to_host_path ARG
  9366. +# Converts the path ARG from $build format to $host format. Return result
  9367. +# in func_to_host_path_result.
  9368. +func_to_host_path ()
  9369. +{
  9370. + $opt_debug
  9371. + func_init_to_host_path_cmd
  9372. + $to_host_path_cmd "$1"
  9373. +}
  9374. +# end func_to_host_path
  9375. +
  9376. +
  9377. +# func_convert_path_noop ARG
  9378. +# Copy ARG to func_to_host_path_result.
  9379. +func_convert_path_noop ()
  9380. +{
  9381. + func_to_host_path_result="$1"
  9382. +}
  9383. +# end func_convert_path_noop
  9384. +
  9385. +
  9386. +# func_convert_path_msys_to_w32 ARG
  9387. +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
  9388. +# conversion to w32 is not available inside the cwrapper. Returns result in
  9389. +# func_to_host_path_result.
  9390. +func_convert_path_msys_to_w32 ()
  9391. +{
  9392. + $opt_debug
  9393. + func_to_host_path_result="$1"
  9394. + if test -n "$1"; then
  9395. + # Remove leading and trailing path separator characters from ARG. MSYS
  9396. + # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
  9397. + # and winepath ignores them completely.
  9398. + func_stripname : : "$1"
  9399. + func_to_host_path_tmp1=$func_stripname_result
  9400. + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
  9401. + func_to_host_path_result="$func_convert_core_msys_to_w32_result"
  9402. + func_convert_path_check : ";" \
  9403. + "$func_to_host_path_tmp1" "$func_to_host_path_result"
  9404. + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
  9405. + fi
  9406. +}
  9407. +# end func_convert_path_msys_to_w32
  9408. +
  9409. +
  9410. +# func_convert_path_cygwin_to_w32 ARG
  9411. +# Convert path ARG from Cygwin to w32 format. Returns result in
  9412. +# func_to_host_file_result.
  9413. +func_convert_path_cygwin_to_w32 ()
  9414. +{
  9415. + $opt_debug
  9416. + func_to_host_path_result="$1"
  9417. + if test -n "$1"; then
  9418. + # See func_convert_path_msys_to_w32:
  9419. + func_stripname : : "$1"
  9420. + func_to_host_path_tmp1=$func_stripname_result
  9421. + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
  9422. + func_convert_path_check : ";" \
  9423. + "$func_to_host_path_tmp1" "$func_to_host_path_result"
  9424. + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
  9425. + fi
  9426. +}
  9427. +# end func_convert_path_cygwin_to_w32
  9428. +
  9429. +
  9430. +# func_convert_path_nix_to_w32 ARG
  9431. +# Convert path ARG from *nix to w32 format. Requires a wine environment and
  9432. +# a working winepath. Returns result in func_to_host_file_result.
  9433. +func_convert_path_nix_to_w32 ()
  9434. +{
  9435. + $opt_debug
  9436. + func_to_host_path_result="$1"
  9437. + if test -n "$1"; then
  9438. + # See func_convert_path_msys_to_w32:
  9439. + func_stripname : : "$1"
  9440. + func_to_host_path_tmp1=$func_stripname_result
  9441. + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
  9442. + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
  9443. + func_convert_path_check : ";" \
  9444. + "$func_to_host_path_tmp1" "$func_to_host_path_result"
  9445. + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
  9446. + fi
  9447. +}
  9448. +# end func_convert_path_nix_to_w32
  9449. +
  9450. +
  9451. +# func_convert_path_msys_to_cygwin ARG
  9452. +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
  9453. +# Returns result in func_to_host_file_result.
  9454. +func_convert_path_msys_to_cygwin ()
  9455. +{
  9456. + $opt_debug
  9457. + func_to_host_path_result="$1"
  9458. + if test -n "$1"; then
  9459. + # See func_convert_path_msys_to_w32:
  9460. + func_stripname : : "$1"
  9461. + func_to_host_path_tmp1=$func_stripname_result
  9462. + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
  9463. + func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
  9464. + func_to_host_path_result="$func_cygpath_result"
  9465. + func_convert_path_check : : \
  9466. + "$func_to_host_path_tmp1" "$func_to_host_path_result"
  9467. + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
  9468. + fi
  9469. +}
  9470. +# end func_convert_path_msys_to_cygwin
  9471. +
  9472. +
  9473. +# func_convert_path_nix_to_cygwin ARG
  9474. +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
  9475. +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
  9476. +# func_to_host_file_result.
  9477. +func_convert_path_nix_to_cygwin ()
  9478. +{
  9479. + $opt_debug
  9480. + func_to_host_path_result="$1"
  9481. + if test -n "$1"; then
  9482. + # Remove leading and trailing path separator characters from
  9483. + # ARG. msys behavior is inconsistent here, cygpath turns them
  9484. + # into '.;' and ';.', and winepath ignores them completely.
  9485. + func_stripname : : "$1"
  9486. + func_to_host_path_tmp1=$func_stripname_result
  9487. + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
  9488. + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
  9489. + func_to_host_path_result="$func_cygpath_result"
  9490. + func_convert_path_check : : \
  9491. + "$func_to_host_path_tmp1" "$func_to_host_path_result"
  9492. + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
  9493. + fi
  9494. +}
  9495. +# end func_convert_path_nix_to_cygwin
  9496. +
  9497. +
  9498. # func_mode_compile arg...
  9499. func_mode_compile ()
  9500. {
  9501. @@ -1137,12 +1985,12 @@
  9502. ;;
  9503. -pie | -fpie | -fPIE)
  9504. - pie_flag="$pie_flag $arg"
  9505. + func_append pie_flag " $arg"
  9506. continue
  9507. ;;
  9508. -shared | -static | -prefer-pic | -prefer-non-pic)
  9509. - later="$later $arg"
  9510. + func_append later " $arg"
  9511. continue
  9512. ;;
  9513. @@ -1163,15 +2011,14 @@
  9514. save_ifs="$IFS"; IFS=','
  9515. for arg in $args; do
  9516. IFS="$save_ifs"
  9517. - func_quote_for_eval "$arg"
  9518. - lastarg="$lastarg $func_quote_for_eval_result"
  9519. + func_append_quoted lastarg "$arg"
  9520. done
  9521. IFS="$save_ifs"
  9522. func_stripname ' ' '' "$lastarg"
  9523. lastarg=$func_stripname_result
  9524. # Add the arguments to base_compile.
  9525. - base_compile="$base_compile $lastarg"
  9526. + func_append base_compile " $lastarg"
  9527. continue
  9528. ;;
  9529. @@ -1187,8 +2034,7 @@
  9530. esac # case $arg_mode
  9531. # Aesthetically quote the previous argument.
  9532. - func_quote_for_eval "$lastarg"
  9533. - base_compile="$base_compile $func_quote_for_eval_result"
  9534. + func_append_quoted base_compile "$lastarg"
  9535. done # for arg
  9536. case $arg_mode in
  9537. @@ -1213,7 +2059,7 @@
  9538. *.[cCFSifmso] | \
  9539. *.ada | *.adb | *.ads | *.asm | \
  9540. *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  9541. - *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  9542. + *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
  9543. func_xform "$libobj"
  9544. libobj=$func_xform_result
  9545. ;;
  9546. @@ -1288,7 +2134,7 @@
  9547. # Calculate the filename of the output object if compiler does
  9548. # not support -o with -c
  9549. if test "$compiler_c_o" = no; then
  9550. - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  9551. + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
  9552. lockfile="$output_obj.lock"
  9553. else
  9554. output_obj=
  9555. @@ -1319,17 +2165,16 @@
  9556. $opt_dry_run || $RM $removelist
  9557. exit $EXIT_FAILURE
  9558. fi
  9559. - removelist="$removelist $output_obj"
  9560. + func_append removelist " $output_obj"
  9561. $ECHO "$srcfile" > "$lockfile"
  9562. fi
  9563. $opt_dry_run || $RM $removelist
  9564. - removelist="$removelist $lockfile"
  9565. + func_append removelist " $lockfile"
  9566. trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  9567. - if test -n "$fix_srcfile_path"; then
  9568. - eval srcfile=\"$fix_srcfile_path\"
  9569. - fi
  9570. + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
  9571. + srcfile=$func_to_tool_file_result
  9572. func_quote_for_eval "$srcfile"
  9573. qsrcfile=$func_quote_for_eval_result
  9574. @@ -1349,7 +2194,7 @@
  9575. if test -z "$output_obj"; then
  9576. # Place PIC objects in $objdir
  9577. - command="$command -o $lobj"
  9578. + func_append command " -o $lobj"
  9579. fi
  9580. func_show_eval_locale "$command" \
  9581. @@ -1396,11 +2241,11 @@
  9582. command="$base_compile $qsrcfile $pic_flag"
  9583. fi
  9584. if test "$compiler_c_o" = yes; then
  9585. - command="$command -o $obj"
  9586. + func_append command " -o $obj"
  9587. fi
  9588. # Suppress compiler output if we already did a PIC compilation.
  9589. - command="$command$suppress_output"
  9590. + func_append command "$suppress_output"
  9591. func_show_eval_locale "$command" \
  9592. '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  9593. @@ -1445,13 +2290,13 @@
  9594. }
  9595. $opt_help || {
  9596. -test "$mode" = compile && func_mode_compile ${1+"$@"}
  9597. + test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
  9598. }
  9599. func_mode_help ()
  9600. {
  9601. # We need to display help for each of the modes.
  9602. - case $mode in
  9603. + case $opt_mode in
  9604. "")
  9605. # Generic help is extracted from the usage comments
  9606. # at the start of this file.
  9607. @@ -1482,10 +2327,11 @@
  9608. -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  9609. -no-suppress do not suppress compiler output for multiple passes
  9610. - -prefer-pic try to building PIC objects only
  9611. - -prefer-non-pic try to building non-PIC objects only
  9612. + -prefer-pic try to build PIC objects only
  9613. + -prefer-non-pic try to build non-PIC objects only
  9614. -shared do not build a \`.o' file suitable for static linking
  9615. -static only build a \`.o' file suitable for static linking
  9616. + -Wc,FLAG pass FLAG directly to the compiler
  9617. COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  9618. from the given SOURCEFILE.
  9619. @@ -1538,7 +2384,7 @@
  9620. The following components of INSTALL-COMMAND are treated specially:
  9621. - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  9622. + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  9623. The rest of the components are interpreted as arguments to that command (only
  9624. BSD-compatible install options are recognized)."
  9625. @@ -1558,6 +2404,8 @@
  9626. -all-static do not do any dynamic linking at all
  9627. -avoid-version do not add a version suffix if possible
  9628. + -bindir BINDIR specify path to binaries directory (for systems where
  9629. + libraries must be found in the PATH setting at runtime)
  9630. -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  9631. -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  9632. -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  9633. @@ -1586,6 +2434,11 @@
  9634. -version-info CURRENT[:REVISION[:AGE]]
  9635. specify library version info [each variable defaults to 0]
  9636. -weak LIBNAME declare that the target provides the LIBNAME interface
  9637. + -Wc,FLAG
  9638. + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
  9639. + -Wl,FLAG
  9640. + -Xlinker FLAG pass linker-specific FLAG directly to the linker
  9641. + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
  9642. All other options (arguments beginning with \`-') are ignored.
  9643. @@ -1619,18 +2472,44 @@
  9644. ;;
  9645. *)
  9646. - func_fatal_help "invalid operation mode \`$mode'"
  9647. + func_fatal_help "invalid operation mode \`$opt_mode'"
  9648. ;;
  9649. esac
  9650. - $ECHO
  9651. + echo
  9652. $ECHO "Try \`$progname --help' for more information about other modes."
  9653. -
  9654. - exit $?
  9655. }
  9656. - # Now that we've collected a possible --mode arg, show help if necessary
  9657. - $opt_help && func_mode_help
  9658. +# Now that we've collected a possible --mode arg, show help if necessary
  9659. +if $opt_help; then
  9660. + if test "$opt_help" = :; then
  9661. + func_mode_help
  9662. + else
  9663. + {
  9664. + func_help noexit
  9665. + for opt_mode in compile link execute install finish uninstall clean; do
  9666. + func_mode_help
  9667. + done
  9668. + } | sed -n '1p; 2,$s/^Usage:/ or: /p'
  9669. + {
  9670. + func_help noexit
  9671. + for opt_mode in compile link execute install finish uninstall clean; do
  9672. + echo
  9673. + func_mode_help
  9674. + done
  9675. + } |
  9676. + sed '1d
  9677. + /^When reporting/,/^Report/{
  9678. + H
  9679. + d
  9680. + }
  9681. + $x
  9682. + /information about other modes/d
  9683. + /more detailed .*MODE/d
  9684. + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
  9685. + fi
  9686. + exit $?
  9687. +fi
  9688. # func_mode_execute arg...
  9689. @@ -1643,13 +2522,16 @@
  9690. func_fatal_help "you must specify a COMMAND"
  9691. # Handle -dlopen flags immediately.
  9692. - for file in $execute_dlfiles; do
  9693. + for file in $opt_dlopen; do
  9694. test -f "$file" \
  9695. || func_fatal_help "\`$file' is not a file"
  9696. dir=
  9697. case $file in
  9698. *.la)
  9699. + func_resolve_sysroot "$file"
  9700. + file=$func_resolve_sysroot_result
  9701. +
  9702. # Check to see that this really is a libtool archive.
  9703. func_lalib_unsafe_p "$file" \
  9704. || func_fatal_help "\`$lib' is not a valid libtool archive"
  9705. @@ -1671,7 +2553,7 @@
  9706. dir="$func_dirname_result"
  9707. if test -f "$dir/$objdir/$dlname"; then
  9708. - dir="$dir/$objdir"
  9709. + func_append dir "/$objdir"
  9710. else
  9711. if test ! -f "$dir/$dlname"; then
  9712. func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  9713. @@ -1712,7 +2594,7 @@
  9714. for file
  9715. do
  9716. case $file in
  9717. - -*) ;;
  9718. + -* | *.la | *.lo ) ;;
  9719. *)
  9720. # Do a test to see if this is really a libtool program.
  9721. if func_ltwrapper_script_p "$file"; then
  9722. @@ -1728,8 +2610,7 @@
  9723. ;;
  9724. esac
  9725. # Quote arguments (to preserve shell metacharacters).
  9726. - func_quote_for_eval "$file"
  9727. - args="$args $func_quote_for_eval_result"
  9728. + func_append_quoted args "$file"
  9729. done
  9730. if test "X$opt_dry_run" = Xfalse; then
  9731. @@ -1754,29 +2635,66 @@
  9732. # Display what would be done.
  9733. if test -n "$shlibpath_var"; then
  9734. eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  9735. - $ECHO "export $shlibpath_var"
  9736. + echo "export $shlibpath_var"
  9737. fi
  9738. $ECHO "$cmd$args"
  9739. exit $EXIT_SUCCESS
  9740. fi
  9741. }
  9742. -test "$mode" = execute && func_mode_execute ${1+"$@"}
  9743. +test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
  9744. # func_mode_finish arg...
  9745. func_mode_finish ()
  9746. {
  9747. $opt_debug
  9748. - libdirs="$nonopt"
  9749. + libs=
  9750. + libdirs=
  9751. admincmds=
  9752. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  9753. - for dir
  9754. - do
  9755. - libdirs="$libdirs $dir"
  9756. - done
  9757. + for opt in "$nonopt" ${1+"$@"}
  9758. + do
  9759. + if test -d "$opt"; then
  9760. + func_append libdirs " $opt"
  9761. +
  9762. + elif test -f "$opt"; then
  9763. + if func_lalib_unsafe_p "$opt"; then
  9764. + func_append libs " $opt"
  9765. + else
  9766. + func_warning "\`$opt' is not a valid libtool archive"
  9767. + fi
  9768. + else
  9769. + func_fatal_error "invalid argument \`$opt'"
  9770. + fi
  9771. + done
  9772. +
  9773. + if test -n "$libs"; then
  9774. + if test -n "$lt_sysroot"; then
  9775. + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
  9776. + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
  9777. + else
  9778. + sysroot_cmd=
  9779. + fi
  9780. +
  9781. + # Remove sysroot references
  9782. + if $opt_dry_run; then
  9783. + for lib in $libs; do
  9784. + echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
  9785. + done
  9786. + else
  9787. + tmpdir=`func_mktempdir`
  9788. + for lib in $libs; do
  9789. + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
  9790. + > $tmpdir/tmp-la
  9791. + mv -f $tmpdir/tmp-la $lib
  9792. + done
  9793. + ${RM}r "$tmpdir"
  9794. + fi
  9795. + fi
  9796. +
  9797. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  9798. for libdir in $libdirs; do
  9799. if test -n "$finish_cmds"; then
  9800. # Do each command in the finish commands.
  9801. @@ -1786,7 +2704,7 @@
  9802. if test -n "$finish_eval"; then
  9803. # Do the single finish_eval.
  9804. eval cmds=\"$finish_eval\"
  9805. - $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  9806. + $opt_dry_run || eval "$cmds" || func_append admincmds "
  9807. $cmds"
  9808. fi
  9809. done
  9810. @@ -1795,53 +2713,55 @@
  9811. # Exit here if they wanted silent mode.
  9812. $opt_silent && exit $EXIT_SUCCESS
  9813. - $ECHO "X----------------------------------------------------------------------" | $Xsed
  9814. - $ECHO "Libraries have been installed in:"
  9815. - for libdir in $libdirs; do
  9816. - $ECHO " $libdir"
  9817. - done
  9818. - $ECHO
  9819. - $ECHO "If you ever happen to want to link against installed libraries"
  9820. - $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  9821. - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  9822. - $ECHO "flag during linking and do at least one of the following:"
  9823. - if test -n "$shlibpath_var"; then
  9824. - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  9825. - $ECHO " during execution"
  9826. - fi
  9827. - if test -n "$runpath_var"; then
  9828. - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  9829. - $ECHO " during linking"
  9830. - fi
  9831. - if test -n "$hardcode_libdir_flag_spec"; then
  9832. - libdir=LIBDIR
  9833. - eval flag=\"$hardcode_libdir_flag_spec\"
  9834. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  9835. + echo "----------------------------------------------------------------------"
  9836. + echo "Libraries have been installed in:"
  9837. + for libdir in $libdirs; do
  9838. + $ECHO " $libdir"
  9839. + done
  9840. + echo
  9841. + echo "If you ever happen to want to link against installed libraries"
  9842. + echo "in a given directory, LIBDIR, you must either use libtool, and"
  9843. + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  9844. + echo "flag during linking and do at least one of the following:"
  9845. + if test -n "$shlibpath_var"; then
  9846. + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  9847. + echo " during execution"
  9848. + fi
  9849. + if test -n "$runpath_var"; then
  9850. + echo " - add LIBDIR to the \`$runpath_var' environment variable"
  9851. + echo " during linking"
  9852. + fi
  9853. + if test -n "$hardcode_libdir_flag_spec"; then
  9854. + libdir=LIBDIR
  9855. + eval flag=\"$hardcode_libdir_flag_spec\"
  9856. +
  9857. + $ECHO " - use the \`$flag' linker flag"
  9858. + fi
  9859. + if test -n "$admincmds"; then
  9860. + $ECHO " - have your system administrator run these commands:$admincmds"
  9861. + fi
  9862. + if test -f /etc/ld.so.conf; then
  9863. + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  9864. + fi
  9865. + echo
  9866. - $ECHO " - use the \`$flag' linker flag"
  9867. - fi
  9868. - if test -n "$admincmds"; then
  9869. - $ECHO " - have your system administrator run these commands:$admincmds"
  9870. - fi
  9871. - if test -f /etc/ld.so.conf; then
  9872. - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  9873. + echo "See any operating system documentation about shared libraries for"
  9874. + case $host in
  9875. + solaris2.[6789]|solaris2.1[0-9])
  9876. + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  9877. + echo "pages."
  9878. + ;;
  9879. + *)
  9880. + echo "more information, such as the ld(1) and ld.so(8) manual pages."
  9881. + ;;
  9882. + esac
  9883. + echo "----------------------------------------------------------------------"
  9884. fi
  9885. - $ECHO
  9886. -
  9887. - $ECHO "See any operating system documentation about shared libraries for"
  9888. - case $host in
  9889. - solaris2.[6789]|solaris2.1[0-9])
  9890. - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  9891. - $ECHO "pages."
  9892. - ;;
  9893. - *)
  9894. - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  9895. - ;;
  9896. - esac
  9897. - $ECHO "X----------------------------------------------------------------------" | $Xsed
  9898. exit $EXIT_SUCCESS
  9899. }
  9900. -test "$mode" = finish && func_mode_finish ${1+"$@"}
  9901. +test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
  9902. # func_mode_install arg...
  9903. @@ -1852,7 +2772,7 @@
  9904. # install_prog (especially on Windows NT).
  9905. if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  9906. # Allow the use of GNU shtool's install command.
  9907. - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  9908. + case $nonopt in *shtool*) :;; *) false;; esac; then
  9909. # Aesthetically quote it.
  9910. func_quote_for_eval "$nonopt"
  9911. install_prog="$func_quote_for_eval_result "
  9912. @@ -1866,7 +2786,12 @@
  9913. # The real first argument should be the name of the installation program.
  9914. # Aesthetically quote it.
  9915. func_quote_for_eval "$arg"
  9916. - install_prog="$install_prog$func_quote_for_eval_result"
  9917. + func_append install_prog "$func_quote_for_eval_result"
  9918. + install_shared_prog=$install_prog
  9919. + case " $install_prog " in
  9920. + *[\\\ /]cp\ *) install_cp=: ;;
  9921. + *) install_cp=false ;;
  9922. + esac
  9923. # We need to accept at least all the BSD install flags.
  9924. dest=
  9925. @@ -1876,10 +2801,12 @@
  9926. install_type=
  9927. isdir=no
  9928. stripme=
  9929. + no_mode=:
  9930. for arg
  9931. do
  9932. + arg2=
  9933. if test -n "$dest"; then
  9934. - files="$files $dest"
  9935. + func_append files " $dest"
  9936. dest=$arg
  9937. continue
  9938. fi
  9939. @@ -1887,10 +2814,9 @@
  9940. case $arg in
  9941. -d) isdir=yes ;;
  9942. -f)
  9943. - case " $install_prog " in
  9944. - *[\\\ /]cp\ *) ;;
  9945. - *) prev=$arg ;;
  9946. - esac
  9947. + if $install_cp; then :; else
  9948. + prev=$arg
  9949. + fi
  9950. ;;
  9951. -g | -m | -o)
  9952. prev=$arg
  9953. @@ -1904,6 +2830,10 @@
  9954. *)
  9955. # If the previous option needed an argument, then skip it.
  9956. if test -n "$prev"; then
  9957. + if test "x$prev" = x-m && test -n "$install_override_mode"; then
  9958. + arg2=$install_override_mode
  9959. + no_mode=false
  9960. + fi
  9961. prev=
  9962. else
  9963. dest=$arg
  9964. @@ -1914,7 +2844,11 @@
  9965. # Aesthetically quote the argument.
  9966. func_quote_for_eval "$arg"
  9967. - install_prog="$install_prog $func_quote_for_eval_result"
  9968. + func_append install_prog " $func_quote_for_eval_result"
  9969. + if test -n "$arg2"; then
  9970. + func_quote_for_eval "$arg2"
  9971. + fi
  9972. + func_append install_shared_prog " $func_quote_for_eval_result"
  9973. done
  9974. test -z "$install_prog" && \
  9975. @@ -1923,6 +2857,13 @@
  9976. test -n "$prev" && \
  9977. func_fatal_help "the \`$prev' option requires an argument"
  9978. + if test -n "$install_override_mode" && $no_mode; then
  9979. + if $install_cp; then :; else
  9980. + func_quote_for_eval "$install_override_mode"
  9981. + func_append install_shared_prog " -m $func_quote_for_eval_result"
  9982. + fi
  9983. + fi
  9984. +
  9985. if test -z "$files"; then
  9986. if test -z "$dest"; then
  9987. func_fatal_help "no file or destination specified"
  9988. @@ -1977,10 +2918,13 @@
  9989. case $file in
  9990. *.$libext)
  9991. # Do the static libraries later.
  9992. - staticlibs="$staticlibs $file"
  9993. + func_append staticlibs " $file"
  9994. ;;
  9995. *.la)
  9996. + func_resolve_sysroot "$file"
  9997. + file=$func_resolve_sysroot_result
  9998. +
  9999. # Check to see that this really is a libtool archive.
  10000. func_lalib_unsafe_p "$file" \
  10001. || func_fatal_help "\`$file' is not a valid libtool archive"
  10002. @@ -1994,23 +2938,23 @@
  10003. if test "X$destdir" = "X$libdir"; then
  10004. case "$current_libdirs " in
  10005. *" $libdir "*) ;;
  10006. - *) current_libdirs="$current_libdirs $libdir" ;;
  10007. + *) func_append current_libdirs " $libdir" ;;
  10008. esac
  10009. else
  10010. # Note the libdir as a future libdir.
  10011. case "$future_libdirs " in
  10012. *" $libdir "*) ;;
  10013. - *) future_libdirs="$future_libdirs $libdir" ;;
  10014. + *) func_append future_libdirs " $libdir" ;;
  10015. esac
  10016. fi
  10017. func_dirname "$file" "/" ""
  10018. dir="$func_dirname_result"
  10019. - dir="$dir$objdir"
  10020. + func_append dir "$objdir"
  10021. if test -n "$relink_command"; then
  10022. # Determine the prefix the user has applied to our future dir.
  10023. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  10024. + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
  10025. # Don't allow the user to place us outside of our expected
  10026. # location b/c this prevents finding dependent libraries that
  10027. @@ -2023,9 +2967,9 @@
  10028. if test -n "$inst_prefix_dir"; then
  10029. # Stick the inst_prefix_dir data into the link command.
  10030. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  10031. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  10032. else
  10033. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  10034. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  10035. fi
  10036. func_warning "relinking \`$file'"
  10037. @@ -2043,7 +2987,7 @@
  10038. test -n "$relink_command" && srcname="$realname"T
  10039. # Install the shared library and build the symlinks.
  10040. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  10041. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
  10042. 'exit $?'
  10043. tstripme="$stripme"
  10044. case $host_os in
  10045. @@ -2083,7 +3027,7 @@
  10046. func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  10047. # Maybe install the static library, too.
  10048. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  10049. + test -n "$old_library" && func_append staticlibs " $dir/$old_library"
  10050. ;;
  10051. *.lo)
  10052. @@ -2183,7 +3127,7 @@
  10053. if test -f "$lib"; then
  10054. func_source "$lib"
  10055. fi
  10056. - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  10057. + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
  10058. if test -n "$libdir" && test ! -f "$libfile"; then
  10059. func_warning "\`$lib' has not been installed in \`$libdir'"
  10060. finalize=no
  10061. @@ -2202,7 +3146,7 @@
  10062. file="$func_basename_result"
  10063. outputname="$tmpdir/$file"
  10064. # Replace the output file specification.
  10065. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  10066. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
  10067. $opt_silent || {
  10068. func_quote_for_expand "$relink_command"
  10069. @@ -2221,7 +3165,7 @@
  10070. }
  10071. else
  10072. # Install the binary that we compiled earlier.
  10073. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  10074. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
  10075. fi
  10076. fi
  10077. @@ -2280,7 +3224,7 @@
  10078. fi
  10079. }
  10080. -test "$mode" = install && func_mode_install ${1+"$@"}
  10081. +test "$opt_mode" = install && func_mode_install ${1+"$@"}
  10082. # func_generate_dlsyms outputname originator pic_p
  10083. @@ -2323,6 +3267,22 @@
  10084. extern \"C\" {
  10085. #endif
  10086. +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
  10087. +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
  10088. +#endif
  10089. +
  10090. +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10091. +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10092. +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  10093. + relocations are performed -- see ld's documentation on pseudo-relocs. */
  10094. +# define LT_DLSYM_CONST
  10095. +#elif defined(__osf__)
  10096. +/* This system does not cope well with relocations in const data. */
  10097. +# define LT_DLSYM_CONST
  10098. +#else
  10099. +# define LT_DLSYM_CONST const
  10100. +#endif
  10101. +
  10102. /* External symbol declarations for the compiler. */\
  10103. "
  10104. @@ -2332,10 +3292,11 @@
  10105. $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  10106. # Add our own program objects to the symbol list.
  10107. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  10108. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
  10109. for progfile in $progfiles; do
  10110. - func_verbose "extracting global C symbols from \`$progfile'"
  10111. - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  10112. + func_to_tool_file "$progfile" func_convert_file_msys_to_w32
  10113. + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
  10114. + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
  10115. done
  10116. if test -n "$exclude_expsyms"; then
  10117. @@ -2371,7 +3332,7 @@
  10118. eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  10119. eval '$MV "$nlist"T "$nlist"'
  10120. case $host in
  10121. - *cygwin | *mingw* | *cegcc* )
  10122. + *cygwin* | *mingw* | *cegcc* )
  10123. eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  10124. eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  10125. ;;
  10126. @@ -2384,10 +3345,52 @@
  10127. func_verbose "extracting global C symbols from \`$dlprefile'"
  10128. func_basename "$dlprefile"
  10129. name="$func_basename_result"
  10130. - $opt_dry_run || {
  10131. - eval '$ECHO ": $name " >> "$nlist"'
  10132. - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  10133. - }
  10134. + case $host in
  10135. + *cygwin* | *mingw* | *cegcc* )
  10136. + # if an import library, we need to obtain dlname
  10137. + if func_win32_import_lib_p "$dlprefile"; then
  10138. + func_tr_sh "$dlprefile"
  10139. + eval "curr_lafile=\$libfile_$func_tr_sh_result"
  10140. + dlprefile_dlbasename=""
  10141. + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
  10142. + # Use subshell, to avoid clobbering current variable values
  10143. + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
  10144. + if test -n "$dlprefile_dlname" ; then
  10145. + func_basename "$dlprefile_dlname"
  10146. + dlprefile_dlbasename="$func_basename_result"
  10147. + else
  10148. + # no lafile. user explicitly requested -dlpreopen <import library>.
  10149. + $sharedlib_from_linklib_cmd "$dlprefile"
  10150. + dlprefile_dlbasename=$sharedlib_from_linklib_result
  10151. + fi
  10152. + fi
  10153. + $opt_dry_run || {
  10154. + if test -n "$dlprefile_dlbasename" ; then
  10155. + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
  10156. + else
  10157. + func_warning "Could not compute DLL name from $name"
  10158. + eval '$ECHO ": $name " >> "$nlist"'
  10159. + fi
  10160. + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
  10161. + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
  10162. + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
  10163. + }
  10164. + else # not an import lib
  10165. + $opt_dry_run || {
  10166. + eval '$ECHO ": $name " >> "$nlist"'
  10167. + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
  10168. + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  10169. + }
  10170. + fi
  10171. + ;;
  10172. + *)
  10173. + $opt_dry_run || {
  10174. + eval '$ECHO ": $name " >> "$nlist"'
  10175. + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
  10176. + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  10177. + }
  10178. + ;;
  10179. + esac
  10180. done
  10181. $opt_dry_run || {
  10182. @@ -2415,36 +3418,19 @@
  10183. if test -f "$nlist"S; then
  10184. eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  10185. else
  10186. - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  10187. + echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
  10188. fi
  10189. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  10190. + echo >> "$output_objdir/$my_dlsyms" "\
  10191. /* The mapping between symbol names and symbols. */
  10192. typedef struct {
  10193. const char *name;
  10194. void *address;
  10195. } lt_dlsymlist;
  10196. -"
  10197. - case $host in
  10198. - *cygwin* | *mingw* | *cegcc* )
  10199. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  10200. -/* DATA imports from DLLs on WIN32 con't be const, because
  10201. - runtime relocations are performed -- see ld's documentation
  10202. - on pseudo-relocs. */"
  10203. - lt_dlsym_const= ;;
  10204. - *osf5*)
  10205. - echo >> "$output_objdir/$my_dlsyms" "\
  10206. -/* This system does not cope well with relocations in const data */"
  10207. - lt_dlsym_const= ;;
  10208. - *)
  10209. - lt_dlsym_const=const ;;
  10210. - esac
  10211. -
  10212. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  10213. -extern $lt_dlsym_const lt_dlsymlist
  10214. +extern LT_DLSYM_CONST lt_dlsymlist
  10215. lt_${my_prefix}_LTX_preloaded_symbols[];
  10216. -$lt_dlsym_const lt_dlsymlist
  10217. +LT_DLSYM_CONST lt_dlsymlist
  10218. lt_${my_prefix}_LTX_preloaded_symbols[] =
  10219. {\
  10220. { \"$my_originator\", (void *) 0 },"
  10221. @@ -2457,7 +3443,7 @@
  10222. eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  10223. ;;
  10224. esac
  10225. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  10226. + echo >> "$output_objdir/$my_dlsyms" "\
  10227. {0, (void *) 0}
  10228. };
  10229. @@ -2500,7 +3486,7 @@
  10230. for arg in $LTCFLAGS; do
  10231. case $arg in
  10232. -pie | -fpie | -fPIE) ;;
  10233. - *) symtab_cflags="$symtab_cflags $arg" ;;
  10234. + *) func_append symtab_cflags " $arg" ;;
  10235. esac
  10236. done
  10237. @@ -2515,16 +3501,16 @@
  10238. case $host in
  10239. *cygwin* | *mingw* | *cegcc* )
  10240. if test -f "$output_objdir/$my_outputname.def"; then
  10241. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  10242. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  10243. + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  10244. + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  10245. else
  10246. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  10247. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  10248. + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
  10249. + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
  10250. fi
  10251. ;;
  10252. *)
  10253. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  10254. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  10255. + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
  10256. + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
  10257. ;;
  10258. esac
  10259. ;;
  10260. @@ -2538,8 +3524,8 @@
  10261. # really was required.
  10262. # Nullify the symbol file.
  10263. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  10264. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  10265. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
  10266. + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
  10267. fi
  10268. }
  10269. @@ -2549,6 +3535,7 @@
  10270. # Need a lot of goo to handle *both* DLLs and import libs
  10271. # Has to be a shell function in order to 'eat' the argument
  10272. # that is supplied when $file_magic_command is called.
  10273. +# Despite the name, also deal with 64 bit binaries.
  10274. func_win32_libid ()
  10275. {
  10276. $opt_debug
  10277. @@ -2559,9 +3546,11 @@
  10278. win32_libid_type="x86 archive import"
  10279. ;;
  10280. *ar\ archive*) # could be an import, or static
  10281. + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
  10282. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  10283. - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  10284. - win32_nmres=`eval $NM -f posix -A $1 |
  10285. + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
  10286. + func_to_tool_file "$1" func_convert_file_msys_to_w32
  10287. + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
  10288. $SED -n -e '
  10289. 1,100{
  10290. / I /{
  10291. @@ -2590,6 +3579,131 @@
  10292. $ECHO "$win32_libid_type"
  10293. }
  10294. +# func_cygming_dll_for_implib ARG
  10295. +#
  10296. +# Platform-specific function to extract the
  10297. +# name of the DLL associated with the specified
  10298. +# import library ARG.
  10299. +# Invoked by eval'ing the libtool variable
  10300. +# $sharedlib_from_linklib_cmd
  10301. +# Result is available in the variable
  10302. +# $sharedlib_from_linklib_result
  10303. +func_cygming_dll_for_implib ()
  10304. +{
  10305. + $opt_debug
  10306. + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
  10307. +}
  10308. +
  10309. +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
  10310. +#
  10311. +# The is the core of a fallback implementation of a
  10312. +# platform-specific function to extract the name of the
  10313. +# DLL associated with the specified import library LIBNAME.
  10314. +#
  10315. +# SECTION_NAME is either .idata$6 or .idata$7, depending
  10316. +# on the platform and compiler that created the implib.
  10317. +#
  10318. +# Echos the name of the DLL associated with the
  10319. +# specified import library.
  10320. +func_cygming_dll_for_implib_fallback_core ()
  10321. +{
  10322. + $opt_debug
  10323. + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
  10324. + $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
  10325. + $SED '/^Contents of section '"$match_literal"':/{
  10326. + # Place marker at beginning of archive member dllname section
  10327. + s/.*/====MARK====/
  10328. + p
  10329. + d
  10330. + }
  10331. + # These lines can sometimes be longer than 43 characters, but
  10332. + # are always uninteresting
  10333. + /:[ ]*file format pe[i]\{,1\}-/d
  10334. + /^In archive [^:]*:/d
  10335. + # Ensure marker is printed
  10336. + /^====MARK====/p
  10337. + # Remove all lines with less than 43 characters
  10338. + /^.\{43\}/!d
  10339. + # From remaining lines, remove first 43 characters
  10340. + s/^.\{43\}//' |
  10341. + $SED -n '
  10342. + # Join marker and all lines until next marker into a single line
  10343. + /^====MARK====/ b para
  10344. + H
  10345. + $ b para
  10346. + b
  10347. + :para
  10348. + x
  10349. + s/\n//g
  10350. + # Remove the marker
  10351. + s/^====MARK====//
  10352. + # Remove trailing dots and whitespace
  10353. + s/[\. \t]*$//
  10354. + # Print
  10355. + /./p' |
  10356. + # we now have a list, one entry per line, of the stringified
  10357. + # contents of the appropriate section of all members of the
  10358. + # archive which possess that section. Heuristic: eliminate
  10359. + # all those which have a first or second character that is
  10360. + # a '.' (that is, objdump's representation of an unprintable
  10361. + # character.) This should work for all archives with less than
  10362. + # 0x302f exports -- but will fail for DLLs whose name actually
  10363. + # begins with a literal '.' or a single character followed by
  10364. + # a '.'.
  10365. + #
  10366. + # Of those that remain, print the first one.
  10367. + $SED -e '/^\./d;/^.\./d;q'
  10368. +}
  10369. +
  10370. +# func_cygming_gnu_implib_p ARG
  10371. +# This predicate returns with zero status (TRUE) if
  10372. +# ARG is a GNU/binutils-style import library. Returns
  10373. +# with nonzero status (FALSE) otherwise.
  10374. +func_cygming_gnu_implib_p ()
  10375. +{
  10376. + $opt_debug
  10377. + func_to_tool_file "$1" func_convert_file_msys_to_w32
  10378. + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
  10379. + test -n "$func_cygming_gnu_implib_tmp"
  10380. +}
  10381. +
  10382. +# func_cygming_ms_implib_p ARG
  10383. +# This predicate returns with zero status (TRUE) if
  10384. +# ARG is an MS-style import library. Returns
  10385. +# with nonzero status (FALSE) otherwise.
  10386. +func_cygming_ms_implib_p ()
  10387. +{
  10388. + $opt_debug
  10389. + func_to_tool_file "$1" func_convert_file_msys_to_w32
  10390. + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
  10391. + test -n "$func_cygming_ms_implib_tmp"
  10392. +}
  10393. +
  10394. +# func_cygming_dll_for_implib_fallback ARG
  10395. +# Platform-specific function to extract the
  10396. +# name of the DLL associated with the specified
  10397. +# import library ARG.
  10398. +#
  10399. +# This fallback implementation is for use when $DLLTOOL
  10400. +# does not support the --identify-strict option.
  10401. +# Invoked by eval'ing the libtool variable
  10402. +# $sharedlib_from_linklib_cmd
  10403. +# Result is available in the variable
  10404. +# $sharedlib_from_linklib_result
  10405. +func_cygming_dll_for_implib_fallback ()
  10406. +{
  10407. + $opt_debug
  10408. + if func_cygming_gnu_implib_p "$1" ; then
  10409. + # binutils import library
  10410. + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
  10411. + elif func_cygming_ms_implib_p "$1" ; then
  10412. + # ms-generated import library
  10413. + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
  10414. + else
  10415. + # unknown
  10416. + sharedlib_from_linklib_result=""
  10417. + fi
  10418. +}
  10419. # func_extract_an_archive dir oldlib
  10420. @@ -2598,7 +3712,18 @@
  10421. $opt_debug
  10422. f_ex_an_ar_dir="$1"; shift
  10423. f_ex_an_ar_oldlib="$1"
  10424. - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  10425. + if test "$lock_old_archive_extraction" = yes; then
  10426. + lockfile=$f_ex_an_ar_oldlib.lock
  10427. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  10428. + func_echo "Waiting for $lockfile to be removed"
  10429. + sleep 2
  10430. + done
  10431. + fi
  10432. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
  10433. + 'stat=$?; rm -f "$lockfile"; exit $stat'
  10434. + if test "$lock_old_archive_extraction" = yes; then
  10435. + $opt_dry_run || rm -f "$lockfile"
  10436. + fi
  10437. if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  10438. :
  10439. else
  10440. @@ -2669,7 +3794,7 @@
  10441. darwin_file=
  10442. darwin_files=
  10443. for darwin_file in $darwin_filelist; do
  10444. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  10445. + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
  10446. $LIPO -create -output "$darwin_file" $darwin_files
  10447. done # $darwin_filelist
  10448. $RM -rf unfat-$$
  10449. @@ -2684,25 +3809,30 @@
  10450. func_extract_an_archive "$my_xdir" "$my_xabs"
  10451. ;;
  10452. esac
  10453. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  10454. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
  10455. done
  10456. func_extract_archives_result="$my_oldobjs"
  10457. }
  10458. -
  10459. -# func_emit_wrapper_part1 [arg=no]
  10460. +# func_emit_wrapper [arg=no]
  10461. #
  10462. -# Emit the first part of a libtool wrapper script on stdout.
  10463. -# For more information, see the description associated with
  10464. -# func_emit_wrapper(), below.
  10465. -func_emit_wrapper_part1 ()
  10466. -{
  10467. - func_emit_wrapper_part1_arg1=no
  10468. - if test -n "$1" ; then
  10469. - func_emit_wrapper_part1_arg1=$1
  10470. - fi
  10471. +# Emit a libtool wrapper script on stdout.
  10472. +# Don't directly open a file because we may want to
  10473. +# incorporate the script contents within a cygwin/mingw
  10474. +# wrapper executable. Must ONLY be called from within
  10475. +# func_mode_link because it depends on a number of variables
  10476. +# set therein.
  10477. +#
  10478. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  10479. +# variable will take. If 'yes', then the emitted script
  10480. +# will assume that the directory in which it is stored is
  10481. +# the $objdir directory. This is a cygwin/mingw-specific
  10482. +# behavior.
  10483. +func_emit_wrapper ()
  10484. +{
  10485. + func_emit_wrapper_arg1=${1-no}
  10486. $ECHO "\
  10487. #! $SHELL
  10488. @@ -2718,7 +3848,6 @@
  10489. # Sed substitution that helps us do robust quoting. It backslashifies
  10490. # metacharacters that are still active within double-quoted strings.
  10491. -Xsed='${SED} -e 1s/^X//'
  10492. sed_quote_subst='$sed_quote_subst'
  10493. # Be Bourne compatible
  10494. @@ -2749,31 +3878,132 @@
  10495. else
  10496. # When we are sourced in execute mode, \$file and \$ECHO are already set.
  10497. if test \"\$libtool_execute_magic\" != \"$magic\"; then
  10498. - ECHO=\"$qecho\"
  10499. - file=\"\$0\"
  10500. - # Make sure echo works.
  10501. - if test \"X\$1\" = X--no-reexec; then
  10502. - # Discard the --no-reexec flag, and continue.
  10503. - shift
  10504. - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  10505. - # Yippee, \$ECHO works!
  10506. - :
  10507. - else
  10508. - # Restart under the correct shell, and then maybe \$ECHO will work.
  10509. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  10510. - fi
  10511. - fi\
  10512. + file=\"\$0\""
  10513. +
  10514. + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
  10515. + $ECHO "\
  10516. +
  10517. +# A function that is used when there is no print builtin or printf.
  10518. +func_fallback_echo ()
  10519. +{
  10520. + eval 'cat <<_LTECHO_EOF
  10521. +\$1
  10522. +_LTECHO_EOF'
  10523. +}
  10524. + ECHO=\"$qECHO\"
  10525. + fi
  10526. +
  10527. +# Very basic option parsing. These options are (a) specific to
  10528. +# the libtool wrapper, (b) are identical between the wrapper
  10529. +# /script/ and the wrapper /executable/ which is used only on
  10530. +# windows platforms, and (c) all begin with the string "--lt-"
  10531. +# (application programs are unlikely to have options which match
  10532. +# this pattern).
  10533. +#
  10534. +# There are only two supported options: --lt-debug and
  10535. +# --lt-dump-script. There is, deliberately, no --lt-help.
  10536. +#
  10537. +# The first argument to this parsing function should be the
  10538. +# script's $0 value, followed by "$@".
  10539. +lt_option_debug=
  10540. +func_parse_lt_options ()
  10541. +{
  10542. + lt_script_arg0=\$0
  10543. + shift
  10544. + for lt_opt
  10545. + do
  10546. + case \"\$lt_opt\" in
  10547. + --lt-debug) lt_option_debug=1 ;;
  10548. + --lt-dump-script)
  10549. + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
  10550. + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
  10551. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
  10552. + cat \"\$lt_dump_D/\$lt_dump_F\"
  10553. + exit 0
  10554. + ;;
  10555. + --lt-*)
  10556. + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
  10557. + exit 1
  10558. + ;;
  10559. + esac
  10560. + done
  10561. +
  10562. + # Print the debug banner immediately:
  10563. + if test -n \"\$lt_option_debug\"; then
  10564. + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
  10565. + fi
  10566. +}
  10567. +
  10568. +# Used when --lt-debug. Prints its arguments to stdout
  10569. +# (redirection is the responsibility of the caller)
  10570. +func_lt_dump_args ()
  10571. +{
  10572. + lt_dump_args_N=1;
  10573. + for lt_arg
  10574. + do
  10575. + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
  10576. + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
  10577. + done
  10578. +}
  10579. +
  10580. +# Core function for launching the target application
  10581. +func_exec_program_core ()
  10582. +{
  10583. "
  10584. - $ECHO "\
  10585. + case $host in
  10586. + # Backslashes separate directories on plain windows
  10587. + *-*-mingw | *-*-os2* | *-cegcc*)
  10588. + $ECHO "\
  10589. + if test -n \"\$lt_option_debug\"; then
  10590. + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
  10591. + func_lt_dump_args \${1+\"\$@\"} 1>&2
  10592. + fi
  10593. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  10594. +"
  10595. + ;;
  10596. +
  10597. + *)
  10598. + $ECHO "\
  10599. + if test -n \"\$lt_option_debug\"; then
  10600. + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
  10601. + func_lt_dump_args \${1+\"\$@\"} 1>&2
  10602. + fi
  10603. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  10604. +"
  10605. + ;;
  10606. + esac
  10607. + $ECHO "\
  10608. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  10609. + exit 1
  10610. +}
  10611. +
  10612. +# A function to encapsulate launching the target application
  10613. +# Strips options in the --lt-* namespace from \$@ and
  10614. +# launches target application with the remaining arguments.
  10615. +func_exec_program ()
  10616. +{
  10617. + for lt_wr_arg
  10618. + do
  10619. + case \$lt_wr_arg in
  10620. + --lt-*) ;;
  10621. + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
  10622. + esac
  10623. + shift
  10624. + done
  10625. + func_exec_program_core \${1+\"\$@\"}
  10626. +}
  10627. +
  10628. + # Parse options
  10629. + func_parse_lt_options \"\$0\" \${1+\"\$@\"}
  10630. # Find the directory that this script lives in.
  10631. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  10632. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
  10633. test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  10634. # Follow symbolic links until we get to the real thisdir.
  10635. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  10636. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
  10637. while test -n \"\$file\"; do
  10638. - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  10639. + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
  10640. # If there was a directory component, then change thisdir.
  10641. if test \"x\$destdir\" != \"x\$file\"; then
  10642. @@ -2783,30 +4013,13 @@
  10643. esac
  10644. fi
  10645. - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  10646. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  10647. + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
  10648. + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
  10649. done
  10650. -"
  10651. -}
  10652. -# end: func_emit_wrapper_part1
  10653. -
  10654. -# func_emit_wrapper_part2 [arg=no]
  10655. -#
  10656. -# Emit the second part of a libtool wrapper script on stdout.
  10657. -# For more information, see the description associated with
  10658. -# func_emit_wrapper(), below.
  10659. -func_emit_wrapper_part2 ()
  10660. -{
  10661. - func_emit_wrapper_part2_arg1=no
  10662. - if test -n "$1" ; then
  10663. - func_emit_wrapper_part2_arg1=$1
  10664. - fi
  10665. -
  10666. - $ECHO "\
  10667. # Usually 'no', except on cygwin/mingw when embedded into
  10668. # the cwrapper.
  10669. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  10670. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
  10671. if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  10672. # special case for '.'
  10673. if test \"\$thisdir\" = \".\"; then
  10674. @@ -2814,7 +4027,7 @@
  10675. fi
  10676. # remove .libs from thisdir
  10677. case \"\$thisdir\" in
  10678. - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  10679. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
  10680. $objdir ) thisdir=. ;;
  10681. esac
  10682. fi
  10683. @@ -2869,6 +4082,18 @@
  10684. if test -f \"\$progdir/\$program\"; then"
  10685. + # fixup the dll searchpath if we need to.
  10686. + #
  10687. + # Fix the DLL searchpath if we need to. Do this before prepending
  10688. + # to shlibpath, because on Windows, both are PATH and uninstalled
  10689. + # libraries must come first.
  10690. + if test -n "$dllsearchpath"; then
  10691. + $ECHO "\
  10692. + # Add the dll search path components to the executable PATH
  10693. + PATH=$dllsearchpath:\$PATH
  10694. +"
  10695. + fi
  10696. +
  10697. # Export our shlibpath_var if we have one.
  10698. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  10699. $ECHO "\
  10700. @@ -2877,253 +4102,28 @@
  10701. # Some systems cannot cope with colon-terminated $shlibpath_var
  10702. # The second colon is a workaround for a bug in BeOS R4 sed
  10703. - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  10704. + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
  10705. export $shlibpath_var
  10706. "
  10707. fi
  10708. - # fixup the dll searchpath if we need to.
  10709. - if test -n "$dllsearchpath"; then
  10710. - $ECHO "\
  10711. - # Add the dll search path components to the executable PATH
  10712. - PATH=$dllsearchpath:\$PATH
  10713. -"
  10714. - fi
  10715. -
  10716. $ECHO "\
  10717. if test \"\$libtool_execute_magic\" != \"$magic\"; then
  10718. # Run the actual program with our arguments.
  10719. -"
  10720. - case $host in
  10721. - # Backslashes separate directories on plain windows
  10722. - *-*-mingw | *-*-os2* | *-cegcc*)
  10723. - $ECHO "\
  10724. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  10725. -"
  10726. - ;;
  10727. -
  10728. - *)
  10729. - $ECHO "\
  10730. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  10731. -"
  10732. - ;;
  10733. - esac
  10734. - $ECHO "\
  10735. - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  10736. - exit 1
  10737. + func_exec_program \${1+\"\$@\"}
  10738. fi
  10739. else
  10740. # The program doesn't exist.
  10741. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  10742. \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  10743. - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  10744. + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  10745. exit 1
  10746. fi
  10747. fi\
  10748. "
  10749. }
  10750. -# end: func_emit_wrapper_part2
  10751. -
  10752. -
  10753. -# func_emit_wrapper [arg=no]
  10754. -#
  10755. -# Emit a libtool wrapper script on stdout.
  10756. -# Don't directly open a file because we may want to
  10757. -# incorporate the script contents within a cygwin/mingw
  10758. -# wrapper executable. Must ONLY be called from within
  10759. -# func_mode_link because it depends on a number of variables
  10760. -# set therein.
  10761. -#
  10762. -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  10763. -# variable will take. If 'yes', then the emitted script
  10764. -# will assume that the directory in which it is stored is
  10765. -# the $objdir directory. This is a cygwin/mingw-specific
  10766. -# behavior.
  10767. -func_emit_wrapper ()
  10768. -{
  10769. - func_emit_wrapper_arg1=no
  10770. - if test -n "$1" ; then
  10771. - func_emit_wrapper_arg1=$1
  10772. - fi
  10773. -
  10774. - # split this up so that func_emit_cwrapperexe_src
  10775. - # can call each part independently.
  10776. - func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  10777. - func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  10778. -}
  10779. -
  10780. -
  10781. -# func_to_host_path arg
  10782. -#
  10783. -# Convert paths to host format when used with build tools.
  10784. -# Intended for use with "native" mingw (where libtool itself
  10785. -# is running under the msys shell), or in the following cross-
  10786. -# build environments:
  10787. -# $build $host
  10788. -# mingw (msys) mingw [e.g. native]
  10789. -# cygwin mingw
  10790. -# *nix + wine mingw
  10791. -# where wine is equipped with the `winepath' executable.
  10792. -# In the native mingw case, the (msys) shell automatically
  10793. -# converts paths for any non-msys applications it launches,
  10794. -# but that facility isn't available from inside the cwrapper.
  10795. -# Similar accommodations are necessary for $host mingw and
  10796. -# $build cygwin. Calling this function does no harm for other
  10797. -# $host/$build combinations not listed above.
  10798. -#
  10799. -# ARG is the path (on $build) that should be converted to
  10800. -# the proper representation for $host. The result is stored
  10801. -# in $func_to_host_path_result.
  10802. -func_to_host_path ()
  10803. -{
  10804. - func_to_host_path_result="$1"
  10805. - if test -n "$1" ; then
  10806. - case $host in
  10807. - *mingw* )
  10808. - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  10809. - case $build in
  10810. - *mingw* ) # actually, msys
  10811. - # awkward: cmd appends spaces to result
  10812. - lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  10813. - func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  10814. - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  10815. - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  10816. - $SED -e "$lt_sed_naive_backslashify"`
  10817. - ;;
  10818. - *cygwin* )
  10819. - func_to_host_path_tmp1=`cygpath -w "$1"`
  10820. - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  10821. - $SED -e "$lt_sed_naive_backslashify"`
  10822. - ;;
  10823. - * )
  10824. - # Unfortunately, winepath does not exit with a non-zero
  10825. - # error code, so we are forced to check the contents of
  10826. - # stdout. On the other hand, if the command is not
  10827. - # found, the shell will set an exit code of 127 and print
  10828. - # *an error message* to stdout. So we must check for both
  10829. - # error code of zero AND non-empty stdout, which explains
  10830. - # the odd construction:
  10831. - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  10832. - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  10833. - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  10834. - $SED -e "$lt_sed_naive_backslashify"`
  10835. - else
  10836. - # Allow warning below.
  10837. - func_to_host_path_result=""
  10838. - fi
  10839. - ;;
  10840. - esac
  10841. - if test -z "$func_to_host_path_result" ; then
  10842. - func_error "Could not determine host path corresponding to"
  10843. - func_error " '$1'"
  10844. - func_error "Continuing, but uninstalled executables may not work."
  10845. - # Fallback:
  10846. - func_to_host_path_result="$1"
  10847. - fi
  10848. - ;;
  10849. - esac
  10850. - fi
  10851. -}
  10852. -# end: func_to_host_path
  10853. -# func_to_host_pathlist arg
  10854. -#
  10855. -# Convert pathlists to host format when used with build tools.
  10856. -# See func_to_host_path(), above. This function supports the
  10857. -# following $build/$host combinations (but does no harm for
  10858. -# combinations not listed here):
  10859. -# $build $host
  10860. -# mingw (msys) mingw [e.g. native]
  10861. -# cygwin mingw
  10862. -# *nix + wine mingw
  10863. -#
  10864. -# Path separators are also converted from $build format to
  10865. -# $host format. If ARG begins or ends with a path separator
  10866. -# character, it is preserved (but converted to $host format)
  10867. -# on output.
  10868. -#
  10869. -# ARG is a pathlist (on $build) that should be converted to
  10870. -# the proper representation on $host. The result is stored
  10871. -# in $func_to_host_pathlist_result.
  10872. -func_to_host_pathlist ()
  10873. -{
  10874. - func_to_host_pathlist_result="$1"
  10875. - if test -n "$1" ; then
  10876. - case $host in
  10877. - *mingw* )
  10878. - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  10879. - # Remove leading and trailing path separator characters from
  10880. - # ARG. msys behavior is inconsistent here, cygpath turns them
  10881. - # into '.;' and ';.', and winepath ignores them completely.
  10882. - func_to_host_pathlist_tmp2="$1"
  10883. - # Once set for this call, this variable should not be
  10884. - # reassigned. It is used in tha fallback case.
  10885. - func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  10886. - $SED -e 's|^:*||' -e 's|:*$||'`
  10887. - case $build in
  10888. - *mingw* ) # Actually, msys.
  10889. - # Awkward: cmd appends spaces to result.
  10890. - lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  10891. - func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  10892. - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  10893. - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  10894. - $SED -e "$lt_sed_naive_backslashify"`
  10895. - ;;
  10896. - *cygwin* )
  10897. - func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  10898. - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  10899. - $SED -e "$lt_sed_naive_backslashify"`
  10900. - ;;
  10901. - * )
  10902. - # unfortunately, winepath doesn't convert pathlists
  10903. - func_to_host_pathlist_result=""
  10904. - func_to_host_pathlist_oldIFS=$IFS
  10905. - IFS=:
  10906. - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  10907. - IFS=$func_to_host_pathlist_oldIFS
  10908. - if test -n "$func_to_host_pathlist_f" ; then
  10909. - func_to_host_path "$func_to_host_pathlist_f"
  10910. - if test -n "$func_to_host_path_result" ; then
  10911. - if test -z "$func_to_host_pathlist_result" ; then
  10912. - func_to_host_pathlist_result="$func_to_host_path_result"
  10913. - else
  10914. - func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  10915. - fi
  10916. - fi
  10917. - fi
  10918. - IFS=:
  10919. - done
  10920. - IFS=$func_to_host_pathlist_oldIFS
  10921. - ;;
  10922. - esac
  10923. - if test -z "$func_to_host_pathlist_result" ; then
  10924. - func_error "Could not determine the host path(s) corresponding to"
  10925. - func_error " '$1'"
  10926. - func_error "Continuing, but uninstalled executables may not work."
  10927. - # Fallback. This may break if $1 contains DOS-style drive
  10928. - # specifications. The fix is not to complicate the expression
  10929. - # below, but for the user to provide a working wine installation
  10930. - # with winepath so that path translation in the cross-to-mingw
  10931. - # case works properly.
  10932. - lt_replace_pathsep_nix_to_dos="s|:|;|g"
  10933. - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  10934. - $SED -e "$lt_replace_pathsep_nix_to_dos"`
  10935. - fi
  10936. - # Now, add the leading and trailing path separators back
  10937. - case "$1" in
  10938. - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  10939. - ;;
  10940. - esac
  10941. - case "$1" in
  10942. - *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  10943. - ;;
  10944. - esac
  10945. - ;;
  10946. - esac
  10947. - fi
  10948. -}
  10949. -# end: func_to_host_pathlist
  10950. # func_emit_cwrapperexe_src
  10951. # emit the source code for a wrapper executable on stdout
  10952. @@ -3141,41 +4141,71 @@
  10953. This wrapper executable should never be moved out of the build directory.
  10954. If it is, it will not operate correctly.
  10955. -
  10956. - Currently, it simply execs the wrapper *script* "$SHELL $output",
  10957. - but could eventually absorb all of the scripts functionality and
  10958. - exec $objdir/$outputname directly.
  10959. */
  10960. EOF
  10961. cat <<"EOF"
  10962. +#ifdef _MSC_VER
  10963. +# define _CRT_SECURE_NO_DEPRECATE 1
  10964. +#endif
  10965. #include <stdio.h>
  10966. #include <stdlib.h>
  10967. #ifdef _MSC_VER
  10968. # include <direct.h>
  10969. # include <process.h>
  10970. # include <io.h>
  10971. -# define setmode _setmode
  10972. #else
  10973. # include <unistd.h>
  10974. # include <stdint.h>
  10975. # ifdef __CYGWIN__
  10976. # include <io.h>
  10977. -# define HAVE_SETENV
  10978. -# ifdef __STRICT_ANSI__
  10979. +# endif
  10980. +#endif
  10981. +#include <malloc.h>
  10982. +#include <stdarg.h>
  10983. +#include <assert.h>
  10984. +#include <string.h>
  10985. +#include <ctype.h>
  10986. +#include <errno.h>
  10987. +#include <fcntl.h>
  10988. +#include <sys/stat.h>
  10989. +
  10990. +/* declarations of non-ANSI functions */
  10991. +#if defined(__MINGW32__)
  10992. +# ifdef __STRICT_ANSI__
  10993. +int _putenv (const char *);
  10994. +# endif
  10995. +#elif defined(__CYGWIN__)
  10996. +# ifdef __STRICT_ANSI__
  10997. char *realpath (const char *, char *);
  10998. int putenv (char *);
  10999. int setenv (const char *, const char *, int);
  11000. -# endif
  11001. # endif
  11002. +/* #elif defined (other platforms) ... */
  11003. +#endif
  11004. +
  11005. +/* portability defines, excluding path handling macros */
  11006. +#if defined(_MSC_VER)
  11007. +# define setmode _setmode
  11008. +# define stat _stat
  11009. +# define chmod _chmod
  11010. +# define getcwd _getcwd
  11011. +# define putenv _putenv
  11012. +# define S_IXUSR _S_IEXEC
  11013. +# ifndef _INTPTR_T_DEFINED
  11014. +# define _INTPTR_T_DEFINED
  11015. +# define intptr_t int
  11016. +# endif
  11017. +#elif defined(__MINGW32__)
  11018. +# define setmode _setmode
  11019. +# define stat _stat
  11020. +# define chmod _chmod
  11021. +# define getcwd _getcwd
  11022. +# define putenv _putenv
  11023. +#elif defined(__CYGWIN__)
  11024. +# define HAVE_SETENV
  11025. +# define FOPEN_WB "wb"
  11026. +/* #elif defined (other platforms) ... */
  11027. #endif
  11028. -#include <malloc.h>
  11029. -#include <stdarg.h>
  11030. -#include <assert.h>
  11031. -#include <string.h>
  11032. -#include <ctype.h>
  11033. -#include <errno.h>
  11034. -#include <fcntl.h>
  11035. -#include <sys/stat.h>
  11036. #if defined(PATH_MAX)
  11037. # define LT_PATHMAX PATH_MAX
  11038. @@ -3192,14 +4222,7 @@
  11039. # define S_IXGRP 0
  11040. #endif
  11041. -#ifdef _MSC_VER
  11042. -# define S_IXUSR _S_IEXEC
  11043. -# define stat _stat
  11044. -# ifndef _INTPTR_T_DEFINED
  11045. -# define intptr_t int
  11046. -# endif
  11047. -#endif
  11048. -
  11049. +/* path handling portability macros */
  11050. #ifndef DIR_SEPARATOR
  11051. # define DIR_SEPARATOR '/'
  11052. # define PATH_SEPARATOR ':'
  11053. @@ -3230,10 +4253,6 @@
  11054. # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  11055. #endif /* PATH_SEPARATOR_2 */
  11056. -#ifdef __CYGWIN__
  11057. -# define FOPEN_WB "wb"
  11058. -#endif
  11059. -
  11060. #ifndef FOPEN_WB
  11061. # define FOPEN_WB "w"
  11062. #endif
  11063. @@ -3246,22 +4265,13 @@
  11064. if (stale) { free ((void *) stale); stale = 0; } \
  11065. } while (0)
  11066. -#undef LTWRAPPER_DEBUGPRINTF
  11067. -#if defined DEBUGWRAPPER
  11068. -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  11069. -static void
  11070. -ltwrapper_debugprintf (const char *fmt, ...)
  11071. -{
  11072. - va_list args;
  11073. - va_start (args, fmt);
  11074. - (void) vfprintf (stderr, fmt, args);
  11075. - va_end (args);
  11076. -}
  11077. +#if defined(LT_DEBUGWRAPPER)
  11078. +static int lt_debug = 1;
  11079. #else
  11080. -# define LTWRAPPER_DEBUGPRINTF(args)
  11081. +static int lt_debug = 0;
  11082. #endif
  11083. -const char *program_name = NULL;
  11084. +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
  11085. void *xmalloc (size_t num);
  11086. char *xstrdup (const char *string);
  11087. @@ -3271,41 +4281,27 @@
  11088. int make_executable (const char *path);
  11089. int check_executable (const char *path);
  11090. char *strendzap (char *str, const char *pat);
  11091. -void lt_fatal (const char *message, ...);
  11092. +void lt_debugprintf (const char *file, int line, const char *fmt, ...);
  11093. +void lt_fatal (const char *file, int line, const char *message, ...);
  11094. +static const char *nonnull (const char *s);
  11095. +static const char *nonempty (const char *s);
  11096. void lt_setenv (const char *name, const char *value);
  11097. char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  11098. -void lt_opt_process_env_set (const char *arg);
  11099. -void lt_opt_process_env_prepend (const char *arg);
  11100. -void lt_opt_process_env_append (const char *arg);
  11101. -int lt_split_name_value (const char *arg, char** name, char** value);
  11102. void lt_update_exe_path (const char *name, const char *value);
  11103. void lt_update_lib_path (const char *name, const char *value);
  11104. -
  11105. -static const char *script_text_part1 =
  11106. -EOF
  11107. -
  11108. - func_emit_wrapper_part1 yes |
  11109. - $SED -e 's/\([\\"]\)/\\\1/g' \
  11110. - -e 's/^/ "/' -e 's/$/\\n"/'
  11111. - echo ";"
  11112. - cat <<EOF
  11113. -
  11114. -static const char *script_text_part2 =
  11115. +char **prepare_spawn (char **argv);
  11116. +void lt_dump_script (FILE *f);
  11117. EOF
  11118. - func_emit_wrapper_part2 yes |
  11119. - $SED -e 's/\([\\"]\)/\\\1/g' \
  11120. - -e 's/^/ "/' -e 's/$/\\n"/'
  11121. - echo ";"
  11122. cat <<EOF
  11123. -const char * MAGIC_EXE = "$magic_exe";
  11124. +volatile const char * MAGIC_EXE = "$magic_exe";
  11125. const char * LIB_PATH_VARNAME = "$shlibpath_var";
  11126. EOF
  11127. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  11128. - func_to_host_pathlist "$temp_rpath"
  11129. + func_to_host_path "$temp_rpath"
  11130. cat <<EOF
  11131. -const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  11132. +const char * LIB_PATH_VALUE = "$func_to_host_path_result";
  11133. EOF
  11134. else
  11135. cat <<"EOF"
  11136. @@ -3314,10 +4310,10 @@
  11137. fi
  11138. if test -n "$dllsearchpath"; then
  11139. - func_to_host_pathlist "$dllsearchpath:"
  11140. + func_to_host_path "$dllsearchpath:"
  11141. cat <<EOF
  11142. const char * EXE_PATH_VARNAME = "PATH";
  11143. -const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  11144. +const char * EXE_PATH_VALUE = "$func_to_host_path_result";
  11145. EOF
  11146. else
  11147. cat <<"EOF"
  11148. @@ -3340,24 +4336,10 @@
  11149. cat <<"EOF"
  11150. #define LTWRAPPER_OPTION_PREFIX "--lt-"
  11151. -#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  11152. -static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  11153. static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  11154. -
  11155. static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  11156. -
  11157. -static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  11158. -static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  11159. - /* argument is putenv-style "foo=bar", value of foo is set to bar */
  11160. -
  11161. -static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  11162. -static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  11163. - /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  11164. -
  11165. -static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  11166. -static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  11167. - /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  11168. +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
  11169. int
  11170. main (int argc, char *argv[])
  11171. @@ -3374,10 +4356,13 @@
  11172. int i;
  11173. program_name = (char *) xstrdup (base_name (argv[0]));
  11174. - LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  11175. - LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  11176. + newargz = XMALLOC (char *, argc + 1);
  11177. - /* very simple arg parsing; don't want to rely on getopt */
  11178. + /* very simple arg parsing; don't want to rely on getopt
  11179. + * also, copy all non cwrapper options to newargz, except
  11180. + * argz[0], which is handled differently
  11181. + */
  11182. + newargc=0;
  11183. for (i = 1; i < argc; i++)
  11184. {
  11185. if (strcmp (argv[i], dumpscript_opt) == 0)
  11186. @@ -3391,25 +4376,57 @@
  11187. esac
  11188. cat <<"EOF"
  11189. - printf ("%s", script_text_part1);
  11190. - printf ("%s", script_text_part2);
  11191. + lt_dump_script (stdout);
  11192. return 0;
  11193. }
  11194. + if (strcmp (argv[i], debug_opt) == 0)
  11195. + {
  11196. + lt_debug = 1;
  11197. + continue;
  11198. + }
  11199. + if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
  11200. + {
  11201. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  11202. + namespace, but it is not one of the ones we know about and
  11203. + have already dealt with, above (inluding dump-script), then
  11204. + report an error. Otherwise, targets might begin to believe
  11205. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  11206. + namespace. The first time any user complains about this, we'll
  11207. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  11208. + or a configure.ac-settable value.
  11209. + */
  11210. + lt_fatal (__FILE__, __LINE__,
  11211. + "unrecognized %s option: '%s'",
  11212. + ltwrapper_option_prefix, argv[i]);
  11213. + }
  11214. + /* otherwise ... */
  11215. + newargz[++newargc] = xstrdup (argv[i]);
  11216. }
  11217. + newargz[++newargc] = NULL;
  11218. +
  11219. +EOF
  11220. + cat <<EOF
  11221. + /* The GNU banner must be the first non-error debug message */
  11222. + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
  11223. +EOF
  11224. + cat <<"EOF"
  11225. + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
  11226. + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
  11227. - newargz = XMALLOC (char *, argc + 1);
  11228. tmp_pathspec = find_executable (argv[0]);
  11229. if (tmp_pathspec == NULL)
  11230. - lt_fatal ("Couldn't find %s", argv[0]);
  11231. - LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  11232. - tmp_pathspec));
  11233. + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
  11234. + lt_debugprintf (__FILE__, __LINE__,
  11235. + "(main) found exe (before symlink chase) at: %s\n",
  11236. + tmp_pathspec);
  11237. actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  11238. - LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  11239. - actual_cwrapper_path));
  11240. + lt_debugprintf (__FILE__, __LINE__,
  11241. + "(main) found exe (after symlink chase) at: %s\n",
  11242. + actual_cwrapper_path);
  11243. XFREE (tmp_pathspec);
  11244. - actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  11245. + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
  11246. strendzap (actual_cwrapper_path, actual_cwrapper_name);
  11247. /* wrapper name transforms */
  11248. @@ -3427,8 +4444,9 @@
  11249. target_name = tmp_pathspec;
  11250. tmp_pathspec = 0;
  11251. - LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  11252. - target_name));
  11253. + lt_debugprintf (__FILE__, __LINE__,
  11254. + "(main) libtool target name: %s\n",
  11255. + target_name);
  11256. EOF
  11257. cat <<EOF
  11258. @@ -3478,80 +4496,19 @@
  11259. lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  11260. lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  11261. - lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  11262. + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
  11263. + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
  11264. + because on Windows, both *_VARNAMEs are PATH but uninstalled
  11265. + libraries must come first. */
  11266. lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  11267. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  11268. - newargc=0;
  11269. - for (i = 1; i < argc; i++)
  11270. - {
  11271. - if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  11272. - {
  11273. - if (argv[i][env_set_opt_len] == '=')
  11274. - {
  11275. - const char *p = argv[i] + env_set_opt_len + 1;
  11276. - lt_opt_process_env_set (p);
  11277. - }
  11278. - else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  11279. - {
  11280. - lt_opt_process_env_set (argv[++i]); /* don't copy */
  11281. - }
  11282. - else
  11283. - lt_fatal ("%s missing required argument", env_set_opt);
  11284. - continue;
  11285. - }
  11286. - if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  11287. - {
  11288. - if (argv[i][env_prepend_opt_len] == '=')
  11289. - {
  11290. - const char *p = argv[i] + env_prepend_opt_len + 1;
  11291. - lt_opt_process_env_prepend (p);
  11292. - }
  11293. - else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  11294. - {
  11295. - lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  11296. - }
  11297. - else
  11298. - lt_fatal ("%s missing required argument", env_prepend_opt);
  11299. - continue;
  11300. - }
  11301. - if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  11302. - {
  11303. - if (argv[i][env_append_opt_len] == '=')
  11304. - {
  11305. - const char *p = argv[i] + env_append_opt_len + 1;
  11306. - lt_opt_process_env_append (p);
  11307. - }
  11308. - else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  11309. - {
  11310. - lt_opt_process_env_append (argv[++i]); /* don't copy */
  11311. - }
  11312. - else
  11313. - lt_fatal ("%s missing required argument", env_append_opt);
  11314. - continue;
  11315. - }
  11316. - if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  11317. - {
  11318. - /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  11319. - namespace, but it is not one of the ones we know about and
  11320. - have already dealt with, above (inluding dump-script), then
  11321. - report an error. Otherwise, targets might begin to believe
  11322. - they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  11323. - namespace. The first time any user complains about this, we'll
  11324. - need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  11325. - or a configure.ac-settable value.
  11326. - */
  11327. - lt_fatal ("Unrecognized option in %s namespace: '%s'",
  11328. - ltwrapper_option_prefix, argv[i]);
  11329. - }
  11330. - /* otherwise ... */
  11331. - newargz[++newargc] = xstrdup (argv[i]);
  11332. - }
  11333. - newargz[++newargc] = NULL;
  11334. -
  11335. - LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  11336. + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
  11337. + nonnull (lt_argv_zero));
  11338. for (i = 0; i < newargc; i++)
  11339. {
  11340. - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  11341. + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
  11342. + i, nonnull (newargz[i]));
  11343. }
  11344. EOF
  11345. @@ -3560,11 +4517,14 @@
  11346. mingw*)
  11347. cat <<"EOF"
  11348. /* execv doesn't actually work on mingw as expected on unix */
  11349. + newargz = prepare_spawn (newargz);
  11350. rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  11351. if (rval == -1)
  11352. {
  11353. /* failed to start process */
  11354. - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  11355. + lt_debugprintf (__FILE__, __LINE__,
  11356. + "(main) failed to launch target \"%s\": %s\n",
  11357. + lt_argv_zero, nonnull (strerror (errno)));
  11358. return 127;
  11359. }
  11360. return rval;
  11361. @@ -3586,7 +4546,7 @@
  11362. {
  11363. void *p = (void *) malloc (num);
  11364. if (!p)
  11365. - lt_fatal ("Memory exhausted");
  11366. + lt_fatal (__FILE__, __LINE__, "memory exhausted");
  11367. return p;
  11368. }
  11369. @@ -3620,8 +4580,8 @@
  11370. {
  11371. struct stat st;
  11372. - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  11373. - path ? (*path ? path : "EMPTY!") : "NULL!"));
  11374. + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
  11375. + nonempty (path));
  11376. if ((!path) || (!*path))
  11377. return 0;
  11378. @@ -3638,8 +4598,8 @@
  11379. int rval = 0;
  11380. struct stat st;
  11381. - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  11382. - path ? (*path ? path : "EMPTY!") : "NULL!"));
  11383. + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
  11384. + nonempty (path));
  11385. if ((!path) || (!*path))
  11386. return 0;
  11387. @@ -3665,8 +4625,8 @@
  11388. int tmp_len;
  11389. char *concat_name;
  11390. - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  11391. - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  11392. + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
  11393. + nonempty (wrapper));
  11394. if ((wrapper == NULL) || (*wrapper == '\0'))
  11395. return NULL;
  11396. @@ -3719,7 +4679,8 @@
  11397. {
  11398. /* empty path: current directory */
  11399. if (getcwd (tmp, LT_PATHMAX) == NULL)
  11400. - lt_fatal ("getcwd failed");
  11401. + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
  11402. + nonnull (strerror (errno)));
  11403. tmp_len = strlen (tmp);
  11404. concat_name =
  11405. XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  11406. @@ -3744,7 +4705,8 @@
  11407. }
  11408. /* Relative path | not found in path: prepend cwd */
  11409. if (getcwd (tmp, LT_PATHMAX) == NULL)
  11410. - lt_fatal ("getcwd failed");
  11411. + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
  11412. + nonnull (strerror (errno)));
  11413. tmp_len = strlen (tmp);
  11414. concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  11415. memcpy (concat_name, tmp, tmp_len);
  11416. @@ -3770,8 +4732,9 @@
  11417. int has_symlinks = 0;
  11418. while (strlen (tmp_pathspec) && !has_symlinks)
  11419. {
  11420. - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  11421. - tmp_pathspec));
  11422. + lt_debugprintf (__FILE__, __LINE__,
  11423. + "checking path component for symlinks: %s\n",
  11424. + tmp_pathspec);
  11425. if (lstat (tmp_pathspec, &s) == 0)
  11426. {
  11427. if (S_ISLNK (s.st_mode) != 0)
  11428. @@ -3793,8 +4756,9 @@
  11429. }
  11430. else
  11431. {
  11432. - char *errstr = strerror (errno);
  11433. - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  11434. + lt_fatal (__FILE__, __LINE__,
  11435. + "error accessing file \"%s\": %s",
  11436. + tmp_pathspec, nonnull (strerror (errno)));
  11437. }
  11438. }
  11439. XFREE (tmp_pathspec);
  11440. @@ -3807,7 +4771,8 @@
  11441. tmp_pathspec = realpath (pathspec, buf);
  11442. if (tmp_pathspec == 0)
  11443. {
  11444. - lt_fatal ("Could not follow symlinks for %s", pathspec);
  11445. + lt_fatal (__FILE__, __LINE__,
  11446. + "could not follow symlinks for %s", pathspec);
  11447. }
  11448. return xstrdup (tmp_pathspec);
  11449. #endif
  11450. @@ -3833,11 +4798,25 @@
  11451. return str;
  11452. }
  11453. +void
  11454. +lt_debugprintf (const char *file, int line, const char *fmt, ...)
  11455. +{
  11456. + va_list args;
  11457. + if (lt_debug)
  11458. + {
  11459. + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
  11460. + va_start (args, fmt);
  11461. + (void) vfprintf (stderr, fmt, args);
  11462. + va_end (args);
  11463. + }
  11464. +}
  11465. +
  11466. static void
  11467. -lt_error_core (int exit_status, const char *mode,
  11468. +lt_error_core (int exit_status, const char *file,
  11469. + int line, const char *mode,
  11470. const char *message, va_list ap)
  11471. {
  11472. - fprintf (stderr, "%s: %s: ", program_name, mode);
  11473. + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
  11474. vfprintf (stderr, message, ap);
  11475. fprintf (stderr, ".\n");
  11476. @@ -3846,20 +4825,32 @@
  11477. }
  11478. void
  11479. -lt_fatal (const char *message, ...)
  11480. +lt_fatal (const char *file, int line, const char *message, ...)
  11481. {
  11482. va_list ap;
  11483. va_start (ap, message);
  11484. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  11485. + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
  11486. va_end (ap);
  11487. }
  11488. +static const char *
  11489. +nonnull (const char *s)
  11490. +{
  11491. + return s ? s : "(null)";
  11492. +}
  11493. +
  11494. +static const char *
  11495. +nonempty (const char *s)
  11496. +{
  11497. + return (s && !*s) ? "(empty)" : nonnull (s);
  11498. +}
  11499. +
  11500. void
  11501. lt_setenv (const char *name, const char *value)
  11502. {
  11503. - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  11504. - (name ? name : "<NULL>"),
  11505. - (value ? value : "<NULL>")));
  11506. + lt_debugprintf (__FILE__, __LINE__,
  11507. + "(lt_setenv) setting '%s' to '%s'\n",
  11508. + nonnull (name), nonnull (value));
  11509. {
  11510. #ifdef HAVE_SETENV
  11511. /* always make a copy, for consistency with !HAVE_SETENV */
  11512. @@ -3904,95 +4895,12 @@
  11513. return new_value;
  11514. }
  11515. -int
  11516. -lt_split_name_value (const char *arg, char** name, char** value)
  11517. -{
  11518. - const char *p;
  11519. - int len;
  11520. - if (!arg || !*arg)
  11521. - return 1;
  11522. -
  11523. - p = strchr (arg, (int)'=');
  11524. -
  11525. - if (!p)
  11526. - return 1;
  11527. -
  11528. - *value = xstrdup (++p);
  11529. -
  11530. - len = strlen (arg) - strlen (*value);
  11531. - *name = XMALLOC (char, len);
  11532. - strncpy (*name, arg, len-1);
  11533. - (*name)[len - 1] = '\0';
  11534. -
  11535. - return 0;
  11536. -}
  11537. -
  11538. -void
  11539. -lt_opt_process_env_set (const char *arg)
  11540. -{
  11541. - char *name = NULL;
  11542. - char *value = NULL;
  11543. -
  11544. - if (lt_split_name_value (arg, &name, &value) != 0)
  11545. - {
  11546. - XFREE (name);
  11547. - XFREE (value);
  11548. - lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  11549. - }
  11550. -
  11551. - lt_setenv (name, value);
  11552. - XFREE (name);
  11553. - XFREE (value);
  11554. -}
  11555. -
  11556. -void
  11557. -lt_opt_process_env_prepend (const char *arg)
  11558. -{
  11559. - char *name = NULL;
  11560. - char *value = NULL;
  11561. - char *new_value = NULL;
  11562. -
  11563. - if (lt_split_name_value (arg, &name, &value) != 0)
  11564. - {
  11565. - XFREE (name);
  11566. - XFREE (value);
  11567. - lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  11568. - }
  11569. -
  11570. - new_value = lt_extend_str (getenv (name), value, 0);
  11571. - lt_setenv (name, new_value);
  11572. - XFREE (new_value);
  11573. - XFREE (name);
  11574. - XFREE (value);
  11575. -}
  11576. -
  11577. -void
  11578. -lt_opt_process_env_append (const char *arg)
  11579. -{
  11580. - char *name = NULL;
  11581. - char *value = NULL;
  11582. - char *new_value = NULL;
  11583. -
  11584. - if (lt_split_name_value (arg, &name, &value) != 0)
  11585. - {
  11586. - XFREE (name);
  11587. - XFREE (value);
  11588. - lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  11589. - }
  11590. -
  11591. - new_value = lt_extend_str (getenv (name), value, 1);
  11592. - lt_setenv (name, new_value);
  11593. - XFREE (new_value);
  11594. - XFREE (name);
  11595. - XFREE (value);
  11596. -}
  11597. -
  11598. void
  11599. lt_update_exe_path (const char *name, const char *value)
  11600. {
  11601. - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  11602. - (name ? name : "<NULL>"),
  11603. - (value ? value : "<NULL>")));
  11604. + lt_debugprintf (__FILE__, __LINE__,
  11605. + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  11606. + nonnull (name), nonnull (value));
  11607. if (name && *name && value && *value)
  11608. {
  11609. @@ -4011,9 +4919,9 @@
  11610. void
  11611. lt_update_lib_path (const char *name, const char *value)
  11612. {
  11613. - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  11614. - (name ? name : "<NULL>"),
  11615. - (value ? value : "<NULL>")));
  11616. + lt_debugprintf (__FILE__, __LINE__,
  11617. + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  11618. + nonnull (name), nonnull (value));
  11619. if (name && *name && value && *value)
  11620. {
  11621. @@ -4023,11 +4931,152 @@
  11622. }
  11623. }
  11624. +EOF
  11625. + case $host_os in
  11626. + mingw*)
  11627. + cat <<"EOF"
  11628. +
  11629. +/* Prepares an argument vector before calling spawn().
  11630. + Note that spawn() does not by itself call the command interpreter
  11631. + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
  11632. + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
  11633. + GetVersionEx(&v);
  11634. + v.dwPlatformId == VER_PLATFORM_WIN32_NT;
  11635. + }) ? "cmd.exe" : "command.com").
  11636. + Instead it simply concatenates the arguments, separated by ' ', and calls
  11637. + CreateProcess(). We must quote the arguments since Win32 CreateProcess()
  11638. + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
  11639. + special way:
  11640. + - Space and tab are interpreted as delimiters. They are not treated as
  11641. + delimiters if they are surrounded by double quotes: "...".
  11642. + - Unescaped double quotes are removed from the input. Their only effect is
  11643. + that within double quotes, space and tab are treated like normal
  11644. + characters.
  11645. + - Backslashes not followed by double quotes are not special.
  11646. + - But 2*n+1 backslashes followed by a double quote become
  11647. + n backslashes followed by a double quote (n >= 0):
  11648. + \" -> "
  11649. + \\\" -> \"
  11650. + \\\\\" -> \\"
  11651. + */
  11652. +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
  11653. +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
  11654. +char **
  11655. +prepare_spawn (char **argv)
  11656. +{
  11657. + size_t argc;
  11658. + char **new_argv;
  11659. + size_t i;
  11660. +
  11661. + /* Count number of arguments. */
  11662. + for (argc = 0; argv[argc] != NULL; argc++)
  11663. + ;
  11664. +
  11665. + /* Allocate new argument vector. */
  11666. + new_argv = XMALLOC (char *, argc + 1);
  11667. +
  11668. + /* Put quoted arguments into the new argument vector. */
  11669. + for (i = 0; i < argc; i++)
  11670. + {
  11671. + const char *string = argv[i];
  11672. +
  11673. + if (string[0] == '\0')
  11674. + new_argv[i] = xstrdup ("\"\"");
  11675. + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
  11676. + {
  11677. + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
  11678. + size_t length;
  11679. + unsigned int backslashes;
  11680. + const char *s;
  11681. + char *quoted_string;
  11682. + char *p;
  11683. +
  11684. + length = 0;
  11685. + backslashes = 0;
  11686. + if (quote_around)
  11687. + length++;
  11688. + for (s = string; *s != '\0'; s++)
  11689. + {
  11690. + char c = *s;
  11691. + if (c == '"')
  11692. + length += backslashes + 1;
  11693. + length++;
  11694. + if (c == '\\')
  11695. + backslashes++;
  11696. + else
  11697. + backslashes = 0;
  11698. + }
  11699. + if (quote_around)
  11700. + length += backslashes + 1;
  11701. +
  11702. + quoted_string = XMALLOC (char, length + 1);
  11703. +
  11704. + p = quoted_string;
  11705. + backslashes = 0;
  11706. + if (quote_around)
  11707. + *p++ = '"';
  11708. + for (s = string; *s != '\0'; s++)
  11709. + {
  11710. + char c = *s;
  11711. + if (c == '"')
  11712. + {
  11713. + unsigned int j;
  11714. + for (j = backslashes + 1; j > 0; j--)
  11715. + *p++ = '\\';
  11716. + }
  11717. + *p++ = c;
  11718. + if (c == '\\')
  11719. + backslashes++;
  11720. + else
  11721. + backslashes = 0;
  11722. + }
  11723. + if (quote_around)
  11724. + {
  11725. + unsigned int j;
  11726. + for (j = backslashes; j > 0; j--)
  11727. + *p++ = '\\';
  11728. + *p++ = '"';
  11729. + }
  11730. + *p = '\0';
  11731. +
  11732. + new_argv[i] = quoted_string;
  11733. + }
  11734. + else
  11735. + new_argv[i] = (char *) string;
  11736. + }
  11737. + new_argv[argc] = NULL;
  11738. +
  11739. + return new_argv;
  11740. +}
  11741. +EOF
  11742. + ;;
  11743. + esac
  11744. +
  11745. + cat <<"EOF"
  11746. +void lt_dump_script (FILE* f)
  11747. +{
  11748. +EOF
  11749. + func_emit_wrapper yes |
  11750. + $SED -e 's/\([\\"]\)/\\\1/g' \
  11751. + -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
  11752. + cat <<"EOF"
  11753. +}
  11754. EOF
  11755. }
  11756. # end: func_emit_cwrapperexe_src
  11757. +# func_win32_import_lib_p ARG
  11758. +# True if ARG is an import lib, as indicated by $file_magic_cmd
  11759. +func_win32_import_lib_p ()
  11760. +{
  11761. + $opt_debug
  11762. + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
  11763. + *import*) : ;;
  11764. + *) false ;;
  11765. + esac
  11766. +}
  11767. +
  11768. # func_mode_link arg...
  11769. func_mode_link ()
  11770. {
  11771. @@ -4072,6 +5121,7 @@
  11772. new_inherited_linker_flags=
  11773. avoid_version=no
  11774. + bindir=
  11775. dlfiles=
  11776. dlprefiles=
  11777. dlself=no
  11778. @@ -4164,6 +5214,11 @@
  11779. esac
  11780. case $prev in
  11781. + bindir)
  11782. + bindir="$arg"
  11783. + prev=
  11784. + continue
  11785. + ;;
  11786. dlfiles|dlprefiles)
  11787. if test "$preload" = no; then
  11788. # Add the symbol object into the linking commands.
  11789. @@ -4195,9 +5250,9 @@
  11790. ;;
  11791. *)
  11792. if test "$prev" = dlfiles; then
  11793. - dlfiles="$dlfiles $arg"
  11794. + func_append dlfiles " $arg"
  11795. else
  11796. - dlprefiles="$dlprefiles $arg"
  11797. + func_append dlprefiles " $arg"
  11798. fi
  11799. prev=
  11800. continue
  11801. @@ -4221,7 +5276,7 @@
  11802. *-*-darwin*)
  11803. case "$deplibs " in
  11804. *" $qarg.ltframework "*) ;;
  11805. - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  11806. + *) func_append deplibs " $qarg.ltframework" # this is fixed later
  11807. ;;
  11808. esac
  11809. ;;
  11810. @@ -4240,7 +5295,7 @@
  11811. moreargs=
  11812. for fil in `cat "$save_arg"`
  11813. do
  11814. -# moreargs="$moreargs $fil"
  11815. +# func_append moreargs " $fil"
  11816. arg=$fil
  11817. # A libtool-controlled object.
  11818. @@ -4269,7 +5324,7 @@
  11819. if test "$prev" = dlfiles; then
  11820. if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  11821. - dlfiles="$dlfiles $pic_object"
  11822. + func_append dlfiles " $pic_object"
  11823. prev=
  11824. continue
  11825. else
  11826. @@ -4281,7 +5336,7 @@
  11827. # CHECK ME: I think I busted this. -Ossama
  11828. if test "$prev" = dlprefiles; then
  11829. # Preload the old-style object.
  11830. - dlprefiles="$dlprefiles $pic_object"
  11831. + func_append dlprefiles " $pic_object"
  11832. prev=
  11833. fi
  11834. @@ -4351,12 +5406,12 @@
  11835. if test "$prev" = rpath; then
  11836. case "$rpath " in
  11837. *" $arg "*) ;;
  11838. - *) rpath="$rpath $arg" ;;
  11839. + *) func_append rpath " $arg" ;;
  11840. esac
  11841. else
  11842. case "$xrpath " in
  11843. *" $arg "*) ;;
  11844. - *) xrpath="$xrpath $arg" ;;
  11845. + *) func_append xrpath " $arg" ;;
  11846. esac
  11847. fi
  11848. prev=
  11849. @@ -4368,28 +5423,28 @@
  11850. continue
  11851. ;;
  11852. weak)
  11853. - weak_libs="$weak_libs $arg"
  11854. + func_append weak_libs " $arg"
  11855. prev=
  11856. continue
  11857. ;;
  11858. xcclinker)
  11859. - linker_flags="$linker_flags $qarg"
  11860. - compiler_flags="$compiler_flags $qarg"
  11861. + func_append linker_flags " $qarg"
  11862. + func_append compiler_flags " $qarg"
  11863. prev=
  11864. func_append compile_command " $qarg"
  11865. func_append finalize_command " $qarg"
  11866. continue
  11867. ;;
  11868. xcompiler)
  11869. - compiler_flags="$compiler_flags $qarg"
  11870. + func_append compiler_flags " $qarg"
  11871. prev=
  11872. func_append compile_command " $qarg"
  11873. func_append finalize_command " $qarg"
  11874. continue
  11875. ;;
  11876. xlinker)
  11877. - linker_flags="$linker_flags $qarg"
  11878. - compiler_flags="$compiler_flags $wl$qarg"
  11879. + func_append linker_flags " $qarg"
  11880. + func_append compiler_flags " $wl$qarg"
  11881. prev=
  11882. func_append compile_command " $wl$qarg"
  11883. func_append finalize_command " $wl$qarg"
  11884. @@ -4425,6 +5480,11 @@
  11885. continue
  11886. ;;
  11887. + -bindir)
  11888. + prev=bindir
  11889. + continue
  11890. + ;;
  11891. +
  11892. -dlopen)
  11893. prev=dlfiles
  11894. continue
  11895. @@ -4475,15 +5535,16 @@
  11896. ;;
  11897. -L*)
  11898. - func_stripname '-L' '' "$arg"
  11899. - dir=$func_stripname_result
  11900. - if test -z "$dir"; then
  11901. + func_stripname "-L" '' "$arg"
  11902. + if test -z "$func_stripname_result"; then
  11903. if test "$#" -gt 0; then
  11904. func_fatal_error "require no space between \`-L' and \`$1'"
  11905. else
  11906. func_fatal_error "need path for \`-L' option"
  11907. fi
  11908. fi
  11909. + func_resolve_sysroot "$func_stripname_result"
  11910. + dir=$func_resolve_sysroot_result
  11911. # We need an absolute path.
  11912. case $dir in
  11913. [\\/]* | [A-Za-z]:[\\/]*) ;;
  11914. @@ -4495,24 +5556,30 @@
  11915. ;;
  11916. esac
  11917. case "$deplibs " in
  11918. - *" -L$dir "*) ;;
  11919. + *" -L$dir "* | *" $arg "*)
  11920. + # Will only happen for absolute or sysroot arguments
  11921. + ;;
  11922. *)
  11923. - deplibs="$deplibs -L$dir"
  11924. - lib_search_path="$lib_search_path $dir"
  11925. + # Preserve sysroot, but never include relative directories
  11926. + case $dir in
  11927. + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
  11928. + *) func_append deplibs " -L$dir" ;;
  11929. + esac
  11930. + func_append lib_search_path " $dir"
  11931. ;;
  11932. esac
  11933. case $host in
  11934. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  11935. - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  11936. + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
  11937. case :$dllsearchpath: in
  11938. *":$dir:"*) ;;
  11939. ::) dllsearchpath=$dir;;
  11940. - *) dllsearchpath="$dllsearchpath:$dir";;
  11941. + *) func_append dllsearchpath ":$dir";;
  11942. esac
  11943. case :$dllsearchpath: in
  11944. *":$testbindir:"*) ;;
  11945. ::) dllsearchpath=$testbindir;;
  11946. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  11947. + *) func_append dllsearchpath ":$testbindir";;
  11948. esac
  11949. ;;
  11950. esac
  11951. @@ -4522,7 +5589,7 @@
  11952. -l*)
  11953. if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  11954. case $host in
  11955. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  11956. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
  11957. # These systems don't actually have a C or math library (as such)
  11958. continue
  11959. ;;
  11960. @@ -4536,7 +5603,7 @@
  11961. ;;
  11962. *-*-rhapsody* | *-*-darwin1.[012])
  11963. # Rhapsody C and math libraries are in the System framework
  11964. - deplibs="$deplibs System.ltframework"
  11965. + func_append deplibs " System.ltframework"
  11966. continue
  11967. ;;
  11968. *-*-sco3.2v5* | *-*-sco5v6*)
  11969. @@ -4556,7 +5623,7 @@
  11970. ;;
  11971. esac
  11972. fi
  11973. - deplibs="$deplibs $arg"
  11974. + func_append deplibs " $arg"
  11975. continue
  11976. ;;
  11977. @@ -4568,8 +5635,8 @@
  11978. # Tru64 UNIX uses -model [arg] to determine the layout of C++
  11979. # classes, name mangling, and exception handling.
  11980. # Darwin uses the -arch flag to determine output architecture.
  11981. - -model|-arch|-isysroot)
  11982. - compiler_flags="$compiler_flags $arg"
  11983. + -model|-arch|-isysroot|--sysroot)
  11984. + func_append compiler_flags " $arg"
  11985. func_append compile_command " $arg"
  11986. func_append finalize_command " $arg"
  11987. prev=xcompiler
  11988. @@ -4577,12 +5644,12 @@
  11989. ;;
  11990. -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  11991. - compiler_flags="$compiler_flags $arg"
  11992. + func_append compiler_flags " $arg"
  11993. func_append compile_command " $arg"
  11994. func_append finalize_command " $arg"
  11995. case "$new_inherited_linker_flags " in
  11996. *" $arg "*) ;;
  11997. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  11998. + * ) func_append new_inherited_linker_flags " $arg" ;;
  11999. esac
  12000. continue
  12001. ;;
  12002. @@ -4649,13 +5716,17 @@
  12003. # We need an absolute path.
  12004. case $dir in
  12005. [\\/]* | [A-Za-z]:[\\/]*) ;;
  12006. + =*)
  12007. + func_stripname '=' '' "$dir"
  12008. + dir=$lt_sysroot$func_stripname_result
  12009. + ;;
  12010. *)
  12011. func_fatal_error "only absolute run-paths are allowed"
  12012. ;;
  12013. esac
  12014. case "$xrpath " in
  12015. *" $dir "*) ;;
  12016. - *) xrpath="$xrpath $dir" ;;
  12017. + *) func_append xrpath " $dir" ;;
  12018. esac
  12019. continue
  12020. ;;
  12021. @@ -4708,8 +5779,8 @@
  12022. for flag in $args; do
  12023. IFS="$save_ifs"
  12024. func_quote_for_eval "$flag"
  12025. - arg="$arg $wl$func_quote_for_eval_result"
  12026. - compiler_flags="$compiler_flags $func_quote_for_eval_result"
  12027. + func_append arg " $func_quote_for_eval_result"
  12028. + func_append compiler_flags " $func_quote_for_eval_result"
  12029. done
  12030. IFS="$save_ifs"
  12031. func_stripname ' ' '' "$arg"
  12032. @@ -4724,9 +5795,9 @@
  12033. for flag in $args; do
  12034. IFS="$save_ifs"
  12035. func_quote_for_eval "$flag"
  12036. - arg="$arg $wl$func_quote_for_eval_result"
  12037. - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  12038. - linker_flags="$linker_flags $func_quote_for_eval_result"
  12039. + func_append arg " $wl$func_quote_for_eval_result"
  12040. + func_append compiler_flags " $wl$func_quote_for_eval_result"
  12041. + func_append linker_flags " $func_quote_for_eval_result"
  12042. done
  12043. IFS="$save_ifs"
  12044. func_stripname ' ' '' "$arg"
  12045. @@ -4754,23 +5825,27 @@
  12046. arg="$func_quote_for_eval_result"
  12047. ;;
  12048. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  12049. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  12050. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  12051. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  12052. - # -q* pass through compiler args for the IBM compiler
  12053. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  12054. - # compiler args for GCC
  12055. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  12056. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  12057. - # @file GCC response files
  12058. + # Flags to be passed through unchanged, with rationale:
  12059. + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
  12060. + # -r[0-9][0-9]* specify processor for the SGI compiler
  12061. + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
  12062. + # +DA*, +DD* enable 64-bit mode for the HP compiler
  12063. + # -q* compiler args for the IBM compiler
  12064. + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
  12065. + # -F/path path to uninstalled frameworks, gcc on darwin
  12066. + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
  12067. + # @file GCC response files
  12068. + # -tp=* Portland pgcc target processor selection
  12069. + # --sysroot=* for sysroot support
  12070. + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
  12071. -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  12072. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  12073. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
  12074. + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
  12075. func_quote_for_eval "$arg"
  12076. arg="$func_quote_for_eval_result"
  12077. func_append compile_command " $arg"
  12078. func_append finalize_command " $arg"
  12079. - compiler_flags="$compiler_flags $arg"
  12080. + func_append compiler_flags " $arg"
  12081. continue
  12082. ;;
  12083. @@ -4782,7 +5857,7 @@
  12084. *.$objext)
  12085. # A standard object.
  12086. - objs="$objs $arg"
  12087. + func_append objs " $arg"
  12088. ;;
  12089. *.lo)
  12090. @@ -4813,7 +5888,7 @@
  12091. if test "$prev" = dlfiles; then
  12092. if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  12093. - dlfiles="$dlfiles $pic_object"
  12094. + func_append dlfiles " $pic_object"
  12095. prev=
  12096. continue
  12097. else
  12098. @@ -4825,7 +5900,7 @@
  12099. # CHECK ME: I think I busted this. -Ossama
  12100. if test "$prev" = dlprefiles; then
  12101. # Preload the old-style object.
  12102. - dlprefiles="$dlprefiles $pic_object"
  12103. + func_append dlprefiles " $pic_object"
  12104. prev=
  12105. fi
  12106. @@ -4870,24 +5945,25 @@
  12107. *.$libext)
  12108. # An archive.
  12109. - deplibs="$deplibs $arg"
  12110. - old_deplibs="$old_deplibs $arg"
  12111. + func_append deplibs " $arg"
  12112. + func_append old_deplibs " $arg"
  12113. continue
  12114. ;;
  12115. *.la)
  12116. # A libtool-controlled library.
  12117. + func_resolve_sysroot "$arg"
  12118. if test "$prev" = dlfiles; then
  12119. # This library was specified with -dlopen.
  12120. - dlfiles="$dlfiles $arg"
  12121. + func_append dlfiles " $func_resolve_sysroot_result"
  12122. prev=
  12123. elif test "$prev" = dlprefiles; then
  12124. # The library was specified with -dlpreopen.
  12125. - dlprefiles="$dlprefiles $arg"
  12126. + func_append dlprefiles " $func_resolve_sysroot_result"
  12127. prev=
  12128. else
  12129. - deplibs="$deplibs $arg"
  12130. + func_append deplibs " $func_resolve_sysroot_result"
  12131. fi
  12132. continue
  12133. ;;
  12134. @@ -4925,7 +6001,7 @@
  12135. if test -n "$shlibpath_var"; then
  12136. # get the directories listed in $shlibpath_var
  12137. - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  12138. + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
  12139. else
  12140. shlib_search_path=
  12141. fi
  12142. @@ -4934,6 +6010,8 @@
  12143. func_dirname "$output" "/" ""
  12144. output_objdir="$func_dirname_result$objdir"
  12145. + func_to_tool_file "$output_objdir/"
  12146. + tool_output_objdir=$func_to_tool_file_result
  12147. # Create the object directory.
  12148. func_mkdir_p "$output_objdir"
  12149. @@ -4954,12 +6032,12 @@
  12150. # Find all interdependent deplibs by searching for libraries
  12151. # that are linked more than once (e.g. -la -lb -la)
  12152. for deplib in $deplibs; do
  12153. - if $opt_duplicate_deps ; then
  12154. + if $opt_preserve_dup_deps ; then
  12155. case "$libs " in
  12156. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12157. + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
  12158. esac
  12159. fi
  12160. - libs="$libs $deplib"
  12161. + func_append libs " $deplib"
  12162. done
  12163. if test "$linkmode" = lib; then
  12164. @@ -4972,9 +6050,9 @@
  12165. if $opt_duplicate_compiler_generated_deps; then
  12166. for pre_post_dep in $predeps $postdeps; do
  12167. case "$pre_post_deps " in
  12168. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  12169. + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
  12170. esac
  12171. - pre_post_deps="$pre_post_deps $pre_post_dep"
  12172. + func_append pre_post_deps " $pre_post_dep"
  12173. done
  12174. fi
  12175. pre_post_deps=
  12176. @@ -5033,10 +6111,7 @@
  12177. case $pass in
  12178. dlopen) libs="$dlfiles" ;;
  12179. dlpreopen) libs="$dlprefiles" ;;
  12180. - link)
  12181. - libs="$deplibs %DEPLIBS%"
  12182. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  12183. - ;;
  12184. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  12185. esac
  12186. fi
  12187. if test "$linkmode,$pass" = "lib,dlpreopen"; then
  12188. @@ -5044,17 +6119,19 @@
  12189. for lib in $dlprefiles; do
  12190. # Ignore non-libtool-libs
  12191. dependency_libs=
  12192. + func_resolve_sysroot "$lib"
  12193. case $lib in
  12194. - *.la) func_source "$lib" ;;
  12195. + *.la) func_source "$func_resolve_sysroot_result" ;;
  12196. esac
  12197. # Collect preopened libtool deplibs, except any this library
  12198. # has declared as weak libs
  12199. for deplib in $dependency_libs; do
  12200. - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  12201. + func_basename "$deplib"
  12202. + deplib_base=$func_basename_result
  12203. case " $weak_libs " in
  12204. *" $deplib_base "*) ;;
  12205. - *) deplibs="$deplibs $deplib" ;;
  12206. + *) func_append deplibs " $deplib" ;;
  12207. esac
  12208. done
  12209. done
  12210. @@ -5075,11 +6152,11 @@
  12211. compile_deplibs="$deplib $compile_deplibs"
  12212. finalize_deplibs="$deplib $finalize_deplibs"
  12213. else
  12214. - compiler_flags="$compiler_flags $deplib"
  12215. + func_append compiler_flags " $deplib"
  12216. if test "$linkmode" = lib ; then
  12217. case "$new_inherited_linker_flags " in
  12218. *" $deplib "*) ;;
  12219. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  12220. + * ) func_append new_inherited_linker_flags " $deplib" ;;
  12221. esac
  12222. fi
  12223. fi
  12224. @@ -5164,7 +6241,7 @@
  12225. if test "$linkmode" = lib ; then
  12226. case "$new_inherited_linker_flags " in
  12227. *" $deplib "*) ;;
  12228. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  12229. + * ) func_append new_inherited_linker_flags " $deplib" ;;
  12230. esac
  12231. fi
  12232. fi
  12233. @@ -5177,7 +6254,8 @@
  12234. test "$pass" = conv && continue
  12235. newdependency_libs="$deplib $newdependency_libs"
  12236. func_stripname '-L' '' "$deplib"
  12237. - newlib_search_path="$newlib_search_path $func_stripname_result"
  12238. + func_resolve_sysroot "$func_stripname_result"
  12239. + func_append newlib_search_path " $func_resolve_sysroot_result"
  12240. ;;
  12241. prog)
  12242. if test "$pass" = conv; then
  12243. @@ -5191,7 +6269,8 @@
  12244. finalize_deplibs="$deplib $finalize_deplibs"
  12245. fi
  12246. func_stripname '-L' '' "$deplib"
  12247. - newlib_search_path="$newlib_search_path $func_stripname_result"
  12248. + func_resolve_sysroot "$func_stripname_result"
  12249. + func_append newlib_search_path " $func_resolve_sysroot_result"
  12250. ;;
  12251. *)
  12252. func_warning "\`-L' is ignored for archives/objects"
  12253. @@ -5202,17 +6281,21 @@
  12254. -R*)
  12255. if test "$pass" = link; then
  12256. func_stripname '-R' '' "$deplib"
  12257. - dir=$func_stripname_result
  12258. + func_resolve_sysroot "$func_stripname_result"
  12259. + dir=$func_resolve_sysroot_result
  12260. # Make sure the xrpath contains only unique directories.
  12261. case "$xrpath " in
  12262. *" $dir "*) ;;
  12263. - *) xrpath="$xrpath $dir" ;;
  12264. + *) func_append xrpath " $dir" ;;
  12265. esac
  12266. fi
  12267. deplibs="$deplib $deplibs"
  12268. continue
  12269. ;;
  12270. - *.la) lib="$deplib" ;;
  12271. + *.la)
  12272. + func_resolve_sysroot "$deplib"
  12273. + lib=$func_resolve_sysroot_result
  12274. + ;;
  12275. *.$libext)
  12276. if test "$pass" = conv; then
  12277. deplibs="$deplib $deplibs"
  12278. @@ -5230,7 +6313,7 @@
  12279. match_pattern*)
  12280. set dummy $deplibs_check_method; shift
  12281. match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  12282. - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  12283. + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
  12284. | $EGREP "$match_pattern_regex" > /dev/null; then
  12285. valid_a_lib=yes
  12286. fi
  12287. @@ -5240,15 +6323,15 @@
  12288. ;;
  12289. esac
  12290. if test "$valid_a_lib" != yes; then
  12291. - $ECHO
  12292. + echo
  12293. $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  12294. - $ECHO "*** I have the capability to make that library automatically link in when"
  12295. - $ECHO "*** you link to this library. But I can only do this if you have a"
  12296. - $ECHO "*** shared version of the library, which you do not appear to have"
  12297. - $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  12298. - $ECHO "*** that it is just a static archive that I should not use here."
  12299. + echo "*** I have the capability to make that library automatically link in when"
  12300. + echo "*** you link to this library. But I can only do this if you have a"
  12301. + echo "*** shared version of the library, which you do not appear to have"
  12302. + echo "*** because the file extensions .$libext of this argument makes me believe"
  12303. + echo "*** that it is just a static archive that I should not use here."
  12304. else
  12305. - $ECHO
  12306. + echo
  12307. $ECHO "*** Warning: Linking the shared library $output against the"
  12308. $ECHO "*** static library $deplib is not portable!"
  12309. deplibs="$deplib $deplibs"
  12310. @@ -5275,11 +6358,11 @@
  12311. if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  12312. # If there is no dlopen support or we're linking statically,
  12313. # we need to preload.
  12314. - newdlprefiles="$newdlprefiles $deplib"
  12315. + func_append newdlprefiles " $deplib"
  12316. compile_deplibs="$deplib $compile_deplibs"
  12317. finalize_deplibs="$deplib $finalize_deplibs"
  12318. else
  12319. - newdlfiles="$newdlfiles $deplib"
  12320. + func_append newdlfiles " $deplib"
  12321. fi
  12322. fi
  12323. continue
  12324. @@ -5321,20 +6404,20 @@
  12325. # Convert "-framework foo" to "foo.ltframework"
  12326. if test -n "$inherited_linker_flags"; then
  12327. - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  12328. + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
  12329. for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  12330. case " $new_inherited_linker_flags " in
  12331. *" $tmp_inherited_linker_flag "*) ;;
  12332. - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  12333. + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
  12334. esac
  12335. done
  12336. fi
  12337. - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  12338. + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  12339. if test "$linkmode,$pass" = "lib,link" ||
  12340. test "$linkmode,$pass" = "prog,scan" ||
  12341. { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  12342. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  12343. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  12344. + test -n "$dlopen" && func_append dlfiles " $dlopen"
  12345. + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
  12346. fi
  12347. if test "$pass" = conv; then
  12348. @@ -5345,30 +6428,36 @@
  12349. func_fatal_error "cannot find name of link library for \`$lib'"
  12350. fi
  12351. # It is a libtool convenience library, so add in its objects.
  12352. - convenience="$convenience $ladir/$objdir/$old_library"
  12353. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  12354. - tmp_libs=
  12355. - for deplib in $dependency_libs; do
  12356. - deplibs="$deplib $deplibs"
  12357. - if $opt_duplicate_deps ; then
  12358. - case "$tmp_libs " in
  12359. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12360. - esac
  12361. - fi
  12362. - tmp_libs="$tmp_libs $deplib"
  12363. - done
  12364. + func_append convenience " $ladir/$objdir/$old_library"
  12365. + func_append old_convenience " $ladir/$objdir/$old_library"
  12366. elif test "$linkmode" != prog && test "$linkmode" != lib; then
  12367. func_fatal_error "\`$lib' is not a convenience library"
  12368. fi
  12369. + tmp_libs=
  12370. + for deplib in $dependency_libs; do
  12371. + deplibs="$deplib $deplibs"
  12372. + if $opt_preserve_dup_deps ; then
  12373. + case "$tmp_libs " in
  12374. + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
  12375. + esac
  12376. + fi
  12377. + func_append tmp_libs " $deplib"
  12378. + done
  12379. continue
  12380. fi # $pass = conv
  12381. # Get the name of the library we link against.
  12382. linklib=
  12383. - for l in $old_library $library_names; do
  12384. - linklib="$l"
  12385. - done
  12386. + if test -n "$old_library" &&
  12387. + { test "$prefer_static_libs" = yes ||
  12388. + test "$prefer_static_libs,$installed" = "built,no"; }; then
  12389. + linklib=$old_library
  12390. + else
  12391. + for l in $old_library $library_names; do
  12392. + linklib="$l"
  12393. + done
  12394. + fi
  12395. if test -z "$linklib"; then
  12396. func_fatal_error "cannot find name of link library for \`$lib'"
  12397. fi
  12398. @@ -5385,9 +6474,9 @@
  12399. # statically, we need to preload. We also need to preload any
  12400. # dependent libraries so libltdl's deplib preloader doesn't
  12401. # bomb out in the load deplibs phase.
  12402. - dlprefiles="$dlprefiles $lib $dependency_libs"
  12403. + func_append dlprefiles " $lib $dependency_libs"
  12404. else
  12405. - newdlfiles="$newdlfiles $lib"
  12406. + func_append newdlfiles " $lib"
  12407. fi
  12408. continue
  12409. fi # $pass = dlopen
  12410. @@ -5409,14 +6498,14 @@
  12411. # Find the relevant object directory and library name.
  12412. if test "X$installed" = Xyes; then
  12413. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  12414. + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  12415. func_warning "library \`$lib' was moved."
  12416. dir="$ladir"
  12417. absdir="$abs_ladir"
  12418. libdir="$abs_ladir"
  12419. else
  12420. - dir="$libdir"
  12421. - absdir="$libdir"
  12422. + dir="$lt_sysroot$libdir"
  12423. + absdir="$lt_sysroot$libdir"
  12424. fi
  12425. test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  12426. else
  12427. @@ -5424,12 +6513,12 @@
  12428. dir="$ladir"
  12429. absdir="$abs_ladir"
  12430. # Remove this search path later
  12431. - notinst_path="$notinst_path $abs_ladir"
  12432. + func_append notinst_path " $abs_ladir"
  12433. else
  12434. dir="$ladir/$objdir"
  12435. absdir="$abs_ladir/$objdir"
  12436. # Remove this search path later
  12437. - notinst_path="$notinst_path $abs_ladir"
  12438. + func_append notinst_path " $abs_ladir"
  12439. fi
  12440. fi # $installed = yes
  12441. func_stripname 'lib' '.la' "$laname"
  12442. @@ -5440,20 +6529,46 @@
  12443. if test -z "$libdir" && test "$linkmode" = prog; then
  12444. func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  12445. fi
  12446. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  12447. - # are required to link).
  12448. - if test -n "$old_library"; then
  12449. - newdlprefiles="$newdlprefiles $dir/$old_library"
  12450. - # Keep a list of preopened convenience libraries to check
  12451. - # that they are being used correctly in the link pass.
  12452. - test -z "$libdir" && \
  12453. - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  12454. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  12455. - elif test -n "$dlname"; then
  12456. - newdlprefiles="$newdlprefiles $dir/$dlname"
  12457. - else
  12458. - newdlprefiles="$newdlprefiles $dir/$linklib"
  12459. - fi
  12460. + case "$host" in
  12461. + # special handling for platforms with PE-DLLs.
  12462. + *cygwin* | *mingw* | *cegcc* )
  12463. + # Linker will automatically link against shared library if both
  12464. + # static and shared are present. Therefore, ensure we extract
  12465. + # symbols from the import library if a shared library is present
  12466. + # (otherwise, the dlopen module name will be incorrect). We do
  12467. + # this by putting the import library name into $newdlprefiles.
  12468. + # We recover the dlopen module name by 'saving' the la file
  12469. + # name in a special purpose variable, and (later) extracting the
  12470. + # dlname from the la file.
  12471. + if test -n "$dlname"; then
  12472. + func_tr_sh "$dir/$linklib"
  12473. + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
  12474. + func_append newdlprefiles " $dir/$linklib"
  12475. + else
  12476. + func_append newdlprefiles " $dir/$old_library"
  12477. + # Keep a list of preopened convenience libraries to check
  12478. + # that they are being used correctly in the link pass.
  12479. + test -z "$libdir" && \
  12480. + func_append dlpreconveniencelibs " $dir/$old_library"
  12481. + fi
  12482. + ;;
  12483. + * )
  12484. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  12485. + # are required to link).
  12486. + if test -n "$old_library"; then
  12487. + func_append newdlprefiles " $dir/$old_library"
  12488. + # Keep a list of preopened convenience libraries to check
  12489. + # that they are being used correctly in the link pass.
  12490. + test -z "$libdir" && \
  12491. + func_append dlpreconveniencelibs " $dir/$old_library"
  12492. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  12493. + elif test -n "$dlname"; then
  12494. + func_append newdlprefiles " $dir/$dlname"
  12495. + else
  12496. + func_append newdlprefiles " $dir/$linklib"
  12497. + fi
  12498. + ;;
  12499. + esac
  12500. fi # $pass = dlpreopen
  12501. if test -z "$libdir"; then
  12502. @@ -5471,7 +6586,7 @@
  12503. if test "$linkmode" = prog && test "$pass" != link; then
  12504. - newlib_search_path="$newlib_search_path $ladir"
  12505. + func_append newlib_search_path " $ladir"
  12506. deplibs="$lib $deplibs"
  12507. linkalldeplibs=no
  12508. @@ -5484,7 +6599,8 @@
  12509. for deplib in $dependency_libs; do
  12510. case $deplib in
  12511. -L*) func_stripname '-L' '' "$deplib"
  12512. - newlib_search_path="$newlib_search_path $func_stripname_result"
  12513. + func_resolve_sysroot "$func_stripname_result"
  12514. + func_append newlib_search_path " $func_resolve_sysroot_result"
  12515. ;;
  12516. esac
  12517. # Need to link against all dependency_libs?
  12518. @@ -5495,12 +6611,12 @@
  12519. # or/and link against static libraries
  12520. newdependency_libs="$deplib $newdependency_libs"
  12521. fi
  12522. - if $opt_duplicate_deps ; then
  12523. + if $opt_preserve_dup_deps ; then
  12524. case "$tmp_libs " in
  12525. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12526. + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
  12527. esac
  12528. fi
  12529. - tmp_libs="$tmp_libs $deplib"
  12530. + func_append tmp_libs " $deplib"
  12531. done # for deplib
  12532. continue
  12533. fi # $linkmode = prog...
  12534. @@ -5515,7 +6631,7 @@
  12535. # Make sure the rpath contains only unique directories.
  12536. case "$temp_rpath:" in
  12537. *"$absdir:"*) ;;
  12538. - *) temp_rpath="$temp_rpath$absdir:" ;;
  12539. + *) func_append temp_rpath "$absdir:" ;;
  12540. esac
  12541. fi
  12542. @@ -5527,7 +6643,7 @@
  12543. *)
  12544. case "$compile_rpath " in
  12545. *" $absdir "*) ;;
  12546. - *) compile_rpath="$compile_rpath $absdir"
  12547. + *) func_append compile_rpath " $absdir" ;;
  12548. esac
  12549. ;;
  12550. esac
  12551. @@ -5536,7 +6652,7 @@
  12552. *)
  12553. case "$finalize_rpath " in
  12554. *" $libdir "*) ;;
  12555. - *) finalize_rpath="$finalize_rpath $libdir"
  12556. + *) func_append finalize_rpath " $libdir" ;;
  12557. esac
  12558. ;;
  12559. esac
  12560. @@ -5561,12 +6677,12 @@
  12561. case $host in
  12562. *cygwin* | *mingw* | *cegcc*)
  12563. # No point in relinking DLLs because paths are not encoded
  12564. - notinst_deplibs="$notinst_deplibs $lib"
  12565. + func_append notinst_deplibs " $lib"
  12566. need_relink=no
  12567. ;;
  12568. *)
  12569. if test "$installed" = no; then
  12570. - notinst_deplibs="$notinst_deplibs $lib"
  12571. + func_append notinst_deplibs " $lib"
  12572. need_relink=yes
  12573. fi
  12574. ;;
  12575. @@ -5583,7 +6699,7 @@
  12576. fi
  12577. done
  12578. if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  12579. - $ECHO
  12580. + echo
  12581. if test "$linkmode" = prog; then
  12582. $ECHO "*** Warning: Linking the executable $output against the loadable module"
  12583. else
  12584. @@ -5601,7 +6717,7 @@
  12585. *)
  12586. case "$compile_rpath " in
  12587. *" $absdir "*) ;;
  12588. - *) compile_rpath="$compile_rpath $absdir"
  12589. + *) func_append compile_rpath " $absdir" ;;
  12590. esac
  12591. ;;
  12592. esac
  12593. @@ -5610,7 +6726,7 @@
  12594. *)
  12595. case "$finalize_rpath " in
  12596. *" $libdir "*) ;;
  12597. - *) finalize_rpath="$finalize_rpath $libdir"
  12598. + *) func_append finalize_rpath " $libdir" ;;
  12599. esac
  12600. ;;
  12601. esac
  12602. @@ -5664,7 +6780,7 @@
  12603. linklib=$newlib
  12604. fi # test -n "$old_archive_from_expsyms_cmds"
  12605. - if test "$linkmode" = prog || test "$mode" != relink; then
  12606. + if test "$linkmode" = prog || test "$opt_mode" != relink; then
  12607. add_shlibpath=
  12608. add_dir=
  12609. add=
  12610. @@ -5686,9 +6802,9 @@
  12611. if test "X$dlopenmodule" != "X$lib"; then
  12612. $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  12613. if test -z "$old_library" ; then
  12614. - $ECHO
  12615. - $ECHO "*** And there doesn't seem to be a static archive available"
  12616. - $ECHO "*** The link will probably fail, sorry"
  12617. + echo
  12618. + echo "*** And there doesn't seem to be a static archive available"
  12619. + echo "*** The link will probably fail, sorry"
  12620. else
  12621. add="$dir/$old_library"
  12622. fi
  12623. @@ -5720,7 +6836,7 @@
  12624. if test -n "$inst_prefix_dir"; then
  12625. case $libdir in
  12626. [\\/]*)
  12627. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  12628. + func_append add_dir " -L$inst_prefix_dir$libdir"
  12629. ;;
  12630. esac
  12631. fi
  12632. @@ -5742,7 +6858,7 @@
  12633. if test -n "$add_shlibpath"; then
  12634. case :$compile_shlibpath: in
  12635. *":$add_shlibpath:"*) ;;
  12636. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  12637. + *) func_append compile_shlibpath "$add_shlibpath:" ;;
  12638. esac
  12639. fi
  12640. if test "$linkmode" = prog; then
  12641. @@ -5756,13 +6872,13 @@
  12642. test "$hardcode_shlibpath_var" = yes; then
  12643. case :$finalize_shlibpath: in
  12644. *":$libdir:"*) ;;
  12645. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  12646. + *) func_append finalize_shlibpath "$libdir:" ;;
  12647. esac
  12648. fi
  12649. fi
  12650. fi
  12651. - if test "$linkmode" = prog || test "$mode" = relink; then
  12652. + if test "$linkmode" = prog || test "$opt_mode" = relink; then
  12653. add_shlibpath=
  12654. add_dir=
  12655. add=
  12656. @@ -5776,7 +6892,7 @@
  12657. elif test "$hardcode_shlibpath_var" = yes; then
  12658. case :$finalize_shlibpath: in
  12659. *":$libdir:"*) ;;
  12660. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  12661. + *) func_append finalize_shlibpath "$libdir:" ;;
  12662. esac
  12663. add="-l$name"
  12664. elif test "$hardcode_automatic" = yes; then
  12665. @@ -5793,7 +6909,7 @@
  12666. if test -n "$inst_prefix_dir"; then
  12667. case $libdir in
  12668. [\\/]*)
  12669. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  12670. + func_append add_dir " -L$inst_prefix_dir$libdir"
  12671. ;;
  12672. esac
  12673. fi
  12674. @@ -5828,21 +6944,21 @@
  12675. # Just print a warning and add the library to dependency_libs so
  12676. # that the program can be linked against the static library.
  12677. - $ECHO
  12678. + echo
  12679. $ECHO "*** Warning: This system can not link to static lib archive $lib."
  12680. - $ECHO "*** I have the capability to make that library automatically link in when"
  12681. - $ECHO "*** you link to this library. But I can only do this if you have a"
  12682. - $ECHO "*** shared version of the library, which you do not appear to have."
  12683. + echo "*** I have the capability to make that library automatically link in when"
  12684. + echo "*** you link to this library. But I can only do this if you have a"
  12685. + echo "*** shared version of the library, which you do not appear to have."
  12686. if test "$module" = yes; then
  12687. - $ECHO "*** But as you try to build a module library, libtool will still create "
  12688. - $ECHO "*** a static module, that should work as long as the dlopening application"
  12689. - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  12690. + echo "*** But as you try to build a module library, libtool will still create "
  12691. + echo "*** a static module, that should work as long as the dlopening application"
  12692. + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  12693. if test -z "$global_symbol_pipe"; then
  12694. - $ECHO
  12695. - $ECHO "*** However, this would only work if libtool was able to extract symbol"
  12696. - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  12697. - $ECHO "*** not find such a program. So, this module is probably useless."
  12698. - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  12699. + echo
  12700. + echo "*** However, this would only work if libtool was able to extract symbol"
  12701. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  12702. + echo "*** not find such a program. So, this module is probably useless."
  12703. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  12704. fi
  12705. if test "$build_old_libs" = no; then
  12706. build_libtool_libs=module
  12707. @@ -5870,27 +6986,33 @@
  12708. temp_xrpath=$func_stripname_result
  12709. case " $xrpath " in
  12710. *" $temp_xrpath "*) ;;
  12711. - *) xrpath="$xrpath $temp_xrpath";;
  12712. + *) func_append xrpath " $temp_xrpath";;
  12713. esac;;
  12714. - *) temp_deplibs="$temp_deplibs $libdir";;
  12715. + *) func_append temp_deplibs " $libdir";;
  12716. esac
  12717. done
  12718. dependency_libs="$temp_deplibs"
  12719. fi
  12720. - newlib_search_path="$newlib_search_path $absdir"
  12721. + func_append newlib_search_path " $absdir"
  12722. # Link against this library
  12723. test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  12724. # ... and its dependency_libs
  12725. tmp_libs=
  12726. for deplib in $dependency_libs; do
  12727. newdependency_libs="$deplib $newdependency_libs"
  12728. - if $opt_duplicate_deps ; then
  12729. + case $deplib in
  12730. + -L*) func_stripname '-L' '' "$deplib"
  12731. + func_resolve_sysroot "$func_stripname_result";;
  12732. + *) func_resolve_sysroot "$deplib" ;;
  12733. + esac
  12734. + if $opt_preserve_dup_deps ; then
  12735. case "$tmp_libs " in
  12736. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12737. + *" $func_resolve_sysroot_result "*)
  12738. + func_append specialdeplibs " $func_resolve_sysroot_result" ;;
  12739. esac
  12740. fi
  12741. - tmp_libs="$tmp_libs $deplib"
  12742. + func_append tmp_libs " $func_resolve_sysroot_result"
  12743. done
  12744. if test "$link_all_deplibs" != no; then
  12745. @@ -5900,8 +7022,10 @@
  12746. case $deplib in
  12747. -L*) path="$deplib" ;;
  12748. *.la)
  12749. + func_resolve_sysroot "$deplib"
  12750. + deplib=$func_resolve_sysroot_result
  12751. func_dirname "$deplib" "" "."
  12752. - dir="$func_dirname_result"
  12753. + dir=$func_dirname_result
  12754. # We need an absolute path.
  12755. case $dir in
  12756. [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  12757. @@ -5928,8 +7052,8 @@
  12758. if test -z "$darwin_install_name"; then
  12759. darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  12760. fi
  12761. - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  12762. - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  12763. + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  12764. + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
  12765. path=
  12766. fi
  12767. fi
  12768. @@ -5962,7 +7086,7 @@
  12769. compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  12770. finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  12771. else
  12772. - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  12773. + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  12774. fi
  12775. fi
  12776. dependency_libs="$newdependency_libs"
  12777. @@ -5979,7 +7103,7 @@
  12778. for dir in $newlib_search_path; do
  12779. case "$lib_search_path " in
  12780. *" $dir "*) ;;
  12781. - *) lib_search_path="$lib_search_path $dir" ;;
  12782. + *) func_append lib_search_path " $dir" ;;
  12783. esac
  12784. done
  12785. newlib_search_path=
  12786. @@ -6037,10 +7161,10 @@
  12787. -L*)
  12788. case " $tmp_libs " in
  12789. *" $deplib "*) ;;
  12790. - *) tmp_libs="$tmp_libs $deplib" ;;
  12791. + *) func_append tmp_libs " $deplib" ;;
  12792. esac
  12793. ;;
  12794. - *) tmp_libs="$tmp_libs $deplib" ;;
  12795. + *) func_append tmp_libs " $deplib" ;;
  12796. esac
  12797. done
  12798. eval $var=\"$tmp_libs\"
  12799. @@ -6056,7 +7180,7 @@
  12800. ;;
  12801. esac
  12802. if test -n "$i" ; then
  12803. - tmp_libs="$tmp_libs $i"
  12804. + func_append tmp_libs " $i"
  12805. fi
  12806. done
  12807. dependency_libs=$tmp_libs
  12808. @@ -6097,7 +7221,7 @@
  12809. # Now set the variables for building old libraries.
  12810. build_libtool_libs=no
  12811. oldlibs="$output"
  12812. - objs="$objs$old_deplibs"
  12813. + func_append objs "$old_deplibs"
  12814. ;;
  12815. lib)
  12816. @@ -6130,10 +7254,10 @@
  12817. if test "$deplibs_check_method" != pass_all; then
  12818. func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  12819. else
  12820. - $ECHO
  12821. + echo
  12822. $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  12823. $ECHO "*** objects $objs is not portable!"
  12824. - libobjs="$libobjs $objs"
  12825. + func_append libobjs " $objs"
  12826. fi
  12827. fi
  12828. @@ -6198,7 +7322,7 @@
  12829. age="$number_minor"
  12830. revision="$number_revision"
  12831. ;;
  12832. - freebsd-aout|freebsd-elf|sunos)
  12833. + freebsd-aout|freebsd-elf|qnx|sunos)
  12834. current="$number_major"
  12835. revision="$number_minor"
  12836. age="0"
  12837. @@ -6210,9 +7334,6 @@
  12838. revision="$number_minor"
  12839. lt_irix_increment=no
  12840. ;;
  12841. - *)
  12842. - func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  12843. - ;;
  12844. esac
  12845. ;;
  12846. no)
  12847. @@ -6334,7 +7455,7 @@
  12848. done
  12849. # Make executables depend on our current version.
  12850. - verstring="$verstring:${current}.0"
  12851. + func_append verstring ":${current}.0"
  12852. ;;
  12853. qnx)
  12854. @@ -6402,10 +7523,10 @@
  12855. fi
  12856. func_generate_dlsyms "$libname" "$libname" "yes"
  12857. - libobjs="$libobjs $symfileobj"
  12858. + func_append libobjs " $symfileobj"
  12859. test "X$libobjs" = "X " && libobjs=
  12860. - if test "$mode" != relink; then
  12861. + if test "$opt_mode" != relink; then
  12862. # Remove our outputs, but don't remove object files since they
  12863. # may have been created when compiling PIC objects.
  12864. removelist=
  12865. @@ -6421,7 +7542,7 @@
  12866. continue
  12867. fi
  12868. fi
  12869. - removelist="$removelist $p"
  12870. + func_append removelist " $p"
  12871. ;;
  12872. *) ;;
  12873. esac
  12874. @@ -6432,27 +7553,28 @@
  12875. # Now set the variables for building old libraries.
  12876. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  12877. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  12878. + func_append oldlibs " $output_objdir/$libname.$libext"
  12879. # Transform .lo files to .o files.
  12880. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  12881. + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
  12882. fi
  12883. # Eliminate all temporary directories.
  12884. #for path in $notinst_path; do
  12885. - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  12886. - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  12887. - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  12888. + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
  12889. + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
  12890. + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
  12891. #done
  12892. if test -n "$xrpath"; then
  12893. # If the user specified any rpath flags, then add them.
  12894. temp_xrpath=
  12895. for libdir in $xrpath; do
  12896. - temp_xrpath="$temp_xrpath -R$libdir"
  12897. + func_replace_sysroot "$libdir"
  12898. + func_append temp_xrpath " -R$func_replace_sysroot_result"
  12899. case "$finalize_rpath " in
  12900. *" $libdir "*) ;;
  12901. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  12902. + *) func_append finalize_rpath " $libdir" ;;
  12903. esac
  12904. done
  12905. if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  12906. @@ -6466,7 +7588,7 @@
  12907. for lib in $old_dlfiles; do
  12908. case " $dlprefiles $dlfiles " in
  12909. *" $lib "*) ;;
  12910. - *) dlfiles="$dlfiles $lib" ;;
  12911. + *) func_append dlfiles " $lib" ;;
  12912. esac
  12913. done
  12914. @@ -6476,19 +7598,19 @@
  12915. for lib in $old_dlprefiles; do
  12916. case "$dlprefiles " in
  12917. *" $lib "*) ;;
  12918. - *) dlprefiles="$dlprefiles $lib" ;;
  12919. + *) func_append dlprefiles " $lib" ;;
  12920. esac
  12921. done
  12922. if test "$build_libtool_libs" = yes; then
  12923. if test -n "$rpath"; then
  12924. case $host in
  12925. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  12926. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
  12927. # these systems don't actually have a c library (as such)!
  12928. ;;
  12929. *-*-rhapsody* | *-*-darwin1.[012])
  12930. # Rhapsody C library is in the System framework
  12931. - deplibs="$deplibs System.ltframework"
  12932. + func_append deplibs " System.ltframework"
  12933. ;;
  12934. *-*-netbsd*)
  12935. # Don't link with libc until the a.out ld.so is fixed.
  12936. @@ -6505,7 +7627,7 @@
  12937. *)
  12938. # Add libc to deplibs on all other systems if necessary.
  12939. if test "$build_libtool_need_lc" = "yes"; then
  12940. - deplibs="$deplibs -lc"
  12941. + func_append deplibs " -lc"
  12942. fi
  12943. ;;
  12944. esac
  12945. @@ -6554,7 +7676,7 @@
  12946. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  12947. case " $predeps $postdeps " in
  12948. *" $i "*)
  12949. - newdeplibs="$newdeplibs $i"
  12950. + func_append newdeplibs " $i"
  12951. i=""
  12952. ;;
  12953. esac
  12954. @@ -6565,21 +7687,21 @@
  12955. set dummy $deplib_matches; shift
  12956. deplib_match=$1
  12957. if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  12958. - newdeplibs="$newdeplibs $i"
  12959. + func_append newdeplibs " $i"
  12960. else
  12961. droppeddeps=yes
  12962. - $ECHO
  12963. + echo
  12964. $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  12965. - $ECHO "*** I have the capability to make that library automatically link in when"
  12966. - $ECHO "*** you link to this library. But I can only do this if you have a"
  12967. - $ECHO "*** shared version of the library, which I believe you do not have"
  12968. - $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  12969. - $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  12970. + echo "*** I have the capability to make that library automatically link in when"
  12971. + echo "*** you link to this library. But I can only do this if you have a"
  12972. + echo "*** shared version of the library, which I believe you do not have"
  12973. + echo "*** because a test_compile did reveal that the linker did not use it for"
  12974. + echo "*** its dynamic dependency list that programs get resolved with at runtime."
  12975. fi
  12976. fi
  12977. ;;
  12978. *)
  12979. - newdeplibs="$newdeplibs $i"
  12980. + func_append newdeplibs " $i"
  12981. ;;
  12982. esac
  12983. done
  12984. @@ -6597,7 +7719,7 @@
  12985. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  12986. case " $predeps $postdeps " in
  12987. *" $i "*)
  12988. - newdeplibs="$newdeplibs $i"
  12989. + func_append newdeplibs " $i"
  12990. i=""
  12991. ;;
  12992. esac
  12993. @@ -6608,29 +7730,29 @@
  12994. set dummy $deplib_matches; shift
  12995. deplib_match=$1
  12996. if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  12997. - newdeplibs="$newdeplibs $i"
  12998. + func_append newdeplibs " $i"
  12999. else
  13000. droppeddeps=yes
  13001. - $ECHO
  13002. + echo
  13003. $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  13004. - $ECHO "*** I have the capability to make that library automatically link in when"
  13005. - $ECHO "*** you link to this library. But I can only do this if you have a"
  13006. - $ECHO "*** shared version of the library, which you do not appear to have"
  13007. - $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  13008. - $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  13009. + echo "*** I have the capability to make that library automatically link in when"
  13010. + echo "*** you link to this library. But I can only do this if you have a"
  13011. + echo "*** shared version of the library, which you do not appear to have"
  13012. + echo "*** because a test_compile did reveal that the linker did not use this one"
  13013. + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  13014. fi
  13015. fi
  13016. else
  13017. droppeddeps=yes
  13018. - $ECHO
  13019. + echo
  13020. $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  13021. - $ECHO "*** make it link in! You will probably need to install it or some"
  13022. - $ECHO "*** library that it depends on before this library will be fully"
  13023. - $ECHO "*** functional. Installing it before continuing would be even better."
  13024. + echo "*** make it link in! You will probably need to install it or some"
  13025. + echo "*** library that it depends on before this library will be fully"
  13026. + echo "*** functional. Installing it before continuing would be even better."
  13027. fi
  13028. ;;
  13029. *)
  13030. - newdeplibs="$newdeplibs $i"
  13031. + func_append newdeplibs " $i"
  13032. ;;
  13033. esac
  13034. done
  13035. @@ -6647,15 +7769,27 @@
  13036. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13037. case " $predeps $postdeps " in
  13038. *" $a_deplib "*)
  13039. - newdeplibs="$newdeplibs $a_deplib"
  13040. + func_append newdeplibs " $a_deplib"
  13041. a_deplib=""
  13042. ;;
  13043. esac
  13044. fi
  13045. if test -n "$a_deplib" ; then
  13046. libname=`eval "\\$ECHO \"$libname_spec\""`
  13047. + if test -n "$file_magic_glob"; then
  13048. + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
  13049. + else
  13050. + libnameglob=$libname
  13051. + fi
  13052. + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
  13053. for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  13054. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13055. + if test "$want_nocaseglob" = yes; then
  13056. + shopt -s nocaseglob
  13057. + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
  13058. + $nocaseglob
  13059. + else
  13060. + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
  13061. + fi
  13062. for potent_lib in $potential_libs; do
  13063. # Follow soft links.
  13064. if ls -lLd "$potent_lib" 2>/dev/null |
  13065. @@ -6672,13 +7806,13 @@
  13066. potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  13067. case $potliblink in
  13068. [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  13069. - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  13070. + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
  13071. esac
  13072. done
  13073. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  13074. $SED -e 10q |
  13075. $EGREP "$file_magic_regex" > /dev/null; then
  13076. - newdeplibs="$newdeplibs $a_deplib"
  13077. + func_append newdeplibs " $a_deplib"
  13078. a_deplib=""
  13079. break 2
  13080. fi
  13081. @@ -6687,12 +7821,12 @@
  13082. fi
  13083. if test -n "$a_deplib" ; then
  13084. droppeddeps=yes
  13085. - $ECHO
  13086. + echo
  13087. $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  13088. - $ECHO "*** I have the capability to make that library automatically link in when"
  13089. - $ECHO "*** you link to this library. But I can only do this if you have a"
  13090. - $ECHO "*** shared version of the library, which you do not appear to have"
  13091. - $ECHO "*** because I did check the linker path looking for a file starting"
  13092. + echo "*** I have the capability to make that library automatically link in when"
  13093. + echo "*** you link to this library. But I can only do this if you have a"
  13094. + echo "*** shared version of the library, which you do not appear to have"
  13095. + echo "*** because I did check the linker path looking for a file starting"
  13096. if test -z "$potlib" ; then
  13097. $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  13098. else
  13099. @@ -6703,7 +7837,7 @@
  13100. ;;
  13101. *)
  13102. # Add a -L argument.
  13103. - newdeplibs="$newdeplibs $a_deplib"
  13104. + func_append newdeplibs " $a_deplib"
  13105. ;;
  13106. esac
  13107. done # Gone through all deplibs.
  13108. @@ -6719,7 +7853,7 @@
  13109. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13110. case " $predeps $postdeps " in
  13111. *" $a_deplib "*)
  13112. - newdeplibs="$newdeplibs $a_deplib"
  13113. + func_append newdeplibs " $a_deplib"
  13114. a_deplib=""
  13115. ;;
  13116. esac
  13117. @@ -6730,9 +7864,9 @@
  13118. potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13119. for potent_lib in $potential_libs; do
  13120. potlib="$potent_lib" # see symlink-check above in file_magic test
  13121. - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  13122. + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
  13123. $EGREP "$match_pattern_regex" > /dev/null; then
  13124. - newdeplibs="$newdeplibs $a_deplib"
  13125. + func_append newdeplibs " $a_deplib"
  13126. a_deplib=""
  13127. break 2
  13128. fi
  13129. @@ -6741,12 +7875,12 @@
  13130. fi
  13131. if test -n "$a_deplib" ; then
  13132. droppeddeps=yes
  13133. - $ECHO
  13134. + echo
  13135. $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  13136. - $ECHO "*** I have the capability to make that library automatically link in when"
  13137. - $ECHO "*** you link to this library. But I can only do this if you have a"
  13138. - $ECHO "*** shared version of the library, which you do not appear to have"
  13139. - $ECHO "*** because I did check the linker path looking for a file starting"
  13140. + echo "*** I have the capability to make that library automatically link in when"
  13141. + echo "*** you link to this library. But I can only do this if you have a"
  13142. + echo "*** shared version of the library, which you do not appear to have"
  13143. + echo "*** because I did check the linker path looking for a file starting"
  13144. if test -z "$potlib" ; then
  13145. $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  13146. else
  13147. @@ -6757,32 +7891,32 @@
  13148. ;;
  13149. *)
  13150. # Add a -L argument.
  13151. - newdeplibs="$newdeplibs $a_deplib"
  13152. + func_append newdeplibs " $a_deplib"
  13153. ;;
  13154. esac
  13155. done # Gone through all deplibs.
  13156. ;;
  13157. none | unknown | *)
  13158. newdeplibs=""
  13159. - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  13160. - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  13161. + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
  13162. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13163. for i in $predeps $postdeps ; do
  13164. # can't use Xsed below, because $i might contain '/'
  13165. - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  13166. + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
  13167. done
  13168. fi
  13169. - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  13170. - $GREP . >/dev/null; then
  13171. - $ECHO
  13172. + case $tmp_deplibs in
  13173. + *[!\ \ ]*)
  13174. + echo
  13175. if test "X$deplibs_check_method" = "Xnone"; then
  13176. - $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  13177. + echo "*** Warning: inter-library dependencies are not supported in this platform."
  13178. else
  13179. - $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  13180. + echo "*** Warning: inter-library dependencies are not known to be supported."
  13181. fi
  13182. - $ECHO "*** All declared inter-library dependencies are being dropped."
  13183. + echo "*** All declared inter-library dependencies are being dropped."
  13184. droppeddeps=yes
  13185. - fi
  13186. + ;;
  13187. + esac
  13188. ;;
  13189. esac
  13190. versuffix=$versuffix_save
  13191. @@ -6794,23 +7928,23 @@
  13192. case $host in
  13193. *-*-rhapsody* | *-*-darwin1.[012])
  13194. # On Rhapsody replace the C library with the System framework
  13195. - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  13196. + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
  13197. ;;
  13198. esac
  13199. if test "$droppeddeps" = yes; then
  13200. if test "$module" = yes; then
  13201. - $ECHO
  13202. - $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  13203. + echo
  13204. + echo "*** Warning: libtool could not satisfy all declared inter-library"
  13205. $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  13206. - $ECHO "*** a static module, that should work as long as the dlopening"
  13207. - $ECHO "*** application is linked with the -dlopen flag."
  13208. + echo "*** a static module, that should work as long as the dlopening"
  13209. + echo "*** application is linked with the -dlopen flag."
  13210. if test -z "$global_symbol_pipe"; then
  13211. - $ECHO
  13212. - $ECHO "*** However, this would only work if libtool was able to extract symbol"
  13213. - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13214. - $ECHO "*** not find such a program. So, this module is probably useless."
  13215. - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  13216. + echo
  13217. + echo "*** However, this would only work if libtool was able to extract symbol"
  13218. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13219. + echo "*** not find such a program. So, this module is probably useless."
  13220. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13221. fi
  13222. if test "$build_old_libs" = no; then
  13223. oldlibs="$output_objdir/$libname.$libext"
  13224. @@ -6820,16 +7954,16 @@
  13225. build_libtool_libs=no
  13226. fi
  13227. else
  13228. - $ECHO "*** The inter-library dependencies that have been dropped here will be"
  13229. - $ECHO "*** automatically added whenever a program is linked with this library"
  13230. - $ECHO "*** or is declared to -dlopen it."
  13231. + echo "*** The inter-library dependencies that have been dropped here will be"
  13232. + echo "*** automatically added whenever a program is linked with this library"
  13233. + echo "*** or is declared to -dlopen it."
  13234. if test "$allow_undefined" = no; then
  13235. - $ECHO
  13236. - $ECHO "*** Since this library must not contain undefined symbols,"
  13237. - $ECHO "*** because either the platform does not support them or"
  13238. - $ECHO "*** it was explicitly requested with -no-undefined,"
  13239. - $ECHO "*** libtool will only create a static version of it."
  13240. + echo
  13241. + echo "*** Since this library must not contain undefined symbols,"
  13242. + echo "*** because either the platform does not support them or"
  13243. + echo "*** it was explicitly requested with -no-undefined,"
  13244. + echo "*** libtool will only create a static version of it."
  13245. if test "$build_old_libs" = no; then
  13246. oldlibs="$output_objdir/$libname.$libext"
  13247. build_libtool_libs=module
  13248. @@ -6846,9 +7980,9 @@
  13249. # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  13250. case $host in
  13251. *-*-darwin*)
  13252. - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  13253. - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  13254. - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  13255. + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  13256. + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  13257. + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  13258. ;;
  13259. esac
  13260. @@ -6861,7 +7995,7 @@
  13261. *)
  13262. case " $deplibs " in
  13263. *" -L$path/$objdir "*)
  13264. - new_libs="$new_libs -L$path/$objdir" ;;
  13265. + func_append new_libs " -L$path/$objdir" ;;
  13266. esac
  13267. ;;
  13268. esac
  13269. @@ -6871,10 +8005,10 @@
  13270. -L*)
  13271. case " $new_libs " in
  13272. *" $deplib "*) ;;
  13273. - *) new_libs="$new_libs $deplib" ;;
  13274. + *) func_append new_libs " $deplib" ;;
  13275. esac
  13276. ;;
  13277. - *) new_libs="$new_libs $deplib" ;;
  13278. + *) func_append new_libs " $deplib" ;;
  13279. esac
  13280. done
  13281. deplibs="$new_libs"
  13282. @@ -6891,10 +8025,12 @@
  13283. hardcode_libdirs=
  13284. dep_rpath=
  13285. rpath="$finalize_rpath"
  13286. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  13287. + test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
  13288. for libdir in $rpath; do
  13289. if test -n "$hardcode_libdir_flag_spec"; then
  13290. if test -n "$hardcode_libdir_separator"; then
  13291. + func_replace_sysroot "$libdir"
  13292. + libdir=$func_replace_sysroot_result
  13293. if test -z "$hardcode_libdirs"; then
  13294. hardcode_libdirs="$libdir"
  13295. else
  13296. @@ -6903,18 +8039,18 @@
  13297. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  13298. ;;
  13299. *)
  13300. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  13301. + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
  13302. ;;
  13303. esac
  13304. fi
  13305. else
  13306. eval flag=\"$hardcode_libdir_flag_spec\"
  13307. - dep_rpath="$dep_rpath $flag"
  13308. + func_append dep_rpath " $flag"
  13309. fi
  13310. elif test -n "$runpath_var"; then
  13311. case "$perm_rpath " in
  13312. *" $libdir "*) ;;
  13313. - *) perm_rpath="$perm_rpath $libdir" ;;
  13314. + *) func_apped perm_rpath " $libdir" ;;
  13315. esac
  13316. fi
  13317. done
  13318. @@ -6932,7 +8068,7 @@
  13319. # We should set the runpath_var.
  13320. rpath=
  13321. for dir in $perm_rpath; do
  13322. - rpath="$rpath$dir:"
  13323. + func_append rpath "$dir:"
  13324. done
  13325. eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  13326. fi
  13327. @@ -6940,7 +8076,7 @@
  13328. fi
  13329. shlibpath="$finalize_shlibpath"
  13330. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  13331. + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  13332. if test -n "$shlibpath"; then
  13333. eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  13334. fi
  13335. @@ -6966,18 +8102,18 @@
  13336. linknames=
  13337. for link
  13338. do
  13339. - linknames="$linknames $link"
  13340. + func_append linknames " $link"
  13341. done
  13342. # Use standard objects if they are pic
  13343. - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  13344. + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
  13345. test "X$libobjs" = "X " && libobjs=
  13346. delfiles=
  13347. if test -n "$export_symbols" && test -n "$include_expsyms"; then
  13348. $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  13349. export_symbols="$output_objdir/$libname.uexp"
  13350. - delfiles="$delfiles $export_symbols"
  13351. + func_append delfiles " $export_symbols"
  13352. fi
  13353. orig_export_symbols=
  13354. @@ -7008,13 +8144,45 @@
  13355. $opt_dry_run || $RM $export_symbols
  13356. cmds=$export_symbols_cmds
  13357. save_ifs="$IFS"; IFS='~'
  13358. - for cmd in $cmds; do
  13359. + for cmd1 in $cmds; do
  13360. IFS="$save_ifs"
  13361. - eval cmd=\"$cmd\"
  13362. - func_len " $cmd"
  13363. - len=$func_len_result
  13364. - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  13365. + # Take the normal branch if the nm_file_list_spec branch
  13366. + # doesn't work or if tool conversion is not needed.
  13367. + case $nm_file_list_spec~$to_tool_file_cmd in
  13368. + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
  13369. + try_normal_branch=yes
  13370. + eval cmd=\"$cmd1\"
  13371. + func_len " $cmd"
  13372. + len=$func_len_result
  13373. + ;;
  13374. + *)
  13375. + try_normal_branch=no
  13376. + ;;
  13377. + esac
  13378. + if test "$try_normal_branch" = yes \
  13379. + && { test "$len" -lt "$max_cmd_len" \
  13380. + || test "$max_cmd_len" -le -1; }
  13381. + then
  13382. + func_show_eval "$cmd" 'exit $?'
  13383. + skipped_export=false
  13384. + elif test -n "$nm_file_list_spec"; then
  13385. + func_basename "$output"
  13386. + output_la=$func_basename_result
  13387. + save_libobjs=$libobjs
  13388. + save_output=$output
  13389. + output=${output_objdir}/${output_la}.nm
  13390. + func_to_tool_file "$output"
  13391. + libobjs=$nm_file_list_spec$func_to_tool_file_result
  13392. + func_append delfiles " $output"
  13393. + func_verbose "creating $NM input file list: $output"
  13394. + for obj in $save_libobjs; do
  13395. + func_to_tool_file "$obj"
  13396. + $ECHO "$func_to_tool_file_result"
  13397. + done > "$output"
  13398. + eval cmd=\"$cmd1\"
  13399. func_show_eval "$cmd" 'exit $?'
  13400. + output=$save_output
  13401. + libobjs=$save_libobjs
  13402. skipped_export=false
  13403. else
  13404. # The command line is too long to execute in one step.
  13405. @@ -7036,7 +8204,7 @@
  13406. if test -n "$export_symbols" && test -n "$include_expsyms"; then
  13407. tmp_export_symbols="$export_symbols"
  13408. test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  13409. - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  13410. + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
  13411. fi
  13412. if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  13413. @@ -7048,7 +8216,7 @@
  13414. # global variables. join(1) would be nice here, but unfortunately
  13415. # isn't a blessed tool.
  13416. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  13417. - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  13418. + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
  13419. export_symbols=$output_objdir/$libname.def
  13420. $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  13421. fi
  13422. @@ -7058,7 +8226,7 @@
  13423. case " $convenience " in
  13424. *" $test_deplib "*) ;;
  13425. *)
  13426. - tmp_deplibs="$tmp_deplibs $test_deplib"
  13427. + func_append tmp_deplibs " $test_deplib"
  13428. ;;
  13429. esac
  13430. done
  13431. @@ -7078,21 +8246,21 @@
  13432. test "X$libobjs" = "X " && libobjs=
  13433. else
  13434. gentop="$output_objdir/${outputname}x"
  13435. - generated="$generated $gentop"
  13436. + func_append generated " $gentop"
  13437. func_extract_archives $gentop $convenience
  13438. - libobjs="$libobjs $func_extract_archives_result"
  13439. + func_append libobjs " $func_extract_archives_result"
  13440. test "X$libobjs" = "X " && libobjs=
  13441. fi
  13442. fi
  13443. if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  13444. eval flag=\"$thread_safe_flag_spec\"
  13445. - linker_flags="$linker_flags $flag"
  13446. + func_append linker_flags " $flag"
  13447. fi
  13448. # Make a backup of the uninstalled library when relinking
  13449. - if test "$mode" = relink; then
  13450. + if test "$opt_mode" = relink; then
  13451. $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  13452. fi
  13453. @@ -7137,7 +8305,8 @@
  13454. save_libobjs=$libobjs
  13455. fi
  13456. save_output=$output
  13457. - output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  13458. + func_basename "$output"
  13459. + output_la=$func_basename_result
  13460. # Clear the reloadable object creation command queue and
  13461. # initialize k to one.
  13462. @@ -7150,13 +8319,16 @@
  13463. if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  13464. output=${output_objdir}/${output_la}.lnkscript
  13465. func_verbose "creating GNU ld script: $output"
  13466. - $ECHO 'INPUT (' > $output
  13467. + echo 'INPUT (' > $output
  13468. for obj in $save_libobjs
  13469. do
  13470. - $ECHO "$obj" >> $output
  13471. + func_to_tool_file "$obj"
  13472. + $ECHO "$func_to_tool_file_result" >> $output
  13473. done
  13474. - $ECHO ')' >> $output
  13475. - delfiles="$delfiles $output"
  13476. + echo ')' >> $output
  13477. + func_append delfiles " $output"
  13478. + func_to_tool_file "$output"
  13479. + output=$func_to_tool_file_result
  13480. elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  13481. output=${output_objdir}/${output_la}.lnk
  13482. func_verbose "creating linker input file list: $output"
  13483. @@ -7170,10 +8342,12 @@
  13484. fi
  13485. for obj
  13486. do
  13487. - $ECHO "$obj" >> $output
  13488. + func_to_tool_file "$obj"
  13489. + $ECHO "$func_to_tool_file_result" >> $output
  13490. done
  13491. - delfiles="$delfiles $output"
  13492. - output=$firstobj\"$file_list_spec$output\"
  13493. + func_append delfiles " $output"
  13494. + func_to_tool_file "$output"
  13495. + output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
  13496. else
  13497. if test -n "$save_libobjs"; then
  13498. func_verbose "creating reloadable object files..."
  13499. @@ -7197,17 +8371,19 @@
  13500. # command to the queue.
  13501. if test "$k" -eq 1 ; then
  13502. # The first file doesn't have a previous command to add.
  13503. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  13504. + reload_objs=$objlist
  13505. + eval concat_cmds=\"$reload_cmds\"
  13506. else
  13507. # All subsequent reloadable object files will link in
  13508. # the last one created.
  13509. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  13510. + reload_objs="$objlist $last_robj"
  13511. + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
  13512. fi
  13513. last_robj=$output_objdir/$output_la-${k}.$objext
  13514. func_arith $k + 1
  13515. k=$func_arith_result
  13516. output=$output_objdir/$output_la-${k}.$objext
  13517. - objlist=$obj
  13518. + objlist=" $obj"
  13519. func_len " $last_robj"
  13520. func_arith $len0 + $func_len_result
  13521. len=$func_arith_result
  13522. @@ -7217,11 +8393,12 @@
  13523. # reloadable object file. All subsequent reloadable object
  13524. # files will link in the last one created.
  13525. test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  13526. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  13527. + reload_objs="$objlist $last_robj"
  13528. + eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
  13529. if test -n "$last_robj"; then
  13530. eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  13531. fi
  13532. - delfiles="$delfiles $output"
  13533. + func_append delfiles " $output"
  13534. else
  13535. output=
  13536. @@ -7255,7 +8432,7 @@
  13537. lt_exit=$?
  13538. # Restore the uninstalled library and exit
  13539. - if test "$mode" = relink; then
  13540. + if test "$opt_mode" = relink; then
  13541. ( cd "$output_objdir" && \
  13542. $RM "${realname}T" && \
  13543. $MV "${realname}U" "$realname" )
  13544. @@ -7276,7 +8453,7 @@
  13545. if test -n "$export_symbols" && test -n "$include_expsyms"; then
  13546. tmp_export_symbols="$export_symbols"
  13547. test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  13548. - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  13549. + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
  13550. fi
  13551. if test -n "$orig_export_symbols"; then
  13552. @@ -7288,7 +8465,7 @@
  13553. # global variables. join(1) would be nice here, but unfortunately
  13554. # isn't a blessed tool.
  13555. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  13556. - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  13557. + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
  13558. export_symbols=$output_objdir/$libname.def
  13559. $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  13560. fi
  13561. @@ -7329,10 +8506,10 @@
  13562. # Add any objects from preloaded convenience libraries
  13563. if test -n "$dlprefiles"; then
  13564. gentop="$output_objdir/${outputname}x"
  13565. - generated="$generated $gentop"
  13566. + func_append generated " $gentop"
  13567. func_extract_archives $gentop $dlprefiles
  13568. - libobjs="$libobjs $func_extract_archives_result"
  13569. + func_append libobjs " $func_extract_archives_result"
  13570. test "X$libobjs" = "X " && libobjs=
  13571. fi
  13572. @@ -7348,7 +8525,7 @@
  13573. lt_exit=$?
  13574. # Restore the uninstalled library and exit
  13575. - if test "$mode" = relink; then
  13576. + if test "$opt_mode" = relink; then
  13577. ( cd "$output_objdir" && \
  13578. $RM "${realname}T" && \
  13579. $MV "${realname}U" "$realname" )
  13580. @@ -7360,7 +8537,7 @@
  13581. IFS="$save_ifs"
  13582. # Restore the uninstalled library and exit
  13583. - if test "$mode" = relink; then
  13584. + if test "$opt_mode" = relink; then
  13585. $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  13586. if test -n "$convenience"; then
  13587. @@ -7441,18 +8618,21 @@
  13588. if test -n "$convenience"; then
  13589. if test -n "$whole_archive_flag_spec"; then
  13590. eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  13591. - reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  13592. + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
  13593. else
  13594. gentop="$output_objdir/${obj}x"
  13595. - generated="$generated $gentop"
  13596. + func_append generated " $gentop"
  13597. func_extract_archives $gentop $convenience
  13598. reload_conv_objs="$reload_objs $func_extract_archives_result"
  13599. fi
  13600. fi
  13601. + # If we're not building shared, we need to use non_pic_objs
  13602. + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
  13603. +
  13604. # Create the old-style object.
  13605. - 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
  13606. + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  13607. output="$obj"
  13608. func_execute_cmds "$reload_cmds" 'exit $?'
  13609. @@ -7512,8 +8692,8 @@
  13610. case $host in
  13611. *-*-rhapsody* | *-*-darwin1.[012])
  13612. # On Rhapsody replace the C library is the System framework
  13613. - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  13614. - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  13615. + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
  13616. + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
  13617. ;;
  13618. esac
  13619. @@ -7524,14 +8704,14 @@
  13620. if test "$tagname" = CXX ; then
  13621. case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  13622. 10.[0123])
  13623. - compile_command="$compile_command ${wl}-bind_at_load"
  13624. - finalize_command="$finalize_command ${wl}-bind_at_load"
  13625. + func_append compile_command " ${wl}-bind_at_load"
  13626. + func_append finalize_command " ${wl}-bind_at_load"
  13627. ;;
  13628. esac
  13629. fi
  13630. # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  13631. - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  13632. - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  13633. + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  13634. + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
  13635. ;;
  13636. esac
  13637. @@ -7545,7 +8725,7 @@
  13638. *)
  13639. case " $compile_deplibs " in
  13640. *" -L$path/$objdir "*)
  13641. - new_libs="$new_libs -L$path/$objdir" ;;
  13642. + func_append new_libs " -L$path/$objdir" ;;
  13643. esac
  13644. ;;
  13645. esac
  13646. @@ -7555,17 +8735,17 @@
  13647. -L*)
  13648. case " $new_libs " in
  13649. *" $deplib "*) ;;
  13650. - *) new_libs="$new_libs $deplib" ;;
  13651. + *) func_append new_libs " $deplib" ;;
  13652. esac
  13653. ;;
  13654. - *) new_libs="$new_libs $deplib" ;;
  13655. + *) func_append new_libs " $deplib" ;;
  13656. esac
  13657. done
  13658. compile_deplibs="$new_libs"
  13659. - compile_command="$compile_command $compile_deplibs"
  13660. - finalize_command="$finalize_command $finalize_deplibs"
  13661. + func_append compile_command " $compile_deplibs"
  13662. + func_append finalize_command " $finalize_deplibs"
  13663. if test -n "$rpath$xrpath"; then
  13664. # If the user specified any rpath flags, then add them.
  13665. @@ -7573,7 +8753,7 @@
  13666. # This is the magic to use -rpath.
  13667. case "$finalize_rpath " in
  13668. *" $libdir "*) ;;
  13669. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  13670. + *) func_append finalize_rpath " $libdir" ;;
  13671. esac
  13672. done
  13673. fi
  13674. @@ -7592,18 +8772,18 @@
  13675. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  13676. ;;
  13677. *)
  13678. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  13679. + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
  13680. ;;
  13681. esac
  13682. fi
  13683. else
  13684. eval flag=\"$hardcode_libdir_flag_spec\"
  13685. - rpath="$rpath $flag"
  13686. + func_append rpath " $flag"
  13687. fi
  13688. elif test -n "$runpath_var"; then
  13689. case "$perm_rpath " in
  13690. *" $libdir "*) ;;
  13691. - *) perm_rpath="$perm_rpath $libdir" ;;
  13692. + *) func_append perm_rpath " $libdir" ;;
  13693. esac
  13694. fi
  13695. case $host in
  13696. @@ -7612,12 +8792,12 @@
  13697. case :$dllsearchpath: in
  13698. *":$libdir:"*) ;;
  13699. ::) dllsearchpath=$libdir;;
  13700. - *) dllsearchpath="$dllsearchpath:$libdir";;
  13701. + *) func_append dllsearchpath ":$libdir";;
  13702. esac
  13703. case :$dllsearchpath: in
  13704. *":$testbindir:"*) ;;
  13705. ::) dllsearchpath=$testbindir;;
  13706. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  13707. + *) func_append dllsearchpath ":$testbindir";;
  13708. esac
  13709. ;;
  13710. esac
  13711. @@ -7643,18 +8823,18 @@
  13712. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  13713. ;;
  13714. *)
  13715. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  13716. + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
  13717. ;;
  13718. esac
  13719. fi
  13720. else
  13721. eval flag=\"$hardcode_libdir_flag_spec\"
  13722. - rpath="$rpath $flag"
  13723. + func_append rpath " $flag"
  13724. fi
  13725. elif test -n "$runpath_var"; then
  13726. case "$finalize_perm_rpath " in
  13727. *" $libdir "*) ;;
  13728. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  13729. + *) func_append finalize_perm_rpath " $libdir" ;;
  13730. esac
  13731. fi
  13732. done
  13733. @@ -7668,8 +8848,8 @@
  13734. if test -n "$libobjs" && test "$build_old_libs" = yes; then
  13735. # Transform all the library objects into standard objects.
  13736. - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  13737. - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  13738. + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
  13739. + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
  13740. fi
  13741. func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  13742. @@ -7681,15 +8861,15 @@
  13743. wrappers_required=yes
  13744. case $host in
  13745. + *cegcc* | *mingw32ce*)
  13746. + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
  13747. + wrappers_required=no
  13748. + ;;
  13749. *cygwin* | *mingw* )
  13750. if test "$build_libtool_libs" != yes; then
  13751. wrappers_required=no
  13752. fi
  13753. ;;
  13754. - *cegcc)
  13755. - # Disable wrappers for cegcc, we are cross compiling anyway.
  13756. - wrappers_required=no
  13757. - ;;
  13758. *)
  13759. if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  13760. wrappers_required=no
  13761. @@ -7698,13 +8878,19 @@
  13762. esac
  13763. if test "$wrappers_required" = no; then
  13764. # Replace the output file specification.
  13765. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  13766. + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
  13767. link_command="$compile_command$compile_rpath"
  13768. # We have no uninstalled library dependencies, so finalize right now.
  13769. exit_status=0
  13770. func_show_eval "$link_command" 'exit_status=$?'
  13771. + if test -n "$postlink_cmds"; then
  13772. + func_to_tool_file "$output"
  13773. + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
  13774. + func_execute_cmds "$postlink_cmds" 'exit $?'
  13775. + fi
  13776. +
  13777. # Delete the generated files.
  13778. if test -f "$output_objdir/${outputname}S.${objext}"; then
  13779. func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  13780. @@ -7727,7 +8913,7 @@
  13781. # We should set the runpath_var.
  13782. rpath=
  13783. for dir in $perm_rpath; do
  13784. - rpath="$rpath$dir:"
  13785. + func_append rpath "$dir:"
  13786. done
  13787. compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  13788. fi
  13789. @@ -7735,7 +8921,7 @@
  13790. # We should set the runpath_var.
  13791. rpath=
  13792. for dir in $finalize_perm_rpath; do
  13793. - rpath="$rpath$dir:"
  13794. + func_append rpath "$dir:"
  13795. done
  13796. finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  13797. fi
  13798. @@ -7745,11 +8931,18 @@
  13799. # We don't need to create a wrapper script.
  13800. link_command="$compile_var$compile_command$compile_rpath"
  13801. # Replace the output file specification.
  13802. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  13803. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
  13804. # Delete the old output file.
  13805. $opt_dry_run || $RM $output
  13806. # Link the executable and exit
  13807. func_show_eval "$link_command" 'exit $?'
  13808. +
  13809. + if test -n "$postlink_cmds"; then
  13810. + func_to_tool_file "$output"
  13811. + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
  13812. + func_execute_cmds "$postlink_cmds" 'exit $?'
  13813. + fi
  13814. +
  13815. exit $EXIT_SUCCESS
  13816. fi
  13817. @@ -7764,7 +8957,7 @@
  13818. if test "$fast_install" != no; then
  13819. link_command="$finalize_var$compile_command$finalize_rpath"
  13820. if test "$fast_install" = yes; then
  13821. - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  13822. + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
  13823. else
  13824. # fast_install is set to needless
  13825. relink_command=
  13826. @@ -7776,13 +8969,19 @@
  13827. fi
  13828. # Replace the output file specification.
  13829. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  13830. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  13831. # Delete the old output files.
  13832. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  13833. func_show_eval "$link_command" 'exit $?'
  13834. + if test -n "$postlink_cmds"; then
  13835. + func_to_tool_file "$output_objdir/$outputname"
  13836. + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
  13837. + func_execute_cmds "$postlink_cmds" 'exit $?'
  13838. + fi
  13839. +
  13840. # Now create the wrapper script.
  13841. func_verbose "creating $output"
  13842. @@ -7800,18 +8999,7 @@
  13843. fi
  13844. done
  13845. relink_command="(cd `pwd`; $relink_command)"
  13846. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13847. - fi
  13848. -
  13849. - # Quote $ECHO for shipping.
  13850. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  13851. - case $progpath in
  13852. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  13853. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  13854. - esac
  13855. - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  13856. - else
  13857. - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  13858. + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
  13859. fi
  13860. # Only actually do things if not in dry run mode.
  13861. @@ -7891,7 +9079,7 @@
  13862. else
  13863. oldobjs="$old_deplibs $non_pic_objects"
  13864. if test "$preload" = yes && test -f "$symfileobj"; then
  13865. - oldobjs="$oldobjs $symfileobj"
  13866. + func_append oldobjs " $symfileobj"
  13867. fi
  13868. fi
  13869. addlibs="$old_convenience"
  13870. @@ -7899,10 +9087,10 @@
  13871. if test -n "$addlibs"; then
  13872. gentop="$output_objdir/${outputname}x"
  13873. - generated="$generated $gentop"
  13874. + func_append generated " $gentop"
  13875. func_extract_archives $gentop $addlibs
  13876. - oldobjs="$oldobjs $func_extract_archives_result"
  13877. + func_append oldobjs " $func_extract_archives_result"
  13878. fi
  13879. # Do each command in the archive commands.
  13880. @@ -7913,10 +9101,10 @@
  13881. # Add any objects from preloaded convenience libraries
  13882. if test -n "$dlprefiles"; then
  13883. gentop="$output_objdir/${outputname}x"
  13884. - generated="$generated $gentop"
  13885. + func_append generated " $gentop"
  13886. func_extract_archives $gentop $dlprefiles
  13887. - oldobjs="$oldobjs $func_extract_archives_result"
  13888. + func_append oldobjs " $func_extract_archives_result"
  13889. fi
  13890. # POSIX demands no paths to be encoded in archives. We have
  13891. @@ -7932,9 +9120,9 @@
  13892. done | sort | sort -uc >/dev/null 2>&1); then
  13893. :
  13894. else
  13895. - $ECHO "copying selected object files to avoid basename conflicts..."
  13896. + echo "copying selected object files to avoid basename conflicts..."
  13897. gentop="$output_objdir/${outputname}x"
  13898. - generated="$generated $gentop"
  13899. + func_append generated " $gentop"
  13900. func_mkdir_p "$gentop"
  13901. save_oldobjs=$oldobjs
  13902. oldobjs=
  13903. @@ -7958,9 +9146,9 @@
  13904. esac
  13905. done
  13906. func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  13907. - oldobjs="$oldobjs $gentop/$newobj"
  13908. + func_append oldobjs " $gentop/$newobj"
  13909. ;;
  13910. - *) oldobjs="$oldobjs $obj" ;;
  13911. + *) func_append oldobjs " $obj" ;;
  13912. esac
  13913. done
  13914. fi
  13915. @@ -7970,6 +9158,16 @@
  13916. len=$func_len_result
  13917. if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  13918. cmds=$old_archive_cmds
  13919. + elif test -n "$archiver_list_spec"; then
  13920. + func_verbose "using command file archive linking..."
  13921. + for obj in $oldobjs
  13922. + do
  13923. + func_to_tool_file "$obj"
  13924. + $ECHO "$func_to_tool_file_result"
  13925. + done > $output_objdir/$libname.libcmd
  13926. + func_to_tool_file "$output_objdir/$libname.libcmd"
  13927. + oldobjs=" $archiver_list_spec$func_to_tool_file_result"
  13928. + cmds=$old_archive_cmds
  13929. else
  13930. # the command line is too long to link in one step, link in parts
  13931. func_verbose "using piecewise archive linking..."
  13932. @@ -8043,7 +9241,7 @@
  13933. done
  13934. # Quote the link command for shipping.
  13935. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  13936. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13937. + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
  13938. if test "$hardcode_automatic" = yes ; then
  13939. relink_command=
  13940. fi
  13941. @@ -8066,9 +9264,19 @@
  13942. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13943. test -z "$libdir" && \
  13944. func_fatal_error "\`$deplib' is not a valid libtool archive"
  13945. - newdependency_libs="$newdependency_libs $libdir/$name"
  13946. + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
  13947. + ;;
  13948. + -L*)
  13949. + func_stripname -L '' "$deplib"
  13950. + func_replace_sysroot "$func_stripname_result"
  13951. + func_append newdependency_libs " -L$func_replace_sysroot_result"
  13952. ;;
  13953. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  13954. + -R*)
  13955. + func_stripname -R '' "$deplib"
  13956. + func_replace_sysroot "$func_stripname_result"
  13957. + func_append newdependency_libs " -R$func_replace_sysroot_result"
  13958. + ;;
  13959. + *) func_append newdependency_libs " $deplib" ;;
  13960. esac
  13961. done
  13962. dependency_libs="$newdependency_libs"
  13963. @@ -8082,9 +9290,9 @@
  13964. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13965. test -z "$libdir" && \
  13966. func_fatal_error "\`$lib' is not a valid libtool archive"
  13967. - newdlfiles="$newdlfiles $libdir/$name"
  13968. + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
  13969. ;;
  13970. - *) newdlfiles="$newdlfiles $lib" ;;
  13971. + *) func_append newdlfiles " $lib" ;;
  13972. esac
  13973. done
  13974. dlfiles="$newdlfiles"
  13975. @@ -8101,7 +9309,7 @@
  13976. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13977. test -z "$libdir" && \
  13978. func_fatal_error "\`$lib' is not a valid libtool archive"
  13979. - newdlprefiles="$newdlprefiles $libdir/$name"
  13980. + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
  13981. ;;
  13982. esac
  13983. done
  13984. @@ -8113,7 +9321,7 @@
  13985. [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  13986. *) abs=`pwd`"/$lib" ;;
  13987. esac
  13988. - newdlfiles="$newdlfiles $abs"
  13989. + func_append newdlfiles " $abs"
  13990. done
  13991. dlfiles="$newdlfiles"
  13992. newdlprefiles=
  13993. @@ -8122,15 +9330,33 @@
  13994. [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  13995. *) abs=`pwd`"/$lib" ;;
  13996. esac
  13997. - newdlprefiles="$newdlprefiles $abs"
  13998. + func_append newdlprefiles " $abs"
  13999. done
  14000. dlprefiles="$newdlprefiles"
  14001. fi
  14002. $RM $output
  14003. # place dlname in correct position for cygwin
  14004. + # In fact, it would be nice if we could use this code for all target
  14005. + # systems that can't hard-code library paths into their executables
  14006. + # and that have no shared library path variable independent of PATH,
  14007. + # but it turns out we can't easily determine that from inspecting
  14008. + # libtool variables, so we have to hard-code the OSs to which it
  14009. + # applies here; at the moment, that means platforms that use the PE
  14010. + # object format with DLL files. See the long comment at the top of
  14011. + # tests/bindir.at for full details.
  14012. tdlname=$dlname
  14013. case $host,$output,$installed,$module,$dlname in
  14014. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  14015. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
  14016. + # If a -bindir argument was supplied, place the dll there.
  14017. + if test "x$bindir" != x ;
  14018. + then
  14019. + func_relative_path "$install_libdir" "$bindir"
  14020. + tdlname=$func_relative_path_result$dlname
  14021. + else
  14022. + # Otherwise fall back on heuristic.
  14023. + tdlname=../bin/$dlname
  14024. + fi
  14025. + ;;
  14026. esac
  14027. $ECHO > $output "\
  14028. # $outputname - a libtool library file
  14029. @@ -8189,7 +9415,7 @@
  14030. exit $EXIT_SUCCESS
  14031. }
  14032. -{ test "$mode" = link || test "$mode" = relink; } &&
  14033. +{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
  14034. func_mode_link ${1+"$@"}
  14035. @@ -8209,9 +9435,9 @@
  14036. for arg
  14037. do
  14038. case $arg in
  14039. - -f) RM="$RM $arg"; rmforce=yes ;;
  14040. - -*) RM="$RM $arg" ;;
  14041. - *) files="$files $arg" ;;
  14042. + -f) func_append RM " $arg"; rmforce=yes ;;
  14043. + -*) func_append RM " $arg" ;;
  14044. + *) func_append files " $arg" ;;
  14045. esac
  14046. done
  14047. @@ -8220,24 +9446,23 @@
  14048. rmdirs=
  14049. - origobjdir="$objdir"
  14050. for file in $files; do
  14051. func_dirname "$file" "" "."
  14052. dir="$func_dirname_result"
  14053. if test "X$dir" = X.; then
  14054. - objdir="$origobjdir"
  14055. + odir="$objdir"
  14056. else
  14057. - objdir="$dir/$origobjdir"
  14058. + odir="$dir/$objdir"
  14059. fi
  14060. func_basename "$file"
  14061. name="$func_basename_result"
  14062. - test "$mode" = uninstall && objdir="$dir"
  14063. + test "$opt_mode" = uninstall && odir="$dir"
  14064. - # Remember objdir for removal later, being careful to avoid duplicates
  14065. - if test "$mode" = clean; then
  14066. + # Remember odir for removal later, being careful to avoid duplicates
  14067. + if test "$opt_mode" = clean; then
  14068. case " $rmdirs " in
  14069. - *" $objdir "*) ;;
  14070. - *) rmdirs="$rmdirs $objdir" ;;
  14071. + *" $odir "*) ;;
  14072. + *) func_append rmdirs " $odir" ;;
  14073. esac
  14074. fi
  14075. @@ -8263,18 +9488,17 @@
  14076. # Delete the libtool libraries and symlinks.
  14077. for n in $library_names; do
  14078. - rmfiles="$rmfiles $objdir/$n"
  14079. + func_append rmfiles " $odir/$n"
  14080. done
  14081. - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  14082. + test -n "$old_library" && func_append rmfiles " $odir/$old_library"
  14083. - case "$mode" in
  14084. + case "$opt_mode" in
  14085. clean)
  14086. - case " $library_names " in
  14087. - # " " in the beginning catches empty $dlname
  14088. + case " $library_names " in
  14089. *" $dlname "*) ;;
  14090. - *) rmfiles="$rmfiles $objdir/$dlname" ;;
  14091. + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
  14092. esac
  14093. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  14094. + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
  14095. ;;
  14096. uninstall)
  14097. if test -n "$library_names"; then
  14098. @@ -8302,19 +9526,19 @@
  14099. # Add PIC object to the list of files to remove.
  14100. if test -n "$pic_object" &&
  14101. test "$pic_object" != none; then
  14102. - rmfiles="$rmfiles $dir/$pic_object"
  14103. + func_append rmfiles " $dir/$pic_object"
  14104. fi
  14105. # Add non-PIC object to the list of files to remove.
  14106. if test -n "$non_pic_object" &&
  14107. test "$non_pic_object" != none; then
  14108. - rmfiles="$rmfiles $dir/$non_pic_object"
  14109. + func_append rmfiles " $dir/$non_pic_object"
  14110. fi
  14111. fi
  14112. ;;
  14113. *)
  14114. - if test "$mode" = clean ; then
  14115. + if test "$opt_mode" = clean ; then
  14116. noexename=$name
  14117. case $file in
  14118. *.exe)
  14119. @@ -8324,7 +9548,7 @@
  14120. noexename=$func_stripname_result
  14121. # $file with .exe has already been added to rmfiles,
  14122. # add $file without .exe
  14123. - rmfiles="$rmfiles $file"
  14124. + func_append rmfiles " $file"
  14125. ;;
  14126. esac
  14127. # Do a test to see if this is a libtool program.
  14128. @@ -8333,7 +9557,7 @@
  14129. func_ltwrapper_scriptname "$file"
  14130. relink_command=
  14131. func_source $func_ltwrapper_scriptname_result
  14132. - rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  14133. + func_append rmfiles " $func_ltwrapper_scriptname_result"
  14134. else
  14135. relink_command=
  14136. func_source $dir/$noexename
  14137. @@ -8341,12 +9565,12 @@
  14138. # note $name still contains .exe if it was in $file originally
  14139. # as does the version of $file that was added into $rmfiles
  14140. - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  14141. + func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
  14142. if test "$fast_install" = yes && test -n "$relink_command"; then
  14143. - rmfiles="$rmfiles $objdir/lt-$name"
  14144. + func_append rmfiles " $odir/lt-$name"
  14145. fi
  14146. if test "X$noexename" != "X$name" ; then
  14147. - rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  14148. + func_append rmfiles " $odir/lt-${noexename}.c"
  14149. fi
  14150. fi
  14151. fi
  14152. @@ -8354,7 +9578,6 @@
  14153. esac
  14154. func_show_eval "$RM $rmfiles" 'exit_status=1'
  14155. done
  14156. - objdir="$origobjdir"
  14157. # Try to remove the ${objdir}s in the directories where we deleted files
  14158. for dir in $rmdirs; do
  14159. @@ -8366,16 +9589,16 @@
  14160. exit $exit_status
  14161. }
  14162. -{ test "$mode" = uninstall || test "$mode" = clean; } &&
  14163. +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
  14164. func_mode_uninstall ${1+"$@"}
  14165. -test -z "$mode" && {
  14166. +test -z "$opt_mode" && {
  14167. help="$generic_help"
  14168. func_fatal_help "you must specify a MODE"
  14169. }
  14170. test -z "$exec_cmd" && \
  14171. - func_fatal_help "invalid operation mode \`$mode'"
  14172. + func_fatal_help "invalid operation mode \`$opt_mode'"
  14173. if test -n "$exec_cmd"; then
  14174. eval exec "$exec_cmd"
  14175. diff -Nur opensc-0.11.13.orig/m4/libtool.m4 opensc-0.11.13/m4/libtool.m4
  14176. --- opensc-0.11.13.orig/m4/libtool.m4 2010-02-16 10:32:09.000000000 +0100
  14177. +++ opensc-0.11.13/m4/libtool.m4 2011-01-19 18:18:07.000000000 +0100
  14178. @@ -1,7 +1,8 @@
  14179. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  14180. #
  14181. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14182. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  14183. +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  14184. +# Inc.
  14185. # Written by Gordon Matzigkeit, 1996
  14186. #
  14187. # This file is free software; the Free Software Foundation gives
  14188. @@ -10,7 +11,8 @@
  14189. m4_define([_LT_COPYING], [dnl
  14190. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14191. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  14192. +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  14193. +# Inc.
  14194. # Written by Gordon Matzigkeit, 1996
  14195. #
  14196. # This file is part of GNU Libtool.
  14197. @@ -37,7 +39,7 @@
  14198. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14199. ])
  14200. -# serial 56 LT_INIT
  14201. +# serial 57 LT_INIT
  14202. # LT_PREREQ(VERSION)
  14203. @@ -66,6 +68,7 @@
  14204. # ------------------
  14205. AC_DEFUN([LT_INIT],
  14206. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  14207. +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  14208. AC_BEFORE([$0], [LT_LANG])dnl
  14209. AC_BEFORE([$0], [LT_OUTPUT])dnl
  14210. AC_BEFORE([$0], [LTDL_INIT])dnl
  14211. @@ -82,6 +85,8 @@
  14212. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  14213. m4_require([_LT_PROG_LTMAIN])dnl
  14214. +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  14215. +
  14216. dnl Parse OPTIONS
  14217. _LT_SET_OPTIONS([$0], [$1])
  14218. @@ -118,7 +123,7 @@
  14219. *) break;;
  14220. esac
  14221. done
  14222. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14223. +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14224. ])
  14225. @@ -138,6 +143,9 @@
  14226. m4_defun([_LT_SETUP],
  14227. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  14228. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  14229. +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  14230. +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  14231. +
  14232. _LT_DECL([], [host_alias], [0], [The host system])dnl
  14233. _LT_DECL([], [host], [0])dnl
  14234. _LT_DECL([], [host_os], [0])dnl
  14235. @@ -160,10 +168,13 @@
  14236. dnl
  14237. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  14238. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  14239. +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  14240. m4_require([_LT_CMD_RELOAD])dnl
  14241. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  14242. +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  14243. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  14244. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  14245. +m4_require([_LT_WITH_SYSROOT])dnl
  14246. _LT_CONFIG_LIBTOOL_INIT([
  14247. # See if we are running on zsh, and set the options which allow our
  14248. @@ -179,7 +190,6 @@
  14249. _LT_CHECK_OBJDIR
  14250. m4_require([_LT_TAG_COMPILER])dnl
  14251. -_LT_PROG_ECHO_BACKSLASH
  14252. case $host_os in
  14253. aix3*)
  14254. @@ -193,23 +203,6 @@
  14255. ;;
  14256. esac
  14257. -# Sed substitution that helps us do robust quoting. It backslashifies
  14258. -# metacharacters that are still active within double-quoted strings.
  14259. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  14260. -
  14261. -# Same as above, but do not quote variable references.
  14262. -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  14263. -
  14264. -# Sed substitution to delay expansion of an escaped shell variable in a
  14265. -# double_quote_subst'ed string.
  14266. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  14267. -
  14268. -# Sed substitution to delay expansion of an escaped single quote.
  14269. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  14270. -
  14271. -# Sed substitution to avoid accidental globbing in evaled expressions
  14272. -no_glob_subst='s/\*/\\\*/g'
  14273. -
  14274. # Global variables:
  14275. ofile=libtool
  14276. can_build_shared=yes
  14277. @@ -250,6 +243,28 @@
  14278. ])# _LT_SETUP
  14279. +# _LT_PREPARE_SED_QUOTE_VARS
  14280. +# --------------------------
  14281. +# Define a few sed substitution that help us do robust quoting.
  14282. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  14283. +[# Backslashify metacharacters that are still active within
  14284. +# double-quoted strings.
  14285. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  14286. +
  14287. +# Same as above, but do not quote variable references.
  14288. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  14289. +
  14290. +# Sed substitution to delay expansion of an escaped shell variable in a
  14291. +# double_quote_subst'ed string.
  14292. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  14293. +
  14294. +# Sed substitution to delay expansion of an escaped single quote.
  14295. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  14296. +
  14297. +# Sed substitution to avoid accidental globbing in evaled expressions
  14298. +no_glob_subst='s/\*/\\\*/g'
  14299. +])
  14300. +
  14301. # _LT_PROG_LTMAIN
  14302. # ---------------
  14303. # Note that this code is called both from `configure', and `config.status'
  14304. @@ -408,7 +423,7 @@
  14305. # declaration there will have the same value as in `configure'. VARNAME
  14306. # must have a single quote delimited value for this to work.
  14307. m4_define([_LT_CONFIG_STATUS_DECLARE],
  14308. -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  14309. +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  14310. # _LT_CONFIG_STATUS_DECLARATIONS
  14311. @@ -418,7 +433,7 @@
  14312. # embedded single quotes properly. In configure, this macro expands
  14313. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  14314. #
  14315. -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  14316. +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  14317. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  14318. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  14319. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  14320. @@ -517,12 +532,20 @@
  14321. LTCFLAGS='$LTCFLAGS'
  14322. compiler='$compiler_DEFAULT'
  14323. +# A function that is used when there is no print builtin or printf.
  14324. +func_fallback_echo ()
  14325. +{
  14326. + eval 'cat <<_LTECHO_EOF
  14327. +\$[]1
  14328. +_LTECHO_EOF'
  14329. +}
  14330. +
  14331. # Quote evaled strings.
  14332. for var in lt_decl_all_varnames([[ \
  14333. ]], lt_decl_quote_varnames); do
  14334. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14335. + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14336. *[[\\\\\\\`\\"\\\$]]*)
  14337. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14338. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14339. ;;
  14340. *)
  14341. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14342. @@ -533,9 +556,9 @@
  14343. # Double-quote double-evaled strings.
  14344. for var in lt_decl_all_varnames([[ \
  14345. ]], lt_decl_dquote_varnames); do
  14346. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14347. + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14348. *[[\\\\\\\`\\"\\\$]]*)
  14349. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14350. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14351. ;;
  14352. *)
  14353. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14354. @@ -543,16 +566,38 @@
  14355. esac
  14356. done
  14357. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  14358. -case \$lt_ECHO in
  14359. -*'\\\[$]0 --fallback-echo"')dnl "
  14360. - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  14361. - ;;
  14362. -esac
  14363. -
  14364. _LT_OUTPUT_LIBTOOL_INIT
  14365. ])
  14366. +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  14367. +# ------------------------------------
  14368. +# Generate a child script FILE with all initialization necessary to
  14369. +# reuse the environment learned by the parent script, and make the
  14370. +# file executable. If COMMENT is supplied, it is inserted after the
  14371. +# `#!' sequence but before initialization text begins. After this
  14372. +# macro, additional text can be appended to FILE to form the body of
  14373. +# the child script. The macro ends with non-zero status if the
  14374. +# file could not be fully written (such as if the disk is full).
  14375. +m4_ifdef([AS_INIT_GENERATED],
  14376. +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  14377. +[m4_defun([_LT_GENERATED_FILE_INIT],
  14378. +[m4_require([AS_PREPARE])]dnl
  14379. +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  14380. +[lt_write_fail=0
  14381. +cat >$1 <<_ASEOF || lt_write_fail=1
  14382. +#! $SHELL
  14383. +# Generated by $as_me.
  14384. +$2
  14385. +SHELL=\${CONFIG_SHELL-$SHELL}
  14386. +export SHELL
  14387. +_ASEOF
  14388. +cat >>$1 <<\_ASEOF || lt_write_fail=1
  14389. +AS_SHELL_SANITIZE
  14390. +_AS_PREPARE
  14391. +exec AS_MESSAGE_FD>&1
  14392. +_ASEOF
  14393. +test $lt_write_fail = 0 && chmod +x $1[]dnl
  14394. +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  14395. # LT_OUTPUT
  14396. # ---------
  14397. @@ -562,20 +607,11 @@
  14398. AC_DEFUN([LT_OUTPUT],
  14399. [: ${CONFIG_LT=./config.lt}
  14400. AC_MSG_NOTICE([creating $CONFIG_LT])
  14401. -cat >"$CONFIG_LT" <<_LTEOF
  14402. -#! $SHELL
  14403. -# Generated by $as_me.
  14404. -# Run this file to recreate a libtool stub with the current configuration.
  14405. -
  14406. -lt_cl_silent=false
  14407. -SHELL=\${CONFIG_SHELL-$SHELL}
  14408. -_LTEOF
  14409. +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  14410. +[# Run this file to recreate a libtool stub with the current configuration.])
  14411. cat >>"$CONFIG_LT" <<\_LTEOF
  14412. -AS_SHELL_SANITIZE
  14413. -_AS_PREPARE
  14414. -
  14415. -exec AS_MESSAGE_FD>&1
  14416. +lt_cl_silent=false
  14417. exec AS_MESSAGE_LOG_FD>>config.log
  14418. {
  14419. echo
  14420. @@ -601,7 +637,7 @@
  14421. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  14422. configured by $[0], generated by m4_PACKAGE_STRING.
  14423. -Copyright (C) 2008 Free Software Foundation, Inc.
  14424. +Copyright (C) 2010 Free Software Foundation, Inc.
  14425. This config.lt script is free software; the Free Software Foundation
  14426. gives unlimited permision to copy, distribute and modify it."
  14427. @@ -646,15 +682,13 @@
  14428. # appending to config.log, which fails on DOS, as config.log is still kept
  14429. # open by configure. Here we exec the FD to /dev/null, effectively closing
  14430. # config.log, so it can be properly (re)opened and appended to by config.lt.
  14431. -if test "$no_create" != yes; then
  14432. - lt_cl_success=:
  14433. - test "$silent" = yes &&
  14434. - lt_config_lt_args="$lt_config_lt_args --quiet"
  14435. - exec AS_MESSAGE_LOG_FD>/dev/null
  14436. - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  14437. - exec AS_MESSAGE_LOG_FD>>config.log
  14438. - $lt_cl_success || AS_EXIT(1)
  14439. -fi
  14440. +lt_cl_success=:
  14441. +test "$silent" = yes &&
  14442. + lt_config_lt_args="$lt_config_lt_args --quiet"
  14443. +exec AS_MESSAGE_LOG_FD>/dev/null
  14444. +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  14445. +exec AS_MESSAGE_LOG_FD>>config.log
  14446. +$lt_cl_success || AS_EXIT(1)
  14447. ])# LT_OUTPUT
  14448. @@ -717,15 +751,12 @@
  14449. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14450. # text mode, it properly converts lines to CR/LF. This bash problem
  14451. # is reportedly fixed, but why not run on old versions too?
  14452. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14453. - || (rm -f "$cfgfile"; exit 1)
  14454. + sed '$q' "$ltmain" >> "$cfgfile" \
  14455. + || (rm -f "$cfgfile"; exit 1)
  14456. - _LT_PROG_XSI_SHELLFNS
  14457. + _LT_PROG_REPLACE_SHELLFNS
  14458. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14459. - || (rm -f "$cfgfile"; exit 1)
  14460. -
  14461. - mv -f "$cfgfile" "$ofile" ||
  14462. + mv -f "$cfgfile" "$ofile" ||
  14463. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14464. chmod +x "$ofile"
  14465. ],
  14466. @@ -831,11 +862,13 @@
  14467. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  14468. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  14469. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  14470. +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  14471. dnl aclocal-1.4 backwards compatibility:
  14472. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  14473. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  14474. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  14475. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  14476. +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  14477. # _LT_TAG_COMPILER
  14478. @@ -940,6 +973,31 @@
  14479. [lt_cv_ld_exported_symbols_list=no])
  14480. LDFLAGS="$save_LDFLAGS"
  14481. ])
  14482. + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  14483. + [lt_cv_ld_force_load=no
  14484. + cat > conftest.c << _LT_EOF
  14485. +int forced_loaded() { return 2;}
  14486. +_LT_EOF
  14487. + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  14488. + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  14489. + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  14490. + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  14491. + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  14492. + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  14493. + cat > conftest.c << _LT_EOF
  14494. +int main() { return 0;}
  14495. +_LT_EOF
  14496. + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  14497. + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  14498. + _lt_result=$?
  14499. + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  14500. + lt_cv_ld_force_load=yes
  14501. + else
  14502. + cat conftest.err >&AS_MESSAGE_LOG_FD
  14503. + fi
  14504. + rm -f conftest.err libconftest.a conftest conftest.c
  14505. + rm -rf conftest.dSYM
  14506. + ])
  14507. case $host_os in
  14508. rhapsody* | darwin1.[[012]])
  14509. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  14510. @@ -967,7 +1025,7 @@
  14511. else
  14512. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14513. fi
  14514. - if test "$DSYMUTIL" != ":"; then
  14515. + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  14516. _lt_dsymutil='~$DSYMUTIL $lib || :'
  14517. else
  14518. _lt_dsymutil=
  14519. @@ -987,7 +1045,11 @@
  14520. _LT_TAGVAR(hardcode_direct, $1)=no
  14521. _LT_TAGVAR(hardcode_automatic, $1)=yes
  14522. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  14523. - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  14524. + if test "$lt_cv_ld_force_load" = "yes"; then
  14525. + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  14526. + else
  14527. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  14528. + fi
  14529. _LT_TAGVAR(link_all_deplibs, $1)=yes
  14530. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  14531. case $cc_basename in
  14532. @@ -995,7 +1057,7 @@
  14533. *) _lt_dar_can_shared=$GCC ;;
  14534. esac
  14535. if test "$_lt_dar_can_shared" = "yes"; then
  14536. - output_verbose_link_cmd=echo
  14537. + output_verbose_link_cmd=func_echo_all
  14538. _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}"
  14539. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14540. _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}"
  14541. @@ -1011,203 +1073,142 @@
  14542. fi
  14543. ])
  14544. -# _LT_SYS_MODULE_PATH_AIX
  14545. -# -----------------------
  14546. +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  14547. +# ----------------------------------
  14548. # Links a minimal program and checks the executable
  14549. # for the system default hardcoded library path. In most cases,
  14550. # this is /usr/lib:/lib, but when the MPI compilers are used
  14551. # the location of the communication and MPI libs are included too.
  14552. # If we don't find anything, use the default library path according
  14553. # to the aix ld manual.
  14554. +# Store the results from the different compilers for each TAGNAME.
  14555. +# Allow to override them for all tags through lt_cv_aix_libpath.
  14556. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  14557. [m4_require([_LT_DECL_SED])dnl
  14558. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  14559. -lt_aix_libpath_sed='
  14560. - /Import File Strings/,/^$/ {
  14561. - /^0/ {
  14562. - s/^0 *\(.*\)$/\1/
  14563. - p
  14564. - }
  14565. - }'
  14566. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14567. -# Check for a 64-bit object if we didn't find anything.
  14568. -if test -z "$aix_libpath"; then
  14569. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14570. -fi],[])
  14571. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14572. +if test "${lt_cv_aix_libpath+set}" = set; then
  14573. + aix_libpath=$lt_cv_aix_libpath
  14574. +else
  14575. + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  14576. + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  14577. + lt_aix_libpath_sed='[
  14578. + /Import File Strings/,/^$/ {
  14579. + /^0/ {
  14580. + s/^0 *\([^ ]*\) *$/\1/
  14581. + p
  14582. + }
  14583. + }]'
  14584. + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14585. + # Check for a 64-bit object if we didn't find anything.
  14586. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  14587. + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14588. + fi],[])
  14589. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  14590. + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  14591. + fi
  14592. + ])
  14593. + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  14594. +fi
  14595. ])# _LT_SYS_MODULE_PATH_AIX
  14596. # _LT_SHELL_INIT(ARG)
  14597. # -------------------
  14598. m4_define([_LT_SHELL_INIT],
  14599. -[ifdef([AC_DIVERSION_NOTICE],
  14600. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  14601. - [AC_DIVERT_PUSH(NOTICE)])
  14602. -$1
  14603. -AC_DIVERT_POP
  14604. -])# _LT_SHELL_INIT
  14605. +[m4_divert_text([M4SH-INIT], [$1
  14606. +])])# _LT_SHELL_INIT
  14607. +
  14608. # _LT_PROG_ECHO_BACKSLASH
  14609. # -----------------------
  14610. -# Add some code to the start of the generated configure script which
  14611. -# will find an echo command which doesn't interpret backslashes.
  14612. +# Find how we can fake an echo command that does not interpret backslash.
  14613. +# In particular, with Autoconf 2.60 or later we add some code to the start
  14614. +# of the generated configure script which will find a shell with a builtin
  14615. +# printf (which we can use as an echo command).
  14616. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  14617. -[_LT_SHELL_INIT([
  14618. -# Check that we are running under the correct shell.
  14619. -SHELL=${CONFIG_SHELL-/bin/sh}
  14620. -
  14621. -case X$lt_ECHO in
  14622. -X*--fallback-echo)
  14623. - # Remove one level of quotation (which was required for Make).
  14624. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  14625. - ;;
  14626. -esac
  14627. -
  14628. -ECHO=${lt_ECHO-echo}
  14629. -if test "X[$]1" = X--no-reexec; then
  14630. - # Discard the --no-reexec flag, and continue.
  14631. - shift
  14632. -elif test "X[$]1" = X--fallback-echo; then
  14633. - # Avoid inline document here, it may be left over
  14634. - :
  14635. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  14636. - # Yippee, $ECHO works!
  14637. - :
  14638. +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14639. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  14640. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  14641. +
  14642. +AC_MSG_CHECKING([how to print strings])
  14643. +# Test print first, because it will be a builtin if present.
  14644. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  14645. + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  14646. + ECHO='print -r --'
  14647. +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  14648. + ECHO='printf %s\n'
  14649. else
  14650. - # Restart under the correct shell.
  14651. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  14652. -fi
  14653. -
  14654. -if test "X[$]1" = X--fallback-echo; then
  14655. - # used as fallback echo
  14656. - shift
  14657. - cat <<_LT_EOF
  14658. -[$]*
  14659. -_LT_EOF
  14660. - exit 0
  14661. + # Use this function as a fallback that always works.
  14662. + func_fallback_echo ()
  14663. + {
  14664. + eval 'cat <<_LTECHO_EOF
  14665. +$[]1
  14666. +_LTECHO_EOF'
  14667. + }
  14668. + ECHO='func_fallback_echo'
  14669. fi
  14670. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  14671. -# if CDPATH is set.
  14672. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14673. -
  14674. -if test -z "$lt_ECHO"; then
  14675. - if test "X${echo_test_string+set}" != Xset; then
  14676. - # find a string as large as possible, as long as the shell can cope with it
  14677. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  14678. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  14679. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  14680. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  14681. - then
  14682. - break
  14683. - fi
  14684. - done
  14685. - fi
  14686. -
  14687. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14688. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14689. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14690. - :
  14691. - else
  14692. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  14693. - # backslashes. This makes it impossible to quote backslashes using
  14694. - # echo "$something" | sed 's/\\/\\\\/g'
  14695. - #
  14696. - # So, first we look for a working echo in the user's PATH.
  14697. -
  14698. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14699. - for dir in $PATH /usr/ucb; do
  14700. - IFS="$lt_save_ifs"
  14701. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14702. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14703. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14704. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14705. - ECHO="$dir/echo"
  14706. - break
  14707. - fi
  14708. - done
  14709. - IFS="$lt_save_ifs"
  14710. -
  14711. - if test "X$ECHO" = Xecho; then
  14712. - # We didn't find a better echo, so look for alternatives.
  14713. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  14714. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  14715. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14716. - # This shell has a builtin print -r that does the trick.
  14717. - ECHO='print -r'
  14718. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  14719. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  14720. - # If we have ksh, try running configure again with it.
  14721. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14722. - export ORIGINAL_CONFIG_SHELL
  14723. - CONFIG_SHELL=/bin/ksh
  14724. - export CONFIG_SHELL
  14725. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  14726. - else
  14727. - # Try using printf.
  14728. - ECHO='printf %s\n'
  14729. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14730. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14731. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14732. - # Cool, printf works
  14733. - :
  14734. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  14735. - test "X$echo_testing_string" = 'X\t' &&
  14736. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14737. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14738. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14739. - export CONFIG_SHELL
  14740. - SHELL="$CONFIG_SHELL"
  14741. - export SHELL
  14742. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  14743. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  14744. - test "X$echo_testing_string" = 'X\t' &&
  14745. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14746. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14747. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  14748. - else
  14749. - # maybe with a smaller string...
  14750. - prev=:
  14751. -
  14752. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  14753. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  14754. - then
  14755. - break
  14756. - fi
  14757. - prev="$cmd"
  14758. - done
  14759. +# func_echo_all arg...
  14760. +# Invoke $ECHO with all args, space-separated.
  14761. +func_echo_all ()
  14762. +{
  14763. + $ECHO "$*"
  14764. +}
  14765. - if test "$prev" != 'sed 50q "[$]0"'; then
  14766. - echo_test_string=`eval $prev`
  14767. - export echo_test_string
  14768. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  14769. - else
  14770. - # Oops. We lost completely, so just stick with echo.
  14771. - ECHO=echo
  14772. - fi
  14773. - fi
  14774. - fi
  14775. - fi
  14776. - fi
  14777. -fi
  14778. +case "$ECHO" in
  14779. + printf*) AC_MSG_RESULT([printf]) ;;
  14780. + print*) AC_MSG_RESULT([print -r]) ;;
  14781. + *) AC_MSG_RESULT([cat]) ;;
  14782. +esac
  14783. -# Copy echo and quote the copy suitably for passing to libtool from
  14784. -# the Makefile, instead of quoting the original, which is used later.
  14785. -lt_ECHO=$ECHO
  14786. -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  14787. - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  14788. -fi
  14789. +m4_ifdef([_AS_DETECT_SUGGESTED],
  14790. +[_AS_DETECT_SUGGESTED([
  14791. + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  14792. + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14793. + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  14794. + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  14795. + PATH=/empty FPATH=/empty; export PATH FPATH
  14796. + test "X`printf %s $ECHO`" = "X$ECHO" \
  14797. + || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  14798. -AC_SUBST(lt_ECHO)
  14799. -])
  14800. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  14801. -_LT_DECL([], [ECHO], [1],
  14802. - [An echo program that does not interpret backslashes])
  14803. +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  14804. ])# _LT_PROG_ECHO_BACKSLASH
  14805. +# _LT_WITH_SYSROOT
  14806. +# ----------------
  14807. +AC_DEFUN([_LT_WITH_SYSROOT],
  14808. +[AC_MSG_CHECKING([for sysroot])
  14809. +AC_ARG_WITH([sysroot],
  14810. +[ --with-sysroot[=DIR] Search for dependent libraries within DIR
  14811. + (or the compiler's sysroot if not specified).],
  14812. +[], [with_sysroot=no])
  14813. +
  14814. +dnl lt_sysroot will always be passed unquoted. We quote it here
  14815. +dnl in case the user passed a directory name.
  14816. +lt_sysroot=
  14817. +case ${with_sysroot} in #(
  14818. + yes)
  14819. + if test "$GCC" = yes; then
  14820. + lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  14821. + fi
  14822. + ;; #(
  14823. + /*)
  14824. + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  14825. + ;; #(
  14826. + no|'')
  14827. + ;; #(
  14828. + *)
  14829. + AC_MSG_RESULT([${with_sysroot}])
  14830. + AC_MSG_ERROR([The sysroot must be an absolute path.])
  14831. + ;;
  14832. +esac
  14833. +
  14834. + AC_MSG_RESULT([${lt_sysroot:-no}])
  14835. +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  14836. +[dependent libraries, and in which our libraries should be installed.])])
  14837. +
  14838. # _LT_ENABLE_LOCK
  14839. # ---------------
  14840. m4_defun([_LT_ENABLE_LOCK],
  14841. @@ -1236,7 +1237,7 @@
  14842. ;;
  14843. *-*-irix6*)
  14844. # Find out which ABI we are using.
  14845. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  14846. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  14847. if AC_TRY_EVAL(ac_compile); then
  14848. if test "$lt_cv_prog_gnu_ld" = yes; then
  14849. case `/usr/bin/file conftest.$ac_objext` in
  14850. @@ -1354,14 +1355,47 @@
  14851. ])# _LT_ENABLE_LOCK
  14852. +# _LT_PROG_AR
  14853. +# -----------
  14854. +m4_defun([_LT_PROG_AR],
  14855. +[AC_CHECK_TOOLS(AR, [ar], false)
  14856. +: ${AR=ar}
  14857. +: ${AR_FLAGS=cru}
  14858. +_LT_DECL([], [AR], [1], [The archiver])
  14859. +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  14860. +
  14861. +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  14862. + [lt_cv_ar_at_file=no
  14863. + AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  14864. + [echo conftest.$ac_objext > conftest.lst
  14865. + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  14866. + AC_TRY_EVAL([lt_ar_try])
  14867. + if test "$ac_status" -eq 0; then
  14868. + # Ensure the archiver fails upon bogus file names.
  14869. + rm -f conftest.$ac_objext libconftest.a
  14870. + AC_TRY_EVAL([lt_ar_try])
  14871. + if test "$ac_status" -ne 0; then
  14872. + lt_cv_ar_at_file=@
  14873. + fi
  14874. + fi
  14875. + rm -f conftest.* libconftest.a
  14876. + ])
  14877. + ])
  14878. +
  14879. +if test "x$lt_cv_ar_at_file" = xno; then
  14880. + archiver_list_spec=
  14881. +else
  14882. + archiver_list_spec=$lt_cv_ar_at_file
  14883. +fi
  14884. +_LT_DECL([], [archiver_list_spec], [1],
  14885. + [How to feed a file listing to the archiver])
  14886. +])# _LT_PROG_AR
  14887. +
  14888. +
  14889. # _LT_CMD_OLD_ARCHIVE
  14890. # -------------------
  14891. m4_defun([_LT_CMD_OLD_ARCHIVE],
  14892. -[AC_CHECK_TOOL(AR, ar, false)
  14893. -test -z "$AR" && AR=ar
  14894. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  14895. -_LT_DECL([], [AR], [1], [The archiver])
  14896. -_LT_DECL([], [AR_FLAGS], [1])
  14897. +[_LT_PROG_AR
  14898. AC_CHECK_TOOL(STRIP, strip, :)
  14899. test -z "$STRIP" && STRIP=:
  14900. @@ -1388,10 +1422,19 @@
  14901. esac
  14902. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  14903. fi
  14904. +
  14905. +case $host_os in
  14906. + darwin*)
  14907. + lock_old_archive_extraction=yes ;;
  14908. + *)
  14909. + lock_old_archive_extraction=no ;;
  14910. +esac
  14911. _LT_DECL([], [old_postinstall_cmds], [2])
  14912. _LT_DECL([], [old_postuninstall_cmds], [2])
  14913. _LT_TAGDECL([], [old_archive_cmds], [2],
  14914. [Commands used to build an old-style archive])
  14915. +_LT_DECL([], [lock_old_archive_extraction], [0],
  14916. + [Whether to use a lock for old archive extraction])
  14917. ])# _LT_CMD_OLD_ARCHIVE
  14918. @@ -1416,15 +1459,15 @@
  14919. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14920. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  14921. -e 's:$: $lt_compiler_flag:'`
  14922. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  14923. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  14924. (eval "$lt_compile" 2>conftest.err)
  14925. ac_status=$?
  14926. cat conftest.err >&AS_MESSAGE_LOG_FD
  14927. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  14928. + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  14929. if (exit $ac_status) && test -s "$ac_outfile"; then
  14930. # The compiler can only warn and ignore the option if not recognized
  14931. # So say no if there are warnings other than the usual output.
  14932. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14933. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14934. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14935. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14936. $2=yes
  14937. @@ -1464,7 +1507,7 @@
  14938. if test -s conftest.err; then
  14939. # Append any errors to the config.log.
  14940. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  14941. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14942. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14943. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14944. if diff conftest.exp conftest.er2 >/dev/null; then
  14945. $2=yes
  14946. @@ -1527,6 +1570,11 @@
  14947. lt_cv_sys_max_cmd_len=8192;
  14948. ;;
  14949. + mint*)
  14950. + # On MiNT this can take a long time and run out of memory.
  14951. + lt_cv_sys_max_cmd_len=8192;
  14952. + ;;
  14953. +
  14954. amigaos*)
  14955. # On AmigaOS with pdksh, this test takes hours, literally.
  14956. # So we just punt and use a minimum line length of 8192.
  14957. @@ -1591,8 +1639,8 @@
  14958. # If test is not a shell built-in, we'll probably end up computing a
  14959. # maximum length that is only half of the actual maximum length, but
  14960. # we can't tell.
  14961. - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  14962. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  14963. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  14964. + = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  14965. test $i != 17 # 1/2 MB should be enough
  14966. do
  14967. i=`expr $i + 1`
  14968. @@ -1643,7 +1691,7 @@
  14969. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14970. lt_status=$lt_dlunknown
  14971. cat > conftest.$ac_ext <<_LT_EOF
  14972. -[#line __oline__ "configure"
  14973. +[#line $LINENO "configure"
  14974. #include "confdefs.h"
  14975. #if HAVE_DLFCN_H
  14976. @@ -1684,7 +1732,13 @@
  14977. # endif
  14978. #endif
  14979. -void fnord() { int i=42;}
  14980. +/* When -fvisbility=hidden is used, assume the code has been annotated
  14981. + correspondingly for the symbols needed. */
  14982. +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14983. +int fnord () __attribute__((visibility("default")));
  14984. +#endif
  14985. +
  14986. +int fnord () { return 42; }
  14987. int main ()
  14988. {
  14989. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14990. @@ -1693,7 +1747,11 @@
  14991. if (self)
  14992. {
  14993. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14994. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14995. + else
  14996. + {
  14997. + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14998. + else puts (dlerror ());
  14999. + }
  15000. /* dlclose (self); */
  15001. }
  15002. else
  15003. @@ -1869,16 +1927,16 @@
  15004. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15005. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  15006. -e 's:$: $lt_compiler_flag:'`
  15007. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  15008. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  15009. (eval "$lt_compile" 2>out/conftest.err)
  15010. ac_status=$?
  15011. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  15012. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  15013. + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  15014. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15015. then
  15016. # The compiler can only warn and ignore the option if not recognized
  15017. # So say no if there are warnings
  15018. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15019. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15020. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15021. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15022. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  15023. @@ -2037,6 +2095,7 @@
  15024. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15025. m4_require([_LT_DECL_OBJDUMP])dnl
  15026. m4_require([_LT_DECL_SED])dnl
  15027. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  15028. AC_MSG_CHECKING([dynamic linker characteristics])
  15029. m4_if([$1],
  15030. [], [
  15031. @@ -2045,16 +2104,23 @@
  15032. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  15033. *) lt_awk_arg="/^libraries:/" ;;
  15034. esac
  15035. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15036. - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  15037. + case $host_os in
  15038. + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  15039. + *) lt_sed_strip_eq="s,=/,/,g" ;;
  15040. + esac
  15041. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  15042. + case $lt_search_path_spec in
  15043. + *\;*)
  15044. # if the path contains ";" then we assume it to be the separator
  15045. # otherwise default to the standard path separator (i.e. ":") - it is
  15046. # assumed that no part of a normal pathname contains ";" but that should
  15047. # okay in the real world where ";" in dirpaths is itself problematic.
  15048. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  15049. - else
  15050. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15051. - fi
  15052. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  15053. + ;;
  15054. + *)
  15055. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  15056. + ;;
  15057. + esac
  15058. # Ok, now we have the path, separated by spaces, we can step through it
  15059. # and add multilib dir if necessary.
  15060. lt_tmp_lt_search_path_spec=
  15061. @@ -2067,7 +2133,7 @@
  15062. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  15063. fi
  15064. done
  15065. - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  15066. + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  15067. BEGIN {RS=" "; FS="/|\n";} {
  15068. lt_foo="";
  15069. lt_count=0;
  15070. @@ -2087,7 +2153,13 @@
  15071. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  15072. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  15073. }'`
  15074. - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  15075. + # AWK program above erroneously prepends '/' to C:/dos/paths
  15076. + # for these hosts.
  15077. + case $host_os in
  15078. + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  15079. + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  15080. + esac
  15081. + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  15082. else
  15083. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15084. fi])
  15085. @@ -2175,7 +2247,7 @@
  15086. m68k)
  15087. library_names_spec='$libname.ixlibrary $libname.a'
  15088. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15089. - 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'
  15090. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  15091. ;;
  15092. esac
  15093. ;;
  15094. @@ -2206,8 +2278,9 @@
  15095. need_version=no
  15096. need_lib_prefix=no
  15097. - case $GCC,$host_os in
  15098. - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  15099. + case $GCC,$cc_basename in
  15100. + yes,*)
  15101. + # gcc
  15102. library_names_spec='$libname.dll.a'
  15103. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15104. postinstall_cmds='base_file=`basename \${file}`~
  15105. @@ -2228,36 +2301,83 @@
  15106. cygwin*)
  15107. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15108. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  15109. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15110. +m4_if([$1], [],[
  15111. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  15112. ;;
  15113. mingw* | cegcc*)
  15114. # MinGW DLLs use traditional 'lib' prefix
  15115. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  15116. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15117. - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  15118. - # It is most probably a Windows format PATH printed by
  15119. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15120. - # path with ; separators, and with drive letters. We can handle the
  15121. - # drive letters (cygwin fileutils understands them), so leave them,
  15122. - # especially as we might pass files found there to a mingw objdump,
  15123. - # which wouldn't understand a cygwinified path. Ahh.
  15124. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15125. - else
  15126. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15127. - fi
  15128. ;;
  15129. pw32*)
  15130. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15131. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  15132. ;;
  15133. esac
  15134. + dynamic_linker='Win32 ld.exe'
  15135. + ;;
  15136. +
  15137. + *,cl*)
  15138. + # Native MSVC
  15139. + libname_spec='$name'
  15140. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  15141. + library_names_spec='${libname}.dll.lib'
  15142. +
  15143. + case $build_os in
  15144. + mingw*)
  15145. + sys_lib_search_path_spec=
  15146. + lt_save_ifs=$IFS
  15147. + IFS=';'
  15148. + for lt_path in $LIB
  15149. + do
  15150. + IFS=$lt_save_ifs
  15151. + # Let DOS variable expansion print the short 8.3 style file name.
  15152. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15153. + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15154. + done
  15155. + IFS=$lt_save_ifs
  15156. + # Convert to MSYS style.
  15157. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  15158. + ;;
  15159. + cygwin*)
  15160. + # Convert to unix form, then to dos form, then back to unix form
  15161. + # but this time dos style (no spaces!) so that the unix form looks
  15162. + # like /cygdrive/c/PROGRA~1:/cygdr...
  15163. + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15164. + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15165. + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15166. + ;;
  15167. + *)
  15168. + sys_lib_search_path_spec="$LIB"
  15169. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  15170. + # It is most probably a Windows format PATH.
  15171. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15172. + else
  15173. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15174. + fi
  15175. + # FIXME: find the short name or the path components, as spaces are
  15176. + # common. (e.g. "Program Files" -> "PROGRA~1")
  15177. + ;;
  15178. + esac
  15179. +
  15180. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15181. + postinstall_cmds='base_file=`basename \${file}`~
  15182. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15183. + dldir=$destdir/`dirname \$dlpath`~
  15184. + test -d \$dldir || mkdir -p \$dldir~
  15185. + $install_prog $dir/$dlname \$dldir/$dlname'
  15186. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15187. + dlpath=$dir/\$dldll~
  15188. + $RM \$dlpath'
  15189. + shlibpath_overrides_runpath=yes
  15190. + dynamic_linker='Win32 link.exe'
  15191. ;;
  15192. *)
  15193. + # Assume MSVC wrapper
  15194. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15195. + dynamic_linker='Win32 ld.exe'
  15196. ;;
  15197. esac
  15198. - dynamic_linker='Win32 ld.exe'
  15199. # FIXME: first we should search . and the directory the executable is in
  15200. shlibpath_var=PATH
  15201. ;;
  15202. @@ -2344,6 +2464,19 @@
  15203. hardcode_into_libs=yes
  15204. ;;
  15205. +haiku*)
  15206. + version_type=linux
  15207. + need_lib_prefix=no
  15208. + need_version=no
  15209. + dynamic_linker="$host_os runtime_loader"
  15210. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15211. + soname_spec='${libname}${release}${shared_ext}$major'
  15212. + shlibpath_var=LIBRARY_PATH
  15213. + shlibpath_overrides_runpath=yes
  15214. + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15215. + hardcode_into_libs=yes
  15216. + ;;
  15217. +
  15218. hpux9* | hpux10* | hpux11*)
  15219. # Give a soname corresponding to the major version so that dld.sl refuses to
  15220. # link against other versions.
  15221. @@ -2386,8 +2519,10 @@
  15222. soname_spec='${libname}${release}${shared_ext}$major'
  15223. ;;
  15224. esac
  15225. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15226. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15227. postinstall_cmds='chmod 555 $lib'
  15228. + # or fails outright, so override atomically:
  15229. + install_override_mode=555
  15230. ;;
  15231. interix[[3-9]]*)
  15232. @@ -2445,7 +2580,7 @@
  15233. ;;
  15234. # This must be Linux ELF.
  15235. -linux* | k*bsd*-gnu)
  15236. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15237. version_type=linux
  15238. need_lib_prefix=no
  15239. need_version=no
  15240. @@ -2454,16 +2589,21 @@
  15241. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15242. shlibpath_var=LD_LIBRARY_PATH
  15243. shlibpath_overrides_runpath=no
  15244. +
  15245. # Some binutils ld are patched to set DT_RUNPATH
  15246. - save_LDFLAGS=$LDFLAGS
  15247. - save_libdir=$libdir
  15248. - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  15249. - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  15250. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  15251. - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  15252. - [shlibpath_overrides_runpath=yes])])
  15253. - LDFLAGS=$save_LDFLAGS
  15254. - libdir=$save_libdir
  15255. + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  15256. + [lt_cv_shlibpath_overrides_runpath=no
  15257. + save_LDFLAGS=$LDFLAGS
  15258. + save_libdir=$libdir
  15259. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  15260. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  15261. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  15262. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  15263. + [lt_cv_shlibpath_overrides_runpath=yes])])
  15264. + LDFLAGS=$save_LDFLAGS
  15265. + libdir=$save_libdir
  15266. + ])
  15267. + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15268. # This implies no fast_install, which is unacceptable.
  15269. # Some rework will be needed to allow for fast_install
  15270. @@ -2472,7 +2612,7 @@
  15271. # Append ld.so.conf contents to the search path
  15272. if test -f /etc/ld.so.conf; then
  15273. - 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' ' '`
  15274. + 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;s/"//g;/^$/d' | tr '\n' ' '`
  15275. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15276. fi
  15277. @@ -2485,18 +2625,6 @@
  15278. dynamic_linker='GNU/Linux ld.so'
  15279. ;;
  15280. -netbsdelf*-gnu)
  15281. - version_type=linux
  15282. - need_lib_prefix=no
  15283. - need_version=no
  15284. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15285. - soname_spec='${libname}${release}${shared_ext}$major'
  15286. - shlibpath_var=LD_LIBRARY_PATH
  15287. - shlibpath_overrides_runpath=no
  15288. - hardcode_into_libs=yes
  15289. - dynamic_linker='NetBSD ld.elf_so'
  15290. - ;;
  15291. -
  15292. netbsd*)
  15293. version_type=sunos
  15294. need_lib_prefix=no
  15295. @@ -2717,6 +2845,8 @@
  15296. The last name is the one that the linker finds with -lNAME]])
  15297. _LT_DECL([], [soname_spec], [1],
  15298. [[The coded name of the library, if different from the real name]])
  15299. +_LT_DECL([], [install_override_mode], [1],
  15300. + [Permission mode override for installation of shared libraries])
  15301. _LT_DECL([], [postinstall_cmds], [2],
  15302. [Command to use after installation of a shared archive])
  15303. _LT_DECL([], [postuninstall_cmds], [2],
  15304. @@ -2829,6 +2959,7 @@
  15305. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  15306. m4_require([_LT_DECL_SED])dnl
  15307. m4_require([_LT_DECL_EGREP])dnl
  15308. +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  15309. AC_ARG_WITH([gnu-ld],
  15310. [AS_HELP_STRING([--with-gnu-ld],
  15311. @@ -2950,6 +3081,11 @@
  15312. esac
  15313. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  15314. case $host_os in
  15315. + cygwin* | mingw* | pw32* | cegcc*)
  15316. + if test "$GCC" != yes; then
  15317. + reload_cmds=false
  15318. + fi
  15319. + ;;
  15320. darwin*)
  15321. if test "$GCC" = yes; then
  15322. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  15323. @@ -2958,8 +3094,8 @@
  15324. fi
  15325. ;;
  15326. esac
  15327. -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  15328. -_LT_DECL([], [reload_cmds], [2])dnl
  15329. +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  15330. +_LT_TAGDECL([], [reload_cmds], [2])dnl
  15331. ])# _LT_CMD_RELOAD
  15332. @@ -3011,16 +3147,18 @@
  15333. # Base MSYS/MinGW do not provide the 'file' command needed by
  15334. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  15335. # unless we find 'file', for example because we are cross-compiling.
  15336. - if ( file / ) >/dev/null 2>&1; then
  15337. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  15338. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  15339. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  15340. lt_cv_file_magic_cmd='func_win32_libid'
  15341. else
  15342. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  15343. + # Keep this pattern in sync with the one in func_win32_libid.
  15344. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  15345. lt_cv_file_magic_cmd='$OBJDUMP -f'
  15346. fi
  15347. ;;
  15348. -cegcc)
  15349. +cegcc*)
  15350. # use the weaker test based on 'objdump'. See mingw*.
  15351. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  15352. lt_cv_file_magic_cmd='$OBJDUMP -f'
  15353. @@ -3050,6 +3188,10 @@
  15354. lt_cv_deplibs_check_method=pass_all
  15355. ;;
  15356. +haiku*)
  15357. + lt_cv_deplibs_check_method=pass_all
  15358. + ;;
  15359. +
  15360. hpux10.20* | hpux11*)
  15361. lt_cv_file_magic_cmd=/usr/bin/file
  15362. case $host_cpu in
  15363. @@ -3058,11 +3200,11 @@
  15364. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  15365. ;;
  15366. hppa*64*)
  15367. - [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]']
  15368. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  15369. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  15370. ;;
  15371. *)
  15372. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  15373. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  15374. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  15375. ;;
  15376. esac
  15377. @@ -3084,11 +3226,11 @@
  15378. ;;
  15379. # This must be Linux ELF.
  15380. -linux* | k*bsd*-gnu)
  15381. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15382. lt_cv_deplibs_check_method=pass_all
  15383. ;;
  15384. -netbsd* | netbsdelf*-gnu)
  15385. +netbsd*)
  15386. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  15387. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  15388. else
  15389. @@ -3162,6 +3304,21 @@
  15390. ;;
  15391. esac
  15392. ])
  15393. +
  15394. +file_magic_glob=
  15395. +want_nocaseglob=no
  15396. +if test "$build" = "$host"; then
  15397. + case $host_os in
  15398. + mingw* | pw32*)
  15399. + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  15400. + want_nocaseglob=yes
  15401. + else
  15402. + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  15403. + fi
  15404. + ;;
  15405. + esac
  15406. +fi
  15407. +
  15408. file_magic_cmd=$lt_cv_file_magic_cmd
  15409. deplibs_check_method=$lt_cv_deplibs_check_method
  15410. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  15411. @@ -3169,7 +3326,11 @@
  15412. _LT_DECL([], [deplibs_check_method], [1],
  15413. [Method to check whether dependent libraries are shared objects])
  15414. _LT_DECL([], [file_magic_cmd], [1],
  15415. - [Command to use when deplibs_check_method == "file_magic"])
  15416. + [Command to use when deplibs_check_method = "file_magic"])
  15417. +_LT_DECL([], [file_magic_glob], [1],
  15418. + [How to find potential files when deplibs_check_method = "file_magic"])
  15419. +_LT_DECL([], [want_nocaseglob], [1],
  15420. + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  15421. ])# _LT_CHECK_MAGIC_METHOD
  15422. @@ -3226,7 +3387,19 @@
  15423. NM="$lt_cv_path_NM"
  15424. else
  15425. # Didn't find any BSD compatible name lister, look for dumpbin.
  15426. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  15427. + if test -n "$DUMPBIN"; then :
  15428. + # Let the user override the test.
  15429. + else
  15430. + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  15431. + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  15432. + *COFF*)
  15433. + DUMPBIN="$DUMPBIN -symbols"
  15434. + ;;
  15435. + *)
  15436. + DUMPBIN=:
  15437. + ;;
  15438. + esac
  15439. + fi
  15440. AC_SUBST([DUMPBIN])
  15441. if test "$DUMPBIN" != ":"; then
  15442. NM="$DUMPBIN"
  15443. @@ -3239,13 +3412,13 @@
  15444. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  15445. [lt_cv_nm_interface="BSD nm"
  15446. echo "int some_variable = 0;" > conftest.$ac_ext
  15447. - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  15448. + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  15449. (eval "$ac_compile" 2>conftest.err)
  15450. cat conftest.err >&AS_MESSAGE_LOG_FD
  15451. - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  15452. + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  15453. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  15454. cat conftest.err >&AS_MESSAGE_LOG_FD
  15455. - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  15456. + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  15457. cat conftest.out >&AS_MESSAGE_LOG_FD
  15458. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  15459. lt_cv_nm_interface="MS dumpbin"
  15460. @@ -3260,23 +3433,84 @@
  15461. dnl AC_DEFUN([AM_PROG_NM], [])
  15462. dnl AC_DEFUN([AC_PROG_NM], [])
  15463. +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  15464. +# --------------------------------
  15465. +# how to determine the name of the shared library
  15466. +# associated with a specific link library.
  15467. +# -- PORTME fill in with the dynamic library characteristics
  15468. +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  15469. +[m4_require([_LT_DECL_EGREP])
  15470. +m4_require([_LT_DECL_OBJDUMP])
  15471. +m4_require([_LT_DECL_DLLTOOL])
  15472. +AC_CACHE_CHECK([how to associate runtime and link libraries],
  15473. +lt_cv_sharedlib_from_linklib_cmd,
  15474. +[lt_cv_sharedlib_from_linklib_cmd='unknown'
  15475. -# LT_LIB_M
  15476. -# --------
  15477. -# check for math library
  15478. -AC_DEFUN([LT_LIB_M],
  15479. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  15480. -LIBM=
  15481. -case $host in
  15482. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  15483. - # These system don't have libm, or don't need it
  15484. - ;;
  15485. -*-ncr-sysv4.3*)
  15486. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  15487. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  15488. +case $host_os in
  15489. +cygwin* | mingw* | pw32* | cegcc*)
  15490. + # two different shell functions defined in ltmain.sh
  15491. + # decide which to use based on capabilities of $DLLTOOL
  15492. + case `$DLLTOOL --help 2>&1` in
  15493. + *--identify-strict*)
  15494. + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  15495. + ;;
  15496. + *)
  15497. + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  15498. + ;;
  15499. + esac
  15500. ;;
  15501. *)
  15502. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  15503. + # fallback: assume linklib IS sharedlib
  15504. + lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  15505. + ;;
  15506. +esac
  15507. +])
  15508. +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  15509. +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  15510. +
  15511. +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  15512. + [Command to associate shared and link libraries])
  15513. +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  15514. +
  15515. +
  15516. +# _LT_PATH_MANIFEST_TOOL
  15517. +# ----------------------
  15518. +# locate the manifest tool
  15519. +m4_defun([_LT_PATH_MANIFEST_TOOL],
  15520. +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  15521. +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  15522. +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  15523. + [lt_cv_path_mainfest_tool=no
  15524. + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  15525. + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  15526. + cat conftest.err >&AS_MESSAGE_LOG_FD
  15527. + if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  15528. + lt_cv_path_mainfest_tool=yes
  15529. + fi
  15530. + rm -f conftest*])
  15531. +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  15532. + MANIFEST_TOOL=:
  15533. +fi
  15534. +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  15535. +])# _LT_PATH_MANIFEST_TOOL
  15536. +
  15537. +
  15538. +# LT_LIB_M
  15539. +# --------
  15540. +# check for math library
  15541. +AC_DEFUN([LT_LIB_M],
  15542. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  15543. +LIBM=
  15544. +case $host in
  15545. +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  15546. + # These system don't have libm, or don't need it
  15547. + ;;
  15548. +*-ncr-sysv4.3*)
  15549. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  15550. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  15551. + ;;
  15552. +*)
  15553. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  15554. ;;
  15555. esac
  15556. AC_SUBST([LIBM])
  15557. @@ -3296,7 +3530,12 @@
  15558. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  15559. if test "$GCC" = yes; then
  15560. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  15561. + case $cc_basename in
  15562. + nvcc*)
  15563. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  15564. + *)
  15565. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  15566. + esac
  15567. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  15568. lt_cv_prog_compiler_rtti_exceptions,
  15569. @@ -3313,6 +3552,7 @@
  15570. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  15571. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  15572. AC_REQUIRE([AC_PROG_CC])dnl
  15573. +AC_REQUIRE([AC_PROG_AWK])dnl
  15574. AC_REQUIRE([LT_PATH_NM])dnl
  15575. AC_REQUIRE([LT_PATH_LD])dnl
  15576. m4_require([_LT_DECL_SED])dnl
  15577. @@ -3380,8 +3620,8 @@
  15578. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  15579. # Transform an extracted symbol line into symbol name and symbol address
  15580. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  15581. -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'"
  15582. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  15583. +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'"
  15584. # Handle CRLF in mingw tool chain
  15585. opt_cr=
  15586. @@ -3417,6 +3657,7 @@
  15587. else
  15588. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  15589. fi
  15590. + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  15591. # Check to see that the pipe works correctly.
  15592. pipe_works=no
  15593. @@ -3438,7 +3679,7 @@
  15594. if AC_TRY_EVAL(ac_compile); then
  15595. # Now try to grab the symbols.
  15596. nlist=conftest.nm
  15597. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  15598. + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  15599. # Try sorting and uniquifying the output.
  15600. if sort "$nlist" | uniq > "$nlist"T; then
  15601. mv -f "$nlist"T "$nlist"
  15602. @@ -3450,6 +3691,18 @@
  15603. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  15604. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  15605. cat <<_LT_EOF > conftest.$ac_ext
  15606. +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  15607. +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  15608. +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  15609. + relocations are performed -- see ld's documentation on pseudo-relocs. */
  15610. +# define LT@&t@_DLSYM_CONST
  15611. +#elif defined(__osf__)
  15612. +/* This system does not cope well with relocations in const data. */
  15613. +# define LT@&t@_DLSYM_CONST
  15614. +#else
  15615. +# define LT@&t@_DLSYM_CONST const
  15616. +#endif
  15617. +
  15618. #ifdef __cplusplus
  15619. extern "C" {
  15620. #endif
  15621. @@ -3461,7 +3714,7 @@
  15622. cat <<_LT_EOF >> conftest.$ac_ext
  15623. /* The mapping between symbol names and symbols. */
  15624. -const struct {
  15625. +LT@&t@_DLSYM_CONST struct {
  15626. const char *name;
  15627. void *address;
  15628. }
  15629. @@ -3487,15 +3740,15 @@
  15630. _LT_EOF
  15631. # Now try linking the two files.
  15632. mv conftest.$ac_objext conftstm.$ac_objext
  15633. - lt_save_LIBS="$LIBS"
  15634. - lt_save_CFLAGS="$CFLAGS"
  15635. + lt_globsym_save_LIBS=$LIBS
  15636. + lt_globsym_save_CFLAGS=$CFLAGS
  15637. LIBS="conftstm.$ac_objext"
  15638. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  15639. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  15640. pipe_works=yes
  15641. fi
  15642. - LIBS="$lt_save_LIBS"
  15643. - CFLAGS="$lt_save_CFLAGS"
  15644. + LIBS=$lt_globsym_save_LIBS
  15645. + CFLAGS=$lt_globsym_save_CFLAGS
  15646. else
  15647. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  15648. fi
  15649. @@ -3528,6 +3781,13 @@
  15650. AC_MSG_RESULT(ok)
  15651. fi
  15652. +# Response file support.
  15653. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  15654. + nm_file_list_spec='@'
  15655. +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  15656. + nm_file_list_spec='@'
  15657. +fi
  15658. +
  15659. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  15660. [Take the output of nm and produce a listing of raw symbols and C names])
  15661. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  15662. @@ -3538,6 +3798,8 @@
  15663. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  15664. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  15665. [Transform the output of nm in a C name address pair when lib prefix is needed])
  15666. +_LT_DECL([], [nm_file_list_spec], [1],
  15667. + [Specify filename containing input files for $NM])
  15668. ]) # _LT_CMD_GLOBAL_SYMBOLS
  15669. @@ -3549,7 +3811,6 @@
  15670. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  15671. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  15672. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  15673. m4_if([$1], [CXX], [
  15674. # C++ specific cases for pic, static, wl, etc.
  15675. if test "$GXX" = yes; then
  15676. @@ -3600,6 +3861,11 @@
  15677. # DJGPP does not support shared libraries at all
  15678. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  15679. ;;
  15680. + haiku*)
  15681. + # PIC is the default for Haiku.
  15682. + # The "-static" flag exists, but is broken.
  15683. + _LT_TAGVAR(lt_prog_compiler_static, $1)=
  15684. + ;;
  15685. interix[[3-9]]*)
  15686. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15687. # Instead, we relocate shared libraries at runtime.
  15688. @@ -3649,6 +3915,12 @@
  15689. ;;
  15690. esac
  15691. ;;
  15692. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  15693. + # This hack is so that the source file can tell whether it is being
  15694. + # built for inclusion in a dll (and should export symbols for example).
  15695. + m4_if([$1], [GCJ], [],
  15696. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  15697. + ;;
  15698. dgux*)
  15699. case $cc_basename in
  15700. ec++*)
  15701. @@ -3705,7 +3977,7 @@
  15702. ;;
  15703. esac
  15704. ;;
  15705. - linux* | k*bsd*-gnu)
  15706. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15707. case $cc_basename in
  15708. KCC*)
  15709. # KAI C++ Compiler
  15710. @@ -3738,8 +4010,8 @@
  15711. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  15712. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  15713. ;;
  15714. - xlc* | xlC*)
  15715. - # IBM XL 8.0 on PPC
  15716. + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  15717. + # IBM XL 8.0, 9.0 on PPC and BlueGene
  15718. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  15719. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  15720. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  15721. @@ -3769,7 +4041,7 @@
  15722. ;;
  15723. esac
  15724. ;;
  15725. - netbsd* | netbsdelf*-gnu)
  15726. + netbsd*)
  15727. ;;
  15728. *qnx* | *nto*)
  15729. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15730. @@ -3801,7 +4073,7 @@
  15731. ;;
  15732. solaris*)
  15733. case $cc_basename in
  15734. - CC*)
  15735. + CC* | sunCC*)
  15736. # Sun C++ 4.2, 5.x and Centerline C++
  15737. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  15738. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  15739. @@ -3905,6 +4177,12 @@
  15740. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  15741. ;;
  15742. + haiku*)
  15743. + # PIC is the default for Haiku.
  15744. + # The "-static" flag exists, but is broken.
  15745. + _LT_TAGVAR(lt_prog_compiler_static, $1)=
  15746. + ;;
  15747. +
  15748. hpux*)
  15749. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  15750. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  15751. @@ -3947,6 +4225,13 @@
  15752. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  15753. ;;
  15754. esac
  15755. +
  15756. + case $cc_basename in
  15757. + nvcc*) # Cuda Compiler Driver 2.2
  15758. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  15759. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
  15760. + ;;
  15761. + esac
  15762. else
  15763. # PORTME Check for flag to pass linker flags through the system compiler.
  15764. case $host_os in
  15765. @@ -3989,7 +4274,7 @@
  15766. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  15767. ;;
  15768. - linux* | k*bsd*-gnu)
  15769. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15770. case $cc_basename in
  15771. # old Intel for x86_64 which still supported -KPIC.
  15772. ecc*)
  15773. @@ -4010,7 +4295,13 @@
  15774. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  15775. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  15776. ;;
  15777. - pgcc* | pgf77* | pgf90* | pgf95*)
  15778. + nagfor*)
  15779. + # NAG Fortran compiler
  15780. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  15781. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  15782. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  15783. + ;;
  15784. + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  15785. # Portland Group compilers (*not* the Pentium gcc compiler,
  15786. # which looks to be a dead project)
  15787. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  15788. @@ -4022,25 +4313,25 @@
  15789. # All Alpha code is PIC.
  15790. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  15791. ;;
  15792. - xl*)
  15793. - # IBM XL C 8.0/Fortran 10.1 on PPC
  15794. + xl* | bgxl* | bgf* | mpixl*)
  15795. + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  15796. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  15797. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  15798. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  15799. ;;
  15800. *)
  15801. case `$CC -V 2>&1 | sed 5q` in
  15802. - *Sun\ C*)
  15803. - # Sun C 5.9
  15804. + *Sun\ F* | *Sun*Fortran*)
  15805. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15806. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  15807. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  15808. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  15809. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  15810. ;;
  15811. - *Sun\ F*)
  15812. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15813. + *Sun\ C*)
  15814. + # Sun C 5.9
  15815. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  15816. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  15817. - _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  15818. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  15819. ;;
  15820. esac
  15821. ;;
  15822. @@ -4072,7 +4363,7 @@
  15823. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  15824. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  15825. case $cc_basename in
  15826. - f77* | f90* | f95*)
  15827. + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  15828. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  15829. *)
  15830. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  15831. @@ -4129,9 +4420,11 @@
  15832. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  15833. ;;
  15834. esac
  15835. -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  15836. -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  15837. - [How to pass a linker flag through the compiler])
  15838. +
  15839. +AC_CACHE_CHECK([for $compiler option to produce PIC],
  15840. + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  15841. + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  15842. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  15843. #
  15844. # Check to make sure the PIC flag actually works.
  15845. @@ -4150,6 +4443,8 @@
  15846. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  15847. [Additional compiler flags for building library objects])
  15848. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  15849. + [How to pass a linker flag through the compiler])
  15850. #
  15851. # Check to make sure the static flag actually works.
  15852. #
  15853. @@ -4170,6 +4465,7 @@
  15854. m4_defun([_LT_LINKER_SHLIBS],
  15855. [AC_REQUIRE([LT_PATH_LD])dnl
  15856. AC_REQUIRE([LT_PATH_NM])dnl
  15857. +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  15858. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15859. m4_require([_LT_DECL_EGREP])dnl
  15860. m4_require([_LT_DECL_SED])dnl
  15861. @@ -4178,30 +4474,35 @@
  15862. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  15863. m4_if([$1], [CXX], [
  15864. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15865. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  15866. case $host_os in
  15867. aix[[4-9]]*)
  15868. # If we're using GNU nm, then we don't want the "-C" option.
  15869. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15870. + # Also, AIX nm treats weak defined symbols like other global defined
  15871. + # symbols, whereas GNU nm marks them as "W".
  15872. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15873. - _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'
  15874. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15875. else
  15876. _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'
  15877. fi
  15878. ;;
  15879. pw32*)
  15880. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  15881. - ;;
  15882. + ;;
  15883. cygwin* | mingw* | cegcc*)
  15884. - _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'
  15885. - ;;
  15886. - linux* | k*bsd*-gnu)
  15887. - _LT_TAGVAR(link_all_deplibs, $1)=no
  15888. - ;;
  15889. + case $cc_basename in
  15890. + cl*) ;;
  15891. + *)
  15892. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  15893. + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  15894. + ;;
  15895. + esac
  15896. + ;;
  15897. *)
  15898. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15899. - ;;
  15900. + ;;
  15901. esac
  15902. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  15903. ], [
  15904. runpath_var=
  15905. _LT_TAGVAR(allow_undefined_flag, $1)=
  15906. @@ -4261,13 +4562,36 @@
  15907. openbsd*)
  15908. with_gnu_ld=no
  15909. ;;
  15910. - linux* | k*bsd*-gnu)
  15911. - _LT_TAGVAR(link_all_deplibs, $1)=no
  15912. - ;;
  15913. esac
  15914. _LT_TAGVAR(ld_shlibs, $1)=yes
  15915. +
  15916. + # On some targets, GNU ld is compatible enough with the native linker
  15917. + # that we're better off using the native interface for both.
  15918. + lt_use_gnu_ld_interface=no
  15919. if test "$with_gnu_ld" = yes; then
  15920. + case $host_os in
  15921. + aix*)
  15922. + # The AIX port of GNU ld has always aspired to compatibility
  15923. + # with the native linker. However, as the warning in the GNU ld
  15924. + # block says, versions before 2.19.5* couldn't really create working
  15925. + # shared libraries, regardless of the interface used.
  15926. + case `$LD -v 2>&1` in
  15927. + *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  15928. + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  15929. + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  15930. + *)
  15931. + lt_use_gnu_ld_interface=yes
  15932. + ;;
  15933. + esac
  15934. + ;;
  15935. + *)
  15936. + lt_use_gnu_ld_interface=yes
  15937. + ;;
  15938. + esac
  15939. + fi
  15940. +
  15941. + if test "$lt_use_gnu_ld_interface" = yes; then
  15942. # If archive_cmds runs LD, not CC, wlarc should be empty
  15943. wlarc='${wl}'
  15944. @@ -4285,6 +4609,7 @@
  15945. fi
  15946. supports_anon_versioning=no
  15947. case `$LD -v 2>&1` in
  15948. + *GNU\ gold*) supports_anon_versioning=yes ;;
  15949. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  15950. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15951. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15952. @@ -4300,11 +4625,12 @@
  15953. _LT_TAGVAR(ld_shlibs, $1)=no
  15954. cat <<_LT_EOF 1>&2
  15955. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15956. +*** Warning: the GNU linker, at least up to release 2.19, is reported
  15957. *** to be unable to reliably create shared libraries on AIX.
  15958. *** Therefore, libtool is disabling shared libraries support. If you
  15959. -*** really care for shared libraries, you may want to modify your PATH
  15960. -*** so that a non-GNU linker is found, and then restart.
  15961. +*** really care for shared libraries, you may want to install binutils
  15962. +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  15963. +*** You will then need to restart the configuration process.
  15964. _LT_EOF
  15965. fi
  15966. @@ -4340,10 +4666,12 @@
  15967. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  15968. # as there is no search path for DLLs.
  15969. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15970. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  15971. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  15972. _LT_TAGVAR(always_export_symbols, $1)=no
  15973. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  15974. - _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'
  15975. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  15976. + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  15977. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  15978. _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'
  15979. @@ -4361,6 +4689,11 @@
  15980. fi
  15981. ;;
  15982. + haiku*)
  15983. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15984. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  15985. + ;;
  15986. +
  15987. interix[[3-9]]*)
  15988. _LT_TAGVAR(hardcode_direct, $1)=no
  15989. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  15990. @@ -4376,7 +4709,7 @@
  15991. _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'
  15992. ;;
  15993. - gnu* | linux* | tpf* | k*bsd*-gnu)
  15994. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  15995. tmp_diet=no
  15996. if test "$host_os" = linux-dietlibc; then
  15997. case $cc_basename in
  15998. @@ -4386,15 +4719,16 @@
  15999. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  16000. && test "$tmp_diet" = no
  16001. then
  16002. - tmp_addflag=
  16003. + tmp_addflag=' $pic_flag'
  16004. tmp_sharedflag='-shared'
  16005. case $cc_basename,$host_cpu in
  16006. pgcc*) # Portland Group C compiler
  16007. - _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'
  16008. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16009. tmp_addflag=' $pic_flag'
  16010. ;;
  16011. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  16012. - _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'
  16013. + pgf77* | pgf90* | pgf95* | pgfortran*)
  16014. + # Portland Group f77 and f90 compilers
  16015. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16016. tmp_addflag=' $pic_flag -Mnomain' ;;
  16017. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  16018. tmp_addflag=' -i_dynamic' ;;
  16019. @@ -4405,13 +4739,17 @@
  16020. lf95*) # Lahey Fortran 8.1
  16021. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  16022. tmp_sharedflag='--shared' ;;
  16023. - xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  16024. + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  16025. tmp_sharedflag='-qmkshrobj'
  16026. tmp_addflag= ;;
  16027. + nvcc*) # Cuda Compiler Driver 2.2
  16028. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16029. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  16030. + ;;
  16031. esac
  16032. case `$CC -V 2>&1 | sed 5q` in
  16033. *Sun\ C*) # Sun C 5.9
  16034. - _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'
  16035. + _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16036. _LT_TAGVAR(compiler_needs_object, $1)=yes
  16037. tmp_sharedflag='-G' ;;
  16038. *Sun\ F*) # Sun Fortran 8.3
  16039. @@ -4427,17 +4765,17 @@
  16040. fi
  16041. case $cc_basename in
  16042. - xlf*)
  16043. + xlf* | bgf* | bgxlf* | mpixlf*)
  16044. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  16045. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  16046. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  16047. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  16048. - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  16049. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  16050. if test "x$supports_anon_versioning" = xyes; then
  16051. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  16052. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16053. echo "local: *; };" >> $output_objdir/$libname.ver~
  16054. - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  16055. + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  16056. fi
  16057. ;;
  16058. esac
  16059. @@ -4446,13 +4784,13 @@
  16060. fi
  16061. ;;
  16062. - netbsd* | netbsdelf*-gnu)
  16063. + netbsd*)
  16064. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16065. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  16066. wlarc=
  16067. else
  16068. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16069. - _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'
  16070. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16071. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16072. fi
  16073. ;;
  16074. @@ -4470,8 +4808,8 @@
  16075. _LT_EOF
  16076. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  16077. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16078. - _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'
  16079. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16080. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16081. else
  16082. _LT_TAGVAR(ld_shlibs, $1)=no
  16083. fi
  16084. @@ -4517,8 +4855,8 @@
  16085. *)
  16086. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  16087. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16088. - _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'
  16089. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16090. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16091. else
  16092. _LT_TAGVAR(ld_shlibs, $1)=no
  16093. fi
  16094. @@ -4558,8 +4896,10 @@
  16095. else
  16096. # If we're using GNU nm, then we don't want the "-C" option.
  16097. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16098. + # Also, AIX nm treats weak defined symbols like other global
  16099. + # defined symbols, whereas GNU nm marks them as "W".
  16100. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  16101. - _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'
  16102. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  16103. else
  16104. _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'
  16105. fi
  16106. @@ -4621,7 +4961,6 @@
  16107. if test "$aix_use_runtimelinking" = yes; then
  16108. shared_flag="$shared_flag "'${wl}-G'
  16109. fi
  16110. - _LT_TAGVAR(link_all_deplibs, $1)=no
  16111. else
  16112. # not using gcc
  16113. if test "$host_cpu" = ia64; then
  16114. @@ -4647,9 +4986,9 @@
  16115. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  16116. # Determine the default libpath from the value encoded in an
  16117. # empty executable.
  16118. - _LT_SYS_MODULE_PATH_AIX
  16119. + _LT_SYS_MODULE_PATH_AIX([$1])
  16120. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  16121. - _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"
  16122. + _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16123. else
  16124. if test "$host_cpu" = ia64; then
  16125. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  16126. @@ -4658,14 +4997,19 @@
  16127. else
  16128. # Determine the default libpath from the value encoded in an
  16129. # empty executable.
  16130. - _LT_SYS_MODULE_PATH_AIX
  16131. + _LT_SYS_MODULE_PATH_AIX([$1])
  16132. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  16133. # Warning - without using the other run time loading flags,
  16134. # -berok will link without error, but may produce a broken library.
  16135. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  16136. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  16137. - # Exported symbols can be pulled into shared objects from archives
  16138. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  16139. + if test "$with_gnu_ld" = yes; then
  16140. + # We only use this code for GNU lds that support --whole-archive.
  16141. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16142. + else
  16143. + # Exported symbols can be pulled into shared objects from archives
  16144. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  16145. + fi
  16146. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  16147. # This is similar to how AIX traditionally builds its shared libraries.
  16148. _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'
  16149. @@ -4697,20 +5041,63 @@
  16150. # Microsoft Visual C++.
  16151. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16152. # no search path for DLLs.
  16153. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  16154. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16155. - # Tell ltmain to make .lib files, not .a files.
  16156. - libext=lib
  16157. - # Tell ltmain to make .dll files, not .so files.
  16158. - shrext_cmds=".dll"
  16159. - # FIXME: Setting linknames here is a bad hack.
  16160. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16161. - # The linker will automatically build a .lib file if we build a DLL.
  16162. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  16163. - # FIXME: Should let the user specify the lib program.
  16164. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16165. - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  16166. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16167. + case $cc_basename in
  16168. + cl*)
  16169. + # Native MSVC
  16170. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  16171. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16172. + _LT_TAGVAR(always_export_symbols, $1)=yes
  16173. + _LT_TAGVAR(file_list_spec, $1)='@'
  16174. + # Tell ltmain to make .lib files, not .a files.
  16175. + libext=lib
  16176. + # Tell ltmain to make .dll files, not .so files.
  16177. + shrext_cmds=".dll"
  16178. + # FIXME: Setting linknames here is a bad hack.
  16179. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  16180. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16181. + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  16182. + else
  16183. + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  16184. + fi~
  16185. + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  16186. + linknames='
  16187. + # The linker will not automatically build a static lib if we build a DLL.
  16188. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  16189. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16190. + _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'
  16191. + # Don't use ranlib
  16192. + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  16193. + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  16194. + lt_tool_outputfile="@TOOL_OUTPUT@"~
  16195. + case $lt_outputfile in
  16196. + *.exe|*.EXE) ;;
  16197. + *)
  16198. + lt_outputfile="$lt_outputfile.exe"
  16199. + lt_tool_outputfile="$lt_tool_outputfile.exe"
  16200. + ;;
  16201. + esac~
  16202. + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  16203. + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  16204. + $RM "$lt_outputfile.manifest";
  16205. + fi'
  16206. + ;;
  16207. + *)
  16208. + # Assume MSVC wrapper
  16209. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  16210. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16211. + # Tell ltmain to make .lib files, not .a files.
  16212. + libext=lib
  16213. + # Tell ltmain to make .dll files, not .so files.
  16214. + shrext_cmds=".dll"
  16215. + # FIXME: Setting linknames here is a bad hack.
  16216. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  16217. + # The linker will automatically build a .lib file if we build a DLL.
  16218. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  16219. + # FIXME: Should let the user specify the lib program.
  16220. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16221. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16222. + ;;
  16223. + esac
  16224. ;;
  16225. darwin* | rhapsody*)
  16226. @@ -4748,7 +5135,7 @@
  16227. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16228. freebsd* | dragonfly*)
  16229. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16230. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16231. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  16232. _LT_TAGVAR(hardcode_direct, $1)=yes
  16233. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  16234. @@ -4756,7 +5143,7 @@
  16235. hpux9*)
  16236. if test "$GCC" = yes; then
  16237. - _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'
  16238. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16239. else
  16240. _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'
  16241. fi
  16242. @@ -4771,8 +5158,8 @@
  16243. ;;
  16244. hpux10*)
  16245. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16246. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16247. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  16248. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16249. else
  16250. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16251. fi
  16252. @@ -4790,16 +5177,16 @@
  16253. ;;
  16254. hpux11*)
  16255. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16256. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  16257. case $host_cpu in
  16258. hppa*64*)
  16259. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16260. ;;
  16261. ia64*)
  16262. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16263. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16264. ;;
  16265. *)
  16266. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16267. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16268. ;;
  16269. esac
  16270. else
  16271. @@ -4811,7 +5198,14 @@
  16272. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16273. ;;
  16274. *)
  16275. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16276. + m4_if($1, [], [
  16277. + # Older versions of the 11.00 compiler do not understand -b yet
  16278. + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  16279. + _LT_LINKER_OPTION([if $CC understands -b],
  16280. + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  16281. + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  16282. + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  16283. + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  16284. ;;
  16285. esac
  16286. fi
  16287. @@ -4839,19 +5233,34 @@
  16288. irix5* | irix6* | nonstopux*)
  16289. if test "$GCC" = yes; then
  16290. - _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'
  16291. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16292. # Try to use the -exported_symbol ld option, if it does not
  16293. # work, assume that -exports_file does not work either and
  16294. # implicitly export all symbols.
  16295. - save_LDFLAGS="$LDFLAGS"
  16296. - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  16297. - AC_LINK_IFELSE(int foo(void) {},
  16298. - _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'
  16299. - )
  16300. - LDFLAGS="$save_LDFLAGS"
  16301. + # This should be the same for all languages, so no per-tag cache variable.
  16302. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  16303. + [lt_cv_irix_exported_symbol],
  16304. + [save_LDFLAGS="$LDFLAGS"
  16305. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  16306. + AC_LINK_IFELSE(
  16307. + [AC_LANG_SOURCE(
  16308. + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  16309. + [C++], [[int foo (void) { return 0; }]],
  16310. + [Fortran 77], [[
  16311. + subroutine foo
  16312. + end]],
  16313. + [Fortran], [[
  16314. + subroutine foo
  16315. + end]])])],
  16316. + [lt_cv_irix_exported_symbol=yes],
  16317. + [lt_cv_irix_exported_symbol=no])
  16318. + LDFLAGS="$save_LDFLAGS"])
  16319. + if test "$lt_cv_irix_exported_symbol" = yes; then
  16320. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  16321. + fi
  16322. else
  16323. - _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'
  16324. - _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'
  16325. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16326. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  16327. fi
  16328. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  16329. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16330. @@ -4860,7 +5269,7 @@
  16331. _LT_TAGVAR(link_all_deplibs, $1)=yes
  16332. ;;
  16333. - netbsd* | netbsdelf*-gnu)
  16334. + netbsd*)
  16335. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16336. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16337. else
  16338. @@ -4913,17 +5322,17 @@
  16339. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  16340. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  16341. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16342. - _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'
  16343. + _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'
  16344. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16345. ;;
  16346. osf3*)
  16347. if test "$GCC" = yes; then
  16348. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  16349. - _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'
  16350. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16351. else
  16352. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  16353. - _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'
  16354. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16355. fi
  16356. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  16357. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16358. @@ -4933,13 +5342,13 @@
  16359. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16360. if test "$GCC" = yes; then
  16361. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  16362. - _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'
  16363. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16364. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16365. else
  16366. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  16367. - _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'
  16368. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16369. _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~
  16370. - $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'
  16371. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  16372. # Both c and cxx compiler support -rpath directly
  16373. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  16374. @@ -4952,9 +5361,9 @@
  16375. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  16376. if test "$GCC" = yes; then
  16377. wlarc='${wl}'
  16378. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16379. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16380. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16381. - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  16382. + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  16383. else
  16384. case `$CC -V 2>&1` in
  16385. *"Compilers 5.0"*)
  16386. @@ -5130,36 +5539,38 @@
  16387. # Test whether the compiler implicitly links with -lc since on some
  16388. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16389. # to ld, don't add -lc before -lgcc.
  16390. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  16391. - $RM conftest*
  16392. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16393. -
  16394. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  16395. - soname=conftest
  16396. - lib=conftest
  16397. - libobjs=conftest.$ac_objext
  16398. - deplibs=
  16399. - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  16400. - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  16401. - compiler_flags=-v
  16402. - linker_flags=-v
  16403. - verstring=
  16404. - output_objdir=.
  16405. - libname=conftest
  16406. - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  16407. - _LT_TAGVAR(allow_undefined_flag, $1)=
  16408. - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  16409. - then
  16410. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  16411. - else
  16412. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  16413. - fi
  16414. - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  16415. - else
  16416. - cat conftest.err 1>&5
  16417. - fi
  16418. - $RM conftest*
  16419. - AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  16420. + AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  16421. + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  16422. + [$RM conftest*
  16423. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16424. +
  16425. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  16426. + soname=conftest
  16427. + lib=conftest
  16428. + libobjs=conftest.$ac_objext
  16429. + deplibs=
  16430. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  16431. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  16432. + compiler_flags=-v
  16433. + linker_flags=-v
  16434. + verstring=
  16435. + output_objdir=.
  16436. + libname=conftest
  16437. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  16438. + _LT_TAGVAR(allow_undefined_flag, $1)=
  16439. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  16440. + then
  16441. + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  16442. + else
  16443. + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  16444. + fi
  16445. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  16446. + else
  16447. + cat conftest.err 1>&5
  16448. + fi
  16449. + $RM conftest*
  16450. + ])
  16451. + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  16452. ;;
  16453. esac
  16454. fi
  16455. @@ -5224,8 +5635,6 @@
  16456. to runtime path list])
  16457. _LT_TAGDECL([], [link_all_deplibs], [0],
  16458. [Whether libtool must link a program against all its dependency libraries])
  16459. -_LT_TAGDECL([], [fix_srcfile_path], [1],
  16460. - [Fix the shell variable $srcfile for the compiler])
  16461. _LT_TAGDECL([], [always_export_symbols], [0],
  16462. [Set to "yes" if exported symbols are required])
  16463. _LT_TAGDECL([], [export_symbols_cmds], [2],
  16464. @@ -5236,6 +5645,8 @@
  16465. [Symbols that must always be exported])
  16466. _LT_TAGDECL([], [prelink_cmds], [2],
  16467. [Commands necessary for linking programs (against libraries) with templates])
  16468. +_LT_TAGDECL([], [postlink_cmds], [2],
  16469. + [Commands necessary for finishing linking programs])
  16470. _LT_TAGDECL([], [file_list_spec], [1],
  16471. [Specify filename containing input files])
  16472. dnl FIXME: Not yet implemented
  16473. @@ -5329,37 +5740,22 @@
  16474. ])# _LT_LANG_C_CONFIG
  16475. -# _LT_PROG_CXX
  16476. -# ------------
  16477. -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  16478. -# compiler, we have our own version here.
  16479. -m4_defun([_LT_PROG_CXX],
  16480. -[
  16481. -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  16482. -AC_PROG_CXX
  16483. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  16484. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  16485. - (test "X$CXX" != "Xg++"))) ; then
  16486. - AC_PROG_CXXCPP
  16487. -else
  16488. - _lt_caught_CXX_error=yes
  16489. -fi
  16490. -popdef([AC_MSG_ERROR])
  16491. -])# _LT_PROG_CXX
  16492. -
  16493. -dnl aclocal-1.4 backwards compatibility:
  16494. -dnl AC_DEFUN([_LT_PROG_CXX], [])
  16495. -
  16496. -
  16497. # _LT_LANG_CXX_CONFIG([TAG])
  16498. # --------------------------
  16499. # Ensure that the configuration variables for a C++ compiler are suitably
  16500. # defined. These variables are subsequently used by _LT_CONFIG to write
  16501. # the compiler configuration to `libtool'.
  16502. m4_defun([_LT_LANG_CXX_CONFIG],
  16503. -[AC_REQUIRE([_LT_PROG_CXX])dnl
  16504. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  16505. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  16506. m4_require([_LT_DECL_EGREP])dnl
  16507. +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  16508. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  16509. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  16510. + (test "X$CXX" != "Xg++"))) ; then
  16511. + AC_PROG_CXXCPP
  16512. +else
  16513. + _lt_caught_CXX_error=yes
  16514. +fi
  16515. AC_LANG_PUSH(C++)
  16516. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  16517. @@ -5381,6 +5777,8 @@
  16518. _LT_TAGVAR(module_expsym_cmds, $1)=
  16519. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  16520. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  16521. +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  16522. +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  16523. _LT_TAGVAR(no_undefined_flag, $1)=
  16524. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  16525. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  16526. @@ -5412,6 +5810,7 @@
  16527. # Allow CC to be a program name with arguments.
  16528. lt_save_CC=$CC
  16529. + lt_save_CFLAGS=$CFLAGS
  16530. lt_save_LD=$LD
  16531. lt_save_GCC=$GCC
  16532. GCC=$GXX
  16533. @@ -5429,6 +5828,7 @@
  16534. fi
  16535. test -z "${LDCXX+set}" || LD=$LDCXX
  16536. CC=${CXX-"c++"}
  16537. + CFLAGS=$CXXFLAGS
  16538. compiler=$CC
  16539. _LT_TAGVAR(compiler, $1)=$CC
  16540. _LT_CC_BASENAME([$compiler])
  16541. @@ -5450,8 +5850,8 @@
  16542. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  16543. # archiving commands below assume that GNU ld is being used.
  16544. if test "$with_gnu_ld" = yes; then
  16545. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16546. - _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'
  16547. + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16548. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16549. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16550. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  16551. @@ -5483,7 +5883,7 @@
  16552. # Commands to make compiler produce verbose output that lists
  16553. # what "hidden" libraries, object files and flags are used when
  16554. # linking a shared library.
  16555. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  16556. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16557. else
  16558. GXX=no
  16559. @@ -5592,10 +5992,10 @@
  16560. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  16561. # Determine the default libpath from the value encoded in an empty
  16562. # executable.
  16563. - _LT_SYS_MODULE_PATH_AIX
  16564. + _LT_SYS_MODULE_PATH_AIX([$1])
  16565. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  16566. - _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"
  16567. + _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16568. else
  16569. if test "$host_cpu" = ia64; then
  16570. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  16571. @@ -5604,14 +6004,19 @@
  16572. else
  16573. # Determine the default libpath from the value encoded in an
  16574. # empty executable.
  16575. - _LT_SYS_MODULE_PATH_AIX
  16576. + _LT_SYS_MODULE_PATH_AIX([$1])
  16577. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  16578. # Warning - without using the other run time loading flags,
  16579. # -berok will link without error, but may produce a broken library.
  16580. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  16581. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  16582. - # Exported symbols can be pulled into shared objects from archives
  16583. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  16584. + if test "$with_gnu_ld" = yes; then
  16585. + # We only use this code for GNU lds that support --whole-archive.
  16586. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16587. + else
  16588. + # Exported symbols can be pulled into shared objects from archives
  16589. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  16590. + fi
  16591. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  16592. # This is similar to how AIX traditionally builds its shared
  16593. # libraries.
  16594. @@ -5641,28 +6046,75 @@
  16595. ;;
  16596. cygwin* | mingw* | pw32* | cegcc*)
  16597. - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  16598. - # as there is no search path for DLLs.
  16599. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  16600. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16601. - _LT_TAGVAR(always_export_symbols, $1)=no
  16602. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16603. -
  16604. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  16605. - _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'
  16606. - # If the export-symbols file already is a .def file (1st line
  16607. - # is EXPORTS), use it as is; otherwise, prepend...
  16608. - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16609. - cp $export_symbols $output_objdir/$soname.def;
  16610. - else
  16611. - echo EXPORTS > $output_objdir/$soname.def;
  16612. - cat $export_symbols >> $output_objdir/$soname.def;
  16613. - fi~
  16614. - $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'
  16615. - else
  16616. - _LT_TAGVAR(ld_shlibs, $1)=no
  16617. - fi
  16618. - ;;
  16619. + case $GXX,$cc_basename in
  16620. + ,cl* | no,cl*)
  16621. + # Native MSVC
  16622. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  16623. + # no search path for DLLs.
  16624. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  16625. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16626. + _LT_TAGVAR(always_export_symbols, $1)=yes
  16627. + _LT_TAGVAR(file_list_spec, $1)='@'
  16628. + # Tell ltmain to make .lib files, not .a files.
  16629. + libext=lib
  16630. + # Tell ltmain to make .dll files, not .so files.
  16631. + shrext_cmds=".dll"
  16632. + # FIXME: Setting linknames here is a bad hack.
  16633. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  16634. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16635. + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  16636. + else
  16637. + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  16638. + fi~
  16639. + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  16640. + linknames='
  16641. + # The linker will not automatically build a static lib if we build a DLL.
  16642. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  16643. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16644. + # Don't use ranlib
  16645. + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  16646. + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  16647. + lt_tool_outputfile="@TOOL_OUTPUT@"~
  16648. + case $lt_outputfile in
  16649. + *.exe|*.EXE) ;;
  16650. + *)
  16651. + lt_outputfile="$lt_outputfile.exe"
  16652. + lt_tool_outputfile="$lt_tool_outputfile.exe"
  16653. + ;;
  16654. + esac~
  16655. + func_to_tool_file "$lt_outputfile"~
  16656. + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  16657. + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  16658. + $RM "$lt_outputfile.manifest";
  16659. + fi'
  16660. + ;;
  16661. + *)
  16662. + # g++
  16663. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  16664. + # as there is no search path for DLLs.
  16665. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  16666. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  16667. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  16668. + _LT_TAGVAR(always_export_symbols, $1)=no
  16669. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  16670. +
  16671. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  16672. + _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'
  16673. + # If the export-symbols file already is a .def file (1st line
  16674. + # is EXPORTS), use it as is; otherwise, prepend...
  16675. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16676. + cp $export_symbols $output_objdir/$soname.def;
  16677. + else
  16678. + echo EXPORTS > $output_objdir/$soname.def;
  16679. + cat $export_symbols >> $output_objdir/$soname.def;
  16680. + fi~
  16681. + $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'
  16682. + else
  16683. + _LT_TAGVAR(ld_shlibs, $1)=no
  16684. + fi
  16685. + ;;
  16686. + esac
  16687. + ;;
  16688. darwin* | rhapsody*)
  16689. _LT_DARWIN_LINKER_FEATURES($1)
  16690. ;;
  16691. @@ -5704,6 +6156,11 @@
  16692. gnu*)
  16693. ;;
  16694. + haiku*)
  16695. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16696. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  16697. + ;;
  16698. +
  16699. hpux9*)
  16700. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  16701. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  16702. @@ -5728,11 +6185,11 @@
  16703. # explicitly linking system object files so we need to strip them
  16704. # from the output so that they don't get included in the library
  16705. # dependencies.
  16706. - 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'
  16707. + 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; func_echo_all "$list"'
  16708. ;;
  16709. *)
  16710. if test "$GXX" = yes; then
  16711. - _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'
  16712. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  16713. else
  16714. # FIXME: insert proper C++ library support
  16715. _LT_TAGVAR(ld_shlibs, $1)=no
  16716. @@ -5793,7 +6250,7 @@
  16717. # explicitly linking system object files so we need to strip them
  16718. # from the output so that they don't get included in the library
  16719. # dependencies.
  16720. - 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'
  16721. + 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; func_echo_all "$list"'
  16722. ;;
  16723. *)
  16724. if test "$GXX" = yes; then
  16725. @@ -5803,10 +6260,10 @@
  16726. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16727. ;;
  16728. ia64*)
  16729. - _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'
  16730. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16731. ;;
  16732. *)
  16733. - _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'
  16734. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16735. ;;
  16736. esac
  16737. fi
  16738. @@ -5836,7 +6293,7 @@
  16739. case $cc_basename in
  16740. CC*)
  16741. # SGI C++
  16742. - _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'
  16743. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16744. # Archives containing C++ object files must be created using
  16745. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  16746. @@ -5847,9 +6304,9 @@
  16747. *)
  16748. if test "$GXX" = yes; then
  16749. if test "$with_gnu_ld" = no; then
  16750. - _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'
  16751. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16752. else
  16753. - _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'
  16754. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  16755. fi
  16756. fi
  16757. _LT_TAGVAR(link_all_deplibs, $1)=yes
  16758. @@ -5860,7 +6317,7 @@
  16759. _LT_TAGVAR(inherit_rpath, $1)=yes
  16760. ;;
  16761. - linux* | k*bsd*-gnu)
  16762. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16763. case $cc_basename in
  16764. KCC*)
  16765. # Kuck and Associates, Inc. (KAI) C++ Compiler
  16766. @@ -5878,7 +6335,7 @@
  16767. # explicitly linking system object files so we need to strip them
  16768. # from the output so that they don't get included in the library
  16769. # dependencies.
  16770. - 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'
  16771. + 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; func_echo_all "$list"'
  16772. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  16773. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  16774. @@ -5915,26 +6372,26 @@
  16775. pgCC* | pgcpp*)
  16776. # Portland Group C++ compiler
  16777. case `$CC -V` in
  16778. - *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  16779. + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  16780. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  16781. rm -rf $tpldir~
  16782. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  16783. - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  16784. + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  16785. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  16786. rm -rf $tpldir~
  16787. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  16788. - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  16789. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  16790. $RANLIB $oldlib'
  16791. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  16792. rm -rf $tpldir~
  16793. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16794. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16795. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16796. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  16797. rm -rf $tpldir~
  16798. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16799. - $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'
  16800. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  16801. ;;
  16802. - *) # Version 6 will use weak symbols
  16803. + *) # Version 6 and above use weak symbols
  16804. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16805. _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'
  16806. ;;
  16807. @@ -5942,7 +6399,7 @@
  16808. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  16809. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  16810. - _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'
  16811. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16812. ;;
  16813. cxx*)
  16814. # Compaq C++
  16815. @@ -5961,9 +6418,9 @@
  16816. # explicitly linking system object files so we need to strip them
  16817. # from the output so that they don't get included in the library
  16818. # dependencies.
  16819. - 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'
  16820. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
  16821. ;;
  16822. - xl*)
  16823. + xl* | mpixl* | bgxl*)
  16824. # IBM XL 8.0 on PPC, with GNU ld
  16825. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16826. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  16827. @@ -5983,13 +6440,13 @@
  16828. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16829. _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'
  16830. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  16831. - _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'
  16832. + _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16833. _LT_TAGVAR(compiler_needs_object, $1)=yes
  16834. # Not sure whether something based on
  16835. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  16836. # would be better.
  16837. - output_verbose_link_cmd='echo'
  16838. + output_verbose_link_cmd='func_echo_all'
  16839. # Archives containing C++ object files must be created using
  16840. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  16841. @@ -6058,7 +6515,7 @@
  16842. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  16843. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16844. fi
  16845. - output_verbose_link_cmd=echo
  16846. + output_verbose_link_cmd=func_echo_all
  16847. else
  16848. _LT_TAGVAR(ld_shlibs, $1)=no
  16849. fi
  16850. @@ -6093,15 +6550,15 @@
  16851. case $host in
  16852. osf3*)
  16853. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  16854. - _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'
  16855. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16856. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  16857. ;;
  16858. *)
  16859. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  16860. - _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'
  16861. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16862. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  16863. echo "-hidden">> $lib.exp~
  16864. - $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~
  16865. + $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~
  16866. $RM $lib.exp'
  16867. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  16868. ;;
  16869. @@ -6117,17 +6574,17 @@
  16870. # explicitly linking system object files so we need to strip them
  16871. # from the output so that they don't get included in the library
  16872. # dependencies.
  16873. - 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'
  16874. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
  16875. ;;
  16876. *)
  16877. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16878. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  16879. case $host in
  16880. osf3*)
  16881. - _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'
  16882. + _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16883. ;;
  16884. *)
  16885. - _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'
  16886. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16887. ;;
  16888. esac
  16889. @@ -6137,7 +6594,7 @@
  16890. # Commands to make compiler produce verbose output that lists
  16891. # what "hidden" libraries, object files and flags are used when
  16892. # linking a shared library.
  16893. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  16894. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16895. else
  16896. # FIXME: insert proper C++ library support
  16897. @@ -6173,7 +6630,7 @@
  16898. solaris*)
  16899. case $cc_basename in
  16900. - CC*)
  16901. + CC* | sunCC*)
  16902. # Sun C++ 4.2, 5.x and Centerline C++
  16903. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  16904. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  16905. @@ -6194,7 +6651,7 @@
  16906. esac
  16907. _LT_TAGVAR(link_all_deplibs, $1)=yes
  16908. - output_verbose_link_cmd='echo'
  16909. + output_verbose_link_cmd='func_echo_all'
  16910. # Archives containing C++ object files must be created using
  16911. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  16912. @@ -6214,14 +6671,14 @@
  16913. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16914. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  16915. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  16916. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16917. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16918. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16919. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16920. + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16921. # Commands to make compiler produce verbose output that lists
  16922. # what "hidden" libraries, object files and flags are used when
  16923. # linking a shared library.
  16924. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  16925. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16926. else
  16927. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  16928. # platform.
  16929. @@ -6232,7 +6689,7 @@
  16930. # Commands to make compiler produce verbose output that lists
  16931. # what "hidden" libraries, object files and flags are used when
  16932. # linking a shared library.
  16933. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  16934. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16935. fi
  16936. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  16937. @@ -6286,6 +6743,10 @@
  16938. CC*)
  16939. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16940. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16941. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  16942. + '"$_LT_TAGVAR(old_archive_cmds, $1)"
  16943. + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  16944. + '"$_LT_TAGVAR(reload_cmds, $1)"
  16945. ;;
  16946. *)
  16947. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16948. @@ -6341,6 +6802,7 @@
  16949. fi # test -n "$compiler"
  16950. CC=$lt_save_CC
  16951. + CFLAGS=$lt_save_CFLAGS
  16952. LDCXX=$LD
  16953. LD=$lt_save_LD
  16954. GCC=$lt_save_GCC
  16955. @@ -6355,6 +6817,29 @@
  16956. ])# _LT_LANG_CXX_CONFIG
  16957. +# _LT_FUNC_STRIPNAME_CNF
  16958. +# ----------------------
  16959. +# func_stripname_cnf prefix suffix name
  16960. +# strip PREFIX and SUFFIX off of NAME.
  16961. +# PREFIX and SUFFIX must not contain globbing or regex special
  16962. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  16963. +# dot (in which case that matches only a dot).
  16964. +#
  16965. +# This function is identical to the (non-XSI) version of func_stripname,
  16966. +# except this one can be used by m4 code that may be executed by configure,
  16967. +# rather than the libtool script.
  16968. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  16969. +AC_REQUIRE([_LT_DECL_SED])
  16970. +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  16971. +func_stripname_cnf ()
  16972. +{
  16973. + case ${2} in
  16974. + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16975. + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16976. + esac
  16977. +} # func_stripname_cnf
  16978. +])# _LT_FUNC_STRIPNAME_CNF
  16979. +
  16980. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  16981. # ---------------------------------
  16982. # Figure out "hidden" library dependencies from verbose
  16983. @@ -6363,6 +6848,7 @@
  16984. # objects, libraries and library flags.
  16985. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  16986. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  16987. +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  16988. # Dependencies to place before and after the object being linked:
  16989. _LT_TAGVAR(predep_objects, $1)=
  16990. _LT_TAGVAR(postdep_objects, $1)=
  16991. @@ -6413,6 +6899,13 @@
  16992. };
  16993. _LT_EOF
  16994. ])
  16995. +
  16996. +_lt_libdeps_save_CFLAGS=$CFLAGS
  16997. +case "$CC $CFLAGS " in #(
  16998. +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  16999. +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  17000. +esac
  17001. +
  17002. dnl Parse the compiler output and extract the necessary
  17003. dnl objects, libraries and library flags.
  17004. if AC_TRY_EVAL(ac_compile); then
  17005. @@ -6424,7 +6917,7 @@
  17006. pre_test_object_deps_done=no
  17007. for p in `eval "$output_verbose_link_cmd"`; do
  17008. - case $p in
  17009. + case ${prev}${p} in
  17010. -L* | -R* | -l*)
  17011. # Some compilers place space between "-{L,R}" and the path.
  17012. @@ -6433,13 +6926,22 @@
  17013. test $p = "-R"; then
  17014. prev=$p
  17015. continue
  17016. - else
  17017. - prev=
  17018. fi
  17019. + # Expand the sysroot to ease extracting the directories later.
  17020. + if test -z "$prev"; then
  17021. + case $p in
  17022. + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  17023. + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  17024. + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  17025. + esac
  17026. + fi
  17027. + case $p in
  17028. + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  17029. + esac
  17030. if test "$pre_test_object_deps_done" = no; then
  17031. - case $p in
  17032. - -L* | -R*)
  17033. + case ${prev} in
  17034. + -L | -R)
  17035. # Internal compiler library paths should come after those
  17036. # provided the user. The postdeps already come after the
  17037. # user supplied libs so there is no need to process them.
  17038. @@ -6459,8 +6961,10 @@
  17039. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  17040. fi
  17041. fi
  17042. + prev=
  17043. ;;
  17044. + *.lto.$objext) ;; # Ignore GCC LTO objects
  17045. *.$objext)
  17046. # This assumes that the test object file only shows up
  17047. # once in the compiler output.
  17048. @@ -6496,6 +7000,7 @@
  17049. fi
  17050. $RM -f confest.$objext
  17051. +CFLAGS=$_lt_libdeps_save_CFLAGS
  17052. # PORTME: override above test on systems where it is broken
  17053. m4_if([$1], [CXX],
  17054. @@ -6532,7 +7037,7 @@
  17055. solaris*)
  17056. case $cc_basename in
  17057. - CC*)
  17058. + CC* | sunCC*)
  17059. # The more standards-conforming stlport4 library is
  17060. # incompatible with the Cstd library. Avoid specifying
  17061. # it if it's in CXXFLAGS. Ignore libCrun as
  17062. @@ -6576,32 +7081,16 @@
  17063. ])# _LT_SYS_HIDDEN_LIBDEPS
  17064. -# _LT_PROG_F77
  17065. -# ------------
  17066. -# Since AC_PROG_F77 is broken, in that it returns the empty string
  17067. -# if there is no fortran compiler, we have our own version here.
  17068. -m4_defun([_LT_PROG_F77],
  17069. -[
  17070. -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  17071. -AC_PROG_F77
  17072. -if test -z "$F77" || test "X$F77" = "Xno"; then
  17073. - _lt_disable_F77=yes
  17074. -fi
  17075. -popdef([AC_MSG_ERROR])
  17076. -])# _LT_PROG_F77
  17077. -
  17078. -dnl aclocal-1.4 backwards compatibility:
  17079. -dnl AC_DEFUN([_LT_PROG_F77], [])
  17080. -
  17081. -
  17082. # _LT_LANG_F77_CONFIG([TAG])
  17083. # --------------------------
  17084. # Ensure that the configuration variables for a Fortran 77 compiler are
  17085. # suitably defined. These variables are subsequently used by _LT_CONFIG
  17086. # to write the compiler configuration to `libtool'.
  17087. m4_defun([_LT_LANG_F77_CONFIG],
  17088. -[AC_REQUIRE([_LT_PROG_F77])dnl
  17089. -AC_LANG_PUSH(Fortran 77)
  17090. +[AC_LANG_PUSH(Fortran 77)
  17091. +if test -z "$F77" || test "X$F77" = "Xno"; then
  17092. + _lt_disable_F77=yes
  17093. +fi
  17094. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  17095. _LT_TAGVAR(allow_undefined_flag, $1)=
  17096. @@ -6620,6 +7109,8 @@
  17097. _LT_TAGVAR(module_expsym_cmds, $1)=
  17098. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  17099. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  17100. +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  17101. +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  17102. _LT_TAGVAR(no_undefined_flag, $1)=
  17103. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  17104. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  17105. @@ -6659,7 +7150,9 @@
  17106. # Allow CC to be a program name with arguments.
  17107. lt_save_CC="$CC"
  17108. lt_save_GCC=$GCC
  17109. + lt_save_CFLAGS=$CFLAGS
  17110. CC=${F77-"f77"}
  17111. + CFLAGS=$FFLAGS
  17112. compiler=$CC
  17113. _LT_TAGVAR(compiler, $1)=$CC
  17114. _LT_CC_BASENAME([$compiler])
  17115. @@ -6713,38 +7206,24 @@
  17116. GCC=$lt_save_GCC
  17117. CC="$lt_save_CC"
  17118. + CFLAGS="$lt_save_CFLAGS"
  17119. fi # test "$_lt_disable_F77" != yes
  17120. AC_LANG_POP
  17121. ])# _LT_LANG_F77_CONFIG
  17122. -# _LT_PROG_FC
  17123. -# -----------
  17124. -# Since AC_PROG_FC is broken, in that it returns the empty string
  17125. -# if there is no fortran compiler, we have our own version here.
  17126. -m4_defun([_LT_PROG_FC],
  17127. -[
  17128. -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  17129. -AC_PROG_FC
  17130. -if test -z "$FC" || test "X$FC" = "Xno"; then
  17131. - _lt_disable_FC=yes
  17132. -fi
  17133. -popdef([AC_MSG_ERROR])
  17134. -])# _LT_PROG_FC
  17135. -
  17136. -dnl aclocal-1.4 backwards compatibility:
  17137. -dnl AC_DEFUN([_LT_PROG_FC], [])
  17138. -
  17139. -
  17140. # _LT_LANG_FC_CONFIG([TAG])
  17141. # -------------------------
  17142. # Ensure that the configuration variables for a Fortran compiler are
  17143. # suitably defined. These variables are subsequently used by _LT_CONFIG
  17144. # to write the compiler configuration to `libtool'.
  17145. m4_defun([_LT_LANG_FC_CONFIG],
  17146. -[AC_REQUIRE([_LT_PROG_FC])dnl
  17147. -AC_LANG_PUSH(Fortran)
  17148. +[AC_LANG_PUSH(Fortran)
  17149. +
  17150. +if test -z "$FC" || test "X$FC" = "Xno"; then
  17151. + _lt_disable_FC=yes
  17152. +fi
  17153. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  17154. _LT_TAGVAR(allow_undefined_flag, $1)=
  17155. @@ -6763,6 +7242,8 @@
  17156. _LT_TAGVAR(module_expsym_cmds, $1)=
  17157. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  17158. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  17159. +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  17160. +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  17161. _LT_TAGVAR(no_undefined_flag, $1)=
  17162. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  17163. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  17164. @@ -6802,7 +7283,9 @@
  17165. # Allow CC to be a program name with arguments.
  17166. lt_save_CC="$CC"
  17167. lt_save_GCC=$GCC
  17168. + lt_save_CFLAGS=$CFLAGS
  17169. CC=${FC-"f95"}
  17170. + CFLAGS=$FCFLAGS
  17171. compiler=$CC
  17172. GCC=$ac_cv_fc_compiler_gnu
  17173. @@ -6858,7 +7341,8 @@
  17174. fi # test -n "$compiler"
  17175. GCC=$lt_save_GCC
  17176. - CC="$lt_save_CC"
  17177. + CC=$lt_save_CC
  17178. + CFLAGS=$lt_save_CFLAGS
  17179. fi # test "$_lt_disable_FC" != yes
  17180. AC_LANG_POP
  17181. @@ -6895,10 +7379,12 @@
  17182. _LT_LINKER_BOILERPLATE
  17183. # Allow CC to be a program name with arguments.
  17184. -lt_save_CC="$CC"
  17185. +lt_save_CC=$CC
  17186. +lt_save_CFLAGS=$CFLAGS
  17187. lt_save_GCC=$GCC
  17188. GCC=yes
  17189. CC=${GCJ-"gcj"}
  17190. +CFLAGS=$GCJFLAGS
  17191. compiler=$CC
  17192. _LT_TAGVAR(compiler, $1)=$CC
  17193. _LT_TAGVAR(LD, $1)="$LD"
  17194. @@ -6908,6 +7394,8 @@
  17195. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  17196. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  17197. +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  17198. +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  17199. ## CAVEAT EMPTOR:
  17200. ## There is no encapsulation within the following macros, do not change
  17201. @@ -6927,7 +7415,8 @@
  17202. AC_LANG_RESTORE
  17203. GCC=$lt_save_GCC
  17204. -CC="$lt_save_CC"
  17205. +CC=$lt_save_CC
  17206. +CFLAGS=$lt_save_CFLAGS
  17207. ])# _LT_LANG_GCJ_CONFIG
  17208. @@ -6962,9 +7451,11 @@
  17209. # Allow CC to be a program name with arguments.
  17210. lt_save_CC="$CC"
  17211. +lt_save_CFLAGS=$CFLAGS
  17212. lt_save_GCC=$GCC
  17213. GCC=
  17214. CC=${RC-"windres"}
  17215. +CFLAGS=
  17216. compiler=$CC
  17217. _LT_TAGVAR(compiler, $1)=$CC
  17218. _LT_CC_BASENAME([$compiler])
  17219. @@ -6977,7 +7468,8 @@
  17220. GCC=$lt_save_GCC
  17221. AC_LANG_RESTORE
  17222. -CC="$lt_save_CC"
  17223. +CC=$lt_save_CC
  17224. +CFLAGS=$lt_save_CFLAGS
  17225. ])# _LT_LANG_RC_CONFIG
  17226. @@ -7036,6 +7528,15 @@
  17227. AC_SUBST([OBJDUMP])
  17228. ])
  17229. +# _LT_DECL_DLLTOOL
  17230. +# ----------------
  17231. +# Ensure DLLTOOL variable is set.
  17232. +m4_defun([_LT_DECL_DLLTOOL],
  17233. +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  17234. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  17235. +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  17236. +AC_SUBST([DLLTOOL])
  17237. +])
  17238. # _LT_DECL_SED
  17239. # ------------
  17240. @@ -7129,8 +7630,8 @@
  17241. # Try some XSI features
  17242. xsi_shell=no
  17243. ( _lt_dummy="a/b/c"
  17244. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  17245. - = c,a/b,, \
  17246. + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  17247. + = c,a/b,b/c, \
  17248. && eval 'test $(( 1 + 1 )) -eq 2 \
  17249. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  17250. && xsi_shell=yes
  17251. @@ -7169,208 +7670,162 @@
  17252. ])# _LT_CHECK_SHELL_FEATURES
  17253. -# _LT_PROG_XSI_SHELLFNS
  17254. -# ---------------------
  17255. -# Bourne and XSI compatible variants of some useful shell functions.
  17256. -m4_defun([_LT_PROG_XSI_SHELLFNS],
  17257. -[case $xsi_shell in
  17258. - yes)
  17259. - cat << \_LT_EOF >> "$cfgfile"
  17260. -
  17261. -# func_dirname file append nondir_replacement
  17262. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17263. -# otherwise set result to NONDIR_REPLACEMENT.
  17264. -func_dirname ()
  17265. -{
  17266. - case ${1} in
  17267. - */*) func_dirname_result="${1%/*}${2}" ;;
  17268. - * ) func_dirname_result="${3}" ;;
  17269. - esac
  17270. -}
  17271. -
  17272. -# func_basename file
  17273. -func_basename ()
  17274. -{
  17275. - func_basename_result="${1##*/}"
  17276. -}
  17277. -
  17278. -# func_dirname_and_basename file append nondir_replacement
  17279. -# perform func_basename and func_dirname in a single function
  17280. -# call:
  17281. -# dirname: Compute the dirname of FILE. If nonempty,
  17282. -# add APPEND to the result, otherwise set result
  17283. -# to NONDIR_REPLACEMENT.
  17284. -# value returned in "$func_dirname_result"
  17285. -# basename: Compute filename of FILE.
  17286. -# value retuned in "$func_basename_result"
  17287. -# Implementation must be kept synchronized with func_dirname
  17288. -# and func_basename. For efficiency, we do not delegate to
  17289. -# those functions but instead duplicate the functionality here.
  17290. -func_dirname_and_basename ()
  17291. -{
  17292. - case ${1} in
  17293. - */*) func_dirname_result="${1%/*}${2}" ;;
  17294. - * ) func_dirname_result="${3}" ;;
  17295. - esac
  17296. - func_basename_result="${1##*/}"
  17297. -}
  17298. -
  17299. -# func_stripname prefix suffix name
  17300. -# strip PREFIX and SUFFIX off of NAME.
  17301. -# PREFIX and SUFFIX must not contain globbing or regex special
  17302. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  17303. -# dot (in which case that matches only a dot).
  17304. -func_stripname ()
  17305. -{
  17306. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17307. - # positional parameters, so assign one to ordinary parameter first.
  17308. - func_stripname_result=${3}
  17309. - func_stripname_result=${func_stripname_result#"${1}"}
  17310. - func_stripname_result=${func_stripname_result%"${2}"}
  17311. -}
  17312. -
  17313. -# func_opt_split
  17314. -func_opt_split ()
  17315. -{
  17316. - func_opt_split_opt=${1%%=*}
  17317. - func_opt_split_arg=${1#*=}
  17318. -}
  17319. -
  17320. -# func_lo2o object
  17321. -func_lo2o ()
  17322. -{
  17323. - case ${1} in
  17324. - *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17325. - *) func_lo2o_result=${1} ;;
  17326. - esac
  17327. -}
  17328. -
  17329. -# func_xform libobj-or-source
  17330. -func_xform ()
  17331. -{
  17332. - func_xform_result=${1%.*}.lo
  17333. -}
  17334. +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  17335. +# ------------------------------------------------------
  17336. +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  17337. +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  17338. +m4_defun([_LT_PROG_FUNCTION_REPLACE],
  17339. +[dnl {
  17340. +sed -e '/^$1 ()$/,/^} # $1 /c\
  17341. +$1 ()\
  17342. +{\
  17343. +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  17344. +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  17345. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  17346. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17347. +test 0 -eq $? || _lt_function_replace_fail=:
  17348. +])
  17349. -# func_arith arithmetic-term...
  17350. -func_arith ()
  17351. -{
  17352. - func_arith_result=$(( $[*] ))
  17353. -}
  17354. -# func_len string
  17355. -# STRING may not start with a hyphen.
  17356. -func_len ()
  17357. -{
  17358. - func_len_result=${#1}
  17359. -}
  17360. +# _LT_PROG_REPLACE_SHELLFNS
  17361. +# -------------------------
  17362. +# Replace existing portable implementations of several shell functions with
  17363. +# equivalent extended shell implementations where those features are available..
  17364. +m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  17365. +[if test x"$xsi_shell" = xyes; then
  17366. + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  17367. + case ${1} in
  17368. + */*) func_dirname_result="${1%/*}${2}" ;;
  17369. + * ) func_dirname_result="${3}" ;;
  17370. + esac])
  17371. +
  17372. + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  17373. + func_basename_result="${1##*/}"])
  17374. +
  17375. + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  17376. + case ${1} in
  17377. + */*) func_dirname_result="${1%/*}${2}" ;;
  17378. + * ) func_dirname_result="${3}" ;;
  17379. + esac
  17380. + func_basename_result="${1##*/}"])
  17381. -_LT_EOF
  17382. - ;;
  17383. - *) # Bourne compatible functions.
  17384. - cat << \_LT_EOF >> "$cfgfile"
  17385. + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  17386. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17387. + # positional parameters, so assign one to ordinary parameter first.
  17388. + func_stripname_result=${3}
  17389. + func_stripname_result=${func_stripname_result#"${1}"}
  17390. + func_stripname_result=${func_stripname_result%"${2}"}])
  17391. -# func_dirname file append nondir_replacement
  17392. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17393. -# otherwise set result to NONDIR_REPLACEMENT.
  17394. -func_dirname ()
  17395. -{
  17396. - # Extract subdirectory from the argument.
  17397. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17398. - if test "X$func_dirname_result" = "X${1}"; then
  17399. - func_dirname_result="${3}"
  17400. - else
  17401. - func_dirname_result="$func_dirname_result${2}"
  17402. - fi
  17403. -}
  17404. + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  17405. + func_split_long_opt_name=${1%%=*}
  17406. + func_split_long_opt_arg=${1#*=}])
  17407. -# func_basename file
  17408. -func_basename ()
  17409. -{
  17410. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17411. -}
  17412. + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  17413. + func_split_short_opt_arg=${1#??}
  17414. + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  17415. -dnl func_dirname_and_basename
  17416. -dnl A portable version of this function is already defined in general.m4sh
  17417. -dnl so there is no need for it here.
  17418. + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  17419. + case ${1} in
  17420. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17421. + *) func_lo2o_result=${1} ;;
  17422. + esac])
  17423. -# func_stripname prefix suffix name
  17424. -# strip PREFIX and SUFFIX off of NAME.
  17425. -# PREFIX and SUFFIX must not contain globbing or regex special
  17426. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  17427. -# dot (in which case that matches only a dot).
  17428. -# func_strip_suffix prefix name
  17429. -func_stripname ()
  17430. -{
  17431. - case ${2} in
  17432. - .*) func_stripname_result=`$ECHO "X${3}" \
  17433. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17434. - *) func_stripname_result=`$ECHO "X${3}" \
  17435. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17436. - esac
  17437. -}
  17438. + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  17439. -# sed scripts:
  17440. -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  17441. -my_sed_long_arg='1s/^-[[^=]]*=//'
  17442. + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  17443. -# func_opt_split
  17444. -func_opt_split ()
  17445. -{
  17446. - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17447. - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17448. -}
  17449. + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  17450. +fi
  17451. -# func_lo2o object
  17452. -func_lo2o ()
  17453. -{
  17454. - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17455. -}
  17456. +if test x"$lt_shell_append" = xyes; then
  17457. + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  17458. -# func_xform libobj-or-source
  17459. -func_xform ()
  17460. -{
  17461. - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  17462. -}
  17463. + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  17464. + func_quote_for_eval "${2}"
  17465. +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  17466. + eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  17467. -# func_arith arithmetic-term...
  17468. -func_arith ()
  17469. -{
  17470. - func_arith_result=`expr "$[@]"`
  17471. -}
  17472. -
  17473. -# func_len string
  17474. -# STRING may not start with a hyphen.
  17475. -func_len ()
  17476. -{
  17477. - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  17478. -}
  17479. + # Save a `func_append' function call where possible by direct use of '+='
  17480. + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17481. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  17482. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17483. + test 0 -eq $? || _lt_function_replace_fail=:
  17484. +else
  17485. + # Save a `func_append' function call even when '+=' is not available
  17486. + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17487. + && mv -f "$cfgfile.tmp" "$cfgfile" \
  17488. + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17489. + test 0 -eq $? || _lt_function_replace_fail=:
  17490. +fi
  17491. -_LT_EOF
  17492. -esac
  17493. +if test x"$_lt_function_replace_fail" = x":"; then
  17494. + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  17495. +fi
  17496. +])
  17497. -case $lt_shell_append in
  17498. - yes)
  17499. - cat << \_LT_EOF >> "$cfgfile"
  17500. -
  17501. -# func_append var value
  17502. -# Append VALUE to the end of shell variable VAR.
  17503. -func_append ()
  17504. -{
  17505. - eval "$[1]+=\$[2]"
  17506. -}
  17507. -_LT_EOF
  17508. +# _LT_PATH_CONVERSION_FUNCTIONS
  17509. +# -----------------------------
  17510. +# Determine which file name conversion functions should be used by
  17511. +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  17512. +# for certain cross-compile configurations and native mingw.
  17513. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  17514. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  17515. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  17516. +AC_MSG_CHECKING([how to convert $build file names to $host format])
  17517. +AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  17518. +[case $host in
  17519. + *-*-mingw* )
  17520. + case $build in
  17521. + *-*-mingw* ) # actually msys
  17522. + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  17523. + ;;
  17524. + *-*-cygwin* )
  17525. + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  17526. + ;;
  17527. + * ) # otherwise, assume *nix
  17528. + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  17529. + ;;
  17530. + esac
  17531. ;;
  17532. - *)
  17533. - cat << \_LT_EOF >> "$cfgfile"
  17534. -
  17535. -# func_append var value
  17536. -# Append VALUE to the end of shell variable VAR.
  17537. -func_append ()
  17538. -{
  17539. - eval "$[1]=\$$[1]\$[2]"
  17540. -}
  17541. -
  17542. -_LT_EOF
  17543. + *-*-cygwin* )
  17544. + case $build in
  17545. + *-*-mingw* ) # actually msys
  17546. + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  17547. + ;;
  17548. + *-*-cygwin* )
  17549. + lt_cv_to_host_file_cmd=func_convert_file_noop
  17550. + ;;
  17551. + * ) # otherwise, assume *nix
  17552. + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  17553. + ;;
  17554. + esac
  17555. ;;
  17556. - esac
  17557. + * ) # unhandled hosts (and "normal" native builds)
  17558. + lt_cv_to_host_file_cmd=func_convert_file_noop
  17559. + ;;
  17560. +esac
  17561. +])
  17562. +to_host_file_cmd=$lt_cv_to_host_file_cmd
  17563. +AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  17564. +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  17565. + [0], [convert $build file names to $host format])dnl
  17566. +
  17567. +AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  17568. +AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  17569. +[#assume ordinary cross tools, or native build.
  17570. +lt_cv_to_tool_file_cmd=func_convert_file_noop
  17571. +case $host in
  17572. + *-*-mingw* )
  17573. + case $build in
  17574. + *-*-mingw* ) # actually msys
  17575. + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  17576. + ;;
  17577. + esac
  17578. + ;;
  17579. +esac
  17580. ])
  17581. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17582. +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  17583. +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  17584. + [0], [convert $build files to toolchain format])dnl
  17585. +])# _LT_PATH_CONVERSION_FUNCTIONS
  17586. diff -Nur opensc-0.11.13.orig/m4/ltoptions.m4 opensc-0.11.13/m4/ltoptions.m4
  17587. --- opensc-0.11.13.orig/m4/ltoptions.m4 2010-02-16 10:32:09.000000000 +0100
  17588. +++ opensc-0.11.13/m4/ltoptions.m4 2011-01-19 18:18:07.000000000 +0100
  17589. @@ -1,13 +1,14 @@
  17590. # Helper functions for option handling. -*- Autoconf -*-
  17591. #
  17592. -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  17593. +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  17594. +# Inc.
  17595. # Written by Gary V. Vaughan, 2004
  17596. #
  17597. # This file is free software; the Free Software Foundation gives
  17598. # unlimited permission to copy and/or distribute it, with or without
  17599. # modifications, as long as this notice is preserved.
  17600. -# serial 6 ltoptions.m4
  17601. +# serial 7 ltoptions.m4
  17602. # This is to help aclocal find these macros, as it can't see m4_define.
  17603. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  17604. @@ -125,7 +126,7 @@
  17605. [enable_win32_dll=yes
  17606. case $host in
  17607. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  17608. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  17609. AC_CHECK_TOOL(AS, as, false)
  17610. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  17611. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  17612. @@ -133,13 +134,13 @@
  17613. esac
  17614. test -z "$AS" && AS=as
  17615. -_LT_DECL([], [AS], [0], [Assembler program])dnl
  17616. +_LT_DECL([], [AS], [1], [Assembler program])dnl
  17617. test -z "$DLLTOOL" && DLLTOOL=dlltool
  17618. -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  17619. +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  17620. test -z "$OBJDUMP" && OBJDUMP=objdump
  17621. -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  17622. +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  17623. ])# win32-dll
  17624. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  17625. diff -Nur opensc-0.11.13.orig/m4/ltversion.m4 opensc-0.11.13/m4/ltversion.m4
  17626. --- opensc-0.11.13.orig/m4/ltversion.m4 2010-02-16 10:32:10.000000000 +0100
  17627. +++ opensc-0.11.13/m4/ltversion.m4 2011-01-19 18:18:07.000000000 +0100
  17628. @@ -7,17 +7,17 @@
  17629. # unlimited permission to copy and/or distribute it, with or without
  17630. # modifications, as long as this notice is preserved.
  17631. -# Generated from ltversion.in.
  17632. +# @configure_input@
  17633. -# serial 3012 ltversion.m4
  17634. +# serial 3293 ltversion.m4
  17635. # This file is part of GNU Libtool
  17636. -m4_define([LT_PACKAGE_VERSION], [2.2.6])
  17637. -m4_define([LT_PACKAGE_REVISION], [1.3012])
  17638. +m4_define([LT_PACKAGE_VERSION], [2.4])
  17639. +m4_define([LT_PACKAGE_REVISION], [1.3293])
  17640. AC_DEFUN([LTVERSION_VERSION],
  17641. -[macro_version='2.2.6'
  17642. -macro_revision='1.3012'
  17643. +[macro_version='2.4'
  17644. +macro_revision='1.3293'
  17645. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  17646. _LT_DECL(, macro_revision, 0)
  17647. ])
  17648. diff -Nur opensc-0.11.13.orig/m4/lt~obsolete.m4 opensc-0.11.13/m4/lt~obsolete.m4
  17649. --- opensc-0.11.13.orig/m4/lt~obsolete.m4 2010-02-16 10:32:10.000000000 +0100
  17650. +++ opensc-0.11.13/m4/lt~obsolete.m4 2011-01-19 18:18:07.000000000 +0100
  17651. @@ -1,13 +1,13 @@
  17652. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  17653. #
  17654. -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  17655. +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  17656. # Written by Scott James Remnant, 2004.
  17657. #
  17658. # This file is free software; the Free Software Foundation gives
  17659. # unlimited permission to copy and/or distribute it, with or without
  17660. # modifications, as long as this notice is preserved.
  17661. -# serial 4 lt~obsolete.m4
  17662. +# serial 5 lt~obsolete.m4
  17663. # These exist entirely to fool aclocal when bootstrapping libtool.
  17664. #
  17665. @@ -77,7 +77,6 @@
  17666. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  17667. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  17668. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  17669. -m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  17670. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  17671. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  17672. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  17673. @@ -90,3 +89,10 @@
  17674. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  17675. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  17676. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  17677. +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  17678. +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  17679. +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  17680. +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  17681. +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  17682. +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  17683. +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  17684. diff -Nur opensc-0.11.13.orig/src/Makefile.in opensc-0.11.13/src/Makefile.in
  17685. --- opensc-0.11.13.orig/src/Makefile.in 2010-02-16 10:32:17.000000000 +0100
  17686. +++ opensc-0.11.13/src/Makefile.in 2011-01-19 18:20:58.000000000 +0100
  17687. @@ -1,4 +1,4 @@
  17688. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17689. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17690. # @configure_input@
  17691. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17692. @@ -138,6 +138,7 @@
  17693. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17694. LTLIB_LIBS = @LTLIB_LIBS@
  17695. MAKEINFO = @MAKEINFO@
  17696. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17697. MKDIR_P = @MKDIR_P@
  17698. NM = @NM@
  17699. NMEDIT = @NMEDIT@
  17700. @@ -178,6 +179,8 @@
  17701. PCSC_CFLAGS = @PCSC_CFLAGS@
  17702. PCSC_LIBS = @PCSC_LIBS@
  17703. PKG_CONFIG = @PKG_CONFIG@
  17704. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17705. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17706. PTHREAD_CC = @PTHREAD_CC@
  17707. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17708. PTHREAD_LIBS = @PTHREAD_LIBS@
  17709. @@ -202,6 +205,7 @@
  17710. abs_srcdir = @abs_srcdir@
  17711. abs_top_builddir = @abs_top_builddir@
  17712. abs_top_srcdir = @abs_top_srcdir@
  17713. +ac_ct_AR = @ac_ct_AR@
  17714. ac_ct_CC = @ac_ct_CC@
  17715. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17716. acx_pthread_config = @acx_pthread_config@
  17717. @@ -235,7 +239,6 @@
  17718. libexecdir = @libexecdir@
  17719. localedir = @localedir@
  17720. localstatedir = @localstatedir@
  17721. -lt_ECHO = @lt_ECHO@
  17722. mandir = @mandir@
  17723. mkdir_p = @mkdir_p@
  17724. oldincludedir = @oldincludedir@
  17725. @@ -261,7 +264,7 @@
  17726. # Order IS important
  17727. SUBDIRS = common include scconf libopensc pkcs15init pkcs11 \
  17728. - tests tools openssh signer
  17729. + tools openssh
  17730. all: all-recursive
  17731. @@ -310,7 +313,7 @@
  17732. # (which will cause the Makefiles to be regenerated when you run `make');
  17733. # (2) otherwise, pass the desired values on the `make' command line.
  17734. $(RECURSIVE_TARGETS):
  17735. - @failcom='exit 1'; \
  17736. + @fail= failcom='exit 1'; \
  17737. for f in x $$MAKEFLAGS; do \
  17738. case $$f in \
  17739. *=* | --[!k]*);; \
  17740. @@ -335,7 +338,7 @@
  17741. fi; test -z "$$fail"
  17742. $(RECURSIVE_CLEAN_TARGETS):
  17743. - @failcom='exit 1'; \
  17744. + @fail= failcom='exit 1'; \
  17745. for f in x $$MAKEFLAGS; do \
  17746. case $$f in \
  17747. *=* | --[!k]*);; \
  17748. diff -Nur opensc-0.11.13.orig/src/common/Makefile.in opensc-0.11.13/src/common/Makefile.in
  17749. --- opensc-0.11.13.orig/src/common/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17750. +++ opensc-0.11.13/src/common/Makefile.in 2011-01-19 18:18:11.000000000 +0100
  17751. @@ -1,4 +1,4 @@
  17752. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17753. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17754. # @configure_input@
  17755. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17756. @@ -122,6 +122,7 @@
  17757. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17758. LTLIB_LIBS = @LTLIB_LIBS@
  17759. MAKEINFO = @MAKEINFO@
  17760. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17761. MKDIR_P = @MKDIR_P@
  17762. NM = @NM@
  17763. NMEDIT = @NMEDIT@
  17764. @@ -162,6 +163,8 @@
  17765. PCSC_CFLAGS = @PCSC_CFLAGS@
  17766. PCSC_LIBS = @PCSC_LIBS@
  17767. PKG_CONFIG = @PKG_CONFIG@
  17768. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17769. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17770. PTHREAD_CC = @PTHREAD_CC@
  17771. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17772. PTHREAD_LIBS = @PTHREAD_LIBS@
  17773. @@ -186,6 +189,7 @@
  17774. abs_srcdir = @abs_srcdir@
  17775. abs_top_builddir = @abs_top_builddir@
  17776. abs_top_srcdir = @abs_top_srcdir@
  17777. +ac_ct_AR = @ac_ct_AR@
  17778. ac_ct_CC = @ac_ct_CC@
  17779. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17780. acx_pthread_config = @acx_pthread_config@
  17781. @@ -219,7 +223,6 @@
  17782. libexecdir = @libexecdir@
  17783. localedir = @localedir@
  17784. localstatedir = @localstatedir@
  17785. -lt_ECHO = @lt_ECHO@
  17786. mandir = @mandir@
  17787. mkdir_p = @mkdir_p@
  17788. oldincludedir = @oldincludedir@
  17789. diff -Nur opensc-0.11.13.orig/src/include/Makefile.in opensc-0.11.13/src/include/Makefile.in
  17790. --- opensc-0.11.13.orig/src/include/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17791. +++ opensc-0.11.13/src/include/Makefile.in 2011-01-19 18:18:11.000000000 +0100
  17792. @@ -1,4 +1,4 @@
  17793. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17794. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17795. # @configure_input@
  17796. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17797. @@ -141,6 +141,7 @@
  17798. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17799. LTLIB_LIBS = @LTLIB_LIBS@
  17800. MAKEINFO = @MAKEINFO@
  17801. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17802. MKDIR_P = @MKDIR_P@
  17803. NM = @NM@
  17804. NMEDIT = @NMEDIT@
  17805. @@ -181,6 +182,8 @@
  17806. PCSC_CFLAGS = @PCSC_CFLAGS@
  17807. PCSC_LIBS = @PCSC_LIBS@
  17808. PKG_CONFIG = @PKG_CONFIG@
  17809. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17810. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17811. PTHREAD_CC = @PTHREAD_CC@
  17812. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17813. PTHREAD_LIBS = @PTHREAD_LIBS@
  17814. @@ -205,6 +208,7 @@
  17815. abs_srcdir = @abs_srcdir@
  17816. abs_top_builddir = @abs_top_builddir@
  17817. abs_top_srcdir = @abs_top_srcdir@
  17818. +ac_ct_AR = @ac_ct_AR@
  17819. ac_ct_CC = @ac_ct_CC@
  17820. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17821. acx_pthread_config = @acx_pthread_config@
  17822. @@ -238,7 +242,6 @@
  17823. libexecdir = @libexecdir@
  17824. localedir = @localedir@
  17825. localstatedir = @localstatedir@
  17826. -lt_ECHO = @lt_ECHO@
  17827. mandir = @mandir@
  17828. mkdir_p = @mkdir_p@
  17829. oldincludedir = @oldincludedir@
  17830. @@ -314,7 +317,7 @@
  17831. # (which will cause the Makefiles to be regenerated when you run `make');
  17832. # (2) otherwise, pass the desired values on the `make' command line.
  17833. $(RECURSIVE_TARGETS):
  17834. - @failcom='exit 1'; \
  17835. + @fail= failcom='exit 1'; \
  17836. for f in x $$MAKEFLAGS; do \
  17837. case $$f in \
  17838. *=* | --[!k]*);; \
  17839. @@ -339,7 +342,7 @@
  17840. fi; test -z "$$fail"
  17841. $(RECURSIVE_CLEAN_TARGETS):
  17842. - @failcom='exit 1'; \
  17843. + @fail= failcom='exit 1'; \
  17844. for f in x $$MAKEFLAGS; do \
  17845. case $$f in \
  17846. *=* | --[!k]*);; \
  17847. diff -Nur opensc-0.11.13.orig/src/include/opensc/Makefile.in opensc-0.11.13/src/include/opensc/Makefile.in
  17848. --- opensc-0.11.13.orig/src/include/opensc/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17849. +++ opensc-0.11.13/src/include/opensc/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  17850. @@ -1,4 +1,4 @@
  17851. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17852. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17853. # @configure_input@
  17854. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17855. @@ -98,6 +98,7 @@
  17856. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17857. LTLIB_LIBS = @LTLIB_LIBS@
  17858. MAKEINFO = @MAKEINFO@
  17859. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17860. MKDIR_P = @MKDIR_P@
  17861. NM = @NM@
  17862. NMEDIT = @NMEDIT@
  17863. @@ -138,6 +139,8 @@
  17864. PCSC_CFLAGS = @PCSC_CFLAGS@
  17865. PCSC_LIBS = @PCSC_LIBS@
  17866. PKG_CONFIG = @PKG_CONFIG@
  17867. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17868. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17869. PTHREAD_CC = @PTHREAD_CC@
  17870. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17871. PTHREAD_LIBS = @PTHREAD_LIBS@
  17872. @@ -162,6 +165,7 @@
  17873. abs_srcdir = @abs_srcdir@
  17874. abs_top_builddir = @abs_top_builddir@
  17875. abs_top_srcdir = @abs_top_srcdir@
  17876. +ac_ct_AR = @ac_ct_AR@
  17877. ac_ct_CC = @ac_ct_CC@
  17878. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17879. acx_pthread_config = @acx_pthread_config@
  17880. @@ -195,7 +199,6 @@
  17881. libexecdir = @libexecdir@
  17882. localedir = @localedir@
  17883. localstatedir = @localstatedir@
  17884. -lt_ECHO = @lt_ECHO@
  17885. mandir = @mandir@
  17886. mkdir_p = @mkdir_p@
  17887. oldincludedir = @oldincludedir@
  17888. diff -Nur opensc-0.11.13.orig/src/libopensc/Makefile.in opensc-0.11.13/src/libopensc/Makefile.in
  17889. --- opensc-0.11.13.orig/src/libopensc/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17890. +++ opensc-0.11.13/src/libopensc/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  17891. @@ -1,4 +1,4 @@
  17892. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17893. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17894. # @configure_input@
  17895. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17896. @@ -205,6 +205,7 @@
  17897. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17898. LTLIB_LIBS = @LTLIB_LIBS@
  17899. MAKEINFO = @MAKEINFO@
  17900. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17901. MKDIR_P = @MKDIR_P@
  17902. NM = @NM@
  17903. NMEDIT = @NMEDIT@
  17904. @@ -245,6 +246,8 @@
  17905. PCSC_CFLAGS = @PCSC_CFLAGS@
  17906. PCSC_LIBS = @PCSC_LIBS@
  17907. PKG_CONFIG = @PKG_CONFIG@
  17908. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17909. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17910. PTHREAD_CC = @PTHREAD_CC@
  17911. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17912. PTHREAD_LIBS = @PTHREAD_LIBS@
  17913. @@ -269,6 +272,7 @@
  17914. abs_srcdir = @abs_srcdir@
  17915. abs_top_builddir = @abs_top_builddir@
  17916. abs_top_srcdir = @abs_top_srcdir@
  17917. +ac_ct_AR = @ac_ct_AR@
  17918. ac_ct_CC = @ac_ct_CC@
  17919. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17920. acx_pthread_config = @acx_pthread_config@
  17921. @@ -302,7 +306,6 @@
  17922. libexecdir = @libexecdir@
  17923. localedir = @localedir@
  17924. localstatedir = @localstatedir@
  17925. -lt_ECHO = @lt_ECHO@
  17926. mandir = @mandir@
  17927. mkdir_p = @mkdir_p@
  17928. oldincludedir = @oldincludedir@
  17929. diff -Nur opensc-0.11.13.orig/src/openssh/Makefile.in opensc-0.11.13/src/openssh/Makefile.in
  17930. --- opensc-0.11.13.orig/src/openssh/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17931. +++ opensc-0.11.13/src/openssh/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  17932. @@ -1,4 +1,4 @@
  17933. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17934. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17935. # @configure_input@
  17936. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17937. @@ -101,6 +101,7 @@
  17938. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17939. LTLIB_LIBS = @LTLIB_LIBS@
  17940. MAKEINFO = @MAKEINFO@
  17941. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17942. MKDIR_P = @MKDIR_P@
  17943. NM = @NM@
  17944. NMEDIT = @NMEDIT@
  17945. @@ -141,6 +142,8 @@
  17946. PCSC_CFLAGS = @PCSC_CFLAGS@
  17947. PCSC_LIBS = @PCSC_LIBS@
  17948. PKG_CONFIG = @PKG_CONFIG@
  17949. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17950. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17951. PTHREAD_CC = @PTHREAD_CC@
  17952. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17953. PTHREAD_LIBS = @PTHREAD_LIBS@
  17954. @@ -165,6 +168,7 @@
  17955. abs_srcdir = @abs_srcdir@
  17956. abs_top_builddir = @abs_top_builddir@
  17957. abs_top_srcdir = @abs_top_srcdir@
  17958. +ac_ct_AR = @ac_ct_AR@
  17959. ac_ct_CC = @ac_ct_CC@
  17960. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  17961. acx_pthread_config = @acx_pthread_config@
  17962. @@ -198,7 +202,6 @@
  17963. libexecdir = @libexecdir@
  17964. localedir = @localedir@
  17965. localstatedir = @localstatedir@
  17966. -lt_ECHO = @lt_ECHO@
  17967. mandir = @mandir@
  17968. mkdir_p = @mkdir_p@
  17969. oldincludedir = @oldincludedir@
  17970. diff -Nur opensc-0.11.13.orig/src/pkcs11/Makefile.in opensc-0.11.13/src/pkcs11/Makefile.in
  17971. --- opensc-0.11.13.orig/src/pkcs11/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  17972. +++ opensc-0.11.13/src/pkcs11/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  17973. @@ -1,4 +1,4 @@
  17974. -# Makefile.in generated by automake 1.11 from Makefile.am.
  17975. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  17976. # @configure_input@
  17977. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  17978. @@ -204,6 +204,7 @@
  17979. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  17980. LTLIB_LIBS = @LTLIB_LIBS@
  17981. MAKEINFO = @MAKEINFO@
  17982. +MANIFEST_TOOL = @MANIFEST_TOOL@
  17983. MKDIR_P = @MKDIR_P@
  17984. NM = @NM@
  17985. NMEDIT = @NMEDIT@
  17986. @@ -244,6 +245,8 @@
  17987. PCSC_CFLAGS = @PCSC_CFLAGS@
  17988. PCSC_LIBS = @PCSC_LIBS@
  17989. PKG_CONFIG = @PKG_CONFIG@
  17990. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  17991. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  17992. PTHREAD_CC = @PTHREAD_CC@
  17993. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  17994. PTHREAD_LIBS = @PTHREAD_LIBS@
  17995. @@ -268,6 +271,7 @@
  17996. abs_srcdir = @abs_srcdir@
  17997. abs_top_builddir = @abs_top_builddir@
  17998. abs_top_srcdir = @abs_top_srcdir@
  17999. +ac_ct_AR = @ac_ct_AR@
  18000. ac_ct_CC = @ac_ct_CC@
  18001. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18002. acx_pthread_config = @acx_pthread_config@
  18003. @@ -301,7 +305,6 @@
  18004. libexecdir = @libexecdir@
  18005. localedir = @localedir@
  18006. localstatedir = @localstatedir@
  18007. -lt_ECHO = @lt_ECHO@
  18008. mandir = @mandir@
  18009. mkdir_p = @mkdir_p@
  18010. oldincludedir = @oldincludedir@
  18011. diff -Nur opensc-0.11.13.orig/src/pkcs15init/Makefile.in opensc-0.11.13/src/pkcs15init/Makefile.in
  18012. --- opensc-0.11.13.orig/src/pkcs15init/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18013. +++ opensc-0.11.13/src/pkcs15init/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18014. @@ -1,4 +1,4 @@
  18015. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18016. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18017. # @configure_input@
  18018. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18019. @@ -174,6 +174,7 @@
  18020. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18021. LTLIB_LIBS = @LTLIB_LIBS@
  18022. MAKEINFO = @MAKEINFO@
  18023. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18024. MKDIR_P = @MKDIR_P@
  18025. NM = @NM@
  18026. NMEDIT = @NMEDIT@
  18027. @@ -214,6 +215,8 @@
  18028. PCSC_CFLAGS = @PCSC_CFLAGS@
  18029. PCSC_LIBS = @PCSC_LIBS@
  18030. PKG_CONFIG = @PKG_CONFIG@
  18031. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18032. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18033. PTHREAD_CC = @PTHREAD_CC@
  18034. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18035. PTHREAD_LIBS = @PTHREAD_LIBS@
  18036. @@ -238,6 +241,7 @@
  18037. abs_srcdir = @abs_srcdir@
  18038. abs_top_builddir = @abs_top_builddir@
  18039. abs_top_srcdir = @abs_top_srcdir@
  18040. +ac_ct_AR = @ac_ct_AR@
  18041. ac_ct_CC = @ac_ct_CC@
  18042. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18043. acx_pthread_config = @acx_pthread_config@
  18044. @@ -271,7 +275,6 @@
  18045. libexecdir = @libexecdir@
  18046. localedir = @localedir@
  18047. localstatedir = @localstatedir@
  18048. -lt_ECHO = @lt_ECHO@
  18049. mandir = @mandir@
  18050. mkdir_p = @mkdir_p@
  18051. oldincludedir = @oldincludedir@
  18052. diff -Nur opensc-0.11.13.orig/src/scconf/Makefile.in opensc-0.11.13/src/scconf/Makefile.in
  18053. --- opensc-0.11.13.orig/src/scconf/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18054. +++ opensc-0.11.13/src/scconf/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18055. @@ -1,4 +1,4 @@
  18056. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18057. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18058. # @configure_input@
  18059. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18060. @@ -165,6 +165,7 @@
  18061. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18062. LTLIB_LIBS = @LTLIB_LIBS@
  18063. MAKEINFO = @MAKEINFO@
  18064. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18065. MKDIR_P = @MKDIR_P@
  18066. NM = @NM@
  18067. NMEDIT = @NMEDIT@
  18068. @@ -205,6 +206,8 @@
  18069. PCSC_CFLAGS = @PCSC_CFLAGS@
  18070. PCSC_LIBS = @PCSC_LIBS@
  18071. PKG_CONFIG = @PKG_CONFIG@
  18072. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18073. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18074. PTHREAD_CC = @PTHREAD_CC@
  18075. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18076. PTHREAD_LIBS = @PTHREAD_LIBS@
  18077. @@ -229,6 +232,7 @@
  18078. abs_srcdir = @abs_srcdir@
  18079. abs_top_builddir = @abs_top_builddir@
  18080. abs_top_srcdir = @abs_top_srcdir@
  18081. +ac_ct_AR = @ac_ct_AR@
  18082. ac_ct_CC = @ac_ct_CC@
  18083. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18084. acx_pthread_config = @acx_pthread_config@
  18085. @@ -262,7 +266,6 @@
  18086. libexecdir = @libexecdir@
  18087. localedir = @localedir@
  18088. localstatedir = @localstatedir@
  18089. -lt_ECHO = @lt_ECHO@
  18090. mandir = @mandir@
  18091. mkdir_p = @mkdir_p@
  18092. oldincludedir = @oldincludedir@
  18093. diff -Nur opensc-0.11.13.orig/src/signer/Makefile.in opensc-0.11.13/src/signer/Makefile.in
  18094. --- opensc-0.11.13.orig/src/signer/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18095. +++ opensc-0.11.13/src/signer/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18096. @@ -1,4 +1,4 @@
  18097. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18098. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18099. # @configure_input@
  18100. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18101. @@ -194,6 +194,7 @@
  18102. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18103. LTLIB_LIBS = @LTLIB_LIBS@
  18104. MAKEINFO = @MAKEINFO@
  18105. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18106. MKDIR_P = @MKDIR_P@
  18107. NM = @NM@
  18108. NMEDIT = @NMEDIT@
  18109. @@ -234,6 +235,8 @@
  18110. PCSC_CFLAGS = @PCSC_CFLAGS@
  18111. PCSC_LIBS = @PCSC_LIBS@
  18112. PKG_CONFIG = @PKG_CONFIG@
  18113. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18114. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18115. PTHREAD_CC = @PTHREAD_CC@
  18116. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18117. PTHREAD_LIBS = @PTHREAD_LIBS@
  18118. @@ -258,6 +261,7 @@
  18119. abs_srcdir = @abs_srcdir@
  18120. abs_top_builddir = @abs_top_builddir@
  18121. abs_top_srcdir = @abs_top_srcdir@
  18122. +ac_ct_AR = @ac_ct_AR@
  18123. ac_ct_CC = @ac_ct_CC@
  18124. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18125. acx_pthread_config = @acx_pthread_config@
  18126. @@ -291,7 +295,6 @@
  18127. libexecdir = @libexecdir@
  18128. localedir = @localedir@
  18129. localstatedir = @localstatedir@
  18130. -lt_ECHO = @lt_ECHO@
  18131. mandir = @mandir@
  18132. mkdir_p = @mkdir_p@
  18133. oldincludedir = @oldincludedir@
  18134. @@ -500,7 +503,7 @@
  18135. # (which will cause the Makefiles to be regenerated when you run `make');
  18136. # (2) otherwise, pass the desired values on the `make' command line.
  18137. $(RECURSIVE_TARGETS):
  18138. - @failcom='exit 1'; \
  18139. + @fail= failcom='exit 1'; \
  18140. for f in x $$MAKEFLAGS; do \
  18141. case $$f in \
  18142. *=* | --[!k]*);; \
  18143. @@ -525,7 +528,7 @@
  18144. fi; test -z "$$fail"
  18145. $(RECURSIVE_CLEAN_TARGETS):
  18146. - @failcom='exit 1'; \
  18147. + @fail= failcom='exit 1'; \
  18148. for f in x $$MAKEFLAGS; do \
  18149. case $$f in \
  18150. *=* | --[!k]*);; \
  18151. diff -Nur opensc-0.11.13.orig/src/signer/npinclude/Makefile.in opensc-0.11.13/src/signer/npinclude/Makefile.in
  18152. --- opensc-0.11.13.orig/src/signer/npinclude/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18153. +++ opensc-0.11.13/src/signer/npinclude/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18154. @@ -1,4 +1,4 @@
  18155. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18156. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18157. # @configure_input@
  18158. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18159. @@ -103,6 +103,7 @@
  18160. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18161. LTLIB_LIBS = @LTLIB_LIBS@
  18162. MAKEINFO = @MAKEINFO@
  18163. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18164. MKDIR_P = @MKDIR_P@
  18165. NM = @NM@
  18166. NMEDIT = @NMEDIT@
  18167. @@ -143,6 +144,8 @@
  18168. PCSC_CFLAGS = @PCSC_CFLAGS@
  18169. PCSC_LIBS = @PCSC_LIBS@
  18170. PKG_CONFIG = @PKG_CONFIG@
  18171. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18172. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18173. PTHREAD_CC = @PTHREAD_CC@
  18174. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18175. PTHREAD_LIBS = @PTHREAD_LIBS@
  18176. @@ -167,6 +170,7 @@
  18177. abs_srcdir = @abs_srcdir@
  18178. abs_top_builddir = @abs_top_builddir@
  18179. abs_top_srcdir = @abs_top_srcdir@
  18180. +ac_ct_AR = @ac_ct_AR@
  18181. ac_ct_CC = @ac_ct_CC@
  18182. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18183. acx_pthread_config = @acx_pthread_config@
  18184. @@ -200,7 +204,6 @@
  18185. libexecdir = @libexecdir@
  18186. localedir = @localedir@
  18187. localstatedir = @localstatedir@
  18188. -lt_ECHO = @lt_ECHO@
  18189. mandir = @mandir@
  18190. mkdir_p = @mkdir_p@
  18191. oldincludedir = @oldincludedir@
  18192. diff -Nur opensc-0.11.13.orig/src/tests/Makefile.in opensc-0.11.13/src/tests/Makefile.in
  18193. --- opensc-0.11.13.orig/src/tests/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18194. +++ opensc-0.11.13/src/tests/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18195. @@ -1,4 +1,4 @@
  18196. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18197. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18198. # @configure_input@
  18199. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18200. @@ -203,6 +203,7 @@
  18201. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18202. LTLIB_LIBS = @LTLIB_LIBS@
  18203. MAKEINFO = @MAKEINFO@
  18204. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18205. MKDIR_P = @MKDIR_P@
  18206. NM = @NM@
  18207. NMEDIT = @NMEDIT@
  18208. @@ -243,6 +244,8 @@
  18209. PCSC_CFLAGS = @PCSC_CFLAGS@
  18210. PCSC_LIBS = @PCSC_LIBS@
  18211. PKG_CONFIG = @PKG_CONFIG@
  18212. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18213. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18214. PTHREAD_CC = @PTHREAD_CC@
  18215. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18216. PTHREAD_LIBS = @PTHREAD_LIBS@
  18217. @@ -267,6 +270,7 @@
  18218. abs_srcdir = @abs_srcdir@
  18219. abs_top_builddir = @abs_top_builddir@
  18220. abs_top_srcdir = @abs_top_srcdir@
  18221. +ac_ct_AR = @ac_ct_AR@
  18222. ac_ct_CC = @ac_ct_CC@
  18223. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18224. acx_pthread_config = @acx_pthread_config@
  18225. @@ -300,7 +304,6 @@
  18226. libexecdir = @libexecdir@
  18227. localedir = @localedir@
  18228. localstatedir = @localstatedir@
  18229. -lt_ECHO = @lt_ECHO@
  18230. mandir = @mandir@
  18231. mkdir_p = @mkdir_p@
  18232. oldincludedir = @oldincludedir@
  18233. @@ -451,7 +454,7 @@
  18234. # (which will cause the Makefiles to be regenerated when you run `make');
  18235. # (2) otherwise, pass the desired values on the `make' command line.
  18236. $(RECURSIVE_TARGETS):
  18237. - @failcom='exit 1'; \
  18238. + @fail= failcom='exit 1'; \
  18239. for f in x $$MAKEFLAGS; do \
  18240. case $$f in \
  18241. *=* | --[!k]*);; \
  18242. @@ -476,7 +479,7 @@
  18243. fi; test -z "$$fail"
  18244. $(RECURSIVE_CLEAN_TARGETS):
  18245. - @failcom='exit 1'; \
  18246. + @fail= failcom='exit 1'; \
  18247. for f in x $$MAKEFLAGS; do \
  18248. case $$f in \
  18249. *=* | --[!k]*);; \
  18250. diff -Nur opensc-0.11.13.orig/src/tests/regression/Makefile.in opensc-0.11.13/src/tests/regression/Makefile.in
  18251. --- opensc-0.11.13.orig/src/tests/regression/Makefile.in 2010-02-16 10:32:18.000000000 +0100
  18252. +++ opensc-0.11.13/src/tests/regression/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18253. @@ -1,4 +1,4 @@
  18254. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18255. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18256. # @configure_input@
  18257. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18258. @@ -103,6 +103,7 @@
  18259. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18260. LTLIB_LIBS = @LTLIB_LIBS@
  18261. MAKEINFO = @MAKEINFO@
  18262. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18263. MKDIR_P = @MKDIR_P@
  18264. NM = @NM@
  18265. NMEDIT = @NMEDIT@
  18266. @@ -143,6 +144,8 @@
  18267. PCSC_CFLAGS = @PCSC_CFLAGS@
  18268. PCSC_LIBS = @PCSC_LIBS@
  18269. PKG_CONFIG = @PKG_CONFIG@
  18270. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18271. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18272. PTHREAD_CC = @PTHREAD_CC@
  18273. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18274. PTHREAD_LIBS = @PTHREAD_LIBS@
  18275. @@ -167,6 +170,7 @@
  18276. abs_srcdir = @abs_srcdir@
  18277. abs_top_builddir = @abs_top_builddir@
  18278. abs_top_srcdir = @abs_top_srcdir@
  18279. +ac_ct_AR = @ac_ct_AR@
  18280. ac_ct_CC = @ac_ct_CC@
  18281. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18282. acx_pthread_config = @acx_pthread_config@
  18283. @@ -200,7 +204,6 @@
  18284. libexecdir = @libexecdir@
  18285. localedir = @localedir@
  18286. localstatedir = @localstatedir@
  18287. -lt_ECHO = @lt_ECHO@
  18288. mandir = @mandir@
  18289. mkdir_p = @mkdir_p@
  18290. oldincludedir = @oldincludedir@
  18291. diff -Nur opensc-0.11.13.orig/src/tools/Makefile.in opensc-0.11.13/src/tools/Makefile.in
  18292. --- opensc-0.11.13.orig/src/tools/Makefile.in 2010-02-16 10:32:19.000000000 +0100
  18293. +++ opensc-0.11.13/src/tools/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18294. @@ -1,4 +1,4 @@
  18295. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18296. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18297. # @configure_input@
  18298. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18299. @@ -258,6 +258,7 @@
  18300. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18301. LTLIB_LIBS = @LTLIB_LIBS@
  18302. MAKEINFO = @MAKEINFO@
  18303. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18304. MKDIR_P = @MKDIR_P@
  18305. NM = @NM@
  18306. NMEDIT = @NMEDIT@
  18307. @@ -298,6 +299,8 @@
  18308. PCSC_CFLAGS = @PCSC_CFLAGS@
  18309. PCSC_LIBS = @PCSC_LIBS@
  18310. PKG_CONFIG = @PKG_CONFIG@
  18311. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18312. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18313. PTHREAD_CC = @PTHREAD_CC@
  18314. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18315. PTHREAD_LIBS = @PTHREAD_LIBS@
  18316. @@ -322,6 +325,7 @@
  18317. abs_srcdir = @abs_srcdir@
  18318. abs_top_builddir = @abs_top_builddir@
  18319. abs_top_srcdir = @abs_top_srcdir@
  18320. +ac_ct_AR = @ac_ct_AR@
  18321. ac_ct_CC = @ac_ct_CC@
  18322. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18323. acx_pthread_config = @acx_pthread_config@
  18324. @@ -355,7 +359,6 @@
  18325. libexecdir = @libexecdir@
  18326. localedir = @localedir@
  18327. localstatedir = @localstatedir@
  18328. -lt_ECHO = @lt_ECHO@
  18329. mandir = @mandir@
  18330. mkdir_p = @mkdir_p@
  18331. oldincludedir = @oldincludedir@
  18332. diff -Nur opensc-0.11.13.orig/win32/Makefile.in opensc-0.11.13/win32/Makefile.in
  18333. --- opensc-0.11.13.orig/win32/Makefile.in 2010-02-16 10:32:19.000000000 +0100
  18334. +++ opensc-0.11.13/win32/Makefile.in 2011-01-19 18:18:12.000000000 +0100
  18335. @@ -1,4 +1,4 @@
  18336. -# Makefile.in generated by automake 1.11 from Makefile.am.
  18337. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18338. # @configure_input@
  18339. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  18340. @@ -124,6 +124,7 @@
  18341. LTLIB_CFLAGS = @LTLIB_CFLAGS@
  18342. LTLIB_LIBS = @LTLIB_LIBS@
  18343. MAKEINFO = @MAKEINFO@
  18344. +MANIFEST_TOOL = @MANIFEST_TOOL@
  18345. MKDIR_P = @MKDIR_P@
  18346. NM = @NM@
  18347. NMEDIT = @NMEDIT@
  18348. @@ -164,6 +165,8 @@
  18349. PCSC_CFLAGS = @PCSC_CFLAGS@
  18350. PCSC_LIBS = @PCSC_LIBS@
  18351. PKG_CONFIG = @PKG_CONFIG@
  18352. +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  18353. +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
  18354. PTHREAD_CC = @PTHREAD_CC@
  18355. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  18356. PTHREAD_LIBS = @PTHREAD_LIBS@
  18357. @@ -188,6 +191,7 @@
  18358. abs_srcdir = @abs_srcdir@
  18359. abs_top_builddir = @abs_top_builddir@
  18360. abs_top_srcdir = @abs_top_srcdir@
  18361. +ac_ct_AR = @ac_ct_AR@
  18362. ac_ct_CC = @ac_ct_CC@
  18363. ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  18364. acx_pthread_config = @acx_pthread_config@
  18365. @@ -221,7 +225,6 @@
  18366. libexecdir = @libexecdir@
  18367. localedir = @localedir@
  18368. localstatedir = @localstatedir@
  18369. -lt_ECHO = @lt_ECHO@
  18370. mandir = @mandir@
  18371. mkdir_p = @mkdir_p@
  18372. oldincludedir = @oldincludedir@