autotool.patch 2.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur faad2-2.7.orig/aclocal.m4 faad2-2.7/aclocal.m4
  6. --- faad2-2.7.orig/aclocal.m4 2009-02-10 09:36:05.000000000 +0100
  7. +++ faad2-2.7/aclocal.m4 2011-02-16 17:55:05.646403237 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,103 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. +
  28. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29. +#
  30. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  32. +# Written by Gordon Matzigkeit, 1996
  33. +#
  34. +# This file is free software; the Free Software Foundation gives
  35. +# unlimited permission to copy and/or distribute it, with or without
  36. +# modifications, as long as this notice is preserved.
  37. +
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. -# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
  67. +# serial 56 LT_INIT
  68. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  69. -# -----------------------------------------------------------
  70. -# If this macro is not defined by Autoconf, define it here.
  71. -m4_ifdef([AC_PROVIDE_IFELSE],
  72. - [],
  73. - [m4_define([AC_PROVIDE_IFELSE],
  74. - [m4_ifdef([AC_PROVIDE_$1],
  75. - [$2], [$3])])])
  76. +# LT_PREREQ(VERSION)
  77. +# ------------------
  78. +# Complain and exit if this libtool version is less that VERSION.
  79. +m4_defun([LT_PREREQ],
  80. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  81. + [m4_default([$3],
  82. + [m4_fatal([Libtool version $1 or higher is required],
  83. + 63)])],
  84. + [$2])])
  85. -# AC_PROG_LIBTOOL
  86. -# ---------------
  87. -AC_DEFUN([AC_PROG_LIBTOOL],
  88. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  89. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  90. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  91. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  92. - [AC_LIBTOOL_CXX],
  93. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  94. - ])])
  95. -dnl And a similar setup for Fortran 77 support
  96. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  97. - [AC_LIBTOOL_F77],
  98. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  99. -])])
  100. -
  101. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  102. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  103. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  104. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  105. - [AC_LIBTOOL_GCJ],
  106. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  107. - [AC_LIBTOOL_GCJ],
  108. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [ifdef([AC_PROG_GCJ],
  111. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  112. - ifdef([A][M_PROG_GCJ],
  113. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  114. - ifdef([LT_AC_PROG_GCJ],
  115. - [define([LT_AC_PROG_GCJ],
  116. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  117. -])])# AC_PROG_LIBTOOL
  118. +# _LT_CHECK_BUILDDIR
  119. +# ------------------
  120. +# Complain if the absolute build directory name contains unusual characters
  121. +m4_defun([_LT_CHECK_BUILDDIR],
  122. +[case `pwd` in
  123. + *\ * | *\ *)
  124. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  125. +esac
  126. +])
  127. -# _AC_PROG_LIBTOOL
  128. -# ----------------
  129. -AC_DEFUN([_AC_PROG_LIBTOOL],
  130. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  134. +# LT_INIT([OPTIONS])
  135. +# ------------------
  136. +AC_DEFUN([LT_INIT],
  137. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  138. +AC_BEFORE([$0], [LT_LANG])dnl
  139. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  140. +AC_BEFORE([$0], [LTDL_INIT])dnl
  141. +m4_require([_LT_CHECK_BUILDDIR])dnl
  142. +
  143. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  144. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  145. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  146. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  147. +dnl unless we require an AC_DEFUNed macro:
  148. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  149. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  150. +AC_REQUIRE([LTVERSION_VERSION])dnl
  151. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  152. +m4_require([_LT_PROG_LTMAIN])dnl
  153. +
  154. +dnl Parse OPTIONS
  155. +_LT_SET_OPTIONS([$0], [$1])
  156. # This can be used to rebuild libtool when needed
  157. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  158. +LIBTOOL_DEPS="$ltmain"
  159. # Always use our own libtool.
  160. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  161. AC_SUBST(LIBTOOL)dnl
  162. -# Prevent multiple expansion
  163. -define([AC_PROG_LIBTOOL], [])
  164. -])# _AC_PROG_LIBTOOL
  165. +_LT_SETUP
  166. +# Only expand once:
  167. +m4_define([LT_INIT])
  168. +])# LT_INIT
  169. +
  170. +# Old names:
  171. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  172. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  173. +dnl aclocal-1.4 backwards compatibility:
  174. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  175. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  176. -# AC_LIBTOOL_SETUP
  177. -# ----------------
  178. -AC_DEFUN([AC_LIBTOOL_SETUP],
  179. -[AC_PREREQ(2.50)dnl
  180. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  181. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  182. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  183. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  184. +
  185. +# _LT_CC_BASENAME(CC)
  186. +# -------------------
  187. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  188. +m4_defun([_LT_CC_BASENAME],
  189. +[for cc_temp in $1""; do
  190. + case $cc_temp in
  191. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  192. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  193. + \-*) ;;
  194. + *) break;;
  195. + esac
  196. +done
  197. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  198. +])
  199. +
  200. +
  201. +# _LT_FILEUTILS_DEFAULTS
  202. +# ----------------------
  203. +# It is okay to use these file commands and assume they have been set
  204. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  205. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  206. +[: ${CP="cp -f"}
  207. +: ${MV="mv -f"}
  208. +: ${RM="rm -f"}
  209. +])# _LT_FILEUTILS_DEFAULTS
  210. +
  211. +
  212. +# _LT_SETUP
  213. +# ---------
  214. +m4_defun([_LT_SETUP],
  215. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  216. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  217. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  218. +_LT_DECL([], [host], [0])dnl
  219. +_LT_DECL([], [host_os], [0])dnl
  220. +dnl
  221. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  222. +_LT_DECL([], [build], [0])dnl
  223. +_LT_DECL([], [build_os], [0])dnl
  224. +dnl
  225. AC_REQUIRE([AC_PROG_CC])dnl
  226. -AC_REQUIRE([AC_PROG_LD])dnl
  227. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  228. -AC_REQUIRE([AC_PROG_NM])dnl
  229. -
  230. +AC_REQUIRE([LT_PATH_LD])dnl
  231. +AC_REQUIRE([LT_PATH_NM])dnl
  232. +dnl
  233. AC_REQUIRE([AC_PROG_LN_S])dnl
  234. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  235. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  236. -AC_REQUIRE([AC_OBJEXT])dnl
  237. -AC_REQUIRE([AC_EXEEXT])dnl
  238. +test -z "$LN_S" && LN_S="ln -s"
  239. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  240. +dnl
  241. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  242. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  243. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  244. dnl
  245. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  246. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  247. +m4_require([_LT_CMD_RELOAD])dnl
  248. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  249. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  250. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  251. +
  252. +_LT_CONFIG_LIBTOOL_INIT([
  253. +# See if we are running on zsh, and set the options which allow our
  254. +# commands through without removal of \ escapes INIT.
  255. +if test -n "\${ZSH_VERSION+set}" ; then
  256. + setopt NO_GLOB_SUBST
  257. +fi
  258. +])
  259. +if test -n "${ZSH_VERSION+set}" ; then
  260. + setopt NO_GLOB_SUBST
  261. +fi
  262. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  263. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  264. -AC_LIBTOOL_OBJDIR
  265. +_LT_CHECK_OBJDIR
  266. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  267. -_LT_AC_PROG_ECHO_BACKSLASH
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -123,4518 +216,3148 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  355. -enable_win32_dll=yes, enable_win32_dll=no)
  356. -
  357. -AC_ARG_ENABLE([libtool-lock],
  358. - [AC_HELP_STRING([--disable-libtool-lock],
  359. - [avoid locking (might break parallel builds)])])
  360. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  361. +# Use C for the default configuration in the libtool script
  362. +LT_SUPPORTED_TAG([CC])
  363. +_LT_LANG_C_CONFIG
  364. +_LT_LANG_DEFAULT_CONFIG
  365. +_LT_CONFIG_COMMANDS
  366. +])# _LT_SETUP
  367. -AC_ARG_WITH([pic],
  368. - [AC_HELP_STRING([--with-pic],
  369. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  370. - [pic_mode="$withval"],
  371. - [pic_mode=default])
  372. -test -z "$pic_mode" && pic_mode=default
  373. -# Use C for the default configuration in the libtool script
  374. -tagname=
  375. -AC_LIBTOOL_LANG_C_CONFIG
  376. -_LT_AC_TAGCONFIG
  377. -])# AC_LIBTOOL_SETUP
  378. +# _LT_PROG_LTMAIN
  379. +# ---------------
  380. +# Note that this code is called both from `configure', and `config.status'
  381. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  382. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  383. +# so we pass a copy along to make sure it has a sensible value anyway.
  384. +m4_defun([_LT_PROG_LTMAIN],
  385. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  386. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  387. +ltmain="$ac_aux_dir/ltmain.sh"
  388. +])# _LT_PROG_LTMAIN
  389. -# _LT_AC_SYS_COMPILER
  390. -# -------------------
  391. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  392. -[AC_REQUIRE([AC_PROG_CC])dnl
  393. -# If no C compiler was specified, use CC.
  394. -LTCC=${LTCC-"$CC"}
  395. +# So that we can recreate a full libtool script including additional
  396. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  397. +# in macros and then make a single call at the end using the `libtool'
  398. +# label.
  399. -# If no C compiler flags were specified, use CFLAGS.
  400. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  401. -# Allow CC to be a program name with arguments.
  402. -compiler=$CC
  403. -])# _LT_AC_SYS_COMPILER
  404. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  405. +# ----------------------------------------
  406. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  407. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  408. +[m4_ifval([$1],
  409. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  410. + [$1
  411. +])])])
  412. +# Initialize.
  413. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  414. -# _LT_CC_BASENAME(CC)
  415. -# -------------------
  416. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  417. -AC_DEFUN([_LT_CC_BASENAME],
  418. -[for cc_temp in $1""; do
  419. - case $cc_temp in
  420. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  421. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  422. - \-*) ;;
  423. - *) break;;
  424. - esac
  425. -done
  426. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  427. +
  428. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  429. +# ------------------------------
  430. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  431. +m4_define([_LT_CONFIG_LIBTOOL],
  432. +[m4_ifval([$1],
  433. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  434. + [$1
  435. +])])])
  436. +
  437. +# Initialize.
  438. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  439. +
  440. +
  441. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  442. +# -----------------------------------------------------
  443. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  444. +[_LT_CONFIG_LIBTOOL([$1])
  445. +_LT_CONFIG_LIBTOOL_INIT([$2])
  446. ])
  447. -# _LT_COMPILER_BOILERPLATE
  448. -# ------------------------
  449. -# Check for compiler boilerplate output or warnings with
  450. -# the simple compiler test code.
  451. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  452. -[ac_outfile=conftest.$ac_objext
  453. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  454. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  455. -_lt_compiler_boilerplate=`cat conftest.err`
  456. -$rm conftest*
  457. -])# _LT_COMPILER_BOILERPLATE
  458. +# _LT_FORMAT_COMMENT([COMMENT])
  459. +# -----------------------------
  460. +# Add leading comment marks to the start of each line, and a trailing
  461. +# full-stop to the whole comment if one is not present already.
  462. +m4_define([_LT_FORMAT_COMMENT],
  463. +[m4_ifval([$1], [
  464. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  465. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  466. +)])
  467. -# _LT_LINKER_BOILERPLATE
  468. -# ----------------------
  469. -# Check for linker boilerplate output or warnings with
  470. -# the simple link test code.
  471. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  472. -[ac_outfile=conftest.$ac_objext
  473. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  474. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  475. -_lt_linker_boilerplate=`cat conftest.err`
  476. -$rm conftest*
  477. -])# _LT_LINKER_BOILERPLATE
  478. -# _LT_AC_SYS_LIBPATH_AIX
  479. -# ----------------------
  480. -# Links a minimal program and checks the executable
  481. -# for the system default hardcoded library path. In most cases,
  482. -# this is /usr/lib:/lib, but when the MPI compilers are used
  483. -# the location of the communication and MPI libs are included too.
  484. -# If we don't find anything, use the default library path according
  485. -# to the aix ld manual.
  486. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  487. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  488. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  489. -}'`
  490. -# Check for a 64-bit object if we didn't find anything.
  491. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  492. -}'`; fi],[])
  493. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  494. -])# _LT_AC_SYS_LIBPATH_AIX
  495. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  496. +# -------------------------------------------------------------------
  497. +# CONFIGNAME is the name given to the value in the libtool script.
  498. +# VARNAME is the (base) name used in the configure script.
  499. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  500. +# VARNAME. Any other value will be used directly.
  501. +m4_define([_LT_DECL],
  502. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  503. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  504. + [m4_ifval([$1], [$1], [$2])])
  505. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  506. + m4_ifval([$4],
  507. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  508. + lt_dict_add_subkey([lt_decl_dict], [$2],
  509. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  510. +])
  511. -# _LT_AC_SHELL_INIT(ARG)
  512. -# ----------------------
  513. -AC_DEFUN([_LT_AC_SHELL_INIT],
  514. -[ifdef([AC_DIVERSION_NOTICE],
  515. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  516. - [AC_DIVERT_PUSH(NOTICE)])
  517. -$1
  518. -AC_DIVERT_POP
  519. -])# _LT_AC_SHELL_INIT
  520. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  521. +# --------------------------------------------------------
  522. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  523. +
  524. +
  525. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  526. +# ------------------------------------------------
  527. +m4_define([lt_decl_tag_varnames],
  528. +[_lt_decl_filter([tagged?], [yes], $@)])
  529. +
  530. +
  531. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  532. +# ---------------------------------------------------------
  533. +m4_define([_lt_decl_filter],
  534. +[m4_case([$#],
  535. + [0], [m4_fatal([$0: too few arguments: $#])],
  536. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  537. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  538. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  539. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  540. +])
  541. -# _LT_AC_PROG_ECHO_BACKSLASH
  542. -# --------------------------
  543. -# Add some code to the start of the generated configure script which
  544. -# will find an echo command which doesn't interpret backslashes.
  545. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  546. -[_LT_AC_SHELL_INIT([
  547. -# Check that we are running under the correct shell.
  548. -SHELL=${CONFIG_SHELL-/bin/sh}
  549. -case X$ECHO in
  550. -X*--fallback-echo)
  551. - # Remove one level of quotation (which was required for Make).
  552. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  553. - ;;
  554. -esac
  555. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  556. +# --------------------------------------------------
  557. +m4_define([lt_decl_quote_varnames],
  558. +[_lt_decl_filter([value], [1], $@)])
  559. +
  560. +
  561. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  562. +# ---------------------------------------------------
  563. +m4_define([lt_decl_dquote_varnames],
  564. +[_lt_decl_filter([value], [2], $@)])
  565. +
  566. +
  567. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  568. +# ---------------------------------------------------
  569. +m4_define([lt_decl_varnames_tagged],
  570. +[m4_assert([$# <= 2])dnl
  571. +_$0(m4_quote(m4_default([$1], [[, ]])),
  572. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  573. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  574. +m4_define([_lt_decl_varnames_tagged],
  575. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  576. +
  577. +
  578. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  579. +# ------------------------------------------------
  580. +m4_define([lt_decl_all_varnames],
  581. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  582. + m4_if([$2], [],
  583. + m4_quote(lt_decl_varnames),
  584. + m4_quote(m4_shift($@))))[]dnl
  585. +])
  586. +m4_define([_lt_decl_all_varnames],
  587. +[lt_join($@, lt_decl_varnames_tagged([$1],
  588. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  589. +])
  590. -echo=${ECHO-echo}
  591. -if test "X[$]1" = X--no-reexec; then
  592. - # Discard the --no-reexec flag, and continue.
  593. - shift
  594. -elif test "X[$]1" = X--fallback-echo; then
  595. - # Avoid inline document here, it may be left over
  596. - :
  597. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  598. - # Yippee, $echo works!
  599. - :
  600. -else
  601. - # Restart under the correct shell.
  602. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  603. -fi
  604. -if test "X[$]1" = X--fallback-echo; then
  605. - # used as fallback echo
  606. - shift
  607. - cat <<EOF
  608. -[$]*
  609. -EOF
  610. - exit 0
  611. -fi
  612. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  613. +# ------------------------------------
  614. +# Quote a variable value, and forward it to `config.status' so that its
  615. +# declaration there will have the same value as in `configure'. VARNAME
  616. +# must have a single quote delimited value for this to work.
  617. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  618. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  619. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  620. -# if CDPATH is set.
  621. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  622. -if test -z "$ECHO"; then
  623. -if test "X${echo_test_string+set}" != Xset; then
  624. -# find a string as large as possible, as long as the shell can cope with it
  625. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  626. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  627. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  628. - echo_test_string=`eval $cmd` &&
  629. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  630. - then
  631. - break
  632. - fi
  633. - done
  634. -fi
  635. +# _LT_CONFIG_STATUS_DECLARATIONS
  636. +# ------------------------------
  637. +# We delimit libtool config variables with single quotes, so when
  638. +# we write them to config.status, we have to be sure to quote all
  639. +# embedded single quotes properly. In configure, this macro expands
  640. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  641. +#
  642. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  643. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  644. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  645. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  646. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  647. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  648. - test "X$echo_testing_string" = "X$echo_test_string"; then
  649. - :
  650. -else
  651. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  652. - # backslashes. This makes it impossible to quote backslashes using
  653. - # echo "$something" | sed 's/\\/\\\\/g'
  654. - #
  655. - # So, first we look for a working echo in the user's PATH.
  656. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  657. - for dir in $PATH /usr/ucb; do
  658. - IFS="$lt_save_ifs"
  659. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  660. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  661. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  662. - test "X$echo_testing_string" = "X$echo_test_string"; then
  663. - echo="$dir/echo"
  664. - break
  665. - fi
  666. - done
  667. - IFS="$lt_save_ifs"
  668. +# _LT_LIBTOOL_TAGS
  669. +# ----------------
  670. +# Output comment and list of tags supported by the script
  671. +m4_defun([_LT_LIBTOOL_TAGS],
  672. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  673. +available_tags="_LT_TAGS"dnl
  674. +])
  675. - if test "X$echo" = Xecho; then
  676. - # We didn't find a better echo, so look for alternatives.
  677. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  678. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  679. - test "X$echo_testing_string" = "X$echo_test_string"; then
  680. - # This shell has a builtin print -r that does the trick.
  681. - echo='print -r'
  682. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  683. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  684. - # If we have ksh, try running configure again with it.
  685. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  686. - export ORIGINAL_CONFIG_SHELL
  687. - CONFIG_SHELL=/bin/ksh
  688. - export CONFIG_SHELL
  689. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  690. - else
  691. - # Try using printf.
  692. - echo='printf %s\n'
  693. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  694. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  695. - test "X$echo_testing_string" = "X$echo_test_string"; then
  696. - # Cool, printf works
  697. - :
  698. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  699. - test "X$echo_testing_string" = 'X\t' &&
  700. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  701. - test "X$echo_testing_string" = "X$echo_test_string"; then
  702. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  703. - export CONFIG_SHELL
  704. - SHELL="$CONFIG_SHELL"
  705. - export SHELL
  706. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  707. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  708. - test "X$echo_testing_string" = 'X\t' &&
  709. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  710. - test "X$echo_testing_string" = "X$echo_test_string"; then
  711. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  712. - else
  713. - # maybe with a smaller string...
  714. - prev=:
  715. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  716. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  717. - then
  718. - break
  719. - fi
  720. - prev="$cmd"
  721. - done
  722. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  723. +# -----------------------------------
  724. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  725. +# expand to a commented shell variable setting:
  726. +#
  727. +# # Some comment about what VAR is for.
  728. +# visible_name=$lt_internal_name
  729. +m4_define([_LT_LIBTOOL_DECLARE],
  730. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  731. + [description])))[]dnl
  732. +m4_pushdef([_libtool_name],
  733. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  734. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  735. + [0], [_libtool_name=[$]$1],
  736. + [1], [_libtool_name=$lt_[]$1],
  737. + [2], [_libtool_name=$lt_[]$1],
  738. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  739. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  740. +])
  741. - if test "$prev" != 'sed 50q "[$]0"'; then
  742. - echo_test_string=`eval $prev`
  743. - export echo_test_string
  744. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  745. - else
  746. - # Oops. We lost completely, so just stick with echo.
  747. - echo=echo
  748. - fi
  749. - fi
  750. - fi
  751. - fi
  752. -fi
  753. -fi
  754. -# Copy echo and quote the copy suitably for passing to libtool from
  755. -# the Makefile, instead of quoting the original, which is used later.
  756. -ECHO=$echo
  757. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  758. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  759. -fi
  760. +# _LT_LIBTOOL_CONFIG_VARS
  761. +# -----------------------
  762. +# Produce commented declarations of non-tagged libtool config variables
  763. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  764. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  765. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  766. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  767. +[m4_foreach([_lt_var],
  768. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  769. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  770. -AC_SUBST(ECHO)
  771. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  772. +# _LT_LIBTOOL_TAG_VARS(TAG)
  773. +# -------------------------
  774. +m4_define([_LT_LIBTOOL_TAG_VARS],
  775. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  776. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  777. -# _LT_AC_LOCK
  778. -# -----------
  779. -AC_DEFUN([_LT_AC_LOCK],
  780. -[AC_ARG_ENABLE([libtool-lock],
  781. - [AC_HELP_STRING([--disable-libtool-lock],
  782. - [avoid locking (might break parallel builds)])])
  783. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  784. -# Some flags need to be propagated to the compiler or linker for good
  785. -# libtool support.
  786. -case $host in
  787. -ia64-*-hpux*)
  788. - # Find out which ABI we are using.
  789. - echo 'int i;' > conftest.$ac_ext
  790. - if AC_TRY_EVAL(ac_compile); then
  791. - case `/usr/bin/file conftest.$ac_objext` in
  792. - *ELF-32*)
  793. - HPUX_IA64_MODE="32"
  794. - ;;
  795. - *ELF-64*)
  796. - HPUX_IA64_MODE="64"
  797. - ;;
  798. - esac
  799. - fi
  800. - rm -rf conftest*
  801. - ;;
  802. -*-*-irix6*)
  803. - # Find out which ABI we are using.
  804. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  805. - if AC_TRY_EVAL(ac_compile); then
  806. - if test "$lt_cv_prog_gnu_ld" = yes; then
  807. - case `/usr/bin/file conftest.$ac_objext` in
  808. - *32-bit*)
  809. - LD="${LD-ld} -melf32bsmip"
  810. - ;;
  811. - *N32*)
  812. - LD="${LD-ld} -melf32bmipn32"
  813. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  814. +# ------------------------------
  815. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  816. +
  817. +
  818. +# _LT_CONFIG_COMMANDS
  819. +# -------------------
  820. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  821. +# variables for single and double quote escaping we saved from calls
  822. +# to _LT_DECL, we can put quote escaped variables declarations
  823. +# into `config.status', and then the shell code to quote escape them in
  824. +# for loops in `config.status'. Finally, any additional code accumulated
  825. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  826. +m4_defun([_LT_CONFIG_COMMANDS],
  827. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  828. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  829. + dnl instead of duplicating it all over again into config.status,
  830. + dnl then we will have config.status run $CONFIG_LT later, so it
  831. + dnl needs to know what name is stored there:
  832. + [AC_CONFIG_COMMANDS([libtool],
  833. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  834. + dnl If the libtool generation code is destined for config.status,
  835. + dnl expand the accumulated commands and init code now:
  836. + [AC_CONFIG_COMMANDS([libtool],
  837. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  838. +])#_LT_CONFIG_COMMANDS
  839. +
  840. +
  841. +# Initialize.
  842. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  843. +[
  844. +
  845. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  846. +# if CDPATH is set.
  847. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  848. +
  849. +sed_quote_subst='$sed_quote_subst'
  850. +double_quote_subst='$double_quote_subst'
  851. +delay_variable_subst='$delay_variable_subst'
  852. +_LT_CONFIG_STATUS_DECLARATIONS
  853. +LTCC='$LTCC'
  854. +LTCFLAGS='$LTCFLAGS'
  855. +compiler='$compiler_DEFAULT'
  856. +
  857. +# Quote evaled strings.
  858. +for var in lt_decl_all_varnames([[ \
  859. +]], lt_decl_quote_varnames); do
  860. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  861. + *[[\\\\\\\`\\"\\\$]]*)
  862. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  863. ;;
  864. - *64-bit*)
  865. - LD="${LD-ld} -melf64bmip"
  866. + *)
  867. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  868. ;;
  869. esac
  870. - else
  871. - case `/usr/bin/file conftest.$ac_objext` in
  872. - *32-bit*)
  873. - LD="${LD-ld} -32"
  874. - ;;
  875. - *N32*)
  876. - LD="${LD-ld} -n32"
  877. +done
  878. +
  879. +# Double-quote double-evaled strings.
  880. +for var in lt_decl_all_varnames([[ \
  881. +]], lt_decl_dquote_varnames); do
  882. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  883. + *[[\\\\\\\`\\"\\\$]]*)
  884. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  885. ;;
  886. - *64-bit*)
  887. - LD="${LD-ld} -64"
  888. + *)
  889. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  890. ;;
  891. esac
  892. - fi
  893. - fi
  894. - rm -rf conftest*
  895. - ;;
  896. -
  897. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  898. - # Find out which ABI we are using.
  899. - echo 'int i;' > conftest.$ac_ext
  900. - if AC_TRY_EVAL(ac_compile); then
  901. - case `/usr/bin/file conftest.o` in
  902. - *32-bit*)
  903. - case $host in
  904. - x86_64-*linux*)
  905. - LD="${LD-ld} -m elf_i386"
  906. - ;;
  907. - ppc64-*linux*|powerpc64-*linux*)
  908. - LD="${LD-ld} -m elf32ppclinux"
  909. - ;;
  910. - s390x-*linux*)
  911. - LD="${LD-ld} -m elf_s390"
  912. - ;;
  913. - sparc64-*linux*)
  914. - LD="${LD-ld} -m elf32_sparc"
  915. - ;;
  916. - esac
  917. - ;;
  918. - *64-bit*)
  919. - case $host in
  920. - x86_64-*linux*)
  921. - LD="${LD-ld} -m elf_x86_64"
  922. - ;;
  923. - ppc*-*linux*|powerpc*-*linux*)
  924. - LD="${LD-ld} -m elf64ppc"
  925. - ;;
  926. - s390*-*linux*)
  927. - LD="${LD-ld} -m elf64_s390"
  928. - ;;
  929. - sparc*-*linux*)
  930. - LD="${LD-ld} -m elf64_sparc"
  931. - ;;
  932. - esac
  933. - ;;
  934. - esac
  935. - fi
  936. - rm -rf conftest*
  937. - ;;
  938. -
  939. -*-*-sco3.2v5*)
  940. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  941. - SAVE_CFLAGS="$CFLAGS"
  942. - CFLAGS="$CFLAGS -belf"
  943. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  944. - [AC_LANG_PUSH(C)
  945. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  946. - AC_LANG_POP])
  947. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  948. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  949. - CFLAGS="$SAVE_CFLAGS"
  950. - fi
  951. - ;;
  952. -sparc*-*solaris*)
  953. - # Find out which ABI we are using.
  954. - echo 'int i;' > conftest.$ac_ext
  955. - if AC_TRY_EVAL(ac_compile); then
  956. - case `/usr/bin/file conftest.o` in
  957. - *64-bit*)
  958. - case $lt_cv_prog_gnu_ld in
  959. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  960. - *) LD="${LD-ld} -64" ;;
  961. - esac
  962. - ;;
  963. - esac
  964. - fi
  965. - rm -rf conftest*
  966. - ;;
  967. +done
  968. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  969. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  970. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  971. - AC_CHECK_TOOL(AS, as, false)
  972. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  973. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  974. +case \$lt_ECHO in
  975. +*'\\\[$]0 --fallback-echo"')dnl "
  976. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  977. ;;
  978. - ])
  979. esac
  980. -need_locks="$enable_libtool_lock"
  981. +_LT_OUTPUT_LIBTOOL_INIT
  982. +])
  983. -])# _LT_AC_LOCK
  984. +# LT_OUTPUT
  985. +# ---------
  986. +# This macro allows early generation of the libtool script (before
  987. +# AC_OUTPUT is called), incase it is used in configure for compilation
  988. +# tests.
  989. +AC_DEFUN([LT_OUTPUT],
  990. +[: ${CONFIG_LT=./config.lt}
  991. +AC_MSG_NOTICE([creating $CONFIG_LT])
  992. +cat >"$CONFIG_LT" <<_LTEOF
  993. +#! $SHELL
  994. +# Generated by $as_me.
  995. +# Run this file to recreate a libtool stub with the current configuration.
  996. +
  997. +lt_cl_silent=false
  998. +SHELL=\${CONFIG_SHELL-$SHELL}
  999. +_LTEOF
  1000. +
  1001. +cat >>"$CONFIG_LT" <<\_LTEOF
  1002. +AS_SHELL_SANITIZE
  1003. +_AS_PREPARE
  1004. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1005. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1006. -# ----------------------------------------------------------------
  1007. -# Check whether the given compiler option works
  1008. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1009. -[AC_REQUIRE([LT_AC_PROG_SED])
  1010. -AC_CACHE_CHECK([$1], [$2],
  1011. - [$2=no
  1012. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1013. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1014. - lt_compiler_flag="$3"
  1015. - # Insert the option either (1) after the last *FLAGS variable, or
  1016. - # (2) before a word containing "conftest.", or (3) at the end.
  1017. - # Note that $ac_compile itself does not contain backslashes and begins
  1018. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1019. - # The option is referenced via a variable to avoid confusing sed.
  1020. - lt_compile=`echo "$ac_compile" | $SED \
  1021. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1022. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1023. - -e 's:$: $lt_compiler_flag:'`
  1024. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1025. - (eval "$lt_compile" 2>conftest.err)
  1026. - ac_status=$?
  1027. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1028. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1029. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1030. - # The compiler can only warn and ignore the option if not recognized
  1031. - # So say no if there are warnings other than the usual output.
  1032. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1033. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1034. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1035. - $2=yes
  1036. - fi
  1037. - fi
  1038. - $rm conftest*
  1039. -])
  1040. +exec AS_MESSAGE_FD>&1
  1041. +exec AS_MESSAGE_LOG_FD>>config.log
  1042. +{
  1043. + echo
  1044. + AS_BOX([Running $as_me.])
  1045. +} >&AS_MESSAGE_LOG_FD
  1046. +
  1047. +lt_cl_help="\
  1048. +\`$as_me' creates a local libtool stub from the current configuration,
  1049. +for use in further configure time tests before the real libtool is
  1050. +generated.
  1051. +
  1052. +Usage: $[0] [[OPTIONS]]
  1053. +
  1054. + -h, --help print this help, then exit
  1055. + -V, --version print version number, then exit
  1056. + -q, --quiet do not print progress messages
  1057. + -d, --debug don't remove temporary files
  1058. +
  1059. +Report bugs to <bug-libtool@gnu.org>."
  1060. +
  1061. +lt_cl_version="\
  1062. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1063. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1064. +configured by $[0], generated by m4_PACKAGE_STRING.
  1065. +
  1066. +Copyright (C) 2008 Free Software Foundation, Inc.
  1067. +This config.lt script is free software; the Free Software Foundation
  1068. +gives unlimited permision to copy, distribute and modify it."
  1069. -if test x"[$]$2" = xyes; then
  1070. - ifelse([$5], , :, [$5])
  1071. -else
  1072. - ifelse([$6], , :, [$6])
  1073. -fi
  1074. -])# AC_LIBTOOL_COMPILER_OPTION
  1075. +while test $[#] != 0
  1076. +do
  1077. + case $[1] in
  1078. + --version | --v* | -V )
  1079. + echo "$lt_cl_version"; exit 0 ;;
  1080. + --help | --h* | -h )
  1081. + echo "$lt_cl_help"; exit 0 ;;
  1082. + --debug | --d* | -d )
  1083. + debug=: ;;
  1084. + --quiet | --q* | --silent | --s* | -q )
  1085. + lt_cl_silent=: ;;
  1086. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1087. +Try \`$[0] --help' for more information.]) ;;
  1088. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1089. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1090. -# ------------------------------------------------------------
  1091. -# Check whether the given compiler option works
  1092. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1093. -[AC_CACHE_CHECK([$1], [$2],
  1094. - [$2=no
  1095. - save_LDFLAGS="$LDFLAGS"
  1096. - LDFLAGS="$LDFLAGS $3"
  1097. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1098. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1099. - # The linker can only warn and ignore the option if not recognized
  1100. - # So say no if there are warnings
  1101. - if test -s conftest.err; then
  1102. - # Append any errors to the config.log.
  1103. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1104. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1105. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1106. - if diff conftest.exp conftest.er2 >/dev/null; then
  1107. - $2=yes
  1108. - fi
  1109. - else
  1110. - $2=yes
  1111. - fi
  1112. - fi
  1113. - $rm conftest*
  1114. - LDFLAGS="$save_LDFLAGS"
  1115. -])
  1116. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1117. +Try \`$[0] --help' for more information.]) ;;
  1118. + esac
  1119. + shift
  1120. +done
  1121. -if test x"[$]$2" = xyes; then
  1122. - ifelse([$4], , :, [$4])
  1123. -else
  1124. - ifelse([$5], , :, [$5])
  1125. +if $lt_cl_silent; then
  1126. + exec AS_MESSAGE_FD>/dev/null
  1127. fi
  1128. -])# AC_LIBTOOL_LINKER_OPTION
  1129. +_LTEOF
  1130. +cat >>"$CONFIG_LT" <<_LTEOF
  1131. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1132. +_LTEOF
  1133. +
  1134. +cat >>"$CONFIG_LT" <<\_LTEOF
  1135. +AC_MSG_NOTICE([creating $ofile])
  1136. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1137. +AS_EXIT(0)
  1138. +_LTEOF
  1139. +chmod +x "$CONFIG_LT"
  1140. +
  1141. +# configure is writing to config.log, but config.lt does its own redirection,
  1142. +# appending to config.log, which fails on DOS, as config.log is still kept
  1143. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1144. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1145. +if test "$no_create" != yes; then
  1146. + lt_cl_success=:
  1147. + test "$silent" = yes &&
  1148. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1149. + exec AS_MESSAGE_LOG_FD>/dev/null
  1150. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1151. + exec AS_MESSAGE_LOG_FD>>config.log
  1152. + $lt_cl_success || AS_EXIT(1)
  1153. +fi
  1154. +])# LT_OUTPUT
  1155. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1156. -# --------------------------
  1157. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1158. -[# find the maximum length of command line arguments
  1159. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1160. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1161. - i=0
  1162. - teststring="ABCD"
  1163. - case $build_os in
  1164. - msdosdjgpp*)
  1165. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1166. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1167. - # during glob expansion). Even if it were fixed, the result of this
  1168. - # check would be larger than it should be.
  1169. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1170. - ;;
  1171. +# _LT_CONFIG(TAG)
  1172. +# ---------------
  1173. +# If TAG is the built-in tag, create an initial libtool script with a
  1174. +# default configuration from the untagged config vars. Otherwise add code
  1175. +# to config.status for appending the configuration named by TAG from the
  1176. +# matching tagged config vars.
  1177. +m4_defun([_LT_CONFIG],
  1178. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1179. +_LT_CONFIG_SAVE_COMMANDS([
  1180. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1181. + m4_if(_LT_TAG, [C], [
  1182. + # See if we are running on zsh, and set the options which allow our
  1183. + # commands through without removal of \ escapes.
  1184. + if test -n "${ZSH_VERSION+set}" ; then
  1185. + setopt NO_GLOB_SUBST
  1186. + fi
  1187. - gnu*)
  1188. - # Under GNU Hurd, this test is not required because there is
  1189. - # no limit to the length of command line arguments.
  1190. - # Libtool will interpret -1 as no limit whatsoever
  1191. - lt_cv_sys_max_cmd_len=-1;
  1192. - ;;
  1193. + cfgfile="${ofile}T"
  1194. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1195. + $RM "$cfgfile"
  1196. - cygwin* | mingw*)
  1197. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1198. - # about 5 minutes as the teststring grows exponentially.
  1199. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1200. - # you end up with a "frozen" computer, even though with patience
  1201. - # the test eventually succeeds (with a max line length of 256k).
  1202. - # Instead, let's just punt: use the minimum linelength reported by
  1203. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1204. - lt_cv_sys_max_cmd_len=8192;
  1205. - ;;
  1206. + cat <<_LT_EOF >> "$cfgfile"
  1207. +#! $SHELL
  1208. - amigaos*)
  1209. - # On AmigaOS with pdksh, this test takes hours, literally.
  1210. - # So we just punt and use a minimum line length of 8192.
  1211. - lt_cv_sys_max_cmd_len=8192;
  1212. - ;;
  1213. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1214. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1215. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1216. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1217. +#
  1218. +_LT_COPYING
  1219. +_LT_LIBTOOL_TAGS
  1220. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1221. - # This has been around since 386BSD, at least. Likely further.
  1222. - if test -x /sbin/sysctl; then
  1223. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1224. - elif test -x /usr/sbin/sysctl; then
  1225. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1226. - else
  1227. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1228. - fi
  1229. - # And add a safety zone
  1230. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1231. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1232. - ;;
  1233. +# ### BEGIN LIBTOOL CONFIG
  1234. +_LT_LIBTOOL_CONFIG_VARS
  1235. +_LT_LIBTOOL_TAG_VARS
  1236. +# ### END LIBTOOL CONFIG
  1237. - interix*)
  1238. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1239. - lt_cv_sys_max_cmd_len=196608
  1240. - ;;
  1241. +_LT_EOF
  1242. - osf*)
  1243. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1244. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1245. - # nice to cause kernel panics so lets avoid the loop below.
  1246. - # First set a reasonable default.
  1247. - lt_cv_sys_max_cmd_len=16384
  1248. - #
  1249. - if test -x /sbin/sysconfig; then
  1250. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1251. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1252. - esac
  1253. - fi
  1254. - ;;
  1255. - sco3.2v5*)
  1256. - lt_cv_sys_max_cmd_len=102400
  1257. - ;;
  1258. - sysv5* | sco5v6* | sysv4.2uw2*)
  1259. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1260. - if test -n "$kargmax"; then
  1261. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1262. - else
  1263. - lt_cv_sys_max_cmd_len=32768
  1264. - fi
  1265. - ;;
  1266. - *)
  1267. - # If test is not a shell built-in, we'll probably end up computing a
  1268. - # maximum length that is only half of the actual maximum length, but
  1269. - # we can't tell.
  1270. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1271. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1272. - = "XX$teststring") >/dev/null 2>&1 &&
  1273. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1274. - lt_cv_sys_max_cmd_len=$new_result &&
  1275. - test $i != 17 # 1/2 MB should be enough
  1276. - do
  1277. - i=`expr $i + 1`
  1278. - teststring=$teststring$teststring
  1279. - done
  1280. - teststring=
  1281. - # Add a significant safety factor because C++ compilers can tack on massive
  1282. - # amounts of additional arguments before passing them to the linker.
  1283. - # It appears as though 1/2 is a usable value.
  1284. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1285. + case $host_os in
  1286. + aix3*)
  1287. + cat <<\_LT_EOF >> "$cfgfile"
  1288. +# AIX sometimes has problems with the GCC collect2 program. For some
  1289. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1290. +# vanish in a puff of smoke.
  1291. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1292. + COLLECT_NAMES=
  1293. + export COLLECT_NAMES
  1294. +fi
  1295. +_LT_EOF
  1296. ;;
  1297. esac
  1298. -])
  1299. -if test -n $lt_cv_sys_max_cmd_len ; then
  1300. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1301. -else
  1302. - AC_MSG_RESULT(none)
  1303. -fi
  1304. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1305. +
  1306. + _LT_PROG_LTMAIN
  1307. +
  1308. + # We use sed instead of cat because bash on DJGPP gets confused if
  1309. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1310. + # text mode, it properly converts lines to CR/LF. This bash problem
  1311. + # is reportedly fixed, but why not run on old versions too?
  1312. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1313. + || (rm -f "$cfgfile"; exit 1)
  1314. +
  1315. + _LT_PROG_XSI_SHELLFNS
  1316. +
  1317. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1318. + || (rm -f "$cfgfile"; exit 1)
  1319. +
  1320. + mv -f "$cfgfile" "$ofile" ||
  1321. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1322. + chmod +x "$ofile"
  1323. +],
  1324. +[cat <<_LT_EOF >> "$ofile"
  1325. +
  1326. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1327. +dnl in a comment (ie after a #).
  1328. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1329. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1330. +# ### END LIBTOOL TAG CONFIG: $1
  1331. +_LT_EOF
  1332. +])dnl /m4_if
  1333. +],
  1334. +[m4_if([$1], [], [
  1335. + PACKAGE='$PACKAGE'
  1336. + VERSION='$VERSION'
  1337. + TIMESTAMP='$TIMESTAMP'
  1338. + RM='$RM'
  1339. + ofile='$ofile'], [])
  1340. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1341. +])# _LT_CONFIG
  1342. +
  1343. +
  1344. +# LT_SUPPORTED_TAG(TAG)
  1345. +# ---------------------
  1346. +# Trace this macro to discover what tags are supported by the libtool
  1347. +# --tag option, using:
  1348. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1349. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1350. +
  1351. +
  1352. +# C support is built-in for now
  1353. +m4_define([_LT_LANG_C_enabled], [])
  1354. +m4_define([_LT_TAGS], [])
  1355. +
  1356. +
  1357. +# LT_LANG(LANG)
  1358. +# -------------
  1359. +# Enable libtool support for the given language if not already enabled.
  1360. +AC_DEFUN([LT_LANG],
  1361. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1362. +m4_case([$1],
  1363. + [C], [_LT_LANG(C)],
  1364. + [C++], [_LT_LANG(CXX)],
  1365. + [Java], [_LT_LANG(GCJ)],
  1366. + [Fortran 77], [_LT_LANG(F77)],
  1367. + [Fortran], [_LT_LANG(FC)],
  1368. + [Windows Resource], [_LT_LANG(RC)],
  1369. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1370. + [_LT_LANG($1)],
  1371. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1372. +])# LT_LANG
  1373. -# _LT_AC_CHECK_DLFCN
  1374. +# _LT_LANG(LANGNAME)
  1375. # ------------------
  1376. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1377. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1378. -])# _LT_AC_CHECK_DLFCN
  1379. +m4_defun([_LT_LANG],
  1380. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1381. + [LT_SUPPORTED_TAG([$1])dnl
  1382. + m4_append([_LT_TAGS], [$1 ])dnl
  1383. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1384. + _LT_LANG_$1_CONFIG($1)])dnl
  1385. +])# _LT_LANG
  1386. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1387. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1388. -# ---------------------------------------------------------------------
  1389. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1390. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1391. -if test "$cross_compiling" = yes; then :
  1392. - [$4]
  1393. -else
  1394. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1395. - lt_status=$lt_dlunknown
  1396. - cat > conftest.$ac_ext <<EOF
  1397. -[#line __oline__ "configure"
  1398. -#include "confdefs.h"
  1399. +# _LT_LANG_DEFAULT_CONFIG
  1400. +# -----------------------
  1401. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1402. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1403. + [LT_LANG(CXX)],
  1404. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1405. +
  1406. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1407. + [LT_LANG(F77)],
  1408. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1409. +
  1410. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1411. + [LT_LANG(FC)],
  1412. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1413. +
  1414. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1415. +dnl pulling things in needlessly.
  1416. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1417. + [LT_LANG(GCJ)],
  1418. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1419. + [LT_LANG(GCJ)],
  1420. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1421. + [LT_LANG(GCJ)],
  1422. + [m4_ifdef([AC_PROG_GCJ],
  1423. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1424. + m4_ifdef([A][M_PROG_GCJ],
  1425. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1426. + m4_ifdef([LT_PROG_GCJ],
  1427. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1428. +
  1429. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1430. + [LT_LANG(RC)],
  1431. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1432. +])# _LT_LANG_DEFAULT_CONFIG
  1433. +
  1434. +# Obsolete macros:
  1435. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1436. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1437. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1438. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1439. +dnl aclocal-1.4 backwards compatibility:
  1440. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1441. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1442. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1443. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1444. -#if HAVE_DLFCN_H
  1445. -#include <dlfcn.h>
  1446. -#endif
  1447. -#include <stdio.h>
  1448. +# _LT_TAG_COMPILER
  1449. +# ----------------
  1450. +m4_defun([_LT_TAG_COMPILER],
  1451. +[AC_REQUIRE([AC_PROG_CC])dnl
  1452. -#ifdef RTLD_GLOBAL
  1453. -# define LT_DLGLOBAL RTLD_GLOBAL
  1454. -#else
  1455. -# ifdef DL_GLOBAL
  1456. -# define LT_DLGLOBAL DL_GLOBAL
  1457. -# else
  1458. -# define LT_DLGLOBAL 0
  1459. -# endif
  1460. -#endif
  1461. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1462. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1463. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1464. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1465. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1466. - find out it does not work in some platform. */
  1467. -#ifndef LT_DLLAZY_OR_NOW
  1468. -# ifdef RTLD_LAZY
  1469. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1470. -# else
  1471. -# ifdef DL_LAZY
  1472. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1473. -# else
  1474. -# ifdef RTLD_NOW
  1475. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1476. -# else
  1477. -# ifdef DL_NOW
  1478. -# define LT_DLLAZY_OR_NOW DL_NOW
  1479. -# else
  1480. -# define LT_DLLAZY_OR_NOW 0
  1481. -# endif
  1482. -# endif
  1483. -# endif
  1484. -# endif
  1485. -#endif
  1486. +# If no C compiler was specified, use CC.
  1487. +LTCC=${LTCC-"$CC"}
  1488. -#ifdef __cplusplus
  1489. -extern "C" void exit (int);
  1490. -#endif
  1491. +# If no C compiler flags were specified, use CFLAGS.
  1492. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1493. -void fnord() { int i=42;}
  1494. -int main ()
  1495. -{
  1496. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1497. - int status = $lt_dlunknown;
  1498. +# Allow CC to be a program name with arguments.
  1499. +compiler=$CC
  1500. +])# _LT_TAG_COMPILER
  1501. - if (self)
  1502. - {
  1503. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1504. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1505. - /* dlclose (self); */
  1506. - }
  1507. - else
  1508. - puts (dlerror ());
  1509. - exit (status);
  1510. -}]
  1511. -EOF
  1512. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1513. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1514. - lt_status=$?
  1515. - case x$lt_status in
  1516. - x$lt_dlno_uscore) $1 ;;
  1517. - x$lt_dlneed_uscore) $2 ;;
  1518. - x$lt_dlunknown|x*) $3 ;;
  1519. - esac
  1520. - else :
  1521. - # compilation failed
  1522. - $3
  1523. - fi
  1524. -fi
  1525. -rm -fr conftest*
  1526. -])# _LT_AC_TRY_DLOPEN_SELF
  1527. +# _LT_COMPILER_BOILERPLATE
  1528. +# ------------------------
  1529. +# Check for compiler boilerplate output or warnings with
  1530. +# the simple compiler test code.
  1531. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1532. +[m4_require([_LT_DECL_SED])dnl
  1533. +ac_outfile=conftest.$ac_objext
  1534. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1535. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1536. +_lt_compiler_boilerplate=`cat conftest.err`
  1537. +$RM conftest*
  1538. +])# _LT_COMPILER_BOILERPLATE
  1539. -# AC_LIBTOOL_DLOPEN_SELF
  1540. +# _LT_LINKER_BOILERPLATE
  1541. # ----------------------
  1542. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1543. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1544. -if test "x$enable_dlopen" != xyes; then
  1545. - enable_dlopen=unknown
  1546. - enable_dlopen_self=unknown
  1547. - enable_dlopen_self_static=unknown
  1548. -else
  1549. - lt_cv_dlopen=no
  1550. - lt_cv_dlopen_libs=
  1551. +# Check for linker boilerplate output or warnings with
  1552. +# the simple link test code.
  1553. +m4_defun([_LT_LINKER_BOILERPLATE],
  1554. +[m4_require([_LT_DECL_SED])dnl
  1555. +ac_outfile=conftest.$ac_objext
  1556. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1557. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1558. +_lt_linker_boilerplate=`cat conftest.err`
  1559. +$RM -r conftest*
  1560. +])# _LT_LINKER_BOILERPLATE
  1561. +# _LT_REQUIRED_DARWIN_CHECKS
  1562. +# -------------------------
  1563. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1564. case $host_os in
  1565. - beos*)
  1566. - lt_cv_dlopen="load_add_on"
  1567. - lt_cv_dlopen_libs=
  1568. - lt_cv_dlopen_self=yes
  1569. - ;;
  1570. -
  1571. - mingw* | pw32*)
  1572. - lt_cv_dlopen="LoadLibrary"
  1573. - lt_cv_dlopen_libs=
  1574. - ;;
  1575. -
  1576. - cygwin*)
  1577. - lt_cv_dlopen="dlopen"
  1578. - lt_cv_dlopen_libs=
  1579. - ;;
  1580. -
  1581. - darwin*)
  1582. - # if libdl is installed we need to link against it
  1583. - AC_CHECK_LIB([dl], [dlopen],
  1584. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1585. - lt_cv_dlopen="dyld"
  1586. - lt_cv_dlopen_libs=
  1587. - lt_cv_dlopen_self=yes
  1588. + rhapsody* | darwin*)
  1589. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1590. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1591. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1592. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1593. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1594. + _LT_DECL([], [DSYMUTIL], [1],
  1595. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1596. + _LT_DECL([], [NMEDIT], [1],
  1597. + [Tool to change global to local symbols on Mac OS X])
  1598. + _LT_DECL([], [LIPO], [1],
  1599. + [Tool to manipulate fat objects and archives on Mac OS X])
  1600. + _LT_DECL([], [OTOOL], [1],
  1601. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1602. + _LT_DECL([], [OTOOL64], [1],
  1603. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1604. +
  1605. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1606. + [lt_cv_apple_cc_single_mod=no
  1607. + if test -z "${LT_MULTI_MODULE}"; then
  1608. + # By default we will add the -single_module flag. You can override
  1609. + # by either setting the environment variable LT_MULTI_MODULE
  1610. + # non-empty at configure time, or by adding -multi_module to the
  1611. + # link flags.
  1612. + rm -rf libconftest.dylib*
  1613. + echo "int foo(void){return 1;}" > conftest.c
  1614. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1615. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1616. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1617. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1618. + _lt_result=$?
  1619. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1620. + lt_cv_apple_cc_single_mod=yes
  1621. + else
  1622. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1623. + fi
  1624. + rm -rf libconftest.dylib*
  1625. + rm -f conftest.*
  1626. + fi])
  1627. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1628. + [lt_cv_ld_exported_symbols_list],
  1629. + [lt_cv_ld_exported_symbols_list=no
  1630. + save_LDFLAGS=$LDFLAGS
  1631. + echo "_main" > conftest.sym
  1632. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1633. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1634. + [lt_cv_ld_exported_symbols_list=yes],
  1635. + [lt_cv_ld_exported_symbols_list=no])
  1636. + LDFLAGS="$save_LDFLAGS"
  1637. ])
  1638. - ;;
  1639. -
  1640. - *)
  1641. - AC_CHECK_FUNC([shl_load],
  1642. - [lt_cv_dlopen="shl_load"],
  1643. - [AC_CHECK_LIB([dld], [shl_load],
  1644. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1645. - [AC_CHECK_FUNC([dlopen],
  1646. - [lt_cv_dlopen="dlopen"],
  1647. - [AC_CHECK_LIB([dl], [dlopen],
  1648. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1649. - [AC_CHECK_LIB([svld], [dlopen],
  1650. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1651. - [AC_CHECK_LIB([dld], [dld_link],
  1652. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1653. - ])
  1654. - ])
  1655. - ])
  1656. - ])
  1657. - ])
  1658. + case $host_os in
  1659. + rhapsody* | darwin1.[[012]])
  1660. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1661. + darwin1.*)
  1662. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1663. + darwin*) # darwin 5.x on
  1664. + # if running on 10.5 or later, the deployment target defaults
  1665. + # to the OS version, if on x86, and 10.4, the deployment
  1666. + # target defaults to 10.4. Don't you love it?
  1667. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1668. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1669. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1670. + 10.[[012]]*)
  1671. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1672. + 10.*)
  1673. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1674. + esac
  1675. + ;;
  1676. + esac
  1677. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1678. + _lt_dar_single_mod='$single_module'
  1679. + fi
  1680. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1681. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1682. + else
  1683. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1684. + fi
  1685. + if test "$DSYMUTIL" != ":"; then
  1686. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1687. + else
  1688. + _lt_dsymutil=
  1689. + fi
  1690. ;;
  1691. esac
  1692. +])
  1693. - if test "x$lt_cv_dlopen" != xno; then
  1694. - enable_dlopen=yes
  1695. +
  1696. +# _LT_DARWIN_LINKER_FEATURES
  1697. +# --------------------------
  1698. +# Checks for linker and compiler features on darwin
  1699. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1700. +[
  1701. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1702. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1703. + _LT_TAGVAR(hardcode_direct, $1)=no
  1704. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1705. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1706. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1707. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1708. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1709. + case $cc_basename in
  1710. + ifort*) _lt_dar_can_shared=yes ;;
  1711. + *) _lt_dar_can_shared=$GCC ;;
  1712. + esac
  1713. + if test "$_lt_dar_can_shared" = "yes"; then
  1714. + output_verbose_link_cmd=echo
  1715. + _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}"
  1716. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1717. + _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}"
  1718. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1719. + m4_if([$1], [CXX],
  1720. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1721. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1722. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1723. + fi
  1724. +],[])
  1725. else
  1726. - enable_dlopen=no
  1727. + _LT_TAGVAR(ld_shlibs, $1)=no
  1728. fi
  1729. +])
  1730. - case $lt_cv_dlopen in
  1731. - dlopen)
  1732. - save_CPPFLAGS="$CPPFLAGS"
  1733. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1734. -
  1735. - save_LDFLAGS="$LDFLAGS"
  1736. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1737. +# _LT_SYS_MODULE_PATH_AIX
  1738. +# -----------------------
  1739. +# Links a minimal program and checks the executable
  1740. +# for the system default hardcoded library path. In most cases,
  1741. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1742. +# the location of the communication and MPI libs are included too.
  1743. +# If we don't find anything, use the default library path according
  1744. +# to the aix ld manual.
  1745. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1746. +[m4_require([_LT_DECL_SED])dnl
  1747. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1748. +lt_aix_libpath_sed='
  1749. + /Import File Strings/,/^$/ {
  1750. + /^0/ {
  1751. + s/^0 *\(.*\)$/\1/
  1752. + p
  1753. + }
  1754. + }'
  1755. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1756. +# Check for a 64-bit object if we didn't find anything.
  1757. +if test -z "$aix_libpath"; then
  1758. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1759. +fi],[])
  1760. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1761. +])# _LT_SYS_MODULE_PATH_AIX
  1762. - save_LIBS="$LIBS"
  1763. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1764. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1765. - lt_cv_dlopen_self, [dnl
  1766. - _LT_AC_TRY_DLOPEN_SELF(
  1767. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1768. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1769. - ])
  1770. +# _LT_SHELL_INIT(ARG)
  1771. +# -------------------
  1772. +m4_define([_LT_SHELL_INIT],
  1773. +[ifdef([AC_DIVERSION_NOTICE],
  1774. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1775. + [AC_DIVERT_PUSH(NOTICE)])
  1776. +$1
  1777. +AC_DIVERT_POP
  1778. +])# _LT_SHELL_INIT
  1779. - if test "x$lt_cv_dlopen_self" = xyes; then
  1780. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1781. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1782. - lt_cv_dlopen_self_static, [dnl
  1783. - _LT_AC_TRY_DLOPEN_SELF(
  1784. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1785. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1786. - ])
  1787. - fi
  1788. - CPPFLAGS="$save_CPPFLAGS"
  1789. - LDFLAGS="$save_LDFLAGS"
  1790. - LIBS="$save_LIBS"
  1791. - ;;
  1792. - esac
  1793. +# _LT_PROG_ECHO_BACKSLASH
  1794. +# -----------------------
  1795. +# Add some code to the start of the generated configure script which
  1796. +# will find an echo command which doesn't interpret backslashes.
  1797. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1798. +[_LT_SHELL_INIT([
  1799. +# Check that we are running under the correct shell.
  1800. +SHELL=${CONFIG_SHELL-/bin/sh}
  1801. - case $lt_cv_dlopen_self in
  1802. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1803. - *) enable_dlopen_self=unknown ;;
  1804. - esac
  1805. +case X$lt_ECHO in
  1806. +X*--fallback-echo)
  1807. + # Remove one level of quotation (which was required for Make).
  1808. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1809. + ;;
  1810. +esac
  1811. - case $lt_cv_dlopen_self_static in
  1812. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1813. - *) enable_dlopen_self_static=unknown ;;
  1814. - esac
  1815. +ECHO=${lt_ECHO-echo}
  1816. +if test "X[$]1" = X--no-reexec; then
  1817. + # Discard the --no-reexec flag, and continue.
  1818. + shift
  1819. +elif test "X[$]1" = X--fallback-echo; then
  1820. + # Avoid inline document here, it may be left over
  1821. + :
  1822. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1823. + # Yippee, $ECHO works!
  1824. + :
  1825. +else
  1826. + # Restart under the correct shell.
  1827. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1828. fi
  1829. -])# AC_LIBTOOL_DLOPEN_SELF
  1830. -
  1831. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1832. -# ---------------------------------
  1833. -# Check to see if options -c and -o are simultaneously supported by compiler
  1834. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1835. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1836. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1837. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1838. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1839. - $rm -r conftest 2>/dev/null
  1840. - mkdir conftest
  1841. - cd conftest
  1842. - mkdir out
  1843. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1844. +if test "X[$]1" = X--fallback-echo; then
  1845. + # used as fallback echo
  1846. + shift
  1847. + cat <<_LT_EOF
  1848. +[$]*
  1849. +_LT_EOF
  1850. + exit 0
  1851. +fi
  1852. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1853. - # Insert the option either (1) after the last *FLAGS variable, or
  1854. - # (2) before a word containing "conftest.", or (3) at the end.
  1855. - # Note that $ac_compile itself does not contain backslashes and begins
  1856. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1857. - lt_compile=`echo "$ac_compile" | $SED \
  1858. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1859. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1860. - -e 's:$: $lt_compiler_flag:'`
  1861. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1862. - (eval "$lt_compile" 2>out/conftest.err)
  1863. - ac_status=$?
  1864. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1865. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1866. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1867. - then
  1868. - # The compiler can only warn and ignore the option if not recognized
  1869. - # So say no if there are warnings
  1870. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1871. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1872. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1873. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1874. - fi
  1875. - fi
  1876. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1877. - $rm conftest*
  1878. - # SGI C++ compiler will create directory out/ii_files/ for
  1879. - # template instantiation
  1880. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1881. - $rm out/* && rmdir out
  1882. - cd ..
  1883. - rmdir conftest
  1884. - $rm conftest*
  1885. -])
  1886. -])# AC_LIBTOOL_PROG_CC_C_O
  1887. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1888. +# if CDPATH is set.
  1889. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1890. +if test -z "$lt_ECHO"; then
  1891. + if test "X${echo_test_string+set}" != Xset; then
  1892. + # find a string as large as possible, as long as the shell can cope with it
  1893. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1894. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1895. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1896. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1897. + then
  1898. + break
  1899. + fi
  1900. + done
  1901. + fi
  1902. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1903. -# -----------------------------------------
  1904. -# Check to see if we can do hard links to lock some files if needed
  1905. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1906. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1907. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1908. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1909. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1910. + :
  1911. + else
  1912. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1913. + # backslashes. This makes it impossible to quote backslashes using
  1914. + # echo "$something" | sed 's/\\/\\\\/g'
  1915. + #
  1916. + # So, first we look for a working echo in the user's PATH.
  1917. -hard_links="nottested"
  1918. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1919. - # do not overwrite the value of need_locks provided by the user
  1920. - AC_MSG_CHECKING([if we can lock with hard links])
  1921. - hard_links=yes
  1922. - $rm conftest*
  1923. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1924. - touch conftest.a
  1925. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1926. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1927. - AC_MSG_RESULT([$hard_links])
  1928. - if test "$hard_links" = no; then
  1929. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1930. - need_locks=warn
  1931. - fi
  1932. -else
  1933. - need_locks=no
  1934. -fi
  1935. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1936. -
  1937. -
  1938. -# AC_LIBTOOL_OBJDIR
  1939. -# -----------------
  1940. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1941. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1942. -[rm -f .libs 2>/dev/null
  1943. -mkdir .libs 2>/dev/null
  1944. -if test -d .libs; then
  1945. - lt_cv_objdir=.libs
  1946. -else
  1947. - # MS-DOS does not allow filenames that begin with a dot.
  1948. - lt_cv_objdir=_libs
  1949. -fi
  1950. -rmdir .libs 2>/dev/null])
  1951. -objdir=$lt_cv_objdir
  1952. -])# AC_LIBTOOL_OBJDIR
  1953. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1954. + for dir in $PATH /usr/ucb; do
  1955. + IFS="$lt_save_ifs"
  1956. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1957. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1958. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1959. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1960. + ECHO="$dir/echo"
  1961. + break
  1962. + fi
  1963. + done
  1964. + IFS="$lt_save_ifs"
  1965. + if test "X$ECHO" = Xecho; then
  1966. + # We didn't find a better echo, so look for alternatives.
  1967. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1968. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1969. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1970. + # This shell has a builtin print -r that does the trick.
  1971. + ECHO='print -r'
  1972. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1973. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1974. + # If we have ksh, try running configure again with it.
  1975. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1976. + export ORIGINAL_CONFIG_SHELL
  1977. + CONFIG_SHELL=/bin/ksh
  1978. + export CONFIG_SHELL
  1979. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1980. + else
  1981. + # Try using printf.
  1982. + ECHO='printf %s\n'
  1983. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1984. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1985. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1986. + # Cool, printf works
  1987. + :
  1988. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1989. + test "X$echo_testing_string" = 'X\t' &&
  1990. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1991. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1992. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1993. + export CONFIG_SHELL
  1994. + SHELL="$CONFIG_SHELL"
  1995. + export SHELL
  1996. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1997. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1998. + test "X$echo_testing_string" = 'X\t' &&
  1999. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2000. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2001. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2002. + else
  2003. + # maybe with a smaller string...
  2004. + prev=:
  2005. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2006. -# ----------------------------------------------
  2007. -# Check hardcoding attributes.
  2008. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2009. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2010. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2011. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2012. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2013. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2014. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2015. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2016. + then
  2017. + break
  2018. + fi
  2019. + prev="$cmd"
  2020. + done
  2021. - # We can hardcode non-existant directories.
  2022. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2023. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2024. - # have to relink, otherwise we might link with an installed library
  2025. - # when we should be linking with a yet-to-be-installed one
  2026. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2027. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2028. - # Linking always hardcodes the temporary library directory.
  2029. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2030. - else
  2031. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2032. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2033. + if test "$prev" != 'sed 50q "[$]0"'; then
  2034. + echo_test_string=`eval $prev`
  2035. + export echo_test_string
  2036. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2037. + else
  2038. + # Oops. We lost completely, so just stick with echo.
  2039. + ECHO=echo
  2040. + fi
  2041. + fi
  2042. + fi
  2043. + fi
  2044. fi
  2045. -else
  2046. - # We cannot hardcode anything, or else we can only hardcode existing
  2047. - # directories.
  2048. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2049. fi
  2050. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2051. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2052. - # Fast installation is not supported
  2053. - enable_fast_install=no
  2054. -elif test "$shlibpath_overrides_runpath" = yes ||
  2055. - test "$enable_shared" = no; then
  2056. - # Fast installation is not necessary
  2057. - enable_fast_install=needless
  2058. +# Copy echo and quote the copy suitably for passing to libtool from
  2059. +# the Makefile, instead of quoting the original, which is used later.
  2060. +lt_ECHO=$ECHO
  2061. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2062. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2063. fi
  2064. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2065. +AC_SUBST(lt_ECHO)
  2066. +])
  2067. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2068. +_LT_DECL([], [ECHO], [1],
  2069. + [An echo program that does not interpret backslashes])
  2070. +])# _LT_PROG_ECHO_BACKSLASH
  2071. -# AC_LIBTOOL_SYS_LIB_STRIP
  2072. -# ------------------------
  2073. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2074. -[striplib=
  2075. -old_striplib=
  2076. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2077. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2078. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2079. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2080. - AC_MSG_RESULT([yes])
  2081. -else
  2082. -# FIXME - insert some real tests, host_os isn't really good enough
  2083. - case $host_os in
  2084. - darwin*)
  2085. - if test -n "$STRIP" ; then
  2086. - striplib="$STRIP -x"
  2087. - AC_MSG_RESULT([yes])
  2088. - else
  2089. - AC_MSG_RESULT([no])
  2090. -fi
  2091. - ;;
  2092. - *)
  2093. - AC_MSG_RESULT([no])
  2094. - ;;
  2095. - esac
  2096. -fi
  2097. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2098. +# _LT_ENABLE_LOCK
  2099. +# ---------------
  2100. +m4_defun([_LT_ENABLE_LOCK],
  2101. +[AC_ARG_ENABLE([libtool-lock],
  2102. + [AS_HELP_STRING([--disable-libtool-lock],
  2103. + [avoid locking (might break parallel builds)])])
  2104. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2105. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2106. -# -----------------------------
  2107. -# PORTME Fill in your ld.so characteristics
  2108. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2109. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2110. -library_names_spec=
  2111. -libname_spec='lib$name'
  2112. -soname_spec=
  2113. -shrext_cmds=".so"
  2114. -postinstall_cmds=
  2115. -postuninstall_cmds=
  2116. -finish_cmds=
  2117. -finish_eval=
  2118. -shlibpath_var=
  2119. -shlibpath_overrides_runpath=unknown
  2120. -version_type=none
  2121. -dynamic_linker="$host_os ld.so"
  2122. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2123. -if test "$GCC" = yes; then
  2124. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2125. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2126. - # if the path contains ";" then we assume it to be the separator
  2127. - # otherwise default to the standard path separator (i.e. ":") - it is
  2128. - # assumed that no part of a normal pathname contains ";" but that should
  2129. - # okay in the real world where ";" in dirpaths is itself problematic.
  2130. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2131. - else
  2132. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2133. +# Some flags need to be propagated to the compiler or linker for good
  2134. +# libtool support.
  2135. +case $host in
  2136. +ia64-*-hpux*)
  2137. + # Find out which ABI we are using.
  2138. + echo 'int i;' > conftest.$ac_ext
  2139. + if AC_TRY_EVAL(ac_compile); then
  2140. + case `/usr/bin/file conftest.$ac_objext` in
  2141. + *ELF-32*)
  2142. + HPUX_IA64_MODE="32"
  2143. + ;;
  2144. + *ELF-64*)
  2145. + HPUX_IA64_MODE="64"
  2146. + ;;
  2147. + esac
  2148. fi
  2149. -else
  2150. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2151. -fi
  2152. -need_lib_prefix=unknown
  2153. -hardcode_into_libs=no
  2154. -
  2155. -# when you set need_version to no, make sure it does not cause -set_version
  2156. -# flags to be left without arguments
  2157. -need_version=unknown
  2158. -
  2159. -case $host_os in
  2160. -aix3*)
  2161. - version_type=linux
  2162. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2163. - shlibpath_var=LIBPATH
  2164. -
  2165. - # AIX 3 has no versioning support, so we append a major version to the name.
  2166. - soname_spec='${libname}${release}${shared_ext}$major'
  2167. + rm -rf conftest*
  2168. ;;
  2169. -
  2170. -aix4* | aix5*)
  2171. - version_type=linux
  2172. - need_lib_prefix=no
  2173. - need_version=no
  2174. - hardcode_into_libs=yes
  2175. - if test "$host_cpu" = ia64; then
  2176. - # AIX 5 supports IA64
  2177. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2178. - shlibpath_var=LD_LIBRARY_PATH
  2179. - else
  2180. - # With GCC up to 2.95.x, collect2 would create an import file
  2181. - # for dependence libraries. The import file would start with
  2182. - # the line `#! .'. This would cause the generated library to
  2183. - # depend on `.', always an invalid library. This was fixed in
  2184. - # development snapshots of GCC prior to 3.0.
  2185. - case $host_os in
  2186. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2187. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2188. - echo ' yes '
  2189. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2190. - :
  2191. - else
  2192. - can_build_shared=no
  2193. - fi
  2194. - ;;
  2195. - esac
  2196. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2197. - # soname into executable. Probably we can add versioning support to
  2198. - # collect2, so additional links can be useful in future.
  2199. - if test "$aix_use_runtimelinking" = yes; then
  2200. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2201. - # instead of lib<name>.a to let people know that these are not
  2202. - # typical AIX shared libraries.
  2203. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2204. +*-*-irix6*)
  2205. + # Find out which ABI we are using.
  2206. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2207. + if AC_TRY_EVAL(ac_compile); then
  2208. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2209. + case `/usr/bin/file conftest.$ac_objext` in
  2210. + *32-bit*)
  2211. + LD="${LD-ld} -melf32bsmip"
  2212. + ;;
  2213. + *N32*)
  2214. + LD="${LD-ld} -melf32bmipn32"
  2215. + ;;
  2216. + *64-bit*)
  2217. + LD="${LD-ld} -melf64bmip"
  2218. + ;;
  2219. + esac
  2220. else
  2221. - # We preserve .a as extension for shared libraries through AIX4.2
  2222. - # and later when we are not doing run time linking.
  2223. - library_names_spec='${libname}${release}.a $libname.a'
  2224. - soname_spec='${libname}${release}${shared_ext}$major'
  2225. + case `/usr/bin/file conftest.$ac_objext` in
  2226. + *32-bit*)
  2227. + LD="${LD-ld} -32"
  2228. + ;;
  2229. + *N32*)
  2230. + LD="${LD-ld} -n32"
  2231. + ;;
  2232. + *64-bit*)
  2233. + LD="${LD-ld} -64"
  2234. + ;;
  2235. + esac
  2236. fi
  2237. - shlibpath_var=LIBPATH
  2238. fi
  2239. + rm -rf conftest*
  2240. ;;
  2241. -amigaos*)
  2242. - library_names_spec='$libname.ixlibrary $libname.a'
  2243. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2244. - 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'
  2245. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2246. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2247. + # Find out which ABI we are using.
  2248. + echo 'int i;' > conftest.$ac_ext
  2249. + if AC_TRY_EVAL(ac_compile); then
  2250. + case `/usr/bin/file conftest.o` in
  2251. + *32-bit*)
  2252. + case $host in
  2253. + x86_64-*kfreebsd*-gnu)
  2254. + LD="${LD-ld} -m elf_i386_fbsd"
  2255. + ;;
  2256. + x86_64-*linux*)
  2257. + LD="${LD-ld} -m elf_i386"
  2258. + ;;
  2259. + ppc64-*linux*|powerpc64-*linux*)
  2260. + LD="${LD-ld} -m elf32ppclinux"
  2261. + ;;
  2262. + s390x-*linux*)
  2263. + LD="${LD-ld} -m elf_s390"
  2264. + ;;
  2265. + sparc64-*linux*)
  2266. + LD="${LD-ld} -m elf32_sparc"
  2267. + ;;
  2268. + esac
  2269. + ;;
  2270. + *64-bit*)
  2271. + case $host in
  2272. + x86_64-*kfreebsd*-gnu)
  2273. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2274. + ;;
  2275. + x86_64-*linux*)
  2276. + LD="${LD-ld} -m elf_x86_64"
  2277. + ;;
  2278. + ppc*-*linux*|powerpc*-*linux*)
  2279. + LD="${LD-ld} -m elf64ppc"
  2280. + ;;
  2281. + s390*-*linux*|s390*-*tpf*)
  2282. + LD="${LD-ld} -m elf64_s390"
  2283. + ;;
  2284. + sparc*-*linux*)
  2285. + LD="${LD-ld} -m elf64_sparc"
  2286. + ;;
  2287. + esac
  2288. + ;;
  2289. + esac
  2290. + fi
  2291. + rm -rf conftest*
  2292. ;;
  2293. -beos*)
  2294. - library_names_spec='${libname}${shared_ext}'
  2295. - dynamic_linker="$host_os ld.so"
  2296. - shlibpath_var=LIBRARY_PATH
  2297. +*-*-sco3.2v5*)
  2298. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2299. + SAVE_CFLAGS="$CFLAGS"
  2300. + CFLAGS="$CFLAGS -belf"
  2301. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2302. + [AC_LANG_PUSH(C)
  2303. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2304. + AC_LANG_POP])
  2305. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2306. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2307. + CFLAGS="$SAVE_CFLAGS"
  2308. + fi
  2309. ;;
  2310. -
  2311. -bsdi[[45]]*)
  2312. - version_type=linux
  2313. - need_version=no
  2314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2315. - soname_spec='${libname}${release}${shared_ext}$major'
  2316. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2317. - shlibpath_var=LD_LIBRARY_PATH
  2318. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2319. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2320. - # the default ld.so.conf also contains /usr/contrib/lib and
  2321. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2322. - # libtool to hard-code these into programs
  2323. +sparc*-*solaris*)
  2324. + # Find out which ABI we are using.
  2325. + echo 'int i;' > conftest.$ac_ext
  2326. + if AC_TRY_EVAL(ac_compile); then
  2327. + case `/usr/bin/file conftest.o` in
  2328. + *64-bit*)
  2329. + case $lt_cv_prog_gnu_ld in
  2330. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2331. + *)
  2332. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2333. + LD="${LD-ld} -64"
  2334. + fi
  2335. + ;;
  2336. + esac
  2337. + ;;
  2338. + esac
  2339. + fi
  2340. + rm -rf conftest*
  2341. ;;
  2342. +esac
  2343. -cygwin* | mingw* | pw32*)
  2344. - version_type=windows
  2345. - shrext_cmds=".dll"
  2346. - need_version=no
  2347. - need_lib_prefix=no
  2348. +need_locks="$enable_libtool_lock"
  2349. +])# _LT_ENABLE_LOCK
  2350. - case $GCC,$host_os in
  2351. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2352. - library_names_spec='$libname.dll.a'
  2353. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2354. - postinstall_cmds='base_file=`basename \${file}`~
  2355. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2356. - dldir=$destdir/`dirname \$dlpath`~
  2357. - test -d \$dldir || mkdir -p \$dldir~
  2358. - $install_prog $dir/$dlname \$dldir/$dlname~
  2359. - chmod a+x \$dldir/$dlname'
  2360. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2361. - dlpath=$dir/\$dldll~
  2362. - $rm \$dlpath'
  2363. - shlibpath_overrides_runpath=yes
  2364. - case $host_os in
  2365. - cygwin*)
  2366. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2367. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2368. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2369. - ;;
  2370. - mingw*)
  2371. - # MinGW DLLs use traditional 'lib' prefix
  2372. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2373. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2374. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2375. - # It is most probably a Windows format PATH printed by
  2376. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2377. - # path with ; separators, and with drive letters. We can handle the
  2378. - # drive letters (cygwin fileutils understands them), so leave them,
  2379. - # especially as we might pass files found there to a mingw objdump,
  2380. - # which wouldn't understand a cygwinified path. Ahh.
  2381. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2382. - else
  2383. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2384. - fi
  2385. - ;;
  2386. - pw32*)
  2387. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2388. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2389. - ;;
  2390. - esac
  2391. - ;;
  2392. +# _LT_CMD_OLD_ARCHIVE
  2393. +# -------------------
  2394. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2395. +[AC_CHECK_TOOL(AR, ar, false)
  2396. +test -z "$AR" && AR=ar
  2397. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2398. +_LT_DECL([], [AR], [1], [The archiver])
  2399. +_LT_DECL([], [AR_FLAGS], [1])
  2400. +
  2401. +AC_CHECK_TOOL(STRIP, strip, :)
  2402. +test -z "$STRIP" && STRIP=:
  2403. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2404. +
  2405. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2406. +test -z "$RANLIB" && RANLIB=:
  2407. +_LT_DECL([], [RANLIB], [1],
  2408. + [Commands used to install an old-style archive])
  2409. +
  2410. +# Determine commands to create old-style static archives.
  2411. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2412. +old_postinstall_cmds='chmod 644 $oldlib'
  2413. +old_postuninstall_cmds=
  2414. +if test -n "$RANLIB"; then
  2415. + case $host_os in
  2416. + openbsd*)
  2417. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2418. + ;;
  2419. *)
  2420. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2421. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2422. ;;
  2423. esac
  2424. - dynamic_linker='Win32 ld.exe'
  2425. - # FIXME: first we should search . and the directory the executable is in
  2426. - shlibpath_var=PATH
  2427. - ;;
  2428. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2429. +fi
  2430. +_LT_DECL([], [old_postinstall_cmds], [2])
  2431. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2432. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2433. + [Commands used to build an old-style archive])
  2434. +])# _LT_CMD_OLD_ARCHIVE
  2435. -darwin* | rhapsody*)
  2436. - dynamic_linker="$host_os dyld"
  2437. - version_type=darwin
  2438. - need_lib_prefix=no
  2439. - need_version=no
  2440. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2441. - soname_spec='${libname}${release}${major}$shared_ext'
  2442. - shlibpath_overrides_runpath=yes
  2443. - shlibpath_var=DYLD_LIBRARY_PATH
  2444. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2445. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2446. - if test "$GCC" = yes; then
  2447. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2448. - else
  2449. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2450. - fi
  2451. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2452. - ;;
  2453. -dgux*)
  2454. - version_type=linux
  2455. - need_lib_prefix=no
  2456. - need_version=no
  2457. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2458. - soname_spec='${libname}${release}${shared_ext}$major'
  2459. - shlibpath_var=LD_LIBRARY_PATH
  2460. - ;;
  2461. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2462. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2463. +# ----------------------------------------------------------------
  2464. +# Check whether the given compiler option works
  2465. +AC_DEFUN([_LT_COMPILER_OPTION],
  2466. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2467. +m4_require([_LT_DECL_SED])dnl
  2468. +AC_CACHE_CHECK([$1], [$2],
  2469. + [$2=no
  2470. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2471. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2472. + lt_compiler_flag="$3"
  2473. + # Insert the option either (1) after the last *FLAGS variable, or
  2474. + # (2) before a word containing "conftest.", or (3) at the end.
  2475. + # Note that $ac_compile itself does not contain backslashes and begins
  2476. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2477. + # The option is referenced via a variable to avoid confusing sed.
  2478. + lt_compile=`echo "$ac_compile" | $SED \
  2479. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2480. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2481. + -e 's:$: $lt_compiler_flag:'`
  2482. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2483. + (eval "$lt_compile" 2>conftest.err)
  2484. + ac_status=$?
  2485. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2486. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2487. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2488. + # The compiler can only warn and ignore the option if not recognized
  2489. + # So say no if there are warnings other than the usual output.
  2490. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2491. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2492. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2493. + $2=yes
  2494. + fi
  2495. + fi
  2496. + $RM conftest*
  2497. +])
  2498. -freebsd1*)
  2499. - dynamic_linker=no
  2500. - ;;
  2501. +if test x"[$]$2" = xyes; then
  2502. + m4_if([$5], , :, [$5])
  2503. +else
  2504. + m4_if([$6], , :, [$6])
  2505. +fi
  2506. +])# _LT_COMPILER_OPTION
  2507. -freebsd* | dragonfly*)
  2508. - # DragonFly does not have aout. When/if they implement a new
  2509. - # versioning mechanism, adjust this.
  2510. - if test -x /usr/bin/objformat; then
  2511. - objformat=`/usr/bin/objformat`
  2512. - else
  2513. - case $host_os in
  2514. - freebsd[[123]]*) objformat=aout ;;
  2515. - *) objformat=elf ;;
  2516. - esac
  2517. - fi
  2518. - version_type=freebsd-$objformat
  2519. - case $version_type in
  2520. - freebsd-elf*)
  2521. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2522. - need_version=no
  2523. - need_lib_prefix=no
  2524. - ;;
  2525. - freebsd-*)
  2526. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2527. - need_version=yes
  2528. - ;;
  2529. - esac
  2530. - shlibpath_var=LD_LIBRARY_PATH
  2531. - case $host_os in
  2532. - freebsd2*)
  2533. - shlibpath_overrides_runpath=yes
  2534. - ;;
  2535. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2536. - shlibpath_overrides_runpath=yes
  2537. - hardcode_into_libs=yes
  2538. +# Old name:
  2539. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2540. +dnl aclocal-1.4 backwards compatibility:
  2541. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2542. +
  2543. +
  2544. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2545. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2546. +# ----------------------------------------------------
  2547. +# Check whether the given linker option works
  2548. +AC_DEFUN([_LT_LINKER_OPTION],
  2549. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2550. +m4_require([_LT_DECL_SED])dnl
  2551. +AC_CACHE_CHECK([$1], [$2],
  2552. + [$2=no
  2553. + save_LDFLAGS="$LDFLAGS"
  2554. + LDFLAGS="$LDFLAGS $3"
  2555. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2556. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2557. + # The linker can only warn and ignore the option if not recognized
  2558. + # So say no if there are warnings
  2559. + if test -s conftest.err; then
  2560. + # Append any errors to the config.log.
  2561. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2562. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2563. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2564. + if diff conftest.exp conftest.er2 >/dev/null; then
  2565. + $2=yes
  2566. + fi
  2567. + else
  2568. + $2=yes
  2569. + fi
  2570. + fi
  2571. + $RM -r conftest*
  2572. + LDFLAGS="$save_LDFLAGS"
  2573. +])
  2574. +
  2575. +if test x"[$]$2" = xyes; then
  2576. + m4_if([$4], , :, [$4])
  2577. +else
  2578. + m4_if([$5], , :, [$5])
  2579. +fi
  2580. +])# _LT_LINKER_OPTION
  2581. +
  2582. +# Old name:
  2583. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2584. +dnl aclocal-1.4 backwards compatibility:
  2585. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2586. +
  2587. +
  2588. +# LT_CMD_MAX_LEN
  2589. +#---------------
  2590. +AC_DEFUN([LT_CMD_MAX_LEN],
  2591. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2592. +# find the maximum length of command line arguments
  2593. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2594. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2595. + i=0
  2596. + teststring="ABCD"
  2597. +
  2598. + case $build_os in
  2599. + msdosdjgpp*)
  2600. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2601. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2602. + # during glob expansion). Even if it were fixed, the result of this
  2603. + # check would be larger than it should be.
  2604. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2605. ;;
  2606. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2607. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2608. - shlibpath_overrides_runpath=no
  2609. - hardcode_into_libs=yes
  2610. +
  2611. + gnu*)
  2612. + # Under GNU Hurd, this test is not required because there is
  2613. + # no limit to the length of command line arguments.
  2614. + # Libtool will interpret -1 as no limit whatsoever
  2615. + lt_cv_sys_max_cmd_len=-1;
  2616. ;;
  2617. - freebsd*) # from 4.6 on
  2618. - shlibpath_overrides_runpath=yes
  2619. - hardcode_into_libs=yes
  2620. +
  2621. + cygwin* | mingw* | cegcc*)
  2622. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2623. + # about 5 minutes as the teststring grows exponentially.
  2624. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2625. + # you end up with a "frozen" computer, even though with patience
  2626. + # the test eventually succeeds (with a max line length of 256k).
  2627. + # Instead, let's just punt: use the minimum linelength reported by
  2628. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2629. + lt_cv_sys_max_cmd_len=8192;
  2630. ;;
  2631. - esac
  2632. - ;;
  2633. -gnu*)
  2634. - version_type=linux
  2635. - need_lib_prefix=no
  2636. - need_version=no
  2637. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2638. - soname_spec='${libname}${release}${shared_ext}$major'
  2639. - shlibpath_var=LD_LIBRARY_PATH
  2640. - hardcode_into_libs=yes
  2641. - ;;
  2642. + amigaos*)
  2643. + # On AmigaOS with pdksh, this test takes hours, literally.
  2644. + # So we just punt and use a minimum line length of 8192.
  2645. + lt_cv_sys_max_cmd_len=8192;
  2646. + ;;
  2647. -hpux9* | hpux10* | hpux11*)
  2648. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2649. - # link against other versions.
  2650. - version_type=sunos
  2651. - need_lib_prefix=no
  2652. - need_version=no
  2653. - case $host_cpu in
  2654. - ia64*)
  2655. - shrext_cmds='.so'
  2656. - hardcode_into_libs=yes
  2657. - dynamic_linker="$host_os dld.so"
  2658. - shlibpath_var=LD_LIBRARY_PATH
  2659. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2660. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2661. - soname_spec='${libname}${release}${shared_ext}$major'
  2662. - if test "X$HPUX_IA64_MODE" = X32; then
  2663. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2664. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2665. + # This has been around since 386BSD, at least. Likely further.
  2666. + if test -x /sbin/sysctl; then
  2667. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2668. + elif test -x /usr/sbin/sysctl; then
  2669. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2670. else
  2671. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2672. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2673. fi
  2674. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2675. + # And add a safety zone
  2676. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2677. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2678. ;;
  2679. - hppa*64*)
  2680. - shrext_cmds='.sl'
  2681. - hardcode_into_libs=yes
  2682. - dynamic_linker="$host_os dld.sl"
  2683. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2684. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2685. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2686. - soname_spec='${libname}${release}${shared_ext}$major'
  2687. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2688. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2689. - ;;
  2690. - *)
  2691. - shrext_cmds='.sl'
  2692. - dynamic_linker="$host_os dld.sl"
  2693. - shlibpath_var=SHLIB_PATH
  2694. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2696. - soname_spec='${libname}${release}${shared_ext}$major'
  2697. - ;;
  2698. - esac
  2699. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2700. - postinstall_cmds='chmod 555 $lib'
  2701. - ;;
  2702. -interix3*)
  2703. - version_type=linux
  2704. - need_lib_prefix=no
  2705. - need_version=no
  2706. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2707. - soname_spec='${libname}${release}${shared_ext}$major'
  2708. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2709. - shlibpath_var=LD_LIBRARY_PATH
  2710. - shlibpath_overrides_runpath=no
  2711. - hardcode_into_libs=yes
  2712. - ;;
  2713. + interix*)
  2714. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2715. + lt_cv_sys_max_cmd_len=196608
  2716. + ;;
  2717. -irix5* | irix6* | nonstopux*)
  2718. - case $host_os in
  2719. - nonstopux*) version_type=nonstopux ;;
  2720. - *)
  2721. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2722. - version_type=linux
  2723. - else
  2724. - version_type=irix
  2725. - fi ;;
  2726. - esac
  2727. - need_lib_prefix=no
  2728. - need_version=no
  2729. - soname_spec='${libname}${release}${shared_ext}$major'
  2730. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2731. - case $host_os in
  2732. - irix5* | nonstopux*)
  2733. - libsuff= shlibsuff=
  2734. + osf*)
  2735. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2736. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2737. + # nice to cause kernel panics so lets avoid the loop below.
  2738. + # First set a reasonable default.
  2739. + lt_cv_sys_max_cmd_len=16384
  2740. + #
  2741. + if test -x /sbin/sysconfig; then
  2742. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2743. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2744. + esac
  2745. + fi
  2746. + ;;
  2747. + sco3.2v5*)
  2748. + lt_cv_sys_max_cmd_len=102400
  2749. + ;;
  2750. + sysv5* | sco5v6* | sysv4.2uw2*)
  2751. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2752. + if test -n "$kargmax"; then
  2753. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2754. + else
  2755. + lt_cv_sys_max_cmd_len=32768
  2756. + fi
  2757. ;;
  2758. *)
  2759. - case $LD in # libtool.m4 will add one of these switches to LD
  2760. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2761. - libsuff= shlibsuff= libmagic=32-bit;;
  2762. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2763. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2764. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2765. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2766. - *) libsuff= shlibsuff= libmagic=never-match;;
  2767. - esac
  2768. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2769. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2770. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2771. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2772. + else
  2773. + # Make teststring a little bigger before we do anything with it.
  2774. + # a 1K string should be a reasonable start.
  2775. + for i in 1 2 3 4 5 6 7 8 ; do
  2776. + teststring=$teststring$teststring
  2777. + done
  2778. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2779. + # If test is not a shell built-in, we'll probably end up computing a
  2780. + # maximum length that is only half of the actual maximum length, but
  2781. + # we can't tell.
  2782. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2783. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2784. + test $i != 17 # 1/2 MB should be enough
  2785. + do
  2786. + i=`expr $i + 1`
  2787. + teststring=$teststring$teststring
  2788. + done
  2789. + # Only check the string length outside the loop.
  2790. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2791. + teststring=
  2792. + # Add a significant safety factor because C++ compilers can tack on
  2793. + # massive amounts of additional arguments before passing them to the
  2794. + # linker. It appears as though 1/2 is a usable value.
  2795. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2796. + fi
  2797. ;;
  2798. esac
  2799. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2800. - shlibpath_overrides_runpath=no
  2801. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2802. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2803. - hardcode_into_libs=yes
  2804. - ;;
  2805. +])
  2806. +if test -n $lt_cv_sys_max_cmd_len ; then
  2807. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2808. +else
  2809. + AC_MSG_RESULT(none)
  2810. +fi
  2811. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2812. +_LT_DECL([], [max_cmd_len], [0],
  2813. + [What is the maximum length of a command?])
  2814. +])# LT_CMD_MAX_LEN
  2815. -# No shared lib support for Linux oldld, aout, or coff.
  2816. -linux*oldld* | linux*aout* | linux*coff*)
  2817. - dynamic_linker=no
  2818. - ;;
  2819. +# Old name:
  2820. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2821. +dnl aclocal-1.4 backwards compatibility:
  2822. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2823. -# This must be Linux ELF.
  2824. -linux* | k*bsd*-gnu)
  2825. - version_type=linux
  2826. - need_lib_prefix=no
  2827. - need_version=no
  2828. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2829. - soname_spec='${libname}${release}${shared_ext}$major'
  2830. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2831. - shlibpath_var=LD_LIBRARY_PATH
  2832. - shlibpath_overrides_runpath=no
  2833. - # This implies no fast_install, which is unacceptable.
  2834. - # Some rework will be needed to allow for fast_install
  2835. - # before this can be enabled.
  2836. - hardcode_into_libs=yes
  2837. - # Append ld.so.conf contents to the search path
  2838. - if test -f /etc/ld.so.conf; then
  2839. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2840. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2841. - fi
  2842. +# _LT_HEADER_DLFCN
  2843. +# ----------------
  2844. +m4_defun([_LT_HEADER_DLFCN],
  2845. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2846. +])# _LT_HEADER_DLFCN
  2847. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2848. - # powerpc, because MkLinux only supported shared libraries with the
  2849. - # GNU dynamic linker. Since this was broken with cross compilers,
  2850. - # most powerpc-linux boxes support dynamic linking these days and
  2851. - # people can always --disable-shared, the test was removed, and we
  2852. - # assume the GNU/Linux dynamic linker is in use.
  2853. - dynamic_linker='GNU/Linux ld.so'
  2854. - ;;
  2855. -netbsdelf*-gnu)
  2856. - version_type=linux
  2857. - need_lib_prefix=no
  2858. - need_version=no
  2859. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2860. - soname_spec='${libname}${release}${shared_ext}$major'
  2861. - shlibpath_var=LD_LIBRARY_PATH
  2862. - shlibpath_overrides_runpath=no
  2863. - hardcode_into_libs=yes
  2864. - dynamic_linker='NetBSD ld.elf_so'
  2865. - ;;
  2866. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2867. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2868. +# ----------------------------------------------------------------
  2869. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2870. +[m4_require([_LT_HEADER_DLFCN])dnl
  2871. +if test "$cross_compiling" = yes; then :
  2872. + [$4]
  2873. +else
  2874. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2875. + lt_status=$lt_dlunknown
  2876. + cat > conftest.$ac_ext <<_LT_EOF
  2877. +[#line __oline__ "configure"
  2878. +#include "confdefs.h"
  2879. -netbsd*)
  2880. - version_type=sunos
  2881. - need_lib_prefix=no
  2882. - need_version=no
  2883. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2884. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2885. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2886. - dynamic_linker='NetBSD (a.out) ld.so'
  2887. - else
  2888. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2889. - soname_spec='${libname}${release}${shared_ext}$major'
  2890. - dynamic_linker='NetBSD ld.elf_so'
  2891. - fi
  2892. - shlibpath_var=LD_LIBRARY_PATH
  2893. - shlibpath_overrides_runpath=yes
  2894. - hardcode_into_libs=yes
  2895. - ;;
  2896. +#if HAVE_DLFCN_H
  2897. +#include <dlfcn.h>
  2898. +#endif
  2899. -newsos6)
  2900. - version_type=linux
  2901. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2902. - shlibpath_var=LD_LIBRARY_PATH
  2903. - shlibpath_overrides_runpath=yes
  2904. - ;;
  2905. +#include <stdio.h>
  2906. -nto-qnx*)
  2907. - version_type=linux
  2908. - need_lib_prefix=no
  2909. - need_version=no
  2910. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2911. - soname_spec='${libname}${release}${shared_ext}$major'
  2912. - shlibpath_var=LD_LIBRARY_PATH
  2913. - shlibpath_overrides_runpath=yes
  2914. - ;;
  2915. +#ifdef RTLD_GLOBAL
  2916. +# define LT_DLGLOBAL RTLD_GLOBAL
  2917. +#else
  2918. +# ifdef DL_GLOBAL
  2919. +# define LT_DLGLOBAL DL_GLOBAL
  2920. +# else
  2921. +# define LT_DLGLOBAL 0
  2922. +# endif
  2923. +#endif
  2924. -openbsd*)
  2925. - version_type=sunos
  2926. - sys_lib_dlsearch_path_spec="/usr/lib"
  2927. - need_lib_prefix=no
  2928. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2929. - case $host_os in
  2930. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2931. - *) need_version=no ;;
  2932. - esac
  2933. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2934. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2935. - shlibpath_var=LD_LIBRARY_PATH
  2936. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2937. - case $host_os in
  2938. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2939. - shlibpath_overrides_runpath=no
  2940. - ;;
  2941. - *)
  2942. - shlibpath_overrides_runpath=yes
  2943. - ;;
  2944. - esac
  2945. - else
  2946. - shlibpath_overrides_runpath=yes
  2947. - fi
  2948. - ;;
  2949. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2950. + find out it does not work in some platform. */
  2951. +#ifndef LT_DLLAZY_OR_NOW
  2952. +# ifdef RTLD_LAZY
  2953. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2954. +# else
  2955. +# ifdef DL_LAZY
  2956. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2957. +# else
  2958. +# ifdef RTLD_NOW
  2959. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2960. +# else
  2961. +# ifdef DL_NOW
  2962. +# define LT_DLLAZY_OR_NOW DL_NOW
  2963. +# else
  2964. +# define LT_DLLAZY_OR_NOW 0
  2965. +# endif
  2966. +# endif
  2967. +# endif
  2968. +# endif
  2969. +#endif
  2970. -os2*)
  2971. - libname_spec='$name'
  2972. - shrext_cmds=".dll"
  2973. - need_lib_prefix=no
  2974. - library_names_spec='$libname${shared_ext} $libname.a'
  2975. - dynamic_linker='OS/2 ld.exe'
  2976. - shlibpath_var=LIBPATH
  2977. - ;;
  2978. +void fnord() { int i=42;}
  2979. +int main ()
  2980. +{
  2981. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2982. + int status = $lt_dlunknown;
  2983. -osf3* | osf4* | osf5*)
  2984. - version_type=osf
  2985. - need_lib_prefix=no
  2986. - need_version=no
  2987. - soname_spec='${libname}${release}${shared_ext}$major'
  2988. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2989. - shlibpath_var=LD_LIBRARY_PATH
  2990. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2991. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2992. - ;;
  2993. + if (self)
  2994. + {
  2995. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2996. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2997. + /* dlclose (self); */
  2998. + }
  2999. + else
  3000. + puts (dlerror ());
  3001. -solaris*)
  3002. - version_type=linux
  3003. - need_lib_prefix=no
  3004. - need_version=no
  3005. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3006. - soname_spec='${libname}${release}${shared_ext}$major'
  3007. - shlibpath_var=LD_LIBRARY_PATH
  3008. - shlibpath_overrides_runpath=yes
  3009. - hardcode_into_libs=yes
  3010. - # ldd complains unless libraries are executable
  3011. - postinstall_cmds='chmod +x $lib'
  3012. - ;;
  3013. -
  3014. -sunos4*)
  3015. - version_type=sunos
  3016. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3017. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3018. - shlibpath_var=LD_LIBRARY_PATH
  3019. - shlibpath_overrides_runpath=yes
  3020. - if test "$with_gnu_ld" = yes; then
  3021. - need_lib_prefix=no
  3022. - fi
  3023. - need_version=yes
  3024. - ;;
  3025. -
  3026. -sysv4 | sysv4.3*)
  3027. - version_type=linux
  3028. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3029. - soname_spec='${libname}${release}${shared_ext}$major'
  3030. - shlibpath_var=LD_LIBRARY_PATH
  3031. - case $host_vendor in
  3032. - sni)
  3033. - shlibpath_overrides_runpath=no
  3034. - need_lib_prefix=no
  3035. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3036. - runpath_var=LD_RUN_PATH
  3037. - ;;
  3038. - siemens)
  3039. - need_lib_prefix=no
  3040. - ;;
  3041. - motorola)
  3042. - need_lib_prefix=no
  3043. - need_version=no
  3044. - shlibpath_overrides_runpath=no
  3045. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3046. - ;;
  3047. - esac
  3048. - ;;
  3049. -
  3050. -sysv4*MP*)
  3051. - if test -d /usr/nec ;then
  3052. - version_type=linux
  3053. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3054. - soname_spec='$libname${shared_ext}.$major'
  3055. - shlibpath_var=LD_LIBRARY_PATH
  3056. - fi
  3057. - ;;
  3058. -
  3059. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3060. - version_type=freebsd-elf
  3061. - need_lib_prefix=no
  3062. - need_version=no
  3063. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3064. - soname_spec='${libname}${release}${shared_ext}$major'
  3065. - shlibpath_var=LD_LIBRARY_PATH
  3066. - hardcode_into_libs=yes
  3067. - if test "$with_gnu_ld" = yes; then
  3068. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3069. - shlibpath_overrides_runpath=no
  3070. - else
  3071. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3072. - shlibpath_overrides_runpath=yes
  3073. - case $host_os in
  3074. - sco3.2v5*)
  3075. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3076. - ;;
  3077. + return status;
  3078. +}]
  3079. +_LT_EOF
  3080. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3081. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3082. + lt_status=$?
  3083. + case x$lt_status in
  3084. + x$lt_dlno_uscore) $1 ;;
  3085. + x$lt_dlneed_uscore) $2 ;;
  3086. + x$lt_dlunknown|x*) $3 ;;
  3087. esac
  3088. + else :
  3089. + # compilation failed
  3090. + $3
  3091. fi
  3092. - sys_lib_dlsearch_path_spec='/usr/lib'
  3093. - ;;
  3094. -
  3095. -uts4*)
  3096. - version_type=linux
  3097. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3098. - soname_spec='${libname}${release}${shared_ext}$major'
  3099. - shlibpath_var=LD_LIBRARY_PATH
  3100. - ;;
  3101. -
  3102. -*)
  3103. - dynamic_linker=no
  3104. - ;;
  3105. -esac
  3106. -AC_MSG_RESULT([$dynamic_linker])
  3107. -test "$dynamic_linker" = no && can_build_shared=no
  3108. -
  3109. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3110. -if test "$GCC" = yes; then
  3111. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3112. fi
  3113. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3114. -
  3115. -
  3116. -# _LT_AC_TAGCONFIG
  3117. -# ----------------
  3118. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3119. -[AC_ARG_WITH([tags],
  3120. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3121. - [include additional configurations @<:@automatic@:>@])],
  3122. - [tagnames="$withval"])
  3123. -
  3124. -if test -f "$ltmain" && test -n "$tagnames"; then
  3125. - if test ! -f "${ofile}"; then
  3126. - AC_MSG_WARN([output file `$ofile' does not exist])
  3127. - fi
  3128. -
  3129. - if test -z "$LTCC"; then
  3130. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3131. - if test -z "$LTCC"; then
  3132. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3133. - else
  3134. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3135. - fi
  3136. - fi
  3137. - if test -z "$LTCFLAGS"; then
  3138. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3139. - fi
  3140. -
  3141. - # Extract list of available tagged configurations in $ofile.
  3142. - # Note that this assumes the entire list is on one line.
  3143. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3144. -
  3145. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3146. - for tagname in $tagnames; do
  3147. - IFS="$lt_save_ifs"
  3148. - # Check whether tagname contains only valid characters
  3149. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3150. - "") ;;
  3151. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3152. - ;;
  3153. - esac
  3154. +rm -fr conftest*
  3155. +])# _LT_TRY_DLOPEN_SELF
  3156. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3157. - then
  3158. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3159. - fi
  3160. - # Update the list of available tags.
  3161. - if test -n "$tagname"; then
  3162. - echo appending configuration tag \"$tagname\" to $ofile
  3163. -
  3164. - case $tagname in
  3165. - CXX)
  3166. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3167. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3168. - (test "X$CXX" != "Xg++"))) ; then
  3169. - AC_LIBTOOL_LANG_CXX_CONFIG
  3170. - else
  3171. - tagname=""
  3172. - fi
  3173. - ;;
  3174. +# LT_SYS_DLOPEN_SELF
  3175. +# ------------------
  3176. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3177. +[m4_require([_LT_HEADER_DLFCN])dnl
  3178. +if test "x$enable_dlopen" != xyes; then
  3179. + enable_dlopen=unknown
  3180. + enable_dlopen_self=unknown
  3181. + enable_dlopen_self_static=unknown
  3182. +else
  3183. + lt_cv_dlopen=no
  3184. + lt_cv_dlopen_libs=
  3185. - F77)
  3186. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3187. - AC_LIBTOOL_LANG_F77_CONFIG
  3188. - else
  3189. - tagname=""
  3190. - fi
  3191. - ;;
  3192. + case $host_os in
  3193. + beos*)
  3194. + lt_cv_dlopen="load_add_on"
  3195. + lt_cv_dlopen_libs=
  3196. + lt_cv_dlopen_self=yes
  3197. + ;;
  3198. - GCJ)
  3199. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3200. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3201. - else
  3202. - tagname=""
  3203. - fi
  3204. - ;;
  3205. + mingw* | pw32* | cegcc*)
  3206. + lt_cv_dlopen="LoadLibrary"
  3207. + lt_cv_dlopen_libs=
  3208. + ;;
  3209. - RC)
  3210. - AC_LIBTOOL_LANG_RC_CONFIG
  3211. - ;;
  3212. + cygwin*)
  3213. + lt_cv_dlopen="dlopen"
  3214. + lt_cv_dlopen_libs=
  3215. + ;;
  3216. - *)
  3217. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3218. - ;;
  3219. - esac
  3220. + darwin*)
  3221. + # if libdl is installed we need to link against it
  3222. + AC_CHECK_LIB([dl], [dlopen],
  3223. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3224. + lt_cv_dlopen="dyld"
  3225. + lt_cv_dlopen_libs=
  3226. + lt_cv_dlopen_self=yes
  3227. + ])
  3228. + ;;
  3229. - # Append the new tag name to the list of available tags.
  3230. - if test -n "$tagname" ; then
  3231. - available_tags="$available_tags $tagname"
  3232. - fi
  3233. - fi
  3234. - done
  3235. - IFS="$lt_save_ifs"
  3236. + *)
  3237. + AC_CHECK_FUNC([shl_load],
  3238. + [lt_cv_dlopen="shl_load"],
  3239. + [AC_CHECK_LIB([dld], [shl_load],
  3240. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3241. + [AC_CHECK_FUNC([dlopen],
  3242. + [lt_cv_dlopen="dlopen"],
  3243. + [AC_CHECK_LIB([dl], [dlopen],
  3244. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3245. + [AC_CHECK_LIB([svld], [dlopen],
  3246. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3247. + [AC_CHECK_LIB([dld], [dld_link],
  3248. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3249. + ])
  3250. + ])
  3251. + ])
  3252. + ])
  3253. + ])
  3254. + ;;
  3255. + esac
  3256. - # Now substitute the updated list of available tags.
  3257. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3258. - mv "${ofile}T" "$ofile"
  3259. - chmod +x "$ofile"
  3260. + if test "x$lt_cv_dlopen" != xno; then
  3261. + enable_dlopen=yes
  3262. else
  3263. - rm -f "${ofile}T"
  3264. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3265. + enable_dlopen=no
  3266. fi
  3267. -fi
  3268. -])# _LT_AC_TAGCONFIG
  3269. + case $lt_cv_dlopen in
  3270. + dlopen)
  3271. + save_CPPFLAGS="$CPPFLAGS"
  3272. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3273. -# AC_LIBTOOL_DLOPEN
  3274. -# -----------------
  3275. -# enable checks for dlopen support
  3276. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3277. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3278. -])# AC_LIBTOOL_DLOPEN
  3279. + save_LDFLAGS="$LDFLAGS"
  3280. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3281. + save_LIBS="$LIBS"
  3282. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3283. -# AC_LIBTOOL_WIN32_DLL
  3284. -# --------------------
  3285. -# declare package support for building win32 DLLs
  3286. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3287. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3288. -])# AC_LIBTOOL_WIN32_DLL
  3289. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3290. + lt_cv_dlopen_self, [dnl
  3291. + _LT_TRY_DLOPEN_SELF(
  3292. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3293. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3294. + ])
  3295. + if test "x$lt_cv_dlopen_self" = xyes; then
  3296. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3297. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3298. + lt_cv_dlopen_self_static, [dnl
  3299. + _LT_TRY_DLOPEN_SELF(
  3300. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3301. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3302. + ])
  3303. + fi
  3304. -# AC_ENABLE_SHARED([DEFAULT])
  3305. -# ---------------------------
  3306. -# implement the --enable-shared flag
  3307. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3308. -AC_DEFUN([AC_ENABLE_SHARED],
  3309. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3310. -AC_ARG_ENABLE([shared],
  3311. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3312. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3313. - [p=${PACKAGE-default}
  3314. - case $enableval in
  3315. - yes) enable_shared=yes ;;
  3316. - no) enable_shared=no ;;
  3317. - *)
  3318. - enable_shared=no
  3319. - # Look at the argument we got. We use all the common list separators.
  3320. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3321. - for pkg in $enableval; do
  3322. - IFS="$lt_save_ifs"
  3323. - if test "X$pkg" = "X$p"; then
  3324. - enable_shared=yes
  3325. - fi
  3326. - done
  3327. - IFS="$lt_save_ifs"
  3328. - ;;
  3329. - esac],
  3330. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3331. -])# AC_ENABLE_SHARED
  3332. + CPPFLAGS="$save_CPPFLAGS"
  3333. + LDFLAGS="$save_LDFLAGS"
  3334. + LIBS="$save_LIBS"
  3335. + ;;
  3336. + esac
  3337. + case $lt_cv_dlopen_self in
  3338. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3339. + *) enable_dlopen_self=unknown ;;
  3340. + esac
  3341. -# AC_DISABLE_SHARED
  3342. -# -----------------
  3343. -# set the default shared flag to --disable-shared
  3344. -AC_DEFUN([AC_DISABLE_SHARED],
  3345. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3346. -AC_ENABLE_SHARED(no)
  3347. -])# AC_DISABLE_SHARED
  3348. + case $lt_cv_dlopen_self_static in
  3349. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3350. + *) enable_dlopen_self_static=unknown ;;
  3351. + esac
  3352. +fi
  3353. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3354. + [Whether dlopen is supported])
  3355. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3356. + [Whether dlopen of programs is supported])
  3357. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3358. + [Whether dlopen of statically linked programs is supported])
  3359. +])# LT_SYS_DLOPEN_SELF
  3360. +
  3361. +# Old name:
  3362. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3363. +dnl aclocal-1.4 backwards compatibility:
  3364. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3365. -# AC_ENABLE_STATIC([DEFAULT])
  3366. +# _LT_COMPILER_C_O([TAGNAME])
  3367. # ---------------------------
  3368. -# implement the --enable-static flag
  3369. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3370. -AC_DEFUN([AC_ENABLE_STATIC],
  3371. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3372. -AC_ARG_ENABLE([static],
  3373. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3374. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3375. - [p=${PACKAGE-default}
  3376. - case $enableval in
  3377. - yes) enable_static=yes ;;
  3378. - no) enable_static=no ;;
  3379. - *)
  3380. - enable_static=no
  3381. - # Look at the argument we got. We use all the common list separators.
  3382. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3383. - for pkg in $enableval; do
  3384. - IFS="$lt_save_ifs"
  3385. - if test "X$pkg" = "X$p"; then
  3386. - enable_static=yes
  3387. - fi
  3388. - done
  3389. - IFS="$lt_save_ifs"
  3390. - ;;
  3391. - esac],
  3392. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3393. -])# AC_ENABLE_STATIC
  3394. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3395. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3396. +m4_defun([_LT_COMPILER_C_O],
  3397. +[m4_require([_LT_DECL_SED])dnl
  3398. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3399. +m4_require([_LT_TAG_COMPILER])dnl
  3400. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3401. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3402. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3403. + $RM -r conftest 2>/dev/null
  3404. + mkdir conftest
  3405. + cd conftest
  3406. + mkdir out
  3407. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3408. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3409. + # Insert the option either (1) after the last *FLAGS variable, or
  3410. + # (2) before a word containing "conftest.", or (3) at the end.
  3411. + # Note that $ac_compile itself does not contain backslashes and begins
  3412. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3413. + lt_compile=`echo "$ac_compile" | $SED \
  3414. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3415. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3416. + -e 's:$: $lt_compiler_flag:'`
  3417. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3418. + (eval "$lt_compile" 2>out/conftest.err)
  3419. + ac_status=$?
  3420. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3421. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3422. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3423. + then
  3424. + # The compiler can only warn and ignore the option if not recognized
  3425. + # So say no if there are warnings
  3426. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3427. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3428. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3429. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3430. + fi
  3431. + fi
  3432. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3433. + $RM conftest*
  3434. + # SGI C++ compiler will create directory out/ii_files/ for
  3435. + # template instantiation
  3436. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3437. + $RM out/* && rmdir out
  3438. + cd ..
  3439. + $RM -r conftest
  3440. + $RM conftest*
  3441. +])
  3442. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3443. + [Does compiler simultaneously support -c and -o options?])
  3444. +])# _LT_COMPILER_C_O
  3445. -# AC_DISABLE_STATIC
  3446. -# -----------------
  3447. -# set the default static flag to --disable-static
  3448. -AC_DEFUN([AC_DISABLE_STATIC],
  3449. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3450. -AC_ENABLE_STATIC(no)
  3451. -])# AC_DISABLE_STATIC
  3452. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3453. +# ----------------------------------
  3454. +# Check to see if we can do hard links to lock some files if needed
  3455. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3456. +[m4_require([_LT_ENABLE_LOCK])dnl
  3457. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3458. +_LT_COMPILER_C_O([$1])
  3459. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3460. -# ---------------------------------
  3461. -# implement the --enable-fast-install flag
  3462. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3463. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3464. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3465. -AC_ARG_ENABLE([fast-install],
  3466. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3467. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3468. - [p=${PACKAGE-default}
  3469. - case $enableval in
  3470. - yes) enable_fast_install=yes ;;
  3471. - no) enable_fast_install=no ;;
  3472. - *)
  3473. - enable_fast_install=no
  3474. - # Look at the argument we got. We use all the common list separators.
  3475. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3476. - for pkg in $enableval; do
  3477. - IFS="$lt_save_ifs"
  3478. - if test "X$pkg" = "X$p"; then
  3479. - enable_fast_install=yes
  3480. - fi
  3481. - done
  3482. - IFS="$lt_save_ifs"
  3483. - ;;
  3484. - esac],
  3485. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3486. -])# AC_ENABLE_FAST_INSTALL
  3487. +hard_links="nottested"
  3488. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3489. + # do not overwrite the value of need_locks provided by the user
  3490. + AC_MSG_CHECKING([if we can lock with hard links])
  3491. + hard_links=yes
  3492. + $RM conftest*
  3493. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3494. + touch conftest.a
  3495. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3496. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3497. + AC_MSG_RESULT([$hard_links])
  3498. + if test "$hard_links" = no; then
  3499. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3500. + need_locks=warn
  3501. + fi
  3502. +else
  3503. + need_locks=no
  3504. +fi
  3505. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3506. +])# _LT_COMPILER_FILE_LOCKS
  3507. -# AC_DISABLE_FAST_INSTALL
  3508. -# -----------------------
  3509. -# set the default to --disable-fast-install
  3510. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3511. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3512. -AC_ENABLE_FAST_INSTALL(no)
  3513. -])# AC_DISABLE_FAST_INSTALL
  3514. +# _LT_CHECK_OBJDIR
  3515. +# ----------------
  3516. +m4_defun([_LT_CHECK_OBJDIR],
  3517. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3518. +[rm -f .libs 2>/dev/null
  3519. +mkdir .libs 2>/dev/null
  3520. +if test -d .libs; then
  3521. + lt_cv_objdir=.libs
  3522. +else
  3523. + # MS-DOS does not allow filenames that begin with a dot.
  3524. + lt_cv_objdir=_libs
  3525. +fi
  3526. +rmdir .libs 2>/dev/null])
  3527. +objdir=$lt_cv_objdir
  3528. +_LT_DECL([], [objdir], [0],
  3529. + [The name of the directory that contains temporary libtool files])dnl
  3530. +m4_pattern_allow([LT_OBJDIR])dnl
  3531. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3532. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3533. +])# _LT_CHECK_OBJDIR
  3534. -# AC_LIBTOOL_PICMODE([MODE])
  3535. -# --------------------------
  3536. -# implement the --with-pic flag
  3537. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3538. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3539. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3540. -pic_mode=ifelse($#,1,$1,default)
  3541. -])# AC_LIBTOOL_PICMODE
  3542. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3543. +# --------------------------------------
  3544. +# Check hardcoding attributes.
  3545. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3546. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3547. +_LT_TAGVAR(hardcode_action, $1)=
  3548. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3549. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3550. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3551. + # We can hardcode non-existent directories.
  3552. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3553. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3554. + # have to relink, otherwise we might link with an installed library
  3555. + # when we should be linking with a yet-to-be-installed one
  3556. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3557. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3558. + # Linking always hardcodes the temporary library directory.
  3559. + _LT_TAGVAR(hardcode_action, $1)=relink
  3560. + else
  3561. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3562. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3563. + fi
  3564. +else
  3565. + # We cannot hardcode anything, or else we can only hardcode existing
  3566. + # directories.
  3567. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3568. +fi
  3569. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3570. -# AC_PROG_EGREP
  3571. -# -------------
  3572. -# This is predefined starting with Autoconf 2.54, so this conditional
  3573. -# definition can be removed once we require Autoconf 2.54 or later.
  3574. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3575. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3576. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3577. - then ac_cv_prog_egrep='grep -E'
  3578. - else ac_cv_prog_egrep='egrep'
  3579. - fi])
  3580. - EGREP=$ac_cv_prog_egrep
  3581. - AC_SUBST([EGREP])
  3582. -])])
  3583. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3584. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3585. + # Fast installation is not supported
  3586. + enable_fast_install=no
  3587. +elif test "$shlibpath_overrides_runpath" = yes ||
  3588. + test "$enable_shared" = no; then
  3589. + # Fast installation is not necessary
  3590. + enable_fast_install=needless
  3591. +fi
  3592. +_LT_TAGDECL([], [hardcode_action], [0],
  3593. + [How to hardcode a shared library path into an executable])
  3594. +])# _LT_LINKER_HARDCODE_LIBPATH
  3595. -# AC_PATH_TOOL_PREFIX
  3596. -# -------------------
  3597. -# find a file program which can recognise shared library
  3598. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3599. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3600. -AC_MSG_CHECKING([for $1])
  3601. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3602. -[case $MAGIC_CMD in
  3603. -[[\\/*] | ?:[\\/]*])
  3604. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3605. - ;;
  3606. -*)
  3607. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3608. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3609. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3610. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3611. -dnl not every word. This closes a longstanding sh security hole.
  3612. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3613. - for ac_dir in $ac_dummy; do
  3614. - IFS="$lt_save_ifs"
  3615. - test -z "$ac_dir" && ac_dir=.
  3616. - if test -f $ac_dir/$1; then
  3617. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3618. - if test -n "$file_magic_test_file"; then
  3619. - case $deplibs_check_method in
  3620. - "file_magic "*)
  3621. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3622. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3623. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3624. - $EGREP "$file_magic_regex" > /dev/null; then
  3625. - :
  3626. - else
  3627. - cat <<EOF 1>&2
  3628. +# _LT_CMD_STRIPLIB
  3629. +# ----------------
  3630. +m4_defun([_LT_CMD_STRIPLIB],
  3631. +[m4_require([_LT_DECL_EGREP])
  3632. +striplib=
  3633. +old_striplib=
  3634. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3635. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3636. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3637. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3638. + AC_MSG_RESULT([yes])
  3639. +else
  3640. +# FIXME - insert some real tests, host_os isn't really good enough
  3641. + case $host_os in
  3642. + darwin*)
  3643. + if test -n "$STRIP" ; then
  3644. + striplib="$STRIP -x"
  3645. + old_striplib="$STRIP -S"
  3646. + AC_MSG_RESULT([yes])
  3647. + else
  3648. + AC_MSG_RESULT([no])
  3649. + fi
  3650. + ;;
  3651. + *)
  3652. + AC_MSG_RESULT([no])
  3653. + ;;
  3654. + esac
  3655. +fi
  3656. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3657. +_LT_DECL([], [striplib], [1])
  3658. +])# _LT_CMD_STRIPLIB
  3659. -*** Warning: the command libtool uses to detect shared libraries,
  3660. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3661. -*** The result is that libtool may fail to recognize shared libraries
  3662. -*** as such. This will affect the creation of libtool libraries that
  3663. -*** depend on shared libraries, but programs linked with such libtool
  3664. -*** libraries will work regardless of this problem. Nevertheless, you
  3665. -*** may want to report the problem to your system manager and/or to
  3666. -*** bug-libtool@gnu.org
  3667. -EOF
  3668. - fi ;;
  3669. - esac
  3670. - fi
  3671. - break
  3672. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3673. +# -----------------------------
  3674. +# PORTME Fill in your ld.so characteristics
  3675. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3676. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3677. +m4_require([_LT_DECL_EGREP])dnl
  3678. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3679. +m4_require([_LT_DECL_OBJDUMP])dnl
  3680. +m4_require([_LT_DECL_SED])dnl
  3681. +AC_MSG_CHECKING([dynamic linker characteristics])
  3682. +m4_if([$1],
  3683. + [], [
  3684. +if test "$GCC" = yes; then
  3685. + case $host_os in
  3686. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3687. + *) lt_awk_arg="/^libraries:/" ;;
  3688. + esac
  3689. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3690. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3691. + # if the path contains ";" then we assume it to be the separator
  3692. + # otherwise default to the standard path separator (i.e. ":") - it is
  3693. + # assumed that no part of a normal pathname contains ";" but that should
  3694. + # okay in the real world where ";" in dirpaths is itself problematic.
  3695. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3696. + else
  3697. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3698. + fi
  3699. + # Ok, now we have the path, separated by spaces, we can step through it
  3700. + # and add multilib dir if necessary.
  3701. + lt_tmp_lt_search_path_spec=
  3702. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3703. + for lt_sys_path in $lt_search_path_spec; do
  3704. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3705. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3706. + else
  3707. + test -d "$lt_sys_path" && \
  3708. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3709. fi
  3710. done
  3711. - IFS="$lt_save_ifs"
  3712. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3713. - ;;
  3714. -esac])
  3715. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3716. -if test -n "$MAGIC_CMD"; then
  3717. - AC_MSG_RESULT($MAGIC_CMD)
  3718. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3719. +BEGIN {RS=" "; FS="/|\n";} {
  3720. + lt_foo="";
  3721. + lt_count=0;
  3722. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3723. + if ($lt_i != "" && $lt_i != ".") {
  3724. + if ($lt_i == "..") {
  3725. + lt_count++;
  3726. + } else {
  3727. + if (lt_count == 0) {
  3728. + lt_foo="/" $lt_i lt_foo;
  3729. + } else {
  3730. + lt_count--;
  3731. + }
  3732. + }
  3733. + }
  3734. + }
  3735. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3736. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3737. +}'`
  3738. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3739. else
  3740. - AC_MSG_RESULT(no)
  3741. -fi
  3742. -])# AC_PATH_TOOL_PREFIX
  3743. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3744. +fi])
  3745. +library_names_spec=
  3746. +libname_spec='lib$name'
  3747. +soname_spec=
  3748. +shrext_cmds=".so"
  3749. +postinstall_cmds=
  3750. +postuninstall_cmds=
  3751. +finish_cmds=
  3752. +finish_eval=
  3753. +shlibpath_var=
  3754. +shlibpath_overrides_runpath=unknown
  3755. +version_type=none
  3756. +dynamic_linker="$host_os ld.so"
  3757. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3758. +need_lib_prefix=unknown
  3759. +hardcode_into_libs=no
  3760. +# when you set need_version to no, make sure it does not cause -set_version
  3761. +# flags to be left without arguments
  3762. +need_version=unknown
  3763. -# AC_PATH_MAGIC
  3764. -# -------------
  3765. -# find a file program which can recognise a shared library
  3766. -AC_DEFUN([AC_PATH_MAGIC],
  3767. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3768. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3769. - if test -n "$ac_tool_prefix"; then
  3770. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3771. - else
  3772. - MAGIC_CMD=:
  3773. - fi
  3774. -fi
  3775. -])# AC_PATH_MAGIC
  3776. +case $host_os in
  3777. +aix3*)
  3778. + version_type=linux
  3779. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3780. + shlibpath_var=LIBPATH
  3781. + # AIX 3 has no versioning support, so we append a major version to the name.
  3782. + soname_spec='${libname}${release}${shared_ext}$major'
  3783. + ;;
  3784. -# AC_PROG_LD
  3785. -# ----------
  3786. -# find the pathname to the GNU or non-GNU linker
  3787. -AC_DEFUN([AC_PROG_LD],
  3788. -[AC_ARG_WITH([gnu-ld],
  3789. - [AC_HELP_STRING([--with-gnu-ld],
  3790. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3791. - [test "$withval" = no || with_gnu_ld=yes],
  3792. - [with_gnu_ld=no])
  3793. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3794. -AC_REQUIRE([AC_PROG_CC])dnl
  3795. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3796. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3797. -ac_prog=ld
  3798. -if test "$GCC" = yes; then
  3799. - # Check if gcc -print-prog-name=ld gives a path.
  3800. - AC_MSG_CHECKING([for ld used by $CC])
  3801. - case $host in
  3802. - *-*-mingw*)
  3803. - # gcc leaves a trailing carriage return which upsets mingw
  3804. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3805. - *)
  3806. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3807. - esac
  3808. - case $ac_prog in
  3809. - # Accept absolute paths.
  3810. - [[\\/]]* | ?:[[\\/]]*)
  3811. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3812. - # Canonicalize the pathname of ld
  3813. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3814. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3815. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3816. - done
  3817. - test -z "$LD" && LD="$ac_prog"
  3818. +aix[[4-9]]*)
  3819. + version_type=linux
  3820. + need_lib_prefix=no
  3821. + need_version=no
  3822. + hardcode_into_libs=yes
  3823. + if test "$host_cpu" = ia64; then
  3824. + # AIX 5 supports IA64
  3825. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3826. + shlibpath_var=LD_LIBRARY_PATH
  3827. + else
  3828. + # With GCC up to 2.95.x, collect2 would create an import file
  3829. + # for dependence libraries. The import file would start with
  3830. + # the line `#! .'. This would cause the generated library to
  3831. + # depend on `.', always an invalid library. This was fixed in
  3832. + # development snapshots of GCC prior to 3.0.
  3833. + case $host_os in
  3834. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3835. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3836. + echo ' yes '
  3837. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3838. + :
  3839. + else
  3840. + can_build_shared=no
  3841. + fi
  3842. ;;
  3843. - "")
  3844. - # If it fails, then pretend we aren't using GCC.
  3845. - ac_prog=ld
  3846. - ;;
  3847. - *)
  3848. - # If it is relative, then search for the first ld in PATH.
  3849. - with_gnu_ld=unknown
  3850. - ;;
  3851. - esac
  3852. -elif test "$with_gnu_ld" = yes; then
  3853. - AC_MSG_CHECKING([for GNU ld])
  3854. -else
  3855. - AC_MSG_CHECKING([for non-GNU ld])
  3856. -fi
  3857. -AC_CACHE_VAL(lt_cv_path_LD,
  3858. -[if test -z "$LD"; then
  3859. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3860. - for ac_dir in $PATH; do
  3861. - IFS="$lt_save_ifs"
  3862. - test -z "$ac_dir" && ac_dir=.
  3863. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3864. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3865. - # Check to see if the program is GNU ld. I'd rather use --version,
  3866. - # but apparently some variants of GNU ld only accept -v.
  3867. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3868. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3869. - *GNU* | *'with BFD'*)
  3870. - test "$with_gnu_ld" != no && break
  3871. - ;;
  3872. - *)
  3873. - test "$with_gnu_ld" != yes && break
  3874. - ;;
  3875. - esac
  3876. + esac
  3877. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3878. + # soname into executable. Probably we can add versioning support to
  3879. + # collect2, so additional links can be useful in future.
  3880. + if test "$aix_use_runtimelinking" = yes; then
  3881. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3882. + # instead of lib<name>.a to let people know that these are not
  3883. + # typical AIX shared libraries.
  3884. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3885. + else
  3886. + # We preserve .a as extension for shared libraries through AIX4.2
  3887. + # and later when we are not doing run time linking.
  3888. + library_names_spec='${libname}${release}.a $libname.a'
  3889. + soname_spec='${libname}${release}${shared_ext}$major'
  3890. fi
  3891. - done
  3892. - IFS="$lt_save_ifs"
  3893. -else
  3894. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3895. -fi])
  3896. -LD="$lt_cv_path_LD"
  3897. -if test -n "$LD"; then
  3898. - AC_MSG_RESULT($LD)
  3899. -else
  3900. - AC_MSG_RESULT(no)
  3901. -fi
  3902. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3903. -AC_PROG_LD_GNU
  3904. -])# AC_PROG_LD
  3905. -
  3906. -
  3907. -# AC_PROG_LD_GNU
  3908. -# --------------
  3909. -AC_DEFUN([AC_PROG_LD_GNU],
  3910. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3911. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3912. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3913. -case `$LD -v 2>&1 </dev/null` in
  3914. -*GNU* | *'with BFD'*)
  3915. - lt_cv_prog_gnu_ld=yes
  3916. - ;;
  3917. -*)
  3918. - lt_cv_prog_gnu_ld=no
  3919. + shlibpath_var=LIBPATH
  3920. + fi
  3921. ;;
  3922. -esac])
  3923. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3924. -])# AC_PROG_LD_GNU
  3925. -
  3926. -# AC_PROG_LD_RELOAD_FLAG
  3927. -# ----------------------
  3928. -# find reload flag for linker
  3929. -# -- PORTME Some linkers may need a different reload flag.
  3930. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3931. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3932. - lt_cv_ld_reload_flag,
  3933. - [lt_cv_ld_reload_flag='-r'])
  3934. -reload_flag=$lt_cv_ld_reload_flag
  3935. -case $reload_flag in
  3936. -"" | " "*) ;;
  3937. -*) reload_flag=" $reload_flag" ;;
  3938. -esac
  3939. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3940. -case $host_os in
  3941. - darwin*)
  3942. - if test "$GCC" = yes; then
  3943. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3944. - else
  3945. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3946. - fi
  3947. +amigaos*)
  3948. + case $host_cpu in
  3949. + powerpc)
  3950. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3951. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3952. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3953. ;;
  3954. -esac
  3955. -])# AC_PROG_LD_RELOAD_FLAG
  3956. -
  3957. -
  3958. -# AC_DEPLIBS_CHECK_METHOD
  3959. -# -----------------------
  3960. -# how to check for library dependencies
  3961. -# -- PORTME fill in with the dynamic library characteristics
  3962. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3963. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3964. -lt_cv_deplibs_check_method,
  3965. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3966. -lt_cv_file_magic_test_file=
  3967. -lt_cv_deplibs_check_method='unknown'
  3968. -# Need to set the preceding variable on all platforms that support
  3969. -# interlibrary dependencies.
  3970. -# 'none' -- dependencies not supported.
  3971. -# `unknown' -- same as none, but documents that we really don't know.
  3972. -# 'pass_all' -- all dependencies passed with no checks.
  3973. -# 'test_compile' -- check by making test program.
  3974. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3975. -# which responds to the $file_magic_cmd with a given extended regex.
  3976. -# If you have `file' or equivalent on your system and you're not sure
  3977. -# whether `pass_all' will *always* work, you probably want this one.
  3978. -
  3979. -case $host_os in
  3980. -aix4* | aix5*)
  3981. - lt_cv_deplibs_check_method=pass_all
  3982. + m68k)
  3983. + library_names_spec='$libname.ixlibrary $libname.a'
  3984. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3985. + 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'
  3986. + ;;
  3987. + esac
  3988. ;;
  3989. beos*)
  3990. - lt_cv_deplibs_check_method=pass_all
  3991. + library_names_spec='${libname}${shared_ext}'
  3992. + dynamic_linker="$host_os ld.so"
  3993. + shlibpath_var=LIBRARY_PATH
  3994. ;;
  3995. bsdi[[45]]*)
  3996. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3997. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3998. - lt_cv_file_magic_test_file=/shlib/libc.so
  3999. - ;;
  4000. -
  4001. -cygwin*)
  4002. - # func_win32_libid is a shell function defined in ltmain.sh
  4003. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4004. - lt_cv_file_magic_cmd='func_win32_libid'
  4005. + version_type=linux
  4006. + need_version=no
  4007. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4008. + soname_spec='${libname}${release}${shared_ext}$major'
  4009. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4010. + shlibpath_var=LD_LIBRARY_PATH
  4011. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4012. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4013. + # the default ld.so.conf also contains /usr/contrib/lib and
  4014. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4015. + # libtool to hard-code these into programs
  4016. ;;
  4017. -mingw* | pw32*)
  4018. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4019. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4020. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4021. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4022. - ;;
  4023. +cygwin* | mingw* | pw32* | cegcc*)
  4024. + version_type=windows
  4025. + shrext_cmds=".dll"
  4026. + need_version=no
  4027. + need_lib_prefix=no
  4028. -darwin* | rhapsody*)
  4029. - lt_cv_deplibs_check_method=pass_all
  4030. - ;;
  4031. + case $GCC,$host_os in
  4032. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4033. + library_names_spec='$libname.dll.a'
  4034. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4035. + postinstall_cmds='base_file=`basename \${file}`~
  4036. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4037. + dldir=$destdir/`dirname \$dlpath`~
  4038. + test -d \$dldir || mkdir -p \$dldir~
  4039. + $install_prog $dir/$dlname \$dldir/$dlname~
  4040. + chmod a+x \$dldir/$dlname~
  4041. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4042. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4043. + fi'
  4044. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4045. + dlpath=$dir/\$dldll~
  4046. + $RM \$dlpath'
  4047. + shlibpath_overrides_runpath=yes
  4048. -freebsd* | dragonfly*)
  4049. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4050. - case $host_cpu in
  4051. - i*86 )
  4052. - # Not sure whether the presence of OpenBSD here was a mistake.
  4053. - # Let's accept both of them until this is cleared up.
  4054. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4055. - lt_cv_file_magic_cmd=/usr/bin/file
  4056. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4057. + case $host_os in
  4058. + cygwin*)
  4059. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4060. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4061. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4062. + ;;
  4063. + mingw* | cegcc*)
  4064. + # MinGW DLLs use traditional 'lib' prefix
  4065. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4066. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4067. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4068. + # It is most probably a Windows format PATH printed by
  4069. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4070. + # path with ; separators, and with drive letters. We can handle the
  4071. + # drive letters (cygwin fileutils understands them), so leave them,
  4072. + # especially as we might pass files found there to a mingw objdump,
  4073. + # which wouldn't understand a cygwinified path. Ahh.
  4074. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4075. + else
  4076. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4077. + fi
  4078. + ;;
  4079. + pw32*)
  4080. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4081. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4082. ;;
  4083. esac
  4084. - else
  4085. - lt_cv_deplibs_check_method=pass_all
  4086. - fi
  4087. - ;;
  4088. -
  4089. -gnu*)
  4090. - lt_cv_deplibs_check_method=pass_all
  4091. - ;;
  4092. -
  4093. -hpux10.20* | hpux11*)
  4094. - lt_cv_file_magic_cmd=/usr/bin/file
  4095. - case $host_cpu in
  4096. - ia64*)
  4097. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4098. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4099. - ;;
  4100. - hppa*64*)
  4101. - [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]']
  4102. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4103. ;;
  4104. +
  4105. *)
  4106. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4107. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4108. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4109. ;;
  4110. esac
  4111. + dynamic_linker='Win32 ld.exe'
  4112. + # FIXME: first we should search . and the directory the executable is in
  4113. + shlibpath_var=PATH
  4114. ;;
  4115. -interix3*)
  4116. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4117. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4118. - ;;
  4119. -
  4120. -irix5* | irix6* | nonstopux*)
  4121. - case $LD in
  4122. - *-32|*"-32 ") libmagic=32-bit;;
  4123. - *-n32|*"-n32 ") libmagic=N32;;
  4124. - *-64|*"-64 ") libmagic=64-bit;;
  4125. - *) libmagic=never-match;;
  4126. - esac
  4127. - lt_cv_deplibs_check_method=pass_all
  4128. - ;;
  4129. -
  4130. -# This must be Linux ELF.
  4131. -linux* | k*bsd*-gnu)
  4132. - lt_cv_deplibs_check_method=pass_all
  4133. - ;;
  4134. -
  4135. -netbsd* | netbsdelf*-gnu)
  4136. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4137. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4138. - else
  4139. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4140. - fi
  4141. +darwin* | rhapsody*)
  4142. + dynamic_linker="$host_os dyld"
  4143. + version_type=darwin
  4144. + need_lib_prefix=no
  4145. + need_version=no
  4146. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4147. + soname_spec='${libname}${release}${major}$shared_ext'
  4148. + shlibpath_overrides_runpath=yes
  4149. + shlibpath_var=DYLD_LIBRARY_PATH
  4150. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4151. +m4_if([$1], [],[
  4152. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4153. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4154. ;;
  4155. -newos6*)
  4156. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4157. - lt_cv_file_magic_cmd=/usr/bin/file
  4158. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4159. +dgux*)
  4160. + version_type=linux
  4161. + need_lib_prefix=no
  4162. + need_version=no
  4163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4164. + soname_spec='${libname}${release}${shared_ext}$major'
  4165. + shlibpath_var=LD_LIBRARY_PATH
  4166. ;;
  4167. -nto-qnx*)
  4168. - lt_cv_deplibs_check_method=unknown
  4169. +freebsd1*)
  4170. + dynamic_linker=no
  4171. ;;
  4172. -openbsd*)
  4173. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4174. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4175. +freebsd* | dragonfly*)
  4176. + # DragonFly does not have aout. When/if they implement a new
  4177. + # versioning mechanism, adjust this.
  4178. + if test -x /usr/bin/objformat; then
  4179. + objformat=`/usr/bin/objformat`
  4180. else
  4181. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4182. + case $host_os in
  4183. + freebsd[[123]]*) objformat=aout ;;
  4184. + *) objformat=elf ;;
  4185. + esac
  4186. fi
  4187. + version_type=freebsd-$objformat
  4188. + case $version_type in
  4189. + freebsd-elf*)
  4190. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4191. + need_version=no
  4192. + need_lib_prefix=no
  4193. + ;;
  4194. + freebsd-*)
  4195. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4196. + need_version=yes
  4197. + ;;
  4198. + esac
  4199. + shlibpath_var=LD_LIBRARY_PATH
  4200. + case $host_os in
  4201. + freebsd2*)
  4202. + shlibpath_overrides_runpath=yes
  4203. + ;;
  4204. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4205. + shlibpath_overrides_runpath=yes
  4206. + hardcode_into_libs=yes
  4207. + ;;
  4208. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4209. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4210. + shlibpath_overrides_runpath=no
  4211. + hardcode_into_libs=yes
  4212. + ;;
  4213. + *) # from 4.6 on, and DragonFly
  4214. + shlibpath_overrides_runpath=yes
  4215. + hardcode_into_libs=yes
  4216. + ;;
  4217. + esac
  4218. ;;
  4219. -osf3* | osf4* | osf5*)
  4220. - lt_cv_deplibs_check_method=pass_all
  4221. - ;;
  4222. -
  4223. -solaris*)
  4224. - lt_cv_deplibs_check_method=pass_all
  4225. +gnu*)
  4226. + version_type=linux
  4227. + need_lib_prefix=no
  4228. + need_version=no
  4229. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4230. + soname_spec='${libname}${release}${shared_ext}$major'
  4231. + shlibpath_var=LD_LIBRARY_PATH
  4232. + hardcode_into_libs=yes
  4233. ;;
  4234. -sysv4 | sysv4.3*)
  4235. - case $host_vendor in
  4236. - motorola)
  4237. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  4238. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4239. - ;;
  4240. - ncr)
  4241. - lt_cv_deplibs_check_method=pass_all
  4242. +hpux9* | hpux10* | hpux11*)
  4243. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4244. + # link against other versions.
  4245. + version_type=sunos
  4246. + need_lib_prefix=no
  4247. + need_version=no
  4248. + case $host_cpu in
  4249. + ia64*)
  4250. + shrext_cmds='.so'
  4251. + hardcode_into_libs=yes
  4252. + dynamic_linker="$host_os dld.so"
  4253. + shlibpath_var=LD_LIBRARY_PATH
  4254. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4255. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4256. + soname_spec='${libname}${release}${shared_ext}$major'
  4257. + if test "X$HPUX_IA64_MODE" = X32; then
  4258. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4259. + else
  4260. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4261. + fi
  4262. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4263. ;;
  4264. - sequent)
  4265. - lt_cv_file_magic_cmd='/bin/file'
  4266. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4267. + hppa*64*)
  4268. + shrext_cmds='.sl'
  4269. + hardcode_into_libs=yes
  4270. + dynamic_linker="$host_os dld.sl"
  4271. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4272. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4273. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4274. + soname_spec='${libname}${release}${shared_ext}$major'
  4275. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4276. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4277. ;;
  4278. - sni)
  4279. - lt_cv_file_magic_cmd='/bin/file'
  4280. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4281. - lt_cv_file_magic_test_file=/lib/libc.so
  4282. + *)
  4283. + shrext_cmds='.sl'
  4284. + dynamic_linker="$host_os dld.sl"
  4285. + shlibpath_var=SHLIB_PATH
  4286. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4287. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4288. + soname_spec='${libname}${release}${shared_ext}$major'
  4289. ;;
  4290. - siemens)
  4291. - lt_cv_deplibs_check_method=pass_all
  4292. + esac
  4293. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4294. + postinstall_cmds='chmod 555 $lib'
  4295. + ;;
  4296. +
  4297. +interix[[3-9]]*)
  4298. + version_type=linux
  4299. + need_lib_prefix=no
  4300. + need_version=no
  4301. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4302. + soname_spec='${libname}${release}${shared_ext}$major'
  4303. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4304. + shlibpath_var=LD_LIBRARY_PATH
  4305. + shlibpath_overrides_runpath=no
  4306. + hardcode_into_libs=yes
  4307. + ;;
  4308. +
  4309. +irix5* | irix6* | nonstopux*)
  4310. + case $host_os in
  4311. + nonstopux*) version_type=nonstopux ;;
  4312. + *)
  4313. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4314. + version_type=linux
  4315. + else
  4316. + version_type=irix
  4317. + fi ;;
  4318. + esac
  4319. + need_lib_prefix=no
  4320. + need_version=no
  4321. + soname_spec='${libname}${release}${shared_ext}$major'
  4322. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4323. + case $host_os in
  4324. + irix5* | nonstopux*)
  4325. + libsuff= shlibsuff=
  4326. ;;
  4327. - pc)
  4328. - lt_cv_deplibs_check_method=pass_all
  4329. + *)
  4330. + case $LD in # libtool.m4 will add one of these switches to LD
  4331. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4332. + libsuff= shlibsuff= libmagic=32-bit;;
  4333. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4334. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4335. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4336. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4337. + *) libsuff= shlibsuff= libmagic=never-match;;
  4338. + esac
  4339. ;;
  4340. esac
  4341. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4342. + shlibpath_overrides_runpath=no
  4343. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4344. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4345. + hardcode_into_libs=yes
  4346. ;;
  4347. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4348. - lt_cv_deplibs_check_method=pass_all
  4349. +# No shared lib support for Linux oldld, aout, or coff.
  4350. +linux*oldld* | linux*aout* | linux*coff*)
  4351. + dynamic_linker=no
  4352. ;;
  4353. -esac
  4354. -])
  4355. -file_magic_cmd=$lt_cv_file_magic_cmd
  4356. -deplibs_check_method=$lt_cv_deplibs_check_method
  4357. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4358. -])# AC_DEPLIBS_CHECK_METHOD
  4359. +# This must be Linux ELF.
  4360. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4361. + version_type=linux
  4362. + need_lib_prefix=no
  4363. + need_version=no
  4364. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4365. + soname_spec='${libname}${release}${shared_ext}$major'
  4366. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4367. + shlibpath_var=LD_LIBRARY_PATH
  4368. + shlibpath_overrides_runpath=no
  4369. + # Some binutils ld are patched to set DT_RUNPATH
  4370. + save_LDFLAGS=$LDFLAGS
  4371. + save_libdir=$libdir
  4372. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4373. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4374. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4375. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4376. + [shlibpath_overrides_runpath=yes])])
  4377. + LDFLAGS=$save_LDFLAGS
  4378. + libdir=$save_libdir
  4379. -# AC_PROG_NM
  4380. -# ----------
  4381. -# find the pathname to a BSD-compatible name lister
  4382. -AC_DEFUN([AC_PROG_NM],
  4383. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4384. -[if test -n "$NM"; then
  4385. - # Let the user override the test.
  4386. - lt_cv_path_NM="$NM"
  4387. -else
  4388. - lt_nm_to_check="${ac_tool_prefix}nm"
  4389. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4390. - lt_nm_to_check="$lt_nm_to_check nm"
  4391. + # This implies no fast_install, which is unacceptable.
  4392. + # Some rework will be needed to allow for fast_install
  4393. + # before this can be enabled.
  4394. + hardcode_into_libs=yes
  4395. +
  4396. + # Append ld.so.conf contents to the search path
  4397. + if test -f /etc/ld.so.conf; then
  4398. + 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' ' '`
  4399. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4400. fi
  4401. - for lt_tmp_nm in $lt_nm_to_check; do
  4402. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4403. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4404. - IFS="$lt_save_ifs"
  4405. - test -z "$ac_dir" && ac_dir=.
  4406. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4407. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4408. - # Check to see if the nm accepts a BSD-compat flag.
  4409. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4410. - # nm: unknown option "B" ignored
  4411. - # Tru64's nm complains that /dev/null is an invalid object file
  4412. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4413. - */dev/null* | *'Invalid file or object type'*)
  4414. - lt_cv_path_NM="$tmp_nm -B"
  4415. - break
  4416. - ;;
  4417. - *)
  4418. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4419. - */dev/null*)
  4420. - lt_cv_path_NM="$tmp_nm -p"
  4421. - break
  4422. - ;;
  4423. - *)
  4424. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4425. - continue # so that we can try to find one that supports BSD flags
  4426. - ;;
  4427. - esac
  4428. - ;;
  4429. - esac
  4430. - fi
  4431. - done
  4432. - IFS="$lt_save_ifs"
  4433. - done
  4434. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4435. -fi])
  4436. -NM="$lt_cv_path_NM"
  4437. -])# AC_PROG_NM
  4438. -
  4439. -# AC_CHECK_LIBM
  4440. -# -------------
  4441. -# check for math library
  4442. -AC_DEFUN([AC_CHECK_LIBM],
  4443. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4444. -LIBM=
  4445. -case $host in
  4446. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4447. - # These system don't have libm, or don't need it
  4448. - ;;
  4449. -*-ncr-sysv4.3*)
  4450. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4451. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4452. - ;;
  4453. -*)
  4454. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4455. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4456. + # powerpc, because MkLinux only supported shared libraries with the
  4457. + # GNU dynamic linker. Since this was broken with cross compilers,
  4458. + # most powerpc-linux boxes support dynamic linking these days and
  4459. + # people can always --disable-shared, the test was removed, and we
  4460. + # assume the GNU/Linux dynamic linker is in use.
  4461. + dynamic_linker='GNU/Linux ld.so'
  4462. ;;
  4463. -esac
  4464. -])# AC_CHECK_LIBM
  4465. -
  4466. -
  4467. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4468. -# -----------------------------------
  4469. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4470. -# LTDLINCL to the include flags for the libltdl header and adds
  4471. -# --enable-ltdl-convenience to the configure arguments. Note that
  4472. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4473. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4474. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4475. -# (note the single quotes!). If your package is not flat and you're not
  4476. -# using automake, define top_builddir and top_srcdir appropriately in
  4477. -# the Makefiles.
  4478. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4479. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4480. - case $enable_ltdl_convenience in
  4481. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4482. - "") enable_ltdl_convenience=yes
  4483. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4484. - esac
  4485. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4486. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4487. - # For backwards non-gettext consistent compatibility...
  4488. - INCLTDL="$LTDLINCL"
  4489. -])# AC_LIBLTDL_CONVENIENCE
  4490. +netbsdelf*-gnu)
  4491. + version_type=linux
  4492. + need_lib_prefix=no
  4493. + need_version=no
  4494. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4495. + soname_spec='${libname}${release}${shared_ext}$major'
  4496. + shlibpath_var=LD_LIBRARY_PATH
  4497. + shlibpath_overrides_runpath=no
  4498. + hardcode_into_libs=yes
  4499. + dynamic_linker='NetBSD ld.elf_so'
  4500. + ;;
  4501. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4502. -# -----------------------------------
  4503. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4504. -# LTDLINCL to the include flags for the libltdl header and adds
  4505. -# --enable-ltdl-install to the configure arguments. Note that
  4506. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4507. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4508. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4509. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4510. -# flat and you're not using automake, define top_builddir and top_srcdir
  4511. -# appropriately in the Makefiles.
  4512. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4513. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4514. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4515. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4516. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4517. - [if test x"$enable_ltdl_install" = xno; then
  4518. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4519. - else
  4520. - enable_ltdl_install=yes
  4521. - fi
  4522. - ])
  4523. - if test x"$enable_ltdl_install" = x"yes"; then
  4524. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4525. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4526. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4527. +netbsd*)
  4528. + version_type=sunos
  4529. + need_lib_prefix=no
  4530. + need_version=no
  4531. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4532. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4533. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4534. + dynamic_linker='NetBSD (a.out) ld.so'
  4535. else
  4536. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4537. - LIBLTDL="-lltdl"
  4538. - LTDLINCL=
  4539. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4540. + soname_spec='${libname}${release}${shared_ext}$major'
  4541. + dynamic_linker='NetBSD ld.elf_so'
  4542. fi
  4543. - # For backwards non-gettext consistent compatibility...
  4544. - INCLTDL="$LTDLINCL"
  4545. -])# AC_LIBLTDL_INSTALLABLE
  4546. -
  4547. -
  4548. -# AC_LIBTOOL_CXX
  4549. -# --------------
  4550. -# enable support for C++ libraries
  4551. -AC_DEFUN([AC_LIBTOOL_CXX],
  4552. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4553. -])# AC_LIBTOOL_CXX
  4554. -
  4555. -
  4556. -# _LT_AC_LANG_CXX
  4557. -# ---------------
  4558. -AC_DEFUN([_LT_AC_LANG_CXX],
  4559. -[AC_REQUIRE([AC_PROG_CXX])
  4560. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4561. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4562. -])# _LT_AC_LANG_CXX
  4563. -
  4564. -# _LT_AC_PROG_CXXCPP
  4565. -# ------------------
  4566. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4567. -[
  4568. -AC_REQUIRE([AC_PROG_CXX])
  4569. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4570. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4571. - (test "X$CXX" != "Xg++"))) ; then
  4572. - AC_PROG_CXXCPP
  4573. -fi
  4574. -])# _LT_AC_PROG_CXXCPP
  4575. -
  4576. -# AC_LIBTOOL_F77
  4577. -# --------------
  4578. -# enable support for Fortran 77 libraries
  4579. -AC_DEFUN([AC_LIBTOOL_F77],
  4580. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4581. -])# AC_LIBTOOL_F77
  4582. + shlibpath_var=LD_LIBRARY_PATH
  4583. + shlibpath_overrides_runpath=yes
  4584. + hardcode_into_libs=yes
  4585. + ;;
  4586. +newsos6)
  4587. + version_type=linux
  4588. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4589. + shlibpath_var=LD_LIBRARY_PATH
  4590. + shlibpath_overrides_runpath=yes
  4591. + ;;
  4592. -# _LT_AC_LANG_F77
  4593. -# ---------------
  4594. -AC_DEFUN([_LT_AC_LANG_F77],
  4595. -[AC_REQUIRE([AC_PROG_F77])
  4596. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4597. -])# _LT_AC_LANG_F77
  4598. +*nto* | *qnx*)
  4599. + version_type=qnx
  4600. + need_lib_prefix=no
  4601. + need_version=no
  4602. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4603. + soname_spec='${libname}${release}${shared_ext}$major'
  4604. + shlibpath_var=LD_LIBRARY_PATH
  4605. + shlibpath_overrides_runpath=no
  4606. + hardcode_into_libs=yes
  4607. + dynamic_linker='ldqnx.so'
  4608. + ;;
  4609. +openbsd*)
  4610. + version_type=sunos
  4611. + sys_lib_dlsearch_path_spec="/usr/lib"
  4612. + need_lib_prefix=no
  4613. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4614. + case $host_os in
  4615. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4616. + *) need_version=no ;;
  4617. + esac
  4618. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4619. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4620. + shlibpath_var=LD_LIBRARY_PATH
  4621. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4622. + case $host_os in
  4623. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4624. + shlibpath_overrides_runpath=no
  4625. + ;;
  4626. + *)
  4627. + shlibpath_overrides_runpath=yes
  4628. + ;;
  4629. + esac
  4630. + else
  4631. + shlibpath_overrides_runpath=yes
  4632. + fi
  4633. + ;;
  4634. -# AC_LIBTOOL_GCJ
  4635. -# --------------
  4636. -# enable support for GCJ libraries
  4637. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4638. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4639. -])# AC_LIBTOOL_GCJ
  4640. +os2*)
  4641. + libname_spec='$name'
  4642. + shrext_cmds=".dll"
  4643. + need_lib_prefix=no
  4644. + library_names_spec='$libname${shared_ext} $libname.a'
  4645. + dynamic_linker='OS/2 ld.exe'
  4646. + shlibpath_var=LIBPATH
  4647. + ;;
  4648. +osf3* | osf4* | osf5*)
  4649. + version_type=osf
  4650. + need_lib_prefix=no
  4651. + need_version=no
  4652. + soname_spec='${libname}${release}${shared_ext}$major'
  4653. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4654. + shlibpath_var=LD_LIBRARY_PATH
  4655. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4656. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4657. + ;;
  4658. -# _LT_AC_LANG_GCJ
  4659. -# ---------------
  4660. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4661. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4662. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4663. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4664. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4665. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4666. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4667. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4668. -])# _LT_AC_LANG_GCJ
  4669. +rdos*)
  4670. + dynamic_linker=no
  4671. + ;;
  4672. +solaris*)
  4673. + version_type=linux
  4674. + need_lib_prefix=no
  4675. + need_version=no
  4676. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4677. + soname_spec='${libname}${release}${shared_ext}$major'
  4678. + shlibpath_var=LD_LIBRARY_PATH
  4679. + shlibpath_overrides_runpath=yes
  4680. + hardcode_into_libs=yes
  4681. + # ldd complains unless libraries are executable
  4682. + postinstall_cmds='chmod +x $lib'
  4683. + ;;
  4684. -# AC_LIBTOOL_RC
  4685. -# -------------
  4686. -# enable support for Windows resource files
  4687. -AC_DEFUN([AC_LIBTOOL_RC],
  4688. -[AC_REQUIRE([LT_AC_PROG_RC])
  4689. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4690. -])# AC_LIBTOOL_RC
  4691. +sunos4*)
  4692. + version_type=sunos
  4693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4694. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4695. + shlibpath_var=LD_LIBRARY_PATH
  4696. + shlibpath_overrides_runpath=yes
  4697. + if test "$with_gnu_ld" = yes; then
  4698. + need_lib_prefix=no
  4699. + fi
  4700. + need_version=yes
  4701. + ;;
  4702. +sysv4 | sysv4.3*)
  4703. + version_type=linux
  4704. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4705. + soname_spec='${libname}${release}${shared_ext}$major'
  4706. + shlibpath_var=LD_LIBRARY_PATH
  4707. + case $host_vendor in
  4708. + sni)
  4709. + shlibpath_overrides_runpath=no
  4710. + need_lib_prefix=no
  4711. + runpath_var=LD_RUN_PATH
  4712. + ;;
  4713. + siemens)
  4714. + need_lib_prefix=no
  4715. + ;;
  4716. + motorola)
  4717. + need_lib_prefix=no
  4718. + need_version=no
  4719. + shlibpath_overrides_runpath=no
  4720. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4721. + ;;
  4722. + esac
  4723. + ;;
  4724. -# AC_LIBTOOL_LANG_C_CONFIG
  4725. -# ------------------------
  4726. -# Ensure that the configuration vars for the C compiler are
  4727. -# suitably defined. Those variables are subsequently used by
  4728. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4729. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4730. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4731. -[lt_save_CC="$CC"
  4732. -AC_LANG_PUSH(C)
  4733. +sysv4*MP*)
  4734. + if test -d /usr/nec ;then
  4735. + version_type=linux
  4736. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4737. + soname_spec='$libname${shared_ext}.$major'
  4738. + shlibpath_var=LD_LIBRARY_PATH
  4739. + fi
  4740. + ;;
  4741. -# Source file extension for C test sources.
  4742. -ac_ext=c
  4743. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4744. + version_type=freebsd-elf
  4745. + need_lib_prefix=no
  4746. + need_version=no
  4747. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4748. + soname_spec='${libname}${release}${shared_ext}$major'
  4749. + shlibpath_var=LD_LIBRARY_PATH
  4750. + shlibpath_overrides_runpath=yes
  4751. + hardcode_into_libs=yes
  4752. + if test "$with_gnu_ld" = yes; then
  4753. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4754. + else
  4755. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4756. + case $host_os in
  4757. + sco3.2v5*)
  4758. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4759. + ;;
  4760. + esac
  4761. + fi
  4762. + sys_lib_dlsearch_path_spec='/usr/lib'
  4763. + ;;
  4764. -# Object file extension for compiled C test sources.
  4765. -objext=o
  4766. -_LT_AC_TAGVAR(objext, $1)=$objext
  4767. +tpf*)
  4768. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4769. + version_type=linux
  4770. + need_lib_prefix=no
  4771. + need_version=no
  4772. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4773. + shlibpath_var=LD_LIBRARY_PATH
  4774. + shlibpath_overrides_runpath=no
  4775. + hardcode_into_libs=yes
  4776. + ;;
  4777. -# Code to be used in simple compile tests
  4778. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4779. +uts4*)
  4780. + version_type=linux
  4781. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4782. + soname_spec='${libname}${release}${shared_ext}$major'
  4783. + shlibpath_var=LD_LIBRARY_PATH
  4784. + ;;
  4785. -# Code to be used in simple link tests
  4786. -lt_simple_link_test_code='int main(){return(0);}\n'
  4787. +*)
  4788. + dynamic_linker=no
  4789. + ;;
  4790. +esac
  4791. +AC_MSG_RESULT([$dynamic_linker])
  4792. +test "$dynamic_linker" = no && can_build_shared=no
  4793. -_LT_AC_SYS_COMPILER
  4794. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4795. +if test "$GCC" = yes; then
  4796. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4797. +fi
  4798. -# save warnings/boilerplate of simple test code
  4799. -_LT_COMPILER_BOILERPLATE
  4800. -_LT_LINKER_BOILERPLATE
  4801. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4802. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4803. +fi
  4804. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4805. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4806. +fi
  4807. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4808. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4809. -AC_LIBTOOL_PROG_CC_C_O($1)
  4810. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4811. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4812. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4813. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4814. -AC_LIBTOOL_SYS_LIB_STRIP
  4815. -AC_LIBTOOL_DLOPEN_SELF
  4816. -
  4817. -# Report which library types will actually be built
  4818. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4819. -AC_MSG_RESULT([$can_build_shared])
  4820. +_LT_DECL([], [variables_saved_for_relink], [1],
  4821. + [Variables whose values should be saved in libtool wrapper scripts and
  4822. + restored at link time])
  4823. +_LT_DECL([], [need_lib_prefix], [0],
  4824. + [Do we need the "lib" prefix for modules?])
  4825. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4826. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4827. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4828. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4829. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4830. + [Is shlibpath searched before the hard-coded library search path?])
  4831. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4832. +_LT_DECL([], [library_names_spec], [1],
  4833. + [[List of archive names. First name is the real one, the rest are links.
  4834. + The last name is the one that the linker finds with -lNAME]])
  4835. +_LT_DECL([], [soname_spec], [1],
  4836. + [[The coded name of the library, if different from the real name]])
  4837. +_LT_DECL([], [postinstall_cmds], [2],
  4838. + [Command to use after installation of a shared archive])
  4839. +_LT_DECL([], [postuninstall_cmds], [2],
  4840. + [Command to use after uninstallation of a shared archive])
  4841. +_LT_DECL([], [finish_cmds], [2],
  4842. + [Commands used to finish a libtool library installation in a directory])
  4843. +_LT_DECL([], [finish_eval], [1],
  4844. + [[As "finish_cmds", except a single script fragment to be evaled but
  4845. + not shown]])
  4846. +_LT_DECL([], [hardcode_into_libs], [0],
  4847. + [Whether we should hardcode library paths into libraries])
  4848. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4849. + [Compile-time system search path for libraries])
  4850. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4851. + [Run-time system search path for libraries])
  4852. +])# _LT_SYS_DYNAMIC_LINKER
  4853. -AC_MSG_CHECKING([whether to build shared libraries])
  4854. -test "$can_build_shared" = "no" && enable_shared=no
  4855. -# On AIX, shared libraries and static libraries use the same namespace, and
  4856. -# are all built from PIC.
  4857. -case $host_os in
  4858. -aix3*)
  4859. - test "$enable_shared" = yes && enable_static=no
  4860. - if test -n "$RANLIB"; then
  4861. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4862. - postinstall_cmds='$RANLIB $lib'
  4863. - fi
  4864. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4865. +# --------------------------
  4866. +# find a file program which can recognize shared library
  4867. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4868. +[m4_require([_LT_DECL_EGREP])dnl
  4869. +AC_MSG_CHECKING([for $1])
  4870. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4871. +[case $MAGIC_CMD in
  4872. +[[\\/*] | ?:[\\/]*])
  4873. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4874. ;;
  4875. +*)
  4876. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4877. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4878. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4879. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4880. +dnl not every word. This closes a longstanding sh security hole.
  4881. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4882. + for ac_dir in $ac_dummy; do
  4883. + IFS="$lt_save_ifs"
  4884. + test -z "$ac_dir" && ac_dir=.
  4885. + if test -f $ac_dir/$1; then
  4886. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4887. + if test -n "$file_magic_test_file"; then
  4888. + case $deplibs_check_method in
  4889. + "file_magic "*)
  4890. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4891. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4892. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4893. + $EGREP "$file_magic_regex" > /dev/null; then
  4894. + :
  4895. + else
  4896. + cat <<_LT_EOF 1>&2
  4897. -aix4* | aix5*)
  4898. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4899. - test "$enable_shared" = yes && enable_static=no
  4900. - fi
  4901. - ;;
  4902. -esac
  4903. -AC_MSG_RESULT([$enable_shared])
  4904. -
  4905. -AC_MSG_CHECKING([whether to build static libraries])
  4906. -# Make sure either enable_shared or enable_static is yes.
  4907. -test "$enable_shared" = yes || enable_static=yes
  4908. -AC_MSG_RESULT([$enable_static])
  4909. -
  4910. -AC_LIBTOOL_CONFIG($1)
  4911. -
  4912. -AC_LANG_POP
  4913. -CC="$lt_save_CC"
  4914. -])# AC_LIBTOOL_LANG_C_CONFIG
  4915. -
  4916. -
  4917. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4918. -# --------------------------
  4919. -# Ensure that the configuration vars for the C compiler are
  4920. -# suitably defined. Those variables are subsequently used by
  4921. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4922. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4923. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4924. -[AC_LANG_PUSH(C++)
  4925. -AC_REQUIRE([AC_PROG_CXX])
  4926. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4927. -
  4928. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4929. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4930. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4931. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4932. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4933. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4934. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4935. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4936. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4937. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4938. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4939. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4940. -_LT_AC_TAGVAR(module_cmds, $1)=
  4941. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4942. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4943. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4944. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4945. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4946. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4947. +*** Warning: the command libtool uses to detect shared libraries,
  4948. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4949. +*** The result is that libtool may fail to recognize shared libraries
  4950. +*** as such. This will affect the creation of libtool libraries that
  4951. +*** depend on shared libraries, but programs linked with such libtool
  4952. +*** libraries will work regardless of this problem. Nevertheless, you
  4953. +*** may want to report the problem to your system manager and/or to
  4954. +*** bug-libtool@gnu.org
  4955. -# Dependencies to place before and after the object being linked:
  4956. -_LT_AC_TAGVAR(predep_objects, $1)=
  4957. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4958. -_LT_AC_TAGVAR(predeps, $1)=
  4959. -_LT_AC_TAGVAR(postdeps, $1)=
  4960. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4961. +_LT_EOF
  4962. + fi ;;
  4963. + esac
  4964. + fi
  4965. + break
  4966. + fi
  4967. + done
  4968. + IFS="$lt_save_ifs"
  4969. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4970. + ;;
  4971. +esac])
  4972. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4973. +if test -n "$MAGIC_CMD"; then
  4974. + AC_MSG_RESULT($MAGIC_CMD)
  4975. +else
  4976. + AC_MSG_RESULT(no)
  4977. +fi
  4978. +_LT_DECL([], [MAGIC_CMD], [0],
  4979. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4980. +])# _LT_PATH_TOOL_PREFIX
  4981. -# Source file extension for C++ test sources.
  4982. -ac_ext=cpp
  4983. +# Old name:
  4984. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4985. +dnl aclocal-1.4 backwards compatibility:
  4986. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4987. -# Object file extension for compiled C++ test sources.
  4988. -objext=o
  4989. -_LT_AC_TAGVAR(objext, $1)=$objext
  4990. -# Code to be used in simple compile tests
  4991. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4992. +# _LT_PATH_MAGIC
  4993. +# --------------
  4994. +# find a file program which can recognize a shared library
  4995. +m4_defun([_LT_PATH_MAGIC],
  4996. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4997. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4998. + if test -n "$ac_tool_prefix"; then
  4999. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5000. + else
  5001. + MAGIC_CMD=:
  5002. + fi
  5003. +fi
  5004. +])# _LT_PATH_MAGIC
  5005. -# Code to be used in simple link tests
  5006. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  5007. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5008. -_LT_AC_SYS_COMPILER
  5009. +# LT_PATH_LD
  5010. +# ----------
  5011. +# find the pathname to the GNU or non-GNU linker
  5012. +AC_DEFUN([LT_PATH_LD],
  5013. +[AC_REQUIRE([AC_PROG_CC])dnl
  5014. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5015. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5016. +m4_require([_LT_DECL_SED])dnl
  5017. +m4_require([_LT_DECL_EGREP])dnl
  5018. -# save warnings/boilerplate of simple test code
  5019. -_LT_COMPILER_BOILERPLATE
  5020. -_LT_LINKER_BOILERPLATE
  5021. +AC_ARG_WITH([gnu-ld],
  5022. + [AS_HELP_STRING([--with-gnu-ld],
  5023. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5024. + [test "$withval" = no || with_gnu_ld=yes],
  5025. + [with_gnu_ld=no])dnl
  5026. -# Allow CC to be a program name with arguments.
  5027. -lt_save_CC=$CC
  5028. -lt_save_LD=$LD
  5029. -lt_save_GCC=$GCC
  5030. -GCC=$GXX
  5031. -lt_save_with_gnu_ld=$with_gnu_ld
  5032. -lt_save_path_LD=$lt_cv_path_LD
  5033. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5034. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5035. +ac_prog=ld
  5036. +if test "$GCC" = yes; then
  5037. + # Check if gcc -print-prog-name=ld gives a path.
  5038. + AC_MSG_CHECKING([for ld used by $CC])
  5039. + case $host in
  5040. + *-*-mingw*)
  5041. + # gcc leaves a trailing carriage return which upsets mingw
  5042. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5043. + *)
  5044. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5045. + esac
  5046. + case $ac_prog in
  5047. + # Accept absolute paths.
  5048. + [[\\/]]* | ?:[[\\/]]*)
  5049. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5050. + # Canonicalize the pathname of ld
  5051. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5052. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5053. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5054. + done
  5055. + test -z "$LD" && LD="$ac_prog"
  5056. + ;;
  5057. + "")
  5058. + # If it fails, then pretend we aren't using GCC.
  5059. + ac_prog=ld
  5060. + ;;
  5061. + *)
  5062. + # If it is relative, then search for the first ld in PATH.
  5063. + with_gnu_ld=unknown
  5064. + ;;
  5065. + esac
  5066. +elif test "$with_gnu_ld" = yes; then
  5067. + AC_MSG_CHECKING([for GNU ld])
  5068. else
  5069. - $as_unset lt_cv_prog_gnu_ld
  5070. + AC_MSG_CHECKING([for non-GNU ld])
  5071. fi
  5072. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5073. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5074. +AC_CACHE_VAL(lt_cv_path_LD,
  5075. +[if test -z "$LD"; then
  5076. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5077. + for ac_dir in $PATH; do
  5078. + IFS="$lt_save_ifs"
  5079. + test -z "$ac_dir" && ac_dir=.
  5080. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5081. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5082. + # Check to see if the program is GNU ld. I'd rather use --version,
  5083. + # but apparently some variants of GNU ld only accept -v.
  5084. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5085. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5086. + *GNU* | *'with BFD'*)
  5087. + test "$with_gnu_ld" != no && break
  5088. + ;;
  5089. + *)
  5090. + test "$with_gnu_ld" != yes && break
  5091. + ;;
  5092. + esac
  5093. + fi
  5094. + done
  5095. + IFS="$lt_save_ifs"
  5096. else
  5097. - $as_unset lt_cv_path_LD
  5098. -fi
  5099. -test -z "${LDCXX+set}" || LD=$LDCXX
  5100. -CC=${CXX-"c++"}
  5101. -compiler=$CC
  5102. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5103. -_LT_CC_BASENAME([$compiler])
  5104. -
  5105. -# We don't want -fno-exception wen compiling C++ code, so set the
  5106. -# no_builtin_flag separately
  5107. -if test "$GXX" = yes; then
  5108. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5109. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5110. +fi])
  5111. +LD="$lt_cv_path_LD"
  5112. +if test -n "$LD"; then
  5113. + AC_MSG_RESULT($LD)
  5114. else
  5115. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5116. + AC_MSG_RESULT(no)
  5117. fi
  5118. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5119. +_LT_PATH_LD_GNU
  5120. +AC_SUBST([LD])
  5121. -if test "$GXX" = yes; then
  5122. - # Set up default GNU C++ configuration
  5123. -
  5124. - AC_PROG_LD
  5125. -
  5126. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5127. - # archiving commands below assume that GNU ld is being used.
  5128. - if test "$with_gnu_ld" = yes; then
  5129. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5130. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5131. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5132. +])# LT_PATH_LD
  5133. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5134. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5135. +# Old names:
  5136. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5137. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5138. +dnl aclocal-1.4 backwards compatibility:
  5139. +dnl AC_DEFUN([AM_PROG_LD], [])
  5140. +dnl AC_DEFUN([AC_PROG_LD], [])
  5141. +
  5142. +
  5143. +# _LT_PATH_LD_GNU
  5144. +#- --------------
  5145. +m4_defun([_LT_PATH_LD_GNU],
  5146. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5147. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5148. +case `$LD -v 2>&1 </dev/null` in
  5149. +*GNU* | *'with BFD'*)
  5150. + lt_cv_prog_gnu_ld=yes
  5151. + ;;
  5152. +*)
  5153. + lt_cv_prog_gnu_ld=no
  5154. + ;;
  5155. +esac])
  5156. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5157. +])# _LT_PATH_LD_GNU
  5158. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5159. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5160. - # investigate it a little bit more. (MM)
  5161. - wlarc='${wl}'
  5162. - # ancient GNU ld didn't support --whole-archive et. al.
  5163. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5164. - grep 'no-whole-archive' > /dev/null; then
  5165. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5166. +# _LT_CMD_RELOAD
  5167. +# --------------
  5168. +# find reload flag for linker
  5169. +# -- PORTME Some linkers may need a different reload flag.
  5170. +m4_defun([_LT_CMD_RELOAD],
  5171. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5172. + lt_cv_ld_reload_flag,
  5173. + [lt_cv_ld_reload_flag='-r'])
  5174. +reload_flag=$lt_cv_ld_reload_flag
  5175. +case $reload_flag in
  5176. +"" | " "*) ;;
  5177. +*) reload_flag=" $reload_flag" ;;
  5178. +esac
  5179. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5180. +case $host_os in
  5181. + darwin*)
  5182. + if test "$GCC" = yes; then
  5183. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5184. else
  5185. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5186. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5187. fi
  5188. - else
  5189. - with_gnu_ld=no
  5190. - wlarc=
  5191. -
  5192. - # A generic and very simple default shared library creation
  5193. - # command for GNU C++ for the case where it uses the native
  5194. - # linker, instead of GNU ld. If possible, this setting should
  5195. - # overridden to take advantage of the native linker features on
  5196. - # the platform it is being used on.
  5197. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5198. - fi
  5199. + ;;
  5200. +esac
  5201. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5202. +_LT_DECL([], [reload_cmds], [2])dnl
  5203. +])# _LT_CMD_RELOAD
  5204. - # Commands to make compiler produce verbose output that lists
  5205. - # what "hidden" libraries, object files and flags are used when
  5206. - # linking a shared library.
  5207. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5208. -else
  5209. - GXX=no
  5210. - with_gnu_ld=no
  5211. - wlarc=
  5212. -fi
  5213. +# _LT_CHECK_MAGIC_METHOD
  5214. +# ----------------------
  5215. +# how to check for library dependencies
  5216. +# -- PORTME fill in with the dynamic library characteristics
  5217. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5218. +[m4_require([_LT_DECL_EGREP])
  5219. +m4_require([_LT_DECL_OBJDUMP])
  5220. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5221. +lt_cv_deplibs_check_method,
  5222. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5223. +lt_cv_file_magic_test_file=
  5224. +lt_cv_deplibs_check_method='unknown'
  5225. +# Need to set the preceding variable on all platforms that support
  5226. +# interlibrary dependencies.
  5227. +# 'none' -- dependencies not supported.
  5228. +# `unknown' -- same as none, but documents that we really don't know.
  5229. +# 'pass_all' -- all dependencies passed with no checks.
  5230. +# 'test_compile' -- check by making test program.
  5231. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5232. +# which responds to the $file_magic_cmd with a given extended regex.
  5233. +# If you have `file' or equivalent on your system and you're not sure
  5234. +# whether `pass_all' will *always* work, you probably want this one.
  5235. -# PORTME: fill in a description of your system's C++ link characteristics
  5236. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5237. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5238. case $host_os in
  5239. - aix3*)
  5240. - # FIXME: insert proper C++ library support
  5241. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5242. - ;;
  5243. - aix4* | aix5*)
  5244. - if test "$host_cpu" = ia64; then
  5245. - # On IA64, the linker does run time linking by default, so we don't
  5246. - # have to do anything special.
  5247. - aix_use_runtimelinking=no
  5248. - exp_sym_flag='-Bexport'
  5249. - no_entry_flag=""
  5250. - else
  5251. - aix_use_runtimelinking=no
  5252. +aix[[4-9]]*)
  5253. + lt_cv_deplibs_check_method=pass_all
  5254. + ;;
  5255. - # Test if we are trying to use run time linking or normal
  5256. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5257. - # need to do runtime linking.
  5258. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5259. - for ld_flag in $LDFLAGS; do
  5260. - case $ld_flag in
  5261. - *-brtl*)
  5262. - aix_use_runtimelinking=yes
  5263. - break
  5264. - ;;
  5265. - esac
  5266. - done
  5267. - ;;
  5268. - esac
  5269. +beos*)
  5270. + lt_cv_deplibs_check_method=pass_all
  5271. + ;;
  5272. - exp_sym_flag='-bexport'
  5273. - no_entry_flag='-bnoentry'
  5274. - fi
  5275. +bsdi[[45]]*)
  5276. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5277. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5278. + lt_cv_file_magic_test_file=/shlib/libc.so
  5279. + ;;
  5280. - # When large executables or shared objects are built, AIX ld can
  5281. - # have problems creating the table of contents. If linking a library
  5282. - # or program results in "error TOC overflow" add -mminimal-toc to
  5283. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5284. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5285. -
  5286. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5287. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5288. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5289. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5290. +cygwin*)
  5291. + # func_win32_libid is a shell function defined in ltmain.sh
  5292. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5293. + lt_cv_file_magic_cmd='func_win32_libid'
  5294. + ;;
  5295. - if test "$GXX" = yes; then
  5296. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5297. - # We only want to do this on AIX 4.2 and lower, the check
  5298. - # below for broken collect2 doesn't work under 4.3+
  5299. - collect2name=`${CC} -print-prog-name=collect2`
  5300. - if test -f "$collect2name" && \
  5301. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5302. - then
  5303. - # We have reworked collect2
  5304. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5305. - else
  5306. - # We have old collect2
  5307. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5308. - # It fails to find uninstalled libraries when the uninstalled
  5309. - # path is not listed in the libpath. Setting hardcode_minus_L
  5310. - # to unsupported forces relinking
  5311. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5312. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5313. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5314. - fi
  5315. - ;;
  5316. - esac
  5317. - shared_flag='-shared'
  5318. - if test "$aix_use_runtimelinking" = yes; then
  5319. - shared_flag="$shared_flag "'${wl}-G'
  5320. - fi
  5321. - else
  5322. - # not using gcc
  5323. - if test "$host_cpu" = ia64; then
  5324. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5325. - # chokes on -Wl,-G. The following line is correct:
  5326. - shared_flag='-G'
  5327. - else
  5328. - if test "$aix_use_runtimelinking" = yes; then
  5329. - shared_flag='${wl}-G'
  5330. - else
  5331. - shared_flag='${wl}-bM:SRE'
  5332. - fi
  5333. - fi
  5334. - fi
  5335. -
  5336. - # It seems that -bexpall does not export symbols beginning with
  5337. - # underscore (_), so it is better to generate a list of symbols to export.
  5338. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5339. - if test "$aix_use_runtimelinking" = yes; then
  5340. - # Warning - without using the other runtime loading flags (-brtl),
  5341. - # -berok will link without error, but may produce a broken library.
  5342. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5343. - # Determine the default libpath from the value encoded in an empty executable.
  5344. - _LT_AC_SYS_LIBPATH_AIX
  5345. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5346. +mingw* | pw32*)
  5347. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5348. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5349. + # unless we find 'file', for example because we are cross-compiling.
  5350. + if ( file / ) >/dev/null 2>&1; then
  5351. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5352. + lt_cv_file_magic_cmd='func_win32_libid'
  5353. + else
  5354. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5355. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5356. + fi
  5357. + ;;
  5358. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5359. - else
  5360. - if test "$host_cpu" = ia64; then
  5361. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5362. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5363. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5364. - else
  5365. - # Determine the default libpath from the value encoded in an empty executable.
  5366. - _LT_AC_SYS_LIBPATH_AIX
  5367. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5368. - # Warning - without using the other run time loading flags,
  5369. - # -berok will link without error, but may produce a broken library.
  5370. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5371. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5372. - # Exported symbols can be pulled into shared objects from archives
  5373. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5374. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5375. - # This is similar to how AIX traditionally builds its shared libraries.
  5376. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5377. - fi
  5378. - fi
  5379. - ;;
  5380. +cegcc)
  5381. + # use the weaker test based on 'objdump'. See mingw*.
  5382. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5383. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5384. + ;;
  5385. - beos*)
  5386. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5387. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5388. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5389. - # support --undefined. This deserves some investigation. FIXME
  5390. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5391. - else
  5392. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5393. - fi
  5394. - ;;
  5395. +darwin* | rhapsody*)
  5396. + lt_cv_deplibs_check_method=pass_all
  5397. + ;;
  5398. - chorus*)
  5399. - case $cc_basename in
  5400. - *)
  5401. - # FIXME: insert proper C++ library support
  5402. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5403. - ;;
  5404. +freebsd* | dragonfly*)
  5405. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5406. + case $host_cpu in
  5407. + i*86 )
  5408. + # Not sure whether the presence of OpenBSD here was a mistake.
  5409. + # Let's accept both of them until this is cleared up.
  5410. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5411. + lt_cv_file_magic_cmd=/usr/bin/file
  5412. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5413. + ;;
  5414. esac
  5415. - ;;
  5416. + else
  5417. + lt_cv_deplibs_check_method=pass_all
  5418. + fi
  5419. + ;;
  5420. - cygwin* | mingw* | pw32*)
  5421. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5422. - # as there is no search path for DLLs.
  5423. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5424. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5425. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5426. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5427. -
  5428. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5429. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5430. - # If the export-symbols file already is a .def file (1st line
  5431. - # is EXPORTS), use it as is; otherwise, prepend...
  5432. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5433. - cp $export_symbols $output_objdir/$soname.def;
  5434. - else
  5435. - echo EXPORTS > $output_objdir/$soname.def;
  5436. - cat $export_symbols >> $output_objdir/$soname.def;
  5437. - fi~
  5438. - $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'
  5439. - else
  5440. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5441. - fi
  5442. +gnu*)
  5443. + lt_cv_deplibs_check_method=pass_all
  5444. ;;
  5445. - darwin* | rhapsody*)
  5446. - case $host_os in
  5447. - rhapsody* | darwin1.[[012]])
  5448. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5449. - ;;
  5450. - *) # Darwin 1.3 on
  5451. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5452. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5453. - else
  5454. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5455. - 10.[[012]])
  5456. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5457. - ;;
  5458. - 10.*)
  5459. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5460. - ;;
  5461. - esac
  5462. - fi
  5463. - ;;
  5464. - esac
  5465. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5466. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5467. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5468. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5469. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5470. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5471. -
  5472. - if test "$GXX" = yes ; then
  5473. - lt_int_apple_cc_single_mod=no
  5474. - output_verbose_link_cmd='echo'
  5475. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5476. - lt_int_apple_cc_single_mod=yes
  5477. - fi
  5478. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5479. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5480. - else
  5481. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5482. - fi
  5483. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5484. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5485. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5486. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5487. - else
  5488. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5489. - fi
  5490. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5491. - else
  5492. - case $cc_basename in
  5493. - xlc*)
  5494. - output_verbose_link_cmd='echo'
  5495. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5496. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5497. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5498. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5499. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5500. - ;;
  5501. - *)
  5502. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5503. - ;;
  5504. - esac
  5505. - fi
  5506. - ;;
  5507. - dgux*)
  5508. - case $cc_basename in
  5509. - ec++*)
  5510. - # FIXME: insert proper C++ library support
  5511. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5512. - ;;
  5513. - ghcx*)
  5514. - # Green Hills C++ Compiler
  5515. - # FIXME: insert proper C++ library support
  5516. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5517. - ;;
  5518. - *)
  5519. - # FIXME: insert proper C++ library support
  5520. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5521. - ;;
  5522. - esac
  5523. - ;;
  5524. - freebsd[[12]]*)
  5525. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5526. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5527. - ;;
  5528. - freebsd-elf*)
  5529. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5530. - ;;
  5531. - freebsd* | dragonfly*)
  5532. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5533. - # conventions
  5534. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5535. +hpux10.20* | hpux11*)
  5536. + lt_cv_file_magic_cmd=/usr/bin/file
  5537. + case $host_cpu in
  5538. + ia64*)
  5539. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5540. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5541. ;;
  5542. - gnu*)
  5543. + hppa*64*)
  5544. + [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]']
  5545. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5546. ;;
  5547. - hpux9*)
  5548. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5549. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5550. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5551. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5552. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5553. - # but as the default
  5554. - # location of the library.
  5555. -
  5556. - case $cc_basename in
  5557. - CC*)
  5558. - # FIXME: insert proper C++ library support
  5559. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5560. - ;;
  5561. - aCC*)
  5562. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5563. - # Commands to make compiler produce verbose output that lists
  5564. - # what "hidden" libraries, object files and flags are used when
  5565. - # linking a shared library.
  5566. - #
  5567. - # There doesn't appear to be a way to prevent this compiler from
  5568. - # explicitly linking system object files so we need to strip them
  5569. - # from the output so that they don't get included in the library
  5570. - # dependencies.
  5571. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5572. - ;;
  5573. - *)
  5574. - if test "$GXX" = yes; then
  5575. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5576. - else
  5577. - # FIXME: insert proper C++ library support
  5578. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5579. - fi
  5580. - ;;
  5581. - esac
  5582. + *)
  5583. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5584. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5585. ;;
  5586. - hpux10*|hpux11*)
  5587. - if test $with_gnu_ld = no; then
  5588. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5589. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5590. + esac
  5591. + ;;
  5592. - case $host_cpu in
  5593. - hppa*64*|ia64*)
  5594. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5595. - ;;
  5596. - *)
  5597. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5598. - ;;
  5599. - esac
  5600. - fi
  5601. - case $host_cpu in
  5602. - hppa*64*|ia64*)
  5603. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5604. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5605. - ;;
  5606. - *)
  5607. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5608. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5609. - # but as the default
  5610. - # location of the library.
  5611. - ;;
  5612. - esac
  5613. +interix[[3-9]]*)
  5614. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5615. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5616. + ;;
  5617. - case $cc_basename in
  5618. - CC*)
  5619. - # FIXME: insert proper C++ library support
  5620. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5621. - ;;
  5622. - aCC*)
  5623. - case $host_cpu in
  5624. - hppa*64*)
  5625. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5626. - ;;
  5627. - ia64*)
  5628. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5629. - ;;
  5630. - *)
  5631. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5632. - ;;
  5633. - esac
  5634. - # Commands to make compiler produce verbose output that lists
  5635. - # what "hidden" libraries, object files and flags are used when
  5636. - # linking a shared library.
  5637. - #
  5638. - # There doesn't appear to be a way to prevent this compiler from
  5639. - # explicitly linking system object files so we need to strip them
  5640. - # from the output so that they don't get included in the library
  5641. - # dependencies.
  5642. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5643. - ;;
  5644. - *)
  5645. - if test "$GXX" = yes; then
  5646. - if test $with_gnu_ld = no; then
  5647. - case $host_cpu in
  5648. - hppa*64*)
  5649. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5650. - ;;
  5651. - ia64*)
  5652. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5653. - ;;
  5654. - *)
  5655. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5656. - ;;
  5657. - esac
  5658. - fi
  5659. - else
  5660. - # FIXME: insert proper C++ library support
  5661. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5662. - fi
  5663. - ;;
  5664. - esac
  5665. - ;;
  5666. - interix3*)
  5667. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5668. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5669. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5670. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5671. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5672. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5673. - # default) and relocated if they conflict, which is a slow very memory
  5674. - # consuming and fragmenting process. To avoid this, we pick a random,
  5675. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5676. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5677. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5678. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5679. - ;;
  5680. - irix5* | irix6*)
  5681. - case $cc_basename in
  5682. - CC*)
  5683. - # SGI C++
  5684. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5685. -
  5686. - # Archives containing C++ object files must be created using
  5687. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5688. - # necessary to make sure instantiated templates are included
  5689. - # in the archive.
  5690. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5691. - ;;
  5692. - *)
  5693. - if test "$GXX" = yes; then
  5694. - if test "$with_gnu_ld" = no; then
  5695. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5696. - else
  5697. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  5698. - fi
  5699. - fi
  5700. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5701. - ;;
  5702. - esac
  5703. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5704. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5705. - ;;
  5706. - linux* | k*bsd*-gnu)
  5707. - case $cc_basename in
  5708. - KCC*)
  5709. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5710. -
  5711. - # KCC will only create a shared library if the output file
  5712. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5713. - # to its proper name (with version) after linking.
  5714. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5715. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  5716. - # Commands to make compiler produce verbose output that lists
  5717. - # what "hidden" libraries, object files and flags are used when
  5718. - # linking a shared library.
  5719. - #
  5720. - # There doesn't appear to be a way to prevent this compiler from
  5721. - # explicitly linking system object files so we need to strip them
  5722. - # from the output so that they don't get included in the library
  5723. - # dependencies.
  5724. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5725. -
  5726. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5727. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5728. -
  5729. - # Archives containing C++ object files must be created using
  5730. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5731. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5732. - ;;
  5733. - icpc*)
  5734. - # Intel C++
  5735. - with_gnu_ld=yes
  5736. - # version 8.0 and above of icpc choke on multiply defined symbols
  5737. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5738. - # earlier do not add the objects themselves.
  5739. - case `$CC -V 2>&1` in
  5740. - *"Version 7."*)
  5741. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5742. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5743. - ;;
  5744. - *) # Version 8.0 or newer
  5745. - tmp_idyn=
  5746. - case $host_cpu in
  5747. - ia64*) tmp_idyn=' -i_dynamic';;
  5748. - esac
  5749. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5750. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5751. - ;;
  5752. - esac
  5753. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5754. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5755. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5756. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5757. - ;;
  5758. - pgCC*)
  5759. - # Portland Group C++ compiler
  5760. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5761. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5762. -
  5763. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5764. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5765. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5766. - ;;
  5767. - cxx*)
  5768. - # Compaq C++
  5769. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5770. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  5771. +irix5* | irix6* | nonstopux*)
  5772. + case $LD in
  5773. + *-32|*"-32 ") libmagic=32-bit;;
  5774. + *-n32|*"-n32 ") libmagic=N32;;
  5775. + *-64|*"-64 ") libmagic=64-bit;;
  5776. + *) libmagic=never-match;;
  5777. + esac
  5778. + lt_cv_deplibs_check_method=pass_all
  5779. + ;;
  5780. - runpath_var=LD_RUN_PATH
  5781. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5782. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5783. +# This must be Linux ELF.
  5784. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5785. + lt_cv_deplibs_check_method=pass_all
  5786. + ;;
  5787. - # Commands to make compiler produce verbose output that lists
  5788. - # what "hidden" libraries, object files and flags are used when
  5789. - # linking a shared library.
  5790. - #
  5791. - # There doesn't appear to be a way to prevent this compiler from
  5792. - # explicitly linking system object files so we need to strip them
  5793. - # from the output so that they don't get included in the library
  5794. - # dependencies.
  5795. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5796. - ;;
  5797. - esac
  5798. - ;;
  5799. - lynxos*)
  5800. - # FIXME: insert proper C++ library support
  5801. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5802. - ;;
  5803. - m88k*)
  5804. - # FIXME: insert proper C++ library support
  5805. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5806. - ;;
  5807. - mvs*)
  5808. - case $cc_basename in
  5809. - cxx*)
  5810. - # FIXME: insert proper C++ library support
  5811. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5812. - ;;
  5813. - *)
  5814. - # FIXME: insert proper C++ library support
  5815. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5816. - ;;
  5817. - esac
  5818. - ;;
  5819. - netbsd* | netbsdelf*-gnu)
  5820. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5821. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5822. - wlarc=
  5823. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5824. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5825. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5826. - fi
  5827. - # Workaround some broken pre-1.5 toolchains
  5828. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5829. - ;;
  5830. - openbsd2*)
  5831. - # C++ shared libraries are fairly broken
  5832. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5833. - ;;
  5834. - openbsd*)
  5835. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5836. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5837. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5838. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5839. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5840. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  5841. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5842. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5843. - fi
  5844. - output_verbose_link_cmd='echo'
  5845. - ;;
  5846. - osf3*)
  5847. - case $cc_basename in
  5848. - KCC*)
  5849. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5850. -
  5851. - # KCC will only create a shared library if the output file
  5852. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5853. - # to its proper name (with version) after linking.
  5854. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5855. -
  5856. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5857. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5858. -
  5859. - # Archives containing C++ object files must be created using
  5860. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5861. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5862. -
  5863. - ;;
  5864. - RCC*)
  5865. - # Rational C++ 2.4.1
  5866. - # FIXME: insert proper C++ library support
  5867. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5868. - ;;
  5869. - cxx*)
  5870. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5871. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5872. -
  5873. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5874. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5875. -
  5876. - # Commands to make compiler produce verbose output that lists
  5877. - # what "hidden" libraries, object files and flags are used when
  5878. - # linking a shared library.
  5879. - #
  5880. - # There doesn't appear to be a way to prevent this compiler from
  5881. - # explicitly linking system object files so we need to strip them
  5882. - # from the output so that they don't get included in the library
  5883. - # dependencies.
  5884. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5885. - ;;
  5886. - *)
  5887. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5888. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5889. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5890. -
  5891. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5892. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5893. -
  5894. - # Commands to make compiler produce verbose output that lists
  5895. - # what "hidden" libraries, object files and flags are used when
  5896. - # linking a shared library.
  5897. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5898. +netbsd* | netbsdelf*-gnu)
  5899. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5900. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5901. + else
  5902. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5903. + fi
  5904. + ;;
  5905. - else
  5906. - # FIXME: insert proper C++ library support
  5907. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5908. - fi
  5909. - ;;
  5910. - esac
  5911. - ;;
  5912. - osf4* | osf5*)
  5913. - case $cc_basename in
  5914. - KCC*)
  5915. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5916. -
  5917. - # KCC will only create a shared library if the output file
  5918. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5919. - # to its proper name (with version) after linking.
  5920. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5921. -
  5922. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5923. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5924. -
  5925. - # Archives containing C++ object files must be created using
  5926. - # the KAI C++ compiler.
  5927. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5928. - ;;
  5929. - RCC*)
  5930. - # Rational C++ 2.4.1
  5931. - # FIXME: insert proper C++ library support
  5932. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5933. - ;;
  5934. - cxx*)
  5935. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5936. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5937. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5938. - echo "-hidden">> $lib.exp~
  5939. - $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~
  5940. - $rm $lib.exp'
  5941. -
  5942. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5943. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5944. -
  5945. - # Commands to make compiler produce verbose output that lists
  5946. - # what "hidden" libraries, object files and flags are used when
  5947. - # linking a shared library.
  5948. - #
  5949. - # There doesn't appear to be a way to prevent this compiler from
  5950. - # explicitly linking system object files so we need to strip them
  5951. - # from the output so that they don't get included in the library
  5952. - # dependencies.
  5953. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5954. - ;;
  5955. - *)
  5956. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5957. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5958. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5959. -
  5960. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5961. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5962. -
  5963. - # Commands to make compiler produce verbose output that lists
  5964. - # what "hidden" libraries, object files and flags are used when
  5965. - # linking a shared library.
  5966. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5967. +newos6*)
  5968. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5969. + lt_cv_file_magic_cmd=/usr/bin/file
  5970. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5971. + ;;
  5972. - else
  5973. - # FIXME: insert proper C++ library support
  5974. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5975. - fi
  5976. - ;;
  5977. - esac
  5978. - ;;
  5979. - psos*)
  5980. - # FIXME: insert proper C++ library support
  5981. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5982. - ;;
  5983. - sunos4*)
  5984. - case $cc_basename in
  5985. - CC*)
  5986. - # Sun C++ 4.x
  5987. - # FIXME: insert proper C++ library support
  5988. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5989. - ;;
  5990. - lcc*)
  5991. - # Lucid
  5992. - # FIXME: insert proper C++ library support
  5993. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5994. - ;;
  5995. - *)
  5996. - # FIXME: insert proper C++ library support
  5997. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5998. - ;;
  5999. - esac
  6000. - ;;
  6001. - solaris*)
  6002. - case $cc_basename in
  6003. - CC*)
  6004. - # Sun C++ 4.2, 5.x and Centerline C++
  6005. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  6006. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6007. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6008. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6009. - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6010. -
  6011. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6012. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6013. - case $host_os in
  6014. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6015. - *)
  6016. - # The C++ compiler is used as linker so we must use $wl
  6017. - # flag to pass the commands to the underlying system
  6018. - # linker. We must also pass each convience library through
  6019. - # to the system linker between allextract/defaultextract.
  6020. - # The C++ compiler will combine linker options so we
  6021. - # cannot just pass the convience library names through
  6022. - # without $wl.
  6023. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6024. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  6025. - ;;
  6026. - esac
  6027. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6028. +*nto* | *qnx*)
  6029. + lt_cv_deplibs_check_method=pass_all
  6030. + ;;
  6031. - output_verbose_link_cmd='echo'
  6032. +openbsd*)
  6033. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6034. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6035. + else
  6036. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6037. + fi
  6038. + ;;
  6039. - # Archives containing C++ object files must be created using
  6040. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6041. - # necessary to make sure instantiated templates are included
  6042. - # in the archive.
  6043. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6044. - ;;
  6045. - gcx*)
  6046. - # Green Hills C++ Compiler
  6047. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6048. +osf3* | osf4* | osf5*)
  6049. + lt_cv_deplibs_check_method=pass_all
  6050. + ;;
  6051. - # The C++ compiler must be used to create the archive.
  6052. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6053. - ;;
  6054. - *)
  6055. - # GNU C++ compiler with Solaris linker
  6056. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6057. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6058. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6059. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6060. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6061. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6062. +rdos*)
  6063. + lt_cv_deplibs_check_method=pass_all
  6064. + ;;
  6065. - # Commands to make compiler produce verbose output that lists
  6066. - # what "hidden" libraries, object files and flags are used when
  6067. - # linking a shared library.
  6068. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6069. - else
  6070. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6071. - # platform.
  6072. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6073. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6074. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6075. +solaris*)
  6076. + lt_cv_deplibs_check_method=pass_all
  6077. + ;;
  6078. - # Commands to make compiler produce verbose output that lists
  6079. - # what "hidden" libraries, object files and flags are used when
  6080. - # linking a shared library.
  6081. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6082. - fi
  6083. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6084. + lt_cv_deplibs_check_method=pass_all
  6085. + ;;
  6086. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6087. - fi
  6088. - ;;
  6089. - esac
  6090. - ;;
  6091. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6092. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6093. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6094. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6095. - runpath_var='LD_RUN_PATH'
  6096. -
  6097. - case $cc_basename in
  6098. - CC*)
  6099. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6100. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6101. - ;;
  6102. - *)
  6103. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6104. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6105. - ;;
  6106. - esac
  6107. +sysv4 | sysv4.3*)
  6108. + case $host_vendor in
  6109. + motorola)
  6110. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  6111. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6112. ;;
  6113. - sysv5* | sco3.2v5* | sco5v6*)
  6114. - # Note: We can NOT use -z defs as we might desire, because we do not
  6115. - # link with -lc, and that would cause any symbols used from libc to
  6116. - # always be unresolved, which means just about no library would
  6117. - # ever link correctly. If we're not using GNU ld we use -z text
  6118. - # though, which does catch some bad symbols but isn't as heavy-handed
  6119. - # as -z defs.
  6120. - # For security reasons, it is highly recommended that you always
  6121. - # use absolute paths for naming shared libraries, and exclude the
  6122. - # DT_RUNPATH tag from executables and libraries. But doing so
  6123. - # requires that you compile everything twice, which is a pain.
  6124. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6125. - # non-empty value in the environment. Most likely only useful for
  6126. - # creating official distributions of packages.
  6127. - # This is a hack until libtool officially supports absolute path
  6128. - # names for shared libraries.
  6129. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6130. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6131. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6132. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6133. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6134. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6135. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6136. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6137. - runpath_var='LD_RUN_PATH'
  6138. -
  6139. - case $cc_basename in
  6140. - CC*)
  6141. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6142. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6143. - ;;
  6144. - *)
  6145. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6146. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6147. - ;;
  6148. - esac
  6149. + ncr)
  6150. + lt_cv_deplibs_check_method=pass_all
  6151. ;;
  6152. - tandem*)
  6153. - case $cc_basename in
  6154. - NCC*)
  6155. - # NonStop-UX NCC 3.20
  6156. - # FIXME: insert proper C++ library support
  6157. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6158. - ;;
  6159. - *)
  6160. - # FIXME: insert proper C++ library support
  6161. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6162. - ;;
  6163. - esac
  6164. + sequent)
  6165. + lt_cv_file_magic_cmd='/bin/file'
  6166. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6167. ;;
  6168. - vxworks*)
  6169. - # FIXME: insert proper C++ library support
  6170. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6171. + sni)
  6172. + lt_cv_file_magic_cmd='/bin/file'
  6173. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6174. + lt_cv_file_magic_test_file=/lib/libc.so
  6175. ;;
  6176. - *)
  6177. - # FIXME: insert proper C++ library support
  6178. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6179. + siemens)
  6180. + lt_cv_deplibs_check_method=pass_all
  6181. ;;
  6182. -esac
  6183. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6184. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6185. -
  6186. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6187. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6188. -
  6189. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6190. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6191. -AC_LIBTOOL_PROG_CC_C_O($1)
  6192. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6193. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6194. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6195. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6196. -
  6197. -AC_LIBTOOL_CONFIG($1)
  6198. -
  6199. -AC_LANG_POP
  6200. -CC=$lt_save_CC
  6201. -LDCXX=$LD
  6202. -LD=$lt_save_LD
  6203. -GCC=$lt_save_GCC
  6204. -with_gnu_ldcxx=$with_gnu_ld
  6205. -with_gnu_ld=$lt_save_with_gnu_ld
  6206. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6207. -lt_cv_path_LD=$lt_save_path_LD
  6208. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6209. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6210. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6211. + pc)
  6212. + lt_cv_deplibs_check_method=pass_all
  6213. + ;;
  6214. + esac
  6215. + ;;
  6216. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6217. -# ------------------------------------
  6218. -# Figure out "hidden" library dependencies from verbose
  6219. -# compiler output when linking a shared library.
  6220. -# Parse the compiler output and extract the necessary
  6221. -# objects, libraries and library flags.
  6222. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6223. -dnl we can't use the lt_simple_compile_test_code here,
  6224. -dnl because it contains code intended for an executable,
  6225. -dnl not a library. It's possible we should let each
  6226. -dnl tag define a new lt_????_link_test_code variable,
  6227. -dnl but it's only used here...
  6228. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6229. -int a;
  6230. -void foo (void) { a = 0; }
  6231. -EOF
  6232. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6233. -class Foo
  6234. -{
  6235. -public:
  6236. - Foo (void) { a = 0; }
  6237. -private:
  6238. - int a;
  6239. -};
  6240. -EOF
  6241. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6242. - subroutine foo
  6243. - implicit none
  6244. - integer*4 a
  6245. - a=0
  6246. - return
  6247. - end
  6248. -EOF
  6249. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6250. -public class foo {
  6251. - private int a;
  6252. - public void bar (void) {
  6253. - a = 0;
  6254. - }
  6255. -};
  6256. -EOF
  6257. +tpf*)
  6258. + lt_cv_deplibs_check_method=pass_all
  6259. + ;;
  6260. +esac
  6261. ])
  6262. -dnl Parse the compiler output and extract the necessary
  6263. -dnl objects, libraries and library flags.
  6264. -if AC_TRY_EVAL(ac_compile); then
  6265. - # Parse the compiler output and extract the necessary
  6266. - # objects, libraries and library flags.
  6267. -
  6268. - # Sentinel used to keep track of whether or not we are before
  6269. - # the conftest object file.
  6270. - pre_test_object_deps_done=no
  6271. -
  6272. - # The `*' in the case matches for architectures that use `case' in
  6273. - # $output_verbose_cmd can trigger glob expansion during the loop
  6274. - # eval without this substitution.
  6275. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6276. -
  6277. - for p in `eval $output_verbose_link_cmd`; do
  6278. - case $p in
  6279. -
  6280. - -L* | -R* | -l*)
  6281. - # Some compilers place space between "-{L,R}" and the path.
  6282. - # Remove the space.
  6283. - if test $p = "-L" \
  6284. - || test $p = "-R"; then
  6285. - prev=$p
  6286. - continue
  6287. - else
  6288. - prev=
  6289. - fi
  6290. -
  6291. - if test "$pre_test_object_deps_done" = no; then
  6292. - case $p in
  6293. - -L* | -R*)
  6294. - # Internal compiler library paths should come after those
  6295. - # provided the user. The postdeps already come after the
  6296. - # user supplied libs so there is no need to process them.
  6297. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6298. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6299. - else
  6300. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6301. - fi
  6302. - ;;
  6303. - # The "-l" case would never come before the object being
  6304. - # linked, so don't bother handling this case.
  6305. - esac
  6306. - else
  6307. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6308. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6309. - else
  6310. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6311. - fi
  6312. - fi
  6313. - ;;
  6314. -
  6315. - *.$objext)
  6316. - # This assumes that the test object file only shows up
  6317. - # once in the compiler output.
  6318. - if test "$p" = "conftest.$objext"; then
  6319. - pre_test_object_deps_done=yes
  6320. - continue
  6321. - fi
  6322. +file_magic_cmd=$lt_cv_file_magic_cmd
  6323. +deplibs_check_method=$lt_cv_deplibs_check_method
  6324. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6325. - if test "$pre_test_object_deps_done" = no; then
  6326. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6327. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6328. - else
  6329. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6330. - fi
  6331. - else
  6332. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6333. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6334. - else
  6335. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6336. - fi
  6337. - fi
  6338. - ;;
  6339. +_LT_DECL([], [deplibs_check_method], [1],
  6340. + [Method to check whether dependent libraries are shared objects])
  6341. +_LT_DECL([], [file_magic_cmd], [1],
  6342. + [Command to use when deplibs_check_method == "file_magic"])
  6343. +])# _LT_CHECK_MAGIC_METHOD
  6344. - *) ;; # Ignore the rest.
  6345. - esac
  6346. +# LT_PATH_NM
  6347. +# ----------
  6348. +# find the pathname to a BSD- or MS-compatible name lister
  6349. +AC_DEFUN([LT_PATH_NM],
  6350. +[AC_REQUIRE([AC_PROG_CC])dnl
  6351. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6352. +[if test -n "$NM"; then
  6353. + # Let the user override the test.
  6354. + lt_cv_path_NM="$NM"
  6355. +else
  6356. + lt_nm_to_check="${ac_tool_prefix}nm"
  6357. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6358. + lt_nm_to_check="$lt_nm_to_check nm"
  6359. + fi
  6360. + for lt_tmp_nm in $lt_nm_to_check; do
  6361. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6362. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6363. + IFS="$lt_save_ifs"
  6364. + test -z "$ac_dir" && ac_dir=.
  6365. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6366. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6367. + # Check to see if the nm accepts a BSD-compat flag.
  6368. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6369. + # nm: unknown option "B" ignored
  6370. + # Tru64's nm complains that /dev/null is an invalid object file
  6371. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6372. + */dev/null* | *'Invalid file or object type'*)
  6373. + lt_cv_path_NM="$tmp_nm -B"
  6374. + break
  6375. + ;;
  6376. + *)
  6377. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6378. + */dev/null*)
  6379. + lt_cv_path_NM="$tmp_nm -p"
  6380. + break
  6381. + ;;
  6382. + *)
  6383. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6384. + continue # so that we can try to find one that supports BSD flags
  6385. + ;;
  6386. + esac
  6387. + ;;
  6388. + esac
  6389. + fi
  6390. + done
  6391. + IFS="$lt_save_ifs"
  6392. done
  6393. -
  6394. - # Clean up.
  6395. - rm -f a.out a.exe
  6396. + : ${lt_cv_path_NM=no}
  6397. +fi])
  6398. +if test "$lt_cv_path_NM" != "no"; then
  6399. + NM="$lt_cv_path_NM"
  6400. else
  6401. - echo "libtool.m4: error: problem compiling $1 test program"
  6402. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6403. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6404. + AC_SUBST([DUMPBIN])
  6405. + if test "$DUMPBIN" != ":"; then
  6406. + NM="$DUMPBIN"
  6407. + fi
  6408. fi
  6409. +test -z "$NM" && NM=nm
  6410. +AC_SUBST([NM])
  6411. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6412. -$rm -f confest.$objext
  6413. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6414. + [lt_cv_nm_interface="BSD nm"
  6415. + echo "int some_variable = 0;" > conftest.$ac_ext
  6416. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6417. + (eval "$ac_compile" 2>conftest.err)
  6418. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6419. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6420. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6421. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6422. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6423. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6424. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6425. + lt_cv_nm_interface="MS dumpbin"
  6426. + fi
  6427. + rm -f conftest*])
  6428. +])# LT_PATH_NM
  6429. +
  6430. +# Old names:
  6431. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6432. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6433. +dnl aclocal-1.4 backwards compatibility:
  6434. +dnl AC_DEFUN([AM_PROG_NM], [])
  6435. +dnl AC_DEFUN([AC_PROG_NM], [])
  6436. -# PORTME: override above test on systems where it is broken
  6437. -ifelse([$1],[CXX],
  6438. -[case $host_os in
  6439. -interix3*)
  6440. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6441. - # hack all around it, let's just trust "g++" to DTRT.
  6442. - _LT_AC_TAGVAR(predep_objects,$1)=
  6443. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6444. - _LT_AC_TAGVAR(postdeps,$1)=
  6445. - ;;
  6446. -solaris*)
  6447. - case $cc_basename in
  6448. - CC*)
  6449. - # Adding this requires a known-good setup of shared libraries for
  6450. - # Sun compiler versions before 5.6, else PIC objects from an old
  6451. - # archive will be linked into the output, leading to subtle bugs.
  6452. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  6453. - ;;
  6454. - esac
  6455. +# LT_LIB_M
  6456. +# --------
  6457. +# check for math library
  6458. +AC_DEFUN([LT_LIB_M],
  6459. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6460. +LIBM=
  6461. +case $host in
  6462. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6463. + # These system don't have libm, or don't need it
  6464. + ;;
  6465. +*-ncr-sysv4.3*)
  6466. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6467. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6468. + ;;
  6469. +*)
  6470. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6471. ;;
  6472. esac
  6473. -])
  6474. -
  6475. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6476. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6477. -esac
  6478. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6479. +AC_SUBST([LIBM])
  6480. +])# LT_LIB_M
  6481. -# AC_LIBTOOL_LANG_F77_CONFIG
  6482. -# --------------------------
  6483. -# Ensure that the configuration vars for the C compiler are
  6484. -# suitably defined. Those variables are subsequently used by
  6485. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6486. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6487. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6488. -[AC_REQUIRE([AC_PROG_F77])
  6489. -AC_LANG_PUSH(Fortran 77)
  6490. +# Old name:
  6491. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6492. +dnl aclocal-1.4 backwards compatibility:
  6493. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6494. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6495. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6496. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6497. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6498. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6499. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6500. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6501. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6502. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6503. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6504. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6505. -_LT_AC_TAGVAR(module_cmds, $1)=
  6506. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6507. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6508. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6509. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6510. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6511. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6512. -# Source file extension for f77 test sources.
  6513. -ac_ext=f
  6514. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6515. +# -------------------------------
  6516. +m4_defun([_LT_COMPILER_NO_RTTI],
  6517. +[m4_require([_LT_TAG_COMPILER])dnl
  6518. -# Object file extension for compiled f77 test sources.
  6519. -objext=o
  6520. -_LT_AC_TAGVAR(objext, $1)=$objext
  6521. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6522. -# Code to be used in simple compile tests
  6523. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6524. +if test "$GCC" = yes; then
  6525. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6526. -# Code to be used in simple link tests
  6527. -lt_simple_link_test_code=" program t\n end\n"
  6528. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6529. + lt_cv_prog_compiler_rtti_exceptions,
  6530. + [-fno-rtti -fno-exceptions], [],
  6531. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6532. +fi
  6533. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6534. + [Compiler flag to turn off builtin functions])
  6535. +])# _LT_COMPILER_NO_RTTI
  6536. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6537. -_LT_AC_SYS_COMPILER
  6538. -# save warnings/boilerplate of simple test code
  6539. -_LT_COMPILER_BOILERPLATE
  6540. -_LT_LINKER_BOILERPLATE
  6541. +# _LT_CMD_GLOBAL_SYMBOLS
  6542. +# ----------------------
  6543. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6544. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6545. +AC_REQUIRE([AC_PROG_CC])dnl
  6546. +AC_REQUIRE([LT_PATH_NM])dnl
  6547. +AC_REQUIRE([LT_PATH_LD])dnl
  6548. +m4_require([_LT_DECL_SED])dnl
  6549. +m4_require([_LT_DECL_EGREP])dnl
  6550. +m4_require([_LT_TAG_COMPILER])dnl
  6551. -# Allow CC to be a program name with arguments.
  6552. -lt_save_CC="$CC"
  6553. -CC=${F77-"f77"}
  6554. -compiler=$CC
  6555. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6556. -_LT_CC_BASENAME([$compiler])
  6557. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6558. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6559. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6560. +[
  6561. +# These are sane defaults that work on at least a few old systems.
  6562. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6563. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6564. -AC_MSG_RESULT([$can_build_shared])
  6565. +# Character class describing NM global symbol codes.
  6566. +symcode='[[BCDEGRST]]'
  6567. -AC_MSG_CHECKING([whether to build shared libraries])
  6568. -test "$can_build_shared" = "no" && enable_shared=no
  6569. +# Regexp to match symbols that can be accessed directly from C.
  6570. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6571. -# On AIX, shared libraries and static libraries use the same namespace, and
  6572. -# are all built from PIC.
  6573. +# Define system-specific variables.
  6574. case $host_os in
  6575. -aix3*)
  6576. - test "$enable_shared" = yes && enable_static=no
  6577. - if test -n "$RANLIB"; then
  6578. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6579. - postinstall_cmds='$RANLIB $lib'
  6580. - fi
  6581. +aix*)
  6582. + symcode='[[BCDT]]'
  6583. ;;
  6584. -aix4* | aix5*)
  6585. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6586. - test "$enable_shared" = yes && enable_static=no
  6587. - fi
  6588. - ;;
  6589. -esac
  6590. -AC_MSG_RESULT([$enable_shared])
  6591. -
  6592. -AC_MSG_CHECKING([whether to build static libraries])
  6593. -# Make sure either enable_shared or enable_static is yes.
  6594. -test "$enable_shared" = yes || enable_static=yes
  6595. -AC_MSG_RESULT([$enable_static])
  6596. -
  6597. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6598. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6599. -
  6600. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6601. -AC_LIBTOOL_PROG_CC_C_O($1)
  6602. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6603. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6604. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6605. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6606. -
  6607. -AC_LIBTOOL_CONFIG($1)
  6608. -
  6609. -AC_LANG_POP
  6610. -CC="$lt_save_CC"
  6611. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6612. -
  6613. -
  6614. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6615. -# --------------------------
  6616. -# Ensure that the configuration vars for the C compiler are
  6617. -# suitably defined. Those variables are subsequently used by
  6618. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6619. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6620. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6621. -[AC_LANG_SAVE
  6622. -
  6623. -# Source file extension for Java test sources.
  6624. -ac_ext=java
  6625. -
  6626. -# Object file extension for compiled Java test sources.
  6627. -objext=o
  6628. -_LT_AC_TAGVAR(objext, $1)=$objext
  6629. -
  6630. -# Code to be used in simple compile tests
  6631. -lt_simple_compile_test_code="class foo {}\n"
  6632. -
  6633. -# Code to be used in simple link tests
  6634. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6635. -
  6636. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6637. -_LT_AC_SYS_COMPILER
  6638. -
  6639. -# save warnings/boilerplate of simple test code
  6640. -_LT_COMPILER_BOILERPLATE
  6641. -_LT_LINKER_BOILERPLATE
  6642. -
  6643. -# Allow CC to be a program name with arguments.
  6644. -lt_save_CC="$CC"
  6645. -CC=${GCJ-"gcj"}
  6646. -compiler=$CC
  6647. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6648. -_LT_CC_BASENAME([$compiler])
  6649. -
  6650. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6651. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6652. -
  6653. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6654. -
  6655. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6656. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6657. -AC_LIBTOOL_PROG_CC_C_O($1)
  6658. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6659. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6660. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6661. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6662. -
  6663. -AC_LIBTOOL_CONFIG($1)
  6664. -
  6665. -AC_LANG_RESTORE
  6666. -CC="$lt_save_CC"
  6667. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6668. -
  6669. -
  6670. -# AC_LIBTOOL_LANG_RC_CONFIG
  6671. -# -------------------------
  6672. -# Ensure that the configuration vars for the Windows resource compiler are
  6673. -# suitably defined. Those variables are subsequently used by
  6674. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6675. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6676. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6677. -[AC_LANG_SAVE
  6678. -
  6679. -# Source file extension for RC test sources.
  6680. -ac_ext=rc
  6681. -
  6682. -# Object file extension for compiled RC test sources.
  6683. -objext=o
  6684. -_LT_AC_TAGVAR(objext, $1)=$objext
  6685. -
  6686. -# Code to be used in simple compile tests
  6687. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6688. -
  6689. -# Code to be used in simple link tests
  6690. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6691. -
  6692. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6693. -_LT_AC_SYS_COMPILER
  6694. -
  6695. -# save warnings/boilerplate of simple test code
  6696. -_LT_COMPILER_BOILERPLATE
  6697. -_LT_LINKER_BOILERPLATE
  6698. -
  6699. -# Allow CC to be a program name with arguments.
  6700. -lt_save_CC="$CC"
  6701. -CC=${RC-"windres"}
  6702. -compiler=$CC
  6703. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6704. -_LT_CC_BASENAME([$compiler])
  6705. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6706. -
  6707. -AC_LIBTOOL_CONFIG($1)
  6708. -
  6709. -AC_LANG_RESTORE
  6710. -CC="$lt_save_CC"
  6711. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6712. -
  6713. -
  6714. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6715. -# ----------------------------
  6716. -# If TAGNAME is not passed, then create an initial libtool script
  6717. -# with a default configuration from the untagged config vars. Otherwise
  6718. -# add code to config.status for appending the configuration named by
  6719. -# TAGNAME from the matching tagged config vars.
  6720. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6721. -[# The else clause should only fire when bootstrapping the
  6722. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6723. -# with your package, and you will get complaints that there are
  6724. -# no rules to generate ltmain.sh.
  6725. -if test -f "$ltmain"; then
  6726. - # See if we are running on zsh, and set the options which allow our commands through
  6727. - # without removal of \ escapes.
  6728. - if test -n "${ZSH_VERSION+set}" ; then
  6729. - setopt NO_GLOB_SUBST
  6730. - fi
  6731. - # Now quote all the things that may contain metacharacters while being
  6732. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6733. - # variables and quote the copies for generation of the libtool script.
  6734. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  6735. - SED SHELL STRIP \
  6736. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6737. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6738. - deplibs_check_method reload_flag reload_cmds need_locks \
  6739. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6740. - lt_cv_sys_global_symbol_to_c_name_address \
  6741. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6742. - old_postinstall_cmds old_postuninstall_cmds \
  6743. - _LT_AC_TAGVAR(compiler, $1) \
  6744. - _LT_AC_TAGVAR(CC, $1) \
  6745. - _LT_AC_TAGVAR(LD, $1) \
  6746. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6747. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6748. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6749. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6750. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6751. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6752. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6753. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6754. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6755. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6756. - _LT_AC_TAGVAR(predep_objects, $1) \
  6757. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6758. - _LT_AC_TAGVAR(predeps, $1) \
  6759. - _LT_AC_TAGVAR(postdeps, $1) \
  6760. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6761. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6762. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6763. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6764. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6765. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6766. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6767. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6768. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6769. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6770. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6771. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6772. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6773. - _LT_AC_TAGVAR(module_cmds, $1) \
  6774. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6775. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6776. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6777. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6778. -
  6779. - case $var in
  6780. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6781. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6782. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6783. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6784. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6785. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6786. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6787. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6788. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6789. - postinstall_cmds | postuninstall_cmds | \
  6790. - old_postinstall_cmds | old_postuninstall_cmds | \
  6791. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6792. - # Double-quote double-evaled strings.
  6793. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6794. - ;;
  6795. - *)
  6796. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6797. - ;;
  6798. - esac
  6799. - done
  6800. -
  6801. - case $lt_echo in
  6802. - *'\[$]0 --fallback-echo"')
  6803. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6804. - ;;
  6805. - esac
  6806. -
  6807. -ifelse([$1], [],
  6808. - [cfgfile="${ofile}T"
  6809. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6810. - $rm -f "$cfgfile"
  6811. - AC_MSG_NOTICE([creating $ofile])],
  6812. - [cfgfile="$ofile"])
  6813. -
  6814. - cat <<__EOF__ >> "$cfgfile"
  6815. -ifelse([$1], [],
  6816. -[#! $SHELL
  6817. -
  6818. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6819. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6820. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6821. -#
  6822. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6823. -# Free Software Foundation, Inc.
  6824. -#
  6825. -# This file is part of GNU Libtool:
  6826. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6827. -#
  6828. -# This program is free software; you can redistribute it and/or modify
  6829. -# it under the terms of the GNU General Public License as published by
  6830. -# the Free Software Foundation; either version 2 of the License, or
  6831. -# (at your option) any later version.
  6832. -#
  6833. -# This program is distributed in the hope that it will be useful, but
  6834. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6835. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6836. -# General Public License for more details.
  6837. -#
  6838. -# You should have received a copy of the GNU General Public License
  6839. -# along with this program; if not, write to the Free Software
  6840. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  6841. -#
  6842. -# As a special exception to the GNU General Public License, if you
  6843. -# distribute this file as part of a program that contains a
  6844. -# configuration script generated by Autoconf, you may include it under
  6845. -# the same distribution terms that you use for the rest of that program.
  6846. -
  6847. -# A sed program that does not truncate output.
  6848. -SED=$lt_SED
  6849. -
  6850. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6851. -Xsed="$SED -e 1s/^X//"
  6852. -
  6853. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6854. -# if CDPATH is set.
  6855. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6856. -
  6857. -# The names of the tagged configurations supported by this script.
  6858. -available_tags=
  6859. -
  6860. -# ### BEGIN LIBTOOL CONFIG],
  6861. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6862. -
  6863. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6864. -
  6865. -# Shell to use when invoking shell scripts.
  6866. -SHELL=$lt_SHELL
  6867. -
  6868. -# Whether or not to build shared libraries.
  6869. -build_libtool_libs=$enable_shared
  6870. -
  6871. -# Whether or not to build static libraries.
  6872. -build_old_libs=$enable_static
  6873. -
  6874. -# Whether or not to add -lc for building shared libraries.
  6875. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6876. -
  6877. -# Whether or not to disallow shared libs when runtime libs are static
  6878. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6879. -
  6880. -# Whether or not to optimize for fast installation.
  6881. -fast_install=$enable_fast_install
  6882. -
  6883. -# The host system.
  6884. -host_alias=$host_alias
  6885. -host=$host
  6886. -host_os=$host_os
  6887. -
  6888. -# The build system.
  6889. -build_alias=$build_alias
  6890. -build=$build
  6891. -build_os=$build_os
  6892. -
  6893. -# An echo program that does not interpret backslashes.
  6894. -echo=$lt_echo
  6895. -
  6896. -# The archiver.
  6897. -AR=$lt_AR
  6898. -AR_FLAGS=$lt_AR_FLAGS
  6899. -
  6900. -# A C compiler.
  6901. -LTCC=$lt_LTCC
  6902. -
  6903. -# LTCC compiler flags.
  6904. -LTCFLAGS=$lt_LTCFLAGS
  6905. -
  6906. -# A language-specific compiler.
  6907. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6908. -
  6909. -# Is the compiler the GNU C compiler?
  6910. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6911. -
  6912. -# An ERE matcher.
  6913. -EGREP=$lt_EGREP
  6914. -
  6915. -# The linker used to build libraries.
  6916. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6917. -
  6918. -# Whether we need hard or soft links.
  6919. -LN_S=$lt_LN_S
  6920. -
  6921. -# A BSD-compatible nm program.
  6922. -NM=$lt_NM
  6923. -
  6924. -# A symbol stripping program
  6925. -STRIP=$lt_STRIP
  6926. -
  6927. -# Used to examine libraries when file_magic_cmd begins "file"
  6928. -MAGIC_CMD=$MAGIC_CMD
  6929. -
  6930. -# Used on cygwin: DLL creation program.
  6931. -DLLTOOL="$DLLTOOL"
  6932. -
  6933. -# Used on cygwin: object dumper.
  6934. -OBJDUMP="$OBJDUMP"
  6935. -
  6936. -# Used on cygwin: assembler.
  6937. -AS="$AS"
  6938. -
  6939. -# The name of the directory that contains temporary libtool files.
  6940. -objdir=$objdir
  6941. -
  6942. -# How to create reloadable object files.
  6943. -reload_flag=$lt_reload_flag
  6944. -reload_cmds=$lt_reload_cmds
  6945. -
  6946. -# How to pass a linker flag through the compiler.
  6947. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6948. -
  6949. -# Object file suffix (normally "o").
  6950. -objext="$ac_objext"
  6951. -
  6952. -# Old archive suffix (normally "a").
  6953. -libext="$libext"
  6954. -
  6955. -# Shared library suffix (normally ".so").
  6956. -shrext_cmds='$shrext_cmds'
  6957. -
  6958. -# Executable file suffix (normally "").
  6959. -exeext="$exeext"
  6960. -
  6961. -# Additional compiler flags for building library objects.
  6962. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6963. -pic_mode=$pic_mode
  6964. -
  6965. -# What is the maximum length of a command?
  6966. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6967. -
  6968. -# Does compiler simultaneously support -c and -o options?
  6969. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6970. -
  6971. -# Must we lock files when doing compilation?
  6972. -need_locks=$lt_need_locks
  6973. -
  6974. -# Do we need the lib prefix for modules?
  6975. -need_lib_prefix=$need_lib_prefix
  6976. -
  6977. -# Do we need a version for libraries?
  6978. -need_version=$need_version
  6979. -
  6980. -# Whether dlopen is supported.
  6981. -dlopen_support=$enable_dlopen
  6982. -
  6983. -# Whether dlopen of programs is supported.
  6984. -dlopen_self=$enable_dlopen_self
  6985. -
  6986. -# Whether dlopen of statically linked programs is supported.
  6987. -dlopen_self_static=$enable_dlopen_self_static
  6988. -
  6989. -# Compiler flag to prevent dynamic linking.
  6990. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6991. -
  6992. -# Compiler flag to turn off builtin functions.
  6993. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6994. -
  6995. -# Compiler flag to allow reflexive dlopens.
  6996. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6997. -
  6998. -# Compiler flag to generate shared objects directly from archives.
  6999. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7000. -
  7001. -# Compiler flag to generate thread-safe objects.
  7002. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7003. -
  7004. -# Library versioning type.
  7005. -version_type=$version_type
  7006. -
  7007. -# Format of library name prefix.
  7008. -libname_spec=$lt_libname_spec
  7009. -
  7010. -# List of archive names. First name is the real one, the rest are links.
  7011. -# The last name is the one that the linker finds with -lNAME.
  7012. -library_names_spec=$lt_library_names_spec
  7013. -
  7014. -# The coded name of the library, if different from the real name.
  7015. -soname_spec=$lt_soname_spec
  7016. -
  7017. -# Commands used to build and install an old-style archive.
  7018. -RANLIB=$lt_RANLIB
  7019. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7020. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7021. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7022. -
  7023. -# Create an old-style archive from a shared archive.
  7024. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7025. -
  7026. -# Create a temporary old-style archive to link instead of a shared archive.
  7027. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7028. -
  7029. -# Commands used to build and install a shared archive.
  7030. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7031. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7032. -postinstall_cmds=$lt_postinstall_cmds
  7033. -postuninstall_cmds=$lt_postuninstall_cmds
  7034. -
  7035. -# Commands used to build a loadable module (assumed same as above if empty)
  7036. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7037. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7038. -
  7039. -# Commands to strip libraries.
  7040. -old_striplib=$lt_old_striplib
  7041. -striplib=$lt_striplib
  7042. -
  7043. -# Dependencies to place before the objects being linked to create a
  7044. -# shared library.
  7045. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7046. -
  7047. -# Dependencies to place after the objects being linked to create a
  7048. -# shared library.
  7049. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7050. -
  7051. -# Dependencies to place before the objects being linked to create a
  7052. -# shared library.
  7053. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7054. -
  7055. -# Dependencies to place after the objects being linked to create a
  7056. -# shared library.
  7057. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7058. -
  7059. -# The library search path used internally by the compiler when linking
  7060. -# a shared library.
  7061. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7062. -
  7063. -# Method to check whether dependent libraries are shared objects.
  7064. -deplibs_check_method=$lt_deplibs_check_method
  7065. -
  7066. -# Command to use when deplibs_check_method == file_magic.
  7067. -file_magic_cmd=$lt_file_magic_cmd
  7068. -
  7069. -# Flag that allows shared libraries with undefined symbols to be built.
  7070. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7071. -
  7072. -# Flag that forces no undefined symbols.
  7073. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7074. -
  7075. -# Commands used to finish a libtool library installation in a directory.
  7076. -finish_cmds=$lt_finish_cmds
  7077. -
  7078. -# Same as above, but a single script fragment to be evaled but not shown.
  7079. -finish_eval=$lt_finish_eval
  7080. -
  7081. -# Take the output of nm and produce a listing of raw symbols and C names.
  7082. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7083. -
  7084. -# Transform the output of nm in a proper C declaration
  7085. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7086. -
  7087. -# Transform the output of nm in a C name address pair
  7088. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7089. -
  7090. -# This is the shared library runtime path variable.
  7091. -runpath_var=$runpath_var
  7092. -
  7093. -# This is the shared library path variable.
  7094. -shlibpath_var=$shlibpath_var
  7095. -
  7096. -# Is shlibpath searched before the hard-coded library search path?
  7097. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7098. -
  7099. -# How to hardcode a shared library path into an executable.
  7100. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7101. -
  7102. -# Whether we should hardcode library paths into libraries.
  7103. -hardcode_into_libs=$hardcode_into_libs
  7104. -
  7105. -# Flag to hardcode \$libdir into a binary during linking.
  7106. -# This must work even if \$libdir does not exist.
  7107. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7108. -
  7109. -# If ld is used when linking, flag to hardcode \$libdir into
  7110. -# a binary during linking. This must work even if \$libdir does
  7111. -# not exist.
  7112. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7113. -
  7114. -# Whether we need a single -rpath flag with a separated argument.
  7115. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7116. -
  7117. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7118. -# resulting binary.
  7119. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7120. -
  7121. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7122. -# resulting binary.
  7123. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7124. -
  7125. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7126. -# the resulting binary.
  7127. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7128. -
  7129. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7130. -# and all subsequent libraries and executables linked against it.
  7131. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7132. -
  7133. -# Variables whose values should be saved in libtool wrapper scripts and
  7134. -# restored at relink time.
  7135. -variables_saved_for_relink="$variables_saved_for_relink"
  7136. -
  7137. -# Whether libtool must link a program against all its dependency libraries.
  7138. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7139. -
  7140. -# Compile-time system search path for libraries
  7141. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7142. -
  7143. -# Run-time system search path for libraries
  7144. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7145. -
  7146. -# Fix the shell variable \$srcfile for the compiler.
  7147. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  7148. -
  7149. -# Set to yes if exported symbols are required.
  7150. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7151. -
  7152. -# The commands to list exported symbols.
  7153. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7154. -
  7155. -# The commands to extract the exported symbol list from a shared archive.
  7156. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7157. -
  7158. -# Symbols that should not be listed in the preloaded symbols.
  7159. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7160. -
  7161. -# Symbols that must always be exported.
  7162. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7163. -
  7164. -ifelse([$1],[],
  7165. -[# ### END LIBTOOL CONFIG],
  7166. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7167. -
  7168. -__EOF__
  7169. -
  7170. -ifelse([$1],[], [
  7171. - case $host_os in
  7172. - aix3*)
  7173. - cat <<\EOF >> "$cfgfile"
  7174. -
  7175. -# AIX sometimes has problems with the GCC collect2 program. For some
  7176. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7177. -# vanish in a puff of smoke.
  7178. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7179. - COLLECT_NAMES=
  7180. - export COLLECT_NAMES
  7181. -fi
  7182. -EOF
  7183. - ;;
  7184. - esac
  7185. -
  7186. - # We use sed instead of cat because bash on DJGPP gets confused if
  7187. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7188. - # text mode, it properly converts lines to CR/LF. This bash problem
  7189. - # is reportedly fixed, but why not run on old versions too?
  7190. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7191. -
  7192. - mv -f "$cfgfile" "$ofile" || \
  7193. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7194. - chmod +x "$ofile"
  7195. -])
  7196. -else
  7197. - # If there is no Makefile yet, we rely on a make rule to execute
  7198. - # `config.status --recheck' to rerun these tests and create the
  7199. - # libtool script then.
  7200. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7201. - if test -f "$ltmain_in"; then
  7202. - test -f Makefile && make "$ltmain"
  7203. - fi
  7204. -fi
  7205. -])# AC_LIBTOOL_CONFIG
  7206. -
  7207. -
  7208. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7209. -# -------------------------------------------
  7210. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7211. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7212. -
  7213. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7214. -
  7215. -if test "$GCC" = yes; then
  7216. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7217. -
  7218. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7219. - lt_cv_prog_compiler_rtti_exceptions,
  7220. - [-fno-rtti -fno-exceptions], [],
  7221. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7222. -fi
  7223. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7224. -
  7225. -
  7226. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7227. -# ---------------------------------
  7228. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7229. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7230. -AC_REQUIRE([AC_PROG_NM])
  7231. -AC_REQUIRE([AC_OBJEXT])
  7232. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7233. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7234. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7235. -[
  7236. -# These are sane defaults that work on at least a few old systems.
  7237. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7238. -
  7239. -# Character class describing NM global symbol codes.
  7240. -symcode='[[BCDEGRST]]'
  7241. -
  7242. -# Regexp to match symbols that can be accessed directly from C.
  7243. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7244. -
  7245. -# Transform an extracted symbol line into a proper C declaration
  7246. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7247. -
  7248. -# Transform an extracted symbol line into symbol name and symbol address
  7249. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7250. -
  7251. -# Define system-specific variables.
  7252. -case $host_os in
  7253. -aix*)
  7254. - symcode='[[BCDT]]'
  7255. - ;;
  7256. -cygwin* | mingw* | pw32*)
  7257. - symcode='[[ABCDGISTW]]'
  7258. - ;;
  7259. -hpux*) # Its linker distinguishes data from code symbols
  7260. - if test "$host_cpu" = ia64; then
  7261. - symcode='[[ABCDEGRST]]'
  7262. - fi
  7263. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7264. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7265. - ;;
  7266. -linux* | k*bsd*-gnu)
  7267. - if test "$host_cpu" = ia64; then
  7268. - symcode='[[ABCDGIRSTW]]'
  7269. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7270. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7271. +cygwin* | mingw* | pw32* | cegcc*)
  7272. + symcode='[[ABCDGISTW]]'
  7273. + ;;
  7274. +hpux*)
  7275. + if test "$host_cpu" = ia64; then
  7276. + symcode='[[ABCDEGRST]]'
  7277. fi
  7278. ;;
  7279. irix* | nonstopux*)
  7280. @@ -4660,44 +3383,72 @@
  7281. ;;
  7282. esac
  7283. -# Handle CRLF in mingw tool chain
  7284. -opt_cr=
  7285. -case $build_os in
  7286. -mingw*)
  7287. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7288. - ;;
  7289. -esac
  7290. -
  7291. # If we're using GNU nm, then use its standard symbol codes.
  7292. case `$NM -V 2>&1` in
  7293. *GNU* | *'with BFD'*)
  7294. symcode='[[ABCDGIRSTW]]' ;;
  7295. esac
  7296. -# Try without a prefix undercore, then with it.
  7297. -for ac_symprfx in "" "_"; do
  7298. +# Transform an extracted symbol line into a proper C declaration.
  7299. +# Some systems (esp. on ia64) link data and code symbols differently,
  7300. +# so use this general approach.
  7301. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7302. +
  7303. +# Transform an extracted symbol line into symbol name and symbol address
  7304. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7305. +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'"
  7306. +
  7307. +# Handle CRLF in mingw tool chain
  7308. +opt_cr=
  7309. +case $build_os in
  7310. +mingw*)
  7311. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7312. + ;;
  7313. +esac
  7314. +
  7315. +# Try without a prefix underscore, then with it.
  7316. +for ac_symprfx in "" "_"; do
  7317. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7318. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7319. # Write the raw and C identifiers.
  7320. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7321. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7322. + # Fake it for dumpbin and say T for any non-static function
  7323. + # and D for any global variable.
  7324. + # Also find C++ and __fastcall symbols from MSVC++,
  7325. + # which start with @ or ?.
  7326. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  7327. +" {last_section=section; section=\$ 3};"\
  7328. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7329. +" \$ 0!~/External *\|/{next};"\
  7330. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7331. +" {if(hide[section]) next};"\
  7332. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7333. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7334. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7335. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7336. +" ' prfx=^$ac_symprfx]"
  7337. + else
  7338. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7339. + fi
  7340. # Check to see that the pipe works correctly.
  7341. pipe_works=no
  7342. rm -f conftest*
  7343. - cat > conftest.$ac_ext <<EOF
  7344. + cat > conftest.$ac_ext <<_LT_EOF
  7345. #ifdef __cplusplus
  7346. extern "C" {
  7347. #endif
  7348. char nm_test_var;
  7349. -void nm_test_func(){}
  7350. +void nm_test_func(void);
  7351. +void nm_test_func(void){}
  7352. #ifdef __cplusplus
  7353. }
  7354. #endif
  7355. int main(){nm_test_var='a';nm_test_func();return(0);}
  7356. -EOF
  7357. +_LT_EOF
  7358. if AC_TRY_EVAL(ac_compile); then
  7359. # Now try to grab the symbols.
  7360. @@ -4711,48 +3462,50 @@
  7361. fi
  7362. # Make sure that we snagged all the symbols we need.
  7363. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7364. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7365. - cat <<EOF > conftest.$ac_ext
  7366. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7367. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7368. + cat <<_LT_EOF > conftest.$ac_ext
  7369. #ifdef __cplusplus
  7370. extern "C" {
  7371. #endif
  7372. -EOF
  7373. +_LT_EOF
  7374. # Now generate the symbol file.
  7375. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  7376. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7377. - cat <<EOF >> conftest.$ac_ext
  7378. -#if defined (__STDC__) && __STDC__
  7379. -# define lt_ptr_t void *
  7380. -#else
  7381. -# define lt_ptr_t char *
  7382. -# define const
  7383. -#endif
  7384. + cat <<_LT_EOF >> conftest.$ac_ext
  7385. -/* The mapping between symbol names and symbols. */
  7386. +/* The mapping between symbol names and symbols. */
  7387. const struct {
  7388. const char *name;
  7389. - lt_ptr_t address;
  7390. + void *address;
  7391. }
  7392. -lt_preloaded_symbols[[]] =
  7393. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  7394. {
  7395. -EOF
  7396. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  7397. - cat <<\EOF >> conftest.$ac_ext
  7398. - {0, (lt_ptr_t) 0}
  7399. + { "@PROGRAM@", (void *) 0 },
  7400. +_LT_EOF
  7401. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7402. + cat <<\_LT_EOF >> conftest.$ac_ext
  7403. + {0, (void *) 0}
  7404. };
  7405. +/* This works around a problem in FreeBSD linker */
  7406. +#ifdef FREEBSD_WORKAROUND
  7407. +static const void *lt_preloaded_setup() {
  7408. + return lt__PROGRAM__LTX_preloaded_symbols;
  7409. +}
  7410. +#endif
  7411. +
  7412. #ifdef __cplusplus
  7413. }
  7414. #endif
  7415. -EOF
  7416. +_LT_EOF
  7417. # Now try linking the two files.
  7418. mv conftest.$ac_objext conftstm.$ac_objext
  7419. lt_save_LIBS="$LIBS"
  7420. lt_save_CFLAGS="$CFLAGS"
  7421. LIBS="conftstm.$ac_objext"
  7422. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  7423. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  7424. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  7425. pipe_works=yes
  7426. fi
  7427. @@ -4771,7 +3524,7 @@
  7428. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  7429. cat conftest.$ac_ext >&5
  7430. fi
  7431. - rm -f conftest* conftst*
  7432. + rm -rf conftest* conftst*
  7433. # Do not use the global_symbol_pipe unless it works.
  7434. if test "$pipe_works" = yes; then
  7435. @@ -4789,115 +3542,136 @@
  7436. else
  7437. AC_MSG_RESULT(ok)
  7438. fi
  7439. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7440. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  7441. + [Take the output of nm and produce a listing of raw symbols and C names])
  7442. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  7443. + [Transform the output of nm in a proper C declaration])
  7444. +_LT_DECL([global_symbol_to_c_name_address],
  7445. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  7446. + [Transform the output of nm in a C name address pair])
  7447. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  7448. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  7449. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  7450. +]) # _LT_CMD_GLOBAL_SYMBOLS
  7451. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  7452. -# ---------------------------------------
  7453. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  7454. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  7455. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7456. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  7457. +
  7458. +# _LT_COMPILER_PIC([TAGNAME])
  7459. +# ---------------------------
  7460. +m4_defun([_LT_COMPILER_PIC],
  7461. +[m4_require([_LT_TAG_COMPILER])dnl
  7462. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  7463. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7464. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  7465. AC_MSG_CHECKING([for $compiler option to produce PIC])
  7466. - ifelse([$1],[CXX],[
  7467. +m4_if([$1], [CXX], [
  7468. # C++ specific cases for pic, static, wl, etc.
  7469. if test "$GXX" = yes; then
  7470. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7471. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7472. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7473. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7474. case $host_os in
  7475. aix*)
  7476. # All AIX code is PIC.
  7477. if test "$host_cpu" = ia64; then
  7478. # AIX 5 now supports IA64 processor
  7479. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7480. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7481. fi
  7482. ;;
  7483. +
  7484. amigaos*)
  7485. - # FIXME: we need at least 68020 code to build shared libraries, but
  7486. - # adding the `-m68020' flag to GCC prevents building anything better,
  7487. - # like `-m68040'.
  7488. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7489. + case $host_cpu in
  7490. + powerpc)
  7491. + # see comment about AmigaOS4 .so support
  7492. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7493. + ;;
  7494. + m68k)
  7495. + # FIXME: we need at least 68020 code to build shared libraries, but
  7496. + # adding the `-m68020' flag to GCC prevents building anything better,
  7497. + # like `-m68040'.
  7498. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7499. + ;;
  7500. + esac
  7501. ;;
  7502. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7503. +
  7504. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7505. # PIC is the default for these OSes.
  7506. ;;
  7507. - mingw* | os2* | pw32*)
  7508. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7509. # This hack is so that the source file can tell whether it is being
  7510. # built for inclusion in a dll (and should export symbols for example).
  7511. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7512. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7513. + # (--disable-auto-import) libraries
  7514. + m4_if([$1], [GCJ], [],
  7515. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7516. ;;
  7517. darwin* | rhapsody*)
  7518. # PIC is the default on this platform
  7519. # Common symbols not allowed in MH_DYLIB files
  7520. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7521. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7522. ;;
  7523. *djgpp*)
  7524. # DJGPP does not support shared libraries at all
  7525. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7526. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7527. ;;
  7528. - interix3*)
  7529. + interix[[3-9]]*)
  7530. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7531. # Instead, we relocate shared libraries at runtime.
  7532. ;;
  7533. sysv4*MP*)
  7534. if test -d /usr/nec; then
  7535. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7536. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7537. fi
  7538. ;;
  7539. hpux*)
  7540. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7541. - # not for PA HP-UX.
  7542. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7543. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7544. + # sets the default TLS model and affects inlining.
  7545. case $host_cpu in
  7546. - hppa*64*|ia64*)
  7547. + hppa*64*)
  7548. ;;
  7549. *)
  7550. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7552. ;;
  7553. esac
  7554. ;;
  7555. + *qnx* | *nto*)
  7556. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7557. + # it will coredump.
  7558. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7559. + ;;
  7560. *)
  7561. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7562. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7563. ;;
  7564. esac
  7565. else
  7566. case $host_os in
  7567. - aix4* | aix5*)
  7568. + aix[[4-9]]*)
  7569. # All AIX code is PIC.
  7570. if test "$host_cpu" = ia64; then
  7571. # AIX 5 now supports IA64 processor
  7572. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7573. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7574. else
  7575. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7576. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7577. fi
  7578. ;;
  7579. chorus*)
  7580. case $cc_basename in
  7581. cxch68*)
  7582. # Green Hills C++ Compiler
  7583. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  7584. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  7585. ;;
  7586. esac
  7587. ;;
  7588. - darwin*)
  7589. - # PIC is the default on this platform
  7590. - # Common symbols not allowed in MH_DYLIB files
  7591. - case $cc_basename in
  7592. - xlc*)
  7593. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  7594. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7595. - ;;
  7596. - esac
  7597. - ;;
  7598. dgux*)
  7599. case $cc_basename in
  7600. ec++*)
  7601. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7602. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7603. ;;
  7604. ghcx*)
  7605. # Green Hills C++ Compiler
  7606. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7607. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7608. ;;
  7609. *)
  7610. ;;
  7611. @@ -4909,21 +3683,21 @@
  7612. hpux9* | hpux10* | hpux11*)
  7613. case $cc_basename in
  7614. CC*)
  7615. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7616. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7617. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7618. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7619. if test "$host_cpu" != ia64; then
  7620. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7621. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7622. fi
  7623. ;;
  7624. aCC*)
  7625. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7626. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7627. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7628. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7629. case $host_cpu in
  7630. hppa*64*|ia64*)
  7631. # +Z the default
  7632. ;;
  7633. *)
  7634. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7635. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7636. ;;
  7637. esac
  7638. ;;
  7639. @@ -4938,41 +3712,62 @@
  7640. irix5* | irix6* | nonstopux*)
  7641. case $cc_basename in
  7642. CC*)
  7643. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7644. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7645. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7646. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7647. # CC pic flag -KPIC is the default.
  7648. ;;
  7649. *)
  7650. ;;
  7651. esac
  7652. ;;
  7653. - linux* | k*bsd*-gnu)
  7654. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7655. case $cc_basename in
  7656. KCC*)
  7657. # KAI C++ Compiler
  7658. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7659. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7660. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7661. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7662. ;;
  7663. - icpc* | ecpc*)
  7664. - # Intel C++
  7665. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7666. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7667. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7668. - ;;
  7669. - pgCC*)
  7670. - # Portland Group C++ compiler.
  7671. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7672. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7673. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7674. + ecpc* )
  7675. + # old Intel C++ for x86_64 which still supported -KPIC.
  7676. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7677. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7678. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7679. + ;;
  7680. + icpc* )
  7681. + # Intel C++, used to be incompatible with GCC.
  7682. + # ICC 10 doesn't accept -KPIC any more.
  7683. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7684. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7685. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7686. + ;;
  7687. + pgCC* | pgcpp*)
  7688. + # Portland Group C++ compiler
  7689. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7690. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7691. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7692. ;;
  7693. cxx*)
  7694. # Compaq C++
  7695. # Make sure the PIC flag is empty. It appears that all Alpha
  7696. # Linux and Compaq Tru64 Unix objects are PIC.
  7697. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7698. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7699. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7700. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7701. + ;;
  7702. + xlc* | xlC*)
  7703. + # IBM XL 8.0 on PPC
  7704. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7705. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7706. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7707. ;;
  7708. *)
  7709. + case `$CC -V 2>&1 | sed 5q` in
  7710. + *Sun\ C*)
  7711. + # Sun C++ 5.9
  7712. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7713. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7714. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7715. + ;;
  7716. + esac
  7717. ;;
  7718. esac
  7719. ;;
  7720. @@ -4983,7 +3778,7 @@
  7721. mvs*)
  7722. case $cc_basename in
  7723. cxx*)
  7724. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7725. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7726. ;;
  7727. *)
  7728. ;;
  7729. @@ -4991,22 +3786,27 @@
  7730. ;;
  7731. netbsd* | netbsdelf*-gnu)
  7732. ;;
  7733. + *qnx* | *nto*)
  7734. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7735. + # it will coredump.
  7736. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7737. + ;;
  7738. osf3* | osf4* | osf5*)
  7739. case $cc_basename in
  7740. KCC*)
  7741. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7742. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7743. ;;
  7744. RCC*)
  7745. # Rational C++ 2.4.1
  7746. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7747. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7748. ;;
  7749. cxx*)
  7750. # Digital/Compaq C++
  7751. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7752. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7753. # Make sure the PIC flag is empty. It appears that all Alpha
  7754. # Linux and Compaq Tru64 Unix objects are PIC.
  7755. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7756. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7757. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7758. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7759. ;;
  7760. *)
  7761. ;;
  7762. @@ -5018,13 +3818,13 @@
  7763. case $cc_basename in
  7764. CC*)
  7765. # Sun C++ 4.2, 5.x and Centerline C++
  7766. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7767. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7768. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7769. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7770. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7771. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7772. ;;
  7773. gcx*)
  7774. # Green Hills C++ Compiler
  7775. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7776. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7777. ;;
  7778. *)
  7779. ;;
  7780. @@ -5034,82 +3834,107 @@
  7781. case $cc_basename in
  7782. CC*)
  7783. # Sun C++ 4.x
  7784. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7785. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7786. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7787. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7788. ;;
  7789. lcc*)
  7790. # Lucid
  7791. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7792. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7793. ;;
  7794. *)
  7795. ;;
  7796. esac
  7797. ;;
  7798. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7799. + case $cc_basename in
  7800. + CC*)
  7801. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7802. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7803. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7804. + ;;
  7805. + esac
  7806. + ;;
  7807. tandem*)
  7808. case $cc_basename in
  7809. NCC*)
  7810. # NonStop-UX NCC 3.20
  7811. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7812. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7813. ;;
  7814. *)
  7815. ;;
  7816. esac
  7817. ;;
  7818. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7819. - case $cc_basename in
  7820. - CC*)
  7821. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7822. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7823. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7824. - ;;
  7825. - esac
  7826. - ;;
  7827. vxworks*)
  7828. ;;
  7829. *)
  7830. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7831. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7832. ;;
  7833. esac
  7834. fi
  7835. ],
  7836. [
  7837. if test "$GCC" = yes; then
  7838. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7839. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7840. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7841. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7842. case $host_os in
  7843. aix*)
  7844. # All AIX code is PIC.
  7845. if test "$host_cpu" = ia64; then
  7846. # AIX 5 now supports IA64 processor
  7847. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7848. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7849. fi
  7850. ;;
  7851. amigaos*)
  7852. - # FIXME: we need at least 68020 code to build shared libraries, but
  7853. - # adding the `-m68020' flag to GCC prevents building anything better,
  7854. - # like `-m68040'.
  7855. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7856. + case $host_cpu in
  7857. + powerpc)
  7858. + # see comment about AmigaOS4 .so support
  7859. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7860. + ;;
  7861. + m68k)
  7862. + # FIXME: we need at least 68020 code to build shared libraries, but
  7863. + # adding the `-m68020' flag to GCC prevents building anything better,
  7864. + # like `-m68040'.
  7865. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7866. + ;;
  7867. + esac
  7868. ;;
  7869. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7870. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7871. # PIC is the default for these OSes.
  7872. ;;
  7873. - mingw* | pw32* | os2*)
  7874. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7875. # This hack is so that the source file can tell whether it is being
  7876. # built for inclusion in a dll (and should export symbols for example).
  7877. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7878. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7879. + # (--disable-auto-import) libraries
  7880. + m4_if([$1], [GCJ], [],
  7881. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7882. ;;
  7883. darwin* | rhapsody*)
  7884. # PIC is the default on this platform
  7885. # Common symbols not allowed in MH_DYLIB files
  7886. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7887. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7888. + ;;
  7889. +
  7890. + hpux*)
  7891. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7892. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7893. + # sets the default TLS model and affects inlining.
  7894. + case $host_cpu in
  7895. + hppa*64*)
  7896. + # +Z the default
  7897. + ;;
  7898. + *)
  7899. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7900. + ;;
  7901. + esac
  7902. ;;
  7903. - interix3*)
  7904. + interix[[3-9]]*)
  7905. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7906. # Instead, we relocate shared libraries at runtime.
  7907. ;;
  7908. @@ -5117,64 +3942,48 @@
  7909. msdosdjgpp*)
  7910. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7911. # on systems that don't support them.
  7912. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7913. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7914. enable_shared=no
  7915. ;;
  7916. + *nto* | *qnx*)
  7917. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7918. + # it will coredump.
  7919. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7920. + ;;
  7921. +
  7922. sysv4*MP*)
  7923. if test -d /usr/nec; then
  7924. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7925. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7926. fi
  7927. ;;
  7928. - hpux*)
  7929. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7930. - # not for PA HP-UX.
  7931. - case $host_cpu in
  7932. - hppa*64*|ia64*)
  7933. - # +Z the default
  7934. - ;;
  7935. - *)
  7936. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7937. - ;;
  7938. - esac
  7939. - ;;
  7940. -
  7941. *)
  7942. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7943. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7944. ;;
  7945. esac
  7946. else
  7947. # PORTME Check for flag to pass linker flags through the system compiler.
  7948. case $host_os in
  7949. aix*)
  7950. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7951. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7952. if test "$host_cpu" = ia64; then
  7953. # AIX 5 now supports IA64 processor
  7954. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7955. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7956. else
  7957. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7958. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7959. fi
  7960. ;;
  7961. - darwin*)
  7962. - # PIC is the default on this platform
  7963. - # Common symbols not allowed in MH_DYLIB files
  7964. - case $cc_basename in
  7965. - xlc*)
  7966. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  7967. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7968. - ;;
  7969. - esac
  7970. - ;;
  7971. - mingw* | pw32* | os2*)
  7972. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7973. # This hack is so that the source file can tell whether it is being
  7974. # built for inclusion in a dll (and should export symbols for example).
  7975. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7976. + m4_if([$1], [GCJ], [],
  7977. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7978. ;;
  7979. hpux9* | hpux10* | hpux11*)
  7980. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7981. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7982. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7983. # not for PA HP-UX.
  7984. case $host_cpu in
  7985. @@ -5182,1205 +3991,4001 @@
  7986. # +Z the default
  7987. ;;
  7988. *)
  7989. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7990. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7991. ;;
  7992. esac
  7993. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7994. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7995. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7996. ;;
  7997. irix5* | irix6* | nonstopux*)
  7998. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7999. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8000. # PIC (with -KPIC) is the default.
  8001. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8002. - ;;
  8003. -
  8004. - newsos6)
  8005. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8006. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8007. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8008. ;;
  8009. - linux* | k*bsd*-gnu)
  8010. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8011. case $cc_basename in
  8012. - icc* | ecc*)
  8013. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8014. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8015. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8016. + # old Intel for x86_64 which still supported -KPIC.
  8017. + ecc*)
  8018. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8019. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8020. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8021. ;;
  8022. + # icc used to be incompatible with GCC.
  8023. + # ICC 10 doesn't accept -KPIC any more.
  8024. + icc* | ifort*)
  8025. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8026. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8027. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8028. + ;;
  8029. + # Lahey Fortran 8.1.
  8030. + lf95*)
  8031. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8032. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  8033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  8034. + ;;
  8035. pgcc* | pgf77* | pgf90* | pgf95*)
  8036. # Portland Group compilers (*not* the Pentium gcc compiler,
  8037. # which looks to be a dead project)
  8038. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8039. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8040. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8041. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8042. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8043. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8044. ;;
  8045. ccc*)
  8046. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8047. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8048. # All Alpha code is PIC.
  8049. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8050. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8051. + ;;
  8052. + xl*)
  8053. + # IBM XL C 8.0/Fortran 10.1 on PPC
  8054. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8055. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  8056. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  8057. + ;;
  8058. + *)
  8059. + case `$CC -V 2>&1 | sed 5q` in
  8060. + *Sun\ C*)
  8061. + # Sun C 5.9
  8062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8063. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8064. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8065. + ;;
  8066. + *Sun\ F*)
  8067. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8068. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8069. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8070. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  8071. + ;;
  8072. + esac
  8073. + ;;
  8074. + esac
  8075. + ;;
  8076. +
  8077. + newsos6)
  8078. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8079. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8080. + ;;
  8081. +
  8082. + *nto* | *qnx*)
  8083. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  8084. + # it will coredump.
  8085. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  8086. + ;;
  8087. +
  8088. + osf3* | osf4* | osf5*)
  8089. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8090. + # All OSF/1 code is PIC.
  8091. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8092. + ;;
  8093. +
  8094. + rdos*)
  8095. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8096. + ;;
  8097. +
  8098. + solaris*)
  8099. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8100. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8101. + case $cc_basename in
  8102. + f77* | f90* | f95*)
  8103. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  8104. + *)
  8105. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  8106. + esac
  8107. + ;;
  8108. +
  8109. + sunos4*)
  8110. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8111. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8112. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8113. + ;;
  8114. +
  8115. + sysv4 | sysv4.2uw2* | sysv4.3*)
  8116. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8117. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8118. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8119. + ;;
  8120. +
  8121. + sysv4*MP*)
  8122. + if test -d /usr/nec ;then
  8123. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  8124. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8125. + fi
  8126. + ;;
  8127. +
  8128. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8129. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8130. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8131. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8132. + ;;
  8133. +
  8134. + unicos*)
  8135. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8136. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8137. + ;;
  8138. +
  8139. + uts4*)
  8140. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8141. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8142. + ;;
  8143. +
  8144. + *)
  8145. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8146. + ;;
  8147. + esac
  8148. + fi
  8149. +])
  8150. +case $host_os in
  8151. + # For platforms which do not support PIC, -DPIC is meaningless:
  8152. + *djgpp*)
  8153. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8154. + ;;
  8155. + *)
  8156. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  8157. + ;;
  8158. +esac
  8159. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  8160. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  8161. + [How to pass a linker flag through the compiler])
  8162. +
  8163. +#
  8164. +# Check to make sure the PIC flag actually works.
  8165. +#
  8166. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  8167. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  8168. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  8169. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  8170. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  8171. + "" | " "*) ;;
  8172. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  8173. + esac],
  8174. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8175. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  8176. +fi
  8177. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  8178. + [Additional compiler flags for building library objects])
  8179. +
  8180. +#
  8181. +# Check to make sure the static flag actually works.
  8182. +#
  8183. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  8184. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  8185. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  8186. + $lt_tmp_static_flag,
  8187. + [],
  8188. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  8189. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  8190. + [Compiler flag to prevent dynamic linking])
  8191. +])# _LT_COMPILER_PIC
  8192. +
  8193. +
  8194. +# _LT_LINKER_SHLIBS([TAGNAME])
  8195. +# ----------------------------
  8196. +# See if the linker supports building shared libraries.
  8197. +m4_defun([_LT_LINKER_SHLIBS],
  8198. +[AC_REQUIRE([LT_PATH_LD])dnl
  8199. +AC_REQUIRE([LT_PATH_NM])dnl
  8200. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8201. +m4_require([_LT_DECL_EGREP])dnl
  8202. +m4_require([_LT_DECL_SED])dnl
  8203. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  8204. +m4_require([_LT_TAG_COMPILER])dnl
  8205. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8206. +m4_if([$1], [CXX], [
  8207. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8208. + case $host_os in
  8209. + aix[[4-9]]*)
  8210. + # If we're using GNU nm, then we don't want the "-C" option.
  8211. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8212. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8213. + _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'
  8214. + else
  8215. + _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'
  8216. + fi
  8217. + ;;
  8218. + pw32*)
  8219. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  8220. + ;;
  8221. + cygwin* | mingw* | cegcc*)
  8222. + _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'
  8223. + ;;
  8224. + linux* | k*bsd*-gnu)
  8225. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8226. + ;;
  8227. + *)
  8228. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8229. + ;;
  8230. + esac
  8231. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8232. +], [
  8233. + runpath_var=
  8234. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8235. + _LT_TAGVAR(always_export_symbols, $1)=no
  8236. + _LT_TAGVAR(archive_cmds, $1)=
  8237. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  8238. + _LT_TAGVAR(compiler_needs_object, $1)=no
  8239. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8240. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8241. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8242. + _LT_TAGVAR(hardcode_automatic, $1)=no
  8243. + _LT_TAGVAR(hardcode_direct, $1)=no
  8244. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8245. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8246. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8247. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8248. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  8249. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8250. + _LT_TAGVAR(inherit_rpath, $1)=no
  8251. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8252. + _LT_TAGVAR(module_cmds, $1)=
  8253. + _LT_TAGVAR(module_expsym_cmds, $1)=
  8254. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  8255. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  8256. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  8257. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8258. + # include_expsyms should be a list of space-separated symbols to be *always*
  8259. + # included in the symbol list
  8260. + _LT_TAGVAR(include_expsyms, $1)=
  8261. + # exclude_expsyms can be an extended regexp of symbols to exclude
  8262. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8263. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8264. + # as well as any symbol that contains `d'.
  8265. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8266. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8267. + # platforms (ab)use it in PIC code, but their linkers get confused if
  8268. + # the symbol is explicitly referenced. Since portable code cannot
  8269. + # rely on this symbol name, it's probably fine to never include it in
  8270. + # preloaded symbol tables.
  8271. + # Exclude shared library initialization/finalization symbols.
  8272. +dnl Note also adjust exclude_expsyms for C++ above.
  8273. + extract_expsyms_cmds=
  8274. +
  8275. + case $host_os in
  8276. + cygwin* | mingw* | pw32* | cegcc*)
  8277. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8278. + # When not using gcc, we currently assume that we are using
  8279. + # Microsoft Visual C++.
  8280. + if test "$GCC" != yes; then
  8281. + with_gnu_ld=no
  8282. + fi
  8283. + ;;
  8284. + interix*)
  8285. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  8286. + with_gnu_ld=yes
  8287. + ;;
  8288. + openbsd*)
  8289. + with_gnu_ld=no
  8290. + ;;
  8291. + linux* | k*bsd*-gnu)
  8292. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8293. + ;;
  8294. + esac
  8295. +
  8296. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8297. + if test "$with_gnu_ld" = yes; then
  8298. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8299. + wlarc='${wl}'
  8300. +
  8301. + # Set some defaults for GNU ld with shared library support. These
  8302. + # are reset later if shared libraries are not supported. Putting them
  8303. + # here allows them to be overridden if necessary.
  8304. + runpath_var=LD_RUN_PATH
  8305. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8306. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8307. + # ancient GNU ld didn't support --whole-archive et. al.
  8308. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8309. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8310. + else
  8311. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8312. + fi
  8313. + supports_anon_versioning=no
  8314. + case `$LD -v 2>&1` in
  8315. + *GNU\ gold*) supports_anon_versioning=yes ;;
  8316. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  8317. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8318. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8319. + *\ 2.11.*) ;; # other 2.11 versions
  8320. + *) supports_anon_versioning=yes ;;
  8321. + esac
  8322. +
  8323. + # See if GNU ld supports shared libraries.
  8324. + case $host_os in
  8325. + aix[[3-9]]*)
  8326. + # On AIX/PPC, the GNU linker is very broken
  8327. + if test "$host_cpu" != ia64; then
  8328. + _LT_TAGVAR(ld_shlibs, $1)=no
  8329. + cat <<_LT_EOF 1>&2
  8330. +
  8331. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8332. +*** to be unable to reliably create shared libraries on AIX.
  8333. +*** Therefore, libtool is disabling shared libraries support. If you
  8334. +*** really care for shared libraries, you may want to modify your PATH
  8335. +*** so that a non-GNU linker is found, and then restart.
  8336. +
  8337. +_LT_EOF
  8338. + fi
  8339. + ;;
  8340. +
  8341. + amigaos*)
  8342. + case $host_cpu in
  8343. + powerpc)
  8344. + # see comment about AmigaOS4 .so support
  8345. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8346. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8347. + ;;
  8348. + m68k)
  8349. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8350. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8351. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8352. ;;
  8353. esac
  8354. ;;
  8355. - osf3* | osf4* | osf5*)
  8356. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8357. - # All OSF/1 code is PIC.
  8358. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8359. - ;;
  8360. + beos*)
  8361. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8362. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8363. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8364. + # support --undefined. This deserves some investigation. FIXME
  8365. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8366. + else
  8367. + _LT_TAGVAR(ld_shlibs, $1)=no
  8368. + fi
  8369. + ;;
  8370. +
  8371. + cygwin* | mingw* | pw32* | cegcc*)
  8372. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8373. + # as there is no search path for DLLs.
  8374. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8375. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8376. + _LT_TAGVAR(always_export_symbols, $1)=no
  8377. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8378. + _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'
  8379. +
  8380. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8381. + _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'
  8382. + # If the export-symbols file already is a .def file (1st line
  8383. + # is EXPORTS), use it as is; otherwise, prepend...
  8384. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8385. + cp $export_symbols $output_objdir/$soname.def;
  8386. + else
  8387. + echo EXPORTS > $output_objdir/$soname.def;
  8388. + cat $export_symbols >> $output_objdir/$soname.def;
  8389. + fi~
  8390. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8391. + else
  8392. + _LT_TAGVAR(ld_shlibs, $1)=no
  8393. + fi
  8394. + ;;
  8395. +
  8396. + interix[[3-9]]*)
  8397. + _LT_TAGVAR(hardcode_direct, $1)=no
  8398. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8399. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8400. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8401. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8402. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8403. + # default) and relocated if they conflict, which is a slow very memory
  8404. + # consuming and fragmenting process. To avoid this, we pick a random,
  8405. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8406. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8407. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8408. + _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'
  8409. + ;;
  8410. +
  8411. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8412. + tmp_diet=no
  8413. + if test "$host_os" = linux-dietlibc; then
  8414. + case $cc_basename in
  8415. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8416. + esac
  8417. + fi
  8418. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8419. + && test "$tmp_diet" = no
  8420. + then
  8421. + tmp_addflag=
  8422. + tmp_sharedflag='-shared'
  8423. + case $cc_basename,$host_cpu in
  8424. + pgcc*) # Portland Group C compiler
  8425. + _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'
  8426. + tmp_addflag=' $pic_flag'
  8427. + ;;
  8428. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8429. + _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'
  8430. + tmp_addflag=' $pic_flag -Mnomain' ;;
  8431. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8432. + tmp_addflag=' -i_dynamic' ;;
  8433. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8434. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  8435. + ifc* | ifort*) # Intel Fortran compiler
  8436. + tmp_addflag=' -nofor_main' ;;
  8437. + lf95*) # Lahey Fortran 8.1
  8438. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8439. + tmp_sharedflag='--shared' ;;
  8440. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8441. + tmp_sharedflag='-qmkshrobj'
  8442. + tmp_addflag= ;;
  8443. + esac
  8444. + case `$CC -V 2>&1 | sed 5q` in
  8445. + *Sun\ C*) # Sun C 5.9
  8446. + _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'
  8447. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8448. + tmp_sharedflag='-G' ;;
  8449. + *Sun\ F*) # Sun Fortran 8.3
  8450. + tmp_sharedflag='-G' ;;
  8451. + esac
  8452. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8453. +
  8454. + if test "x$supports_anon_versioning" = xyes; then
  8455. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8456. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8457. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8458. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8459. + fi
  8460. +
  8461. + case $cc_basename in
  8462. + xlf*)
  8463. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8464. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8465. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8466. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8467. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8468. + if test "x$supports_anon_versioning" = xyes; then
  8469. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8470. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8471. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8472. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8473. + fi
  8474. + ;;
  8475. + esac
  8476. + else
  8477. + _LT_TAGVAR(ld_shlibs, $1)=no
  8478. + fi
  8479. + ;;
  8480. +
  8481. + netbsd* | netbsdelf*-gnu)
  8482. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8483. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8484. + wlarc=
  8485. + else
  8486. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8487. + _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'
  8488. + fi
  8489. + ;;
  8490. +
  8491. + solaris*)
  8492. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8493. + _LT_TAGVAR(ld_shlibs, $1)=no
  8494. + cat <<_LT_EOF 1>&2
  8495. +
  8496. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8497. +*** create shared libraries on Solaris systems. Therefore, libtool
  8498. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8499. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8500. +*** your PATH or compiler configuration so that the native linker is
  8501. +*** used, and then restart.
  8502. +
  8503. +_LT_EOF
  8504. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8505. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8506. + _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'
  8507. + else
  8508. + _LT_TAGVAR(ld_shlibs, $1)=no
  8509. + fi
  8510. + ;;
  8511. +
  8512. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8513. + case `$LD -v 2>&1` in
  8514. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8515. + _LT_TAGVAR(ld_shlibs, $1)=no
  8516. + cat <<_LT_EOF 1>&2
  8517. +
  8518. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8519. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8520. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8521. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8522. +*** your PATH or compiler configuration so that the native linker is
  8523. +*** used, and then restart.
  8524. +
  8525. +_LT_EOF
  8526. + ;;
  8527. + *)
  8528. + # For security reasons, it is highly recommended that you always
  8529. + # use absolute paths for naming shared libraries, and exclude the
  8530. + # DT_RUNPATH tag from executables and libraries. But doing so
  8531. + # requires that you compile everything twice, which is a pain.
  8532. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8533. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8534. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8535. + _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'
  8536. + else
  8537. + _LT_TAGVAR(ld_shlibs, $1)=no
  8538. + fi
  8539. + ;;
  8540. + esac
  8541. + ;;
  8542. +
  8543. + sunos4*)
  8544. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8545. + wlarc=
  8546. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8547. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8548. + ;;
  8549. +
  8550. + *)
  8551. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8552. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8553. + _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'
  8554. + else
  8555. + _LT_TAGVAR(ld_shlibs, $1)=no
  8556. + fi
  8557. + ;;
  8558. + esac
  8559. +
  8560. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8561. + runpath_var=
  8562. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8563. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8564. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8565. + fi
  8566. + else
  8567. + # PORTME fill in a description of your system's linker (not GNU ld)
  8568. + case $host_os in
  8569. + aix3*)
  8570. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8571. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8572. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8573. + # Note: this linker hardcodes the directories in LIBPATH if there
  8574. + # are no directories specified by -L.
  8575. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8576. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8577. + # Neither direct hardcoding nor static linking is supported with a
  8578. + # broken collect2.
  8579. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8580. + fi
  8581. + ;;
  8582. +
  8583. + aix[[4-9]]*)
  8584. + if test "$host_cpu" = ia64; then
  8585. + # On IA64, the linker does run time linking by default, so we don't
  8586. + # have to do anything special.
  8587. + aix_use_runtimelinking=no
  8588. + exp_sym_flag='-Bexport'
  8589. + no_entry_flag=""
  8590. + else
  8591. + # If we're using GNU nm, then we don't want the "-C" option.
  8592. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8593. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8594. + _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'
  8595. + else
  8596. + _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'
  8597. + fi
  8598. + aix_use_runtimelinking=no
  8599. +
  8600. + # Test if we are trying to use run time linking or normal
  8601. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8602. + # need to do runtime linking.
  8603. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8604. + for ld_flag in $LDFLAGS; do
  8605. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8606. + aix_use_runtimelinking=yes
  8607. + break
  8608. + fi
  8609. + done
  8610. + ;;
  8611. + esac
  8612. +
  8613. + exp_sym_flag='-bexport'
  8614. + no_entry_flag='-bnoentry'
  8615. + fi
  8616. +
  8617. + # When large executables or shared objects are built, AIX ld can
  8618. + # have problems creating the table of contents. If linking a library
  8619. + # or program results in "error TOC overflow" add -mminimal-toc to
  8620. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8621. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8622. +
  8623. + _LT_TAGVAR(archive_cmds, $1)=''
  8624. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8625. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8626. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8627. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8628. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8629. +
  8630. + if test "$GCC" = yes; then
  8631. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8632. + # We only want to do this on AIX 4.2 and lower, the check
  8633. + # below for broken collect2 doesn't work under 4.3+
  8634. + collect2name=`${CC} -print-prog-name=collect2`
  8635. + if test -f "$collect2name" &&
  8636. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8637. + then
  8638. + # We have reworked collect2
  8639. + :
  8640. + else
  8641. + # We have old collect2
  8642. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8643. + # It fails to find uninstalled libraries when the uninstalled
  8644. + # path is not listed in the libpath. Setting hardcode_minus_L
  8645. + # to unsupported forces relinking
  8646. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8647. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8648. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8649. + fi
  8650. + ;;
  8651. + esac
  8652. + shared_flag='-shared'
  8653. + if test "$aix_use_runtimelinking" = yes; then
  8654. + shared_flag="$shared_flag "'${wl}-G'
  8655. + fi
  8656. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8657. + else
  8658. + # not using gcc
  8659. + if test "$host_cpu" = ia64; then
  8660. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8661. + # chokes on -Wl,-G. The following line is correct:
  8662. + shared_flag='-G'
  8663. + else
  8664. + if test "$aix_use_runtimelinking" = yes; then
  8665. + shared_flag='${wl}-G'
  8666. + else
  8667. + shared_flag='${wl}-bM:SRE'
  8668. + fi
  8669. + fi
  8670. + fi
  8671. +
  8672. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8673. + # It seems that -bexpall does not export symbols beginning with
  8674. + # underscore (_), so it is better to generate a list of symbols to export.
  8675. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8676. + if test "$aix_use_runtimelinking" = yes; then
  8677. + # Warning - without using the other runtime loading flags (-brtl),
  8678. + # -berok will link without error, but may produce a broken library.
  8679. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8680. + # Determine the default libpath from the value encoded in an
  8681. + # empty executable.
  8682. + _LT_SYS_MODULE_PATH_AIX
  8683. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8684. + _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"
  8685. + else
  8686. + if test "$host_cpu" = ia64; then
  8687. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8688. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8689. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8690. + else
  8691. + # Determine the default libpath from the value encoded in an
  8692. + # empty executable.
  8693. + _LT_SYS_MODULE_PATH_AIX
  8694. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8695. + # Warning - without using the other run time loading flags,
  8696. + # -berok will link without error, but may produce a broken library.
  8697. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8698. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8699. + # Exported symbols can be pulled into shared objects from archives
  8700. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8701. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8702. + # This is similar to how AIX traditionally builds its shared libraries.
  8703. + _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'
  8704. + fi
  8705. + fi
  8706. + ;;
  8707. +
  8708. + amigaos*)
  8709. + case $host_cpu in
  8710. + powerpc)
  8711. + # see comment about AmigaOS4 .so support
  8712. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8713. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8714. + ;;
  8715. + m68k)
  8716. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8717. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8718. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8719. + ;;
  8720. + esac
  8721. + ;;
  8722. +
  8723. + bsdi[[45]]*)
  8724. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8725. + ;;
  8726. +
  8727. + cygwin* | mingw* | pw32* | cegcc*)
  8728. + # When not using gcc, we currently assume that we are using
  8729. + # Microsoft Visual C++.
  8730. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8731. + # no search path for DLLs.
  8732. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8733. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8734. + # Tell ltmain to make .lib files, not .a files.
  8735. + libext=lib
  8736. + # Tell ltmain to make .dll files, not .so files.
  8737. + shrext_cmds=".dll"
  8738. + # FIXME: Setting linknames here is a bad hack.
  8739. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8740. + # The linker will automatically build a .lib file if we build a DLL.
  8741. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8742. + # FIXME: Should let the user specify the lib program.
  8743. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8744. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8745. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8746. + ;;
  8747. +
  8748. + darwin* | rhapsody*)
  8749. + _LT_DARWIN_LINKER_FEATURES($1)
  8750. + ;;
  8751. +
  8752. + dgux*)
  8753. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8754. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8755. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8756. + ;;
  8757. +
  8758. + freebsd1*)
  8759. + _LT_TAGVAR(ld_shlibs, $1)=no
  8760. + ;;
  8761. +
  8762. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8763. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8764. + # does not break anything, and helps significantly (at the cost of a little
  8765. + # extra space).
  8766. + freebsd2.2*)
  8767. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8768. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8769. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8770. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8771. + ;;
  8772. +
  8773. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8774. + freebsd2*)
  8775. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8776. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8777. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8778. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8779. + ;;
  8780. +
  8781. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8782. + freebsd* | dragonfly*)
  8783. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8784. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8785. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8786. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8787. + ;;
  8788. +
  8789. + hpux9*)
  8790. + if test "$GCC" = yes; then
  8791. + _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'
  8792. + else
  8793. + _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'
  8794. + fi
  8795. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8796. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8797. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8798. +
  8799. + # hardcode_minus_L: Not really in the search PATH,
  8800. + # but as the default location of the library.
  8801. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8802. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8803. + ;;
  8804. +
  8805. + hpux10*)
  8806. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8807. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8808. + else
  8809. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8810. + fi
  8811. + if test "$with_gnu_ld" = no; then
  8812. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8813. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8814. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8815. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8816. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8817. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8818. + # hardcode_minus_L: Not really in the search PATH,
  8819. + # but as the default location of the library.
  8820. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8821. + fi
  8822. + ;;
  8823. +
  8824. + hpux11*)
  8825. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8826. + case $host_cpu in
  8827. + hppa*64*)
  8828. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8829. + ;;
  8830. + ia64*)
  8831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8832. + ;;
  8833. + *)
  8834. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8835. + ;;
  8836. + esac
  8837. + else
  8838. + case $host_cpu in
  8839. + hppa*64*)
  8840. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8841. + ;;
  8842. + ia64*)
  8843. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8844. + ;;
  8845. + *)
  8846. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8847. + ;;
  8848. + esac
  8849. + fi
  8850. + if test "$with_gnu_ld" = no; then
  8851. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8852. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8853. +
  8854. + case $host_cpu in
  8855. + hppa*64*|ia64*)
  8856. + _LT_TAGVAR(hardcode_direct, $1)=no
  8857. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8858. + ;;
  8859. + *)
  8860. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8861. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8862. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8863. +
  8864. + # hardcode_minus_L: Not really in the search PATH,
  8865. + # but as the default location of the library.
  8866. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8867. + ;;
  8868. + esac
  8869. + fi
  8870. + ;;
  8871. +
  8872. + irix5* | irix6* | nonstopux*)
  8873. + if test "$GCC" = yes; then
  8874. + _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'
  8875. + # Try to use the -exported_symbol ld option, if it does not
  8876. + # work, assume that -exports_file does not work either and
  8877. + # implicitly export all symbols.
  8878. + save_LDFLAGS="$LDFLAGS"
  8879. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8880. + AC_LINK_IFELSE(int foo(void) {},
  8881. + _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'
  8882. + )
  8883. + LDFLAGS="$save_LDFLAGS"
  8884. + else
  8885. + _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'
  8886. + _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'
  8887. + fi
  8888. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8889. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8890. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8891. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8892. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8893. + ;;
  8894. +
  8895. + netbsd* | netbsdelf*-gnu)
  8896. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8897. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8898. + else
  8899. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8900. + fi
  8901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8902. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8903. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8904. + ;;
  8905. +
  8906. + newsos6)
  8907. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8908. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8909. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8910. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8911. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8912. + ;;
  8913. +
  8914. + *nto* | *qnx*)
  8915. + ;;
  8916. +
  8917. + openbsd*)
  8918. + if test -f /usr/libexec/ld.so; then
  8919. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8920. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8921. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8922. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8923. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8924. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8925. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8926. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8927. + else
  8928. + case $host_os in
  8929. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8930. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8931. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8932. + ;;
  8933. + *)
  8934. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8935. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8936. + ;;
  8937. + esac
  8938. + fi
  8939. + else
  8940. + _LT_TAGVAR(ld_shlibs, $1)=no
  8941. + fi
  8942. + ;;
  8943. +
  8944. + os2*)
  8945. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8946. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8947. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8948. + _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'
  8949. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8950. + ;;
  8951. +
  8952. + osf3*)
  8953. + if test "$GCC" = yes; then
  8954. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8955. + _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'
  8956. + else
  8957. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8958. + _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'
  8959. + fi
  8960. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8962. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8963. + ;;
  8964. +
  8965. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8966. + if test "$GCC" = yes; then
  8967. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8968. + _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'
  8969. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8970. + else
  8971. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8972. + _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'
  8973. + _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~
  8974. + $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'
  8975. +
  8976. + # Both c and cxx compiler support -rpath directly
  8977. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8978. + fi
  8979. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8980. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8981. + ;;
  8982. +
  8983. + solaris*)
  8984. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8985. + if test "$GCC" = yes; then
  8986. + wlarc='${wl}'
  8987. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8988. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8989. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8990. + else
  8991. + case `$CC -V 2>&1` in
  8992. + *"Compilers 5.0"*)
  8993. + wlarc=''
  8994. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8995. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8996. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8997. + ;;
  8998. + *)
  8999. + wlarc='${wl}'
  9000. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9001. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9002. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9003. + ;;
  9004. + esac
  9005. + fi
  9006. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9007. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9008. + case $host_os in
  9009. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9010. + *)
  9011. + # The compiler driver will combine and reorder linker options,
  9012. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  9013. + # but is careful enough not to reorder.
  9014. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9015. + if test "$GCC" = yes; then
  9016. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9017. + else
  9018. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9019. + fi
  9020. + ;;
  9021. + esac
  9022. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9023. + ;;
  9024. +
  9025. + sunos4*)
  9026. + if test "x$host_vendor" = xsequent; then
  9027. + # Use $CC to link under sequent, because it throws in some extra .o
  9028. + # files that make .init and .fini sections work.
  9029. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9030. + else
  9031. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9032. + fi
  9033. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9034. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9035. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9036. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9037. + ;;
  9038. +
  9039. + sysv4)
  9040. + case $host_vendor in
  9041. + sni)
  9042. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9043. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  9044. + ;;
  9045. + siemens)
  9046. + ## LD is ld it makes a PLAMLIB
  9047. + ## CC just makes a GrossModule.
  9048. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9049. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  9050. + _LT_TAGVAR(hardcode_direct, $1)=no
  9051. + ;;
  9052. + motorola)
  9053. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9054. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  9055. + ;;
  9056. + esac
  9057. + runpath_var='LD_RUN_PATH'
  9058. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9059. + ;;
  9060. +
  9061. + sysv4.3*)
  9062. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9064. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  9065. + ;;
  9066. +
  9067. + sysv4*MP*)
  9068. + if test -d /usr/nec; then
  9069. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9070. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9071. + runpath_var=LD_RUN_PATH
  9072. + hardcode_runpath_var=yes
  9073. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9074. + fi
  9075. + ;;
  9076. +
  9077. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9078. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9079. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9080. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9081. + runpath_var='LD_RUN_PATH'
  9082. +
  9083. + if test "$GCC" = yes; then
  9084. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9085. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9086. + else
  9087. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9088. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9089. + fi
  9090. + ;;
  9091. +
  9092. + sysv5* | sco3.2v5* | sco5v6*)
  9093. + # Note: We can NOT use -z defs as we might desire, because we do not
  9094. + # link with -lc, and that would cause any symbols used from libc to
  9095. + # always be unresolved, which means just about no library would
  9096. + # ever link correctly. If we're not using GNU ld we use -z text
  9097. + # though, which does catch some bad symbols but isn't as heavy-handed
  9098. + # as -z defs.
  9099. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9100. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9101. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9102. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9103. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9104. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9105. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9106. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9107. + runpath_var='LD_RUN_PATH'
  9108. +
  9109. + if test "$GCC" = yes; then
  9110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9111. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9112. + else
  9113. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9114. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9115. + fi
  9116. + ;;
  9117. +
  9118. + uts4*)
  9119. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9120. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9121. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9122. + ;;
  9123. +
  9124. + *)
  9125. + _LT_TAGVAR(ld_shlibs, $1)=no
  9126. + ;;
  9127. + esac
  9128. +
  9129. + if test x$host_vendor = xsni; then
  9130. + case $host in
  9131. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9132. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  9133. + ;;
  9134. + esac
  9135. + fi
  9136. + fi
  9137. +])
  9138. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9139. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9140. +
  9141. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  9142. +
  9143. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  9144. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  9145. +_LT_DECL([], [extract_expsyms_cmds], [2],
  9146. + [The commands to extract the exported symbol list from a shared archive])
  9147. +
  9148. +#
  9149. +# Do we need to explicitly link libc?
  9150. +#
  9151. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  9152. +x|xyes)
  9153. + # Assume -lc should be added
  9154. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9155. +
  9156. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  9157. + case $_LT_TAGVAR(archive_cmds, $1) in
  9158. + *'~'*)
  9159. + # FIXME: we may have to deal with multi-command sequences.
  9160. + ;;
  9161. + '$CC '*)
  9162. + # Test whether the compiler implicitly links with -lc since on some
  9163. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9164. + # to ld, don't add -lc before -lgcc.
  9165. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  9166. + $RM conftest*
  9167. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9168. +
  9169. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  9170. + soname=conftest
  9171. + lib=conftest
  9172. + libobjs=conftest.$ac_objext
  9173. + deplibs=
  9174. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  9175. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  9176. + compiler_flags=-v
  9177. + linker_flags=-v
  9178. + verstring=
  9179. + output_objdir=.
  9180. + libname=conftest
  9181. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  9182. + _LT_TAGVAR(allow_undefined_flag, $1)=
  9183. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  9184. + then
  9185. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9186. + else
  9187. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9188. + fi
  9189. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9190. + else
  9191. + cat conftest.err 1>&5
  9192. + fi
  9193. + $RM conftest*
  9194. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9195. + ;;
  9196. + esac
  9197. + fi
  9198. + ;;
  9199. +esac
  9200. +
  9201. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9202. + [Whether or not to add -lc for building shared libraries])
  9203. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9204. + [enable_shared_with_static_runtimes], [0],
  9205. + [Whether or not to disallow shared libs when runtime libs are static])
  9206. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9207. + [Compiler flag to allow reflexive dlopens])
  9208. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9209. + [Compiler flag to generate shared objects directly from archives])
  9210. +_LT_TAGDECL([], [compiler_needs_object], [1],
  9211. + [Whether the compiler copes with passing no objects directly])
  9212. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9213. + [Create an old-style archive from a shared archive])
  9214. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9215. + [Create a temporary old-style archive to link instead of a shared archive])
  9216. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9217. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9218. +_LT_TAGDECL([], [module_cmds], [2],
  9219. + [Commands used to build a loadable module if different from building
  9220. + a shared archive.])
  9221. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  9222. +_LT_TAGDECL([], [with_gnu_ld], [1],
  9223. + [Whether we are building with GNU ld or not])
  9224. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  9225. + [Flag that allows shared libraries with undefined symbols to be built])
  9226. +_LT_TAGDECL([], [no_undefined_flag], [1],
  9227. + [Flag that enforces no undefined symbols])
  9228. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9229. + [Flag to hardcode $libdir into a binary during linking.
  9230. + This must work even if $libdir does not exist])
  9231. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9232. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  9233. + during linking. This must work even if $libdir does not exist]])
  9234. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9235. + [Whether we need a single "-rpath" flag with a separated argument])
  9236. +_LT_TAGDECL([], [hardcode_direct], [0],
  9237. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9238. + DIR into the resulting binary])
  9239. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9240. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9241. + DIR into the resulting binary and the resulting library dependency is
  9242. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9243. + library is relocated])
  9244. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  9245. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9246. + into the resulting binary])
  9247. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9248. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9249. + into the resulting binary])
  9250. +_LT_TAGDECL([], [hardcode_automatic], [0],
  9251. + [Set to "yes" if building a shared library automatically hardcodes DIR
  9252. + into the library and all subsequent libraries and executables linked
  9253. + against it])
  9254. +_LT_TAGDECL([], [inherit_rpath], [0],
  9255. + [Set to yes if linker adds runtime paths of dependent libraries
  9256. + to runtime path list])
  9257. +_LT_TAGDECL([], [link_all_deplibs], [0],
  9258. + [Whether libtool must link a program against all its dependency libraries])
  9259. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  9260. + [Fix the shell variable $srcfile for the compiler])
  9261. +_LT_TAGDECL([], [always_export_symbols], [0],
  9262. + [Set to "yes" if exported symbols are required])
  9263. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  9264. + [The commands to list exported symbols])
  9265. +_LT_TAGDECL([], [exclude_expsyms], [1],
  9266. + [Symbols that should not be listed in the preloaded symbols])
  9267. +_LT_TAGDECL([], [include_expsyms], [1],
  9268. + [Symbols that must always be exported])
  9269. +_LT_TAGDECL([], [prelink_cmds], [2],
  9270. + [Commands necessary for linking programs (against libraries) with templates])
  9271. +_LT_TAGDECL([], [file_list_spec], [1],
  9272. + [Specify filename containing input files])
  9273. +dnl FIXME: Not yet implemented
  9274. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9275. +dnl [Compiler flag to generate thread safe objects])
  9276. +])# _LT_LINKER_SHLIBS
  9277. +
  9278. +
  9279. +# _LT_LANG_C_CONFIG([TAG])
  9280. +# ------------------------
  9281. +# Ensure that the configuration variables for a C compiler are suitably
  9282. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9283. +# the compiler configuration to `libtool'.
  9284. +m4_defun([_LT_LANG_C_CONFIG],
  9285. +[m4_require([_LT_DECL_EGREP])dnl
  9286. +lt_save_CC="$CC"
  9287. +AC_LANG_PUSH(C)
  9288. +
  9289. +# Source file extension for C test sources.
  9290. +ac_ext=c
  9291. +
  9292. +# Object file extension for compiled C test sources.
  9293. +objext=o
  9294. +_LT_TAGVAR(objext, $1)=$objext
  9295. +
  9296. +# Code to be used in simple compile tests
  9297. +lt_simple_compile_test_code="int some_variable = 0;"
  9298. +
  9299. +# Code to be used in simple link tests
  9300. +lt_simple_link_test_code='int main(){return(0);}'
  9301. +
  9302. +_LT_TAG_COMPILER
  9303. +# Save the default compiler, since it gets overwritten when the other
  9304. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9305. +compiler_DEFAULT=$CC
  9306. +
  9307. +# save warnings/boilerplate of simple test code
  9308. +_LT_COMPILER_BOILERPLATE
  9309. +_LT_LINKER_BOILERPLATE
  9310. +
  9311. +if test -n "$compiler"; then
  9312. + _LT_COMPILER_NO_RTTI($1)
  9313. + _LT_COMPILER_PIC($1)
  9314. + _LT_COMPILER_C_O($1)
  9315. + _LT_COMPILER_FILE_LOCKS($1)
  9316. + _LT_LINKER_SHLIBS($1)
  9317. + _LT_SYS_DYNAMIC_LINKER($1)
  9318. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9319. + LT_SYS_DLOPEN_SELF
  9320. + _LT_CMD_STRIPLIB
  9321. +
  9322. + # Report which library types will actually be built
  9323. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9324. + AC_MSG_RESULT([$can_build_shared])
  9325. +
  9326. + AC_MSG_CHECKING([whether to build shared libraries])
  9327. + test "$can_build_shared" = "no" && enable_shared=no
  9328. +
  9329. + # On AIX, shared libraries and static libraries use the same namespace, and
  9330. + # are all built from PIC.
  9331. + case $host_os in
  9332. + aix3*)
  9333. + test "$enable_shared" = yes && enable_static=no
  9334. + if test -n "$RANLIB"; then
  9335. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9336. + postinstall_cmds='$RANLIB $lib'
  9337. + fi
  9338. + ;;
  9339. +
  9340. + aix[[4-9]]*)
  9341. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9342. + test "$enable_shared" = yes && enable_static=no
  9343. + fi
  9344. + ;;
  9345. + esac
  9346. + AC_MSG_RESULT([$enable_shared])
  9347. +
  9348. + AC_MSG_CHECKING([whether to build static libraries])
  9349. + # Make sure either enable_shared or enable_static is yes.
  9350. + test "$enable_shared" = yes || enable_static=yes
  9351. + AC_MSG_RESULT([$enable_static])
  9352. +
  9353. + _LT_CONFIG($1)
  9354. +fi
  9355. +AC_LANG_POP
  9356. +CC="$lt_save_CC"
  9357. +])# _LT_LANG_C_CONFIG
  9358. +
  9359. +
  9360. +# _LT_PROG_CXX
  9361. +# ------------
  9362. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9363. +# compiler, we have our own version here.
  9364. +m4_defun([_LT_PROG_CXX],
  9365. +[
  9366. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9367. +AC_PROG_CXX
  9368. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9369. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9370. + (test "X$CXX" != "Xg++"))) ; then
  9371. + AC_PROG_CXXCPP
  9372. +else
  9373. + _lt_caught_CXX_error=yes
  9374. +fi
  9375. +popdef([AC_MSG_ERROR])
  9376. +])# _LT_PROG_CXX
  9377. +
  9378. +dnl aclocal-1.4 backwards compatibility:
  9379. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9380. +
  9381. +
  9382. +# _LT_LANG_CXX_CONFIG([TAG])
  9383. +# --------------------------
  9384. +# Ensure that the configuration variables for a C++ compiler are suitably
  9385. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9386. +# the compiler configuration to `libtool'.
  9387. +m4_defun([_LT_LANG_CXX_CONFIG],
  9388. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9389. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9390. +m4_require([_LT_DECL_EGREP])dnl
  9391. +
  9392. +AC_LANG_PUSH(C++)
  9393. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9394. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9395. +_LT_TAGVAR(always_export_symbols, $1)=no
  9396. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9397. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9398. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9399. +_LT_TAGVAR(hardcode_direct, $1)=no
  9400. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9401. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9402. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9403. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9404. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9405. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9406. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9407. +_LT_TAGVAR(inherit_rpath, $1)=no
  9408. +_LT_TAGVAR(module_cmds, $1)=
  9409. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9410. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9411. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9412. +_LT_TAGVAR(no_undefined_flag, $1)=
  9413. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9414. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9415. +
  9416. +# Source file extension for C++ test sources.
  9417. +ac_ext=cpp
  9418. +
  9419. +# Object file extension for compiled C++ test sources.
  9420. +objext=o
  9421. +_LT_TAGVAR(objext, $1)=$objext
  9422. +
  9423. +# No sense in running all these tests if we already determined that
  9424. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9425. +# are currently assumed to apply to all compilers on this platform,
  9426. +# and will be corrupted by setting them based on a non-working compiler.
  9427. +if test "$_lt_caught_CXX_error" != yes; then
  9428. + # Code to be used in simple compile tests
  9429. + lt_simple_compile_test_code="int some_variable = 0;"
  9430. +
  9431. + # Code to be used in simple link tests
  9432. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9433. +
  9434. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9435. + _LT_TAG_COMPILER
  9436. +
  9437. + # save warnings/boilerplate of simple test code
  9438. + _LT_COMPILER_BOILERPLATE
  9439. + _LT_LINKER_BOILERPLATE
  9440. +
  9441. + # Allow CC to be a program name with arguments.
  9442. + lt_save_CC=$CC
  9443. + lt_save_LD=$LD
  9444. + lt_save_GCC=$GCC
  9445. + GCC=$GXX
  9446. + lt_save_with_gnu_ld=$with_gnu_ld
  9447. + lt_save_path_LD=$lt_cv_path_LD
  9448. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9449. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9450. + else
  9451. + $as_unset lt_cv_prog_gnu_ld
  9452. + fi
  9453. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9454. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9455. + else
  9456. + $as_unset lt_cv_path_LD
  9457. + fi
  9458. + test -z "${LDCXX+set}" || LD=$LDCXX
  9459. + CC=${CXX-"c++"}
  9460. + compiler=$CC
  9461. + _LT_TAGVAR(compiler, $1)=$CC
  9462. + _LT_CC_BASENAME([$compiler])
  9463. +
  9464. + if test -n "$compiler"; then
  9465. + # We don't want -fno-exception when compiling C++ code, so set the
  9466. + # no_builtin_flag separately
  9467. + if test "$GXX" = yes; then
  9468. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9469. + else
  9470. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9471. + fi
  9472. +
  9473. + if test "$GXX" = yes; then
  9474. + # Set up default GNU C++ configuration
  9475. +
  9476. + LT_PATH_LD
  9477. +
  9478. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9479. + # archiving commands below assume that GNU ld is being used.
  9480. + if test "$with_gnu_ld" = yes; then
  9481. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9482. + _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'
  9483. +
  9484. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9485. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9486. +
  9487. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9488. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9489. + # investigate it a little bit more. (MM)
  9490. + wlarc='${wl}'
  9491. +
  9492. + # ancient GNU ld didn't support --whole-archive et. al.
  9493. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9494. + $GREP 'no-whole-archive' > /dev/null; then
  9495. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9496. + else
  9497. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9498. + fi
  9499. + else
  9500. + with_gnu_ld=no
  9501. + wlarc=
  9502. +
  9503. + # A generic and very simple default shared library creation
  9504. + # command for GNU C++ for the case where it uses the native
  9505. + # linker, instead of GNU ld. If possible, this setting should
  9506. + # overridden to take advantage of the native linker features on
  9507. + # the platform it is being used on.
  9508. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9509. + fi
  9510. +
  9511. + # Commands to make compiler produce verbose output that lists
  9512. + # what "hidden" libraries, object files and flags are used when
  9513. + # linking a shared library.
  9514. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9515. +
  9516. + else
  9517. + GXX=no
  9518. + with_gnu_ld=no
  9519. + wlarc=
  9520. + fi
  9521. +
  9522. + # PORTME: fill in a description of your system's C++ link characteristics
  9523. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9524. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9525. + case $host_os in
  9526. + aix3*)
  9527. + # FIXME: insert proper C++ library support
  9528. + _LT_TAGVAR(ld_shlibs, $1)=no
  9529. + ;;
  9530. + aix[[4-9]]*)
  9531. + if test "$host_cpu" = ia64; then
  9532. + # On IA64, the linker does run time linking by default, so we don't
  9533. + # have to do anything special.
  9534. + aix_use_runtimelinking=no
  9535. + exp_sym_flag='-Bexport'
  9536. + no_entry_flag=""
  9537. + else
  9538. + aix_use_runtimelinking=no
  9539. +
  9540. + # Test if we are trying to use run time linking or normal
  9541. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9542. + # need to do runtime linking.
  9543. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9544. + for ld_flag in $LDFLAGS; do
  9545. + case $ld_flag in
  9546. + *-brtl*)
  9547. + aix_use_runtimelinking=yes
  9548. + break
  9549. + ;;
  9550. + esac
  9551. + done
  9552. + ;;
  9553. + esac
  9554. +
  9555. + exp_sym_flag='-bexport'
  9556. + no_entry_flag='-bnoentry'
  9557. + fi
  9558. +
  9559. + # When large executables or shared objects are built, AIX ld can
  9560. + # have problems creating the table of contents. If linking a library
  9561. + # or program results in "error TOC overflow" add -mminimal-toc to
  9562. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9563. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9564. +
  9565. + _LT_TAGVAR(archive_cmds, $1)=''
  9566. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9567. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9568. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9569. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9570. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9571. +
  9572. + if test "$GXX" = yes; then
  9573. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9574. + # We only want to do this on AIX 4.2 and lower, the check
  9575. + # below for broken collect2 doesn't work under 4.3+
  9576. + collect2name=`${CC} -print-prog-name=collect2`
  9577. + if test -f "$collect2name" &&
  9578. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9579. + then
  9580. + # We have reworked collect2
  9581. + :
  9582. + else
  9583. + # We have old collect2
  9584. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9585. + # It fails to find uninstalled libraries when the uninstalled
  9586. + # path is not listed in the libpath. Setting hardcode_minus_L
  9587. + # to unsupported forces relinking
  9588. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9589. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9590. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9591. + fi
  9592. + esac
  9593. + shared_flag='-shared'
  9594. + if test "$aix_use_runtimelinking" = yes; then
  9595. + shared_flag="$shared_flag "'${wl}-G'
  9596. + fi
  9597. + else
  9598. + # not using gcc
  9599. + if test "$host_cpu" = ia64; then
  9600. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9601. + # chokes on -Wl,-G. The following line is correct:
  9602. + shared_flag='-G'
  9603. + else
  9604. + if test "$aix_use_runtimelinking" = yes; then
  9605. + shared_flag='${wl}-G'
  9606. + else
  9607. + shared_flag='${wl}-bM:SRE'
  9608. + fi
  9609. + fi
  9610. + fi
  9611. +
  9612. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9613. + # It seems that -bexpall does not export symbols beginning with
  9614. + # underscore (_), so it is better to generate a list of symbols to
  9615. + # export.
  9616. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9617. + if test "$aix_use_runtimelinking" = yes; then
  9618. + # Warning - without using the other runtime loading flags (-brtl),
  9619. + # -berok will link without error, but may produce a broken library.
  9620. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9621. + # Determine the default libpath from the value encoded in an empty
  9622. + # executable.
  9623. + _LT_SYS_MODULE_PATH_AIX
  9624. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9625. +
  9626. + _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"
  9627. + else
  9628. + if test "$host_cpu" = ia64; then
  9629. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9630. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9631. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9632. + else
  9633. + # Determine the default libpath from the value encoded in an
  9634. + # empty executable.
  9635. + _LT_SYS_MODULE_PATH_AIX
  9636. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9637. + # Warning - without using the other run time loading flags,
  9638. + # -berok will link without error, but may produce a broken library.
  9639. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9640. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9641. + # Exported symbols can be pulled into shared objects from archives
  9642. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9643. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9644. + # This is similar to how AIX traditionally builds its shared
  9645. + # libraries.
  9646. + _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'
  9647. + fi
  9648. + fi
  9649. + ;;
  9650. +
  9651. + beos*)
  9652. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9653. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9654. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9655. + # support --undefined. This deserves some investigation. FIXME
  9656. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9657. + else
  9658. + _LT_TAGVAR(ld_shlibs, $1)=no
  9659. + fi
  9660. + ;;
  9661. +
  9662. + chorus*)
  9663. + case $cc_basename in
  9664. + *)
  9665. + # FIXME: insert proper C++ library support
  9666. + _LT_TAGVAR(ld_shlibs, $1)=no
  9667. + ;;
  9668. + esac
  9669. + ;;
  9670. +
  9671. + cygwin* | mingw* | pw32* | cegcc*)
  9672. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9673. + # as there is no search path for DLLs.
  9674. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9675. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9676. + _LT_TAGVAR(always_export_symbols, $1)=no
  9677. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9678. +
  9679. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9680. + _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'
  9681. + # If the export-symbols file already is a .def file (1st line
  9682. + # is EXPORTS), use it as is; otherwise, prepend...
  9683. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9684. + cp $export_symbols $output_objdir/$soname.def;
  9685. + else
  9686. + echo EXPORTS > $output_objdir/$soname.def;
  9687. + cat $export_symbols >> $output_objdir/$soname.def;
  9688. + fi~
  9689. + $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'
  9690. + else
  9691. + _LT_TAGVAR(ld_shlibs, $1)=no
  9692. + fi
  9693. + ;;
  9694. + darwin* | rhapsody*)
  9695. + _LT_DARWIN_LINKER_FEATURES($1)
  9696. + ;;
  9697. +
  9698. + dgux*)
  9699. + case $cc_basename in
  9700. + ec++*)
  9701. + # FIXME: insert proper C++ library support
  9702. + _LT_TAGVAR(ld_shlibs, $1)=no
  9703. + ;;
  9704. + ghcx*)
  9705. + # Green Hills C++ Compiler
  9706. + # FIXME: insert proper C++ library support
  9707. + _LT_TAGVAR(ld_shlibs, $1)=no
  9708. + ;;
  9709. + *)
  9710. + # FIXME: insert proper C++ library support
  9711. + _LT_TAGVAR(ld_shlibs, $1)=no
  9712. + ;;
  9713. + esac
  9714. + ;;
  9715. +
  9716. + freebsd[[12]]*)
  9717. + # C++ shared libraries reported to be fairly broken before
  9718. + # switch to ELF
  9719. + _LT_TAGVAR(ld_shlibs, $1)=no
  9720. + ;;
  9721. +
  9722. + freebsd-elf*)
  9723. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9724. + ;;
  9725. +
  9726. + freebsd* | dragonfly*)
  9727. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9728. + # conventions
  9729. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9730. + ;;
  9731. +
  9732. + gnu*)
  9733. + ;;
  9734. +
  9735. + hpux9*)
  9736. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9737. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9738. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9739. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9740. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9741. + # but as the default
  9742. + # location of the library.
  9743. +
  9744. + case $cc_basename in
  9745. + CC*)
  9746. + # FIXME: insert proper C++ library support
  9747. + _LT_TAGVAR(ld_shlibs, $1)=no
  9748. + ;;
  9749. + aCC*)
  9750. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9751. + # Commands to make compiler produce verbose output that lists
  9752. + # what "hidden" libraries, object files and flags are used when
  9753. + # linking a shared library.
  9754. + #
  9755. + # There doesn't appear to be a way to prevent this compiler from
  9756. + # explicitly linking system object files so we need to strip them
  9757. + # from the output so that they don't get included in the library
  9758. + # dependencies.
  9759. + 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'
  9760. + ;;
  9761. + *)
  9762. + if test "$GXX" = yes; then
  9763. + _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'
  9764. + else
  9765. + # FIXME: insert proper C++ library support
  9766. + _LT_TAGVAR(ld_shlibs, $1)=no
  9767. + fi
  9768. + ;;
  9769. + esac
  9770. + ;;
  9771. +
  9772. + hpux10*|hpux11*)
  9773. + if test $with_gnu_ld = no; then
  9774. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9775. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9776. +
  9777. + case $host_cpu in
  9778. + hppa*64*|ia64*)
  9779. + ;;
  9780. + *)
  9781. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9782. + ;;
  9783. + esac
  9784. + fi
  9785. + case $host_cpu in
  9786. + hppa*64*|ia64*)
  9787. + _LT_TAGVAR(hardcode_direct, $1)=no
  9788. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9789. + ;;
  9790. + *)
  9791. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9792. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9793. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9794. + # but as the default
  9795. + # location of the library.
  9796. + ;;
  9797. + esac
  9798. +
  9799. + case $cc_basename in
  9800. + CC*)
  9801. + # FIXME: insert proper C++ library support
  9802. + _LT_TAGVAR(ld_shlibs, $1)=no
  9803. + ;;
  9804. + aCC*)
  9805. + case $host_cpu in
  9806. + hppa*64*)
  9807. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9808. + ;;
  9809. + ia64*)
  9810. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9811. + ;;
  9812. + *)
  9813. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9814. + ;;
  9815. + esac
  9816. + # Commands to make compiler produce verbose output that lists
  9817. + # what "hidden" libraries, object files and flags are used when
  9818. + # linking a shared library.
  9819. + #
  9820. + # There doesn't appear to be a way to prevent this compiler from
  9821. + # explicitly linking system object files so we need to strip them
  9822. + # from the output so that they don't get included in the library
  9823. + # dependencies.
  9824. + 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'
  9825. + ;;
  9826. + *)
  9827. + if test "$GXX" = yes; then
  9828. + if test $with_gnu_ld = no; then
  9829. + case $host_cpu in
  9830. + hppa*64*)
  9831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9832. + ;;
  9833. + ia64*)
  9834. + _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'
  9835. + ;;
  9836. + *)
  9837. + _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'
  9838. + ;;
  9839. + esac
  9840. + fi
  9841. + else
  9842. + # FIXME: insert proper C++ library support
  9843. + _LT_TAGVAR(ld_shlibs, $1)=no
  9844. + fi
  9845. + ;;
  9846. + esac
  9847. + ;;
  9848. +
  9849. + interix[[3-9]]*)
  9850. + _LT_TAGVAR(hardcode_direct, $1)=no
  9851. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9853. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9854. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9855. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9856. + # default) and relocated if they conflict, which is a slow very memory
  9857. + # consuming and fragmenting process. To avoid this, we pick a random,
  9858. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9859. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9860. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9861. + _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'
  9862. + ;;
  9863. + irix5* | irix6*)
  9864. + case $cc_basename in
  9865. + CC*)
  9866. + # SGI C++
  9867. + _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'
  9868. +
  9869. + # Archives containing C++ object files must be created using
  9870. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9871. + # necessary to make sure instantiated templates are included
  9872. + # in the archive.
  9873. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9874. + ;;
  9875. + *)
  9876. + if test "$GXX" = yes; then
  9877. + if test "$with_gnu_ld" = no; then
  9878. + _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'
  9879. + else
  9880. + _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'
  9881. + fi
  9882. + fi
  9883. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9884. + ;;
  9885. + esac
  9886. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9887. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9888. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9889. + ;;
  9890. +
  9891. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9892. + case $cc_basename in
  9893. + KCC*)
  9894. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9895. +
  9896. + # KCC will only create a shared library if the output file
  9897. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9898. + # to its proper name (with version) after linking.
  9899. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9900. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9901. + # Commands to make compiler produce verbose output that lists
  9902. + # what "hidden" libraries, object files and flags are used when
  9903. + # linking a shared library.
  9904. + #
  9905. + # There doesn't appear to be a way to prevent this compiler from
  9906. + # explicitly linking system object files so we need to strip them
  9907. + # from the output so that they don't get included in the library
  9908. + # dependencies.
  9909. + 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'
  9910. +
  9911. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9912. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9913. +
  9914. + # Archives containing C++ object files must be created using
  9915. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9916. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9917. + ;;
  9918. + icpc* | ecpc* )
  9919. + # Intel C++
  9920. + with_gnu_ld=yes
  9921. + # version 8.0 and above of icpc choke on multiply defined symbols
  9922. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9923. + # earlier do not add the objects themselves.
  9924. + case `$CC -V 2>&1` in
  9925. + *"Version 7."*)
  9926. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9927. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9928. + ;;
  9929. + *) # Version 8.0 or newer
  9930. + tmp_idyn=
  9931. + case $host_cpu in
  9932. + ia64*) tmp_idyn=' -i_dynamic';;
  9933. + esac
  9934. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9935. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9936. + ;;
  9937. + esac
  9938. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9939. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9940. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9941. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9942. + ;;
  9943. + pgCC* | pgcpp*)
  9944. + # Portland Group C++ compiler
  9945. + case `$CC -V` in
  9946. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9947. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9948. + rm -rf $tpldir~
  9949. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9950. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9951. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9952. + rm -rf $tpldir~
  9953. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9954. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9955. + $RANLIB $oldlib'
  9956. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9957. + rm -rf $tpldir~
  9958. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9959. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9960. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9961. + rm -rf $tpldir~
  9962. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9963. + $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'
  9964. + ;;
  9965. + *) # Version 6 will use weak symbols
  9966. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9967. + _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'
  9968. + ;;
  9969. + esac
  9970. +
  9971. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9972. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9973. + _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'
  9974. + ;;
  9975. + cxx*)
  9976. + # Compaq C++
  9977. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9978. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9979. +
  9980. + runpath_var=LD_RUN_PATH
  9981. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9982. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9983. +
  9984. + # Commands to make compiler produce verbose output that lists
  9985. + # what "hidden" libraries, object files and flags are used when
  9986. + # linking a shared library.
  9987. + #
  9988. + # There doesn't appear to be a way to prevent this compiler from
  9989. + # explicitly linking system object files so we need to strip them
  9990. + # from the output so that they don't get included in the library
  9991. + # dependencies.
  9992. + 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'
  9993. + ;;
  9994. + xl*)
  9995. + # IBM XL 8.0 on PPC, with GNU ld
  9996. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9997. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9998. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9999. + if test "x$supports_anon_versioning" = xyes; then
  10000. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  10001. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10002. + echo "local: *; };" >> $output_objdir/$libname.ver~
  10003. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10004. + fi
  10005. + ;;
  10006. + *)
  10007. + case `$CC -V 2>&1 | sed 5q` in
  10008. + *Sun\ C*)
  10009. + # Sun C++ 5.9
  10010. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10011. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10012. + _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'
  10013. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10014. + _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'
  10015. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  10016. +
  10017. + # Not sure whether something based on
  10018. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10019. + # would be better.
  10020. + output_verbose_link_cmd='echo'
  10021. +
  10022. + # Archives containing C++ object files must be created using
  10023. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10024. + # necessary to make sure instantiated templates are included
  10025. + # in the archive.
  10026. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10027. + ;;
  10028. + esac
  10029. + ;;
  10030. + esac
  10031. + ;;
  10032. +
  10033. + lynxos*)
  10034. + # FIXME: insert proper C++ library support
  10035. + _LT_TAGVAR(ld_shlibs, $1)=no
  10036. + ;;
  10037. +
  10038. + m88k*)
  10039. + # FIXME: insert proper C++ library support
  10040. + _LT_TAGVAR(ld_shlibs, $1)=no
  10041. + ;;
  10042. +
  10043. + mvs*)
  10044. + case $cc_basename in
  10045. + cxx*)
  10046. + # FIXME: insert proper C++ library support
  10047. + _LT_TAGVAR(ld_shlibs, $1)=no
  10048. + ;;
  10049. + *)
  10050. + # FIXME: insert proper C++ library support
  10051. + _LT_TAGVAR(ld_shlibs, $1)=no
  10052. + ;;
  10053. + esac
  10054. + ;;
  10055. +
  10056. + netbsd*)
  10057. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10058. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10059. + wlarc=
  10060. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10061. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10062. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10063. + fi
  10064. + # Workaround some broken pre-1.5 toolchains
  10065. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10066. + ;;
  10067. +
  10068. + *nto* | *qnx*)
  10069. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10070. + ;;
  10071. +
  10072. + openbsd2*)
  10073. + # C++ shared libraries are fairly broken
  10074. + _LT_TAGVAR(ld_shlibs, $1)=no
  10075. + ;;
  10076. +
  10077. + openbsd*)
  10078. + if test -f /usr/libexec/ld.so; then
  10079. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10080. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10081. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10082. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10083. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10084. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10085. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10086. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10087. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10088. + fi
  10089. + output_verbose_link_cmd=echo
  10090. + else
  10091. + _LT_TAGVAR(ld_shlibs, $1)=no
  10092. + fi
  10093. + ;;
  10094. +
  10095. + osf3* | osf4* | osf5*)
  10096. + case $cc_basename in
  10097. + KCC*)
  10098. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10099. +
  10100. + # KCC will only create a shared library if the output file
  10101. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10102. + # to its proper name (with version) after linking.
  10103. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10104. +
  10105. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10106. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10107. +
  10108. + # Archives containing C++ object files must be created using
  10109. + # the KAI C++ compiler.
  10110. + case $host in
  10111. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10112. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10113. + esac
  10114. + ;;
  10115. + RCC*)
  10116. + # Rational C++ 2.4.1
  10117. + # FIXME: insert proper C++ library support
  10118. + _LT_TAGVAR(ld_shlibs, $1)=no
  10119. + ;;
  10120. + cxx*)
  10121. + case $host in
  10122. + osf3*)
  10123. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10124. + _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'
  10125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10126. + ;;
  10127. + *)
  10128. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10129. + _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'
  10130. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10131. + echo "-hidden">> $lib.exp~
  10132. + $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~
  10133. + $RM $lib.exp'
  10134. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10135. + ;;
  10136. + esac
  10137. +
  10138. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10139. +
  10140. + # Commands to make compiler produce verbose output that lists
  10141. + # what "hidden" libraries, object files and flags are used when
  10142. + # linking a shared library.
  10143. + #
  10144. + # There doesn't appear to be a way to prevent this compiler from
  10145. + # explicitly linking system object files so we need to strip them
  10146. + # from the output so that they don't get included in the library
  10147. + # dependencies.
  10148. + 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'
  10149. + ;;
  10150. + *)
  10151. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10152. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10153. + case $host in
  10154. + osf3*)
  10155. + _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'
  10156. + ;;
  10157. + *)
  10158. + _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'
  10159. + ;;
  10160. + esac
  10161. +
  10162. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10163. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10164. +
  10165. + # Commands to make compiler produce verbose output that lists
  10166. + # what "hidden" libraries, object files and flags are used when
  10167. + # linking a shared library.
  10168. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10169. +
  10170. + else
  10171. + # FIXME: insert proper C++ library support
  10172. + _LT_TAGVAR(ld_shlibs, $1)=no
  10173. + fi
  10174. + ;;
  10175. + esac
  10176. + ;;
  10177. +
  10178. + psos*)
  10179. + # FIXME: insert proper C++ library support
  10180. + _LT_TAGVAR(ld_shlibs, $1)=no
  10181. + ;;
  10182. +
  10183. + sunos4*)
  10184. + case $cc_basename in
  10185. + CC*)
  10186. + # Sun C++ 4.x
  10187. + # FIXME: insert proper C++ library support
  10188. + _LT_TAGVAR(ld_shlibs, $1)=no
  10189. + ;;
  10190. + lcc*)
  10191. + # Lucid
  10192. + # FIXME: insert proper C++ library support
  10193. + _LT_TAGVAR(ld_shlibs, $1)=no
  10194. + ;;
  10195. + *)
  10196. + # FIXME: insert proper C++ library support
  10197. + _LT_TAGVAR(ld_shlibs, $1)=no
  10198. + ;;
  10199. + esac
  10200. + ;;
  10201. +
  10202. + solaris*)
  10203. + case $cc_basename in
  10204. + CC*)
  10205. + # Sun C++ 4.2, 5.x and Centerline C++
  10206. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10207. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10208. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10209. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10210. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10211. +
  10212. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10213. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10214. + case $host_os in
  10215. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10216. + *)
  10217. + # The compiler driver will combine and reorder linker options,
  10218. + # but understands `-z linker_flag'.
  10219. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10220. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10221. + ;;
  10222. + esac
  10223. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10224. +
  10225. + output_verbose_link_cmd='echo'
  10226. +
  10227. + # Archives containing C++ object files must be created using
  10228. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10229. + # necessary to make sure instantiated templates are included
  10230. + # in the archive.
  10231. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10232. + ;;
  10233. + gcx*)
  10234. + # Green Hills C++ Compiler
  10235. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10236. +
  10237. + # The C++ compiler must be used to create the archive.
  10238. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10239. + ;;
  10240. + *)
  10241. + # GNU C++ compiler with Solaris linker
  10242. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10243. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10244. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10245. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10246. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10247. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10248. +
  10249. + # Commands to make compiler produce verbose output that lists
  10250. + # what "hidden" libraries, object files and flags are used when
  10251. + # linking a shared library.
  10252. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10253. + else
  10254. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10255. + # platform.
  10256. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10257. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10258. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10259. +
  10260. + # Commands to make compiler produce verbose output that lists
  10261. + # what "hidden" libraries, object files and flags are used when
  10262. + # linking a shared library.
  10263. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10264. + fi
  10265. +
  10266. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10267. + case $host_os in
  10268. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10269. + *)
  10270. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10271. + ;;
  10272. + esac
  10273. + fi
  10274. + ;;
  10275. + esac
  10276. + ;;
  10277. +
  10278. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10279. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10280. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10281. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10282. + runpath_var='LD_RUN_PATH'
  10283. +
  10284. + case $cc_basename in
  10285. + CC*)
  10286. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10287. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10288. + ;;
  10289. + *)
  10290. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10291. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10292. + ;;
  10293. + esac
  10294. + ;;
  10295. +
  10296. + sysv5* | sco3.2v5* | sco5v6*)
  10297. + # Note: We can NOT use -z defs as we might desire, because we do not
  10298. + # link with -lc, and that would cause any symbols used from libc to
  10299. + # always be unresolved, which means just about no library would
  10300. + # ever link correctly. If we're not using GNU ld we use -z text
  10301. + # though, which does catch some bad symbols but isn't as heavy-handed
  10302. + # as -z defs.
  10303. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10304. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10305. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10306. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10307. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10308. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10309. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10310. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10311. + runpath_var='LD_RUN_PATH'
  10312. +
  10313. + case $cc_basename in
  10314. + CC*)
  10315. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10316. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10317. + ;;
  10318. + *)
  10319. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10320. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10321. + ;;
  10322. + esac
  10323. + ;;
  10324. +
  10325. + tandem*)
  10326. + case $cc_basename in
  10327. + NCC*)
  10328. + # NonStop-UX NCC 3.20
  10329. + # FIXME: insert proper C++ library support
  10330. + _LT_TAGVAR(ld_shlibs, $1)=no
  10331. + ;;
  10332. + *)
  10333. + # FIXME: insert proper C++ library support
  10334. + _LT_TAGVAR(ld_shlibs, $1)=no
  10335. + ;;
  10336. + esac
  10337. + ;;
  10338. +
  10339. + vxworks*)
  10340. + # FIXME: insert proper C++ library support
  10341. + _LT_TAGVAR(ld_shlibs, $1)=no
  10342. + ;;
  10343. +
  10344. + *)
  10345. + # FIXME: insert proper C++ library support
  10346. + _LT_TAGVAR(ld_shlibs, $1)=no
  10347. + ;;
  10348. + esac
  10349. +
  10350. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10351. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10352. +
  10353. + _LT_TAGVAR(GCC, $1)="$GXX"
  10354. + _LT_TAGVAR(LD, $1)="$LD"
  10355. +
  10356. + ## CAVEAT EMPTOR:
  10357. + ## There is no encapsulation within the following macros, do not change
  10358. + ## the running order or otherwise move them around unless you know exactly
  10359. + ## what you are doing...
  10360. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10361. + _LT_COMPILER_PIC($1)
  10362. + _LT_COMPILER_C_O($1)
  10363. + _LT_COMPILER_FILE_LOCKS($1)
  10364. + _LT_LINKER_SHLIBS($1)
  10365. + _LT_SYS_DYNAMIC_LINKER($1)
  10366. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10367. +
  10368. + _LT_CONFIG($1)
  10369. + fi # test -n "$compiler"
  10370. +
  10371. + CC=$lt_save_CC
  10372. + LDCXX=$LD
  10373. + LD=$lt_save_LD
  10374. + GCC=$lt_save_GCC
  10375. + with_gnu_ld=$lt_save_with_gnu_ld
  10376. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10377. + lt_cv_path_LD=$lt_save_path_LD
  10378. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10379. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10380. +fi # test "$_lt_caught_CXX_error" != yes
  10381. +
  10382. +AC_LANG_POP
  10383. +])# _LT_LANG_CXX_CONFIG
  10384. +
  10385. +
  10386. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10387. +# ---------------------------------
  10388. +# Figure out "hidden" library dependencies from verbose
  10389. +# compiler output when linking a shared library.
  10390. +# Parse the compiler output and extract the necessary
  10391. +# objects, libraries and library flags.
  10392. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10393. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10394. +# Dependencies to place before and after the object being linked:
  10395. +_LT_TAGVAR(predep_objects, $1)=
  10396. +_LT_TAGVAR(postdep_objects, $1)=
  10397. +_LT_TAGVAR(predeps, $1)=
  10398. +_LT_TAGVAR(postdeps, $1)=
  10399. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10400. +
  10401. +dnl we can't use the lt_simple_compile_test_code here,
  10402. +dnl because it contains code intended for an executable,
  10403. +dnl not a library. It's possible we should let each
  10404. +dnl tag define a new lt_????_link_test_code variable,
  10405. +dnl but it's only used here...
  10406. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10407. +int a;
  10408. +void foo (void) { a = 0; }
  10409. +_LT_EOF
  10410. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10411. +class Foo
  10412. +{
  10413. +public:
  10414. + Foo (void) { a = 0; }
  10415. +private:
  10416. + int a;
  10417. +};
  10418. +_LT_EOF
  10419. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10420. + subroutine foo
  10421. + implicit none
  10422. + integer*4 a
  10423. + a=0
  10424. + return
  10425. + end
  10426. +_LT_EOF
  10427. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10428. + subroutine foo
  10429. + implicit none
  10430. + integer a
  10431. + a=0
  10432. + return
  10433. + end
  10434. +_LT_EOF
  10435. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10436. +public class foo {
  10437. + private int a;
  10438. + public void bar (void) {
  10439. + a = 0;
  10440. + }
  10441. +};
  10442. +_LT_EOF
  10443. +])
  10444. +dnl Parse the compiler output and extract the necessary
  10445. +dnl objects, libraries and library flags.
  10446. +if AC_TRY_EVAL(ac_compile); then
  10447. + # Parse the compiler output and extract the necessary
  10448. + # objects, libraries and library flags.
  10449. +
  10450. + # Sentinel used to keep track of whether or not we are before
  10451. + # the conftest object file.
  10452. + pre_test_object_deps_done=no
  10453. +
  10454. + for p in `eval "$output_verbose_link_cmd"`; do
  10455. + case $p in
  10456. +
  10457. + -L* | -R* | -l*)
  10458. + # Some compilers place space between "-{L,R}" and the path.
  10459. + # Remove the space.
  10460. + if test $p = "-L" ||
  10461. + test $p = "-R"; then
  10462. + prev=$p
  10463. + continue
  10464. + else
  10465. + prev=
  10466. + fi
  10467. +
  10468. + if test "$pre_test_object_deps_done" = no; then
  10469. + case $p in
  10470. + -L* | -R*)
  10471. + # Internal compiler library paths should come after those
  10472. + # provided the user. The postdeps already come after the
  10473. + # user supplied libs so there is no need to process them.
  10474. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10475. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10476. + else
  10477. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10478. + fi
  10479. + ;;
  10480. + # The "-l" case would never come before the object being
  10481. + # linked, so don't bother handling this case.
  10482. + esac
  10483. + else
  10484. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10485. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10486. + else
  10487. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10488. + fi
  10489. + fi
  10490. + ;;
  10491. +
  10492. + *.$objext)
  10493. + # This assumes that the test object file only shows up
  10494. + # once in the compiler output.
  10495. + if test "$p" = "conftest.$objext"; then
  10496. + pre_test_object_deps_done=yes
  10497. + continue
  10498. + fi
  10499. +
  10500. + if test "$pre_test_object_deps_done" = no; then
  10501. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10502. + _LT_TAGVAR(predep_objects, $1)="$p"
  10503. + else
  10504. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10505. + fi
  10506. + else
  10507. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10508. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10509. + else
  10510. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10511. + fi
  10512. + fi
  10513. + ;;
  10514. +
  10515. + *) ;; # Ignore the rest.
  10516. +
  10517. + esac
  10518. + done
  10519. +
  10520. + # Clean up.
  10521. + rm -f a.out a.exe
  10522. +else
  10523. + echo "libtool.m4: error: problem compiling $1 test program"
  10524. +fi
  10525. +
  10526. +$RM -f confest.$objext
  10527. +
  10528. +# PORTME: override above test on systems where it is broken
  10529. +m4_if([$1], [CXX],
  10530. +[case $host_os in
  10531. +interix[[3-9]]*)
  10532. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10533. + # hack all around it, let's just trust "g++" to DTRT.
  10534. + _LT_TAGVAR(predep_objects,$1)=
  10535. + _LT_TAGVAR(postdep_objects,$1)=
  10536. + _LT_TAGVAR(postdeps,$1)=
  10537. + ;;
  10538. +
  10539. +linux*)
  10540. + case `$CC -V 2>&1 | sed 5q` in
  10541. + *Sun\ C*)
  10542. + # Sun C++ 5.9
  10543. +
  10544. + # The more standards-conforming stlport4 library is
  10545. + # incompatible with the Cstd library. Avoid specifying
  10546. + # it if it's in CXXFLAGS. Ignore libCrun as
  10547. + # -library=stlport4 depends on it.
  10548. + case " $CXX $CXXFLAGS " in
  10549. + *" -library=stlport4 "*)
  10550. + solaris_use_stlport4=yes
  10551. + ;;
  10552. + esac
  10553. +
  10554. + if test "$solaris_use_stlport4" != yes; then
  10555. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10556. + fi
  10557. + ;;
  10558. + esac
  10559. + ;;
  10560. +
  10561. +solaris*)
  10562. + case $cc_basename in
  10563. + CC*)
  10564. + # The more standards-conforming stlport4 library is
  10565. + # incompatible with the Cstd library. Avoid specifying
  10566. + # it if it's in CXXFLAGS. Ignore libCrun as
  10567. + # -library=stlport4 depends on it.
  10568. + case " $CXX $CXXFLAGS " in
  10569. + *" -library=stlport4 "*)
  10570. + solaris_use_stlport4=yes
  10571. + ;;
  10572. + esac
  10573. +
  10574. + # Adding this requires a known-good setup of shared libraries for
  10575. + # Sun compiler versions before 5.6, else PIC objects from an old
  10576. + # archive will be linked into the output, leading to subtle bugs.
  10577. + if test "$solaris_use_stlport4" != yes; then
  10578. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10579. + fi
  10580. + ;;
  10581. + esac
  10582. + ;;
  10583. +esac
  10584. +])
  10585. +
  10586. +case " $_LT_TAGVAR(postdeps, $1) " in
  10587. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10588. +esac
  10589. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10590. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10591. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10592. +fi
  10593. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10594. + [The directories searched by this compiler when creating a shared library])
  10595. +_LT_TAGDECL([], [predep_objects], [1],
  10596. + [Dependencies to place before and after the objects being linked to
  10597. + create a shared library])
  10598. +_LT_TAGDECL([], [postdep_objects], [1])
  10599. +_LT_TAGDECL([], [predeps], [1])
  10600. +_LT_TAGDECL([], [postdeps], [1])
  10601. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10602. + [The library search path used internally by the compiler when linking
  10603. + a shared library])
  10604. +])# _LT_SYS_HIDDEN_LIBDEPS
  10605. +
  10606. +
  10607. +# _LT_PROG_F77
  10608. +# ------------
  10609. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10610. +# if there is no fortran compiler, we have our own version here.
  10611. +m4_defun([_LT_PROG_F77],
  10612. +[
  10613. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10614. +AC_PROG_F77
  10615. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10616. + _lt_disable_F77=yes
  10617. +fi
  10618. +popdef([AC_MSG_ERROR])
  10619. +])# _LT_PROG_F77
  10620. +
  10621. +dnl aclocal-1.4 backwards compatibility:
  10622. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10623. +
  10624. +
  10625. +# _LT_LANG_F77_CONFIG([TAG])
  10626. +# --------------------------
  10627. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10628. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10629. +# to write the compiler configuration to `libtool'.
  10630. +m4_defun([_LT_LANG_F77_CONFIG],
  10631. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10632. +AC_LANG_PUSH(Fortran 77)
  10633. +
  10634. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10635. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10636. +_LT_TAGVAR(always_export_symbols, $1)=no
  10637. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10638. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10639. +_LT_TAGVAR(hardcode_direct, $1)=no
  10640. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10641. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10642. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10643. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10644. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10645. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10646. +_LT_TAGVAR(inherit_rpath, $1)=no
  10647. +_LT_TAGVAR(module_cmds, $1)=
  10648. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10649. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10650. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10651. +_LT_TAGVAR(no_undefined_flag, $1)=
  10652. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10653. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10654. +
  10655. +# Source file extension for f77 test sources.
  10656. +ac_ext=f
  10657. +
  10658. +# Object file extension for compiled f77 test sources.
  10659. +objext=o
  10660. +_LT_TAGVAR(objext, $1)=$objext
  10661. +
  10662. +# No sense in running all these tests if we already determined that
  10663. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10664. +# are currently assumed to apply to all compilers on this platform,
  10665. +# and will be corrupted by setting them based on a non-working compiler.
  10666. +if test "$_lt_disable_F77" != yes; then
  10667. + # Code to be used in simple compile tests
  10668. + lt_simple_compile_test_code="\
  10669. + subroutine t
  10670. + return
  10671. + end
  10672. +"
  10673. +
  10674. + # Code to be used in simple link tests
  10675. + lt_simple_link_test_code="\
  10676. + program t
  10677. + end
  10678. +"
  10679. +
  10680. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10681. + _LT_TAG_COMPILER
  10682. +
  10683. + # save warnings/boilerplate of simple test code
  10684. + _LT_COMPILER_BOILERPLATE
  10685. + _LT_LINKER_BOILERPLATE
  10686. +
  10687. + # Allow CC to be a program name with arguments.
  10688. + lt_save_CC="$CC"
  10689. + lt_save_GCC=$GCC
  10690. + CC=${F77-"f77"}
  10691. + compiler=$CC
  10692. + _LT_TAGVAR(compiler, $1)=$CC
  10693. + _LT_CC_BASENAME([$compiler])
  10694. + GCC=$G77
  10695. + if test -n "$compiler"; then
  10696. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10697. + AC_MSG_RESULT([$can_build_shared])
  10698. +
  10699. + AC_MSG_CHECKING([whether to build shared libraries])
  10700. + test "$can_build_shared" = "no" && enable_shared=no
  10701. +
  10702. + # On AIX, shared libraries and static libraries use the same namespace, and
  10703. + # are all built from PIC.
  10704. + case $host_os in
  10705. + aix3*)
  10706. + test "$enable_shared" = yes && enable_static=no
  10707. + if test -n "$RANLIB"; then
  10708. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10709. + postinstall_cmds='$RANLIB $lib'
  10710. + fi
  10711. + ;;
  10712. + aix[[4-9]]*)
  10713. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10714. + test "$enable_shared" = yes && enable_static=no
  10715. + fi
  10716. + ;;
  10717. + esac
  10718. + AC_MSG_RESULT([$enable_shared])
  10719. +
  10720. + AC_MSG_CHECKING([whether to build static libraries])
  10721. + # Make sure either enable_shared or enable_static is yes.
  10722. + test "$enable_shared" = yes || enable_static=yes
  10723. + AC_MSG_RESULT([$enable_static])
  10724. +
  10725. + _LT_TAGVAR(GCC, $1)="$G77"
  10726. + _LT_TAGVAR(LD, $1)="$LD"
  10727. +
  10728. + ## CAVEAT EMPTOR:
  10729. + ## There is no encapsulation within the following macros, do not change
  10730. + ## the running order or otherwise move them around unless you know exactly
  10731. + ## what you are doing...
  10732. + _LT_COMPILER_PIC($1)
  10733. + _LT_COMPILER_C_O($1)
  10734. + _LT_COMPILER_FILE_LOCKS($1)
  10735. + _LT_LINKER_SHLIBS($1)
  10736. + _LT_SYS_DYNAMIC_LINKER($1)
  10737. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10738. +
  10739. + _LT_CONFIG($1)
  10740. + fi # test -n "$compiler"
  10741. +
  10742. + GCC=$lt_save_GCC
  10743. + CC="$lt_save_CC"
  10744. +fi # test "$_lt_disable_F77" != yes
  10745. +
  10746. +AC_LANG_POP
  10747. +])# _LT_LANG_F77_CONFIG
  10748. +
  10749. +
  10750. +# _LT_PROG_FC
  10751. +# -----------
  10752. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10753. +# if there is no fortran compiler, we have our own version here.
  10754. +m4_defun([_LT_PROG_FC],
  10755. +[
  10756. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10757. +AC_PROG_FC
  10758. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10759. + _lt_disable_FC=yes
  10760. +fi
  10761. +popdef([AC_MSG_ERROR])
  10762. +])# _LT_PROG_FC
  10763. +
  10764. +dnl aclocal-1.4 backwards compatibility:
  10765. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10766. +
  10767. +
  10768. +# _LT_LANG_FC_CONFIG([TAG])
  10769. +# -------------------------
  10770. +# Ensure that the configuration variables for a Fortran compiler are
  10771. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10772. +# to write the compiler configuration to `libtool'.
  10773. +m4_defun([_LT_LANG_FC_CONFIG],
  10774. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10775. +AC_LANG_PUSH(Fortran)
  10776. +
  10777. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10778. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10779. +_LT_TAGVAR(always_export_symbols, $1)=no
  10780. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10781. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10782. +_LT_TAGVAR(hardcode_direct, $1)=no
  10783. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10784. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10785. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10786. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10787. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10788. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10789. +_LT_TAGVAR(inherit_rpath, $1)=no
  10790. +_LT_TAGVAR(module_cmds, $1)=
  10791. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10792. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10793. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10794. +_LT_TAGVAR(no_undefined_flag, $1)=
  10795. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10796. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10797. +
  10798. +# Source file extension for fc test sources.
  10799. +ac_ext=${ac_fc_srcext-f}
  10800. +
  10801. +# Object file extension for compiled fc test sources.
  10802. +objext=o
  10803. +_LT_TAGVAR(objext, $1)=$objext
  10804. +
  10805. +# No sense in running all these tests if we already determined that
  10806. +# the FC compiler isn't working. Some variables (like enable_shared)
  10807. +# are currently assumed to apply to all compilers on this platform,
  10808. +# and will be corrupted by setting them based on a non-working compiler.
  10809. +if test "$_lt_disable_FC" != yes; then
  10810. + # Code to be used in simple compile tests
  10811. + lt_simple_compile_test_code="\
  10812. + subroutine t
  10813. + return
  10814. + end
  10815. +"
  10816. +
  10817. + # Code to be used in simple link tests
  10818. + lt_simple_link_test_code="\
  10819. + program t
  10820. + end
  10821. +"
  10822. +
  10823. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10824. + _LT_TAG_COMPILER
  10825. +
  10826. + # save warnings/boilerplate of simple test code
  10827. + _LT_COMPILER_BOILERPLATE
  10828. + _LT_LINKER_BOILERPLATE
  10829. +
  10830. + # Allow CC to be a program name with arguments.
  10831. + lt_save_CC="$CC"
  10832. + lt_save_GCC=$GCC
  10833. + CC=${FC-"f95"}
  10834. + compiler=$CC
  10835. + GCC=$ac_cv_fc_compiler_gnu
  10836. +
  10837. + _LT_TAGVAR(compiler, $1)=$CC
  10838. + _LT_CC_BASENAME([$compiler])
  10839. +
  10840. + if test -n "$compiler"; then
  10841. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10842. + AC_MSG_RESULT([$can_build_shared])
  10843. +
  10844. + AC_MSG_CHECKING([whether to build shared libraries])
  10845. + test "$can_build_shared" = "no" && enable_shared=no
  10846. +
  10847. + # On AIX, shared libraries and static libraries use the same namespace, and
  10848. + # are all built from PIC.
  10849. + case $host_os in
  10850. + aix3*)
  10851. + test "$enable_shared" = yes && enable_static=no
  10852. + if test -n "$RANLIB"; then
  10853. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10854. + postinstall_cmds='$RANLIB $lib'
  10855. + fi
  10856. + ;;
  10857. + aix[[4-9]]*)
  10858. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10859. + test "$enable_shared" = yes && enable_static=no
  10860. + fi
  10861. + ;;
  10862. + esac
  10863. + AC_MSG_RESULT([$enable_shared])
  10864. +
  10865. + AC_MSG_CHECKING([whether to build static libraries])
  10866. + # Make sure either enable_shared or enable_static is yes.
  10867. + test "$enable_shared" = yes || enable_static=yes
  10868. + AC_MSG_RESULT([$enable_static])
  10869. +
  10870. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10871. + _LT_TAGVAR(LD, $1)="$LD"
  10872. +
  10873. + ## CAVEAT EMPTOR:
  10874. + ## There is no encapsulation within the following macros, do not change
  10875. + ## the running order or otherwise move them around unless you know exactly
  10876. + ## what you are doing...
  10877. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10878. + _LT_COMPILER_PIC($1)
  10879. + _LT_COMPILER_C_O($1)
  10880. + _LT_COMPILER_FILE_LOCKS($1)
  10881. + _LT_LINKER_SHLIBS($1)
  10882. + _LT_SYS_DYNAMIC_LINKER($1)
  10883. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10884. +
  10885. + _LT_CONFIG($1)
  10886. + fi # test -n "$compiler"
  10887. +
  10888. + GCC=$lt_save_GCC
  10889. + CC="$lt_save_CC"
  10890. +fi # test "$_lt_disable_FC" != yes
  10891. +
  10892. +AC_LANG_POP
  10893. +])# _LT_LANG_FC_CONFIG
  10894. +
  10895. +
  10896. +# _LT_LANG_GCJ_CONFIG([TAG])
  10897. +# --------------------------
  10898. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10899. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10900. +# to write the compiler configuration to `libtool'.
  10901. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10902. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10903. +AC_LANG_SAVE
  10904. +
  10905. +# Source file extension for Java test sources.
  10906. +ac_ext=java
  10907. +
  10908. +# Object file extension for compiled Java test sources.
  10909. +objext=o
  10910. +_LT_TAGVAR(objext, $1)=$objext
  10911. +
  10912. +# Code to be used in simple compile tests
  10913. +lt_simple_compile_test_code="class foo {}"
  10914. +
  10915. +# Code to be used in simple link tests
  10916. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10917. +
  10918. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10919. +_LT_TAG_COMPILER
  10920. +
  10921. +# save warnings/boilerplate of simple test code
  10922. +_LT_COMPILER_BOILERPLATE
  10923. +_LT_LINKER_BOILERPLATE
  10924. +
  10925. +# Allow CC to be a program name with arguments.
  10926. +lt_save_CC="$CC"
  10927. +lt_save_GCC=$GCC
  10928. +GCC=yes
  10929. +CC=${GCJ-"gcj"}
  10930. +compiler=$CC
  10931. +_LT_TAGVAR(compiler, $1)=$CC
  10932. +_LT_TAGVAR(LD, $1)="$LD"
  10933. +_LT_CC_BASENAME([$compiler])
  10934. +
  10935. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10936. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10937. +
  10938. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10939. +
  10940. +if test -n "$compiler"; then
  10941. + _LT_COMPILER_NO_RTTI($1)
  10942. + _LT_COMPILER_PIC($1)
  10943. + _LT_COMPILER_C_O($1)
  10944. + _LT_COMPILER_FILE_LOCKS($1)
  10945. + _LT_LINKER_SHLIBS($1)
  10946. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10947. +
  10948. + _LT_CONFIG($1)
  10949. +fi
  10950. +
  10951. +AC_LANG_RESTORE
  10952. +
  10953. +GCC=$lt_save_GCC
  10954. +CC="$lt_save_CC"
  10955. +])# _LT_LANG_GCJ_CONFIG
  10956. +
  10957. +
  10958. +# _LT_LANG_RC_CONFIG([TAG])
  10959. +# -------------------------
  10960. +# Ensure that the configuration variables for the Windows resource compiler
  10961. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10962. +# to write the compiler configuration to `libtool'.
  10963. +m4_defun([_LT_LANG_RC_CONFIG],
  10964. +[AC_REQUIRE([LT_PROG_RC])dnl
  10965. +AC_LANG_SAVE
  10966. +
  10967. +# Source file extension for RC test sources.
  10968. +ac_ext=rc
  10969. +
  10970. +# Object file extension for compiled RC test sources.
  10971. +objext=o
  10972. +_LT_TAGVAR(objext, $1)=$objext
  10973. +
  10974. +# Code to be used in simple compile tests
  10975. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10976. +
  10977. +# Code to be used in simple link tests
  10978. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  10979. +
  10980. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10981. +_LT_TAG_COMPILER
  10982. +
  10983. +# save warnings/boilerplate of simple test code
  10984. +_LT_COMPILER_BOILERPLATE
  10985. +_LT_LINKER_BOILERPLATE
  10986. +
  10987. +# Allow CC to be a program name with arguments.
  10988. +lt_save_CC="$CC"
  10989. +lt_save_GCC=$GCC
  10990. +GCC=
  10991. +CC=${RC-"windres"}
  10992. +compiler=$CC
  10993. +_LT_TAGVAR(compiler, $1)=$CC
  10994. +_LT_CC_BASENAME([$compiler])
  10995. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  10996. +
  10997. +if test -n "$compiler"; then
  10998. + :
  10999. + _LT_CONFIG($1)
  11000. +fi
  11001. +
  11002. +GCC=$lt_save_GCC
  11003. +AC_LANG_RESTORE
  11004. +CC="$lt_save_CC"
  11005. +])# _LT_LANG_RC_CONFIG
  11006. +
  11007. +
  11008. +# LT_PROG_GCJ
  11009. +# -----------
  11010. +AC_DEFUN([LT_PROG_GCJ],
  11011. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11012. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11013. + [AC_CHECK_TOOL(GCJ, gcj,)
  11014. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11015. + AC_SUBST(GCJFLAGS)])])[]dnl
  11016. +])
  11017. +
  11018. +# Old name:
  11019. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11020. +dnl aclocal-1.4 backwards compatibility:
  11021. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11022. +
  11023. +
  11024. +# LT_PROG_RC
  11025. +# ----------
  11026. +AC_DEFUN([LT_PROG_RC],
  11027. +[AC_CHECK_TOOL(RC, windres,)
  11028. +])
  11029. +
  11030. +# Old name:
  11031. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11032. +dnl aclocal-1.4 backwards compatibility:
  11033. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11034. +
  11035. +
  11036. +# _LT_DECL_EGREP
  11037. +# --------------
  11038. +# If we don't have a new enough Autoconf to choose the best grep
  11039. +# available, choose the one first in the user's PATH.
  11040. +m4_defun([_LT_DECL_EGREP],
  11041. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11042. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11043. +test -z "$GREP" && GREP=grep
  11044. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11045. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11046. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11047. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11048. +AC_SUBST([GREP])
  11049. +])
  11050. +
  11051. +
  11052. +# _LT_DECL_OBJDUMP
  11053. +# --------------
  11054. +# If we don't have a new enough Autoconf to choose the best objdump
  11055. +# available, choose the one first in the user's PATH.
  11056. +m4_defun([_LT_DECL_OBJDUMP],
  11057. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11058. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11059. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11060. +AC_SUBST([OBJDUMP])
  11061. +])
  11062. +
  11063. +
  11064. +# _LT_DECL_SED
  11065. +# ------------
  11066. +# Check for a fully-functional sed program, that truncates
  11067. +# as few characters as possible. Prefer GNU sed if found.
  11068. +m4_defun([_LT_DECL_SED],
  11069. +[AC_PROG_SED
  11070. +test -z "$SED" && SED=sed
  11071. +Xsed="$SED -e 1s/^X//"
  11072. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11073. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11074. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11075. +])# _LT_DECL_SED
  11076. +
  11077. +m4_ifndef([AC_PROG_SED], [
  11078. +# NOTE: This macro has been submitted for inclusion into #
  11079. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11080. +# a released version of Autoconf we should remove this #
  11081. +# macro and use it instead. #
  11082. +
  11083. +m4_defun([AC_PROG_SED],
  11084. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11085. +AC_CACHE_VAL(lt_cv_path_SED,
  11086. +[# Loop through the user's path and test for sed and gsed.
  11087. +# Then use that list of sed's as ones to test for truncation.
  11088. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11089. +for as_dir in $PATH
  11090. +do
  11091. + IFS=$as_save_IFS
  11092. + test -z "$as_dir" && as_dir=.
  11093. + for lt_ac_prog in sed gsed; do
  11094. + for ac_exec_ext in '' $ac_executable_extensions; do
  11095. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11096. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11097. + fi
  11098. + done
  11099. + done
  11100. +done
  11101. +IFS=$as_save_IFS
  11102. +lt_ac_max=0
  11103. +lt_ac_count=0
  11104. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11105. +# along with /bin/sed that truncates output.
  11106. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11107. + test ! -f $lt_ac_sed && continue
  11108. + cat /dev/null > conftest.in
  11109. + lt_ac_count=0
  11110. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11111. + # Check for GNU sed and select it if it is found.
  11112. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11113. + lt_cv_path_SED=$lt_ac_sed
  11114. + break
  11115. + fi
  11116. + while true; do
  11117. + cat conftest.in conftest.in >conftest.tmp
  11118. + mv conftest.tmp conftest.in
  11119. + cp conftest.in conftest.nl
  11120. + echo >>conftest.nl
  11121. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11122. + cmp -s conftest.out conftest.nl || break
  11123. + # 10000 chars as input seems more than enough
  11124. + test $lt_ac_count -gt 10 && break
  11125. + lt_ac_count=`expr $lt_ac_count + 1`
  11126. + if test $lt_ac_count -gt $lt_ac_max; then
  11127. + lt_ac_max=$lt_ac_count
  11128. + lt_cv_path_SED=$lt_ac_sed
  11129. + fi
  11130. + done
  11131. +done
  11132. +])
  11133. +SED=$lt_cv_path_SED
  11134. +AC_SUBST([SED])
  11135. +AC_MSG_RESULT([$SED])
  11136. +])#AC_PROG_SED
  11137. +])#m4_ifndef
  11138. +
  11139. +# Old name:
  11140. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11141. +dnl aclocal-1.4 backwards compatibility:
  11142. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11143. +
  11144. +
  11145. +# _LT_CHECK_SHELL_FEATURES
  11146. +# ------------------------
  11147. +# Find out whether the shell is Bourne or XSI compatible,
  11148. +# or has some other useful features.
  11149. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11150. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11151. +# Try some XSI features
  11152. +xsi_shell=no
  11153. +( _lt_dummy="a/b/c"
  11154. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11155. + = c,a/b,, \
  11156. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11157. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11158. + && xsi_shell=yes
  11159. +AC_MSG_RESULT([$xsi_shell])
  11160. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11161. +
  11162. +AC_MSG_CHECKING([whether the shell understands "+="])
  11163. +lt_shell_append=no
  11164. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11165. + >/dev/null 2>&1 \
  11166. + && lt_shell_append=yes
  11167. +AC_MSG_RESULT([$lt_shell_append])
  11168. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11169. +
  11170. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11171. + lt_unset=unset
  11172. +else
  11173. + lt_unset=false
  11174. +fi
  11175. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11176. +
  11177. +# test EBCDIC or ASCII
  11178. +case `echo X|tr X '\101'` in
  11179. + A) # ASCII based system
  11180. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11181. + lt_SP2NL='tr \040 \012'
  11182. + lt_NL2SP='tr \015\012 \040\040'
  11183. + ;;
  11184. + *) # EBCDIC based system
  11185. + lt_SP2NL='tr \100 \n'
  11186. + lt_NL2SP='tr \r\n \100\100'
  11187. + ;;
  11188. +esac
  11189. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11190. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11191. +])# _LT_CHECK_SHELL_FEATURES
  11192. +
  11193. +
  11194. +# _LT_PROG_XSI_SHELLFNS
  11195. +# ---------------------
  11196. +# Bourne and XSI compatible variants of some useful shell functions.
  11197. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11198. +[case $xsi_shell in
  11199. + yes)
  11200. + cat << \_LT_EOF >> "$cfgfile"
  11201. +
  11202. +# func_dirname file append nondir_replacement
  11203. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11204. +# otherwise set result to NONDIR_REPLACEMENT.
  11205. +func_dirname ()
  11206. +{
  11207. + case ${1} in
  11208. + */*) func_dirname_result="${1%/*}${2}" ;;
  11209. + * ) func_dirname_result="${3}" ;;
  11210. + esac
  11211. +}
  11212. +
  11213. +# func_basename file
  11214. +func_basename ()
  11215. +{
  11216. + func_basename_result="${1##*/}"
  11217. +}
  11218. +
  11219. +# func_dirname_and_basename file append nondir_replacement
  11220. +# perform func_basename and func_dirname in a single function
  11221. +# call:
  11222. +# dirname: Compute the dirname of FILE. If nonempty,
  11223. +# add APPEND to the result, otherwise set result
  11224. +# to NONDIR_REPLACEMENT.
  11225. +# value returned in "$func_dirname_result"
  11226. +# basename: Compute filename of FILE.
  11227. +# value retuned in "$func_basename_result"
  11228. +# Implementation must be kept synchronized with func_dirname
  11229. +# and func_basename. For efficiency, we do not delegate to
  11230. +# those functions but instead duplicate the functionality here.
  11231. +func_dirname_and_basename ()
  11232. +{
  11233. + case ${1} in
  11234. + */*) func_dirname_result="${1%/*}${2}" ;;
  11235. + * ) func_dirname_result="${3}" ;;
  11236. + esac
  11237. + func_basename_result="${1##*/}"
  11238. +}
  11239. +
  11240. +# func_stripname prefix suffix name
  11241. +# strip PREFIX and SUFFIX off of NAME.
  11242. +# PREFIX and SUFFIX must not contain globbing or regex special
  11243. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11244. +# dot (in which case that matches only a dot).
  11245. +func_stripname ()
  11246. +{
  11247. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11248. + # positional parameters, so assign one to ordinary parameter first.
  11249. + func_stripname_result=${3}
  11250. + func_stripname_result=${func_stripname_result#"${1}"}
  11251. + func_stripname_result=${func_stripname_result%"${2}"}
  11252. +}
  11253. +
  11254. +# func_opt_split
  11255. +func_opt_split ()
  11256. +{
  11257. + func_opt_split_opt=${1%%=*}
  11258. + func_opt_split_arg=${1#*=}
  11259. +}
  11260. +
  11261. +# func_lo2o object
  11262. +func_lo2o ()
  11263. +{
  11264. + case ${1} in
  11265. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11266. + *) func_lo2o_result=${1} ;;
  11267. + esac
  11268. +}
  11269. +
  11270. +# func_xform libobj-or-source
  11271. +func_xform ()
  11272. +{
  11273. + func_xform_result=${1%.*}.lo
  11274. +}
  11275. +
  11276. +# func_arith arithmetic-term...
  11277. +func_arith ()
  11278. +{
  11279. + func_arith_result=$(( $[*] ))
  11280. +}
  11281. +
  11282. +# func_len string
  11283. +# STRING may not start with a hyphen.
  11284. +func_len ()
  11285. +{
  11286. + func_len_result=${#1}
  11287. +}
  11288. +
  11289. +_LT_EOF
  11290. + ;;
  11291. + *) # Bourne compatible functions.
  11292. + cat << \_LT_EOF >> "$cfgfile"
  11293. +
  11294. +# func_dirname file append nondir_replacement
  11295. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11296. +# otherwise set result to NONDIR_REPLACEMENT.
  11297. +func_dirname ()
  11298. +{
  11299. + # Extract subdirectory from the argument.
  11300. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11301. + if test "X$func_dirname_result" = "X${1}"; then
  11302. + func_dirname_result="${3}"
  11303. + else
  11304. + func_dirname_result="$func_dirname_result${2}"
  11305. + fi
  11306. +}
  11307. +
  11308. +# func_basename file
  11309. +func_basename ()
  11310. +{
  11311. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11312. +}
  11313. - solaris*)
  11314. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11315. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11316. - case $cc_basename in
  11317. - f77* | f90* | f95*)
  11318. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11319. - *)
  11320. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11321. - esac
  11322. - ;;
  11323. +dnl func_dirname_and_basename
  11324. +dnl A portable version of this function is already defined in general.m4sh
  11325. +dnl so there is no need for it here.
  11326. +
  11327. +# func_stripname prefix suffix name
  11328. +# strip PREFIX and SUFFIX off of NAME.
  11329. +# PREFIX and SUFFIX must not contain globbing or regex special
  11330. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11331. +# dot (in which case that matches only a dot).
  11332. +# func_strip_suffix prefix name
  11333. +func_stripname ()
  11334. +{
  11335. + case ${2} in
  11336. + .*) func_stripname_result=`$ECHO "X${3}" \
  11337. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11338. + *) func_stripname_result=`$ECHO "X${3}" \
  11339. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11340. + esac
  11341. +}
  11342. - sunos4*)
  11343. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11344. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11345. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11346. - ;;
  11347. +# sed scripts:
  11348. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11349. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11350. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11351. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11352. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11353. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11354. - ;;
  11355. +# func_opt_split
  11356. +func_opt_split ()
  11357. +{
  11358. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11359. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11360. +}
  11361. - sysv4*MP*)
  11362. - if test -d /usr/nec ;then
  11363. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11364. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11365. - fi
  11366. - ;;
  11367. +# func_lo2o object
  11368. +func_lo2o ()
  11369. +{
  11370. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11371. +}
  11372. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11373. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11374. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11375. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11376. - ;;
  11377. +# func_xform libobj-or-source
  11378. +func_xform ()
  11379. +{
  11380. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11381. +}
  11382. - unicos*)
  11383. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11384. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11385. - ;;
  11386. +# func_arith arithmetic-term...
  11387. +func_arith ()
  11388. +{
  11389. + func_arith_result=`expr "$[@]"`
  11390. +}
  11391. - uts4*)
  11392. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11393. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11394. - ;;
  11395. +# func_len string
  11396. +# STRING may not start with a hyphen.
  11397. +func_len ()
  11398. +{
  11399. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11400. +}
  11401. - *)
  11402. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11403. - ;;
  11404. - esac
  11405. - fi
  11406. -])
  11407. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11408. +_LT_EOF
  11409. +esac
  11410. -#
  11411. -# Check to make sure the PIC flag actually works.
  11412. -#
  11413. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11414. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11415. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11416. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11417. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11418. - "" | " "*) ;;
  11419. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11420. - esac],
  11421. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11422. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11423. -fi
  11424. -case $host_os in
  11425. - # For platforms which do not support PIC, -DPIC is meaningless:
  11426. - *djgpp*)
  11427. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11428. +case $lt_shell_append in
  11429. + yes)
  11430. + cat << \_LT_EOF >> "$cfgfile"
  11431. +
  11432. +# func_append var value
  11433. +# Append VALUE to the end of shell variable VAR.
  11434. +func_append ()
  11435. +{
  11436. + eval "$[1]+=\$[2]"
  11437. +}
  11438. +_LT_EOF
  11439. ;;
  11440. *)
  11441. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11442. - ;;
  11443. -esac
  11444. -
  11445. -#
  11446. -# Check to make sure the static flag actually works.
  11447. -#
  11448. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11449. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11450. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11451. - $lt_tmp_static_flag,
  11452. - [],
  11453. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11454. -])
  11455. + cat << \_LT_EOF >> "$cfgfile"
  11456. +# func_append var value
  11457. +# Append VALUE to the end of shell variable VAR.
  11458. +func_append ()
  11459. +{
  11460. + eval "$[1]=\$$[1]\$[2]"
  11461. +}
  11462. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11463. -# ------------------------------------
  11464. -# See if the linker supports building shared libraries.
  11465. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11466. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11467. -ifelse([$1],[CXX],[
  11468. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11469. - case $host_os in
  11470. - aix4* | aix5*)
  11471. - # If we're using GNU nm, then we don't want the "-C" option.
  11472. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11473. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11474. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11475. - else
  11476. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11477. - fi
  11478. - ;;
  11479. - pw32*)
  11480. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11481. - ;;
  11482. - cygwin* | mingw*)
  11483. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11484. - ;;
  11485. - linux* | k*bsd*-gnu)
  11486. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11487. - ;;
  11488. - *)
  11489. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11490. - ;;
  11491. - esac
  11492. -],[
  11493. - runpath_var=
  11494. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11495. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11496. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11497. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11498. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11499. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11500. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11501. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11502. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11503. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11504. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11505. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11506. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11507. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11508. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11509. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11510. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11511. - _LT_AC_TAGVAR(module_cmds, $1)=
  11512. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11513. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11514. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11515. - # include_expsyms should be a list of space-separated symbols to be *always*
  11516. - # included in the symbol list
  11517. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11518. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11519. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11520. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11521. - # as well as any symbol that contains `d'.
  11522. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11523. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11524. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11525. - # the symbol is explicitly referenced. Since portable code cannot
  11526. - # rely on this symbol name, it's probably fine to never include it in
  11527. - # preloaded symbol tables.
  11528. - extract_expsyms_cmds=
  11529. - # Just being paranoid about ensuring that cc_basename is set.
  11530. - _LT_CC_BASENAME([$compiler])
  11531. - case $host_os in
  11532. - cygwin* | mingw* | pw32*)
  11533. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11534. - # When not using gcc, we currently assume that we are using
  11535. - # Microsoft Visual C++.
  11536. - if test "$GCC" != yes; then
  11537. - with_gnu_ld=no
  11538. - fi
  11539. - ;;
  11540. - interix*)
  11541. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11542. - with_gnu_ld=yes
  11543. - ;;
  11544. - openbsd*)
  11545. - with_gnu_ld=no
  11546. +_LT_EOF
  11547. ;;
  11548. esac
  11549. +])
  11550. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11551. - if test "$with_gnu_ld" = yes; then
  11552. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11553. - wlarc='${wl}'
  11554. -
  11555. - # Set some defaults for GNU ld with shared library support. These
  11556. - # are reset later if shared libraries are not supported. Putting them
  11557. - # here allows them to be overridden if necessary.
  11558. - runpath_var=LD_RUN_PATH
  11559. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11560. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11561. - # ancient GNU ld didn't support --whole-archive et. al.
  11562. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11563. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11564. - else
  11565. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11566. - fi
  11567. - supports_anon_versioning=no
  11568. - case `$LD -v 2>/dev/null` in
  11569. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11570. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11571. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11572. - *\ 2.11.*) ;; # other 2.11 versions
  11573. - *) supports_anon_versioning=yes ;;
  11574. - esac
  11575. -
  11576. - # See if GNU ld supports shared libraries.
  11577. - case $host_os in
  11578. - aix3* | aix4* | aix5*)
  11579. - # On AIX/PPC, the GNU linker is very broken
  11580. - if test "$host_cpu" != ia64; then
  11581. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11582. - cat <<EOF 1>&2
  11583. -
  11584. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11585. -*** to be unable to reliably create shared libraries on AIX.
  11586. -*** Therefore, libtool is disabling shared libraries support. If you
  11587. -*** really care for shared libraries, you may want to modify your PATH
  11588. -*** so that a non-GNU linker is found, and then restart.
  11589. -
  11590. -EOF
  11591. - fi
  11592. - ;;
  11593. -
  11594. - amigaos*)
  11595. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11596. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11597. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11598. -
  11599. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11600. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11601. - # to version 4, is to share data among multiple programs linked
  11602. - # with the same dynamic library. Since this doesn't match the
  11603. - # behavior of shared libraries on other platforms, we can't use
  11604. - # them.
  11605. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11606. - ;;
  11607. +# Helper functions for option handling. -*- Autoconf -*-
  11608. +#
  11609. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11610. +# Written by Gary V. Vaughan, 2004
  11611. +#
  11612. +# This file is free software; the Free Software Foundation gives
  11613. +# unlimited permission to copy and/or distribute it, with or without
  11614. +# modifications, as long as this notice is preserved.
  11615. - beos*)
  11616. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11617. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11618. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11619. - # support --undefined. This deserves some investigation. FIXME
  11620. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11621. - else
  11622. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11623. - fi
  11624. - ;;
  11625. +# serial 6 ltoptions.m4
  11626. - cygwin* | mingw* | pw32*)
  11627. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11628. - # as there is no search path for DLLs.
  11629. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11630. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11631. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11632. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11633. - _LT_AC_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'
  11634. +# This is to help aclocal find these macros, as it can't see m4_define.
  11635. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11636. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11637. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11638. - # If the export-symbols file already is a .def file (1st line
  11639. - # is EXPORTS), use it as is; otherwise, prepend...
  11640. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11641. - cp $export_symbols $output_objdir/$soname.def;
  11642. - else
  11643. - echo EXPORTS > $output_objdir/$soname.def;
  11644. - cat $export_symbols >> $output_objdir/$soname.def;
  11645. - fi~
  11646. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11647. - else
  11648. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11649. - fi
  11650. - ;;
  11651. - interix3*)
  11652. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11653. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11654. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11655. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11656. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11657. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11658. - # default) and relocated if they conflict, which is a slow very memory
  11659. - # consuming and fragmenting process. To avoid this, we pick a random,
  11660. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11661. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11662. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11663. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11664. - ;;
  11665. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11666. +# ------------------------------------------
  11667. +m4_define([_LT_MANGLE_OPTION],
  11668. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11669. - linux* | k*bsd*-gnu)
  11670. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11671. - tmp_addflag=
  11672. - case $cc_basename,$host_cpu in
  11673. - pgcc*) # Portland Group C compiler
  11674. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11675. - tmp_addflag=' $pic_flag'
  11676. - ;;
  11677. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11678. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11679. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11680. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11681. - tmp_addflag=' -i_dynamic' ;;
  11682. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11683. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11684. - ifc* | ifort*) # Intel Fortran compiler
  11685. - tmp_addflag=' -nofor_main' ;;
  11686. - esac
  11687. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11688. - if test $supports_anon_versioning = yes; then
  11689. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11690. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11691. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11692. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11693. - fi
  11694. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11695. - else
  11696. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11697. - fi
  11698. - ;;
  11699. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11700. +# ---------------------------------------
  11701. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11702. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11703. +# saved as a flag.
  11704. +m4_define([_LT_SET_OPTION],
  11705. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11706. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11707. + _LT_MANGLE_DEFUN([$1], [$2]),
  11708. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11709. +])
  11710. - netbsd* | netbsdelf*-gnu)
  11711. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11712. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11713. - wlarc=
  11714. - else
  11715. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11716. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11717. - fi
  11718. - ;;
  11719. - solaris*)
  11720. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11721. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11722. - cat <<EOF 1>&2
  11723. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11724. +# ------------------------------------------------------------
  11725. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11726. +m4_define([_LT_IF_OPTION],
  11727. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11728. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11729. -*** create shared libraries on Solaris systems. Therefore, libtool
  11730. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11731. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11732. -*** your PATH or compiler configuration so that the native linker is
  11733. -*** used, and then restart.
  11734. -EOF
  11735. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11737. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11738. - else
  11739. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11740. - fi
  11741. - ;;
  11742. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11743. +# -------------------------------------------------------
  11744. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11745. +# are set.
  11746. +m4_define([_LT_UNLESS_OPTIONS],
  11747. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11748. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11749. + [m4_define([$0_found])])])[]dnl
  11750. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11751. +])[]dnl
  11752. +])
  11753. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11754. - case `$LD -v 2>&1` in
  11755. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11756. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11757. - cat <<_LT_EOF 1>&2
  11758. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11759. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11760. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11761. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11762. -*** your PATH or compiler configuration so that the native linker is
  11763. -*** used, and then restart.
  11764. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11765. +# ----------------------------------------
  11766. +# OPTION-LIST is a space-separated list of Libtool options associated
  11767. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11768. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11769. +# the unknown option and exit.
  11770. +m4_defun([_LT_SET_OPTIONS],
  11771. +[# Set options
  11772. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11773. + [_LT_SET_OPTION([$1], _LT_Option)])
  11774. +
  11775. +m4_if([$1],[LT_INIT],[
  11776. + dnl
  11777. + dnl Simply set some default values (i.e off) if boolean options were not
  11778. + dnl specified:
  11779. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11780. + ])
  11781. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11782. + ])
  11783. + dnl
  11784. + dnl If no reference was made to various pairs of opposing options, then
  11785. + dnl we run the default mode handler for the pair. For example, if neither
  11786. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11787. + dnl archives by default:
  11788. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11789. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11790. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11791. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11792. + [_LT_ENABLE_FAST_INSTALL])
  11793. + ])
  11794. +])# _LT_SET_OPTIONS
  11795. -_LT_EOF
  11796. - ;;
  11797. - *)
  11798. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11799. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11800. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11801. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11802. - else
  11803. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11804. - fi
  11805. - ;;
  11806. - esac
  11807. - ;;
  11808. - sunos4*)
  11809. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11810. - wlarc=
  11811. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11812. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11813. - ;;
  11814. - *)
  11815. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11816. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11817. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11818. - else
  11819. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11820. - fi
  11821. - ;;
  11822. - esac
  11823. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11824. +# -----------------------------------------
  11825. +m4_define([_LT_MANGLE_DEFUN],
  11826. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11827. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11828. - runpath_var=
  11829. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11830. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11831. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11832. - fi
  11833. - else
  11834. - # PORTME fill in a description of your system's linker (not GNU ld)
  11835. - case $host_os in
  11836. - aix3*)
  11837. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11838. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11839. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11840. - # Note: this linker hardcodes the directories in LIBPATH if there
  11841. - # are no directories specified by -L.
  11842. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11843. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11844. - # Neither direct hardcoding nor static linking is supported with a
  11845. - # broken collect2.
  11846. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11847. - fi
  11848. - ;;
  11849. - aix4* | aix5*)
  11850. - if test "$host_cpu" = ia64; then
  11851. - # On IA64, the linker does run time linking by default, so we don't
  11852. - # have to do anything special.
  11853. - aix_use_runtimelinking=no
  11854. - exp_sym_flag='-Bexport'
  11855. - no_entry_flag=""
  11856. - else
  11857. - # If we're using GNU nm, then we don't want the "-C" option.
  11858. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11859. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11860. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11861. - else
  11862. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11863. - fi
  11864. - aix_use_runtimelinking=no
  11865. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11866. +# -----------------------------------------------
  11867. +m4_define([LT_OPTION_DEFINE],
  11868. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11869. +])# LT_OPTION_DEFINE
  11870. - # Test if we are trying to use run time linking or normal
  11871. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11872. - # need to do runtime linking.
  11873. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11874. - for ld_flag in $LDFLAGS; do
  11875. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11876. - aix_use_runtimelinking=yes
  11877. - break
  11878. - fi
  11879. - done
  11880. - ;;
  11881. - esac
  11882. - exp_sym_flag='-bexport'
  11883. - no_entry_flag='-bnoentry'
  11884. - fi
  11885. +# dlopen
  11886. +# ------
  11887. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  11888. +])
  11889. - # When large executables or shared objects are built, AIX ld can
  11890. - # have problems creating the table of contents. If linking a library
  11891. - # or program results in "error TOC overflow" add -mminimal-toc to
  11892. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11893. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11894. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  11895. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  11896. +AC_DIAGNOSE([obsolete],
  11897. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11898. +put the `dlopen' option into LT_INIT's first parameter.])
  11899. +])
  11900. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11901. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11902. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11903. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11904. +dnl aclocal-1.4 backwards compatibility:
  11905. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  11906. - if test "$GCC" = yes; then
  11907. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  11908. - # We only want to do this on AIX 4.2 and lower, the check
  11909. - # below for broken collect2 doesn't work under 4.3+
  11910. - collect2name=`${CC} -print-prog-name=collect2`
  11911. - if test -f "$collect2name" && \
  11912. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11913. - then
  11914. - # We have reworked collect2
  11915. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11916. - else
  11917. - # We have old collect2
  11918. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11919. - # It fails to find uninstalled libraries when the uninstalled
  11920. - # path is not listed in the libpath. Setting hardcode_minus_L
  11921. - # to unsupported forces relinking
  11922. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11923. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11924. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11925. - fi
  11926. - ;;
  11927. - esac
  11928. - shared_flag='-shared'
  11929. - if test "$aix_use_runtimelinking" = yes; then
  11930. - shared_flag="$shared_flag "'${wl}-G'
  11931. - fi
  11932. - else
  11933. - # not using gcc
  11934. - if test "$host_cpu" = ia64; then
  11935. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11936. - # chokes on -Wl,-G. The following line is correct:
  11937. - shared_flag='-G'
  11938. - else
  11939. - if test "$aix_use_runtimelinking" = yes; then
  11940. - shared_flag='${wl}-G'
  11941. - else
  11942. - shared_flag='${wl}-bM:SRE'
  11943. - fi
  11944. - fi
  11945. - fi
  11946. - # It seems that -bexpall does not export symbols beginning with
  11947. - # underscore (_), so it is better to generate a list of symbols to export.
  11948. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11949. - if test "$aix_use_runtimelinking" = yes; then
  11950. - # Warning - without using the other runtime loading flags (-brtl),
  11951. - # -berok will link without error, but may produce a broken library.
  11952. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11953. - # Determine the default libpath from the value encoded in an empty executable.
  11954. - _LT_AC_SYS_LIBPATH_AIX
  11955. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11956. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11957. - else
  11958. - if test "$host_cpu" = ia64; then
  11959. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11960. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11961. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11962. - else
  11963. - # Determine the default libpath from the value encoded in an empty executable.
  11964. - _LT_AC_SYS_LIBPATH_AIX
  11965. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11966. - # Warning - without using the other run time loading flags,
  11967. - # -berok will link without error, but may produce a broken library.
  11968. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11969. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11970. - # Exported symbols can be pulled into shared objects from archives
  11971. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  11972. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11973. - # This is similar to how AIX traditionally builds its shared libraries.
  11974. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11975. - fi
  11976. - fi
  11977. - ;;
  11978. +# win32-dll
  11979. +# ---------
  11980. +# Declare package support for building win32 dll's.
  11981. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  11982. +[enable_win32_dll=yes
  11983. - amigaos*)
  11984. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11985. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11986. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11987. - # see comment about different semantics on the GNU ld section
  11988. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11989. - ;;
  11990. +case $host in
  11991. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  11992. + AC_CHECK_TOOL(AS, as, false)
  11993. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  11994. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11995. + ;;
  11996. +esac
  11997. - bsdi[[45]]*)
  11998. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11999. - ;;
  12000. +test -z "$AS" && AS=as
  12001. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12002. - cygwin* | mingw* | pw32*)
  12003. - # When not using gcc, we currently assume that we are using
  12004. - # Microsoft Visual C++.
  12005. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12006. - # no search path for DLLs.
  12007. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12008. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12009. - # Tell ltmain to make .lib files, not .a files.
  12010. - libext=lib
  12011. - # Tell ltmain to make .dll files, not .so files.
  12012. - shrext_cmds=".dll"
  12013. - # FIXME: Setting linknames here is a bad hack.
  12014. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12015. - # The linker will automatically build a .lib file if we build a DLL.
  12016. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12017. - # FIXME: Should let the user specify the lib program.
  12018. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12019. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12020. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12021. - ;;
  12022. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12023. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12024. - darwin* | rhapsody*)
  12025. - case $host_os in
  12026. - rhapsody* | darwin1.[[012]])
  12027. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12028. - ;;
  12029. - *) # Darwin 1.3 on
  12030. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12031. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12032. - else
  12033. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12034. - 10.[[012]])
  12035. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12036. - ;;
  12037. - 10.*)
  12038. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12039. - ;;
  12040. - esac
  12041. - fi
  12042. - ;;
  12043. - esac
  12044. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12045. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12046. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12047. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12048. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12049. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12050. - if test "$GCC" = yes ; then
  12051. - output_verbose_link_cmd='echo'
  12052. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12053. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12054. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12055. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12056. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12057. - else
  12058. - case $cc_basename in
  12059. - xlc*)
  12060. - output_verbose_link_cmd='echo'
  12061. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12062. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12063. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12064. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12065. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12066. - ;;
  12067. - *)
  12068. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12069. - ;;
  12070. - esac
  12071. - fi
  12072. - ;;
  12073. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12074. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12075. +])# win32-dll
  12076. - dgux*)
  12077. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12078. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12079. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12080. - ;;
  12081. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12082. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12083. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12084. +AC_DIAGNOSE([obsolete],
  12085. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12086. +put the `win32-dll' option into LT_INIT's first parameter.])
  12087. +])
  12088. - freebsd1*)
  12089. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12090. - ;;
  12091. +dnl aclocal-1.4 backwards compatibility:
  12092. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12093. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12094. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12095. - # does not break anything, and helps significantly (at the cost of a little
  12096. - # extra space).
  12097. - freebsd2.2*)
  12098. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12099. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12100. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12101. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12102. - ;;
  12103. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12104. - freebsd2*)
  12105. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12106. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12107. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12108. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12109. +# _LT_ENABLE_SHARED([DEFAULT])
  12110. +# ----------------------------
  12111. +# implement the --enable-shared flag, and supports the `shared' and
  12112. +# `disable-shared' LT_INIT options.
  12113. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12114. +m4_define([_LT_ENABLE_SHARED],
  12115. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12116. +AC_ARG_ENABLE([shared],
  12117. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12118. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12119. + [p=${PACKAGE-default}
  12120. + case $enableval in
  12121. + yes) enable_shared=yes ;;
  12122. + no) enable_shared=no ;;
  12123. + *)
  12124. + enable_shared=no
  12125. + # Look at the argument we got. We use all the common list separators.
  12126. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12127. + for pkg in $enableval; do
  12128. + IFS="$lt_save_ifs"
  12129. + if test "X$pkg" = "X$p"; then
  12130. + enable_shared=yes
  12131. + fi
  12132. + done
  12133. + IFS="$lt_save_ifs"
  12134. ;;
  12135. + esac],
  12136. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12137. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12138. - freebsd* | dragonfly*)
  12139. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12140. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12141. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12142. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12143. - ;;
  12144. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12145. + [Whether or not to build shared libraries])
  12146. +])# _LT_ENABLE_SHARED
  12147. - hpux9*)
  12148. - if test "$GCC" = yes; then
  12149. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12150. - else
  12151. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12152. - fi
  12153. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12154. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12155. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12156. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12157. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12158. - # hardcode_minus_L: Not really in the search PATH,
  12159. - # but as the default location of the library.
  12160. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12161. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12162. - ;;
  12163. +# Old names:
  12164. +AC_DEFUN([AC_ENABLE_SHARED],
  12165. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12166. +])
  12167. - hpux10*)
  12168. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12169. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12170. - else
  12171. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12172. - fi
  12173. - if test "$with_gnu_ld" = no; then
  12174. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12175. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12176. +AC_DEFUN([AC_DISABLE_SHARED],
  12177. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12178. +])
  12179. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12180. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12181. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12182. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12183. - # hardcode_minus_L: Not really in the search PATH,
  12184. - # but as the default location of the library.
  12185. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12186. - fi
  12187. - ;;
  12188. +dnl aclocal-1.4 backwards compatibility:
  12189. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12190. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12191. - hpux11*)
  12192. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12193. - case $host_cpu in
  12194. - hppa*64*)
  12195. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12196. - ;;
  12197. - ia64*)
  12198. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12199. - ;;
  12200. - *)
  12201. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12202. - ;;
  12203. - esac
  12204. - else
  12205. - case $host_cpu in
  12206. - hppa*64*)
  12207. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12208. - ;;
  12209. - ia64*)
  12210. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12211. - ;;
  12212. - *)
  12213. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12214. - ;;
  12215. - esac
  12216. - fi
  12217. - if test "$with_gnu_ld" = no; then
  12218. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12219. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12220. - case $host_cpu in
  12221. - hppa*64*|ia64*)
  12222. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12223. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12224. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12225. - ;;
  12226. - *)
  12227. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12228. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12229. - # hardcode_minus_L: Not really in the search PATH,
  12230. - # but as the default location of the library.
  12231. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12232. - ;;
  12233. - esac
  12234. - fi
  12235. +# _LT_ENABLE_STATIC([DEFAULT])
  12236. +# ----------------------------
  12237. +# implement the --enable-static flag, and support the `static' and
  12238. +# `disable-static' LT_INIT options.
  12239. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12240. +m4_define([_LT_ENABLE_STATIC],
  12241. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12242. +AC_ARG_ENABLE([static],
  12243. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12244. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12245. + [p=${PACKAGE-default}
  12246. + case $enableval in
  12247. + yes) enable_static=yes ;;
  12248. + no) enable_static=no ;;
  12249. + *)
  12250. + enable_static=no
  12251. + # Look at the argument we got. We use all the common list separators.
  12252. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12253. + for pkg in $enableval; do
  12254. + IFS="$lt_save_ifs"
  12255. + if test "X$pkg" = "X$p"; then
  12256. + enable_static=yes
  12257. + fi
  12258. + done
  12259. + IFS="$lt_save_ifs"
  12260. ;;
  12261. + esac],
  12262. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12263. - irix5* | irix6* | nonstopux*)
  12264. - if test "$GCC" = yes; then
  12265. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12266. - else
  12267. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12268. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12269. - fi
  12270. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12271. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12272. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12273. - ;;
  12274. + _LT_DECL([build_old_libs], [enable_static], [0],
  12275. + [Whether or not to build static libraries])
  12276. +])# _LT_ENABLE_STATIC
  12277. - netbsd* | netbsdelf*-gnu)
  12278. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12279. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12280. - else
  12281. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12282. - fi
  12283. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12284. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12285. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12286. - ;;
  12287. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12288. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12289. - newsos6)
  12290. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12291. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12292. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12293. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12294. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12295. - ;;
  12296. +# Old names:
  12297. +AC_DEFUN([AC_ENABLE_STATIC],
  12298. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12299. +])
  12300. - openbsd*)
  12301. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12302. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12303. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12304. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12305. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12306. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12307. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12308. - else
  12309. - case $host_os in
  12310. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12311. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12312. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12313. - ;;
  12314. - *)
  12315. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12316. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12317. - ;;
  12318. - esac
  12319. - fi
  12320. - ;;
  12321. +AC_DEFUN([AC_DISABLE_STATIC],
  12322. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12323. +])
  12324. - os2*)
  12325. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12326. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12327. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12328. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12329. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12330. - ;;
  12331. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12332. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12333. - osf3*)
  12334. - if test "$GCC" = yes; then
  12335. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12336. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12337. - else
  12338. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12339. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12340. - fi
  12341. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12342. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12343. +dnl aclocal-1.4 backwards compatibility:
  12344. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12345. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12346. +
  12347. +
  12348. +
  12349. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12350. +# ----------------------------------
  12351. +# implement the --enable-fast-install flag, and support the `fast-install'
  12352. +# and `disable-fast-install' LT_INIT options.
  12353. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12354. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12355. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12356. +AC_ARG_ENABLE([fast-install],
  12357. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12358. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12359. + [p=${PACKAGE-default}
  12360. + case $enableval in
  12361. + yes) enable_fast_install=yes ;;
  12362. + no) enable_fast_install=no ;;
  12363. + *)
  12364. + enable_fast_install=no
  12365. + # Look at the argument we got. We use all the common list separators.
  12366. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12367. + for pkg in $enableval; do
  12368. + IFS="$lt_save_ifs"
  12369. + if test "X$pkg" = "X$p"; then
  12370. + enable_fast_install=yes
  12371. + fi
  12372. + done
  12373. + IFS="$lt_save_ifs"
  12374. ;;
  12375. + esac],
  12376. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12377. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12378. - if test "$GCC" = yes; then
  12379. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12380. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12381. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12382. - else
  12383. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12384. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12385. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12386. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12387. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12388. + [Whether or not to optimize for fast installation])dnl
  12389. +])# _LT_ENABLE_FAST_INSTALL
  12390. +
  12391. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12392. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12393. +
  12394. +# Old names:
  12395. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12396. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12397. +AC_DIAGNOSE([obsolete],
  12398. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12399. +the `fast-install' option into LT_INIT's first parameter.])
  12400. +])
  12401. - # Both c and cxx compiler support -rpath directly
  12402. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12403. - fi
  12404. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12405. - ;;
  12406. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12407. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12408. +AC_DIAGNOSE([obsolete],
  12409. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12410. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12411. +])
  12412. - solaris*)
  12413. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12414. - if test "$GCC" = yes; then
  12415. - wlarc='${wl}'
  12416. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12417. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12418. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12419. - else
  12420. - wlarc=''
  12421. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12422. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12423. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12424. - fi
  12425. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12426. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12427. - case $host_os in
  12428. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12429. - *)
  12430. - # The compiler driver will combine linker options so we
  12431. - # cannot just pass the convience library names through
  12432. - # without $wl, iff we do not link with $LD.
  12433. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12434. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12435. - case $wlarc in
  12436. - '')
  12437. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12438. - *)
  12439. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12440. - esac ;;
  12441. - esac
  12442. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12443. - ;;
  12444. +dnl aclocal-1.4 backwards compatibility:
  12445. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12446. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12447. - sunos4*)
  12448. - if test "x$host_vendor" = xsequent; then
  12449. - # Use $CC to link under sequent, because it throws in some extra .o
  12450. - # files that make .init and .fini sections work.
  12451. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12452. - else
  12453. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12454. - fi
  12455. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12456. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12457. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12458. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12459. - ;;
  12460. - sysv4)
  12461. - case $host_vendor in
  12462. - sni)
  12463. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12464. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12465. - ;;
  12466. - siemens)
  12467. - ## LD is ld it makes a PLAMLIB
  12468. - ## CC just makes a GrossModule.
  12469. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12470. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12471. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12472. - ;;
  12473. - motorola)
  12474. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12475. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12476. - ;;
  12477. - esac
  12478. - runpath_var='LD_RUN_PATH'
  12479. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12480. - ;;
  12481. +# _LT_WITH_PIC([MODE])
  12482. +# --------------------
  12483. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12484. +# LT_INIT options.
  12485. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12486. +m4_define([_LT_WITH_PIC],
  12487. +[AC_ARG_WITH([pic],
  12488. + [AS_HELP_STRING([--with-pic],
  12489. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12490. + [pic_mode="$withval"],
  12491. + [pic_mode=default])
  12492. - sysv4.3*)
  12493. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12494. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12495. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12496. - ;;
  12497. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12498. - sysv4*MP*)
  12499. - if test -d /usr/nec; then
  12500. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12501. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12502. - runpath_var=LD_RUN_PATH
  12503. - hardcode_runpath_var=yes
  12504. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12505. - fi
  12506. - ;;
  12507. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12508. +])# _LT_WITH_PIC
  12509. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12510. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12511. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12512. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12513. - runpath_var='LD_RUN_PATH'
  12514. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12515. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12516. - if test "$GCC" = yes; then
  12517. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12518. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12519. - else
  12520. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12521. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12522. - fi
  12523. - ;;
  12524. +# Old name:
  12525. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12526. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12527. +AC_DIAGNOSE([obsolete],
  12528. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12529. +put the `pic-only' option into LT_INIT's first parameter.])
  12530. +])
  12531. - sysv5* | sco3.2v5* | sco5v6*)
  12532. - # Note: We can NOT use -z defs as we might desire, because we do not
  12533. - # link with -lc, and that would cause any symbols used from libc to
  12534. - # always be unresolved, which means just about no library would
  12535. - # ever link correctly. If we're not using GNU ld we use -z text
  12536. - # though, which does catch some bad symbols but isn't as heavy-handed
  12537. - # as -z defs.
  12538. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12539. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12540. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12541. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12542. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12543. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12544. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12545. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12546. - runpath_var='LD_RUN_PATH'
  12547. +dnl aclocal-1.4 backwards compatibility:
  12548. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12549. - if test "$GCC" = yes; then
  12550. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12551. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12552. - else
  12553. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12554. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12555. - fi
  12556. - ;;
  12557. - uts4*)
  12558. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12559. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12560. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12561. - ;;
  12562. +m4_define([_LTDL_MODE], [])
  12563. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12564. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12565. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12566. + [m4_define([_LTDL_MODE], [recursive])])
  12567. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12568. + [m4_define([_LTDL_MODE], [subproject])])
  12569. - *)
  12570. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12571. - ;;
  12572. - esac
  12573. - fi
  12574. -])
  12575. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12576. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12577. +m4_define([_LTDL_TYPE], [])
  12578. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12579. + [m4_define([_LTDL_TYPE], [installable])])
  12580. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12581. + [m4_define([_LTDL_TYPE], [convenience])])
  12582. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12583. #
  12584. -# Do we need to explicitly link libc?
  12585. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12586. +# Written by Gary V. Vaughan, 2004
  12587. #
  12588. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12589. -x|xyes)
  12590. - # Assume -lc should be added
  12591. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12592. +# This file is free software; the Free Software Foundation gives
  12593. +# unlimited permission to copy and/or distribute it, with or without
  12594. +# modifications, as long as this notice is preserved.
  12595. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12596. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12597. - *'~'*)
  12598. - # FIXME: we may have to deal with multi-command sequences.
  12599. - ;;
  12600. - '$CC '*)
  12601. - # Test whether the compiler implicitly links with -lc since on some
  12602. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12603. - # to ld, don't add -lc before -lgcc.
  12604. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12605. - $rm conftest*
  12606. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. +# serial 6 ltsugar.m4
  12608. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12609. - soname=conftest
  12610. - lib=conftest
  12611. - libobjs=conftest.$ac_objext
  12612. - deplibs=
  12613. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12614. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12615. - compiler_flags=-v
  12616. - linker_flags=-v
  12617. - verstring=
  12618. - output_objdir=.
  12619. - libname=conftest
  12620. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12621. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12622. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12623. - then
  12624. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12625. - else
  12626. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12627. - fi
  12628. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12629. - else
  12630. - cat conftest.err 1>&5
  12631. - fi
  12632. - $rm conftest*
  12633. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12634. - ;;
  12635. - esac
  12636. - fi
  12637. - ;;
  12638. -esac
  12639. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12640. +# This is to help aclocal find these macros, as it can't see m4_define.
  12641. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12642. -# _LT_AC_FILE_LTDLL_C
  12643. -# -------------------
  12644. -# Be careful that the start marker always follows a newline.
  12645. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12646. -# /* ltdll.c starts here */
  12647. -# #define WIN32_LEAN_AND_MEAN
  12648. -# #include <windows.h>
  12649. -# #undef WIN32_LEAN_AND_MEAN
  12650. -# #include <stdio.h>
  12651. -#
  12652. -# #ifndef __CYGWIN__
  12653. -# # ifdef __CYGWIN32__
  12654. -# # define __CYGWIN__ __CYGWIN32__
  12655. -# # endif
  12656. -# #endif
  12657. -#
  12658. -# #ifdef __cplusplus
  12659. -# extern "C" {
  12660. -# #endif
  12661. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12662. -# #ifdef __cplusplus
  12663. -# }
  12664. -# #endif
  12665. -#
  12666. -# #ifdef __CYGWIN__
  12667. -# #include <cygwin/cygwin_dll.h>
  12668. -# DECLARE_CYGWIN_DLL( DllMain );
  12669. -# #endif
  12670. -# HINSTANCE __hDllInstance_base;
  12671. -#
  12672. -# BOOL APIENTRY
  12673. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12674. -# {
  12675. -# __hDllInstance_base = hInst;
  12676. -# return TRUE;
  12677. -# }
  12678. -# /* ltdll.c ends here */
  12679. -])# _LT_AC_FILE_LTDLL_C
  12680. +# lt_join(SEP, ARG1, [ARG2...])
  12681. +# -----------------------------
  12682. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12683. +# associated separator.
  12684. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12685. +# versions in m4sugar had bugs.
  12686. +m4_define([lt_join],
  12687. +[m4_if([$#], [1], [],
  12688. + [$#], [2], [[$2]],
  12689. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12690. +m4_define([_lt_join],
  12691. +[m4_if([$#$2], [2], [],
  12692. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12693. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12694. -# ---------------------------------
  12695. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12696. +# lt_car(LIST)
  12697. +# lt_cdr(LIST)
  12698. +# ------------
  12699. +# Manipulate m4 lists.
  12700. +# These macros are necessary as long as will still need to support
  12701. +# Autoconf-2.59 which quotes differently.
  12702. +m4_define([lt_car], [[$1]])
  12703. +m4_define([lt_cdr],
  12704. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12705. + [$#], 1, [],
  12706. + [m4_dquote(m4_shift($@))])])
  12707. +m4_define([lt_unquote], $1)
  12708. +
  12709. +
  12710. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12711. +# ------------------------------------------
  12712. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12713. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12714. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12715. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12716. +# than defined and empty).
  12717. +#
  12718. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12719. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12720. +m4_define([lt_append],
  12721. +[m4_define([$1],
  12722. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12723. -# old names
  12724. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12725. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12726. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12727. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12728. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12729. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12730. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12731. -# This is just to silence aclocal about the macro not being used
  12732. -ifelse([AC_DISABLE_FAST_INSTALL])
  12733. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12734. +# ----------------------------------------------------------
  12735. +# Produce a SEP delimited list of all paired combinations of elements of
  12736. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12737. +# has the form PREFIXmINFIXSUFFIXn.
  12738. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12739. +m4_define([lt_combine],
  12740. +[m4_if(m4_eval([$# > 3]), [1],
  12741. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12742. +[[m4_foreach([_Lt_prefix], [$2],
  12743. + [m4_foreach([_Lt_suffix],
  12744. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12745. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12746. +
  12747. +
  12748. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12749. +# -----------------------------------------------------------------------
  12750. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12751. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12752. +m4_define([lt_if_append_uniq],
  12753. +[m4_ifdef([$1],
  12754. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12755. + [lt_append([$1], [$2], [$3])$4],
  12756. + [$5])],
  12757. + [lt_append([$1], [$2], [$3])$4])])
  12758. -AC_DEFUN([LT_AC_PROG_GCJ],
  12759. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12760. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12761. - AC_SUBST(GCJFLAGS)
  12762. -])
  12763. -AC_DEFUN([LT_AC_PROG_RC],
  12764. -[AC_CHECK_TOOL(RC, windres, no)
  12765. -])
  12766. +# lt_dict_add(DICT, KEY, VALUE)
  12767. +# -----------------------------
  12768. +m4_define([lt_dict_add],
  12769. +[m4_define([$1($2)], [$3])])
  12770. -# NOTE: This macro has been submitted for inclusion into #
  12771. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12772. -# a released version of Autoconf we should remove this #
  12773. -# macro and use it instead. #
  12774. -# LT_AC_PROG_SED
  12775. -# --------------
  12776. -# Check for a fully-functional sed program, that truncates
  12777. -# as few characters as possible. Prefer GNU sed if found.
  12778. -AC_DEFUN([LT_AC_PROG_SED],
  12779. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12780. -AC_CACHE_VAL(lt_cv_path_SED,
  12781. -[# Loop through the user's path and test for sed and gsed.
  12782. -# Then use that list of sed's as ones to test for truncation.
  12783. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12784. -for as_dir in $PATH
  12785. -do
  12786. - IFS=$as_save_IFS
  12787. - test -z "$as_dir" && as_dir=.
  12788. - for lt_ac_prog in sed gsed; do
  12789. - for ac_exec_ext in '' $ac_executable_extensions; do
  12790. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12791. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12792. - fi
  12793. - done
  12794. - done
  12795. -done
  12796. -lt_ac_max=0
  12797. -lt_ac_count=0
  12798. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12799. -# along with /bin/sed that truncates output.
  12800. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12801. - test ! -f $lt_ac_sed && continue
  12802. - cat /dev/null > conftest.in
  12803. - lt_ac_count=0
  12804. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12805. - # Check for GNU sed and select it if it is found.
  12806. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12807. - lt_cv_path_SED=$lt_ac_sed
  12808. - break
  12809. - fi
  12810. - while true; do
  12811. - cat conftest.in conftest.in >conftest.tmp
  12812. - mv conftest.tmp conftest.in
  12813. - cp conftest.in conftest.nl
  12814. - echo >>conftest.nl
  12815. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12816. - cmp -s conftest.out conftest.nl || break
  12817. - # 10000 chars as input seems more than enough
  12818. - test $lt_ac_count -gt 10 && break
  12819. - lt_ac_count=`expr $lt_ac_count + 1`
  12820. - if test $lt_ac_count -gt $lt_ac_max; then
  12821. - lt_ac_max=$lt_ac_count
  12822. - lt_cv_path_SED=$lt_ac_sed
  12823. - fi
  12824. - done
  12825. -done
  12826. +
  12827. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12828. +# --------------------------------------------
  12829. +m4_define([lt_dict_add_subkey],
  12830. +[m4_define([$1($2:$3)], [$4])])
  12831. +
  12832. +
  12833. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12834. +# ----------------------------------
  12835. +m4_define([lt_dict_fetch],
  12836. +[m4_ifval([$3],
  12837. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12838. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12839. +
  12840. +
  12841. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12842. +# -----------------------------------------------------------------
  12843. +m4_define([lt_if_dict_fetch],
  12844. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12845. + [$5],
  12846. + [$6])])
  12847. +
  12848. +
  12849. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12850. +# --------------------------------------------------------------
  12851. +m4_define([lt_dict_filter],
  12852. +[m4_if([$5], [], [],
  12853. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12854. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12855. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12856. ])
  12857. -SED=$lt_cv_path_SED
  12858. -AC_MSG_RESULT([$SED])
  12859. +
  12860. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12861. +#
  12862. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12863. +# Written by Scott James Remnant, 2004
  12864. +#
  12865. +# This file is free software; the Free Software Foundation gives
  12866. +# unlimited permission to copy and/or distribute it, with or without
  12867. +# modifications, as long as this notice is preserved.
  12868. +
  12869. +# Generated from ltversion.in.
  12870. +
  12871. +# serial 3017 ltversion.m4
  12872. +# This file is part of GNU Libtool
  12873. +
  12874. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12875. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12876. +
  12877. +AC_DEFUN([LTVERSION_VERSION],
  12878. +[macro_version='2.2.6b'
  12879. +macro_revision='1.3017'
  12880. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12881. +_LT_DECL(, macro_revision, 0)
  12882. ])
  12883. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  12884. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12885. +#
  12886. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12887. +# Written by Scott James Remnant, 2004.
  12888. +#
  12889. +# This file is free software; the Free Software Foundation gives
  12890. +# unlimited permission to copy and/or distribute it, with or without
  12891. +# modifications, as long as this notice is preserved.
  12892. +
  12893. +# serial 4 lt~obsolete.m4
  12894. +
  12895. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12896. +#
  12897. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12898. +# which have later been changed to m4_define as they aren't part of the
  12899. +# exported API, or moved to Autoconf or Automake where they belong.
  12900. +#
  12901. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12902. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12903. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12904. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12905. +# and doesn't know about Autoconf macros at all.)
  12906. +#
  12907. +# So we provide this file, which has a silly filename so it's always
  12908. +# included after everything else. This provides aclocal with the
  12909. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12910. +# because those macros already exist, or will be overwritten later.
  12911. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12912. +#
  12913. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12914. +# Yes, that means every name once taken will need to remain here until
  12915. +# we give up compatibility with versions before 1.7, at which point
  12916. +# we need to keep only those names which we still refer to.
  12917. +
  12918. +# This is to help aclocal find these macros, as it can't see m4_define.
  12919. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12920. +
  12921. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12922. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12923. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12924. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12925. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12926. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12927. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12928. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12929. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12930. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12931. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12932. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12933. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12934. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12935. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12936. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12937. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12938. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12939. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12940. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12941. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12942. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12943. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12944. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12945. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12946. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12947. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12948. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12949. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12950. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12951. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12952. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12953. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12954. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12955. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12956. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12957. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12958. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12959. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12960. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12961. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12962. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12963. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12964. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12965. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12966. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12967. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12968. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12969. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12970. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12971. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12972. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12973. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12974. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12975. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12976. +
  12977. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12978. #
  12979. # This file is free software; the Free Software Foundation
  12980. # gives unlimited permission to copy and/or distribute it,
  12981. @@ -6390,14 +7995,31 @@
  12982. # ----------------------------
  12983. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  12984. # generated from the m4 files accompanying Automake X.Y.
  12985. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  12986. +# (This private macro should not be called outside this file.)
  12987. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  12988. +[am__api_version='1.11'
  12989. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  12990. +dnl require some minimum version. Point them to the right macro.
  12991. +m4_if([$1], [1.11.1], [],
  12992. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  12993. +])
  12994. +
  12995. +# _AM_AUTOCONF_VERSION(VERSION)
  12996. +# -----------------------------
  12997. +# aclocal traces this macro to find the Autoconf version.
  12998. +# This is a private macro too. Using m4_define simplifies
  12999. +# the logic in aclocal, which can simply ignore this definition.
  13000. +m4_define([_AM_AUTOCONF_VERSION], [])
  13001. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13002. # -------------------------------
  13003. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  13004. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13005. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13006. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13007. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13008. - [AM_AUTOMAKE_VERSION([1.9.6])])
  13009. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13010. +m4_ifndef([AC_AUTOCONF_VERSION],
  13011. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13012. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13013. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13014. @@ -6454,14 +8076,14 @@
  13015. # AM_CONDITIONAL -*- Autoconf -*-
  13016. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  13017. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13018. # Free Software Foundation, Inc.
  13019. #
  13020. # This file is free software; the Free Software Foundation
  13021. # gives unlimited permission to copy and/or distribute it,
  13022. # with or without modifications, as long as this notice is preserved.
  13023. -# serial 7
  13024. +# serial 9
  13025. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13026. # -------------------------------------
  13027. @@ -6470,8 +8092,11 @@
  13028. [AC_PREREQ(2.52)dnl
  13029. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  13030. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  13031. -AC_SUBST([$1_TRUE])
  13032. -AC_SUBST([$1_FALSE])
  13033. +AC_SUBST([$1_TRUE])dnl
  13034. +AC_SUBST([$1_FALSE])dnl
  13035. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13036. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13037. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13038. if $2; then
  13039. $1_TRUE=
  13040. $1_FALSE='#'
  13041. @@ -6485,15 +8110,14 @@
  13042. Usually this means the macro was only invoked conditionally.]])
  13043. fi])])
  13044. -
  13045. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13046. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13047. # Free Software Foundation, Inc.
  13048. #
  13049. # This file is free software; the Free Software Foundation
  13050. # gives unlimited permission to copy and/or distribute it,
  13051. # with or without modifications, as long as this notice is preserved.
  13052. -# serial 8
  13053. +# serial 10
  13054. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13055. # written in clear, in which case automake, when reading aclocal.m4,
  13056. @@ -6521,6 +8145,7 @@
  13057. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13058. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13059. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13060. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13061. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13062. [depcc="$$1" am_compiler_list=])
  13063. @@ -6549,6 +8174,16 @@
  13064. if test "$am_compiler_list" = ""; then
  13065. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13066. fi
  13067. + am__universal=false
  13068. + m4_case([$1], [CC],
  13069. + [case " $depcc " in #(
  13070. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13071. + esac],
  13072. + [CXX],
  13073. + [case " $depcc " in #(
  13074. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13075. + esac])
  13076. +
  13077. for depmode in $am_compiler_list; do
  13078. # Setup a source with many dependencies, because some compilers
  13079. # like to wrap large dependency lists on column 80 (with \), and
  13080. @@ -6566,7 +8201,17 @@
  13081. done
  13082. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13083. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13084. + # mode. It turns out that the SunPro C++ compiler does not properly
  13085. + # handle `-M -o', and we need to detect this. Also, some Intel
  13086. + # versions had trouble with output in subdirs
  13087. + am__obj=sub/conftest.${OBJEXT-o}
  13088. + am__minus_obj="-o $am__obj"
  13089. case $depmode in
  13090. + gcc)
  13091. + # This depmode causes a compiler race in universal mode.
  13092. + test "$am__universal" = false || continue
  13093. + ;;
  13094. nosideeffect)
  13095. # after this tag, mechanisms are not by side-effect, so they'll
  13096. # only be used when explicitly requested
  13097. @@ -6576,18 +8221,23 @@
  13098. break
  13099. fi
  13100. ;;
  13101. + msvisualcpp | msvcmsys)
  13102. + # This compiler won't grok `-c -o', but also, the minuso test has
  13103. + # not run yet. These depmodes are late enough in the game, and
  13104. + # so weak that their functioning should not be impacted.
  13105. + am__obj=conftest.${OBJEXT-o}
  13106. + am__minus_obj=
  13107. + ;;
  13108. none) break ;;
  13109. esac
  13110. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13111. - # mode. It turns out that the SunPro C++ compiler does not properly
  13112. - # handle `-M -o', and we need to detect this.
  13113. if depmode=$depmode \
  13114. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13115. + source=sub/conftest.c object=$am__obj \
  13116. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13117. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13118. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13119. >/dev/null 2>conftest.err &&
  13120. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13121. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13122. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13123. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13124. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13125. # icc doesn't choke on unknown options, it will just issue warnings
  13126. # or remarks (even with -Werror). So we grep stderr for any message
  13127. @@ -6638,61 +8288,74 @@
  13128. AMDEPBACKSLASH='\'
  13129. fi
  13130. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13131. -AC_SUBST([AMDEPBACKSLASH])
  13132. +AC_SUBST([AMDEPBACKSLASH])dnl
  13133. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13134. ])
  13135. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13136. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13137. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13138. # Free Software Foundation, Inc.
  13139. #
  13140. # This file is free software; the Free Software Foundation
  13141. # gives unlimited permission to copy and/or distribute it,
  13142. # with or without modifications, as long as this notice is preserved.
  13143. -#serial 3
  13144. +#serial 5
  13145. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13146. # ------------------------------
  13147. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13148. -[for mf in $CONFIG_FILES; do
  13149. - # Strip MF so we end up with the name of the file.
  13150. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13151. - # Check whether this is an Automake generated Makefile or not.
  13152. - # We used to match only the files named `Makefile.in', but
  13153. - # some people rename them; so instead we look at the file content.
  13154. - # Grep'ing the first line is not enough: some people post-process
  13155. - # each Makefile.in and add a new line on top of each file to say so.
  13156. - # So let's grep whole file.
  13157. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13158. - dirpart=`AS_DIRNAME("$mf")`
  13159. - else
  13160. - continue
  13161. - fi
  13162. - # Extract the definition of DEPDIR, am__include, and am__quote
  13163. - # from the Makefile without running `make'.
  13164. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13165. - test -z "$DEPDIR" && continue
  13166. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13167. - test -z "am__include" && continue
  13168. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13169. - # When using ansi2knr, U may be empty or an underscore; expand it
  13170. - U=`sed -n 's/^U = //p' < "$mf"`
  13171. - # Find all dependency output files, they are included files with
  13172. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13173. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13174. - # expansion.
  13175. - for file in `sed -n "
  13176. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13177. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13178. - # Make sure the directory exists.
  13179. - test -f "$dirpart/$file" && continue
  13180. - fdir=`AS_DIRNAME(["$file"])`
  13181. - AS_MKDIR_P([$dirpart/$fdir])
  13182. - # echo "creating $dirpart/$file"
  13183. - echo '# dummy' > "$dirpart/$file"
  13184. +[{
  13185. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13186. + # are listed without --file. Let's play safe and only enable the eval
  13187. + # if we detect the quoting.
  13188. + case $CONFIG_FILES in
  13189. + *\'*) eval set x "$CONFIG_FILES" ;;
  13190. + *) set x $CONFIG_FILES ;;
  13191. + esac
  13192. + shift
  13193. + for mf
  13194. + do
  13195. + # Strip MF so we end up with the name of the file.
  13196. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13197. + # Check whether this is an Automake generated Makefile or not.
  13198. + # We used to match only the files named `Makefile.in', but
  13199. + # some people rename them; so instead we look at the file content.
  13200. + # Grep'ing the first line is not enough: some people post-process
  13201. + # each Makefile.in and add a new line on top of each file to say so.
  13202. + # Grep'ing the whole file is not good either: AIX grep has a line
  13203. + # limit of 2048, but all sed's we know have understand at least 4000.
  13204. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13205. + dirpart=`AS_DIRNAME("$mf")`
  13206. + else
  13207. + continue
  13208. + fi
  13209. + # Extract the definition of DEPDIR, am__include, and am__quote
  13210. + # from the Makefile without running `make'.
  13211. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13212. + test -z "$DEPDIR" && continue
  13213. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13214. + test -z "am__include" && continue
  13215. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13216. + # When using ansi2knr, U may be empty or an underscore; expand it
  13217. + U=`sed -n 's/^U = //p' < "$mf"`
  13218. + # Find all dependency output files, they are included files with
  13219. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13220. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13221. + # expansion.
  13222. + for file in `sed -n "
  13223. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13224. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13225. + # Make sure the directory exists.
  13226. + test -f "$dirpart/$file" && continue
  13227. + fdir=`AS_DIRNAME(["$file"])`
  13228. + AS_MKDIR_P([$dirpart/$fdir])
  13229. + # echo "creating $dirpart/$file"
  13230. + echo '# dummy' > "$dirpart/$file"
  13231. + done
  13232. done
  13233. -done
  13234. +}
  13235. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13236. @@ -6723,14 +8386,14 @@
  13237. # Do all the work for Automake. -*- Autoconf -*-
  13238. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13239. -# Free Software Foundation, Inc.
  13240. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13241. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13242. #
  13243. # This file is free software; the Free Software Foundation
  13244. # gives unlimited permission to copy and/or distribute it,
  13245. # with or without modifications, as long as this notice is preserved.
  13246. -# serial 12
  13247. +# serial 16
  13248. # This macro actually does too much. Some checks are only needed if
  13249. # your package does certain things. But this isn't really a big deal.
  13250. @@ -6747,16 +8410,20 @@
  13251. # arguments mandatory, and then we can depend on a new Autoconf
  13252. # release and drop the old call support.
  13253. AC_DEFUN([AM_INIT_AUTOMAKE],
  13254. -[AC_PREREQ([2.58])dnl
  13255. +[AC_PREREQ([2.62])dnl
  13256. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13257. dnl the ones we care about.
  13258. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13259. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13260. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13261. -# test to see if srcdir already configured
  13262. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13263. - test -f $srcdir/config.status; then
  13264. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13265. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13266. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13267. + # is not polluted with repeated "-I."
  13268. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13269. + # test to see if srcdir already configured
  13270. + if test -f $srcdir/config.status; then
  13271. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13272. + fi
  13273. fi
  13274. # test whether we have cygpath
  13275. @@ -6776,6 +8443,9 @@
  13276. AC_SUBST([PACKAGE], [$1])dnl
  13277. AC_SUBST([VERSION], [$2])],
  13278. [_AM_SET_OPTIONS([$1])dnl
  13279. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13280. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13281. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13282. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13283. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13284. @@ -6791,8 +8461,8 @@
  13285. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13286. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13287. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13288. -AM_PROG_INSTALL_SH
  13289. -AM_PROG_INSTALL_STRIP
  13290. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13291. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13292. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13293. # We need awk for the "check" target. The system "awk" is bad on
  13294. # some platforms.
  13295. @@ -6800,20 +8470,37 @@
  13296. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13297. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13298. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13299. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13300. - [_AM_PROG_TAR([v7])])])
  13301. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13302. + [_AM_PROG_TAR([v7])])])
  13303. _AM_IF_OPTION([no-dependencies],,
  13304. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13305. - [_AM_DEPENDENCIES(CC)],
  13306. - [define([AC_PROG_CC],
  13307. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13308. + [_AM_DEPENDENCIES(CC)],
  13309. + [define([AC_PROG_CC],
  13310. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13311. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13312. - [_AM_DEPENDENCIES(CXX)],
  13313. - [define([AC_PROG_CXX],
  13314. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13315. + [_AM_DEPENDENCIES(CXX)],
  13316. + [define([AC_PROG_CXX],
  13317. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13318. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13319. + [_AM_DEPENDENCIES(OBJC)],
  13320. + [define([AC_PROG_OBJC],
  13321. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13322. ])
  13323. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13324. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13325. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13326. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13327. +AC_CONFIG_COMMANDS_PRE(dnl
  13328. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13329. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13330. ])
  13331. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13332. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13333. +dnl mangled by Autoconf and run in a shell conditional statement.
  13334. +m4_define([_AC_COMPILER_EXEEXT],
  13335. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13336. +
  13337. # When config.status generates a header, we must update the stamp-h file.
  13338. # This file resides in the same directory as the config header
  13339. @@ -6824,18 +8511,19 @@
  13340. # our stamp files there.
  13341. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13342. [# Compute $1's index in $config_headers.
  13343. +_am_arg=$1
  13344. _am_stamp_count=1
  13345. for _am_header in $config_headers :; do
  13346. case $_am_header in
  13347. - $1 | $1:* )
  13348. + $_am_arg | $_am_arg:* )
  13349. break ;;
  13350. * )
  13351. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13352. esac
  13353. done
  13354. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13355. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13356. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13357. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13358. #
  13359. # This file is free software; the Free Software Foundation
  13360. # gives unlimited permission to copy and/or distribute it,
  13361. @@ -6846,7 +8534,14 @@
  13362. # Define $install_sh.
  13363. AC_DEFUN([AM_PROG_INSTALL_SH],
  13364. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13365. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13366. +if test x"${install_sh}" != xset; then
  13367. + case $am_aux_dir in
  13368. + *\ * | *\ *)
  13369. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13370. + *)
  13371. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13372. + esac
  13373. +fi
  13374. AC_SUBST(install_sh)])
  13375. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13376. @@ -6872,13 +8567,13 @@
  13377. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13378. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13379. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13380. #
  13381. # This file is free software; the Free Software Foundation
  13382. # gives unlimited permission to copy and/or distribute it,
  13383. # with or without modifications, as long as this notice is preserved.
  13384. -# serial 3
  13385. +# serial 4
  13386. # AM_MAKE_INCLUDE()
  13387. # -----------------
  13388. @@ -6887,7 +8582,7 @@
  13389. [am_make=${MAKE-make}
  13390. cat > confinc << 'END'
  13391. am__doit:
  13392. - @echo done
  13393. + @echo this is the am__doit target
  13394. .PHONY: am__doit
  13395. END
  13396. # If we don't find an include directive, just comment out the code.
  13397. @@ -6897,24 +8592,24 @@
  13398. _am_result=none
  13399. # First try GNU make style include.
  13400. echo "include confinc" > confmf
  13401. -# We grep out `Entering directory' and `Leaving directory'
  13402. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13403. -# In particular we don't look at `^make:' because GNU make might
  13404. -# be invoked under some other name (usually "gmake"), in which
  13405. -# case it prints its new name instead of `make'.
  13406. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13407. - am__include=include
  13408. - am__quote=
  13409. - _am_result=GNU
  13410. -fi
  13411. +# Ignore all kinds of additional output from `make'.
  13412. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13413. +*the\ am__doit\ target*)
  13414. + am__include=include
  13415. + am__quote=
  13416. + _am_result=GNU
  13417. + ;;
  13418. +esac
  13419. # Now try BSD make style include.
  13420. if test "$am__include" = "#"; then
  13421. echo '.include "confinc"' > confmf
  13422. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13423. - am__include=.include
  13424. - am__quote="\""
  13425. - _am_result=BSD
  13426. - fi
  13427. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13428. + *the\ am__doit\ target*)
  13429. + am__include=.include
  13430. + am__quote="\""
  13431. + _am_result=BSD
  13432. + ;;
  13433. + esac
  13434. fi
  13435. AC_SUBST([am__include])
  13436. AC_SUBST([am__quote])
  13437. @@ -6922,13 +8617,14 @@
  13438. rm -f confinc confmf
  13439. ])
  13440. -# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
  13441. +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13442. +# Free Software Foundation, Inc.
  13443. #
  13444. # This file is free software; the Free Software Foundation
  13445. # gives unlimited permission to copy and/or distribute it,
  13446. # with or without modifications, as long as this notice is preserved.
  13447. -# serial 3
  13448. +# serial 6
  13449. # AM_PROG_CC_C_O
  13450. # --------------
  13451. @@ -6936,11 +8632,13 @@
  13452. AC_DEFUN([AM_PROG_CC_C_O],
  13453. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  13454. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13455. +AC_REQUIRE_AUX_FILE([compile])dnl
  13456. # FIXME: we rely on the cache variable name because
  13457. # there is no other way.
  13458. set dummy $CC
  13459. -ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  13460. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  13461. +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  13462. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13463. +if test "$am_t" != yes; then
  13464. # Losing compiler, so override with the script.
  13465. # FIXME: It is wrong to rewrite CC.
  13466. # But if we don't then we get into trouble of one sort or another.
  13467. @@ -6948,18 +8646,22 @@
  13468. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13469. CC="$am_aux_dir/compile $CC"
  13470. fi
  13471. +dnl Make sure AC_PROG_CC is never called again, or it will override our
  13472. +dnl setting of CC.
  13473. +m4_define([AC_PROG_CC],
  13474. + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  13475. ])
  13476. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13477. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13478. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13479. # Free Software Foundation, Inc.
  13480. #
  13481. # This file is free software; the Free Software Foundation
  13482. # gives unlimited permission to copy and/or distribute it,
  13483. # with or without modifications, as long as this notice is preserved.
  13484. -# serial 4
  13485. +# serial 6
  13486. # AM_MISSING_PROG(NAME, PROGRAM)
  13487. # ------------------------------
  13488. @@ -6975,7 +8677,15 @@
  13489. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13490. AC_DEFUN([AM_MISSING_HAS_RUN],
  13491. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13492. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13493. +AC_REQUIRE_AUX_FILE([missing])dnl
  13494. +if test x"${MISSING+set}" != xset; then
  13495. + case $am_aux_dir in
  13496. + *\ * | *\ *)
  13497. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13498. + *)
  13499. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13500. + esac
  13501. +fi
  13502. # Use eval to expand $SHELL
  13503. if eval "$MISSING --run true"; then
  13504. am_missing_run="$MISSING --run "
  13505. @@ -6985,7 +8695,7 @@
  13506. fi
  13507. ])
  13508. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13509. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13510. #
  13511. # This file is free software; the Free Software Foundation
  13512. # gives unlimited permission to copy and/or distribute it,
  13513. @@ -6993,70 +8703,33 @@
  13514. # AM_PROG_MKDIR_P
  13515. # ---------------
  13516. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13517. -#
  13518. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13519. -# created by `make install' are always world readable, even if the
  13520. -# installer happens to have an overly restrictive umask (e.g. 077).
  13521. -# This was a mistake. There are at least two reasons why we must not
  13522. -# use `-m 0755':
  13523. -# - it causes special bits like SGID to be ignored,
  13524. -# - it may be too restrictive (some setups expect 775 directories).
  13525. -#
  13526. -# Do not use -m 0755 and let people choose whatever they expect by
  13527. -# setting umask.
  13528. -#
  13529. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13530. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13531. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13532. -# concurrently, both version can detect that a/ is missing, but only
  13533. -# one can create it and the other will error out. Consequently we
  13534. -# restrict ourselves to GNU make (using the --version option ensures
  13535. -# this.)
  13536. +# Check for `mkdir -p'.
  13537. AC_DEFUN([AM_PROG_MKDIR_P],
  13538. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13539. - # We used to keeping the `.' as first argument, in order to
  13540. - # allow $(mkdir_p) to be used without argument. As in
  13541. - # $(mkdir_p) $(somedir)
  13542. - # where $(somedir) is conditionally defined. However this is wrong
  13543. - # for two reasons:
  13544. - # 1. if the package is installed by a user who cannot write `.'
  13545. - # make install will fail,
  13546. - # 2. the above comment should most certainly read
  13547. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13548. - # so it does not work when $(somedir) is undefined and
  13549. - # $(DESTDIR) is not.
  13550. - # To support the latter case, we have to write
  13551. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13552. - # so the `.' trick is pointless.
  13553. - mkdir_p='mkdir -p --'
  13554. -else
  13555. - # On NextStep and OpenStep, the `mkdir' command does not
  13556. - # recognize any option. It will interpret all options as
  13557. - # directories to create, and then abort because `.' already
  13558. - # exists.
  13559. - for d in ./-p ./--version;
  13560. - do
  13561. - test -d $d && rmdir $d
  13562. - done
  13563. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13564. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13565. - mkdir_p='$(mkinstalldirs)'
  13566. - else
  13567. - mkdir_p='$(install_sh) -d'
  13568. - fi
  13569. -fi
  13570. -AC_SUBST([mkdir_p])])
  13571. +[AC_PREREQ([2.60])dnl
  13572. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13573. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13574. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13575. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13576. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13577. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13578. +dnl adjustment using top_builddir (which is defined more often than
  13579. +dnl MKDIR_P).
  13580. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13581. +case $mkdir_p in
  13582. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13583. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13584. +esac
  13585. +])
  13586. # Helper functions for option handling. -*- Autoconf -*-
  13587. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13588. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13589. #
  13590. # This file is free software; the Free Software Foundation
  13591. # gives unlimited permission to copy and/or distribute it,
  13592. # with or without modifications, as long as this notice is preserved.
  13593. -# serial 3
  13594. +# serial 4
  13595. # _AM_MANGLE_OPTION(NAME)
  13596. # -----------------------
  13597. @@ -7073,7 +8746,7 @@
  13598. # ----------------------------------
  13599. # OPTIONS is a space-separated list of Automake options.
  13600. AC_DEFUN([_AM_SET_OPTIONS],
  13601. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13602. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13603. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13604. # -------------------------------------------
  13605. @@ -7083,14 +8756,14 @@
  13606. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13607. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13608. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13609. # Free Software Foundation, Inc.
  13610. #
  13611. # This file is free software; the Free Software Foundation
  13612. # gives unlimited permission to copy and/or distribute it,
  13613. # with or without modifications, as long as this notice is preserved.
  13614. -# serial 4
  13615. +# serial 5
  13616. # AM_SANITY_CHECK
  13617. # ---------------
  13618. @@ -7099,16 +8772,29 @@
  13619. # Just in case
  13620. sleep 1
  13621. echo timestamp > conftest.file
  13622. +# Reject unsafe characters in $srcdir or the absolute working directory
  13623. +# name. Accept space and tab only in the latter.
  13624. +am_lf='
  13625. +'
  13626. +case `pwd` in
  13627. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13628. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13629. +esac
  13630. +case $srcdir in
  13631. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13632. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13633. +esac
  13634. +
  13635. # Do `set' in a subshell so we don't clobber the current shell's
  13636. # arguments. Must try -L first in case configure is actually a
  13637. # symlink; some systems play weird games with the mod time of symlinks
  13638. # (eg FreeBSD returns the mod time of the symlink's containing
  13639. # directory).
  13640. if (
  13641. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13642. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13643. if test "$[*]" = "X"; then
  13644. # -L didn't work.
  13645. - set X `ls -t $srcdir/configure conftest.file`
  13646. + set X `ls -t "$srcdir/configure" conftest.file`
  13647. fi
  13648. rm -f conftest.file
  13649. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13650. @@ -7158,9 +8844,28 @@
  13651. if test "$cross_compiling" != no; then
  13652. AC_CHECK_TOOL([STRIP], [strip], :)
  13653. fi
  13654. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13655. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13656. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13657. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13658. +#
  13659. +# This file is free software; the Free Software Foundation
  13660. +# gives unlimited permission to copy and/or distribute it,
  13661. +# with or without modifications, as long as this notice is preserved.
  13662. +
  13663. +# serial 2
  13664. +
  13665. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13666. +# ---------------------------
  13667. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13668. +# This macro is traced by Automake.
  13669. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13670. +
  13671. +# AM_SUBST_NOTMAKE(VARIABLE)
  13672. +# ---------------------------
  13673. +# Public sister of _AM_SUBST_NOTMAKE.
  13674. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13675. +
  13676. # Check how to create a tarball. -*- Autoconf -*-
  13677. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13678. diff -Nur faad2-2.7.orig/common/Makefile.in faad2-2.7/common/Makefile.in
  13679. --- faad2-2.7.orig/common/Makefile.in 2009-02-10 09:36:10.000000000 +0100
  13680. +++ faad2-2.7/common/Makefile.in 2011-02-16 17:55:07.673552248 +0100
  13681. @@ -1,8 +1,9 @@
  13682. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  13683. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  13684. # @configure_input@
  13685. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  13686. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  13687. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  13688. +# Inc.
  13689. # This Makefile.in is free software; the Free Software Foundation
  13690. # gives unlimited permission to copy and/or distribute it,
  13691. # with or without modifications, as long as this notice is preserved.
  13692. @@ -13,15 +14,12 @@
  13693. # PARTICULAR PURPOSE.
  13694. @SET_MAKE@
  13695. -srcdir = @srcdir@
  13696. -top_srcdir = @top_srcdir@
  13697. VPATH = @srcdir@
  13698. pkgdatadir = $(datadir)/@PACKAGE@
  13699. -pkglibdir = $(libdir)/@PACKAGE@
  13700. pkgincludedir = $(includedir)/@PACKAGE@
  13701. -top_builddir = ..
  13702. +pkglibdir = $(libdir)/@PACKAGE@
  13703. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  13704. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  13705. -INSTALL = @INSTALL@
  13706. install_sh_DATA = $(install_sh) -c -m 644
  13707. install_sh_PROGRAM = $(install_sh) -c
  13708. install_sh_SCRIPT = $(install_sh) -c
  13709. @@ -44,21 +42,51 @@
  13710. mkinstalldirs = $(install_sh) -d
  13711. CONFIG_HEADER = $(top_builddir)/config.h
  13712. CONFIG_CLEAN_FILES =
  13713. +CONFIG_CLEAN_VPATH_FILES =
  13714. SOURCES =
  13715. DIST_SOURCES =
  13716. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  13717. html-recursive info-recursive install-data-recursive \
  13718. - install-exec-recursive install-info-recursive \
  13719. - install-recursive installcheck-recursive installdirs-recursive \
  13720. - pdf-recursive ps-recursive uninstall-info-recursive \
  13721. - uninstall-recursive
  13722. + install-dvi-recursive install-exec-recursive \
  13723. + install-html-recursive install-info-recursive \
  13724. + install-pdf-recursive install-ps-recursive install-recursive \
  13725. + installcheck-recursive installdirs-recursive pdf-recursive \
  13726. + ps-recursive uninstall-recursive
  13727. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  13728. + distclean-recursive maintainer-clean-recursive
  13729. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  13730. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  13731. + distdir
  13732. ETAGS = etags
  13733. CTAGS = ctags
  13734. DIST_SUBDIRS = $(SUBDIRS)
  13735. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  13736. +am__relativize = \
  13737. + dir0=`pwd`; \
  13738. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  13739. + sed_rest='s,^[^/]*/*,,'; \
  13740. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  13741. + sed_butlast='s,/*[^/]*$$,,'; \
  13742. + while test -n "$$dir1"; do \
  13743. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  13744. + if test "$$first" != "."; then \
  13745. + if test "$$first" = ".."; then \
  13746. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  13747. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  13748. + else \
  13749. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  13750. + if test "$$first2" = "$$first"; then \
  13751. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  13752. + else \
  13753. + dir2="../$$dir2"; \
  13754. + fi; \
  13755. + dir0="$$dir0"/"$$first"; \
  13756. + fi; \
  13757. + fi; \
  13758. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  13759. + done; \
  13760. + reldir="$$dir2"
  13761. ACLOCAL = @ACLOCAL@
  13762. -AMDEP_FALSE = @AMDEP_FALSE@
  13763. -AMDEP_TRUE = @AMDEP_TRUE@
  13764. AMTAR = @AMTAR@
  13765. AR = @AR@
  13766. AUTOCONF = @AUTOCONF@
  13767. @@ -77,55 +105,62 @@
  13768. CYGPATH_W = @CYGPATH_W@
  13769. DEFS = @DEFS@
  13770. DEPDIR = @DEPDIR@
  13771. -ECHO = @ECHO@
  13772. +DSYMUTIL = @DSYMUTIL@
  13773. +DUMPBIN = @DUMPBIN@
  13774. ECHO_C = @ECHO_C@
  13775. ECHO_N = @ECHO_N@
  13776. ECHO_T = @ECHO_T@
  13777. EGREP = @EGREP@
  13778. EXEEXT = @EXEEXT@
  13779. -F77 = @F77@
  13780. -FFLAGS = @FFLAGS@
  13781. +FGREP = @FGREP@
  13782. GREP = @GREP@
  13783. GTK_CONFIG = @GTK_CONFIG@
  13784. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  13785. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  13786. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  13787. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  13788. +INSTALL = @INSTALL@
  13789. INSTALL_DATA = @INSTALL_DATA@
  13790. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  13791. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  13792. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  13793. +LD = @LD@
  13794. LDFLAGS = @LDFLAGS@
  13795. LIBOBJS = @LIBOBJS@
  13796. LIBS = @LIBS@
  13797. LIBTOOL = @LIBTOOL@
  13798. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  13799. +LIPO = @LIPO@
  13800. LN_S = @LN_S@
  13801. LTLIBOBJS = @LTLIBOBJS@
  13802. MAKEINFO = @MAKEINFO@
  13803. +MKDIR_P = @MKDIR_P@
  13804. MP4FF_LIBS = @MP4FF_LIBS@
  13805. +NM = @NM@
  13806. +NMEDIT = @NMEDIT@
  13807. +OBJDUMP = @OBJDUMP@
  13808. OBJEXT = @OBJEXT@
  13809. +OTOOL = @OTOOL@
  13810. +OTOOL64 = @OTOOL64@
  13811. PACKAGE = @PACKAGE@
  13812. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  13813. PACKAGE_NAME = @PACKAGE_NAME@
  13814. PACKAGE_STRING = @PACKAGE_STRING@
  13815. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  13816. +PACKAGE_URL = @PACKAGE_URL@
  13817. PACKAGE_VERSION = @PACKAGE_VERSION@
  13818. PATH_SEPARATOR = @PATH_SEPARATOR@
  13819. RANLIB = @RANLIB@
  13820. RPMBUILD = @RPMBUILD@
  13821. +SED = @SED@
  13822. SET_MAKE = @SET_MAKE@
  13823. SHELL = @SHELL@
  13824. STRIP = @STRIP@
  13825. VERSION = @VERSION@
  13826. XMMS_CONFIG = @XMMS_CONFIG@
  13827. +abs_builddir = @abs_builddir@
  13828. +abs_srcdir = @abs_srcdir@
  13829. +abs_top_builddir = @abs_top_builddir@
  13830. +abs_top_srcdir = @abs_top_srcdir@
  13831. ac_ct_CC = @ac_ct_CC@
  13832. ac_ct_CXX = @ac_ct_CXX@
  13833. -ac_ct_F77 = @ac_ct_F77@
  13834. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  13835. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  13836. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  13837. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  13838. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  13839. am__include = @am__include@
  13840. am__leading_dot = @am__leading_dot@
  13841. am__quote = @am__quote@
  13842. @@ -137,6 +172,7 @@
  13843. build_cpu = @build_cpu@
  13844. build_os = @build_os@
  13845. build_vendor = @build_vendor@
  13846. +builddir = @builddir@
  13847. datadir = @datadir@
  13848. datarootdir = @datarootdir@
  13849. docdir = @docdir@
  13850. @@ -156,6 +192,7 @@
  13851. libexecdir = @libexecdir@
  13852. localedir = @localedir@
  13853. localstatedir = @localstatedir@
  13854. +lt_ECHO = @lt_ECHO@
  13855. mandir = @mandir@
  13856. mkdir_p = @mkdir_p@
  13857. oldincludedir = @oldincludedir@
  13858. @@ -165,8 +202,12 @@
  13859. psdir = @psdir@
  13860. sbindir = @sbindir@
  13861. sharedstatedir = @sharedstatedir@
  13862. +srcdir = @srcdir@
  13863. sysconfdir = @sysconfdir@
  13864. target_alias = @target_alias@
  13865. +top_build_prefix = @top_build_prefix@
  13866. +top_builddir = @top_builddir@
  13867. +top_srcdir = @top_srcdir@
  13868. SUBDIRS = mp4ff
  13869. all: all-recursive
  13870. @@ -175,14 +216,14 @@
  13871. @for dep in $?; do \
  13872. case '$(am__configure_deps)' in \
  13873. *$$dep*) \
  13874. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  13875. - && exit 0; \
  13876. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  13877. + && { if test -f $@; then exit 0; else break; fi; }; \
  13878. exit 1;; \
  13879. esac; \
  13880. done; \
  13881. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/Makefile'; \
  13882. - cd $(top_srcdir) && \
  13883. - $(AUTOMAKE) --gnu common/Makefile
  13884. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/Makefile'; \
  13885. + $(am__cd) $(top_srcdir) && \
  13886. + $(AUTOMAKE) --gnu common/Makefile
  13887. .PRECIOUS: Makefile
  13888. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13889. @case '$?' in \
  13890. @@ -200,6 +241,7 @@
  13891. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  13892. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  13893. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  13894. +$(am__aclocal_m4_deps):
  13895. mostlyclean-libtool:
  13896. -rm -f *.lo
  13897. @@ -207,10 +249,6 @@
  13898. clean-libtool:
  13899. -rm -rf .libs _libs
  13900. -distclean-libtool:
  13901. - -rm -f libtool
  13902. -uninstall-info-am:
  13903. -
  13904. # This directory's subdirectories are mostly independent; you can cd
  13905. # into them and run `make' without going through this Makefile.
  13906. # To change the values of `make' variables: instead of editing Makefiles,
  13907. @@ -218,7 +256,7 @@
  13908. # (which will cause the Makefiles to be regenerated when you run `make');
  13909. # (2) otherwise, pass the desired values on the `make' command line.
  13910. $(RECURSIVE_TARGETS):
  13911. - @failcom='exit 1'; \
  13912. + @fail= failcom='exit 1'; \
  13913. for f in x $$MAKEFLAGS; do \
  13914. case $$f in \
  13915. *=* | --[!k]*);; \
  13916. @@ -235,16 +273,15 @@
  13917. else \
  13918. local_target="$$target"; \
  13919. fi; \
  13920. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  13921. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  13922. || eval $$failcom; \
  13923. done; \
  13924. if test "$$dot_seen" = "no"; then \
  13925. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  13926. fi; test -z "$$fail"
  13927. -mostlyclean-recursive clean-recursive distclean-recursive \
  13928. -maintainer-clean-recursive:
  13929. - @failcom='exit 1'; \
  13930. +$(RECURSIVE_CLEAN_TARGETS):
  13931. + @fail= failcom='exit 1'; \
  13932. for f in x $$MAKEFLAGS; do \
  13933. case $$f in \
  13934. *=* | --[!k]*);; \
  13935. @@ -270,16 +307,16 @@
  13936. else \
  13937. local_target="$$target"; \
  13938. fi; \
  13939. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  13940. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  13941. || eval $$failcom; \
  13942. done && test -z "$$fail"
  13943. tags-recursive:
  13944. list='$(SUBDIRS)'; for subdir in $$list; do \
  13945. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  13946. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  13947. done
  13948. ctags-recursive:
  13949. list='$(SUBDIRS)'; for subdir in $$list; do \
  13950. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  13951. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  13952. done
  13953. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  13954. @@ -287,14 +324,14 @@
  13955. unique=`for i in $$list; do \
  13956. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  13957. done | \
  13958. - $(AWK) ' { files[$$0] = 1; } \
  13959. - END { for (i in files) print i; }'`; \
  13960. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  13961. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  13962. mkid -fID $$unique
  13963. tags: TAGS
  13964. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  13965. $(TAGS_FILES) $(LISP)
  13966. - tags=; \
  13967. + set x; \
  13968. here=`pwd`; \
  13969. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  13970. include_option=--etags-include; \
  13971. @@ -306,81 +343,101 @@
  13972. list='$(SUBDIRS)'; for subdir in $$list; do \
  13973. if test "$$subdir" = .; then :; else \
  13974. test ! -f $$subdir/TAGS || \
  13975. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  13976. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  13977. fi; \
  13978. done; \
  13979. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  13980. unique=`for i in $$list; do \
  13981. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  13982. done | \
  13983. - $(AWK) ' { files[$$0] = 1; } \
  13984. - END { for (i in files) print i; }'`; \
  13985. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  13986. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  13987. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  13988. + shift; \
  13989. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  13990. test -n "$$unique" || unique=$$empty_fix; \
  13991. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  13992. - $$tags $$unique; \
  13993. + if test $$# -gt 0; then \
  13994. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  13995. + "$$@" $$unique; \
  13996. + else \
  13997. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  13998. + $$unique; \
  13999. + fi; \
  14000. fi
  14001. ctags: CTAGS
  14002. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  14003. $(TAGS_FILES) $(LISP)
  14004. - tags=; \
  14005. - here=`pwd`; \
  14006. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  14007. unique=`for i in $$list; do \
  14008. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  14009. done | \
  14010. - $(AWK) ' { files[$$0] = 1; } \
  14011. - END { for (i in files) print i; }'`; \
  14012. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  14013. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  14014. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  14015. + test -z "$(CTAGS_ARGS)$$unique" \
  14016. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  14017. - $$tags $$unique
  14018. + $$unique
  14019. GTAGS:
  14020. here=`$(am__cd) $(top_builddir) && pwd` \
  14021. - && cd $(top_srcdir) \
  14022. - && gtags -i $(GTAGS_ARGS) $$here
  14023. + && $(am__cd) $(top_srcdir) \
  14024. + && gtags -i $(GTAGS_ARGS) "$$here"
  14025. distclean-tags:
  14026. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  14027. distdir: $(DISTFILES)
  14028. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  14029. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  14030. - list='$(DISTFILES)'; for file in $$list; do \
  14031. - case $$file in \
  14032. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  14033. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  14034. - esac; \
  14035. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  14036. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  14037. + list='$(DISTFILES)'; \
  14038. + dist_files=`for file in $$list; do echo $$file; done | \
  14039. + sed -e "s|^$$srcdirstrip/||;t" \
  14040. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  14041. + case $$dist_files in \
  14042. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  14043. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  14044. + sort -u` ;; \
  14045. + esac; \
  14046. + for file in $$dist_files; do \
  14047. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  14048. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  14049. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  14050. - dir="/$$dir"; \
  14051. - $(mkdir_p) "$(distdir)$$dir"; \
  14052. - else \
  14053. - dir=''; \
  14054. - fi; \
  14055. if test -d $$d/$$file; then \
  14056. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  14057. + if test -d "$(distdir)/$$file"; then \
  14058. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  14059. + fi; \
  14060. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  14061. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  14062. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  14063. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  14064. fi; \
  14065. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  14066. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  14067. else \
  14068. - test -f $(distdir)/$$file \
  14069. - || cp -p $$d/$$file $(distdir)/$$file \
  14070. + test -f "$(distdir)/$$file" \
  14071. + || cp -p $$d/$$file "$(distdir)/$$file" \
  14072. || exit 1; \
  14073. fi; \
  14074. done
  14075. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  14076. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  14077. if test "$$subdir" = .; then :; else \
  14078. test -d "$(distdir)/$$subdir" \
  14079. - || $(mkdir_p) "$(distdir)/$$subdir" \
  14080. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  14081. || exit 1; \
  14082. - distdir=`$(am__cd) $(distdir) && pwd`; \
  14083. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  14084. - (cd $$subdir && \
  14085. + fi; \
  14086. + done
  14087. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  14088. + if test "$$subdir" = .; then :; else \
  14089. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  14090. + $(am__relativize); \
  14091. + new_distdir=$$reldir; \
  14092. + dir1=$$subdir; dir2="$(top_distdir)"; \
  14093. + $(am__relativize); \
  14094. + new_top_distdir=$$reldir; \
  14095. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  14096. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  14097. + ($(am__cd) $$subdir && \
  14098. $(MAKE) $(AM_MAKEFLAGS) \
  14099. - top_distdir="$$top_distdir" \
  14100. - distdir="$$distdir/$$subdir" \
  14101. + top_distdir="$$new_top_distdir" \
  14102. + distdir="$$new_distdir" \
  14103. + am__remove_distdir=: \
  14104. + am__skip_length_check=: \
  14105. + am__skip_mode_fix=: \
  14106. distdir) \
  14107. || exit 1; \
  14108. fi; \
  14109. @@ -410,6 +467,7 @@
  14110. distclean-generic:
  14111. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  14112. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  14113. maintainer-clean-generic:
  14114. @echo "This command is intended for maintainers to use"
  14115. @@ -420,8 +478,7 @@
  14116. distclean: distclean-recursive
  14117. -rm -f Makefile
  14118. -distclean-am: clean-am distclean-generic distclean-libtool \
  14119. - distclean-tags
  14120. +distclean-am: clean-am distclean-generic distclean-tags
  14121. dvi: dvi-recursive
  14122. @@ -429,18 +486,38 @@
  14123. html: html-recursive
  14124. +html-am:
  14125. +
  14126. info: info-recursive
  14127. info-am:
  14128. install-data-am:
  14129. +install-dvi: install-dvi-recursive
  14130. +
  14131. +install-dvi-am:
  14132. +
  14133. install-exec-am:
  14134. +install-html: install-html-recursive
  14135. +
  14136. +install-html-am:
  14137. +
  14138. install-info: install-info-recursive
  14139. +install-info-am:
  14140. +
  14141. install-man:
  14142. +install-pdf: install-pdf-recursive
  14143. +
  14144. +install-pdf-am:
  14145. +
  14146. +install-ps: install-ps-recursive
  14147. +
  14148. +install-ps-am:
  14149. +
  14150. installcheck-am:
  14151. maintainer-clean: maintainer-clean-recursive
  14152. @@ -459,22 +536,25 @@
  14153. ps-am:
  14154. -uninstall-am: uninstall-info-am
  14155. +uninstall-am:
  14156. -uninstall-info: uninstall-info-recursive
  14157. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  14158. + install-am install-strip tags-recursive
  14159. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  14160. - clean clean-generic clean-libtool clean-recursive ctags \
  14161. - ctags-recursive distclean distclean-generic distclean-libtool \
  14162. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  14163. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  14164. + all all-am check check-am clean clean-generic clean-libtool \
  14165. + ctags ctags-recursive distclean distclean-generic \
  14166. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  14167. html-am info info-am install install-am install-data \
  14168. - install-data-am install-exec install-exec-am install-info \
  14169. - install-info-am install-man install-strip installcheck \
  14170. + install-data-am install-dvi install-dvi-am install-exec \
  14171. + install-exec-am install-html install-html-am install-info \
  14172. + install-info-am install-man install-pdf install-pdf-am \
  14173. + install-ps install-ps-am install-strip installcheck \
  14174. installcheck-am installdirs installdirs-am maintainer-clean \
  14175. - maintainer-clean-generic maintainer-clean-recursive \
  14176. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  14177. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  14178. - uninstall uninstall-am uninstall-info-am
  14179. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  14180. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  14181. + uninstall uninstall-am
  14182. +
  14183. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14184. # Otherwise a system limit (for SysV at least) may be exceeded.
  14185. diff -Nur faad2-2.7.orig/common/mp4ff/Makefile.in faad2-2.7/common/mp4ff/Makefile.in
  14186. --- faad2-2.7.orig/common/mp4ff/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  14187. +++ faad2-2.7/common/mp4ff/Makefile.in 2011-02-16 17:55:07.783563044 +0100
  14188. @@ -1,8 +1,9 @@
  14189. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  14190. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  14191. # @configure_input@
  14192. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  14193. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  14194. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14195. +# Inc.
  14196. # This Makefile.in is free software; the Free Software Foundation
  14197. # gives unlimited permission to copy and/or distribute it,
  14198. # with or without modifications, as long as this notice is preserved.
  14199. @@ -15,15 +16,12 @@
  14200. @SET_MAKE@
  14201. -srcdir = @srcdir@
  14202. -top_srcdir = @top_srcdir@
  14203. VPATH = @srcdir@
  14204. pkgdatadir = $(datadir)/@PACKAGE@
  14205. -pkglibdir = $(libdir)/@PACKAGE@
  14206. pkgincludedir = $(includedir)/@PACKAGE@
  14207. -top_builddir = ../..
  14208. +pkglibdir = $(libdir)/@PACKAGE@
  14209. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  14210. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  14211. -INSTALL = @INSTALL@
  14212. install_sh_DATA = $(install_sh) -c -m 644
  14213. install_sh_PROGRAM = $(install_sh) -c
  14214. install_sh_SCRIPT = $(install_sh) -c
  14215. @@ -47,14 +45,29 @@
  14216. mkinstalldirs = $(install_sh) -d
  14217. CONFIG_HEADER = $(top_builddir)/config.h
  14218. CONFIG_CLEAN_FILES =
  14219. +CONFIG_CLEAN_VPATH_FILES =
  14220. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  14221. am__vpath_adj = case $$p in \
  14222. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  14223. *) f=$$p;; \
  14224. esac;
  14225. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  14226. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  14227. +am__install_max = 40
  14228. +am__nobase_strip_setup = \
  14229. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  14230. +am__nobase_strip = \
  14231. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  14232. +am__nobase_list = $(am__nobase_strip_setup); \
  14233. + for p in $$list; do echo "$$p $$p"; done | \
  14234. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  14235. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  14236. + if (++n[$$2] == $(am__install_max)) \
  14237. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  14238. + END { for (dir in files) print dir, files[dir] }'
  14239. +am__base_list = \
  14240. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  14241. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  14242. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  14243. -libLIBRARIES_INSTALL = $(INSTALL_DATA)
  14244. LIBRARIES = $(lib_LIBRARIES)
  14245. ARFLAGS = cru
  14246. libmp4ff_a_AR = $(AR) $(ARFLAGS)
  14247. @@ -64,27 +77,26 @@
  14248. libmp4ff_a-mp4sample.$(OBJEXT) libmp4ff_a-mp4util.$(OBJEXT) \
  14249. libmp4ff_a-mp4tagupdate.$(OBJEXT)
  14250. libmp4ff_a_OBJECTS = $(am_libmp4ff_a_OBJECTS)
  14251. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  14252. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  14253. depcomp = $(SHELL) $(top_srcdir)/depcomp
  14254. am__depfiles_maybe = depfiles
  14255. +am__mv = mv -f
  14256. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  14257. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  14258. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  14259. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  14260. - $(AM_CFLAGS) $(CFLAGS)
  14261. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  14262. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  14263. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  14264. CCLD = $(CC)
  14265. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  14266. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  14267. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  14268. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  14269. + $(LDFLAGS) -o $@
  14270. SOURCES = $(libmp4ff_a_SOURCES)
  14271. DIST_SOURCES = $(libmp4ff_a_SOURCES)
  14272. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  14273. HEADERS = $(include_HEADERS)
  14274. ETAGS = etags
  14275. CTAGS = ctags
  14276. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  14277. ACLOCAL = @ACLOCAL@
  14278. -AMDEP_FALSE = @AMDEP_FALSE@
  14279. -AMDEP_TRUE = @AMDEP_TRUE@
  14280. AMTAR = @AMTAR@
  14281. AR = @AR@
  14282. AUTOCONF = @AUTOCONF@
  14283. @@ -103,55 +115,62 @@
  14284. CYGPATH_W = @CYGPATH_W@
  14285. DEFS = @DEFS@
  14286. DEPDIR = @DEPDIR@
  14287. -ECHO = @ECHO@
  14288. +DSYMUTIL = @DSYMUTIL@
  14289. +DUMPBIN = @DUMPBIN@
  14290. ECHO_C = @ECHO_C@
  14291. ECHO_N = @ECHO_N@
  14292. ECHO_T = @ECHO_T@
  14293. EGREP = @EGREP@
  14294. EXEEXT = @EXEEXT@
  14295. -F77 = @F77@
  14296. -FFLAGS = @FFLAGS@
  14297. +FGREP = @FGREP@
  14298. GREP = @GREP@
  14299. GTK_CONFIG = @GTK_CONFIG@
  14300. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  14301. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  14302. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  14303. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  14304. +INSTALL = @INSTALL@
  14305. INSTALL_DATA = @INSTALL_DATA@
  14306. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  14307. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  14308. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  14309. +LD = @LD@
  14310. LDFLAGS = @LDFLAGS@
  14311. LIBOBJS = @LIBOBJS@
  14312. LIBS = @LIBS@
  14313. LIBTOOL = @LIBTOOL@
  14314. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  14315. +LIPO = @LIPO@
  14316. LN_S = @LN_S@
  14317. LTLIBOBJS = @LTLIBOBJS@
  14318. MAKEINFO = @MAKEINFO@
  14319. +MKDIR_P = @MKDIR_P@
  14320. MP4FF_LIBS = @MP4FF_LIBS@
  14321. +NM = @NM@
  14322. +NMEDIT = @NMEDIT@
  14323. +OBJDUMP = @OBJDUMP@
  14324. OBJEXT = @OBJEXT@
  14325. +OTOOL = @OTOOL@
  14326. +OTOOL64 = @OTOOL64@
  14327. PACKAGE = @PACKAGE@
  14328. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  14329. PACKAGE_NAME = @PACKAGE_NAME@
  14330. PACKAGE_STRING = @PACKAGE_STRING@
  14331. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  14332. +PACKAGE_URL = @PACKAGE_URL@
  14333. PACKAGE_VERSION = @PACKAGE_VERSION@
  14334. PATH_SEPARATOR = @PATH_SEPARATOR@
  14335. RANLIB = @RANLIB@
  14336. RPMBUILD = @RPMBUILD@
  14337. +SED = @SED@
  14338. SET_MAKE = @SET_MAKE@
  14339. SHELL = @SHELL@
  14340. STRIP = @STRIP@
  14341. VERSION = @VERSION@
  14342. XMMS_CONFIG = @XMMS_CONFIG@
  14343. +abs_builddir = @abs_builddir@
  14344. +abs_srcdir = @abs_srcdir@
  14345. +abs_top_builddir = @abs_top_builddir@
  14346. +abs_top_srcdir = @abs_top_srcdir@
  14347. ac_ct_CC = @ac_ct_CC@
  14348. ac_ct_CXX = @ac_ct_CXX@
  14349. -ac_ct_F77 = @ac_ct_F77@
  14350. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  14351. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  14352. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  14353. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  14354. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  14355. am__include = @am__include@
  14356. am__leading_dot = @am__leading_dot@
  14357. am__quote = @am__quote@
  14358. @@ -163,6 +182,7 @@
  14359. build_cpu = @build_cpu@
  14360. build_os = @build_os@
  14361. build_vendor = @build_vendor@
  14362. +builddir = @builddir@
  14363. datadir = @datadir@
  14364. datarootdir = @datarootdir@
  14365. docdir = @docdir@
  14366. @@ -182,6 +202,7 @@
  14367. libexecdir = @libexecdir@
  14368. localedir = @localedir@
  14369. localstatedir = @localstatedir@
  14370. +lt_ECHO = @lt_ECHO@
  14371. mandir = @mandir@
  14372. mkdir_p = @mkdir_p@
  14373. oldincludedir = @oldincludedir@
  14374. @@ -191,8 +212,12 @@
  14375. psdir = @psdir@
  14376. sbindir = @sbindir@
  14377. sharedstatedir = @sharedstatedir@
  14378. +srcdir = @srcdir@
  14379. sysconfdir = @sysconfdir@
  14380. target_alias = @target_alias@
  14381. +top_build_prefix = @top_build_prefix@
  14382. +top_builddir = @top_builddir@
  14383. +top_srcdir = @top_srcdir@
  14384. lib_LIBRARIES = libmp4ff.a
  14385. include_HEADERS = mp4ff.h mp4ffint.h
  14386. libmp4ff_a_CFLAGS = -DUSE_TAGGING=1
  14387. @@ -207,14 +232,14 @@
  14388. @for dep in $?; do \
  14389. case '$(am__configure_deps)' in \
  14390. *$$dep*) \
  14391. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  14392. - && exit 0; \
  14393. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  14394. + && { if test -f $@; then exit 0; else break; fi; }; \
  14395. exit 1;; \
  14396. esac; \
  14397. done; \
  14398. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/mp4ff/Makefile'; \
  14399. - cd $(top_srcdir) && \
  14400. - $(AUTOMAKE) --gnu common/mp4ff/Makefile
  14401. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/mp4ff/Makefile'; \
  14402. + $(am__cd) $(top_srcdir) && \
  14403. + $(AUTOMAKE) --gnu common/mp4ff/Makefile
  14404. .PRECIOUS: Makefile
  14405. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14406. @case '$?' in \
  14407. @@ -232,32 +257,36 @@
  14408. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  14409. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  14410. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  14411. +$(am__aclocal_m4_deps):
  14412. install-libLIBRARIES: $(lib_LIBRARIES)
  14413. @$(NORMAL_INSTALL)
  14414. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  14415. - @list='$(lib_LIBRARIES)'; for p in $$list; do \
  14416. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  14417. + @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
  14418. + list2=; for p in $$list; do \
  14419. if test -f $$p; then \
  14420. - f=$(am__strip_dir) \
  14421. - echo " $(libLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  14422. - $(libLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  14423. + list2="$$list2 $$p"; \
  14424. else :; fi; \
  14425. - done
  14426. + done; \
  14427. + test -z "$$list2" || { \
  14428. + echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
  14429. + $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
  14430. @$(POST_INSTALL)
  14431. - @list='$(lib_LIBRARIES)'; for p in $$list; do \
  14432. + @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
  14433. + for p in $$list; do \
  14434. if test -f $$p; then \
  14435. - p=$(am__strip_dir) \
  14436. - echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
  14437. - $(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
  14438. + $(am__strip_dir) \
  14439. + echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
  14440. + ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
  14441. else :; fi; \
  14442. done
  14443. uninstall-libLIBRARIES:
  14444. @$(NORMAL_UNINSTALL)
  14445. - @list='$(lib_LIBRARIES)'; for p in $$list; do \
  14446. - p=$(am__strip_dir) \
  14447. - echo " rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  14448. - rm -f "$(DESTDIR)$(libdir)/$$p"; \
  14449. - done
  14450. + @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
  14451. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  14452. + test -n "$$files" || exit 0; \
  14453. + echo " ( cd '$(DESTDIR)$(libdir)' && rm -f "$$files" )"; \
  14454. + cd "$(DESTDIR)$(libdir)" && rm -f $$files
  14455. clean-libLIBRARIES:
  14456. -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
  14457. @@ -280,106 +309,106 @@
  14458. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4util.Po@am__quote@
  14459. .c.o:
  14460. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  14461. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  14462. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  14463. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  14464. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  14465. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14466. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  14467. .c.obj:
  14468. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  14469. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  14470. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  14471. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  14472. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  14473. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14474. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  14475. .c.lo:
  14476. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  14477. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  14478. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  14479. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  14480. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  14481. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14482. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  14483. libmp4ff_a-mp4ff.o: mp4ff.c
  14484. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" -c -o libmp4ff_a-mp4ff.o `test -f 'mp4ff.c' || echo '$(srcdir)/'`mp4ff.c; \
  14485. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" "$(DEPDIR)/libmp4ff_a-mp4ff.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo"; exit 1; fi
  14486. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4ff.Tpo -c -o libmp4ff_a-mp4ff.o `test -f 'mp4ff.c' || echo '$(srcdir)/'`mp4ff.c
  14487. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4ff.Tpo $(DEPDIR)/libmp4ff_a-mp4ff.Po
  14488. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4ff.c' object='libmp4ff_a-mp4ff.o' libtool=no @AMDEPBACKSLASH@
  14489. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14490. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4ff.o `test -f 'mp4ff.c' || echo '$(srcdir)/'`mp4ff.c
  14491. libmp4ff_a-mp4ff.obj: mp4ff.c
  14492. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" -c -o libmp4ff_a-mp4ff.obj `if test -f 'mp4ff.c'; then $(CYGPATH_W) 'mp4ff.c'; else $(CYGPATH_W) '$(srcdir)/mp4ff.c'; fi`; \
  14493. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" "$(DEPDIR)/libmp4ff_a-mp4ff.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo"; exit 1; fi
  14494. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4ff.Tpo -c -o libmp4ff_a-mp4ff.obj `if test -f 'mp4ff.c'; then $(CYGPATH_W) 'mp4ff.c'; else $(CYGPATH_W) '$(srcdir)/mp4ff.c'; fi`
  14495. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4ff.Tpo $(DEPDIR)/libmp4ff_a-mp4ff.Po
  14496. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4ff.c' object='libmp4ff_a-mp4ff.obj' libtool=no @AMDEPBACKSLASH@
  14497. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14498. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4ff.obj `if test -f 'mp4ff.c'; then $(CYGPATH_W) 'mp4ff.c'; else $(CYGPATH_W) '$(srcdir)/mp4ff.c'; fi`
  14499. libmp4ff_a-mp4atom.o: mp4atom.c
  14500. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" -c -o libmp4ff_a-mp4atom.o `test -f 'mp4atom.c' || echo '$(srcdir)/'`mp4atom.c; \
  14501. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" "$(DEPDIR)/libmp4ff_a-mp4atom.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo"; exit 1; fi
  14502. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4atom.Tpo -c -o libmp4ff_a-mp4atom.o `test -f 'mp4atom.c' || echo '$(srcdir)/'`mp4atom.c
  14503. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4atom.Tpo $(DEPDIR)/libmp4ff_a-mp4atom.Po
  14504. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4atom.c' object='libmp4ff_a-mp4atom.o' libtool=no @AMDEPBACKSLASH@
  14505. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14506. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4atom.o `test -f 'mp4atom.c' || echo '$(srcdir)/'`mp4atom.c
  14507. libmp4ff_a-mp4atom.obj: mp4atom.c
  14508. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" -c -o libmp4ff_a-mp4atom.obj `if test -f 'mp4atom.c'; then $(CYGPATH_W) 'mp4atom.c'; else $(CYGPATH_W) '$(srcdir)/mp4atom.c'; fi`; \
  14509. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" "$(DEPDIR)/libmp4ff_a-mp4atom.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo"; exit 1; fi
  14510. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4atom.Tpo -c -o libmp4ff_a-mp4atom.obj `if test -f 'mp4atom.c'; then $(CYGPATH_W) 'mp4atom.c'; else $(CYGPATH_W) '$(srcdir)/mp4atom.c'; fi`
  14511. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4atom.Tpo $(DEPDIR)/libmp4ff_a-mp4atom.Po
  14512. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4atom.c' object='libmp4ff_a-mp4atom.obj' libtool=no @AMDEPBACKSLASH@
  14513. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14514. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4atom.obj `if test -f 'mp4atom.c'; then $(CYGPATH_W) 'mp4atom.c'; else $(CYGPATH_W) '$(srcdir)/mp4atom.c'; fi`
  14515. libmp4ff_a-mp4meta.o: mp4meta.c
  14516. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" -c -o libmp4ff_a-mp4meta.o `test -f 'mp4meta.c' || echo '$(srcdir)/'`mp4meta.c; \
  14517. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" "$(DEPDIR)/libmp4ff_a-mp4meta.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo"; exit 1; fi
  14518. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4meta.Tpo -c -o libmp4ff_a-mp4meta.o `test -f 'mp4meta.c' || echo '$(srcdir)/'`mp4meta.c
  14519. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4meta.Tpo $(DEPDIR)/libmp4ff_a-mp4meta.Po
  14520. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4meta.c' object='libmp4ff_a-mp4meta.o' libtool=no @AMDEPBACKSLASH@
  14521. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14522. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4meta.o `test -f 'mp4meta.c' || echo '$(srcdir)/'`mp4meta.c
  14523. libmp4ff_a-mp4meta.obj: mp4meta.c
  14524. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" -c -o libmp4ff_a-mp4meta.obj `if test -f 'mp4meta.c'; then $(CYGPATH_W) 'mp4meta.c'; else $(CYGPATH_W) '$(srcdir)/mp4meta.c'; fi`; \
  14525. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" "$(DEPDIR)/libmp4ff_a-mp4meta.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo"; exit 1; fi
  14526. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4meta.Tpo -c -o libmp4ff_a-mp4meta.obj `if test -f 'mp4meta.c'; then $(CYGPATH_W) 'mp4meta.c'; else $(CYGPATH_W) '$(srcdir)/mp4meta.c'; fi`
  14527. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4meta.Tpo $(DEPDIR)/libmp4ff_a-mp4meta.Po
  14528. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4meta.c' object='libmp4ff_a-mp4meta.obj' libtool=no @AMDEPBACKSLASH@
  14529. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14530. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4meta.obj `if test -f 'mp4meta.c'; then $(CYGPATH_W) 'mp4meta.c'; else $(CYGPATH_W) '$(srcdir)/mp4meta.c'; fi`
  14531. libmp4ff_a-mp4sample.o: mp4sample.c
  14532. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" -c -o libmp4ff_a-mp4sample.o `test -f 'mp4sample.c' || echo '$(srcdir)/'`mp4sample.c; \
  14533. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" "$(DEPDIR)/libmp4ff_a-mp4sample.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo"; exit 1; fi
  14534. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4sample.Tpo -c -o libmp4ff_a-mp4sample.o `test -f 'mp4sample.c' || echo '$(srcdir)/'`mp4sample.c
  14535. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4sample.Tpo $(DEPDIR)/libmp4ff_a-mp4sample.Po
  14536. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4sample.c' object='libmp4ff_a-mp4sample.o' libtool=no @AMDEPBACKSLASH@
  14537. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14538. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4sample.o `test -f 'mp4sample.c' || echo '$(srcdir)/'`mp4sample.c
  14539. libmp4ff_a-mp4sample.obj: mp4sample.c
  14540. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" -c -o libmp4ff_a-mp4sample.obj `if test -f 'mp4sample.c'; then $(CYGPATH_W) 'mp4sample.c'; else $(CYGPATH_W) '$(srcdir)/mp4sample.c'; fi`; \
  14541. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" "$(DEPDIR)/libmp4ff_a-mp4sample.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo"; exit 1; fi
  14542. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4sample.Tpo -c -o libmp4ff_a-mp4sample.obj `if test -f 'mp4sample.c'; then $(CYGPATH_W) 'mp4sample.c'; else $(CYGPATH_W) '$(srcdir)/mp4sample.c'; fi`
  14543. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4sample.Tpo $(DEPDIR)/libmp4ff_a-mp4sample.Po
  14544. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4sample.c' object='libmp4ff_a-mp4sample.obj' libtool=no @AMDEPBACKSLASH@
  14545. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14546. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4sample.obj `if test -f 'mp4sample.c'; then $(CYGPATH_W) 'mp4sample.c'; else $(CYGPATH_W) '$(srcdir)/mp4sample.c'; fi`
  14547. libmp4ff_a-mp4util.o: mp4util.c
  14548. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" -c -o libmp4ff_a-mp4util.o `test -f 'mp4util.c' || echo '$(srcdir)/'`mp4util.c; \
  14549. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" "$(DEPDIR)/libmp4ff_a-mp4util.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo"; exit 1; fi
  14550. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4util.Tpo -c -o libmp4ff_a-mp4util.o `test -f 'mp4util.c' || echo '$(srcdir)/'`mp4util.c
  14551. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4util.Tpo $(DEPDIR)/libmp4ff_a-mp4util.Po
  14552. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4util.c' object='libmp4ff_a-mp4util.o' libtool=no @AMDEPBACKSLASH@
  14553. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14554. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4util.o `test -f 'mp4util.c' || echo '$(srcdir)/'`mp4util.c
  14555. libmp4ff_a-mp4util.obj: mp4util.c
  14556. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" -c -o libmp4ff_a-mp4util.obj `if test -f 'mp4util.c'; then $(CYGPATH_W) 'mp4util.c'; else $(CYGPATH_W) '$(srcdir)/mp4util.c'; fi`; \
  14557. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" "$(DEPDIR)/libmp4ff_a-mp4util.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo"; exit 1; fi
  14558. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4util.Tpo -c -o libmp4ff_a-mp4util.obj `if test -f 'mp4util.c'; then $(CYGPATH_W) 'mp4util.c'; else $(CYGPATH_W) '$(srcdir)/mp4util.c'; fi`
  14559. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4util.Tpo $(DEPDIR)/libmp4ff_a-mp4util.Po
  14560. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4util.c' object='libmp4ff_a-mp4util.obj' libtool=no @AMDEPBACKSLASH@
  14561. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14562. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4util.obj `if test -f 'mp4util.c'; then $(CYGPATH_W) 'mp4util.c'; else $(CYGPATH_W) '$(srcdir)/mp4util.c'; fi`
  14563. libmp4ff_a-mp4tagupdate.o: mp4tagupdate.c
  14564. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" -c -o libmp4ff_a-mp4tagupdate.o `test -f 'mp4tagupdate.c' || echo '$(srcdir)/'`mp4tagupdate.c; \
  14565. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo"; exit 1; fi
  14566. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.o -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo -c -o libmp4ff_a-mp4tagupdate.o `test -f 'mp4tagupdate.c' || echo '$(srcdir)/'`mp4tagupdate.c
  14567. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo $(DEPDIR)/libmp4ff_a-mp4tagupdate.Po
  14568. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4tagupdate.c' object='libmp4ff_a-mp4tagupdate.o' libtool=no @AMDEPBACKSLASH@
  14569. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14570. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4tagupdate.o `test -f 'mp4tagupdate.c' || echo '$(srcdir)/'`mp4tagupdate.c
  14571. libmp4ff_a-mp4tagupdate.obj: mp4tagupdate.c
  14572. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" -c -o libmp4ff_a-mp4tagupdate.obj `if test -f 'mp4tagupdate.c'; then $(CYGPATH_W) 'mp4tagupdate.c'; else $(CYGPATH_W) '$(srcdir)/mp4tagupdate.c'; fi`; \
  14573. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo"; exit 1; fi
  14574. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.obj -MD -MP -MF $(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo -c -o libmp4ff_a-mp4tagupdate.obj `if test -f 'mp4tagupdate.c'; then $(CYGPATH_W) 'mp4tagupdate.c'; else $(CYGPATH_W) '$(srcdir)/mp4tagupdate.c'; fi`
  14575. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo $(DEPDIR)/libmp4ff_a-mp4tagupdate.Po
  14576. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4tagupdate.c' object='libmp4ff_a-mp4tagupdate.obj' libtool=no @AMDEPBACKSLASH@
  14577. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  14578. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4tagupdate.obj `if test -f 'mp4tagupdate.c'; then $(CYGPATH_W) 'mp4tagupdate.c'; else $(CYGPATH_W) '$(srcdir)/mp4tagupdate.c'; fi`
  14579. @@ -389,100 +418,106 @@
  14580. clean-libtool:
  14581. -rm -rf .libs _libs
  14582. -
  14583. -distclean-libtool:
  14584. - -rm -f libtool
  14585. -uninstall-info-am:
  14586. install-includeHEADERS: $(include_HEADERS)
  14587. @$(NORMAL_INSTALL)
  14588. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  14589. - @list='$(include_HEADERS)'; for p in $$list; do \
  14590. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  14591. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  14592. + for p in $$list; do \
  14593. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  14594. - f=$(am__strip_dir) \
  14595. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  14596. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  14597. + echo "$$d$$p"; \
  14598. + done | $(am__base_list) | \
  14599. + while read files; do \
  14600. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  14601. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  14602. done
  14603. uninstall-includeHEADERS:
  14604. @$(NORMAL_UNINSTALL)
  14605. - @list='$(include_HEADERS)'; for p in $$list; do \
  14606. - f=$(am__strip_dir) \
  14607. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  14608. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  14609. - done
  14610. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  14611. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  14612. + test -n "$$files" || exit 0; \
  14613. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  14614. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  14615. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  14616. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  14617. unique=`for i in $$list; do \
  14618. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  14619. done | \
  14620. - $(AWK) ' { files[$$0] = 1; } \
  14621. - END { for (i in files) print i; }'`; \
  14622. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  14623. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  14624. mkid -fID $$unique
  14625. tags: TAGS
  14626. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  14627. $(TAGS_FILES) $(LISP)
  14628. - tags=; \
  14629. + set x; \
  14630. here=`pwd`; \
  14631. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  14632. unique=`for i in $$list; do \
  14633. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  14634. done | \
  14635. - $(AWK) ' { files[$$0] = 1; } \
  14636. - END { for (i in files) print i; }'`; \
  14637. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  14638. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  14639. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  14640. + shift; \
  14641. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  14642. test -n "$$unique" || unique=$$empty_fix; \
  14643. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  14644. - $$tags $$unique; \
  14645. + if test $$# -gt 0; then \
  14646. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  14647. + "$$@" $$unique; \
  14648. + else \
  14649. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  14650. + $$unique; \
  14651. + fi; \
  14652. fi
  14653. ctags: CTAGS
  14654. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  14655. $(TAGS_FILES) $(LISP)
  14656. - tags=; \
  14657. - here=`pwd`; \
  14658. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  14659. unique=`for i in $$list; do \
  14660. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  14661. done | \
  14662. - $(AWK) ' { files[$$0] = 1; } \
  14663. - END { for (i in files) print i; }'`; \
  14664. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  14665. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  14666. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  14667. + test -z "$(CTAGS_ARGS)$$unique" \
  14668. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  14669. - $$tags $$unique
  14670. + $$unique
  14671. GTAGS:
  14672. here=`$(am__cd) $(top_builddir) && pwd` \
  14673. - && cd $(top_srcdir) \
  14674. - && gtags -i $(GTAGS_ARGS) $$here
  14675. + && $(am__cd) $(top_srcdir) \
  14676. + && gtags -i $(GTAGS_ARGS) "$$here"
  14677. distclean-tags:
  14678. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  14679. distdir: $(DISTFILES)
  14680. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  14681. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  14682. - list='$(DISTFILES)'; for file in $$list; do \
  14683. - case $$file in \
  14684. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  14685. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  14686. - esac; \
  14687. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  14688. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  14689. + list='$(DISTFILES)'; \
  14690. + dist_files=`for file in $$list; do echo $$file; done | \
  14691. + sed -e "s|^$$srcdirstrip/||;t" \
  14692. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  14693. + case $$dist_files in \
  14694. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  14695. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  14696. + sort -u` ;; \
  14697. + esac; \
  14698. + for file in $$dist_files; do \
  14699. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  14700. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  14701. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  14702. - dir="/$$dir"; \
  14703. - $(mkdir_p) "$(distdir)$$dir"; \
  14704. - else \
  14705. - dir=''; \
  14706. - fi; \
  14707. if test -d $$d/$$file; then \
  14708. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  14709. + if test -d "$(distdir)/$$file"; then \
  14710. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  14711. + fi; \
  14712. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  14713. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  14714. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  14715. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  14716. fi; \
  14717. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  14718. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  14719. else \
  14720. - test -f $(distdir)/$$file \
  14721. - || cp -p $$d/$$file $(distdir)/$$file \
  14722. + test -f "$(distdir)/$$file" \
  14723. + || cp -p $$d/$$file "$(distdir)/$$file" \
  14724. || exit 1; \
  14725. fi; \
  14726. done
  14727. @@ -491,7 +526,7 @@
  14728. all-am: Makefile $(LIBRARIES) $(HEADERS)
  14729. installdirs:
  14730. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  14731. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  14732. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  14733. done
  14734. install: install-am
  14735. install-exec: install-exec-am
  14736. @@ -513,6 +548,7 @@
  14737. distclean-generic:
  14738. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  14739. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  14740. maintainer-clean-generic:
  14741. @echo "This command is intended for maintainers to use"
  14742. @@ -526,7 +562,7 @@
  14743. -rm -rf ./$(DEPDIR)
  14744. -rm -f Makefile
  14745. distclean-am: clean-am distclean-compile distclean-generic \
  14746. - distclean-libtool distclean-tags
  14747. + distclean-tags
  14748. dvi: dvi-am
  14749. @@ -534,18 +570,38 @@
  14750. html: html-am
  14751. +html-am:
  14752. +
  14753. info: info-am
  14754. info-am:
  14755. install-data-am: install-includeHEADERS
  14756. +install-dvi: install-dvi-am
  14757. +
  14758. +install-dvi-am:
  14759. +
  14760. install-exec-am: install-libLIBRARIES
  14761. +install-html: install-html-am
  14762. +
  14763. +install-html-am:
  14764. +
  14765. install-info: install-info-am
  14766. +install-info-am:
  14767. +
  14768. install-man:
  14769. +install-pdf: install-pdf-am
  14770. +
  14771. +install-pdf-am:
  14772. +
  14773. +install-ps: install-ps-am
  14774. +
  14775. +install-ps-am:
  14776. +
  14777. installcheck-am:
  14778. maintainer-clean: maintainer-clean-am
  14779. @@ -566,21 +622,25 @@
  14780. ps-am:
  14781. -uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  14782. - uninstall-libLIBRARIES
  14783. +uninstall-am: uninstall-includeHEADERS uninstall-libLIBRARIES
  14784. +
  14785. +.MAKE: install-am install-strip
  14786. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  14787. clean-libLIBRARIES clean-libtool ctags distclean \
  14788. distclean-compile distclean-generic distclean-libtool \
  14789. distclean-tags distdir dvi dvi-am html html-am info info-am \
  14790. - install install-am install-data install-data-am install-exec \
  14791. - install-exec-am install-includeHEADERS install-info \
  14792. - install-info-am install-libLIBRARIES install-man install-strip \
  14793. + install install-am install-data install-data-am install-dvi \
  14794. + install-dvi-am install-exec install-exec-am install-html \
  14795. + install-html-am install-includeHEADERS install-info \
  14796. + install-info-am install-libLIBRARIES install-man install-pdf \
  14797. + install-pdf-am install-ps install-ps-am install-strip \
  14798. installcheck installcheck-am installdirs maintainer-clean \
  14799. maintainer-clean-generic mostlyclean mostlyclean-compile \
  14800. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  14801. tags uninstall uninstall-am uninstall-includeHEADERS \
  14802. - uninstall-info-am uninstall-libLIBRARIES
  14803. + uninstall-libLIBRARIES
  14804. +
  14805. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14806. # Otherwise a system limit (for SysV at least) may be exceeded.
  14807. diff -Nur faad2-2.7.orig/compile faad2-2.7/compile
  14808. --- faad2-2.7.orig/compile 2009-02-10 09:36:11.000000000 +0100
  14809. +++ faad2-2.7/compile 2011-02-16 17:55:07.603562913 +0100
  14810. @@ -1,9 +1,10 @@
  14811. #! /bin/sh
  14812. # Wrapper for compilers which do not understand `-c -o'.
  14813. -scriptversion=2005-05-14.22
  14814. +scriptversion=2009-10-06.20; # UTC
  14815. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  14816. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
  14817. +# Foundation, Inc.
  14818. # Written by Tom Tromey <tromey@cygnus.com>.
  14819. #
  14820. # This program is free software; you can redistribute it and/or modify
  14821. @@ -17,8 +18,7 @@
  14822. # GNU General Public License for more details.
  14823. #
  14824. # You should have received a copy of the GNU General Public License
  14825. -# along with this program; if not, write to the Free Software
  14826. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14827. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  14828. # As a special exception to the GNU General Public License, if you
  14829. # distribute this file as part of a program that contains a
  14830. @@ -103,13 +103,13 @@
  14831. fi
  14832. # Name of file we expect compiler to create.
  14833. -cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
  14834. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
  14835. # Create the lock directory.
  14836. -# Note: use `[/.-]' here to ensure that we don't use the same name
  14837. +# Note: use `[/\\:.-]' here to ensure that we don't use the same name
  14838. # that we are using for the .o file. Also, base the name on the expected
  14839. # object file name, since that is what matters with a parallel build.
  14840. -lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
  14841. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
  14842. while true; do
  14843. if mkdir "$lockdir" >/dev/null 2>&1; then
  14844. break
  14845. @@ -124,9 +124,9 @@
  14846. ret=$?
  14847. if test -f "$cofile"; then
  14848. - mv "$cofile" "$ofile"
  14849. + test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
  14850. elif test -f "${cofile}bj"; then
  14851. - mv "${cofile}bj" "$ofile"
  14852. + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
  14853. fi
  14854. rmdir "$lockdir"
  14855. @@ -138,5 +138,6 @@
  14856. # eval: (add-hook 'write-file-hooks 'time-stamp)
  14857. # time-stamp-start: "scriptversion="
  14858. # time-stamp-format: "%:y-%02m-%02d.%02H"
  14859. -# time-stamp-end: "$"
  14860. +# time-stamp-time-zone: "UTC"
  14861. +# time-stamp-end: "; # UTC"
  14862. # End:
  14863. diff -Nur faad2-2.7.orig/config.guess faad2-2.7/config.guess
  14864. --- faad2-2.7.orig/config.guess 2009-02-10 09:36:11.000000000 +0100
  14865. +++ faad2-2.7/config.guess 2011-02-16 17:55:07.603562913 +0100
  14866. @@ -1,10 +1,10 @@
  14867. #! /bin/sh
  14868. # Attempt to guess a canonical system name.
  14869. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14870. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  14871. -# Inc.
  14872. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14873. +# Free Software Foundation, Inc.
  14874. -timestamp='2006-07-02'
  14875. +timestamp='2009-06-10'
  14876. # This file is free software; you can redistribute it and/or modify it
  14877. # under the terms of the GNU General Public License as published by
  14878. @@ -56,8 +56,8 @@
  14879. GNU config.guess ($timestamp)
  14880. Originally written by Per Bothner.
  14881. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14882. -Free Software Foundation, Inc.
  14883. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14884. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14885. This is free software; see the source for copying conditions. There is NO
  14886. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14887. @@ -161,6 +161,7 @@
  14888. arm*) machine=arm-unknown ;;
  14889. sh3el) machine=shl-unknown ;;
  14890. sh3eb) machine=sh-unknown ;;
  14891. + sh5el) machine=sh5le-unknown ;;
  14892. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  14893. esac
  14894. # The Operating System including object format, if it has switched
  14895. @@ -169,7 +170,7 @@
  14896. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  14897. eval $set_cc_for_build
  14898. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14899. - | grep __ELF__ >/dev/null
  14900. + | grep -q __ELF__
  14901. then
  14902. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  14903. # Return netbsd for either. FIX?
  14904. @@ -323,14 +324,30 @@
  14905. case `/usr/bin/uname -p` in
  14906. sparc) echo sparc-icl-nx7; exit ;;
  14907. esac ;;
  14908. + s390x:SunOS:*:*)
  14909. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14910. + exit ;;
  14911. sun4H:SunOS:5.*:*)
  14912. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14913. exit ;;
  14914. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  14915. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14916. exit ;;
  14917. - i86pc:SunOS:5.*:*)
  14918. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14919. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  14920. + eval $set_cc_for_build
  14921. + SUN_ARCH="i386"
  14922. + # If there is a compiler, see if it is configured for 64-bit objects.
  14923. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  14924. + # This test works for both compilers.
  14925. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  14926. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  14927. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  14928. + grep IS_64BIT_ARCH >/dev/null
  14929. + then
  14930. + SUN_ARCH="x86_64"
  14931. + fi
  14932. + fi
  14933. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14934. exit ;;
  14935. sun4*:SunOS:6*:*)
  14936. # According to config.sub, this is the proper way to canonicalize
  14937. @@ -531,7 +548,7 @@
  14938. echo rs6000-ibm-aix3.2
  14939. fi
  14940. exit ;;
  14941. - *:AIX:*:[45])
  14942. + *:AIX:*:[456])
  14943. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14944. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14945. IBM_ARCH=rs6000
  14946. @@ -639,7 +656,7 @@
  14947. # => hppa64-hp-hpux11.23
  14948. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14949. - grep __LP64__ >/dev/null
  14950. + grep -q __LP64__
  14951. then
  14952. HP_ARCH="hppa2.0w"
  14953. else
  14954. @@ -780,7 +797,7 @@
  14955. i*:CYGWIN*:*)
  14956. echo ${UNAME_MACHINE}-pc-cygwin
  14957. exit ;;
  14958. - i*:MINGW*:*)
  14959. + *:MINGW*:*)
  14960. echo ${UNAME_MACHINE}-pc-mingw32
  14961. exit ;;
  14962. i*:windows32*:*)
  14963. @@ -790,15 +807,24 @@
  14964. i*:PW*:*)
  14965. echo ${UNAME_MACHINE}-pc-pw32
  14966. exit ;;
  14967. - x86:Interix*:[3456]*)
  14968. - echo i586-pc-interix${UNAME_RELEASE}
  14969. - exit ;;
  14970. - EM64T:Interix*:[3456]*)
  14971. - echo x86_64-unknown-interix${UNAME_RELEASE}
  14972. - exit ;;
  14973. + *:Interix*:[3456]*)
  14974. + case ${UNAME_MACHINE} in
  14975. + x86)
  14976. + echo i586-pc-interix${UNAME_RELEASE}
  14977. + exit ;;
  14978. + EM64T | authenticamd | genuineintel)
  14979. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14980. + exit ;;
  14981. + IA64)
  14982. + echo ia64-unknown-interix${UNAME_RELEASE}
  14983. + exit ;;
  14984. + esac ;;
  14985. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14986. echo i${UNAME_MACHINE}-pc-mks
  14987. exit ;;
  14988. + 8664:Windows_NT:*)
  14989. + echo x86_64-pc-mks
  14990. + exit ;;
  14991. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14992. # How do we know it's Interix rather than the generic POSIX subsystem?
  14993. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14994. @@ -829,7 +855,14 @@
  14995. echo ${UNAME_MACHINE}-pc-minix
  14996. exit ;;
  14997. arm*:Linux:*:*)
  14998. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  14999. + eval $set_cc_for_build
  15000. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  15001. + | grep -q __ARM_EABI__
  15002. + then
  15003. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  15004. + else
  15005. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  15006. + fi
  15007. exit ;;
  15008. avr32*:Linux:*:*)
  15009. echo ${UNAME_MACHINE}-unknown-linux-gnu
  15010. @@ -852,40 +885,17 @@
  15011. m68*:Linux:*:*)
  15012. echo ${UNAME_MACHINE}-unknown-linux-gnu
  15013. exit ;;
  15014. - mips:Linux:*:*)
  15015. + mips:Linux:*:* | mips64:Linux:*:*)
  15016. eval $set_cc_for_build
  15017. sed 's/^ //' << EOF >$dummy.c
  15018. #undef CPU
  15019. - #undef mips
  15020. - #undef mipsel
  15021. + #undef ${UNAME_MACHINE}
  15022. + #undef ${UNAME_MACHINE}el
  15023. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  15024. - CPU=mipsel
  15025. + CPU=${UNAME_MACHINE}el
  15026. #else
  15027. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  15028. - CPU=mips
  15029. - #else
  15030. - CPU=
  15031. - #endif
  15032. - #endif
  15033. -EOF
  15034. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  15035. - /^CPU/{
  15036. - s: ::g
  15037. - p
  15038. - }'`"
  15039. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  15040. - ;;
  15041. - mips64:Linux:*:*)
  15042. - eval $set_cc_for_build
  15043. - sed 's/^ //' << EOF >$dummy.c
  15044. - #undef CPU
  15045. - #undef mips64
  15046. - #undef mips64el
  15047. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  15048. - CPU=mips64el
  15049. - #else
  15050. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  15051. - CPU=mips64
  15052. + CPU=${UNAME_MACHINE}
  15053. #else
  15054. CPU=
  15055. #endif
  15056. @@ -917,10 +927,13 @@
  15057. EV67) UNAME_MACHINE=alphaev67 ;;
  15058. EV68*) UNAME_MACHINE=alphaev68 ;;
  15059. esac
  15060. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  15061. + objdump --private-headers /bin/sh | grep -q ld.so.1
  15062. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  15063. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  15064. exit ;;
  15065. + padre:Linux:*:*)
  15066. + echo sparc-unknown-linux-gnu
  15067. + exit ;;
  15068. parisc:Linux:*:* | hppa:Linux:*:*)
  15069. # Look for CPU level
  15070. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  15071. @@ -950,6 +963,9 @@
  15072. x86_64:Linux:*:*)
  15073. echo x86_64-unknown-linux-gnu
  15074. exit ;;
  15075. + xtensa*:Linux:*:*)
  15076. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  15077. + exit ;;
  15078. i*86:Linux:*:*)
  15079. # The BFD linker knows what the default object file format is, so
  15080. # first see if it will tell us. cd to the root directory to prevent
  15081. @@ -965,17 +981,6 @@
  15082. elf32-i386)
  15083. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  15084. ;;
  15085. - a.out-i386-linux)
  15086. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  15087. - exit ;;
  15088. - coff-i386)
  15089. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  15090. - exit ;;
  15091. - "")
  15092. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  15093. - # one that does not give us useful --help.
  15094. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  15095. - exit ;;
  15096. esac
  15097. # Determine whether the default compiler is a.out or elf
  15098. eval $set_cc_for_build
  15099. @@ -1041,7 +1046,7 @@
  15100. i*86:syllable:*:*)
  15101. echo ${UNAME_MACHINE}-pc-syllable
  15102. exit ;;
  15103. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  15104. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  15105. echo i386-unknown-lynxos${UNAME_RELEASE}
  15106. exit ;;
  15107. i*86:*DOS:*:*)
  15108. @@ -1085,8 +1090,11 @@
  15109. pc:*:*:*)
  15110. # Left here for compatibility:
  15111. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  15112. - # the processor, so we play safe by assuming i386.
  15113. - echo i386-pc-msdosdjgpp
  15114. + # the processor, so we play safe by assuming i586.
  15115. + # Note: whatever this is, it MUST be the same as what config.sub
  15116. + # prints for the "djgpp" host, or else GDB configury will decide that
  15117. + # this is a cross-build.
  15118. + echo i586-pc-msdosdjgpp
  15119. exit ;;
  15120. Intel:Mach:3*:*)
  15121. echo i386-pc-mach3
  15122. @@ -1124,6 +1132,16 @@
  15123. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  15124. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  15125. && { echo i486-ncr-sysv4; exit; } ;;
  15126. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  15127. + OS_REL='.3'
  15128. + test -r /etc/.relid \
  15129. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  15130. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  15131. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  15132. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  15133. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  15134. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  15135. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  15136. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  15137. echo m68k-unknown-lynxos${UNAME_RELEASE}
  15138. exit ;;
  15139. @@ -1136,7 +1154,7 @@
  15140. rs6000:LynxOS:2.*:*)
  15141. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  15142. exit ;;
  15143. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  15144. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  15145. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  15146. exit ;;
  15147. SM[BE]S:UNIX_SV:*:*)
  15148. @@ -1199,6 +1217,9 @@
  15149. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  15150. echo i586-pc-beos
  15151. exit ;;
  15152. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  15153. + echo i586-pc-haiku
  15154. + exit ;;
  15155. SX-4:SUPER-UX:*:*)
  15156. echo sx4-nec-superux${UNAME_RELEASE}
  15157. exit ;;
  15158. @@ -1208,6 +1229,15 @@
  15159. SX-6:SUPER-UX:*:*)
  15160. echo sx6-nec-superux${UNAME_RELEASE}
  15161. exit ;;
  15162. + SX-7:SUPER-UX:*:*)
  15163. + echo sx7-nec-superux${UNAME_RELEASE}
  15164. + exit ;;
  15165. + SX-8:SUPER-UX:*:*)
  15166. + echo sx8-nec-superux${UNAME_RELEASE}
  15167. + exit ;;
  15168. + SX-8R:SUPER-UX:*:*)
  15169. + echo sx8r-nec-superux${UNAME_RELEASE}
  15170. + exit ;;
  15171. Power*:Rhapsody:*:*)
  15172. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  15173. exit ;;
  15174. @@ -1298,6 +1328,9 @@
  15175. i*86:rdos:*:*)
  15176. echo ${UNAME_MACHINE}-pc-rdos
  15177. exit ;;
  15178. + i*86:AROS:*:*)
  15179. + echo ${UNAME_MACHINE}-pc-aros
  15180. + exit ;;
  15181. esac
  15182. #echo '(No uname command or uname output not recognized.)' 1>&2
  15183. @@ -1458,9 +1491,9 @@
  15184. the operating system you are using. It is advised that you
  15185. download the most up to date version of the config scripts from
  15186. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  15187. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  15188. and
  15189. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  15190. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  15191. If the version you run ($0) is already up to date, please
  15192. send the following data and any information you think might be
  15193. diff -Nur faad2-2.7.orig/config.h.in faad2-2.7/config.h.in
  15194. --- faad2-2.7.orig/config.h.in 2009-02-10 09:36:09.000000000 +0100
  15195. +++ faad2-2.7/config.h.in 2011-02-16 17:55:07.000000000 +0100
  15196. @@ -1,5 +1,8 @@
  15197. /* config.h.in. Generated from configure.in by autoheader. */
  15198. +/* Define if building universal (internal helper macro) */
  15199. +#undef AC_APPLE_UNIVERSAL_BUILD
  15200. +
  15201. /* Define if you want to use libfaad together with Digital Radio Mondiale
  15202. (DRM) */
  15203. #undef DRM
  15204. @@ -77,6 +80,10 @@
  15205. /* Define to 1 if you have the <unistd.h> header file. */
  15206. #undef HAVE_UNISTD_H
  15207. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  15208. + */
  15209. +#undef LT_OBJDIR
  15210. +
  15211. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  15212. #undef NO_MINUS_C_MINUS_O
  15213. @@ -95,6 +102,9 @@
  15214. /* Define to the one symbol short name of this package. */
  15215. #undef PACKAGE_TARNAME
  15216. +/* Define to the home page for this package. */
  15217. +#undef PACKAGE_URL
  15218. +
  15219. /* Define to the version of this package. */
  15220. #undef PACKAGE_VERSION
  15221. @@ -107,9 +117,17 @@
  15222. /* Version number of package */
  15223. #undef VERSION
  15224. -/* Define to 1 if your processor stores words with the most significant byte
  15225. - first (like Motorola and SPARC, unlike Intel and VAX). */
  15226. -#undef WORDS_BIGENDIAN
  15227. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  15228. + significant byte first (like Motorola and SPARC, unlike Intel). */
  15229. +#if defined AC_APPLE_UNIVERSAL_BUILD
  15230. +# if defined __BIG_ENDIAN__
  15231. +# define WORDS_BIGENDIAN 1
  15232. +# endif
  15233. +#else
  15234. +# ifndef WORDS_BIGENDIAN
  15235. +# undef WORDS_BIGENDIAN
  15236. +# endif
  15237. +#endif
  15238. /* Define to `__inline__' or `__inline' if that's what the C compiler
  15239. calls it, or to nothing if 'inline' is not supported under any name. */
  15240. diff -Nur faad2-2.7.orig/config.h.in~ faad2-2.7/config.h.in~
  15241. --- faad2-2.7.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  15242. +++ faad2-2.7/config.h.in~ 2009-02-10 09:36:09.000000000 +0100
  15243. @@ -0,0 +1,121 @@
  15244. +/* config.h.in. Generated from configure.in by autoheader. */
  15245. +
  15246. +/* Define if you want to use libfaad together with Digital Radio Mondiale
  15247. + (DRM) */
  15248. +#undef DRM
  15249. +
  15250. +/* Define if you want support for Digital Radio Mondiale (DRM) parametric
  15251. + stereo */
  15252. +#undef DRM_PS
  15253. +
  15254. +/* Define to 1 if you have the <dlfcn.h> header file. */
  15255. +#undef HAVE_DLFCN_H
  15256. +
  15257. +/* Define to 1 if you have the <errno.h> header file. */
  15258. +#undef HAVE_ERRNO_H
  15259. +
  15260. +/* Define if needed */
  15261. +#undef HAVE_FLOAT32_T
  15262. +
  15263. +/* Define to 1 if you have the <float.h> header file. */
  15264. +#undef HAVE_FLOAT_H
  15265. +
  15266. +/* Define to 1 if you have the `getpwuid' function. */
  15267. +#undef HAVE_GETPWUID
  15268. +
  15269. +/* Define to 1 if you have the <inttypes.h> header file. */
  15270. +#undef HAVE_INTTYPES_H
  15271. +
  15272. +/* Define if you have the IOKit API */
  15273. +#undef HAVE_IOKIT_IOKITLIB_H
  15274. +
  15275. +/* Define to 1 if you have the <limits.h> header file. */
  15276. +#undef HAVE_LIMITS_H
  15277. +
  15278. +/* Define if you have C99's lrintf function. */
  15279. +#undef HAVE_LRINTF
  15280. +
  15281. +/* Define to 1 if you have the <mathf.h> header file. */
  15282. +#undef HAVE_MATHF_H
  15283. +
  15284. +/* Define to 1 if you have the `memcpy' function. */
  15285. +#undef HAVE_MEMCPY
  15286. +
  15287. +/* Define to 1 if you have the <memory.h> header file. */
  15288. +#undef HAVE_MEMORY_H
  15289. +
  15290. +/* Define to 1 if you have the <stdint.h> header file. */
  15291. +#undef HAVE_STDINT_H
  15292. +
  15293. +/* Define to 1 if you have the <stdlib.h> header file. */
  15294. +#undef HAVE_STDLIB_H
  15295. +
  15296. +/* Define to 1 if you have the `strchr' function. */
  15297. +#undef HAVE_STRCHR
  15298. +
  15299. +/* Define to 1 if you have the <strings.h> header file. */
  15300. +#undef HAVE_STRINGS_H
  15301. +
  15302. +/* Define to 1 if you have the <string.h> header file. */
  15303. +#undef HAVE_STRING_H
  15304. +
  15305. +/* Define to 1 if you have the `strsep' function. */
  15306. +#undef HAVE_STRSEP
  15307. +
  15308. +/* Define to 1 if you have the <sysfs/libsysfs.h> header file. */
  15309. +#undef HAVE_SYSFS_LIBSYSFS_H
  15310. +
  15311. +/* Define to 1 if you have the <sys/stat.h> header file. */
  15312. +#undef HAVE_SYS_STAT_H
  15313. +
  15314. +/* Define to 1 if you have the <sys/time.h> header file. */
  15315. +#undef HAVE_SYS_TIME_H
  15316. +
  15317. +/* Define to 1 if you have the <sys/types.h> header file. */
  15318. +#undef HAVE_SYS_TYPES_H
  15319. +
  15320. +/* Define to 1 if you have the <unistd.h> header file. */
  15321. +#undef HAVE_UNISTD_H
  15322. +
  15323. +/* Define to 1 if your C compiler doesn't accept -c and -o together. */
  15324. +#undef NO_MINUS_C_MINUS_O
  15325. +
  15326. +/* Name of package */
  15327. +#undef PACKAGE
  15328. +
  15329. +/* Define to the address where bug reports for this package should be sent. */
  15330. +#undef PACKAGE_BUGREPORT
  15331. +
  15332. +/* Define to the full name of this package. */
  15333. +#undef PACKAGE_NAME
  15334. +
  15335. +/* Define to the full name and version of this package. */
  15336. +#undef PACKAGE_STRING
  15337. +
  15338. +/* Define to the one symbol short name of this package. */
  15339. +#undef PACKAGE_TARNAME
  15340. +
  15341. +/* Define to the version of this package. */
  15342. +#undef PACKAGE_VERSION
  15343. +
  15344. +/* Define to 1 if you have the ANSI C header files. */
  15345. +#undef STDC_HEADERS
  15346. +
  15347. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  15348. +#undef TIME_WITH_SYS_TIME
  15349. +
  15350. +/* Version number of package */
  15351. +#undef VERSION
  15352. +
  15353. +/* Define to 1 if your processor stores words with the most significant byte
  15354. + first (like Motorola and SPARC, unlike Intel and VAX). */
  15355. +#undef WORDS_BIGENDIAN
  15356. +
  15357. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  15358. + calls it, or to nothing if 'inline' is not supported under any name. */
  15359. +#ifndef __cplusplus
  15360. +#undef inline
  15361. +#endif
  15362. +
  15363. +/* Define to `long int' if <sys/types.h> does not define. */
  15364. +#undef off_t
  15365. diff -Nur faad2-2.7.orig/config.sub faad2-2.7/config.sub
  15366. --- faad2-2.7.orig/config.sub 2009-02-10 09:36:11.000000000 +0100
  15367. +++ faad2-2.7/config.sub 2011-02-16 17:55:07.613563754 +0100
  15368. @@ -1,10 +1,10 @@
  15369. #! /bin/sh
  15370. # Configuration validation subroutine script.
  15371. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  15372. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  15373. -# Inc.
  15374. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  15375. +# Free Software Foundation, Inc.
  15376. -timestamp='2006-07-02'
  15377. +timestamp='2009-06-11'
  15378. # This file is (in principle) common to ALL GNU software.
  15379. # The presence of a machine in this file suggests that SOME GNU software
  15380. @@ -72,8 +72,8 @@
  15381. version="\
  15382. GNU config.sub ($timestamp)
  15383. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  15384. -Free Software Foundation, Inc.
  15385. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15386. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15387. This is free software; see the source for copying conditions. There is NO
  15388. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15389. @@ -122,6 +122,7 @@
  15390. case $maybe_os in
  15391. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15392. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15393. + kopensolaris*-gnu* | \
  15394. storm-chaos* | os2-emx* | rtmk-nova*)
  15395. os=-$maybe_os
  15396. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15397. @@ -152,6 +153,9 @@
  15398. os=
  15399. basic_machine=$1
  15400. ;;
  15401. + -bluegene*)
  15402. + os=-cnk
  15403. + ;;
  15404. -sim | -cisco | -oki | -wec | -winbond)
  15405. os=
  15406. basic_machine=$1
  15407. @@ -245,17 +249,20 @@
  15408. | bfin \
  15409. | c4x | clipper \
  15410. | d10v | d30v | dlx | dsp16xx \
  15411. - | fr30 | frv \
  15412. + | fido | fr30 | frv \
  15413. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15414. | i370 | i860 | i960 | ia64 \
  15415. | ip2k | iq2000 \
  15416. + | lm32 \
  15417. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15418. - | maxq | mb | microblaze | mcore \
  15419. + | maxq | mb | microblaze | mcore | mep | metag \
  15420. | mips | mipsbe | mipseb | mipsel | mipsle \
  15421. | mips16 \
  15422. | mips64 | mips64el \
  15423. - | mips64vr | mips64vrel \
  15424. + | mips64octeon | mips64octeonel \
  15425. | mips64orion | mips64orionel \
  15426. + | mips64r5900 | mips64r5900el \
  15427. + | mips64vr | mips64vrel \
  15428. | mips64vr4100 | mips64vr4100el \
  15429. | mips64vr4300 | mips64vr4300el \
  15430. | mips64vr5000 | mips64vr5000el \
  15431. @@ -268,6 +275,7 @@
  15432. | mipsisa64sr71k | mipsisa64sr71kel \
  15433. | mipstx39 | mipstx39el \
  15434. | mn10200 | mn10300 \
  15435. + | moxie \
  15436. | mt \
  15437. | msp430 \
  15438. | nios | nios2 \
  15439. @@ -276,7 +284,8 @@
  15440. | pdp10 | pdp11 | pj | pjl \
  15441. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15442. | pyramid \
  15443. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15444. + | score \
  15445. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15446. | sh64 | sh64le \
  15447. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15448. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15449. @@ -284,8 +293,8 @@
  15450. | tahoe | thumb | tic4x | tic80 | tron \
  15451. | v850 | v850e \
  15452. | we32k \
  15453. - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  15454. - | z8k)
  15455. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15456. + | z8k | z80)
  15457. basic_machine=$basic_machine-unknown
  15458. ;;
  15459. m6811 | m68hc11 | m6812 | m68hc12)
  15460. @@ -323,19 +332,22 @@
  15461. | clipper-* | craynv-* | cydra-* \
  15462. | d10v-* | d30v-* | dlx-* \
  15463. | elxsi-* \
  15464. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15465. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15466. | h8300-* | h8500-* \
  15467. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15468. | i*86-* | i860-* | i960-* | ia64-* \
  15469. | ip2k-* | iq2000-* \
  15470. + | lm32-* \
  15471. | m32c-* | m32r-* | m32rle-* \
  15472. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15473. - | m88110-* | m88k-* | maxq-* | mcore-* \
  15474. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15475. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15476. | mips16-* \
  15477. | mips64-* | mips64el-* \
  15478. - | mips64vr-* | mips64vrel-* \
  15479. + | mips64octeon-* | mips64octeonel-* \
  15480. | mips64orion-* | mips64orionel-* \
  15481. + | mips64r5900-* | mips64r5900el-* \
  15482. + | mips64vr-* | mips64vrel-* \
  15483. | mips64vr4100-* | mips64vr4100el-* \
  15484. | mips64vr4300-* | mips64vr4300el-* \
  15485. | mips64vr5000-* | mips64vr5000el-* \
  15486. @@ -357,20 +369,24 @@
  15487. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15488. | pyramid-* \
  15489. | romp-* | rs6000-* \
  15490. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15491. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15492. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15493. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15494. | sparclite-* \
  15495. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15496. | tahoe-* | thumb-* \
  15497. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  15498. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15499. | tron-* \
  15500. | v850-* | v850e-* | vax-* \
  15501. | we32k-* \
  15502. - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  15503. - | xstormy16-* | xtensa-* \
  15504. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15505. + | xstormy16-* | xtensa*-* \
  15506. | ymp-* \
  15507. - | z8k-*)
  15508. + | z8k-* | z80-*)
  15509. + ;;
  15510. + # Recognize the basic CPU types without company name, with glob match.
  15511. + xtensa*)
  15512. + basic_machine=$basic_machine-unknown
  15513. ;;
  15514. # Recognize the various machine names and aliases which stand
  15515. # for a CPU type and a company and sometimes even an OS.
  15516. @@ -434,6 +450,10 @@
  15517. basic_machine=m68k-apollo
  15518. os=-bsd
  15519. ;;
  15520. + aros)
  15521. + basic_machine=i386-pc
  15522. + os=-aros
  15523. + ;;
  15524. aux)
  15525. basic_machine=m68k-apple
  15526. os=-aux
  15527. @@ -442,10 +462,26 @@
  15528. basic_machine=ns32k-sequent
  15529. os=-dynix
  15530. ;;
  15531. + blackfin)
  15532. + basic_machine=bfin-unknown
  15533. + os=-linux
  15534. + ;;
  15535. + blackfin-*)
  15536. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15537. + os=-linux
  15538. + ;;
  15539. + bluegene*)
  15540. + basic_machine=powerpc-ibm
  15541. + os=-cnk
  15542. + ;;
  15543. c90)
  15544. basic_machine=c90-cray
  15545. os=-unicos
  15546. ;;
  15547. + cegcc)
  15548. + basic_machine=arm-unknown
  15549. + os=-cegcc
  15550. + ;;
  15551. convex-c1)
  15552. basic_machine=c1-convex
  15553. os=-bsd
  15554. @@ -474,8 +510,8 @@
  15555. basic_machine=craynv-cray
  15556. os=-unicosmp
  15557. ;;
  15558. - cr16c)
  15559. - basic_machine=cr16c-unknown
  15560. + cr16)
  15561. + basic_machine=cr16-unknown
  15562. os=-elf
  15563. ;;
  15564. crds | unos)
  15565. @@ -513,6 +549,10 @@
  15566. basic_machine=m88k-motorola
  15567. os=-sysv3
  15568. ;;
  15569. + dicos)
  15570. + basic_machine=i686-pc
  15571. + os=-dicos
  15572. + ;;
  15573. djgpp)
  15574. basic_machine=i586-pc
  15575. os=-msdosdjgpp
  15576. @@ -667,6 +707,14 @@
  15577. basic_machine=m68k-isi
  15578. os=-sysv
  15579. ;;
  15580. + m68knommu)
  15581. + basic_machine=m68k-unknown
  15582. + os=-linux
  15583. + ;;
  15584. + m68knommu-*)
  15585. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15586. + os=-linux
  15587. + ;;
  15588. m88k-omron*)
  15589. basic_machine=m88k-omron
  15590. ;;
  15591. @@ -682,6 +730,10 @@
  15592. basic_machine=i386-pc
  15593. os=-mingw32
  15594. ;;
  15595. + mingw32ce)
  15596. + basic_machine=arm-unknown
  15597. + os=-mingw32ce
  15598. + ;;
  15599. miniframe)
  15600. basic_machine=m68000-convergent
  15601. ;;
  15602. @@ -808,6 +860,14 @@
  15603. basic_machine=i860-intel
  15604. os=-osf
  15605. ;;
  15606. + parisc)
  15607. + basic_machine=hppa-unknown
  15608. + os=-linux
  15609. + ;;
  15610. + parisc-*)
  15611. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15612. + os=-linux
  15613. + ;;
  15614. pbd)
  15615. basic_machine=sparc-tti
  15616. ;;
  15617. @@ -909,6 +969,10 @@
  15618. sb1el)
  15619. basic_machine=mipsisa64sb1el-unknown
  15620. ;;
  15621. + sde)
  15622. + basic_machine=mipsisa32-sde
  15623. + os=-elf
  15624. + ;;
  15625. sei)
  15626. basic_machine=mips-sei
  15627. os=-seiux
  15628. @@ -920,6 +984,9 @@
  15629. basic_machine=sh-hitachi
  15630. os=-hms
  15631. ;;
  15632. + sh5el)
  15633. + basic_machine=sh5le-unknown
  15634. + ;;
  15635. sh64)
  15636. basic_machine=sh64-unknown
  15637. ;;
  15638. @@ -1009,6 +1076,10 @@
  15639. basic_machine=tic6x-unknown
  15640. os=-coff
  15641. ;;
  15642. + tile*)
  15643. + basic_machine=tile-unknown
  15644. + os=-linux-gnu
  15645. + ;;
  15646. tx39)
  15647. basic_machine=mipstx39-unknown
  15648. ;;
  15649. @@ -1084,6 +1155,10 @@
  15650. basic_machine=z8k-unknown
  15651. os=-sim
  15652. ;;
  15653. + z80-*-coff)
  15654. + basic_machine=z80-unknown
  15655. + os=-sim
  15656. + ;;
  15657. none)
  15658. basic_machine=none-none
  15659. os=-none
  15660. @@ -1122,7 +1197,7 @@
  15661. we32k)
  15662. basic_machine=we32k-att
  15663. ;;
  15664. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  15665. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15666. basic_machine=sh-unknown
  15667. ;;
  15668. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15669. @@ -1192,10 +1267,11 @@
  15670. # Each alternative MUST END IN A *, to match a version number.
  15671. # -sysv* is not here because it comes later, after sysvr4.
  15672. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15673. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15674. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15675. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15676. + | -kopensolaris* \
  15677. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15678. - | -aos* \
  15679. + | -aos* | -aros* \
  15680. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15681. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15682. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15683. @@ -1204,7 +1280,7 @@
  15684. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15685. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15686. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15687. - | -chorusos* | -chorusrdb* \
  15688. + | -chorusos* | -chorusrdb* | -cegcc* \
  15689. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15690. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15691. | -uxpv* | -beos* | -mpeix* | -udk* \
  15692. @@ -1214,7 +1290,7 @@
  15693. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15694. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15695. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15696. - | -skyos* | -haiku* | -rdos* | -toppers*)
  15697. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15698. # Remember, each alternative MUST END IN *, to match a version number.
  15699. ;;
  15700. -qnx*)
  15701. @@ -1344,6 +1420,9 @@
  15702. -zvmoe)
  15703. os=-zvmoe
  15704. ;;
  15705. + -dicos*)
  15706. + os=-dicos
  15707. + ;;
  15708. -none)
  15709. ;;
  15710. *)
  15711. @@ -1366,6 +1445,9 @@
  15712. # system, and we'll never get to this point.
  15713. case $basic_machine in
  15714. + score-*)
  15715. + os=-elf
  15716. + ;;
  15717. spu-*)
  15718. os=-elf
  15719. ;;
  15720. @@ -1406,6 +1488,9 @@
  15721. m68*-cisco)
  15722. os=-aout
  15723. ;;
  15724. + mep-*)
  15725. + os=-elf
  15726. + ;;
  15727. mips*-cisco)
  15728. os=-elf
  15729. ;;
  15730. @@ -1535,7 +1620,7 @@
  15731. -sunos*)
  15732. vendor=sun
  15733. ;;
  15734. - -aix*)
  15735. + -cnk*|-aix*)
  15736. vendor=ibm
  15737. ;;
  15738. -beos*)
  15739. diff -Nur faad2-2.7.orig/configure faad2-2.7/configure
  15740. --- faad2-2.7.orig/configure 2009-02-10 09:36:08.000000000 +0100
  15741. +++ faad2-2.7/configure 2011-02-16 17:55:06.464256019 +0100
  15742. @@ -1,60 +1,83 @@
  15743. #! /bin/sh
  15744. # Guess values for system-dependent variables and create Makefiles.
  15745. -# Generated by GNU Autoconf 2.61.
  15746. +# Generated by GNU Autoconf 2.65.
  15747. +#
  15748. #
  15749. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  15750. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  15751. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  15752. +# Inc.
  15753. +#
  15754. +#
  15755. # This configure script is free software; the Free Software Foundation
  15756. # gives unlimited permission to copy, distribute and modify it.
  15757. -## --------------------- ##
  15758. -## M4sh Initialization. ##
  15759. -## --------------------- ##
  15760. +## -------------------- ##
  15761. +## M4sh Initialization. ##
  15762. +## -------------------- ##
  15763. # Be more Bourne compatible
  15764. DUALCASE=1; export DUALCASE # for MKS sh
  15765. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15766. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15767. emulate sh
  15768. NULLCMD=:
  15769. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15770. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15771. # is contrary to our usage. Disable this feature.
  15772. alias -g '${1+"$@"}'='"$@"'
  15773. setopt NO_GLOB_SUBST
  15774. else
  15775. - case `(set -o) 2>/dev/null` in
  15776. - *posix*) set -o posix ;;
  15777. + case `(set -o) 2>/dev/null` in #(
  15778. + *posix*) :
  15779. + set -o posix ;; #(
  15780. + *) :
  15781. + ;;
  15782. esac
  15783. -
  15784. fi
  15785. -
  15786. -
  15787. -# PATH needs CR
  15788. -# Avoid depending upon Character Ranges.
  15789. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15790. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15791. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15792. -as_cr_digits='0123456789'
  15793. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  15794. -
  15795. -# The user is always right.
  15796. -if test "${PATH_SEPARATOR+set}" != set; then
  15797. - echo "#! /bin/sh" >conf$$.sh
  15798. - echo "exit 0" >>conf$$.sh
  15799. - chmod +x conf$$.sh
  15800. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15801. - PATH_SEPARATOR=';'
  15802. - else
  15803. - PATH_SEPARATOR=:
  15804. +as_nl='
  15805. +'
  15806. +export as_nl
  15807. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  15808. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15809. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15810. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15811. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  15812. +# but without wasting forks for bash or zsh.
  15813. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  15814. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15815. + as_echo='print -r --'
  15816. + as_echo_n='print -rn --'
  15817. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15818. + as_echo='printf %s\n'
  15819. + as_echo_n='printf %s'
  15820. +else
  15821. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15822. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15823. + as_echo_n='/usr/ucb/echo -n'
  15824. + else
  15825. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15826. + as_echo_n_body='eval
  15827. + arg=$1;
  15828. + case $arg in #(
  15829. + *"$as_nl"*)
  15830. + expr "X$arg" : "X\\(.*\\)$as_nl";
  15831. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15832. + esac;
  15833. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15834. + '
  15835. + export as_echo_n_body
  15836. + as_echo_n='sh -c $as_echo_n_body as_echo'
  15837. fi
  15838. - rm -f conf$$.sh
  15839. + export as_echo_body
  15840. + as_echo='sh -c $as_echo_body as_echo'
  15841. fi
  15842. -# Support unset when possible.
  15843. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15844. - as_unset=unset
  15845. -else
  15846. - as_unset=false
  15847. +# The user is always right.
  15848. +if test "${PATH_SEPARATOR+set}" != set; then
  15849. + PATH_SEPARATOR=:
  15850. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15851. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15852. + PATH_SEPARATOR=';'
  15853. + }
  15854. fi
  15855. @@ -63,20 +86,18 @@
  15856. # there to prevent editors from complaining about space-tab.
  15857. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15858. # splitting by setting IFS to empty value.)
  15859. -as_nl='
  15860. -'
  15861. IFS=" "" $as_nl"
  15862. # Find who we are. Look in the path if we contain no directory separator.
  15863. -case $0 in
  15864. +case $0 in #((
  15865. *[\\/]* ) as_myself=$0 ;;
  15866. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15867. for as_dir in $PATH
  15868. do
  15869. IFS=$as_save_IFS
  15870. test -z "$as_dir" && as_dir=.
  15871. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15872. -done
  15873. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15874. + done
  15875. IFS=$as_save_IFS
  15876. ;;
  15877. @@ -87,32 +108,270 @@
  15878. as_myself=$0
  15879. fi
  15880. if test ! -f "$as_myself"; then
  15881. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15882. - { (exit 1); exit 1; }
  15883. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15884. + exit 1
  15885. fi
  15886. -# Work around bugs in pre-3.0 UWIN ksh.
  15887. -for as_var in ENV MAIL MAILPATH
  15888. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15889. +# Unset variables that we do not need and which cause bugs (e.g. in
  15890. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15891. +# suppresses any "Segmentation fault" message there. '((' could
  15892. +# trigger a bug in pdksh 5.2.14.
  15893. +for as_var in BASH_ENV ENV MAIL MAILPATH
  15894. +do eval test x\${$as_var+set} = xset \
  15895. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15896. done
  15897. PS1='$ '
  15898. PS2='> '
  15899. PS4='+ '
  15900. # NLS nuisances.
  15901. -for as_var in \
  15902. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15903. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15904. - LC_TELEPHONE LC_TIME
  15905. +LC_ALL=C
  15906. +export LC_ALL
  15907. +LANGUAGE=C
  15908. +export LANGUAGE
  15909. +
  15910. +# CDPATH.
  15911. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15912. +
  15913. +if test "x$CONFIG_SHELL" = x; then
  15914. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  15915. + emulate sh
  15916. + NULLCMD=:
  15917. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  15918. + # is contrary to our usage. Disable this feature.
  15919. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  15920. + setopt NO_GLOB_SUBST
  15921. +else
  15922. + case \`(set -o) 2>/dev/null\` in #(
  15923. + *posix*) :
  15924. + set -o posix ;; #(
  15925. + *) :
  15926. + ;;
  15927. +esac
  15928. +fi
  15929. +"
  15930. + as_required="as_fn_return () { (exit \$1); }
  15931. +as_fn_success () { as_fn_return 0; }
  15932. +as_fn_failure () { as_fn_return 1; }
  15933. +as_fn_ret_success () { return 0; }
  15934. +as_fn_ret_failure () { return 1; }
  15935. +
  15936. +exitcode=0
  15937. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  15938. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  15939. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  15940. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  15941. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  15942. +
  15943. +else
  15944. + exitcode=1; echo positional parameters were not saved.
  15945. +fi
  15946. +test x\$exitcode = x0 || exit 1"
  15947. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  15948. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  15949. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  15950. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  15951. +test \$(( 1 + 1 )) = 2 || exit 1"
  15952. + if (eval "$as_required") 2>/dev/null; then :
  15953. + as_have_required=yes
  15954. +else
  15955. + as_have_required=no
  15956. +fi
  15957. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  15958. +
  15959. +else
  15960. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15961. +as_found=false
  15962. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  15963. do
  15964. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15965. - eval $as_var=C; export $as_var
  15966. - else
  15967. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15968. - fi
  15969. + IFS=$as_save_IFS
  15970. + test -z "$as_dir" && as_dir=.
  15971. + as_found=:
  15972. + case $as_dir in #(
  15973. + /*)
  15974. + for as_base in sh bash ksh sh5; do
  15975. + # Try only shells that exist, to save several forks.
  15976. + as_shell=$as_dir/$as_base
  15977. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  15978. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  15979. + CONFIG_SHELL=$as_shell as_have_required=yes
  15980. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  15981. + break 2
  15982. +fi
  15983. +fi
  15984. + done;;
  15985. + esac
  15986. + as_found=false
  15987. done
  15988. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  15989. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  15990. + CONFIG_SHELL=$SHELL as_have_required=yes
  15991. +fi; }
  15992. +IFS=$as_save_IFS
  15993. +
  15994. +
  15995. + if test "x$CONFIG_SHELL" != x; then :
  15996. + # We cannot yet assume a decent shell, so we have to provide a
  15997. + # neutralization value for shells without unset; and this also
  15998. + # works around shells that cannot unset nonexistent variables.
  15999. + BASH_ENV=/dev/null
  16000. + ENV=/dev/null
  16001. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  16002. + export CONFIG_SHELL
  16003. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16004. +fi
  16005. +
  16006. + if test x$as_have_required = xno; then :
  16007. + $as_echo "$0: This script requires a shell more modern than all"
  16008. + $as_echo "$0: the shells that I found on your system."
  16009. + if test x${ZSH_VERSION+set} = xset ; then
  16010. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  16011. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  16012. + else
  16013. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  16014. +$0: including any error possibly output before this
  16015. +$0: message. Then install a modern shell, or manually run
  16016. +$0: the script under such a shell if you do have one."
  16017. + fi
  16018. + exit 1
  16019. +fi
  16020. +fi
  16021. +fi
  16022. +SHELL=${CONFIG_SHELL-/bin/sh}
  16023. +export SHELL
  16024. +# Unset more variables known to interfere with behavior of common tools.
  16025. +CLICOLOR_FORCE= GREP_OPTIONS=
  16026. +unset CLICOLOR_FORCE GREP_OPTIONS
  16027. +
  16028. +## --------------------- ##
  16029. +## M4sh Shell Functions. ##
  16030. +## --------------------- ##
  16031. +# as_fn_unset VAR
  16032. +# ---------------
  16033. +# Portably unset VAR.
  16034. +as_fn_unset ()
  16035. +{
  16036. + { eval $1=; unset $1;}
  16037. +}
  16038. +as_unset=as_fn_unset
  16039. +
  16040. +# as_fn_set_status STATUS
  16041. +# -----------------------
  16042. +# Set $? to STATUS, without forking.
  16043. +as_fn_set_status ()
  16044. +{
  16045. + return $1
  16046. +} # as_fn_set_status
  16047. +
  16048. +# as_fn_exit STATUS
  16049. +# -----------------
  16050. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16051. +as_fn_exit ()
  16052. +{
  16053. + set +e
  16054. + as_fn_set_status $1
  16055. + exit $1
  16056. +} # as_fn_exit
  16057. +
  16058. +# as_fn_mkdir_p
  16059. +# -------------
  16060. +# Create "$as_dir" as a directory, including parents if necessary.
  16061. +as_fn_mkdir_p ()
  16062. +{
  16063. +
  16064. + case $as_dir in #(
  16065. + -*) as_dir=./$as_dir;;
  16066. + esac
  16067. + test -d "$as_dir" || eval $as_mkdir_p || {
  16068. + as_dirs=
  16069. + while :; do
  16070. + case $as_dir in #(
  16071. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16072. + *) as_qdir=$as_dir;;
  16073. + esac
  16074. + as_dirs="'$as_qdir' $as_dirs"
  16075. + as_dir=`$as_dirname -- "$as_dir" ||
  16076. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16077. + X"$as_dir" : 'X\(//\)[^/]' \| \
  16078. + X"$as_dir" : 'X\(//\)$' \| \
  16079. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16080. +$as_echo X"$as_dir" |
  16081. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16082. + s//\1/
  16083. + q
  16084. + }
  16085. + /^X\(\/\/\)[^/].*/{
  16086. + s//\1/
  16087. + q
  16088. + }
  16089. + /^X\(\/\/\)$/{
  16090. + s//\1/
  16091. + q
  16092. + }
  16093. + /^X\(\/\).*/{
  16094. + s//\1/
  16095. + q
  16096. + }
  16097. + s/.*/./; q'`
  16098. + test -d "$as_dir" && break
  16099. + done
  16100. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  16101. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16102. +
  16103. +
  16104. +} # as_fn_mkdir_p
  16105. +# as_fn_append VAR VALUE
  16106. +# ----------------------
  16107. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  16108. +# advantage of any shell optimizations that allow amortized linear growth over
  16109. +# repeated appends, instead of the typical quadratic growth present in naive
  16110. +# implementations.
  16111. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16112. + eval 'as_fn_append ()
  16113. + {
  16114. + eval $1+=\$2
  16115. + }'
  16116. +else
  16117. + as_fn_append ()
  16118. + {
  16119. + eval $1=\$$1\$2
  16120. + }
  16121. +fi # as_fn_append
  16122. +
  16123. +# as_fn_arith ARG...
  16124. +# ------------------
  16125. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  16126. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  16127. +# must be portable across $(()) and expr.
  16128. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16129. + eval 'as_fn_arith ()
  16130. + {
  16131. + as_val=$(( $* ))
  16132. + }'
  16133. +else
  16134. + as_fn_arith ()
  16135. + {
  16136. + as_val=`expr "$@" || test $? -eq 1`
  16137. + }
  16138. +fi # as_fn_arith
  16139. +
  16140. +
  16141. +# as_fn_error ERROR [LINENO LOG_FD]
  16142. +# ---------------------------------
  16143. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16144. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16145. +# script with status $?, using 1 if that was 0.
  16146. +as_fn_error ()
  16147. +{
  16148. + as_status=$?; test $as_status -eq 0 && as_status=1
  16149. + if test "$3"; then
  16150. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16151. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16152. + fi
  16153. + $as_echo "$as_me: error: $1" >&2
  16154. + as_fn_exit $as_status
  16155. +} # as_fn_error
  16156. -# Required to use basename.
  16157. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16158. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16159. as_expr=expr
  16160. @@ -126,13 +385,17 @@
  16161. as_basename=false
  16162. fi
  16163. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16164. + as_dirname=dirname
  16165. +else
  16166. + as_dirname=false
  16167. +fi
  16168. -# Name of the executable.
  16169. as_me=`$as_basename -- "$0" ||
  16170. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16171. X"$0" : 'X\(//\)$' \| \
  16172. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16173. -echo X/"$0" |
  16174. +$as_echo X/"$0" |
  16175. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16176. s//\1/
  16177. q
  16178. @@ -147,428 +410,142 @@
  16179. }
  16180. s/.*/./; q'`
  16181. -# CDPATH.
  16182. -$as_unset CDPATH
  16183. +# Avoid depending upon Character Ranges.
  16184. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16185. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16186. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16187. +as_cr_digits='0123456789'
  16188. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  16189. -if test "x$CONFIG_SHELL" = x; then
  16190. - if (eval ":") 2>/dev/null; then
  16191. - as_have_required=yes
  16192. -else
  16193. - as_have_required=no
  16194. -fi
  16195. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  16196. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  16197. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  16198. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  16199. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  16200. + sed -n '
  16201. + p
  16202. + /[$]LINENO/=
  16203. + ' <$as_myself |
  16204. + sed '
  16205. + s/[$]LINENO.*/&-/
  16206. + t lineno
  16207. + b
  16208. + :lineno
  16209. + N
  16210. + :loop
  16211. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16212. + t loop
  16213. + s/-\n.*//
  16214. + ' >$as_me.lineno &&
  16215. + chmod +x "$as_me.lineno" ||
  16216. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  16217. - if test $as_have_required = yes && (eval ":
  16218. -(as_func_return () {
  16219. - (exit \$1)
  16220. -}
  16221. -as_func_success () {
  16222. - as_func_return 0
  16223. -}
  16224. -as_func_failure () {
  16225. - as_func_return 1
  16226. -}
  16227. -as_func_ret_success () {
  16228. - return 0
  16229. -}
  16230. -as_func_ret_failure () {
  16231. - return 1
  16232. + # Don't try to exec as it changes $[0], causing all sort of problems
  16233. + # (the dirname of $[0] is not the place where we might find the
  16234. + # original and so on. Autoconf is especially sensitive to this).
  16235. + . "./$as_me.lineno"
  16236. + # Exit status is that of the last command.
  16237. + exit
  16238. }
  16239. -exitcode=0
  16240. -if as_func_success; then
  16241. - :
  16242. -else
  16243. - exitcode=1
  16244. - echo as_func_success failed.
  16245. -fi
  16246. +ECHO_C= ECHO_N= ECHO_T=
  16247. +case `echo -n x` in #(((((
  16248. +-n*)
  16249. + case `echo 'xy\c'` in
  16250. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16251. + xy) ECHO_C='\c';;
  16252. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16253. + ECHO_T=' ';;
  16254. + esac;;
  16255. +*)
  16256. + ECHO_N='-n';;
  16257. +esac
  16258. -if as_func_failure; then
  16259. - exitcode=1
  16260. - echo as_func_failure succeeded.
  16261. +rm -f conf$$ conf$$.exe conf$$.file
  16262. +if test -d conf$$.dir; then
  16263. + rm -f conf$$.dir/conf$$.file
  16264. +else
  16265. + rm -f conf$$.dir
  16266. + mkdir conf$$.dir 2>/dev/null
  16267. fi
  16268. -
  16269. -if as_func_ret_success; then
  16270. - :
  16271. +if (echo >conf$$.file) 2>/dev/null; then
  16272. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  16273. + as_ln_s='ln -s'
  16274. + # ... but there are two gotchas:
  16275. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16276. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16277. + # In both cases, we have to default to `cp -p'.
  16278. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16279. + as_ln_s='cp -p'
  16280. + elif ln conf$$.file conf$$ 2>/dev/null; then
  16281. + as_ln_s=ln
  16282. + else
  16283. + as_ln_s='cp -p'
  16284. + fi
  16285. else
  16286. - exitcode=1
  16287. - echo as_func_ret_success failed.
  16288. + as_ln_s='cp -p'
  16289. fi
  16290. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16291. +rmdir conf$$.dir 2>/dev/null
  16292. -if as_func_ret_failure; then
  16293. - exitcode=1
  16294. - echo as_func_ret_failure succeeded.
  16295. +if mkdir -p . 2>/dev/null; then
  16296. + as_mkdir_p='mkdir -p "$as_dir"'
  16297. +else
  16298. + test -d ./-p && rmdir ./-p
  16299. + as_mkdir_p=false
  16300. fi
  16301. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16302. - :
  16303. +if test -x / >/dev/null 2>&1; then
  16304. + as_test_x='test -x'
  16305. else
  16306. - exitcode=1
  16307. - echo positional parameters were not saved.
  16308. + if ls -dL / >/dev/null 2>&1; then
  16309. + as_ls_L_option=L
  16310. + else
  16311. + as_ls_L_option=
  16312. + fi
  16313. + as_test_x='
  16314. + eval sh -c '\''
  16315. + if test -d "$1"; then
  16316. + test -d "$1/.";
  16317. + else
  16318. + case $1 in #(
  16319. + -*)set "./$1";;
  16320. + esac;
  16321. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16322. + ???[sx]*):;;*)false;;esac;fi
  16323. + '\'' sh
  16324. + '
  16325. fi
  16326. +as_executable_p=$as_test_x
  16327. -test \$exitcode = 0) || { (exit 1); exit 1; }
  16328. +# Sed expression to map a string onto a valid CPP name.
  16329. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16330. -(
  16331. - as_lineno_1=\$LINENO
  16332. - as_lineno_2=\$LINENO
  16333. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  16334. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  16335. -") 2> /dev/null; then
  16336. - :
  16337. -else
  16338. - as_candidate_shells=
  16339. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16340. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16341. -do
  16342. - IFS=$as_save_IFS
  16343. - test -z "$as_dir" && as_dir=.
  16344. - case $as_dir in
  16345. - /*)
  16346. - for as_base in sh bash ksh sh5; do
  16347. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  16348. - done;;
  16349. - esac
  16350. -done
  16351. -IFS=$as_save_IFS
  16352. +# Sed expression to map a string onto a valid variable name.
  16353. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16354. - for as_shell in $as_candidate_shells $SHELL; do
  16355. - # Try only shells that exist, to save several forks.
  16356. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16357. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  16358. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16359. - emulate sh
  16360. - NULLCMD=:
  16361. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16362. - # is contrary to our usage. Disable this feature.
  16363. - alias -g '${1+"$@"}'='"$@"'
  16364. - setopt NO_GLOB_SUBST
  16365. -else
  16366. - case `(set -o) 2>/dev/null` in
  16367. - *posix*) set -o posix ;;
  16368. -esac
  16369. -fi
  16370. +# Check that we are running under the correct shell.
  16371. +SHELL=${CONFIG_SHELL-/bin/sh}
  16372. +case X$lt_ECHO in
  16373. +X*--fallback-echo)
  16374. + # Remove one level of quotation (which was required for Make).
  16375. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16376. + ;;
  16377. +esac
  16378. -:
  16379. -_ASEOF
  16380. -}; then
  16381. - CONFIG_SHELL=$as_shell
  16382. - as_have_required=yes
  16383. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  16384. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16385. - emulate sh
  16386. - NULLCMD=:
  16387. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16388. - # is contrary to our usage. Disable this feature.
  16389. - alias -g '${1+"$@"}'='"$@"'
  16390. - setopt NO_GLOB_SUBST
  16391. -else
  16392. - case `(set -o) 2>/dev/null` in
  16393. - *posix*) set -o posix ;;
  16394. -esac
  16395. -
  16396. -fi
  16397. -
  16398. -
  16399. -:
  16400. -(as_func_return () {
  16401. - (exit $1)
  16402. -}
  16403. -as_func_success () {
  16404. - as_func_return 0
  16405. -}
  16406. -as_func_failure () {
  16407. - as_func_return 1
  16408. -}
  16409. -as_func_ret_success () {
  16410. - return 0
  16411. -}
  16412. -as_func_ret_failure () {
  16413. - return 1
  16414. -}
  16415. -
  16416. -exitcode=0
  16417. -if as_func_success; then
  16418. - :
  16419. -else
  16420. - exitcode=1
  16421. - echo as_func_success failed.
  16422. -fi
  16423. -
  16424. -if as_func_failure; then
  16425. - exitcode=1
  16426. - echo as_func_failure succeeded.
  16427. -fi
  16428. -
  16429. -if as_func_ret_success; then
  16430. - :
  16431. -else
  16432. - exitcode=1
  16433. - echo as_func_ret_success failed.
  16434. -fi
  16435. -
  16436. -if as_func_ret_failure; then
  16437. - exitcode=1
  16438. - echo as_func_ret_failure succeeded.
  16439. -fi
  16440. -
  16441. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  16442. - :
  16443. -else
  16444. - exitcode=1
  16445. - echo positional parameters were not saved.
  16446. -fi
  16447. -
  16448. -test $exitcode = 0) || { (exit 1); exit 1; }
  16449. -
  16450. -(
  16451. - as_lineno_1=$LINENO
  16452. - as_lineno_2=$LINENO
  16453. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16454. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  16455. -
  16456. -_ASEOF
  16457. -}; then
  16458. - break
  16459. -fi
  16460. -
  16461. -fi
  16462. -
  16463. - done
  16464. -
  16465. - if test "x$CONFIG_SHELL" != x; then
  16466. - for as_var in BASH_ENV ENV
  16467. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16468. - done
  16469. - export CONFIG_SHELL
  16470. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16471. -fi
  16472. -
  16473. -
  16474. - if test $as_have_required = no; then
  16475. - echo This script requires a shell more modern than all the
  16476. - echo shells that I found on your system. Please install a
  16477. - echo modern shell, or manually run the script under such a
  16478. - echo shell if you do have one.
  16479. - { (exit 1); exit 1; }
  16480. -fi
  16481. -
  16482. -
  16483. -fi
  16484. -
  16485. -fi
  16486. -
  16487. -
  16488. -
  16489. -(eval "as_func_return () {
  16490. - (exit \$1)
  16491. -}
  16492. -as_func_success () {
  16493. - as_func_return 0
  16494. -}
  16495. -as_func_failure () {
  16496. - as_func_return 1
  16497. -}
  16498. -as_func_ret_success () {
  16499. - return 0
  16500. -}
  16501. -as_func_ret_failure () {
  16502. - return 1
  16503. -}
  16504. -
  16505. -exitcode=0
  16506. -if as_func_success; then
  16507. - :
  16508. -else
  16509. - exitcode=1
  16510. - echo as_func_success failed.
  16511. -fi
  16512. -
  16513. -if as_func_failure; then
  16514. - exitcode=1
  16515. - echo as_func_failure succeeded.
  16516. -fi
  16517. -
  16518. -if as_func_ret_success; then
  16519. - :
  16520. -else
  16521. - exitcode=1
  16522. - echo as_func_ret_success failed.
  16523. -fi
  16524. -
  16525. -if as_func_ret_failure; then
  16526. - exitcode=1
  16527. - echo as_func_ret_failure succeeded.
  16528. -fi
  16529. -
  16530. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16531. - :
  16532. -else
  16533. - exitcode=1
  16534. - echo positional parameters were not saved.
  16535. -fi
  16536. -
  16537. -test \$exitcode = 0") || {
  16538. - echo No shell found that supports shell functions.
  16539. - echo Please tell autoconf@gnu.org about your system,
  16540. - echo including any error possibly output before this
  16541. - echo message
  16542. -}
  16543. -
  16544. -
  16545. -
  16546. - as_lineno_1=$LINENO
  16547. - as_lineno_2=$LINENO
  16548. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16549. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  16550. -
  16551. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16552. - # uniformly replaced by the line number. The first 'sed' inserts a
  16553. - # line-number line after each line using $LINENO; the second 'sed'
  16554. - # does the real work. The second script uses 'N' to pair each
  16555. - # line-number line with the line containing $LINENO, and appends
  16556. - # trailing '-' during substitution so that $LINENO is not a special
  16557. - # case at line end.
  16558. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16559. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  16560. - # E. McMahon (1931-1989) for sed's syntax. :-)
  16561. - sed -n '
  16562. - p
  16563. - /[$]LINENO/=
  16564. - ' <$as_myself |
  16565. - sed '
  16566. - s/[$]LINENO.*/&-/
  16567. - t lineno
  16568. - b
  16569. - :lineno
  16570. - N
  16571. - :loop
  16572. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16573. - t loop
  16574. - s/-\n.*//
  16575. - ' >$as_me.lineno &&
  16576. - chmod +x "$as_me.lineno" ||
  16577. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16578. - { (exit 1); exit 1; }; }
  16579. -
  16580. - # Don't try to exec as it changes $[0], causing all sort of problems
  16581. - # (the dirname of $[0] is not the place where we might find the
  16582. - # original and so on. Autoconf is especially sensitive to this).
  16583. - . "./$as_me.lineno"
  16584. - # Exit status is that of the last command.
  16585. - exit
  16586. -}
  16587. -
  16588. -
  16589. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16590. - as_dirname=dirname
  16591. -else
  16592. - as_dirname=false
  16593. -fi
  16594. -
  16595. -ECHO_C= ECHO_N= ECHO_T=
  16596. -case `echo -n x` in
  16597. --n*)
  16598. - case `echo 'x\c'` in
  16599. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16600. - *) ECHO_C='\c';;
  16601. - esac;;
  16602. -*)
  16603. - ECHO_N='-n';;
  16604. -esac
  16605. -
  16606. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  16607. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16608. - as_expr=expr
  16609. -else
  16610. - as_expr=false
  16611. -fi
  16612. -
  16613. -rm -f conf$$ conf$$.exe conf$$.file
  16614. -if test -d conf$$.dir; then
  16615. - rm -f conf$$.dir/conf$$.file
  16616. -else
  16617. - rm -f conf$$.dir
  16618. - mkdir conf$$.dir
  16619. -fi
  16620. -echo >conf$$.file
  16621. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  16622. - as_ln_s='ln -s'
  16623. - # ... but there are two gotchas:
  16624. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16625. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16626. - # In both cases, we have to default to `cp -p'.
  16627. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16628. - as_ln_s='cp -p'
  16629. -elif ln conf$$.file conf$$ 2>/dev/null; then
  16630. - as_ln_s=ln
  16631. -else
  16632. - as_ln_s='cp -p'
  16633. -fi
  16634. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16635. -rmdir conf$$.dir 2>/dev/null
  16636. -
  16637. -if mkdir -p . 2>/dev/null; then
  16638. - as_mkdir_p=:
  16639. -else
  16640. - test -d ./-p && rmdir ./-p
  16641. - as_mkdir_p=false
  16642. -fi
  16643. -
  16644. -if test -x / >/dev/null 2>&1; then
  16645. - as_test_x='test -x'
  16646. -else
  16647. - if ls -dL / >/dev/null 2>&1; then
  16648. - as_ls_L_option=L
  16649. - else
  16650. - as_ls_L_option=
  16651. - fi
  16652. - as_test_x='
  16653. - eval sh -c '\''
  16654. - if test -d "$1"; then
  16655. - test -d "$1/.";
  16656. - else
  16657. - case $1 in
  16658. - -*)set "./$1";;
  16659. - esac;
  16660. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16661. - ???[sx]*):;;*)false;;esac;fi
  16662. - '\'' sh
  16663. - '
  16664. -fi
  16665. -as_executable_p=$as_test_x
  16666. -
  16667. -# Sed expression to map a string onto a valid CPP name.
  16668. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16669. -
  16670. -# Sed expression to map a string onto a valid variable name.
  16671. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16672. -
  16673. -
  16674. -
  16675. -
  16676. -# Check that we are running under the correct shell.
  16677. -SHELL=${CONFIG_SHELL-/bin/sh}
  16678. -
  16679. -case X$ECHO in
  16680. -X*--fallback-echo)
  16681. - # Remove one level of quotation (which was required for Make).
  16682. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16683. - ;;
  16684. -esac
  16685. -
  16686. -echo=${ECHO-echo}
  16687. +ECHO=${lt_ECHO-echo}
  16688. if test "X$1" = X--no-reexec; then
  16689. # Discard the --no-reexec flag, and continue.
  16690. shift
  16691. elif test "X$1" = X--fallback-echo; then
  16692. # Avoid inline document here, it may be left over
  16693. :
  16694. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  16695. - # Yippee, $echo works!
  16696. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  16697. + # Yippee, $ECHO works!
  16698. :
  16699. else
  16700. # Restart under the correct shell.
  16701. @@ -578,9 +555,9 @@
  16702. if test "X$1" = X--fallback-echo; then
  16703. # used as fallback echo
  16704. shift
  16705. - cat <<EOF
  16706. + cat <<_LT_EOF
  16707. $*
  16708. -EOF
  16709. +_LT_EOF
  16710. exit 0
  16711. fi
  16712. @@ -588,122 +565,118 @@
  16713. # if CDPATH is set.
  16714. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16715. -if test -z "$ECHO"; then
  16716. -if test "X${echo_test_string+set}" != Xset; then
  16717. -# find a string as large as possible, as long as the shell can cope with it
  16718. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16719. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16720. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  16721. - echo_test_string=`eval $cmd` &&
  16722. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  16723. - then
  16724. - break
  16725. - fi
  16726. - done
  16727. -fi
  16728. +if test -z "$lt_ECHO"; then
  16729. + if test "X${echo_test_string+set}" != Xset; then
  16730. + # find a string as large as possible, as long as the shell can cope with it
  16731. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16732. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16733. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  16734. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  16735. + then
  16736. + break
  16737. + fi
  16738. + done
  16739. + fi
  16740. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16741. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16742. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16743. - :
  16744. -else
  16745. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  16746. - # backslashes. This makes it impossible to quote backslashes using
  16747. - # echo "$something" | sed 's/\\/\\\\/g'
  16748. - #
  16749. - # So, first we look for a working echo in the user's PATH.
  16750. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16751. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16752. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16753. + :
  16754. + else
  16755. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  16756. + # backslashes. This makes it impossible to quote backslashes using
  16757. + # echo "$something" | sed 's/\\/\\\\/g'
  16758. + #
  16759. + # So, first we look for a working echo in the user's PATH.
  16760. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16761. - for dir in $PATH /usr/ucb; do
  16762. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16763. + for dir in $PATH /usr/ucb; do
  16764. + IFS="$lt_save_ifs"
  16765. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16766. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16767. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16768. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16769. + ECHO="$dir/echo"
  16770. + break
  16771. + fi
  16772. + done
  16773. IFS="$lt_save_ifs"
  16774. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16775. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16776. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16777. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16778. - echo="$dir/echo"
  16779. - break
  16780. - fi
  16781. - done
  16782. - IFS="$lt_save_ifs"
  16783. - if test "X$echo" = Xecho; then
  16784. - # We didn't find a better echo, so look for alternatives.
  16785. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  16786. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  16787. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16788. - # This shell has a builtin print -r that does the trick.
  16789. - echo='print -r'
  16790. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  16791. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  16792. - # If we have ksh, try running configure again with it.
  16793. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16794. - export ORIGINAL_CONFIG_SHELL
  16795. - CONFIG_SHELL=/bin/ksh
  16796. - export CONFIG_SHELL
  16797. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16798. - else
  16799. - # Try using printf.
  16800. - echo='printf %s\n'
  16801. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16802. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16803. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16804. - # Cool, printf works
  16805. - :
  16806. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16807. - test "X$echo_testing_string" = 'X\t' &&
  16808. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16809. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16810. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16811. - export CONFIG_SHELL
  16812. - SHELL="$CONFIG_SHELL"
  16813. - export SHELL
  16814. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16815. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16816. - test "X$echo_testing_string" = 'X\t' &&
  16817. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16818. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16819. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16820. + if test "X$ECHO" = Xecho; then
  16821. + # We didn't find a better echo, so look for alternatives.
  16822. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  16823. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  16824. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16825. + # This shell has a builtin print -r that does the trick.
  16826. + ECHO='print -r'
  16827. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  16828. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  16829. + # If we have ksh, try running configure again with it.
  16830. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16831. + export ORIGINAL_CONFIG_SHELL
  16832. + CONFIG_SHELL=/bin/ksh
  16833. + export CONFIG_SHELL
  16834. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16835. else
  16836. - # maybe with a smaller string...
  16837. - prev=:
  16838. + # Try using printf.
  16839. + ECHO='printf %s\n'
  16840. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16841. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16842. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16843. + # Cool, printf works
  16844. + :
  16845. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16846. + test "X$echo_testing_string" = 'X\t' &&
  16847. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16848. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16849. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16850. + export CONFIG_SHELL
  16851. + SHELL="$CONFIG_SHELL"
  16852. + export SHELL
  16853. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16854. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16855. + test "X$echo_testing_string" = 'X\t' &&
  16856. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16857. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16858. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16859. + else
  16860. + # maybe with a smaller string...
  16861. + prev=:
  16862. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16863. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  16864. - then
  16865. - break
  16866. - fi
  16867. - prev="$cmd"
  16868. - done
  16869. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16870. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  16871. + then
  16872. + break
  16873. + fi
  16874. + prev="$cmd"
  16875. + done
  16876. - if test "$prev" != 'sed 50q "$0"'; then
  16877. - echo_test_string=`eval $prev`
  16878. - export echo_test_string
  16879. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16880. - else
  16881. - # Oops. We lost completely, so just stick with echo.
  16882. - echo=echo
  16883. - fi
  16884. + if test "$prev" != 'sed 50q "$0"'; then
  16885. + echo_test_string=`eval $prev`
  16886. + export echo_test_string
  16887. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16888. + else
  16889. + # Oops. We lost completely, so just stick with echo.
  16890. + ECHO=echo
  16891. + fi
  16892. + fi
  16893. fi
  16894. fi
  16895. fi
  16896. fi
  16897. -fi
  16898. # Copy echo and quote the copy suitably for passing to libtool from
  16899. # the Makefile, instead of quoting the original, which is used later.
  16900. -ECHO=$echo
  16901. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16902. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16903. +lt_ECHO=$ECHO
  16904. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16905. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16906. fi
  16907. -tagnames=${tagnames+${tagnames},}CXX
  16908. -
  16909. -tagnames=${tagnames+${tagnames},}F77
  16910. -
  16911. -exec 7<&0 </dev/null 6>&1
  16912. +test -n "$DJDIR" || exec 7<&0 </dev/null
  16913. +exec 6>&1
  16914. # Name of the host.
  16915. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16916. @@ -721,7 +694,6 @@
  16917. subdirs=
  16918. MFLAGS=
  16919. MAKEFLAGS=
  16920. -SHELL=${CONFIG_SHELL-/bin/sh}
  16921. # Identity of this package.
  16922. PACKAGE_NAME=
  16923. @@ -729,6 +701,7 @@
  16924. PACKAGE_VERSION=
  16925. PACKAGE_STRING=
  16926. PACKAGE_BUGREPORT=
  16927. +PACKAGE_URL=
  16928. # Factoring default headers for most tests.
  16929. ac_includes_default="\
  16930. @@ -766,119 +739,146 @@
  16931. # include <unistd.h>
  16932. #endif"
  16933. -ac_subst_vars='SHELL
  16934. -PATH_SEPARATOR
  16935. -PACKAGE_NAME
  16936. -PACKAGE_TARNAME
  16937. -PACKAGE_VERSION
  16938. -PACKAGE_STRING
  16939. -PACKAGE_BUGREPORT
  16940. -exec_prefix
  16941. -prefix
  16942. -program_transform_name
  16943. -bindir
  16944. -sbindir
  16945. -libexecdir
  16946. -datarootdir
  16947. -datadir
  16948. -sysconfdir
  16949. -sharedstatedir
  16950. -localstatedir
  16951. -includedir
  16952. -oldincludedir
  16953. -docdir
  16954. -infodir
  16955. -htmldir
  16956. -dvidir
  16957. -pdfdir
  16958. -psdir
  16959. -libdir
  16960. -localedir
  16961. -mandir
  16962. -DEFS
  16963. -ECHO_C
  16964. -ECHO_N
  16965. -ECHO_T
  16966. -LIBS
  16967. -build_alias
  16968. -host_alias
  16969. -target_alias
  16970. -INSTALL_PROGRAM
  16971. -INSTALL_SCRIPT
  16972. -INSTALL_DATA
  16973. -CYGPATH_W
  16974. -PACKAGE
  16975. -VERSION
  16976. -ACLOCAL
  16977. -AUTOCONF
  16978. -AUTOMAKE
  16979. -AUTOHEADER
  16980. -MAKEINFO
  16981. -install_sh
  16982. -STRIP
  16983. -INSTALL_STRIP_PROGRAM
  16984. -mkdir_p
  16985. -AWK
  16986. -SET_MAKE
  16987. -am__leading_dot
  16988. -AMTAR
  16989. -am__tar
  16990. -am__untar
  16991. -build
  16992. -build_cpu
  16993. -build_vendor
  16994. -build_os
  16995. -host
  16996. -host_cpu
  16997. -host_vendor
  16998. -host_os
  16999. -CC
  17000. -CFLAGS
  17001. -LDFLAGS
  17002. -CPPFLAGS
  17003. -ac_ct_CC
  17004. -EXEEXT
  17005. -OBJEXT
  17006. -DEPDIR
  17007. -am__include
  17008. -am__quote
  17009. -AMDEP_TRUE
  17010. -AMDEP_FALSE
  17011. -AMDEPBACKSLASH
  17012. -CCDEPMODE
  17013. -am__fastdepCC_TRUE
  17014. -am__fastdepCC_FALSE
  17015. -GREP
  17016. -EGREP
  17017. -LN_S
  17018. -ECHO
  17019. -AR
  17020. -RANLIB
  17021. -CPP
  17022. -CXX
  17023. -CXXFLAGS
  17024. -ac_ct_CXX
  17025. -CXXDEPMODE
  17026. -am__fastdepCXX_TRUE
  17027. -am__fastdepCXX_FALSE
  17028. +ac_subst_vars='am__EXEEXT_FALSE
  17029. +am__EXEEXT_TRUE
  17030. +LTLIBOBJS
  17031. +LIBOBJS
  17032. +HAVE_XMMS_FALSE
  17033. +HAVE_XMMS_TRUE
  17034. +GTK_CONFIG
  17035. +XMMS_CONFIG
  17036. +HAVE_MPEG4IP_PLUG_FALSE
  17037. +HAVE_MPEG4IP_PLUG_TRUE
  17038. +external_mp4v2
  17039. +MP4FF_LIBS
  17040. +RPMBUILD
  17041. CXXCPP
  17042. -F77
  17043. -FFLAGS
  17044. -ac_ct_F77
  17045. -LIBTOOL
  17046. +am__fastdepCXX_FALSE
  17047. +am__fastdepCXX_TRUE
  17048. +CXXDEPMODE
  17049. +ac_ct_CXX
  17050. +CXXFLAGS
  17051. +CXX
  17052. LIBTOOL_DEPS
  17053. -RPMBUILD
  17054. -MP4FF_LIBS
  17055. -external_mp4v2
  17056. -HAVE_MPEG4IP_PLUG_TRUE
  17057. -HAVE_MPEG4IP_PLUG_FALSE
  17058. -XMMS_CONFIG
  17059. -GTK_CONFIG
  17060. -HAVE_XMMS_TRUE
  17061. -HAVE_XMMS_FALSE
  17062. -LIBOBJS
  17063. -LTLIBOBJS'
  17064. +CPP
  17065. +OTOOL64
  17066. +OTOOL
  17067. +LIPO
  17068. +NMEDIT
  17069. +DSYMUTIL
  17070. +lt_ECHO
  17071. +RANLIB
  17072. +AR
  17073. +OBJDUMP
  17074. +LN_S
  17075. +NM
  17076. +ac_ct_DUMPBIN
  17077. +DUMPBIN
  17078. +LD
  17079. +FGREP
  17080. +EGREP
  17081. +GREP
  17082. +SED
  17083. +am__fastdepCC_FALSE
  17084. +am__fastdepCC_TRUE
  17085. +CCDEPMODE
  17086. +AMDEPBACKSLASH
  17087. +AMDEP_FALSE
  17088. +AMDEP_TRUE
  17089. +am__quote
  17090. +am__include
  17091. +DEPDIR
  17092. +OBJEXT
  17093. +EXEEXT
  17094. +ac_ct_CC
  17095. +CPPFLAGS
  17096. +LDFLAGS
  17097. +CFLAGS
  17098. +CC
  17099. +host_os
  17100. +host_vendor
  17101. +host_cpu
  17102. +host
  17103. +build_os
  17104. +build_vendor
  17105. +build_cpu
  17106. +build
  17107. +LIBTOOL
  17108. +am__untar
  17109. +am__tar
  17110. +AMTAR
  17111. +am__leading_dot
  17112. +SET_MAKE
  17113. +AWK
  17114. +mkdir_p
  17115. +MKDIR_P
  17116. +INSTALL_STRIP_PROGRAM
  17117. +STRIP
  17118. +install_sh
  17119. +MAKEINFO
  17120. +AUTOHEADER
  17121. +AUTOMAKE
  17122. +AUTOCONF
  17123. +ACLOCAL
  17124. +VERSION
  17125. +PACKAGE
  17126. +CYGPATH_W
  17127. +am__isrc
  17128. +INSTALL_DATA
  17129. +INSTALL_SCRIPT
  17130. +INSTALL_PROGRAM
  17131. +target_alias
  17132. +host_alias
  17133. +build_alias
  17134. +LIBS
  17135. +ECHO_T
  17136. +ECHO_N
  17137. +ECHO_C
  17138. +DEFS
  17139. +mandir
  17140. +localedir
  17141. +libdir
  17142. +psdir
  17143. +pdfdir
  17144. +dvidir
  17145. +htmldir
  17146. +infodir
  17147. +docdir
  17148. +oldincludedir
  17149. +includedir
  17150. +localstatedir
  17151. +sharedstatedir
  17152. +sysconfdir
  17153. +datadir
  17154. +datarootdir
  17155. +libexecdir
  17156. +sbindir
  17157. +bindir
  17158. +program_transform_name
  17159. +prefix
  17160. +exec_prefix
  17161. +PACKAGE_URL
  17162. +PACKAGE_BUGREPORT
  17163. +PACKAGE_STRING
  17164. +PACKAGE_VERSION
  17165. +PACKAGE_TARNAME
  17166. +PACKAGE_NAME
  17167. +PATH_SEPARATOR
  17168. +SHELL'
  17169. ac_subst_files=''
  17170. +ac_user_opts='
  17171. +enable_option_checking
  17172. +enable_shared
  17173. +enable_static
  17174. +with_pic
  17175. +enable_fast_install
  17176. +enable_dependency_tracking
  17177. +with_gnu_ld
  17178. +enable_libtool_lock
  17179. +with_xmms
  17180. +with_drm
  17181. +with_mpeg4ip
  17182. +'
  17183. ac_precious_vars='build_alias
  17184. host_alias
  17185. target_alias
  17186. @@ -891,14 +891,14 @@
  17187. CXX
  17188. CXXFLAGS
  17189. CCC
  17190. -CXXCPP
  17191. -F77
  17192. -FFLAGS'
  17193. +CXXCPP'
  17194. # Initialize some variables set by options.
  17195. ac_init_help=
  17196. ac_init_version=false
  17197. +ac_unrecognized_opts=
  17198. +ac_unrecognized_sep=
  17199. # The variables have the same names as the options, with
  17200. # dashes changed to underlines.
  17201. cache_file=/dev/null
  17202. @@ -997,13 +997,20 @@
  17203. datarootdir=$ac_optarg ;;
  17204. -disable-* | --disable-*)
  17205. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17206. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17207. # Reject names that are not valid shell variable names.
  17208. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17209. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17210. - { (exit 1); exit 1; }; }
  17211. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  17212. - eval enable_$ac_feature=no ;;
  17213. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17214. + as_fn_error "invalid feature name: $ac_useropt"
  17215. + ac_useropt_orig=$ac_useropt
  17216. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17217. + case $ac_user_opts in
  17218. + *"
  17219. +"enable_$ac_useropt"
  17220. +"*) ;;
  17221. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  17222. + ac_unrecognized_sep=', ';;
  17223. + esac
  17224. + eval enable_$ac_useropt=no ;;
  17225. -docdir | --docdir | --docdi | --doc | --do)
  17226. ac_prev=docdir ;;
  17227. @@ -1016,13 +1023,20 @@
  17228. dvidir=$ac_optarg ;;
  17229. -enable-* | --enable-*)
  17230. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17231. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17232. # Reject names that are not valid shell variable names.
  17233. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17234. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17235. - { (exit 1); exit 1; }; }
  17236. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  17237. - eval enable_$ac_feature=\$ac_optarg ;;
  17238. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17239. + as_fn_error "invalid feature name: $ac_useropt"
  17240. + ac_useropt_orig=$ac_useropt
  17241. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17242. + case $ac_user_opts in
  17243. + *"
  17244. +"enable_$ac_useropt"
  17245. +"*) ;;
  17246. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  17247. + ac_unrecognized_sep=', ';;
  17248. + esac
  17249. + eval enable_$ac_useropt=\$ac_optarg ;;
  17250. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  17251. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  17252. @@ -1213,22 +1227,36 @@
  17253. ac_init_version=: ;;
  17254. -with-* | --with-*)
  17255. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17256. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17257. # Reject names that are not valid shell variable names.
  17258. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17259. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17260. - { (exit 1); exit 1; }; }
  17261. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  17262. - eval with_$ac_package=\$ac_optarg ;;
  17263. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17264. + as_fn_error "invalid package name: $ac_useropt"
  17265. + ac_useropt_orig=$ac_useropt
  17266. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17267. + case $ac_user_opts in
  17268. + *"
  17269. +"with_$ac_useropt"
  17270. +"*) ;;
  17271. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  17272. + ac_unrecognized_sep=', ';;
  17273. + esac
  17274. + eval with_$ac_useropt=\$ac_optarg ;;
  17275. -without-* | --without-*)
  17276. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17277. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17278. # Reject names that are not valid shell variable names.
  17279. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17280. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17281. - { (exit 1); exit 1; }; }
  17282. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  17283. - eval with_$ac_package=no ;;
  17284. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17285. + as_fn_error "invalid package name: $ac_useropt"
  17286. + ac_useropt_orig=$ac_useropt
  17287. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17288. + case $ac_user_opts in
  17289. + *"
  17290. +"with_$ac_useropt"
  17291. +"*) ;;
  17292. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  17293. + ac_unrecognized_sep=', ';;
  17294. + esac
  17295. + eval with_$ac_useropt=no ;;
  17296. --x)
  17297. # Obsolete; use --with-x.
  17298. @@ -1248,25 +1276,25 @@
  17299. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  17300. x_libraries=$ac_optarg ;;
  17301. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  17302. -Try \`$0 --help' for more information." >&2
  17303. - { (exit 1); exit 1; }; }
  17304. + -*) as_fn_error "unrecognized option: \`$ac_option'
  17305. +Try \`$0 --help' for more information."
  17306. ;;
  17307. *=*)
  17308. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  17309. # Reject names that are not valid shell variable names.
  17310. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  17311. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  17312. - { (exit 1); exit 1; }; }
  17313. + case $ac_envvar in #(
  17314. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  17315. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  17316. + esac
  17317. eval $ac_envvar=\$ac_optarg
  17318. export $ac_envvar ;;
  17319. *)
  17320. # FIXME: should be removed in autoconf 3.0.
  17321. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17322. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17323. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17324. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17325. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17326. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  17327. ;;
  17328. @@ -1275,23 +1303,36 @@
  17329. if test -n "$ac_prev"; then
  17330. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  17331. - { echo "$as_me: error: missing argument to $ac_option" >&2
  17332. - { (exit 1); exit 1; }; }
  17333. + as_fn_error "missing argument to $ac_option"
  17334. +fi
  17335. +
  17336. +if test -n "$ac_unrecognized_opts"; then
  17337. + case $enable_option_checking in
  17338. + no) ;;
  17339. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  17340. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  17341. + esac
  17342. fi
  17343. -# Be sure to have absolute directory names.
  17344. +# Check all directory arguments for consistency.
  17345. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  17346. datadir sysconfdir sharedstatedir localstatedir includedir \
  17347. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  17348. libdir localedir mandir
  17349. do
  17350. eval ac_val=\$$ac_var
  17351. + # Remove trailing slashes.
  17352. + case $ac_val in
  17353. + */ )
  17354. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  17355. + eval $ac_var=\$ac_val;;
  17356. + esac
  17357. + # Be sure to have absolute directory names.
  17358. case $ac_val in
  17359. [\\/$]* | ?:[\\/]* ) continue;;
  17360. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  17361. esac
  17362. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17363. - { (exit 1); exit 1; }; }
  17364. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  17365. done
  17366. # There might be people who depend on the old broken behavior: `$host'
  17367. @@ -1305,7 +1346,7 @@
  17368. if test "x$host_alias" != x; then
  17369. if test "x$build_alias" = x; then
  17370. cross_compiling=maybe
  17371. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17372. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17373. If a cross compiler is detected then cross compile mode will be used." >&2
  17374. elif test "x$build_alias" != "x$host_alias"; then
  17375. cross_compiling=yes
  17376. @@ -1321,23 +1362,21 @@
  17377. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  17378. ac_ls_di=`ls -di .` &&
  17379. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  17380. - { echo "$as_me: error: Working directory cannot be determined" >&2
  17381. - { (exit 1); exit 1; }; }
  17382. + as_fn_error "working directory cannot be determined"
  17383. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  17384. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  17385. - { (exit 1); exit 1; }; }
  17386. + as_fn_error "pwd does not report name of working directory"
  17387. # Find the source files, if location was not specified.
  17388. if test -z "$srcdir"; then
  17389. ac_srcdir_defaulted=yes
  17390. # Try the directory containing this script, then the parent directory.
  17391. - ac_confdir=`$as_dirname -- "$0" ||
  17392. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17393. - X"$0" : 'X\(//\)[^/]' \| \
  17394. - X"$0" : 'X\(//\)$' \| \
  17395. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17396. -echo X"$0" |
  17397. + ac_confdir=`$as_dirname -- "$as_myself" ||
  17398. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17399. + X"$as_myself" : 'X\(//\)[^/]' \| \
  17400. + X"$as_myself" : 'X\(//\)$' \| \
  17401. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  17402. +$as_echo X"$as_myself" |
  17403. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17404. s//\1/
  17405. q
  17406. @@ -1364,13 +1403,11 @@
  17407. fi
  17408. if test ! -r "$srcdir/$ac_unique_file"; then
  17409. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  17410. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  17411. - { (exit 1); exit 1; }; }
  17412. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  17413. fi
  17414. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  17415. ac_abs_confdir=`(
  17416. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  17417. - { (exit 1); exit 1; }; }
  17418. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  17419. pwd)`
  17420. # When building in place, set srcdir=.
  17421. if test "$ac_abs_confdir" = "$ac_pwd"; then
  17422. @@ -1418,9 +1455,9 @@
  17423. Installation directories:
  17424. --prefix=PREFIX install architecture-independent files in PREFIX
  17425. - [$ac_default_prefix]
  17426. + [$ac_default_prefix]
  17427. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  17428. - [PREFIX]
  17429. + [PREFIX]
  17430. By default, \`make install' will install all the files in
  17431. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  17432. @@ -1430,25 +1467,25 @@
  17433. For better control, use the options below.
  17434. Fine tuning of the installation directories:
  17435. - --bindir=DIR user executables [EPREFIX/bin]
  17436. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  17437. - --libexecdir=DIR program executables [EPREFIX/libexec]
  17438. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17439. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17440. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17441. - --libdir=DIR object code libraries [EPREFIX/lib]
  17442. - --includedir=DIR C header files [PREFIX/include]
  17443. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17444. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17445. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17446. - --infodir=DIR info documentation [DATAROOTDIR/info]
  17447. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17448. - --mandir=DIR man documentation [DATAROOTDIR/man]
  17449. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  17450. - --htmldir=DIR html documentation [DOCDIR]
  17451. - --dvidir=DIR dvi documentation [DOCDIR]
  17452. - --pdfdir=DIR pdf documentation [DOCDIR]
  17453. - --psdir=DIR ps documentation [DOCDIR]
  17454. + --bindir=DIR user executables [EPREFIX/bin]
  17455. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  17456. + --libexecdir=DIR program executables [EPREFIX/libexec]
  17457. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17458. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17459. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17460. + --libdir=DIR object code libraries [EPREFIX/lib]
  17461. + --includedir=DIR C header files [PREFIX/include]
  17462. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17463. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17464. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17465. + --infodir=DIR info documentation [DATAROOTDIR/info]
  17466. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17467. + --mandir=DIR man documentation [DATAROOTDIR/man]
  17468. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  17469. + --htmldir=DIR html documentation [DOCDIR]
  17470. + --dvidir=DIR dvi documentation [DOCDIR]
  17471. + --pdfdir=DIR pdf documentation [DOCDIR]
  17472. + --psdir=DIR ps documentation [DOCDIR]
  17473. _ACEOF
  17474. cat <<\_ACEOF
  17475. @@ -1469,6 +1506,7 @@
  17476. cat <<\_ACEOF
  17477. Optional Features:
  17478. + --disable-option-checking ignore unrecognized --enable/--with options
  17479. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  17480. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  17481. --enable-shared[=PKGS] build shared libraries [default=yes]
  17482. @@ -1482,10 +1520,9 @@
  17483. Optional Packages:
  17484. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  17485. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  17486. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17487. --with-pic try to use only PIC/non-PIC objects [default=use
  17488. both]
  17489. - --with-tags[=TAGS] include additional configurations [automatic]
  17490. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17491. --with-xmms compile XMMS-1 plugin
  17492. --with-drm compile libfaad with DRM support
  17493. --with-mpeg4ip compile mpeg4ip plugin
  17494. @@ -1496,18 +1533,17 @@
  17495. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  17496. nonstandard directory <lib dir>
  17497. LIBS libraries to pass to the linker, e.g. -l<library>
  17498. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  17499. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  17500. you have headers in a nonstandard directory <include dir>
  17501. CPP C preprocessor
  17502. CXX C++ compiler command
  17503. CXXFLAGS C++ compiler flags
  17504. CXXCPP C++ preprocessor
  17505. - F77 Fortran 77 compiler command
  17506. - FFLAGS Fortran 77 compiler flags
  17507. Use these variables to override the choices made by `configure' or to help
  17508. it to find libraries and programs with nonstandard names/locations.
  17509. +Report bugs to the package provider.
  17510. _ACEOF
  17511. ac_status=$?
  17512. fi
  17513. @@ -1515,15 +1551,17 @@
  17514. if test "$ac_init_help" = "recursive"; then
  17515. # If there are subdirs, report their specific --help.
  17516. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  17517. - test -d "$ac_dir" || continue
  17518. + test -d "$ac_dir" ||
  17519. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  17520. + continue
  17521. ac_builddir=.
  17522. case "$ac_dir" in
  17523. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17524. *)
  17525. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17526. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17527. # A ".." for each directory in $ac_dir_suffix.
  17528. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17529. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17530. case $ac_top_builddir_sub in
  17531. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17532. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17533. @@ -1559,7 +1597,7 @@
  17534. echo &&
  17535. $SHELL "$ac_srcdir/configure" --help=recursive
  17536. else
  17537. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17538. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17539. fi || ac_status=$?
  17540. cd "$ac_pwd" || { ac_status=$?; break; }
  17541. done
  17542. @@ -1569,39 +1607,565 @@
  17543. if $ac_init_version; then
  17544. cat <<\_ACEOF
  17545. configure
  17546. -generated by GNU Autoconf 2.61
  17547. +generated by GNU Autoconf 2.65
  17548. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  17549. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  17550. +Copyright (C) 2009 Free Software Foundation, Inc.
  17551. This configure script is free software; the Free Software Foundation
  17552. gives unlimited permission to copy, distribute and modify it.
  17553. _ACEOF
  17554. exit
  17555. fi
  17556. -cat >config.log <<_ACEOF
  17557. -This file contains any messages produced by compilers while
  17558. -running configure, to aid debugging if configure makes a mistake.
  17559. -It was created by $as_me, which was
  17560. -generated by GNU Autoconf 2.61. Invocation command line was
  17561. +## ------------------------ ##
  17562. +## Autoconf initialization. ##
  17563. +## ------------------------ ##
  17564. +
  17565. +# ac_fn_c_try_compile LINENO
  17566. +# --------------------------
  17567. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17568. +ac_fn_c_try_compile ()
  17569. +{
  17570. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17571. + rm -f conftest.$ac_objext
  17572. + if { { ac_try="$ac_compile"
  17573. +case "(($ac_try" in
  17574. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17575. + *) ac_try_echo=$ac_try;;
  17576. +esac
  17577. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17578. +$as_echo "$ac_try_echo"; } >&5
  17579. + (eval "$ac_compile") 2>conftest.err
  17580. + ac_status=$?
  17581. + if test -s conftest.err; then
  17582. + grep -v '^ *+' conftest.err >conftest.er1
  17583. + cat conftest.er1 >&5
  17584. + mv -f conftest.er1 conftest.err
  17585. + fi
  17586. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17587. + test $ac_status = 0; } && {
  17588. + test -z "$ac_c_werror_flag" ||
  17589. + test ! -s conftest.err
  17590. + } && test -s conftest.$ac_objext; then :
  17591. + ac_retval=0
  17592. +else
  17593. + $as_echo "$as_me: failed program was:" >&5
  17594. +sed 's/^/| /' conftest.$ac_ext >&5
  17595. - $ $0 $@
  17596. + ac_retval=1
  17597. +fi
  17598. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17599. + as_fn_set_status $ac_retval
  17600. +
  17601. +} # ac_fn_c_try_compile
  17602. +# ac_fn_c_try_link LINENO
  17603. +# -----------------------
  17604. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17605. +ac_fn_c_try_link ()
  17606. +{
  17607. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17608. + rm -f conftest.$ac_objext conftest$ac_exeext
  17609. + if { { ac_try="$ac_link"
  17610. +case "(($ac_try" in
  17611. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17612. + *) ac_try_echo=$ac_try;;
  17613. +esac
  17614. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17615. +$as_echo "$ac_try_echo"; } >&5
  17616. + (eval "$ac_link") 2>conftest.err
  17617. + ac_status=$?
  17618. + if test -s conftest.err; then
  17619. + grep -v '^ *+' conftest.err >conftest.er1
  17620. + cat conftest.er1 >&5
  17621. + mv -f conftest.er1 conftest.err
  17622. + fi
  17623. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17624. + test $ac_status = 0; } && {
  17625. + test -z "$ac_c_werror_flag" ||
  17626. + test ! -s conftest.err
  17627. + } && test -s conftest$ac_exeext && {
  17628. + test "$cross_compiling" = yes ||
  17629. + $as_test_x conftest$ac_exeext
  17630. + }; then :
  17631. + ac_retval=0
  17632. +else
  17633. + $as_echo "$as_me: failed program was:" >&5
  17634. +sed 's/^/| /' conftest.$ac_ext >&5
  17635. +
  17636. + ac_retval=1
  17637. +fi
  17638. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  17639. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  17640. + # interfere with the next link command; also delete a directory that is
  17641. + # left behind by Apple's compiler. We do this before executing the actions.
  17642. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17643. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17644. + as_fn_set_status $ac_retval
  17645. +
  17646. +} # ac_fn_c_try_link
  17647. +
  17648. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  17649. +# -------------------------------------------------------
  17650. +# Tests whether HEADER exists and can be compiled using the include files in
  17651. +# INCLUDES, setting the cache variable VAR accordingly.
  17652. +ac_fn_c_check_header_compile ()
  17653. +{
  17654. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17655. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17656. +$as_echo_n "checking for $2... " >&6; }
  17657. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17658. + $as_echo_n "(cached) " >&6
  17659. +else
  17660. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17661. +/* end confdefs.h. */
  17662. +$4
  17663. +#include <$2>
  17664. _ACEOF
  17665. -exec 5>>config.log
  17666. +if ac_fn_c_try_compile "$LINENO"; then :
  17667. + eval "$3=yes"
  17668. +else
  17669. + eval "$3=no"
  17670. +fi
  17671. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17672. +fi
  17673. +eval ac_res=\$$3
  17674. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17675. +$as_echo "$ac_res" >&6; }
  17676. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17677. +
  17678. +} # ac_fn_c_check_header_compile
  17679. +
  17680. +# ac_fn_c_try_cpp LINENO
  17681. +# ----------------------
  17682. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  17683. +ac_fn_c_try_cpp ()
  17684. {
  17685. -cat <<_ASUNAME
  17686. -## --------- ##
  17687. -## Platform. ##
  17688. -## --------- ##
  17689. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17690. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  17691. +case "(($ac_try" in
  17692. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17693. + *) ac_try_echo=$ac_try;;
  17694. +esac
  17695. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17696. +$as_echo "$ac_try_echo"; } >&5
  17697. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  17698. + ac_status=$?
  17699. + if test -s conftest.err; then
  17700. + grep -v '^ *+' conftest.err >conftest.er1
  17701. + cat conftest.er1 >&5
  17702. + mv -f conftest.er1 conftest.err
  17703. + fi
  17704. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17705. + test $ac_status = 0; } >/dev/null && {
  17706. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17707. + test ! -s conftest.err
  17708. + }; then :
  17709. + ac_retval=0
  17710. +else
  17711. + $as_echo "$as_me: failed program was:" >&5
  17712. +sed 's/^/| /' conftest.$ac_ext >&5
  17713. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  17714. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  17715. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  17716. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  17717. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  17718. + ac_retval=1
  17719. +fi
  17720. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17721. + as_fn_set_status $ac_retval
  17722. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  17723. +} # ac_fn_c_try_cpp
  17724. +
  17725. +# ac_fn_c_try_run LINENO
  17726. +# ----------------------
  17727. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  17728. +# that executables *can* be run.
  17729. +ac_fn_c_try_run ()
  17730. +{
  17731. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17732. + if { { ac_try="$ac_link"
  17733. +case "(($ac_try" in
  17734. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17735. + *) ac_try_echo=$ac_try;;
  17736. +esac
  17737. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17738. +$as_echo "$ac_try_echo"; } >&5
  17739. + (eval "$ac_link") 2>&5
  17740. + ac_status=$?
  17741. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17742. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  17743. + { { case "(($ac_try" in
  17744. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17745. + *) ac_try_echo=$ac_try;;
  17746. +esac
  17747. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17748. +$as_echo "$ac_try_echo"; } >&5
  17749. + (eval "$ac_try") 2>&5
  17750. + ac_status=$?
  17751. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17752. + test $ac_status = 0; }; }; then :
  17753. + ac_retval=0
  17754. +else
  17755. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17756. + $as_echo "$as_me: failed program was:" >&5
  17757. +sed 's/^/| /' conftest.$ac_ext >&5
  17758. +
  17759. + ac_retval=$ac_status
  17760. +fi
  17761. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17762. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17763. + as_fn_set_status $ac_retval
  17764. +
  17765. +} # ac_fn_c_try_run
  17766. +
  17767. +# ac_fn_c_check_func LINENO FUNC VAR
  17768. +# ----------------------------------
  17769. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  17770. +ac_fn_c_check_func ()
  17771. +{
  17772. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17773. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17774. +$as_echo_n "checking for $2... " >&6; }
  17775. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17776. + $as_echo_n "(cached) " >&6
  17777. +else
  17778. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. +/* end confdefs.h. */
  17780. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  17781. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17782. +#define $2 innocuous_$2
  17783. +
  17784. +/* System header to define __stub macros and hopefully few prototypes,
  17785. + which can conflict with char $2 (); below.
  17786. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17787. + <limits.h> exists even on freestanding compilers. */
  17788. +
  17789. +#ifdef __STDC__
  17790. +# include <limits.h>
  17791. +#else
  17792. +# include <assert.h>
  17793. +#endif
  17794. +
  17795. +#undef $2
  17796. +
  17797. +/* Override any GCC internal prototype to avoid an error.
  17798. + Use char because int might match the return type of a GCC
  17799. + builtin and then its argument prototype would still apply. */
  17800. +#ifdef __cplusplus
  17801. +extern "C"
  17802. +#endif
  17803. +char $2 ();
  17804. +/* The GNU C library defines this for functions which it implements
  17805. + to always fail with ENOSYS. Some functions are actually named
  17806. + something starting with __ and the normal name is an alias. */
  17807. +#if defined __stub_$2 || defined __stub___$2
  17808. +choke me
  17809. +#endif
  17810. +
  17811. +int
  17812. +main ()
  17813. +{
  17814. +return $2 ();
  17815. + ;
  17816. + return 0;
  17817. +}
  17818. +_ACEOF
  17819. +if ac_fn_c_try_link "$LINENO"; then :
  17820. + eval "$3=yes"
  17821. +else
  17822. + eval "$3=no"
  17823. +fi
  17824. +rm -f core conftest.err conftest.$ac_objext \
  17825. + conftest$ac_exeext conftest.$ac_ext
  17826. +fi
  17827. +eval ac_res=\$$3
  17828. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17829. +$as_echo "$ac_res" >&6; }
  17830. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17831. +
  17832. +} # ac_fn_c_check_func
  17833. +
  17834. +# ac_fn_cxx_try_compile LINENO
  17835. +# ----------------------------
  17836. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17837. +ac_fn_cxx_try_compile ()
  17838. +{
  17839. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17840. + rm -f conftest.$ac_objext
  17841. + if { { ac_try="$ac_compile"
  17842. +case "(($ac_try" in
  17843. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17844. + *) ac_try_echo=$ac_try;;
  17845. +esac
  17846. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17847. +$as_echo "$ac_try_echo"; } >&5
  17848. + (eval "$ac_compile") 2>conftest.err
  17849. + ac_status=$?
  17850. + if test -s conftest.err; then
  17851. + grep -v '^ *+' conftest.err >conftest.er1
  17852. + cat conftest.er1 >&5
  17853. + mv -f conftest.er1 conftest.err
  17854. + fi
  17855. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17856. + test $ac_status = 0; } && {
  17857. + test -z "$ac_cxx_werror_flag" ||
  17858. + test ! -s conftest.err
  17859. + } && test -s conftest.$ac_objext; then :
  17860. + ac_retval=0
  17861. +else
  17862. + $as_echo "$as_me: failed program was:" >&5
  17863. +sed 's/^/| /' conftest.$ac_ext >&5
  17864. +
  17865. + ac_retval=1
  17866. +fi
  17867. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17868. + as_fn_set_status $ac_retval
  17869. +
  17870. +} # ac_fn_cxx_try_compile
  17871. +
  17872. +# ac_fn_cxx_try_cpp LINENO
  17873. +# ------------------------
  17874. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  17875. +ac_fn_cxx_try_cpp ()
  17876. +{
  17877. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17878. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  17879. +case "(($ac_try" in
  17880. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17881. + *) ac_try_echo=$ac_try;;
  17882. +esac
  17883. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17884. +$as_echo "$ac_try_echo"; } >&5
  17885. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  17886. + ac_status=$?
  17887. + if test -s conftest.err; then
  17888. + grep -v '^ *+' conftest.err >conftest.er1
  17889. + cat conftest.er1 >&5
  17890. + mv -f conftest.er1 conftest.err
  17891. + fi
  17892. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17893. + test $ac_status = 0; } >/dev/null && {
  17894. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17895. + test ! -s conftest.err
  17896. + }; then :
  17897. + ac_retval=0
  17898. +else
  17899. + $as_echo "$as_me: failed program was:" >&5
  17900. +sed 's/^/| /' conftest.$ac_ext >&5
  17901. +
  17902. + ac_retval=1
  17903. +fi
  17904. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17905. + as_fn_set_status $ac_retval
  17906. +
  17907. +} # ac_fn_cxx_try_cpp
  17908. +
  17909. +# ac_fn_cxx_try_link LINENO
  17910. +# -------------------------
  17911. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17912. +ac_fn_cxx_try_link ()
  17913. +{
  17914. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17915. + rm -f conftest.$ac_objext conftest$ac_exeext
  17916. + if { { ac_try="$ac_link"
  17917. +case "(($ac_try" in
  17918. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17919. + *) ac_try_echo=$ac_try;;
  17920. +esac
  17921. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17922. +$as_echo "$ac_try_echo"; } >&5
  17923. + (eval "$ac_link") 2>conftest.err
  17924. + ac_status=$?
  17925. + if test -s conftest.err; then
  17926. + grep -v '^ *+' conftest.err >conftest.er1
  17927. + cat conftest.er1 >&5
  17928. + mv -f conftest.er1 conftest.err
  17929. + fi
  17930. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17931. + test $ac_status = 0; } && {
  17932. + test -z "$ac_cxx_werror_flag" ||
  17933. + test ! -s conftest.err
  17934. + } && test -s conftest$ac_exeext && {
  17935. + test "$cross_compiling" = yes ||
  17936. + $as_test_x conftest$ac_exeext
  17937. + }; then :
  17938. + ac_retval=0
  17939. +else
  17940. + $as_echo "$as_me: failed program was:" >&5
  17941. +sed 's/^/| /' conftest.$ac_ext >&5
  17942. +
  17943. + ac_retval=1
  17944. +fi
  17945. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  17946. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  17947. + # interfere with the next link command; also delete a directory that is
  17948. + # left behind by Apple's compiler. We do this before executing the actions.
  17949. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17950. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17951. + as_fn_set_status $ac_retval
  17952. +
  17953. +} # ac_fn_cxx_try_link
  17954. +
  17955. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  17956. +# -------------------------------------------------------
  17957. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  17958. +# the include files in INCLUDES and setting the cache variable VAR
  17959. +# accordingly.
  17960. +ac_fn_c_check_header_mongrel ()
  17961. +{
  17962. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17963. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17964. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17965. +$as_echo_n "checking for $2... " >&6; }
  17966. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17967. + $as_echo_n "(cached) " >&6
  17968. +fi
  17969. +eval ac_res=\$$3
  17970. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17971. +$as_echo "$ac_res" >&6; }
  17972. +else
  17973. + # Is the header compilable?
  17974. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  17975. +$as_echo_n "checking $2 usability... " >&6; }
  17976. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17977. +/* end confdefs.h. */
  17978. +$4
  17979. +#include <$2>
  17980. +_ACEOF
  17981. +if ac_fn_c_try_compile "$LINENO"; then :
  17982. + ac_header_compiler=yes
  17983. +else
  17984. + ac_header_compiler=no
  17985. +fi
  17986. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  17988. +$as_echo "$ac_header_compiler" >&6; }
  17989. +
  17990. +# Is the header present?
  17991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  17992. +$as_echo_n "checking $2 presence... " >&6; }
  17993. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17994. +/* end confdefs.h. */
  17995. +#include <$2>
  17996. +_ACEOF
  17997. +if ac_fn_c_try_cpp "$LINENO"; then :
  17998. + ac_header_preproc=yes
  17999. +else
  18000. + ac_header_preproc=no
  18001. +fi
  18002. +rm -f conftest.err conftest.$ac_ext
  18003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18004. +$as_echo "$ac_header_preproc" >&6; }
  18005. +
  18006. +# So? What about this header?
  18007. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18008. + yes:no: )
  18009. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18010. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18011. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18012. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18013. + ;;
  18014. + no:yes:* )
  18015. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18016. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18017. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18018. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18019. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18020. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18021. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18022. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18023. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18024. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18025. + ;;
  18026. +esac
  18027. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18028. +$as_echo_n "checking for $2... " >&6; }
  18029. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18030. + $as_echo_n "(cached) " >&6
  18031. +else
  18032. + eval "$3=\$ac_header_compiler"
  18033. +fi
  18034. +eval ac_res=\$$3
  18035. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18036. +$as_echo "$ac_res" >&6; }
  18037. +fi
  18038. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18039. +
  18040. +} # ac_fn_c_check_header_mongrel
  18041. +
  18042. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  18043. +# -------------------------------------------
  18044. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  18045. +# variable VAR accordingly.
  18046. +ac_fn_c_check_type ()
  18047. +{
  18048. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18049. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18050. +$as_echo_n "checking for $2... " >&6; }
  18051. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18052. + $as_echo_n "(cached) " >&6
  18053. +else
  18054. + eval "$3=no"
  18055. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18056. +/* end confdefs.h. */
  18057. +$4
  18058. +int
  18059. +main ()
  18060. +{
  18061. +if (sizeof ($2))
  18062. + return 0;
  18063. + ;
  18064. + return 0;
  18065. +}
  18066. +_ACEOF
  18067. +if ac_fn_c_try_compile "$LINENO"; then :
  18068. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18069. +/* end confdefs.h. */
  18070. +$4
  18071. +int
  18072. +main ()
  18073. +{
  18074. +if (sizeof (($2)))
  18075. + return 0;
  18076. + ;
  18077. + return 0;
  18078. +}
  18079. +_ACEOF
  18080. +if ac_fn_c_try_compile "$LINENO"; then :
  18081. +
  18082. +else
  18083. + eval "$3=yes"
  18084. +fi
  18085. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18086. +fi
  18087. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18088. +fi
  18089. +eval ac_res=\$$3
  18090. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18091. +$as_echo "$ac_res" >&6; }
  18092. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18093. +
  18094. +} # ac_fn_c_check_type
  18095. +cat >config.log <<_ACEOF
  18096. +This file contains any messages produced by compilers while
  18097. +running configure, to aid debugging if configure makes a mistake.
  18098. +
  18099. +It was created by $as_me, which was
  18100. +generated by GNU Autoconf 2.65. Invocation command line was
  18101. +
  18102. + $ $0 $@
  18103. +
  18104. +_ACEOF
  18105. +exec 5>>config.log
  18106. +{
  18107. +cat <<_ASUNAME
  18108. +## --------- ##
  18109. +## Platform. ##
  18110. +## --------- ##
  18111. +
  18112. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  18113. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  18114. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  18115. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  18116. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  18117. +
  18118. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  18119. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  18120. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18121. @@ -1619,8 +2183,8 @@
  18122. do
  18123. IFS=$as_save_IFS
  18124. test -z "$as_dir" && as_dir=.
  18125. - echo "PATH: $as_dir"
  18126. -done
  18127. + $as_echo "PATH: $as_dir"
  18128. + done
  18129. IFS=$as_save_IFS
  18130. } >&5
  18131. @@ -1654,12 +2218,12 @@
  18132. | -silent | --silent | --silen | --sile | --sil)
  18133. continue ;;
  18134. *\'*)
  18135. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18136. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18137. esac
  18138. case $ac_pass in
  18139. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  18140. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18141. 2)
  18142. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  18143. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18144. if test $ac_must_keep_next = true; then
  18145. ac_must_keep_next=false # Got value, back to normal.
  18146. else
  18147. @@ -1675,13 +2239,13 @@
  18148. -* ) ac_must_keep_next=true ;;
  18149. esac
  18150. fi
  18151. - ac_configure_args="$ac_configure_args '$ac_arg'"
  18152. + as_fn_append ac_configure_args " '$ac_arg'"
  18153. ;;
  18154. esac
  18155. done
  18156. done
  18157. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  18158. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  18159. +{ ac_configure_args0=; unset ac_configure_args0;}
  18160. +{ ac_configure_args1=; unset ac_configure_args1;}
  18161. # When interrupted or exit'd, cleanup temporary files, and complete
  18162. # config.log. We remove comments because anyway the quotes in there
  18163. @@ -1706,12 +2270,13 @@
  18164. case $ac_val in #(
  18165. *${as_nl}*)
  18166. case $ac_var in #(
  18167. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18168. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18169. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18170. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18171. esac
  18172. case $ac_var in #(
  18173. _ | IFS | as_nl) ;; #(
  18174. - *) $as_unset $ac_var ;;
  18175. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18176. + *) { eval $ac_var=; unset $ac_var;} ;;
  18177. esac ;;
  18178. esac
  18179. done
  18180. @@ -1740,9 +2305,9 @@
  18181. do
  18182. eval ac_val=\$$ac_var
  18183. case $ac_val in
  18184. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18185. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18186. esac
  18187. - echo "$ac_var='\''$ac_val'\''"
  18188. + $as_echo "$ac_var='\''$ac_val'\''"
  18189. done | sort
  18190. echo
  18191. @@ -1757,9 +2322,9 @@
  18192. do
  18193. eval ac_val=\$$ac_var
  18194. case $ac_val in
  18195. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18196. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18197. esac
  18198. - echo "$ac_var='\''$ac_val'\''"
  18199. + $as_echo "$ac_var='\''$ac_val'\''"
  18200. done | sort
  18201. echo
  18202. fi
  18203. @@ -1775,83 +2340,88 @@
  18204. echo
  18205. fi
  18206. test "$ac_signal" != 0 &&
  18207. - echo "$as_me: caught signal $ac_signal"
  18208. - echo "$as_me: exit $exit_status"
  18209. + $as_echo "$as_me: caught signal $ac_signal"
  18210. + $as_echo "$as_me: exit $exit_status"
  18211. } >&5
  18212. rm -f core *.core core.conftest.* &&
  18213. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18214. exit $exit_status
  18215. ' 0
  18216. for ac_signal in 1 2 13 15; do
  18217. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  18218. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18219. done
  18220. ac_signal=0
  18221. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  18222. rm -f -r conftest* confdefs.h
  18223. +$as_echo "/* confdefs.h */" > confdefs.h
  18224. +
  18225. # Predefined preprocessor variables.
  18226. cat >>confdefs.h <<_ACEOF
  18227. #define PACKAGE_NAME "$PACKAGE_NAME"
  18228. _ACEOF
  18229. -
  18230. cat >>confdefs.h <<_ACEOF
  18231. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18232. _ACEOF
  18233. -
  18234. cat >>confdefs.h <<_ACEOF
  18235. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  18236. _ACEOF
  18237. -
  18238. cat >>confdefs.h <<_ACEOF
  18239. #define PACKAGE_STRING "$PACKAGE_STRING"
  18240. _ACEOF
  18241. -
  18242. cat >>confdefs.h <<_ACEOF
  18243. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18244. _ACEOF
  18245. +cat >>confdefs.h <<_ACEOF
  18246. +#define PACKAGE_URL "$PACKAGE_URL"
  18247. +_ACEOF
  18248. +
  18249. # Let the site file select an alternate cache file if it wants to.
  18250. -# Prefer explicitly selected file to automatically selected ones.
  18251. +# Prefer an explicitly selected file to automatically selected ones.
  18252. +ac_site_file1=NONE
  18253. +ac_site_file2=NONE
  18254. if test -n "$CONFIG_SITE"; then
  18255. - set x "$CONFIG_SITE"
  18256. + ac_site_file1=$CONFIG_SITE
  18257. elif test "x$prefix" != xNONE; then
  18258. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  18259. + ac_site_file1=$prefix/share/config.site
  18260. + ac_site_file2=$prefix/etc/config.site
  18261. else
  18262. - set x "$ac_default_prefix/share/config.site" \
  18263. - "$ac_default_prefix/etc/config.site"
  18264. + ac_site_file1=$ac_default_prefix/share/config.site
  18265. + ac_site_file2=$ac_default_prefix/etc/config.site
  18266. fi
  18267. -shift
  18268. -for ac_site_file
  18269. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18270. do
  18271. - if test -r "$ac_site_file"; then
  18272. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18273. -echo "$as_me: loading site script $ac_site_file" >&6;}
  18274. + test "x$ac_site_file" = xNONE && continue
  18275. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18276. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18277. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18278. sed 's/^/| /' "$ac_site_file" >&5
  18279. . "$ac_site_file"
  18280. fi
  18281. done
  18282. if test -r "$cache_file"; then
  18283. - # Some versions of bash will fail to source /dev/null (special
  18284. - # files actually), so we avoid doing that.
  18285. - if test -f "$cache_file"; then
  18286. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18287. -echo "$as_me: loading cache $cache_file" >&6;}
  18288. + # Some versions of bash will fail to source /dev/null (special files
  18289. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18290. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18291. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18292. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  18293. case $cache_file in
  18294. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18295. *) . "./$cache_file";;
  18296. esac
  18297. fi
  18298. else
  18299. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18300. -echo "$as_me: creating cache $cache_file" >&6;}
  18301. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18302. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  18303. >$cache_file
  18304. fi
  18305. @@ -1865,60 +2435,56 @@
  18306. eval ac_new_val=\$ac_env_${ac_var}_value
  18307. case $ac_old_set,$ac_new_set in
  18308. set,)
  18309. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18310. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18311. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18312. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18313. ac_cache_corrupted=: ;;
  18314. ,set)
  18315. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18316. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18317. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18318. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18319. ac_cache_corrupted=: ;;
  18320. ,);;
  18321. *)
  18322. if test "x$ac_old_val" != "x$ac_new_val"; then
  18323. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18324. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18325. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  18326. -echo "$as_me: former value: $ac_old_val" >&2;}
  18327. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  18328. -echo "$as_me: current value: $ac_new_val" >&2;}
  18329. - ac_cache_corrupted=:
  18330. + # differences in whitespace do not lead to failure.
  18331. + ac_old_val_w=`echo x $ac_old_val`
  18332. + ac_new_val_w=`echo x $ac_new_val`
  18333. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18334. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18335. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18336. + ac_cache_corrupted=:
  18337. + else
  18338. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18339. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18340. + eval $ac_var=\$ac_old_val
  18341. + fi
  18342. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18343. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18344. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18345. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18346. fi;;
  18347. esac
  18348. # Pass precious variables to config.status.
  18349. if test "$ac_new_set" = set; then
  18350. case $ac_new_val in
  18351. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18352. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18353. *) ac_arg=$ac_var=$ac_new_val ;;
  18354. esac
  18355. case " $ac_configure_args " in
  18356. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18357. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18358. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18359. esac
  18360. fi
  18361. done
  18362. if $ac_cache_corrupted; then
  18363. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18364. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18365. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18366. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18367. - { (exit 1); exit 1; }; }
  18368. -fi
  18369. -
  18370. -
  18371. -
  18372. -
  18373. -
  18374. -
  18375. -
  18376. -
  18377. -
  18378. -
  18379. -
  18380. -
  18381. -
  18382. -
  18383. -
  18384. -
  18385. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18386. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18387. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18388. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18389. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18390. +fi
  18391. +## -------------------- ##
  18392. +## Main body of script. ##
  18393. +## -------------------- ##
  18394. ac_ext=c
  18395. ac_cpp='$CPP $CPPFLAGS'
  18396. @@ -1929,24 +2495,16 @@
  18397. ac_aux_dir=
  18398. for ac_dir in . "$srcdir"/.; do
  18399. - if test -f "$ac_dir/install-sh"; then
  18400. - ac_aux_dir=$ac_dir
  18401. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18402. - break
  18403. - elif test -f "$ac_dir/install.sh"; then
  18404. - ac_aux_dir=$ac_dir
  18405. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18406. - break
  18407. - elif test -f "$ac_dir/shtool"; then
  18408. - ac_aux_dir=$ac_dir
  18409. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18410. - break
  18411. - fi
  18412. + for ac_t in install-sh install.sh shtool; do
  18413. + if test -f "$ac_dir/$ac_t"; then
  18414. + ac_aux_dir=$ac_dir
  18415. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18416. + break 2
  18417. + fi
  18418. + done
  18419. done
  18420. if test -z "$ac_aux_dir"; then
  18421. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
  18422. -echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
  18423. - { (exit 1); exit 1; }; }
  18424. + as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  18425. fi
  18426. # These three variables are undocumented and unsupported,
  18427. @@ -1958,7 +2516,8 @@
  18428. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  18429. -am__api_version="1.9"
  18430. +am__api_version='1.11'
  18431. +
  18432. # Find a good install program. We prefer a C program (faster),
  18433. # so one script is as good as another. But avoid the broken or
  18434. # incompatible versions:
  18435. @@ -1972,22 +2531,23 @@
  18436. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18437. # OS/2's system install, which has a completely different semantic
  18438. # ./install, which can be erroneously created by make from ./install.sh.
  18439. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18440. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  18441. +# Reject install programs that cannot install multiple files.
  18442. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18443. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  18444. if test -z "$INSTALL"; then
  18445. -if test "${ac_cv_path_install+set}" = set; then
  18446. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18447. +if test "${ac_cv_path_install+set}" = set; then :
  18448. + $as_echo_n "(cached) " >&6
  18449. else
  18450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18451. for as_dir in $PATH
  18452. do
  18453. IFS=$as_save_IFS
  18454. test -z "$as_dir" && as_dir=.
  18455. - # Account for people who put trailing slashes in PATH elements.
  18456. -case $as_dir/ in
  18457. - ./ | .// | /cC/* | \
  18458. + # Account for people who put trailing slashes in PATH elements.
  18459. +case $as_dir/ in #((
  18460. + ./ | .// | /[cC]/* | \
  18461. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18462. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18463. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18464. /usr/ucb/* ) ;;
  18465. *)
  18466. # OSF1 and SCO ODT 3.0 have their own names for install.
  18467. @@ -2005,17 +2565,29 @@
  18468. # program-specific install script used by HP pwplus--don't use.
  18469. :
  18470. else
  18471. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18472. - break 3
  18473. + rm -rf conftest.one conftest.two conftest.dir
  18474. + echo one > conftest.one
  18475. + echo two > conftest.two
  18476. + mkdir conftest.dir
  18477. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  18478. + test -s conftest.one && test -s conftest.two &&
  18479. + test -s conftest.dir/conftest.one &&
  18480. + test -s conftest.dir/conftest.two
  18481. + then
  18482. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18483. + break 3
  18484. + fi
  18485. fi
  18486. fi
  18487. done
  18488. done
  18489. ;;
  18490. esac
  18491. -done
  18492. +
  18493. + done
  18494. IFS=$as_save_IFS
  18495. +rm -rf conftest.one conftest.two conftest.dir
  18496. fi
  18497. if test "${ac_cv_path_install+set}" = set; then
  18498. @@ -2028,8 +2600,8 @@
  18499. INSTALL=$ac_install_sh
  18500. fi
  18501. fi
  18502. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  18503. -echo "${ECHO_T}$INSTALL" >&6; }
  18504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18505. +$as_echo "$INSTALL" >&6; }
  18506. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18507. # It thinks the first close brace ends the variable substitution.
  18508. @@ -2039,21 +2611,34 @@
  18509. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18510. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  18511. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  18512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  18513. +$as_echo_n "checking whether build environment is sane... " >&6; }
  18514. # Just in case
  18515. sleep 1
  18516. echo timestamp > conftest.file
  18517. +# Reject unsafe characters in $srcdir or the absolute working directory
  18518. +# name. Accept space and tab only in the latter.
  18519. +am_lf='
  18520. +'
  18521. +case `pwd` in
  18522. + *[\\\"\#\$\&\'\`$am_lf]*)
  18523. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  18524. +esac
  18525. +case $srcdir in
  18526. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  18527. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  18528. +esac
  18529. +
  18530. # Do `set' in a subshell so we don't clobber the current shell's
  18531. # arguments. Must try -L first in case configure is actually a
  18532. # symlink; some systems play weird games with the mod time of symlinks
  18533. # (eg FreeBSD returns the mod time of the symlink's containing
  18534. # directory).
  18535. if (
  18536. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  18537. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  18538. if test "$*" = "X"; then
  18539. # -L didn't work.
  18540. - set X `ls -t $srcdir/configure conftest.file`
  18541. + set X `ls -t "$srcdir/configure" conftest.file`
  18542. fi
  18543. rm -f conftest.file
  18544. if test "$*" != "X $srcdir/configure conftest.file" \
  18545. @@ -2063,11 +2648,8 @@
  18546. # if, for instance, CONFIG_SHELL is bash and it inherits a
  18547. # broken ls alias from the environment. This has actually
  18548. # happened. Such a system could not be considered "sane".
  18549. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  18550. -alias in your environment" >&5
  18551. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  18552. -alias in your environment" >&2;}
  18553. - { (exit 1); exit 1; }; }
  18554. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  18555. +alias in your environment" "$LINENO" 5
  18556. fi
  18557. test "$2" = conftest.file
  18558. @@ -2076,121 +2658,247 @@
  18559. # Ok.
  18560. :
  18561. else
  18562. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  18563. -Check your system clock" >&5
  18564. -echo "$as_me: error: newly created file is older than distributed files!
  18565. -Check your system clock" >&2;}
  18566. - { (exit 1); exit 1; }; }
  18567. + as_fn_error "newly created file is older than distributed files!
  18568. +Check your system clock" "$LINENO" 5
  18569. fi
  18570. -{ echo "$as_me:$LINENO: result: yes" >&5
  18571. -echo "${ECHO_T}yes" >&6; }
  18572. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18573. +$as_echo "yes" >&6; }
  18574. test "$program_prefix" != NONE &&
  18575. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  18576. # Use a double $ so make ignores it.
  18577. test "$program_suffix" != NONE &&
  18578. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  18579. -# Double any \ or $. echo might interpret backslashes.
  18580. +# Double any \ or $.
  18581. # By default was `s,x,x', remove it if useless.
  18582. -cat <<\_ACEOF >conftest.sed
  18583. -s/[\\$]/&&/g;s/;s,x,x,$//
  18584. -_ACEOF
  18585. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  18586. -rm -f conftest.sed
  18587. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  18588. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  18589. # expand $ac_aux_dir to an absolute path
  18590. am_aux_dir=`cd $ac_aux_dir && pwd`
  18591. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  18592. +if test x"${MISSING+set}" != xset; then
  18593. + case $am_aux_dir in
  18594. + *\ * | *\ *)
  18595. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  18596. + *)
  18597. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  18598. + esac
  18599. +fi
  18600. # Use eval to expand $SHELL
  18601. if eval "$MISSING --run true"; then
  18602. am_missing_run="$MISSING --run "
  18603. else
  18604. am_missing_run=
  18605. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  18606. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18607. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  18608. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18609. fi
  18610. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  18611. - # We used to keeping the `.' as first argument, in order to
  18612. - # allow $(mkdir_p) to be used without argument. As in
  18613. - # $(mkdir_p) $(somedir)
  18614. - # where $(somedir) is conditionally defined. However this is wrong
  18615. - # for two reasons:
  18616. - # 1. if the package is installed by a user who cannot write `.'
  18617. - # make install will fail,
  18618. - # 2. the above comment should most certainly read
  18619. - # $(mkdir_p) $(DESTDIR)$(somedir)
  18620. - # so it does not work when $(somedir) is undefined and
  18621. - # $(DESTDIR) is not.
  18622. - # To support the latter case, we have to write
  18623. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  18624. - # so the `.' trick is pointless.
  18625. - mkdir_p='mkdir -p --'
  18626. -else
  18627. - # On NextStep and OpenStep, the `mkdir' command does not
  18628. - # recognize any option. It will interpret all options as
  18629. - # directories to create, and then abort because `.' already
  18630. - # exists.
  18631. - for d in ./-p ./--version;
  18632. - do
  18633. - test -d $d && rmdir $d
  18634. - done
  18635. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  18636. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  18637. - mkdir_p='$(mkinstalldirs)'
  18638. - else
  18639. - mkdir_p='$(install_sh) -d'
  18640. - fi
  18641. +if test x"${install_sh}" != xset; then
  18642. + case $am_aux_dir in
  18643. + *\ * | *\ *)
  18644. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  18645. + *)
  18646. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  18647. + esac
  18648. fi
  18649. -for ac_prog in gawk mawk nawk awk
  18650. -do
  18651. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18652. -set dummy $ac_prog; ac_word=$2
  18653. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18654. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18655. -if test "${ac_cv_prog_AWK+set}" = set; then
  18656. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18657. +# Installed binaries are usually stripped using `strip' when the user
  18658. +# run `make install-strip'. However `strip' might not be the right
  18659. +# tool to use in cross-compilation environments, therefore Automake
  18660. +# will honor the `STRIP' environment variable to overrule this program.
  18661. +if test "$cross_compiling" != no; then
  18662. + if test -n "$ac_tool_prefix"; then
  18663. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18664. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18665. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18666. +$as_echo_n "checking for $ac_word... " >&6; }
  18667. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18668. + $as_echo_n "(cached) " >&6
  18669. else
  18670. - if test -n "$AWK"; then
  18671. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18672. + if test -n "$STRIP"; then
  18673. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18674. else
  18675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18676. for as_dir in $PATH
  18677. do
  18678. IFS=$as_save_IFS
  18679. test -z "$as_dir" && as_dir=.
  18680. - for ac_exec_ext in '' $ac_executable_extensions; do
  18681. + for ac_exec_ext in '' $ac_executable_extensions; do
  18682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18683. - ac_cv_prog_AWK="$ac_prog"
  18684. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18685. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18686. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18687. break 2
  18688. fi
  18689. done
  18690. -done
  18691. + done
  18692. IFS=$as_save_IFS
  18693. fi
  18694. fi
  18695. -AWK=$ac_cv_prog_AWK
  18696. -if test -n "$AWK"; then
  18697. - { echo "$as_me:$LINENO: result: $AWK" >&5
  18698. -echo "${ECHO_T}$AWK" >&6; }
  18699. +STRIP=$ac_cv_prog_STRIP
  18700. +if test -n "$STRIP"; then
  18701. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18702. +$as_echo "$STRIP" >&6; }
  18703. else
  18704. - { echo "$as_me:$LINENO: result: no" >&5
  18705. -echo "${ECHO_T}no" >&6; }
  18706. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18707. +$as_echo "no" >&6; }
  18708. fi
  18709. - test -n "$AWK" && break
  18710. -done
  18711. -
  18712. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18713. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  18714. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  18715. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  18716. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18717. -else
  18718. +fi
  18719. +if test -z "$ac_cv_prog_STRIP"; then
  18720. + ac_ct_STRIP=$STRIP
  18721. + # Extract the first word of "strip", so it can be a program name with args.
  18722. +set dummy strip; ac_word=$2
  18723. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18724. +$as_echo_n "checking for $ac_word... " >&6; }
  18725. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18726. + $as_echo_n "(cached) " >&6
  18727. +else
  18728. + if test -n "$ac_ct_STRIP"; then
  18729. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18730. +else
  18731. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18732. +for as_dir in $PATH
  18733. +do
  18734. + IFS=$as_save_IFS
  18735. + test -z "$as_dir" && as_dir=.
  18736. + for ac_exec_ext in '' $ac_executable_extensions; do
  18737. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18738. + ac_cv_prog_ac_ct_STRIP="strip"
  18739. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18740. + break 2
  18741. + fi
  18742. +done
  18743. + done
  18744. +IFS=$as_save_IFS
  18745. +
  18746. +fi
  18747. +fi
  18748. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18749. +if test -n "$ac_ct_STRIP"; then
  18750. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18751. +$as_echo "$ac_ct_STRIP" >&6; }
  18752. +else
  18753. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18754. +$as_echo "no" >&6; }
  18755. +fi
  18756. +
  18757. + if test "x$ac_ct_STRIP" = x; then
  18758. + STRIP=":"
  18759. + else
  18760. + case $cross_compiling:$ac_tool_warned in
  18761. +yes:)
  18762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18763. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18764. +ac_tool_warned=yes ;;
  18765. +esac
  18766. + STRIP=$ac_ct_STRIP
  18767. + fi
  18768. +else
  18769. + STRIP="$ac_cv_prog_STRIP"
  18770. +fi
  18771. +
  18772. +fi
  18773. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  18774. +
  18775. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  18776. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  18777. +if test -z "$MKDIR_P"; then
  18778. + if test "${ac_cv_path_mkdir+set}" = set; then :
  18779. + $as_echo_n "(cached) " >&6
  18780. +else
  18781. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18782. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  18783. +do
  18784. + IFS=$as_save_IFS
  18785. + test -z "$as_dir" && as_dir=.
  18786. + for ac_prog in mkdir gmkdir; do
  18787. + for ac_exec_ext in '' $ac_executable_extensions; do
  18788. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  18789. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  18790. + 'mkdir (GNU coreutils) '* | \
  18791. + 'mkdir (coreutils) '* | \
  18792. + 'mkdir (fileutils) '4.1*)
  18793. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  18794. + break 3;;
  18795. + esac
  18796. + done
  18797. + done
  18798. + done
  18799. +IFS=$as_save_IFS
  18800. +
  18801. +fi
  18802. +
  18803. + test -d ./--version && rmdir ./--version
  18804. + if test "${ac_cv_path_mkdir+set}" = set; then
  18805. + MKDIR_P="$ac_cv_path_mkdir -p"
  18806. + else
  18807. + # As a last resort, use the slow shell script. Don't cache a
  18808. + # value for MKDIR_P within a source directory, because that will
  18809. + # break other packages using the cache if that directory is
  18810. + # removed, or if the value is a relative name.
  18811. + MKDIR_P="$ac_install_sh -d"
  18812. + fi
  18813. +fi
  18814. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  18815. +$as_echo "$MKDIR_P" >&6; }
  18816. +
  18817. +mkdir_p="$MKDIR_P"
  18818. +case $mkdir_p in
  18819. + [\\/$]* | ?:[\\/]*) ;;
  18820. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  18821. +esac
  18822. +
  18823. +for ac_prog in gawk mawk nawk awk
  18824. +do
  18825. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18826. +set dummy $ac_prog; ac_word=$2
  18827. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18828. +$as_echo_n "checking for $ac_word... " >&6; }
  18829. +if test "${ac_cv_prog_AWK+set}" = set; then :
  18830. + $as_echo_n "(cached) " >&6
  18831. +else
  18832. + if test -n "$AWK"; then
  18833. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18834. +else
  18835. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18836. +for as_dir in $PATH
  18837. +do
  18838. + IFS=$as_save_IFS
  18839. + test -z "$as_dir" && as_dir=.
  18840. + for ac_exec_ext in '' $ac_executable_extensions; do
  18841. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18842. + ac_cv_prog_AWK="$ac_prog"
  18843. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18844. + break 2
  18845. + fi
  18846. +done
  18847. + done
  18848. +IFS=$as_save_IFS
  18849. +
  18850. +fi
  18851. +fi
  18852. +AWK=$ac_cv_prog_AWK
  18853. +if test -n "$AWK"; then
  18854. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  18855. +$as_echo "$AWK" >&6; }
  18856. +else
  18857. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18858. +$as_echo "no" >&6; }
  18859. +fi
  18860. +
  18861. +
  18862. + test -n "$AWK" && break
  18863. +done
  18864. +
  18865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18866. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  18867. +set x ${MAKE-make}
  18868. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  18869. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  18870. + $as_echo_n "(cached) " >&6
  18871. +else
  18872. cat >conftest.make <<\_ACEOF
  18873. SHELL = /bin/sh
  18874. all:
  18875. @@ -2206,12 +2914,12 @@
  18876. rm -f conftest.make
  18877. fi
  18878. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  18879. - { echo "$as_me:$LINENO: result: yes" >&5
  18880. -echo "${ECHO_T}yes" >&6; }
  18881. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18882. +$as_echo "yes" >&6; }
  18883. SET_MAKE=
  18884. else
  18885. - { echo "$as_me:$LINENO: result: no" >&5
  18886. -echo "${ECHO_T}no" >&6; }
  18887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18888. +$as_echo "no" >&6; }
  18889. SET_MAKE="MAKE=${MAKE-make}"
  18890. fi
  18891. @@ -2224,12 +2932,14 @@
  18892. fi
  18893. rmdir .tst 2>/dev/null
  18894. -# test to see if srcdir already configured
  18895. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  18896. - test -f $srcdir/config.status; then
  18897. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  18898. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  18899. - { (exit 1); exit 1; }; }
  18900. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  18901. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  18902. + # is not polluted with repeated "-I."
  18903. + am__isrc=' -I$(srcdir)'
  18904. + # test to see if srcdir already configured
  18905. + if test -f $srcdir/config.status; then
  18906. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  18907. + fi
  18908. fi
  18909. # test whether we have cygpath
  18910. @@ -2272,228 +2982,67 @@
  18911. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  18912. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  18913. +# We need awk for the "check" target. The system "awk" is bad on
  18914. +# some platforms.
  18915. +# Always define AMTAR for backward compatibility.
  18916. -# Installed binaries are usually stripped using `strip' when the user
  18917. -# run `make install-strip'. However `strip' might not be the right
  18918. -# tool to use in cross-compilation environments, therefore Automake
  18919. -# will honor the `STRIP' environment variable to overrule this program.
  18920. -if test "$cross_compiling" != no; then
  18921. - if test -n "$ac_tool_prefix"; then
  18922. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18923. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  18924. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18925. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18926. -if test "${ac_cv_prog_STRIP+set}" = set; then
  18927. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18928. -else
  18929. - if test -n "$STRIP"; then
  18930. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18931. -else
  18932. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18933. -for as_dir in $PATH
  18934. -do
  18935. - IFS=$as_save_IFS
  18936. - test -z "$as_dir" && as_dir=.
  18937. - for ac_exec_ext in '' $ac_executable_extensions; do
  18938. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18939. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18940. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18941. - break 2
  18942. - fi
  18943. -done
  18944. -done
  18945. -IFS=$as_save_IFS
  18946. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  18947. -fi
  18948. -fi
  18949. -STRIP=$ac_cv_prog_STRIP
  18950. -if test -n "$STRIP"; then
  18951. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  18952. -echo "${ECHO_T}$STRIP" >&6; }
  18953. -else
  18954. - { echo "$as_me:$LINENO: result: no" >&5
  18955. -echo "${ECHO_T}no" >&6; }
  18956. -fi
  18957. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  18958. -fi
  18959. -if test -z "$ac_cv_prog_STRIP"; then
  18960. - ac_ct_STRIP=$STRIP
  18961. - # Extract the first word of "strip", so it can be a program name with args.
  18962. -set dummy strip; ac_word=$2
  18963. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18964. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18965. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  18966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18967. -else
  18968. - if test -n "$ac_ct_STRIP"; then
  18969. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18970. -else
  18971. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18972. -for as_dir in $PATH
  18973. -do
  18974. - IFS=$as_save_IFS
  18975. - test -z "$as_dir" && as_dir=.
  18976. - for ac_exec_ext in '' $ac_executable_extensions; do
  18977. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18978. - ac_cv_prog_ac_ct_STRIP="strip"
  18979. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18980. - break 2
  18981. - fi
  18982. -done
  18983. -done
  18984. -IFS=$as_save_IFS
  18985. -fi
  18986. -fi
  18987. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18988. -if test -n "$ac_ct_STRIP"; then
  18989. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  18990. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  18991. -else
  18992. - { echo "$as_me:$LINENO: result: no" >&5
  18993. -echo "${ECHO_T}no" >&6; }
  18994. -fi
  18995. - if test "x$ac_ct_STRIP" = x; then
  18996. - STRIP=":"
  18997. - else
  18998. - case $cross_compiling:$ac_tool_warned in
  18999. -yes:)
  19000. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19001. -whose name does not start with the host triplet. If you think this
  19002. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19003. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19004. -whose name does not start with the host triplet. If you think this
  19005. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19006. -ac_tool_warned=yes ;;
  19007. +
  19008. +
  19009. +case `pwd` in
  19010. + *\ * | *\ *)
  19011. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19012. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19013. esac
  19014. - STRIP=$ac_ct_STRIP
  19015. - fi
  19016. -else
  19017. - STRIP="$ac_cv_prog_STRIP"
  19018. -fi
  19019. -fi
  19020. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  19021. -# We need awk for the "check" target. The system "awk" is bad on
  19022. -# some platforms.
  19023. -# Always define AMTAR for backward compatibility.
  19024. -AMTAR=${AMTAR-"${am_missing_run}tar"}
  19025. +macro_version='2.2.6b'
  19026. +macro_revision='1.3017'
  19027. -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  19028. -# Check whether --enable-shared was given.
  19029. -if test "${enable_shared+set}" = set; then
  19030. - enableval=$enable_shared; p=${PACKAGE-default}
  19031. - case $enableval in
  19032. - yes) enable_shared=yes ;;
  19033. - no) enable_shared=no ;;
  19034. - *)
  19035. - enable_shared=no
  19036. - # Look at the argument we got. We use all the common list separators.
  19037. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19038. - for pkg in $enableval; do
  19039. - IFS="$lt_save_ifs"
  19040. - if test "X$pkg" = "X$p"; then
  19041. - enable_shared=yes
  19042. - fi
  19043. - done
  19044. - IFS="$lt_save_ifs"
  19045. - ;;
  19046. - esac
  19047. -else
  19048. - enable_shared=yes
  19049. -fi
  19050. -# Check whether --enable-static was given.
  19051. -if test "${enable_static+set}" = set; then
  19052. - enableval=$enable_static; p=${PACKAGE-default}
  19053. - case $enableval in
  19054. - yes) enable_static=yes ;;
  19055. - no) enable_static=no ;;
  19056. - *)
  19057. - enable_static=no
  19058. - # Look at the argument we got. We use all the common list separators.
  19059. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19060. - for pkg in $enableval; do
  19061. - IFS="$lt_save_ifs"
  19062. - if test "X$pkg" = "X$p"; then
  19063. - enable_static=yes
  19064. - fi
  19065. - done
  19066. - IFS="$lt_save_ifs"
  19067. - ;;
  19068. - esac
  19069. -else
  19070. - enable_static=yes
  19071. -fi
  19072. -# Check whether --enable-fast-install was given.
  19073. -if test "${enable_fast_install+set}" = set; then
  19074. - enableval=$enable_fast_install; p=${PACKAGE-default}
  19075. - case $enableval in
  19076. - yes) enable_fast_install=yes ;;
  19077. - no) enable_fast_install=no ;;
  19078. - *)
  19079. - enable_fast_install=no
  19080. - # Look at the argument we got. We use all the common list separators.
  19081. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19082. - for pkg in $enableval; do
  19083. - IFS="$lt_save_ifs"
  19084. - if test "X$pkg" = "X$p"; then
  19085. - enable_fast_install=yes
  19086. - fi
  19087. - done
  19088. - IFS="$lt_save_ifs"
  19089. - ;;
  19090. - esac
  19091. -else
  19092. - enable_fast_install=yes
  19093. -fi
  19094. +ltmain="$ac_aux_dir/ltmain.sh"
  19095. +
  19096. # Make sure we can run config.sub.
  19097. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  19098. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  19099. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  19100. - { (exit 1); exit 1; }; }
  19101. -
  19102. -{ echo "$as_me:$LINENO: checking build system type" >&5
  19103. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  19104. -if test "${ac_cv_build+set}" = set; then
  19105. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19106. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  19107. +
  19108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  19109. +$as_echo_n "checking build system type... " >&6; }
  19110. +if test "${ac_cv_build+set}" = set; then :
  19111. + $as_echo_n "(cached) " >&6
  19112. else
  19113. ac_build_alias=$build_alias
  19114. test "x$ac_build_alias" = x &&
  19115. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  19116. test "x$ac_build_alias" = x &&
  19117. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  19118. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  19119. - { (exit 1); exit 1; }; }
  19120. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  19121. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  19122. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  19123. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  19124. - { (exit 1); exit 1; }; }
  19125. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  19126. fi
  19127. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  19128. -echo "${ECHO_T}$ac_cv_build" >&6; }
  19129. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  19130. +$as_echo "$ac_cv_build" >&6; }
  19131. case $ac_cv_build in
  19132. *-*-*) ;;
  19133. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  19134. -echo "$as_me: error: invalid value of canonical build" >&2;}
  19135. - { (exit 1); exit 1; }; };;
  19136. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  19137. esac
  19138. build=$ac_cv_build
  19139. ac_save_IFS=$IFS; IFS='-'
  19140. @@ -2509,28 +3058,24 @@
  19141. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  19142. -{ echo "$as_me:$LINENO: checking host system type" >&5
  19143. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  19144. -if test "${ac_cv_host+set}" = set; then
  19145. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19146. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  19147. +$as_echo_n "checking host system type... " >&6; }
  19148. +if test "${ac_cv_host+set}" = set; then :
  19149. + $as_echo_n "(cached) " >&6
  19150. else
  19151. if test "x$host_alias" = x; then
  19152. ac_cv_host=$ac_cv_build
  19153. else
  19154. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  19155. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  19156. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  19157. - { (exit 1); exit 1; }; }
  19158. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  19159. fi
  19160. fi
  19161. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  19162. -echo "${ECHO_T}$ac_cv_host" >&6; }
  19163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  19164. +$as_echo "$ac_cv_host" >&6; }
  19165. case $ac_cv_host in
  19166. *-*-*) ;;
  19167. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  19168. -echo "$as_me: error: invalid value of canonical host" >&2;}
  19169. - { (exit 1); exit 1; }; };;
  19170. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  19171. esac
  19172. host=$ac_cv_host
  19173. ac_save_IFS=$IFS; IFS='-'
  19174. @@ -2554,44 +3099,44 @@
  19175. am_make=${MAKE-make}
  19176. cat > confinc << 'END'
  19177. am__doit:
  19178. - @echo done
  19179. + @echo this is the am__doit target
  19180. .PHONY: am__doit
  19181. END
  19182. # If we don't find an include directive, just comment out the code.
  19183. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  19184. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  19185. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  19186. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  19187. am__include="#"
  19188. am__quote=
  19189. _am_result=none
  19190. # First try GNU make style include.
  19191. echo "include confinc" > confmf
  19192. -# We grep out `Entering directory' and `Leaving directory'
  19193. -# messages which can occur if `w' ends up in MAKEFLAGS.
  19194. -# In particular we don't look at `^make:' because GNU make might
  19195. -# be invoked under some other name (usually "gmake"), in which
  19196. -# case it prints its new name instead of `make'.
  19197. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  19198. - am__include=include
  19199. - am__quote=
  19200. - _am_result=GNU
  19201. -fi
  19202. +# Ignore all kinds of additional output from `make'.
  19203. +case `$am_make -s -f confmf 2> /dev/null` in #(
  19204. +*the\ am__doit\ target*)
  19205. + am__include=include
  19206. + am__quote=
  19207. + _am_result=GNU
  19208. + ;;
  19209. +esac
  19210. # Now try BSD make style include.
  19211. if test "$am__include" = "#"; then
  19212. echo '.include "confinc"' > confmf
  19213. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  19214. - am__include=.include
  19215. - am__quote="\""
  19216. - _am_result=BSD
  19217. - fi
  19218. + case `$am_make -s -f confmf 2> /dev/null` in #(
  19219. + *the\ am__doit\ target*)
  19220. + am__include=.include
  19221. + am__quote="\""
  19222. + _am_result=BSD
  19223. + ;;
  19224. + esac
  19225. fi
  19226. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  19227. -echo "${ECHO_T}$_am_result" >&6; }
  19228. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  19229. +$as_echo "$_am_result" >&6; }
  19230. rm -f confinc confmf
  19231. # Check whether --enable-dependency-tracking was given.
  19232. -if test "${enable_dependency_tracking+set}" = set; then
  19233. +if test "${enable_dependency_tracking+set}" = set; then :
  19234. enableval=$enable_dependency_tracking;
  19235. fi
  19236. @@ -2599,9 +3144,7 @@
  19237. am_depcomp="$ac_aux_dir/depcomp"
  19238. AMDEPBACKSLASH='\'
  19239. fi
  19240. -
  19241. -
  19242. -if test "x$enable_dependency_tracking" != xno; then
  19243. + if test "x$enable_dependency_tracking" != xno; then
  19244. AMDEP_TRUE=
  19245. AMDEP_FALSE='#'
  19246. else
  19247. @@ -2610,7 +3153,6 @@
  19248. fi
  19249. -
  19250. ac_ext=c
  19251. ac_cpp='$CPP $CPPFLAGS'
  19252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19253. @@ -2619,10 +3161,10 @@
  19254. if test -n "$ac_tool_prefix"; then
  19255. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19256. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19257. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19258. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19259. -if test "${ac_cv_prog_CC+set}" = set; then
  19260. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19261. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19262. +$as_echo_n "checking for $ac_word... " >&6; }
  19263. +if test "${ac_cv_prog_CC+set}" = set; then :
  19264. + $as_echo_n "(cached) " >&6
  19265. else
  19266. if test -n "$CC"; then
  19267. ac_cv_prog_CC="$CC" # Let the user override the test.
  19268. @@ -2632,25 +3174,25 @@
  19269. do
  19270. IFS=$as_save_IFS
  19271. test -z "$as_dir" && as_dir=.
  19272. - for ac_exec_ext in '' $ac_executable_extensions; do
  19273. + for ac_exec_ext in '' $ac_executable_extensions; do
  19274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19275. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19276. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19277. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19278. break 2
  19279. fi
  19280. done
  19281. -done
  19282. + done
  19283. IFS=$as_save_IFS
  19284. fi
  19285. fi
  19286. CC=$ac_cv_prog_CC
  19287. if test -n "$CC"; then
  19288. - { echo "$as_me:$LINENO: result: $CC" >&5
  19289. -echo "${ECHO_T}$CC" >&6; }
  19290. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19291. +$as_echo "$CC" >&6; }
  19292. else
  19293. - { echo "$as_me:$LINENO: result: no" >&5
  19294. -echo "${ECHO_T}no" >&6; }
  19295. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19296. +$as_echo "no" >&6; }
  19297. fi
  19298. @@ -2659,10 +3201,10 @@
  19299. ac_ct_CC=$CC
  19300. # Extract the first word of "gcc", so it can be a program name with args.
  19301. set dummy gcc; ac_word=$2
  19302. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19303. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19304. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19305. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19306. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19307. +$as_echo_n "checking for $ac_word... " >&6; }
  19308. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19309. + $as_echo_n "(cached) " >&6
  19310. else
  19311. if test -n "$ac_ct_CC"; then
  19312. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19313. @@ -2672,25 +3214,25 @@
  19314. do
  19315. IFS=$as_save_IFS
  19316. test -z "$as_dir" && as_dir=.
  19317. - for ac_exec_ext in '' $ac_executable_extensions; do
  19318. + for ac_exec_ext in '' $ac_executable_extensions; do
  19319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19320. ac_cv_prog_ac_ct_CC="gcc"
  19321. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19322. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19323. break 2
  19324. fi
  19325. done
  19326. -done
  19327. + done
  19328. IFS=$as_save_IFS
  19329. fi
  19330. fi
  19331. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19332. if test -n "$ac_ct_CC"; then
  19333. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19334. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19335. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19336. +$as_echo "$ac_ct_CC" >&6; }
  19337. else
  19338. - { echo "$as_me:$LINENO: result: no" >&5
  19339. -echo "${ECHO_T}no" >&6; }
  19340. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19341. +$as_echo "no" >&6; }
  19342. fi
  19343. if test "x$ac_ct_CC" = x; then
  19344. @@ -2698,12 +3240,8 @@
  19345. else
  19346. case $cross_compiling:$ac_tool_warned in
  19347. yes:)
  19348. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19349. -whose name does not start with the host triplet. If you think this
  19350. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19351. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19352. -whose name does not start with the host triplet. If you think this
  19353. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19354. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19355. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19356. ac_tool_warned=yes ;;
  19357. esac
  19358. CC=$ac_ct_CC
  19359. @@ -2716,10 +3254,10 @@
  19360. if test -n "$ac_tool_prefix"; then
  19361. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19362. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19363. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19364. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19365. -if test "${ac_cv_prog_CC+set}" = set; then
  19366. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19368. +$as_echo_n "checking for $ac_word... " >&6; }
  19369. +if test "${ac_cv_prog_CC+set}" = set; then :
  19370. + $as_echo_n "(cached) " >&6
  19371. else
  19372. if test -n "$CC"; then
  19373. ac_cv_prog_CC="$CC" # Let the user override the test.
  19374. @@ -2729,25 +3267,25 @@
  19375. do
  19376. IFS=$as_save_IFS
  19377. test -z "$as_dir" && as_dir=.
  19378. - for ac_exec_ext in '' $ac_executable_extensions; do
  19379. + for ac_exec_ext in '' $ac_executable_extensions; do
  19380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19381. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19382. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19383. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19384. break 2
  19385. fi
  19386. done
  19387. -done
  19388. + done
  19389. IFS=$as_save_IFS
  19390. fi
  19391. fi
  19392. CC=$ac_cv_prog_CC
  19393. if test -n "$CC"; then
  19394. - { echo "$as_me:$LINENO: result: $CC" >&5
  19395. -echo "${ECHO_T}$CC" >&6; }
  19396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19397. +$as_echo "$CC" >&6; }
  19398. else
  19399. - { echo "$as_me:$LINENO: result: no" >&5
  19400. -echo "${ECHO_T}no" >&6; }
  19401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19402. +$as_echo "no" >&6; }
  19403. fi
  19404. @@ -2756,10 +3294,10 @@
  19405. if test -z "$CC"; then
  19406. # Extract the first word of "cc", so it can be a program name with args.
  19407. set dummy cc; ac_word=$2
  19408. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19409. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19410. -if test "${ac_cv_prog_CC+set}" = set; then
  19411. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19413. +$as_echo_n "checking for $ac_word... " >&6; }
  19414. +if test "${ac_cv_prog_CC+set}" = set; then :
  19415. + $as_echo_n "(cached) " >&6
  19416. else
  19417. if test -n "$CC"; then
  19418. ac_cv_prog_CC="$CC" # Let the user override the test.
  19419. @@ -2770,18 +3308,18 @@
  19420. do
  19421. IFS=$as_save_IFS
  19422. test -z "$as_dir" && as_dir=.
  19423. - for ac_exec_ext in '' $ac_executable_extensions; do
  19424. + for ac_exec_ext in '' $ac_executable_extensions; do
  19425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19426. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19427. ac_prog_rejected=yes
  19428. continue
  19429. fi
  19430. ac_cv_prog_CC="cc"
  19431. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19432. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19433. break 2
  19434. fi
  19435. done
  19436. -done
  19437. + done
  19438. IFS=$as_save_IFS
  19439. if test $ac_prog_rejected = yes; then
  19440. @@ -2800,11 +3338,11 @@
  19441. fi
  19442. CC=$ac_cv_prog_CC
  19443. if test -n "$CC"; then
  19444. - { echo "$as_me:$LINENO: result: $CC" >&5
  19445. -echo "${ECHO_T}$CC" >&6; }
  19446. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19447. +$as_echo "$CC" >&6; }
  19448. else
  19449. - { echo "$as_me:$LINENO: result: no" >&5
  19450. -echo "${ECHO_T}no" >&6; }
  19451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19452. +$as_echo "no" >&6; }
  19453. fi
  19454. @@ -2815,10 +3353,10 @@
  19455. do
  19456. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19457. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19458. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19459. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19460. -if test "${ac_cv_prog_CC+set}" = set; then
  19461. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19462. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19463. +$as_echo_n "checking for $ac_word... " >&6; }
  19464. +if test "${ac_cv_prog_CC+set}" = set; then :
  19465. + $as_echo_n "(cached) " >&6
  19466. else
  19467. if test -n "$CC"; then
  19468. ac_cv_prog_CC="$CC" # Let the user override the test.
  19469. @@ -2828,25 +3366,25 @@
  19470. do
  19471. IFS=$as_save_IFS
  19472. test -z "$as_dir" && as_dir=.
  19473. - for ac_exec_ext in '' $ac_executable_extensions; do
  19474. + for ac_exec_ext in '' $ac_executable_extensions; do
  19475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19476. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19477. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19478. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19479. break 2
  19480. fi
  19481. done
  19482. -done
  19483. + done
  19484. IFS=$as_save_IFS
  19485. fi
  19486. fi
  19487. CC=$ac_cv_prog_CC
  19488. if test -n "$CC"; then
  19489. - { echo "$as_me:$LINENO: result: $CC" >&5
  19490. -echo "${ECHO_T}$CC" >&6; }
  19491. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19492. +$as_echo "$CC" >&6; }
  19493. else
  19494. - { echo "$as_me:$LINENO: result: no" >&5
  19495. -echo "${ECHO_T}no" >&6; }
  19496. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19497. +$as_echo "no" >&6; }
  19498. fi
  19499. @@ -2859,10 +3397,10 @@
  19500. do
  19501. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19502. set dummy $ac_prog; ac_word=$2
  19503. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19504. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19505. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19506. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19507. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19508. +$as_echo_n "checking for $ac_word... " >&6; }
  19509. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19510. + $as_echo_n "(cached) " >&6
  19511. else
  19512. if test -n "$ac_ct_CC"; then
  19513. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19514. @@ -2872,25 +3410,25 @@
  19515. do
  19516. IFS=$as_save_IFS
  19517. test -z "$as_dir" && as_dir=.
  19518. - for ac_exec_ext in '' $ac_executable_extensions; do
  19519. + for ac_exec_ext in '' $ac_executable_extensions; do
  19520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19521. ac_cv_prog_ac_ct_CC="$ac_prog"
  19522. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19523. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19524. break 2
  19525. fi
  19526. done
  19527. -done
  19528. + done
  19529. IFS=$as_save_IFS
  19530. fi
  19531. fi
  19532. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19533. if test -n "$ac_ct_CC"; then
  19534. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19535. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19536. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19537. +$as_echo "$ac_ct_CC" >&6; }
  19538. else
  19539. - { echo "$as_me:$LINENO: result: no" >&5
  19540. -echo "${ECHO_T}no" >&6; }
  19541. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19542. +$as_echo "no" >&6; }
  19543. fi
  19544. @@ -2902,12 +3440,8 @@
  19545. else
  19546. case $cross_compiling:$ac_tool_warned in
  19547. yes:)
  19548. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19549. -whose name does not start with the host triplet. If you think this
  19550. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19551. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19552. -whose name does not start with the host triplet. If you think this
  19553. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19555. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19556. ac_tool_warned=yes ;;
  19557. esac
  19558. CC=$ac_ct_CC
  19559. @@ -2917,51 +3451,37 @@
  19560. fi
  19561. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  19562. -See \`config.log' for more details." >&5
  19563. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  19564. -See \`config.log' for more details." >&2;}
  19565. - { (exit 1); exit 1; }; }
  19566. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19567. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19568. +as_fn_error "no acceptable C compiler found in \$PATH
  19569. +See \`config.log' for more details." "$LINENO" 5; }
  19570. # Provide some information about the compiler.
  19571. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  19572. -ac_compiler=`set X $ac_compile; echo $2`
  19573. -{ (ac_try="$ac_compiler --version >&5"
  19574. -case "(($ac_try" in
  19575. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19576. - *) ac_try_echo=$ac_try;;
  19577. -esac
  19578. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19579. - (eval "$ac_compiler --version >&5") 2>&5
  19580. - ac_status=$?
  19581. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19582. - (exit $ac_status); }
  19583. -{ (ac_try="$ac_compiler -v >&5"
  19584. -case "(($ac_try" in
  19585. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19586. - *) ac_try_echo=$ac_try;;
  19587. -esac
  19588. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19589. - (eval "$ac_compiler -v >&5") 2>&5
  19590. - ac_status=$?
  19591. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19592. - (exit $ac_status); }
  19593. -{ (ac_try="$ac_compiler -V >&5"
  19594. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19595. +set X $ac_compile
  19596. +ac_compiler=$2
  19597. +for ac_option in --version -v -V -qversion; do
  19598. + { { ac_try="$ac_compiler $ac_option >&5"
  19599. case "(($ac_try" in
  19600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19601. *) ac_try_echo=$ac_try;;
  19602. esac
  19603. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19604. - (eval "$ac_compiler -V >&5") 2>&5
  19605. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19606. +$as_echo "$ac_try_echo"; } >&5
  19607. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19608. ac_status=$?
  19609. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19610. - (exit $ac_status); }
  19611. + if test -s conftest.err; then
  19612. + sed '10a\
  19613. +... rest of stderr output deleted ...
  19614. + 10q' conftest.err >conftest.er1
  19615. + cat conftest.er1 >&5
  19616. + fi
  19617. + rm -f conftest.er1 conftest.err
  19618. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19619. + test $ac_status = 0; }
  19620. +done
  19621. -cat >conftest.$ac_ext <<_ACEOF
  19622. -/* confdefs.h. */
  19623. -_ACEOF
  19624. -cat confdefs.h >>conftest.$ac_ext
  19625. -cat >>conftest.$ac_ext <<_ACEOF
  19626. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19627. /* end confdefs.h. */
  19628. int
  19629. @@ -2973,42 +3493,38 @@
  19630. }
  19631. _ACEOF
  19632. ac_clean_files_save=$ac_clean_files
  19633. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  19634. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  19635. # Try to create an executable without -o first, disregard a.out.
  19636. # It will help us diagnose broken compilers, and finding out an intuition
  19637. # of exeext.
  19638. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19639. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  19640. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19641. -#
  19642. -# List of possible output files, starting from the most likely.
  19643. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  19644. -# only as a last resort. b.out is created by i960 compilers.
  19645. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  19646. -#
  19647. -# The IRIX 6 linker writes into existing files which may not be
  19648. -# executable, retaining their permissions. Remove them first so a
  19649. -# subsequent execution test works.
  19650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  19651. +$as_echo_n "checking whether the C compiler works... " >&6; }
  19652. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19653. +
  19654. +# The possible output files:
  19655. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  19656. +
  19657. ac_rmfiles=
  19658. for ac_file in $ac_files
  19659. do
  19660. case $ac_file in
  19661. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  19662. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19663. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  19664. esac
  19665. done
  19666. rm -f $ac_rmfiles
  19667. -if { (ac_try="$ac_link_default"
  19668. +if { { ac_try="$ac_link_default"
  19669. case "(($ac_try" in
  19670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19671. *) ac_try_echo=$ac_try;;
  19672. esac
  19673. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19674. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19675. +$as_echo "$ac_try_echo"; } >&5
  19676. (eval "$ac_link_default") 2>&5
  19677. ac_status=$?
  19678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. - (exit $ac_status); }; then
  19680. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19681. + test $ac_status = 0; }; then :
  19682. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  19683. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  19684. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  19685. @@ -3018,14 +3534,14 @@
  19686. do
  19687. test -f "$ac_file" || continue
  19688. case $ac_file in
  19689. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  19690. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  19691. ;;
  19692. [ab].out )
  19693. # We found the default executable, but exeext='' is most
  19694. # certainly right.
  19695. break;;
  19696. *.* )
  19697. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19698. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19699. then :; else
  19700. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19701. fi
  19702. @@ -3044,78 +3560,42 @@
  19703. else
  19704. ac_file=''
  19705. fi
  19706. -
  19707. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  19708. -echo "${ECHO_T}$ac_file" >&6; }
  19709. -if test -z "$ac_file"; then
  19710. - echo "$as_me: failed program was:" >&5
  19711. -sed 's/^/| /' conftest.$ac_ext >&5
  19712. -
  19713. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  19714. -See \`config.log' for more details." >&5
  19715. -echo "$as_me: error: C compiler cannot create executables
  19716. -See \`config.log' for more details." >&2;}
  19717. - { (exit 77); exit 77; }; }
  19718. -fi
  19719. -
  19720. +if test -z "$ac_file"; then :
  19721. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19722. +$as_echo "no" >&6; }
  19723. +$as_echo "$as_me: failed program was:" >&5
  19724. +sed 's/^/| /' conftest.$ac_ext >&5
  19725. +
  19726. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19727. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19728. +{ as_fn_set_status 77
  19729. +as_fn_error "C compiler cannot create executables
  19730. +See \`config.log' for more details." "$LINENO" 5; }; }
  19731. +else
  19732. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19733. +$as_echo "yes" >&6; }
  19734. +fi
  19735. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  19736. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  19737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  19738. +$as_echo "$ac_file" >&6; }
  19739. ac_exeext=$ac_cv_exeext
  19740. -# Check that the compiler produces executables we can run. If not, either
  19741. -# the compiler is broken, or we cross compile.
  19742. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  19743. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  19744. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  19745. -# If not cross compiling, check that we can run a simple program.
  19746. -if test "$cross_compiling" != yes; then
  19747. - if { ac_try='./$ac_file'
  19748. - { (case "(($ac_try" in
  19749. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19750. - *) ac_try_echo=$ac_try;;
  19751. -esac
  19752. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19753. - (eval "$ac_try") 2>&5
  19754. - ac_status=$?
  19755. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19756. - (exit $ac_status); }; }; then
  19757. - cross_compiling=no
  19758. - else
  19759. - if test "$cross_compiling" = maybe; then
  19760. - cross_compiling=yes
  19761. - else
  19762. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  19763. -If you meant to cross compile, use \`--host'.
  19764. -See \`config.log' for more details." >&5
  19765. -echo "$as_me: error: cannot run C compiled programs.
  19766. -If you meant to cross compile, use \`--host'.
  19767. -See \`config.log' for more details." >&2;}
  19768. - { (exit 1); exit 1; }; }
  19769. - fi
  19770. - fi
  19771. -fi
  19772. -{ echo "$as_me:$LINENO: result: yes" >&5
  19773. -echo "${ECHO_T}yes" >&6; }
  19774. -
  19775. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  19776. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  19777. ac_clean_files=$ac_clean_files_save
  19778. -# Check that the compiler produces executables we can run. If not, either
  19779. -# the compiler is broken, or we cross compile.
  19780. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  19781. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  19782. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  19783. -echo "${ECHO_T}$cross_compiling" >&6; }
  19784. -
  19785. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  19786. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  19787. -if { (ac_try="$ac_link"
  19788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  19789. +$as_echo_n "checking for suffix of executables... " >&6; }
  19790. +if { { ac_try="$ac_link"
  19791. case "(($ac_try" in
  19792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19793. *) ac_try_echo=$ac_try;;
  19794. esac
  19795. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19796. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19797. +$as_echo "$ac_try_echo"; } >&5
  19798. (eval "$ac_link") 2>&5
  19799. ac_status=$?
  19800. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19801. - (exit $ac_status); }; then
  19802. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19803. + test $ac_status = 0; }; then :
  19804. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  19805. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  19806. # work properly (i.e., refer to `conftest.exe'), while it won't with
  19807. @@ -3123,37 +3603,90 @@
  19808. for ac_file in conftest.exe conftest conftest.*; do
  19809. test -f "$ac_file" || continue
  19810. case $ac_file in
  19811. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  19812. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19813. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19814. break;;
  19815. * ) break;;
  19816. esac
  19817. done
  19818. else
  19819. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  19820. -See \`config.log' for more details." >&5
  19821. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  19822. -See \`config.log' for more details." >&2;}
  19823. - { (exit 1); exit 1; }; }
  19824. -fi
  19825. -
  19826. -rm -f conftest$ac_cv_exeext
  19827. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  19828. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  19829. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19830. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19831. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  19832. +See \`config.log' for more details." "$LINENO" 5; }
  19833. +fi
  19834. +rm -f conftest conftest$ac_cv_exeext
  19835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  19836. +$as_echo "$ac_cv_exeext" >&6; }
  19837. rm -f conftest.$ac_ext
  19838. EXEEXT=$ac_cv_exeext
  19839. ac_exeext=$EXEEXT
  19840. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  19841. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  19842. -if test "${ac_cv_objext+set}" = set; then
  19843. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19844. -else
  19845. - cat >conftest.$ac_ext <<_ACEOF
  19846. -/* confdefs.h. */
  19847. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19848. +/* end confdefs.h. */
  19849. +#include <stdio.h>
  19850. +int
  19851. +main ()
  19852. +{
  19853. +FILE *f = fopen ("conftest.out", "w");
  19854. + return ferror (f) || fclose (f) != 0;
  19855. +
  19856. + ;
  19857. + return 0;
  19858. +}
  19859. _ACEOF
  19860. -cat confdefs.h >>conftest.$ac_ext
  19861. -cat >>conftest.$ac_ext <<_ACEOF
  19862. +ac_clean_files="$ac_clean_files conftest.out"
  19863. +# Check that the compiler produces executables we can run. If not, either
  19864. +# the compiler is broken, or we cross compile.
  19865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  19866. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  19867. +if test "$cross_compiling" != yes; then
  19868. + { { ac_try="$ac_link"
  19869. +case "(($ac_try" in
  19870. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19871. + *) ac_try_echo=$ac_try;;
  19872. +esac
  19873. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19874. +$as_echo "$ac_try_echo"; } >&5
  19875. + (eval "$ac_link") 2>&5
  19876. + ac_status=$?
  19877. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19878. + test $ac_status = 0; }
  19879. + if { ac_try='./conftest$ac_cv_exeext'
  19880. + { { case "(($ac_try" in
  19881. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19882. + *) ac_try_echo=$ac_try;;
  19883. +esac
  19884. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19885. +$as_echo "$ac_try_echo"; } >&5
  19886. + (eval "$ac_try") 2>&5
  19887. + ac_status=$?
  19888. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19889. + test $ac_status = 0; }; }; then
  19890. + cross_compiling=no
  19891. + else
  19892. + if test "$cross_compiling" = maybe; then
  19893. + cross_compiling=yes
  19894. + else
  19895. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19896. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19897. +as_fn_error "cannot run C compiled programs.
  19898. +If you meant to cross compile, use \`--host'.
  19899. +See \`config.log' for more details." "$LINENO" 5; }
  19900. + fi
  19901. + fi
  19902. +fi
  19903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  19904. +$as_echo "$cross_compiling" >&6; }
  19905. +
  19906. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  19907. +ac_clean_files=$ac_clean_files_save
  19908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  19909. +$as_echo_n "checking for suffix of object files... " >&6; }
  19910. +if test "${ac_cv_objext+set}" = set; then :
  19911. + $as_echo_n "(cached) " >&6
  19912. +else
  19913. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19914. /* end confdefs.h. */
  19915. int
  19916. @@ -3165,51 +3698,46 @@
  19917. }
  19918. _ACEOF
  19919. rm -f conftest.o conftest.obj
  19920. -if { (ac_try="$ac_compile"
  19921. +if { { ac_try="$ac_compile"
  19922. case "(($ac_try" in
  19923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19924. *) ac_try_echo=$ac_try;;
  19925. esac
  19926. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19927. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19928. +$as_echo "$ac_try_echo"; } >&5
  19929. (eval "$ac_compile") 2>&5
  19930. ac_status=$?
  19931. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19932. - (exit $ac_status); }; then
  19933. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19934. + test $ac_status = 0; }; then :
  19935. for ac_file in conftest.o conftest.obj conftest.*; do
  19936. test -f "$ac_file" || continue;
  19937. case $ac_file in
  19938. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  19939. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  19940. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  19941. break;;
  19942. esac
  19943. done
  19944. else
  19945. - echo "$as_me: failed program was:" >&5
  19946. + $as_echo "$as_me: failed program was:" >&5
  19947. sed 's/^/| /' conftest.$ac_ext >&5
  19948. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  19949. -See \`config.log' for more details." >&5
  19950. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  19951. -See \`config.log' for more details." >&2;}
  19952. - { (exit 1); exit 1; }; }
  19953. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19954. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19955. +as_fn_error "cannot compute suffix of object files: cannot compile
  19956. +See \`config.log' for more details." "$LINENO" 5; }
  19957. fi
  19958. -
  19959. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  19960. fi
  19961. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  19962. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  19963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  19964. +$as_echo "$ac_cv_objext" >&6; }
  19965. OBJEXT=$ac_cv_objext
  19966. ac_objext=$OBJEXT
  19967. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  19968. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  19969. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  19970. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19971. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  19972. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  19973. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  19974. + $as_echo_n "(cached) " >&6
  19975. else
  19976. - cat >conftest.$ac_ext <<_ACEOF
  19977. -/* confdefs.h. */
  19978. -_ACEOF
  19979. -cat confdefs.h >>conftest.$ac_ext
  19980. -cat >>conftest.$ac_ext <<_ACEOF
  19981. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19982. /* end confdefs.h. */
  19983. int
  19984. @@ -3223,54 +3751,34 @@
  19985. return 0;
  19986. }
  19987. _ACEOF
  19988. -rm -f conftest.$ac_objext
  19989. -if { (ac_try="$ac_compile"
  19990. -case "(($ac_try" in
  19991. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19992. - *) ac_try_echo=$ac_try;;
  19993. -esac
  19994. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19995. - (eval "$ac_compile") 2>conftest.er1
  19996. - ac_status=$?
  19997. - grep -v '^ *+' conftest.er1 >conftest.err
  19998. - rm -f conftest.er1
  19999. - cat conftest.err >&5
  20000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20001. - (exit $ac_status); } && {
  20002. - test -z "$ac_c_werror_flag" ||
  20003. - test ! -s conftest.err
  20004. - } && test -s conftest.$ac_objext; then
  20005. +if ac_fn_c_try_compile "$LINENO"; then :
  20006. ac_compiler_gnu=yes
  20007. else
  20008. - echo "$as_me: failed program was:" >&5
  20009. -sed 's/^/| /' conftest.$ac_ext >&5
  20010. -
  20011. - ac_compiler_gnu=no
  20012. + ac_compiler_gnu=no
  20013. fi
  20014. -
  20015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20016. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20017. fi
  20018. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  20019. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  20020. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  20021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  20022. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  20023. +if test $ac_compiler_gnu = yes; then
  20024. + GCC=yes
  20025. +else
  20026. + GCC=
  20027. +fi
  20028. ac_test_CFLAGS=${CFLAGS+set}
  20029. ac_save_CFLAGS=$CFLAGS
  20030. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  20031. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  20032. -if test "${ac_cv_prog_cc_g+set}" = set; then
  20033. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  20035. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  20036. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  20037. + $as_echo_n "(cached) " >&6
  20038. else
  20039. ac_save_c_werror_flag=$ac_c_werror_flag
  20040. ac_c_werror_flag=yes
  20041. ac_cv_prog_cc_g=no
  20042. CFLAGS="-g"
  20043. - cat >conftest.$ac_ext <<_ACEOF
  20044. -/* confdefs.h. */
  20045. -_ACEOF
  20046. -cat confdefs.h >>conftest.$ac_ext
  20047. -cat >>conftest.$ac_ext <<_ACEOF
  20048. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20049. /* end confdefs.h. */
  20050. int
  20051. @@ -3281,34 +3789,11 @@
  20052. return 0;
  20053. }
  20054. _ACEOF
  20055. -rm -f conftest.$ac_objext
  20056. -if { (ac_try="$ac_compile"
  20057. -case "(($ac_try" in
  20058. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20059. - *) ac_try_echo=$ac_try;;
  20060. -esac
  20061. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20062. - (eval "$ac_compile") 2>conftest.er1
  20063. - ac_status=$?
  20064. - grep -v '^ *+' conftest.er1 >conftest.err
  20065. - rm -f conftest.er1
  20066. - cat conftest.err >&5
  20067. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20068. - (exit $ac_status); } && {
  20069. - test -z "$ac_c_werror_flag" ||
  20070. - test ! -s conftest.err
  20071. - } && test -s conftest.$ac_objext; then
  20072. +if ac_fn_c_try_compile "$LINENO"; then :
  20073. ac_cv_prog_cc_g=yes
  20074. else
  20075. - echo "$as_me: failed program was:" >&5
  20076. -sed 's/^/| /' conftest.$ac_ext >&5
  20077. -
  20078. - CFLAGS=""
  20079. - cat >conftest.$ac_ext <<_ACEOF
  20080. -/* confdefs.h. */
  20081. -_ACEOF
  20082. -cat confdefs.h >>conftest.$ac_ext
  20083. -cat >>conftest.$ac_ext <<_ACEOF
  20084. + CFLAGS=""
  20085. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20086. /* end confdefs.h. */
  20087. int
  20088. @@ -3319,35 +3804,12 @@
  20089. return 0;
  20090. }
  20091. _ACEOF
  20092. -rm -f conftest.$ac_objext
  20093. -if { (ac_try="$ac_compile"
  20094. -case "(($ac_try" in
  20095. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20096. - *) ac_try_echo=$ac_try;;
  20097. -esac
  20098. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20099. - (eval "$ac_compile") 2>conftest.er1
  20100. - ac_status=$?
  20101. - grep -v '^ *+' conftest.er1 >conftest.err
  20102. - rm -f conftest.er1
  20103. - cat conftest.err >&5
  20104. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20105. - (exit $ac_status); } && {
  20106. - test -z "$ac_c_werror_flag" ||
  20107. - test ! -s conftest.err
  20108. - } && test -s conftest.$ac_objext; then
  20109. - :
  20110. -else
  20111. - echo "$as_me: failed program was:" >&5
  20112. -sed 's/^/| /' conftest.$ac_ext >&5
  20113. +if ac_fn_c_try_compile "$LINENO"; then :
  20114. - ac_c_werror_flag=$ac_save_c_werror_flag
  20115. +else
  20116. + ac_c_werror_flag=$ac_save_c_werror_flag
  20117. CFLAGS="-g"
  20118. - cat >conftest.$ac_ext <<_ACEOF
  20119. -/* confdefs.h. */
  20120. -_ACEOF
  20121. -cat confdefs.h >>conftest.$ac_ext
  20122. -cat >>conftest.$ac_ext <<_ACEOF
  20123. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20124. /* end confdefs.h. */
  20125. int
  20126. @@ -3358,42 +3820,18 @@
  20127. return 0;
  20128. }
  20129. _ACEOF
  20130. -rm -f conftest.$ac_objext
  20131. -if { (ac_try="$ac_compile"
  20132. -case "(($ac_try" in
  20133. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20134. - *) ac_try_echo=$ac_try;;
  20135. -esac
  20136. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20137. - (eval "$ac_compile") 2>conftest.er1
  20138. - ac_status=$?
  20139. - grep -v '^ *+' conftest.er1 >conftest.err
  20140. - rm -f conftest.er1
  20141. - cat conftest.err >&5
  20142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20143. - (exit $ac_status); } && {
  20144. - test -z "$ac_c_werror_flag" ||
  20145. - test ! -s conftest.err
  20146. - } && test -s conftest.$ac_objext; then
  20147. +if ac_fn_c_try_compile "$LINENO"; then :
  20148. ac_cv_prog_cc_g=yes
  20149. -else
  20150. - echo "$as_me: failed program was:" >&5
  20151. -sed 's/^/| /' conftest.$ac_ext >&5
  20152. -
  20153. -
  20154. fi
  20155. -
  20156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20157. fi
  20158. -
  20159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20160. fi
  20161. -
  20162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20163. ac_c_werror_flag=$ac_save_c_werror_flag
  20164. fi
  20165. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20166. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  20167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  20168. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  20169. if test "$ac_test_CFLAGS" = set; then
  20170. CFLAGS=$ac_save_CFLAGS
  20171. elif test $ac_cv_prog_cc_g = yes; then
  20172. @@ -3409,18 +3847,14 @@
  20173. CFLAGS=
  20174. fi
  20175. fi
  20176. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  20177. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  20178. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  20179. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20180. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  20181. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  20182. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  20183. + $as_echo_n "(cached) " >&6
  20184. else
  20185. ac_cv_prog_cc_c89=no
  20186. ac_save_CC=$CC
  20187. -cat >conftest.$ac_ext <<_ACEOF
  20188. -/* confdefs.h. */
  20189. -_ACEOF
  20190. -cat confdefs.h >>conftest.$ac_ext
  20191. -cat >>conftest.$ac_ext <<_ACEOF
  20192. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20193. /* end confdefs.h. */
  20194. #include <stdarg.h>
  20195. #include <stdio.h>
  20196. @@ -3477,31 +3911,9 @@
  20197. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20198. do
  20199. CC="$ac_save_CC $ac_arg"
  20200. - rm -f conftest.$ac_objext
  20201. -if { (ac_try="$ac_compile"
  20202. -case "(($ac_try" in
  20203. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20204. - *) ac_try_echo=$ac_try;;
  20205. -esac
  20206. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20207. - (eval "$ac_compile") 2>conftest.er1
  20208. - ac_status=$?
  20209. - grep -v '^ *+' conftest.er1 >conftest.err
  20210. - rm -f conftest.er1
  20211. - cat conftest.err >&5
  20212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20213. - (exit $ac_status); } && {
  20214. - test -z "$ac_c_werror_flag" ||
  20215. - test ! -s conftest.err
  20216. - } && test -s conftest.$ac_objext; then
  20217. + if ac_fn_c_try_compile "$LINENO"; then :
  20218. ac_cv_prog_cc_c89=$ac_arg
  20219. -else
  20220. - echo "$as_me: failed program was:" >&5
  20221. -sed 's/^/| /' conftest.$ac_ext >&5
  20222. -
  20223. -
  20224. fi
  20225. -
  20226. rm -f core conftest.err conftest.$ac_objext
  20227. test "x$ac_cv_prog_cc_c89" != "xno" && break
  20228. done
  20229. @@ -3512,17 +3924,19 @@
  20230. # AC_CACHE_VAL
  20231. case "x$ac_cv_prog_cc_c89" in
  20232. x)
  20233. - { echo "$as_me:$LINENO: result: none needed" >&5
  20234. -echo "${ECHO_T}none needed" >&6; } ;;
  20235. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20236. +$as_echo "none needed" >&6; } ;;
  20237. xno)
  20238. - { echo "$as_me:$LINENO: result: unsupported" >&5
  20239. -echo "${ECHO_T}unsupported" >&6; } ;;
  20240. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20241. +$as_echo "unsupported" >&6; } ;;
  20242. *)
  20243. CC="$CC $ac_cv_prog_cc_c89"
  20244. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  20245. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  20246. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  20247. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  20248. esac
  20249. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  20250. +fi
  20251. ac_ext=c
  20252. ac_cpp='$CPP $CPPFLAGS'
  20253. @@ -3532,10 +3946,10 @@
  20254. depcc="$CC" am_compiler_list=
  20255. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20256. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  20257. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20258. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20259. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20260. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  20261. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20262. + $as_echo_n "(cached) " >&6
  20263. else
  20264. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20265. # We make a subdir and do the tests there. Otherwise we can end up
  20266. @@ -3560,6 +3974,11 @@
  20267. if test "$am_compiler_list" = ""; then
  20268. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20269. fi
  20270. + am__universal=false
  20271. + case " $depcc " in #(
  20272. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  20273. + esac
  20274. +
  20275. for depmode in $am_compiler_list; do
  20276. # Setup a source with many dependencies, because some compilers
  20277. # like to wrap large dependency lists on column 80 (with \), and
  20278. @@ -3577,7 +3996,17 @@
  20279. done
  20280. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20281. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20282. + # mode. It turns out that the SunPro C++ compiler does not properly
  20283. + # handle `-M -o', and we need to detect this. Also, some Intel
  20284. + # versions had trouble with output in subdirs
  20285. + am__obj=sub/conftest.${OBJEXT-o}
  20286. + am__minus_obj="-o $am__obj"
  20287. case $depmode in
  20288. + gcc)
  20289. + # This depmode causes a compiler race in universal mode.
  20290. + test "$am__universal" = false || continue
  20291. + ;;
  20292. nosideeffect)
  20293. # after this tag, mechanisms are not by side-effect, so they'll
  20294. # only be used when explicitly requested
  20295. @@ -3587,18 +4016,23 @@
  20296. break
  20297. fi
  20298. ;;
  20299. + msvisualcpp | msvcmsys)
  20300. + # This compiler won't grok `-c -o', but also, the minuso test has
  20301. + # not run yet. These depmodes are late enough in the game, and
  20302. + # so weak that their functioning should not be impacted.
  20303. + am__obj=conftest.${OBJEXT-o}
  20304. + am__minus_obj=
  20305. + ;;
  20306. none) break ;;
  20307. esac
  20308. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20309. - # mode. It turns out that the SunPro C++ compiler does not properly
  20310. - # handle `-M -o', and we need to detect this.
  20311. if depmode=$depmode \
  20312. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  20313. + source=sub/conftest.c object=$am__obj \
  20314. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  20315. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  20316. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  20317. >/dev/null 2>conftest.err &&
  20318. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  20319. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  20320. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  20321. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  20322. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  20323. # icc doesn't choke on unknown options, it will just issue warnings
  20324. # or remarks (even with -Werror). So we grep stderr for any message
  20325. @@ -3622,13 +4056,11 @@
  20326. fi
  20327. fi
  20328. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  20329. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  20330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20331. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20332. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20333. -
  20334. -
  20335. -if
  20336. + if
  20337. test "x$enable_dependency_tracking" != xno \
  20338. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  20339. am__fastdepCC_TRUE=
  20340. @@ -3639,102 +4071,122 @@
  20341. fi
  20342. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  20343. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  20344. -if test "${lt_cv_path_SED+set}" = set; then
  20345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20346. -else
  20347. - # Loop through the user's path and test for sed and gsed.
  20348. -# Then use that list of sed's as ones to test for truncation.
  20349. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20350. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20351. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20352. +if test "${ac_cv_path_SED+set}" = set; then :
  20353. + $as_echo_n "(cached) " >&6
  20354. +else
  20355. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20356. + for ac_i in 1 2 3 4 5 6 7; do
  20357. + ac_script="$ac_script$as_nl$ac_script"
  20358. + done
  20359. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20360. + { ac_script=; unset ac_script;}
  20361. + if test -z "$SED"; then
  20362. + ac_path_SED_found=false
  20363. + # Loop through the user's path and test for each of PROGNAME-LIST
  20364. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20365. for as_dir in $PATH
  20366. do
  20367. IFS=$as_save_IFS
  20368. test -z "$as_dir" && as_dir=.
  20369. - for lt_ac_prog in sed gsed; do
  20370. + for ac_prog in sed gsed; do
  20371. for ac_exec_ext in '' $ac_executable_extensions; do
  20372. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  20373. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  20374. - fi
  20375. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20376. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20377. +# Check for GNU ac_path_SED and select it if it is found.
  20378. + # Check for GNU $ac_path_SED
  20379. +case `"$ac_path_SED" --version 2>&1` in
  20380. +*GNU*)
  20381. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20382. +*)
  20383. + ac_count=0
  20384. + $as_echo_n 0123456789 >"conftest.in"
  20385. + while :
  20386. + do
  20387. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20388. + mv "conftest.tmp" "conftest.in"
  20389. + cp "conftest.in" "conftest.nl"
  20390. + $as_echo '' >> "conftest.nl"
  20391. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20392. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20393. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20394. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20395. + # Best one so far, save it but keep looking for a better one
  20396. + ac_cv_path_SED="$ac_path_SED"
  20397. + ac_path_SED_max=$ac_count
  20398. + fi
  20399. + # 10*(2^10) chars as input seems more than enough
  20400. + test $ac_count -gt 10 && break
  20401. + done
  20402. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20403. +esac
  20404. +
  20405. + $ac_path_SED_found && break 3
  20406. done
  20407. done
  20408. -done
  20409. -lt_ac_max=0
  20410. -lt_ac_count=0
  20411. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  20412. -# along with /bin/sed that truncates output.
  20413. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  20414. - test ! -f $lt_ac_sed && continue
  20415. - cat /dev/null > conftest.in
  20416. - lt_ac_count=0
  20417. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  20418. - # Check for GNU sed and select it if it is found.
  20419. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  20420. - lt_cv_path_SED=$lt_ac_sed
  20421. - break
  20422. - fi
  20423. - while true; do
  20424. - cat conftest.in conftest.in >conftest.tmp
  20425. - mv conftest.tmp conftest.in
  20426. - cp conftest.in conftest.nl
  20427. - echo >>conftest.nl
  20428. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  20429. - cmp -s conftest.out conftest.nl || break
  20430. - # 10000 chars as input seems more than enough
  20431. - test $lt_ac_count -gt 10 && break
  20432. - lt_ac_count=`expr $lt_ac_count + 1`
  20433. - if test $lt_ac_count -gt $lt_ac_max; then
  20434. - lt_ac_max=$lt_ac_count
  20435. - lt_cv_path_SED=$lt_ac_sed
  20436. - fi
  20437. done
  20438. -done
  20439. +IFS=$as_save_IFS
  20440. + if test -z "$ac_cv_path_SED"; then
  20441. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20442. + fi
  20443. +else
  20444. + ac_cv_path_SED=$SED
  20445. +fi
  20446. fi
  20447. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20448. +$as_echo "$ac_cv_path_SED" >&6; }
  20449. + SED="$ac_cv_path_SED"
  20450. + rm -f conftest.sed
  20451. +
  20452. +test -z "$SED" && SED=sed
  20453. +Xsed="$SED -e 1s/^X//"
  20454. +
  20455. +
  20456. +
  20457. +
  20458. +
  20459. +
  20460. +
  20461. -SED=$lt_cv_path_SED
  20462. -{ echo "$as_me:$LINENO: result: $SED" >&5
  20463. -echo "${ECHO_T}$SED" >&6; }
  20464. -
  20465. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  20466. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  20467. -if test "${ac_cv_path_GREP+set}" = set; then
  20468. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20469. -else
  20470. - # Extract the first word of "grep ggrep" to use in msg output
  20471. -if test -z "$GREP"; then
  20472. -set dummy grep ggrep; ac_prog_name=$2
  20473. -if test "${ac_cv_path_GREP+set}" = set; then
  20474. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20475. +
  20476. +
  20477. +
  20478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  20479. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  20480. +if test "${ac_cv_path_GREP+set}" = set; then :
  20481. + $as_echo_n "(cached) " >&6
  20482. else
  20483. + if test -z "$GREP"; then
  20484. ac_path_GREP_found=false
  20485. -# Loop through the user's path and test for each of PROGNAME-LIST
  20486. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20487. + # Loop through the user's path and test for each of PROGNAME-LIST
  20488. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20489. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20490. do
  20491. IFS=$as_save_IFS
  20492. test -z "$as_dir" && as_dir=.
  20493. - for ac_prog in grep ggrep; do
  20494. - for ac_exec_ext in '' $ac_executable_extensions; do
  20495. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20496. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20497. - # Check for GNU ac_path_GREP and select it if it is found.
  20498. + for ac_prog in grep ggrep; do
  20499. + for ac_exec_ext in '' $ac_executable_extensions; do
  20500. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20501. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20502. +# Check for GNU ac_path_GREP and select it if it is found.
  20503. # Check for GNU $ac_path_GREP
  20504. case `"$ac_path_GREP" --version 2>&1` in
  20505. *GNU*)
  20506. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  20507. *)
  20508. ac_count=0
  20509. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  20510. + $as_echo_n 0123456789 >"conftest.in"
  20511. while :
  20512. do
  20513. cat "conftest.in" "conftest.in" >"conftest.tmp"
  20514. mv "conftest.tmp" "conftest.in"
  20515. cp "conftest.in" "conftest.nl"
  20516. - echo 'GREP' >> "conftest.nl"
  20517. + $as_echo 'GREP' >> "conftest.nl"
  20518. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20519. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20520. - ac_count=`expr $ac_count + 1`
  20521. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20522. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20523. # Best one so far, save it but keep looking for a better one
  20524. ac_cv_path_GREP="$ac_path_GREP"
  20525. @@ -3746,77 +4198,61 @@
  20526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20527. esac
  20528. -
  20529. - $ac_path_GREP_found && break 3
  20530. + $ac_path_GREP_found && break 3
  20531. + done
  20532. + done
  20533. done
  20534. -done
  20535. -
  20536. -done
  20537. IFS=$as_save_IFS
  20538. -
  20539. -
  20540. -fi
  20541. -
  20542. -GREP="$ac_cv_path_GREP"
  20543. -if test -z "$GREP"; then
  20544. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  20545. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  20546. - { (exit 1); exit 1; }; }
  20547. -fi
  20548. -
  20549. + if test -z "$ac_cv_path_GREP"; then
  20550. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20551. + fi
  20552. else
  20553. ac_cv_path_GREP=$GREP
  20554. fi
  20555. -
  20556. fi
  20557. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  20558. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  20559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  20560. +$as_echo "$ac_cv_path_GREP" >&6; }
  20561. GREP="$ac_cv_path_GREP"
  20562. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  20563. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  20564. -if test "${ac_cv_path_EGREP+set}" = set; then
  20565. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20566. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20567. +$as_echo_n "checking for egrep... " >&6; }
  20568. +if test "${ac_cv_path_EGREP+set}" = set; then :
  20569. + $as_echo_n "(cached) " >&6
  20570. else
  20571. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20572. then ac_cv_path_EGREP="$GREP -E"
  20573. else
  20574. - # Extract the first word of "egrep" to use in msg output
  20575. -if test -z "$EGREP"; then
  20576. -set dummy egrep; ac_prog_name=$2
  20577. -if test "${ac_cv_path_EGREP+set}" = set; then
  20578. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20579. -else
  20580. + if test -z "$EGREP"; then
  20581. ac_path_EGREP_found=false
  20582. -# Loop through the user's path and test for each of PROGNAME-LIST
  20583. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20584. + # Loop through the user's path and test for each of PROGNAME-LIST
  20585. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20586. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20587. do
  20588. IFS=$as_save_IFS
  20589. test -z "$as_dir" && as_dir=.
  20590. - for ac_prog in egrep; do
  20591. - for ac_exec_ext in '' $ac_executable_extensions; do
  20592. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20593. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20594. - # Check for GNU ac_path_EGREP and select it if it is found.
  20595. + for ac_prog in egrep; do
  20596. + for ac_exec_ext in '' $ac_executable_extensions; do
  20597. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20598. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20599. +# Check for GNU ac_path_EGREP and select it if it is found.
  20600. # Check for GNU $ac_path_EGREP
  20601. case `"$ac_path_EGREP" --version 2>&1` in
  20602. *GNU*)
  20603. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  20604. *)
  20605. ac_count=0
  20606. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  20607. + $as_echo_n 0123456789 >"conftest.in"
  20608. while :
  20609. do
  20610. cat "conftest.in" "conftest.in" >"conftest.tmp"
  20611. mv "conftest.tmp" "conftest.in"
  20612. cp "conftest.in" "conftest.nl"
  20613. - echo 'EGREP' >> "conftest.nl"
  20614. + $as_echo 'EGREP' >> "conftest.nl"
  20615. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20616. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20617. - ac_count=`expr $ac_count + 1`
  20618. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20619. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  20620. # Best one so far, save it but keep looking for a better one
  20621. ac_cv_path_EGREP="$ac_path_EGREP"
  20622. @@ -3828,39 +4264,114 @@
  20623. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20624. esac
  20625. -
  20626. - $ac_path_EGREP_found && break 3
  20627. + $ac_path_EGREP_found && break 3
  20628. + done
  20629. + done
  20630. done
  20631. -done
  20632. -
  20633. -done
  20634. IFS=$as_save_IFS
  20635. -
  20636. -
  20637. -fi
  20638. -
  20639. -EGREP="$ac_cv_path_EGREP"
  20640. -if test -z "$EGREP"; then
  20641. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  20642. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  20643. - { (exit 1); exit 1; }; }
  20644. -fi
  20645. -
  20646. + if test -z "$ac_cv_path_EGREP"; then
  20647. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20648. + fi
  20649. else
  20650. ac_cv_path_EGREP=$EGREP
  20651. fi
  20652. -
  20653. fi
  20654. fi
  20655. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  20656. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  20657. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  20658. +$as_echo "$ac_cv_path_EGREP" >&6; }
  20659. EGREP="$ac_cv_path_EGREP"
  20660. -
  20661. -# Check whether --with-gnu-ld was given.
  20662. -if test "${with_gnu_ld+set}" = set; then
  20663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  20664. +$as_echo_n "checking for fgrep... " >&6; }
  20665. +if test "${ac_cv_path_FGREP+set}" = set; then :
  20666. + $as_echo_n "(cached) " >&6
  20667. +else
  20668. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  20669. + then ac_cv_path_FGREP="$GREP -F"
  20670. + else
  20671. + if test -z "$FGREP"; then
  20672. + ac_path_FGREP_found=false
  20673. + # Loop through the user's path and test for each of PROGNAME-LIST
  20674. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20675. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20676. +do
  20677. + IFS=$as_save_IFS
  20678. + test -z "$as_dir" && as_dir=.
  20679. + for ac_prog in fgrep; do
  20680. + for ac_exec_ext in '' $ac_executable_extensions; do
  20681. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  20682. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  20683. +# Check for GNU ac_path_FGREP and select it if it is found.
  20684. + # Check for GNU $ac_path_FGREP
  20685. +case `"$ac_path_FGREP" --version 2>&1` in
  20686. +*GNU*)
  20687. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  20688. +*)
  20689. + ac_count=0
  20690. + $as_echo_n 0123456789 >"conftest.in"
  20691. + while :
  20692. + do
  20693. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20694. + mv "conftest.tmp" "conftest.in"
  20695. + cp "conftest.in" "conftest.nl"
  20696. + $as_echo 'FGREP' >> "conftest.nl"
  20697. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20698. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20699. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20700. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  20701. + # Best one so far, save it but keep looking for a better one
  20702. + ac_cv_path_FGREP="$ac_path_FGREP"
  20703. + ac_path_FGREP_max=$ac_count
  20704. + fi
  20705. + # 10*(2^10) chars as input seems more than enough
  20706. + test $ac_count -gt 10 && break
  20707. + done
  20708. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20709. +esac
  20710. +
  20711. + $ac_path_FGREP_found && break 3
  20712. + done
  20713. + done
  20714. + done
  20715. +IFS=$as_save_IFS
  20716. + if test -z "$ac_cv_path_FGREP"; then
  20717. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20718. + fi
  20719. +else
  20720. + ac_cv_path_FGREP=$FGREP
  20721. +fi
  20722. +
  20723. + fi
  20724. +fi
  20725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  20726. +$as_echo "$ac_cv_path_FGREP" >&6; }
  20727. + FGREP="$ac_cv_path_FGREP"
  20728. +
  20729. +
  20730. +test -z "$GREP" && GREP=grep
  20731. +
  20732. +
  20733. +
  20734. +
  20735. +
  20736. +
  20737. +
  20738. +
  20739. +
  20740. +
  20741. +
  20742. +
  20743. +
  20744. +
  20745. +
  20746. +
  20747. +
  20748. +
  20749. +
  20750. +# Check whether --with-gnu-ld was given.
  20751. +if test "${with_gnu_ld+set}" = set; then :
  20752. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  20753. else
  20754. with_gnu_ld=no
  20755. @@ -3869,8 +4380,8 @@
  20756. ac_prog=ld
  20757. if test "$GCC" = yes; then
  20758. # Check if gcc -print-prog-name=ld gives a path.
  20759. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  20760. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  20761. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  20762. +$as_echo_n "checking for ld used by $CC... " >&6; }
  20763. case $host in
  20764. *-*-mingw*)
  20765. # gcc leaves a trailing carriage return which upsets mingw
  20766. @@ -3883,9 +4394,9 @@
  20767. [\\/]* | ?:[\\/]*)
  20768. re_direlt='/[^/][^/]*/\.\./'
  20769. # Canonicalize the pathname of ld
  20770. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  20771. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20772. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  20773. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  20774. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  20775. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  20776. done
  20777. test -z "$LD" && LD="$ac_prog"
  20778. ;;
  20779. @@ -3899,14 +4410,14 @@
  20780. ;;
  20781. esac
  20782. elif test "$with_gnu_ld" = yes; then
  20783. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  20784. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  20785. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20786. +$as_echo_n "checking for GNU ld... " >&6; }
  20787. else
  20788. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  20789. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  20790. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20791. +$as_echo_n "checking for non-GNU ld... " >&6; }
  20792. fi
  20793. -if test "${lt_cv_path_LD+set}" = set; then
  20794. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20795. +if test "${lt_cv_path_LD+set}" = set; then :
  20796. + $as_echo_n "(cached) " >&6
  20797. else
  20798. if test -z "$LD"; then
  20799. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20800. @@ -3936,19 +4447,17 @@
  20801. LD="$lt_cv_path_LD"
  20802. if test -n "$LD"; then
  20803. - { echo "$as_me:$LINENO: result: $LD" >&5
  20804. -echo "${ECHO_T}$LD" >&6; }
  20805. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20806. +$as_echo "$LD" >&6; }
  20807. else
  20808. - { echo "$as_me:$LINENO: result: no" >&5
  20809. -echo "${ECHO_T}no" >&6; }
  20810. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20811. +$as_echo "no" >&6; }
  20812. fi
  20813. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  20814. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  20815. - { (exit 1); exit 1; }; }
  20816. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  20817. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  20818. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  20819. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20820. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20821. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20822. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20823. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  20824. + $as_echo_n "(cached) " >&6
  20825. else
  20826. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  20827. case `$LD -v 2>&1 </dev/null` in
  20828. @@ -3960,40 +4469,22 @@
  20829. ;;
  20830. esac
  20831. fi
  20832. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  20833. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  20834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  20835. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  20836. with_gnu_ld=$lt_cv_prog_gnu_ld
  20837. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  20838. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  20839. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  20840. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20841. -else
  20842. - lt_cv_ld_reload_flag='-r'
  20843. -fi
  20844. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  20845. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  20846. -reload_flag=$lt_cv_ld_reload_flag
  20847. -case $reload_flag in
  20848. -"" | " "*) ;;
  20849. -*) reload_flag=" $reload_flag" ;;
  20850. -esac
  20851. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20852. -case $host_os in
  20853. - darwin*)
  20854. - if test "$GCC" = yes; then
  20855. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20856. - else
  20857. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20858. - fi
  20859. - ;;
  20860. -esac
  20861. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  20862. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  20863. -if test "${lt_cv_path_NM+set}" = set; then
  20864. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20865. +
  20866. +
  20867. +
  20868. +
  20869. +
  20870. +
  20871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  20872. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  20873. +if test "${lt_cv_path_NM+set}" = set; then :
  20874. + $as_echo_n "(cached) " >&6
  20875. else
  20876. if test -n "$NM"; then
  20877. # Let the user override the test.
  20878. @@ -4036,2252 +4527,1196 @@
  20879. done
  20880. IFS="$lt_save_ifs"
  20881. done
  20882. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  20883. + : ${lt_cv_path_NM=no}
  20884. fi
  20885. fi
  20886. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  20887. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  20888. -NM="$lt_cv_path_NM"
  20889. -
  20890. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  20891. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  20892. -LN_S=$as_ln_s
  20893. -if test "$LN_S" = "ln -s"; then
  20894. - { echo "$as_me:$LINENO: result: yes" >&5
  20895. -echo "${ECHO_T}yes" >&6; }
  20896. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  20897. +$as_echo "$lt_cv_path_NM" >&6; }
  20898. +if test "$lt_cv_path_NM" != "no"; then
  20899. + NM="$lt_cv_path_NM"
  20900. else
  20901. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  20902. -echo "${ECHO_T}no, using $LN_S" >&6; }
  20903. -fi
  20904. -
  20905. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  20906. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  20907. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  20908. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20909. + # Didn't find any BSD compatible name lister, look for dumpbin.
  20910. + if test -n "$ac_tool_prefix"; then
  20911. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20912. + do
  20913. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20914. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20916. +$as_echo_n "checking for $ac_word... " >&6; }
  20917. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  20918. + $as_echo_n "(cached) " >&6
  20919. else
  20920. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  20921. -lt_cv_file_magic_test_file=
  20922. -lt_cv_deplibs_check_method='unknown'
  20923. -# Need to set the preceding variable on all platforms that support
  20924. -# interlibrary dependencies.
  20925. -# 'none' -- dependencies not supported.
  20926. -# `unknown' -- same as none, but documents that we really don't know.
  20927. -# 'pass_all' -- all dependencies passed with no checks.
  20928. -# 'test_compile' -- check by making test program.
  20929. -# 'file_magic [[regex]]' -- check by looking for files in library path
  20930. -# which responds to the $file_magic_cmd with a given extended regex.
  20931. -# If you have `file' or equivalent on your system and you're not sure
  20932. -# whether `pass_all' will *always* work, you probably want this one.
  20933. + if test -n "$DUMPBIN"; then
  20934. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  20935. +else
  20936. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20937. +for as_dir in $PATH
  20938. +do
  20939. + IFS=$as_save_IFS
  20940. + test -z "$as_dir" && as_dir=.
  20941. + for ac_exec_ext in '' $ac_executable_extensions; do
  20942. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20943. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  20944. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20945. + break 2
  20946. + fi
  20947. +done
  20948. + done
  20949. +IFS=$as_save_IFS
  20950. -case $host_os in
  20951. -aix4* | aix5*)
  20952. - lt_cv_deplibs_check_method=pass_all
  20953. - ;;
  20954. +fi
  20955. +fi
  20956. +DUMPBIN=$ac_cv_prog_DUMPBIN
  20957. +if test -n "$DUMPBIN"; then
  20958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  20959. +$as_echo "$DUMPBIN" >&6; }
  20960. +else
  20961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20962. +$as_echo "no" >&6; }
  20963. +fi
  20964. -beos*)
  20965. - lt_cv_deplibs_check_method=pass_all
  20966. - ;;
  20967. -bsdi[45]*)
  20968. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20969. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  20970. - lt_cv_file_magic_test_file=/shlib/libc.so
  20971. - ;;
  20972. + test -n "$DUMPBIN" && break
  20973. + done
  20974. +fi
  20975. +if test -z "$DUMPBIN"; then
  20976. + ac_ct_DUMPBIN=$DUMPBIN
  20977. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20978. +do
  20979. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20980. +set dummy $ac_prog; ac_word=$2
  20981. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20982. +$as_echo_n "checking for $ac_word... " >&6; }
  20983. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  20984. + $as_echo_n "(cached) " >&6
  20985. +else
  20986. + if test -n "$ac_ct_DUMPBIN"; then
  20987. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  20988. +else
  20989. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20990. +for as_dir in $PATH
  20991. +do
  20992. + IFS=$as_save_IFS
  20993. + test -z "$as_dir" && as_dir=.
  20994. + for ac_exec_ext in '' $ac_executable_extensions; do
  20995. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20996. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  20997. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20998. + break 2
  20999. + fi
  21000. +done
  21001. + done
  21002. +IFS=$as_save_IFS
  21003. -cygwin*)
  21004. - # func_win32_libid is a shell function defined in ltmain.sh
  21005. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21006. - lt_cv_file_magic_cmd='func_win32_libid'
  21007. - ;;
  21008. +fi
  21009. +fi
  21010. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  21011. +if test -n "$ac_ct_DUMPBIN"; then
  21012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  21013. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  21014. +else
  21015. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21016. +$as_echo "no" >&6; }
  21017. +fi
  21018. -mingw* | pw32*)
  21019. - # Base MSYS/MinGW do not provide the 'file' command needed by
  21020. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  21021. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21022. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  21023. - ;;
  21024. -darwin* | rhapsody*)
  21025. - lt_cv_deplibs_check_method=pass_all
  21026. - ;;
  21027. + test -n "$ac_ct_DUMPBIN" && break
  21028. +done
  21029. -freebsd* | dragonfly*)
  21030. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21031. - case $host_cpu in
  21032. - i*86 )
  21033. - # Not sure whether the presence of OpenBSD here was a mistake.
  21034. - # Let's accept both of them until this is cleared up.
  21035. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21036. - lt_cv_file_magic_cmd=/usr/bin/file
  21037. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21038. - ;;
  21039. - esac
  21040. + if test "x$ac_ct_DUMPBIN" = x; then
  21041. + DUMPBIN=":"
  21042. else
  21043. - lt_cv_deplibs_check_method=pass_all
  21044. + case $cross_compiling:$ac_tool_warned in
  21045. +yes:)
  21046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21047. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21048. +ac_tool_warned=yes ;;
  21049. +esac
  21050. + DUMPBIN=$ac_ct_DUMPBIN
  21051. fi
  21052. - ;;
  21053. -
  21054. -gnu*)
  21055. - lt_cv_deplibs_check_method=pass_all
  21056. - ;;
  21057. +fi
  21058. -hpux10.20* | hpux11*)
  21059. - lt_cv_file_magic_cmd=/usr/bin/file
  21060. - case $host_cpu in
  21061. - ia64*)
  21062. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21063. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21064. - ;;
  21065. - hppa*64*)
  21066. - 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]'
  21067. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21068. - ;;
  21069. - *)
  21070. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21071. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21072. - ;;
  21073. - esac
  21074. - ;;
  21075. -interix3*)
  21076. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21077. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21078. - ;;
  21079. + if test "$DUMPBIN" != ":"; then
  21080. + NM="$DUMPBIN"
  21081. + fi
  21082. +fi
  21083. +test -z "$NM" && NM=nm
  21084. -irix5* | irix6* | nonstopux*)
  21085. - case $LD in
  21086. - *-32|*"-32 ") libmagic=32-bit;;
  21087. - *-n32|*"-n32 ") libmagic=N32;;
  21088. - *-64|*"-64 ") libmagic=64-bit;;
  21089. - *) libmagic=never-match;;
  21090. - esac
  21091. - lt_cv_deplibs_check_method=pass_all
  21092. - ;;
  21093. -# This must be Linux ELF.
  21094. -linux* | k*bsd*-gnu)
  21095. - lt_cv_deplibs_check_method=pass_all
  21096. - ;;
  21097. -netbsd* | netbsdelf*-gnu)
  21098. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21099. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21100. - else
  21101. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21102. - fi
  21103. - ;;
  21104. -newos6*)
  21105. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21106. - lt_cv_file_magic_cmd=/usr/bin/file
  21107. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21108. - ;;
  21109. -nto-qnx*)
  21110. - lt_cv_deplibs_check_method=unknown
  21111. - ;;
  21112. -openbsd*)
  21113. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21114. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21115. - else
  21116. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  21118. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  21119. +if test "${lt_cv_nm_interface+set}" = set; then :
  21120. + $as_echo_n "(cached) " >&6
  21121. +else
  21122. + lt_cv_nm_interface="BSD nm"
  21123. + echo "int some_variable = 0;" > conftest.$ac_ext
  21124. + (eval echo "\"\$as_me:4658: $ac_compile\"" >&5)
  21125. + (eval "$ac_compile" 2>conftest.err)
  21126. + cat conftest.err >&5
  21127. + (eval echo "\"\$as_me:4661: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  21128. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  21129. + cat conftest.err >&5
  21130. + (eval echo "\"\$as_me:4664: output\"" >&5)
  21131. + cat conftest.out >&5
  21132. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  21133. + lt_cv_nm_interface="MS dumpbin"
  21134. fi
  21135. - ;;
  21136. + rm -f conftest*
  21137. +fi
  21138. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  21139. +$as_echo "$lt_cv_nm_interface" >&6; }
  21140. -osf3* | osf4* | osf5*)
  21141. - lt_cv_deplibs_check_method=pass_all
  21142. - ;;
  21143. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  21144. +$as_echo_n "checking whether ln -s works... " >&6; }
  21145. +LN_S=$as_ln_s
  21146. +if test "$LN_S" = "ln -s"; then
  21147. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21148. +$as_echo "yes" >&6; }
  21149. +else
  21150. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  21151. +$as_echo "no, using $LN_S" >&6; }
  21152. +fi
  21153. -solaris*)
  21154. - lt_cv_deplibs_check_method=pass_all
  21155. - ;;
  21156. +# find the maximum length of command line arguments
  21157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  21158. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  21159. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  21160. + $as_echo_n "(cached) " >&6
  21161. +else
  21162. + i=0
  21163. + teststring="ABCD"
  21164. -sysv4 | sysv4.3*)
  21165. - case $host_vendor in
  21166. - motorola)
  21167. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  21168. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21169. + case $build_os in
  21170. + msdosdjgpp*)
  21171. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  21172. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  21173. + # during glob expansion). Even if it were fixed, the result of this
  21174. + # check would be larger than it should be.
  21175. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  21176. ;;
  21177. - ncr)
  21178. - lt_cv_deplibs_check_method=pass_all
  21179. +
  21180. + gnu*)
  21181. + # Under GNU Hurd, this test is not required because there is
  21182. + # no limit to the length of command line arguments.
  21183. + # Libtool will interpret -1 as no limit whatsoever
  21184. + lt_cv_sys_max_cmd_len=-1;
  21185. ;;
  21186. - sequent)
  21187. - lt_cv_file_magic_cmd='/bin/file'
  21188. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21189. +
  21190. + cygwin* | mingw* | cegcc*)
  21191. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  21192. + # about 5 minutes as the teststring grows exponentially.
  21193. + # Worse, since 9x/ME are not pre-emptively multitasking,
  21194. + # you end up with a "frozen" computer, even though with patience
  21195. + # the test eventually succeeds (with a max line length of 256k).
  21196. + # Instead, let's just punt: use the minimum linelength reported by
  21197. + # all of the supported platforms: 8192 (on NT/2K/XP).
  21198. + lt_cv_sys_max_cmd_len=8192;
  21199. ;;
  21200. - sni)
  21201. - lt_cv_file_magic_cmd='/bin/file'
  21202. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21203. - lt_cv_file_magic_test_file=/lib/libc.so
  21204. +
  21205. + amigaos*)
  21206. + # On AmigaOS with pdksh, this test takes hours, literally.
  21207. + # So we just punt and use a minimum line length of 8192.
  21208. + lt_cv_sys_max_cmd_len=8192;
  21209. ;;
  21210. - siemens)
  21211. - lt_cv_deplibs_check_method=pass_all
  21212. +
  21213. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  21214. + # This has been around since 386BSD, at least. Likely further.
  21215. + if test -x /sbin/sysctl; then
  21216. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  21217. + elif test -x /usr/sbin/sysctl; then
  21218. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  21219. + else
  21220. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  21221. + fi
  21222. + # And add a safety zone
  21223. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21224. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21225. ;;
  21226. - pc)
  21227. - lt_cv_deplibs_check_method=pass_all
  21228. +
  21229. + interix*)
  21230. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  21231. + lt_cv_sys_max_cmd_len=196608
  21232. + ;;
  21233. +
  21234. + osf*)
  21235. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  21236. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  21237. + # nice to cause kernel panics so lets avoid the loop below.
  21238. + # First set a reasonable default.
  21239. + lt_cv_sys_max_cmd_len=16384
  21240. + #
  21241. + if test -x /sbin/sysconfig; then
  21242. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  21243. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  21244. + esac
  21245. + fi
  21246. + ;;
  21247. + sco3.2v5*)
  21248. + lt_cv_sys_max_cmd_len=102400
  21249. + ;;
  21250. + sysv5* | sco5v6* | sysv4.2uw2*)
  21251. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  21252. + if test -n "$kargmax"; then
  21253. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  21254. + else
  21255. + lt_cv_sys_max_cmd_len=32768
  21256. + fi
  21257. + ;;
  21258. + *)
  21259. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  21260. + if test -n "$lt_cv_sys_max_cmd_len"; then
  21261. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21262. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21263. + else
  21264. + # Make teststring a little bigger before we do anything with it.
  21265. + # a 1K string should be a reasonable start.
  21266. + for i in 1 2 3 4 5 6 7 8 ; do
  21267. + teststring=$teststring$teststring
  21268. + done
  21269. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  21270. + # If test is not a shell built-in, we'll probably end up computing a
  21271. + # maximum length that is only half of the actual maximum length, but
  21272. + # we can't tell.
  21273. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  21274. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  21275. + test $i != 17 # 1/2 MB should be enough
  21276. + do
  21277. + i=`expr $i + 1`
  21278. + teststring=$teststring$teststring
  21279. + done
  21280. + # Only check the string length outside the loop.
  21281. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  21282. + teststring=
  21283. + # Add a significant safety factor because C++ compilers can tack on
  21284. + # massive amounts of additional arguments before passing them to the
  21285. + # linker. It appears as though 1/2 is a usable value.
  21286. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  21287. + fi
  21288. ;;
  21289. esac
  21290. - ;;
  21291. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21292. - lt_cv_deplibs_check_method=pass_all
  21293. - ;;
  21294. -esac
  21295. +fi
  21296. +if test -n $lt_cv_sys_max_cmd_len ; then
  21297. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  21298. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  21299. +else
  21300. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  21301. +$as_echo "none" >&6; }
  21302. fi
  21303. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  21304. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  21305. -file_magic_cmd=$lt_cv_file_magic_cmd
  21306. -deplibs_check_method=$lt_cv_deplibs_check_method
  21307. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21308. +max_cmd_len=$lt_cv_sys_max_cmd_len
  21309. -# If no C compiler was specified, use CC.
  21310. -LTCC=${LTCC-"$CC"}
  21311. -# If no C compiler flags were specified, use CFLAGS.
  21312. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21313. -# Allow CC to be a program name with arguments.
  21314. -compiler=$CC
  21315. +: ${CP="cp -f"}
  21316. +: ${MV="mv -f"}
  21317. +: ${RM="rm -f"}
  21318. +
  21319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  21320. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  21321. +# Try some XSI features
  21322. +xsi_shell=no
  21323. +( _lt_dummy="a/b/c"
  21324. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  21325. + = c,a/b,, \
  21326. + && eval 'test $(( 1 + 1 )) -eq 2 \
  21327. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  21328. + && xsi_shell=yes
  21329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  21330. +$as_echo "$xsi_shell" >&6; }
  21331. +
  21332. +
  21333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  21334. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  21335. +lt_shell_append=no
  21336. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  21337. + >/dev/null 2>&1 \
  21338. + && lt_shell_append=yes
  21339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  21340. +$as_echo "$lt_shell_append" >&6; }
  21341. -# Check whether --enable-libtool-lock was given.
  21342. -if test "${enable_libtool_lock+set}" = set; then
  21343. - enableval=$enable_libtool_lock;
  21344. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21345. + lt_unset=unset
  21346. +else
  21347. + lt_unset=false
  21348. fi
  21349. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21350. -# Some flags need to be propagated to the compiler or linker for good
  21351. -# libtool support.
  21352. -case $host in
  21353. -ia64-*-hpux*)
  21354. - # Find out which ABI we are using.
  21355. - echo 'int i;' > conftest.$ac_ext
  21356. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21357. - (eval $ac_compile) 2>&5
  21358. - ac_status=$?
  21359. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21360. - (exit $ac_status); }; then
  21361. - case `/usr/bin/file conftest.$ac_objext` in
  21362. - *ELF-32*)
  21363. - HPUX_IA64_MODE="32"
  21364. - ;;
  21365. - *ELF-64*)
  21366. - HPUX_IA64_MODE="64"
  21367. - ;;
  21368. - esac
  21369. - fi
  21370. - rm -rf conftest*
  21371. +
  21372. +
  21373. +
  21374. +# test EBCDIC or ASCII
  21375. +case `echo X|tr X '\101'` in
  21376. + A) # ASCII based system
  21377. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  21378. + lt_SP2NL='tr \040 \012'
  21379. + lt_NL2SP='tr \015\012 \040\040'
  21380. ;;
  21381. -*-*-irix6*)
  21382. - # Find out which ABI we are using.
  21383. - echo '#line 4283 "configure"' > conftest.$ac_ext
  21384. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21385. - (eval $ac_compile) 2>&5
  21386. - ac_status=$?
  21387. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21388. - (exit $ac_status); }; then
  21389. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21390. - case `/usr/bin/file conftest.$ac_objext` in
  21391. - *32-bit*)
  21392. - LD="${LD-ld} -melf32bsmip"
  21393. - ;;
  21394. - *N32*)
  21395. - LD="${LD-ld} -melf32bmipn32"
  21396. - ;;
  21397. - *64-bit*)
  21398. - LD="${LD-ld} -melf64bmip"
  21399. - ;;
  21400. - esac
  21401. - else
  21402. - case `/usr/bin/file conftest.$ac_objext` in
  21403. - *32-bit*)
  21404. - LD="${LD-ld} -32"
  21405. - ;;
  21406. - *N32*)
  21407. - LD="${LD-ld} -n32"
  21408. - ;;
  21409. - *64-bit*)
  21410. - LD="${LD-ld} -64"
  21411. - ;;
  21412. - esac
  21413. - fi
  21414. - fi
  21415. - rm -rf conftest*
  21416. + *) # EBCDIC based system
  21417. + lt_SP2NL='tr \100 \n'
  21418. + lt_NL2SP='tr \r\n \100\100'
  21419. ;;
  21420. +esac
  21421. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  21422. - # Find out which ABI we are using.
  21423. - echo 'int i;' > conftest.$ac_ext
  21424. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21425. - (eval $ac_compile) 2>&5
  21426. - ac_status=$?
  21427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21428. - (exit $ac_status); }; then
  21429. - case `/usr/bin/file conftest.o` in
  21430. - *32-bit*)
  21431. - case $host in
  21432. - x86_64-*linux*)
  21433. - LD="${LD-ld} -m elf_i386"
  21434. - ;;
  21435. - ppc64-*linux*|powerpc64-*linux*)
  21436. - LD="${LD-ld} -m elf32ppclinux"
  21437. - ;;
  21438. - s390x-*linux*)
  21439. - LD="${LD-ld} -m elf_s390"
  21440. - ;;
  21441. - sparc64-*linux*)
  21442. - LD="${LD-ld} -m elf32_sparc"
  21443. - ;;
  21444. - esac
  21445. - ;;
  21446. - *64-bit*)
  21447. - case $host in
  21448. - x86_64-*linux*)
  21449. - LD="${LD-ld} -m elf_x86_64"
  21450. - ;;
  21451. - ppc*-*linux*|powerpc*-*linux*)
  21452. - LD="${LD-ld} -m elf64ppc"
  21453. - ;;
  21454. - s390*-*linux*)
  21455. - LD="${LD-ld} -m elf64_s390"
  21456. - ;;
  21457. - sparc*-*linux*)
  21458. - LD="${LD-ld} -m elf64_sparc"
  21459. - ;;
  21460. - esac
  21461. - ;;
  21462. - esac
  21463. - fi
  21464. - rm -rf conftest*
  21465. - ;;
  21466. -*-*-sco3.2v5*)
  21467. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  21468. - SAVE_CFLAGS="$CFLAGS"
  21469. - CFLAGS="$CFLAGS -belf"
  21470. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  21471. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  21472. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  21473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21474. -else
  21475. - ac_ext=c
  21476. -ac_cpp='$CPP $CPPFLAGS'
  21477. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21478. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21479. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21480. - cat >conftest.$ac_ext <<_ACEOF
  21481. -/* confdefs.h. */
  21482. -_ACEOF
  21483. -cat confdefs.h >>conftest.$ac_ext
  21484. -cat >>conftest.$ac_ext <<_ACEOF
  21485. -/* end confdefs.h. */
  21486. -int
  21487. -main ()
  21488. -{
  21489. - ;
  21490. - return 0;
  21491. -}
  21492. -_ACEOF
  21493. -rm -f conftest.$ac_objext conftest$ac_exeext
  21494. -if { (ac_try="$ac_link"
  21495. -case "(($ac_try" in
  21496. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21497. - *) ac_try_echo=$ac_try;;
  21498. -esac
  21499. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21500. - (eval "$ac_link") 2>conftest.er1
  21501. - ac_status=$?
  21502. - grep -v '^ *+' conftest.er1 >conftest.err
  21503. - rm -f conftest.er1
  21504. - cat conftest.err >&5
  21505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21506. - (exit $ac_status); } && {
  21507. - test -z "$ac_c_werror_flag" ||
  21508. - test ! -s conftest.err
  21509. - } && test -s conftest$ac_exeext &&
  21510. - $as_test_x conftest$ac_exeext; then
  21511. - lt_cv_cc_needs_belf=yes
  21512. -else
  21513. - echo "$as_me: failed program was:" >&5
  21514. -sed 's/^/| /' conftest.$ac_ext >&5
  21515. - lt_cv_cc_needs_belf=no
  21516. -fi
  21517. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21518. - conftest$ac_exeext conftest.$ac_ext
  21519. - ac_ext=c
  21520. -ac_cpp='$CPP $CPPFLAGS'
  21521. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21522. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21523. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21524. +
  21525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  21526. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  21527. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  21528. + $as_echo_n "(cached) " >&6
  21529. +else
  21530. + lt_cv_ld_reload_flag='-r'
  21531. fi
  21532. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21533. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  21534. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21535. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21536. - CFLAGS="$SAVE_CFLAGS"
  21537. - fi
  21538. - ;;
  21539. -sparc*-*solaris*)
  21540. - # Find out which ABI we are using.
  21541. - echo 'int i;' > conftest.$ac_ext
  21542. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21543. - (eval $ac_compile) 2>&5
  21544. - ac_status=$?
  21545. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21546. - (exit $ac_status); }; then
  21547. - case `/usr/bin/file conftest.o` in
  21548. - *64-bit*)
  21549. - case $lt_cv_prog_gnu_ld in
  21550. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  21551. - *) LD="${LD-ld} -64" ;;
  21552. - esac
  21553. - ;;
  21554. - esac
  21555. - fi
  21556. - rm -rf conftest*
  21557. - ;;
  21558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  21559. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  21560. +reload_flag=$lt_cv_ld_reload_flag
  21561. +case $reload_flag in
  21562. +"" | " "*) ;;
  21563. +*) reload_flag=" $reload_flag" ;;
  21564. +esac
  21565. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21566. +case $host_os in
  21567. + darwin*)
  21568. + if test "$GCC" = yes; then
  21569. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21570. + else
  21571. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21572. + fi
  21573. + ;;
  21574. +esac
  21575. -esac
  21576. -need_locks="$enable_libtool_lock"
  21577. -ac_ext=c
  21578. -ac_cpp='$CPP $CPPFLAGS'
  21579. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21580. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21581. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21582. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  21583. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  21584. -# On Suns, sometimes $CPP names a directory.
  21585. -if test -n "$CPP" && test -d "$CPP"; then
  21586. - CPP=
  21587. -fi
  21588. -if test -z "$CPP"; then
  21589. - if test "${ac_cv_prog_CPP+set}" = set; then
  21590. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21591. -else
  21592. - # Double quotes because CPP needs to be expanded
  21593. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21594. - do
  21595. - ac_preproc_ok=false
  21596. -for ac_c_preproc_warn_flag in '' yes
  21597. -do
  21598. - # Use a header file that comes with gcc, so configuring glibc
  21599. - # with a fresh cross-compiler works.
  21600. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21601. - # <limits.h> exists even on freestanding compilers.
  21602. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21603. - # not just through cpp. "Syntax error" is here to catch this case.
  21604. - cat >conftest.$ac_ext <<_ACEOF
  21605. -/* confdefs.h. */
  21606. -_ACEOF
  21607. -cat confdefs.h >>conftest.$ac_ext
  21608. -cat >>conftest.$ac_ext <<_ACEOF
  21609. -/* end confdefs.h. */
  21610. -#ifdef __STDC__
  21611. -# include <limits.h>
  21612. -#else
  21613. -# include <assert.h>
  21614. -#endif
  21615. - Syntax error
  21616. -_ACEOF
  21617. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21618. -case "(($ac_try" in
  21619. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21620. - *) ac_try_echo=$ac_try;;
  21621. -esac
  21622. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21623. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21624. - ac_status=$?
  21625. - grep -v '^ *+' conftest.er1 >conftest.err
  21626. - rm -f conftest.er1
  21627. - cat conftest.err >&5
  21628. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21629. - (exit $ac_status); } >/dev/null && {
  21630. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21631. - test ! -s conftest.err
  21632. - }; then
  21633. - :
  21634. -else
  21635. - echo "$as_me: failed program was:" >&5
  21636. -sed 's/^/| /' conftest.$ac_ext >&5
  21637. - # Broken: fails on valid input.
  21638. -continue
  21639. -fi
  21640. -rm -f conftest.err conftest.$ac_ext
  21641. - # OK, works on sane cases. Now check whether nonexistent headers
  21642. - # can be detected and how.
  21643. - cat >conftest.$ac_ext <<_ACEOF
  21644. -/* confdefs.h. */
  21645. -_ACEOF
  21646. -cat confdefs.h >>conftest.$ac_ext
  21647. -cat >>conftest.$ac_ext <<_ACEOF
  21648. -/* end confdefs.h. */
  21649. -#include <ac_nonexistent.h>
  21650. -_ACEOF
  21651. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21652. -case "(($ac_try" in
  21653. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21654. - *) ac_try_echo=$ac_try;;
  21655. -esac
  21656. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21657. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21658. - ac_status=$?
  21659. - grep -v '^ *+' conftest.er1 >conftest.err
  21660. - rm -f conftest.er1
  21661. - cat conftest.err >&5
  21662. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21663. - (exit $ac_status); } >/dev/null && {
  21664. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21665. - test ! -s conftest.err
  21666. - }; then
  21667. - # Broken: success on invalid input.
  21668. -continue
  21669. +
  21670. +if test -n "$ac_tool_prefix"; then
  21671. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  21672. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  21673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21674. +$as_echo_n "checking for $ac_word... " >&6; }
  21675. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  21676. + $as_echo_n "(cached) " >&6
  21677. else
  21678. - echo "$as_me: failed program was:" >&5
  21679. -sed 's/^/| /' conftest.$ac_ext >&5
  21680. + if test -n "$OBJDUMP"; then
  21681. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21682. +else
  21683. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21684. +for as_dir in $PATH
  21685. +do
  21686. + IFS=$as_save_IFS
  21687. + test -z "$as_dir" && as_dir=.
  21688. + for ac_exec_ext in '' $ac_executable_extensions; do
  21689. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21690. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21691. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21692. + break 2
  21693. + fi
  21694. +done
  21695. + done
  21696. +IFS=$as_save_IFS
  21697. - # Passes both tests.
  21698. -ac_preproc_ok=:
  21699. -break
  21700. fi
  21701. -
  21702. -rm -f conftest.err conftest.$ac_ext
  21703. -
  21704. -done
  21705. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21706. -rm -f conftest.err conftest.$ac_ext
  21707. -if $ac_preproc_ok; then
  21708. - break
  21709. +fi
  21710. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21711. +if test -n "$OBJDUMP"; then
  21712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21713. +$as_echo "$OBJDUMP" >&6; }
  21714. +else
  21715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21716. +$as_echo "no" >&6; }
  21717. fi
  21718. - done
  21719. - ac_cv_prog_CPP=$CPP
  21720. fi
  21721. - CPP=$ac_cv_prog_CPP
  21722. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21723. + ac_ct_OBJDUMP=$OBJDUMP
  21724. + # Extract the first word of "objdump", so it can be a program name with args.
  21725. +set dummy objdump; ac_word=$2
  21726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21727. +$as_echo_n "checking for $ac_word... " >&6; }
  21728. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21729. + $as_echo_n "(cached) " >&6
  21730. else
  21731. - ac_cv_prog_CPP=$CPP
  21732. -fi
  21733. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  21734. -echo "${ECHO_T}$CPP" >&6; }
  21735. -ac_preproc_ok=false
  21736. -for ac_c_preproc_warn_flag in '' yes
  21737. -do
  21738. - # Use a header file that comes with gcc, so configuring glibc
  21739. - # with a fresh cross-compiler works.
  21740. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21741. - # <limits.h> exists even on freestanding compilers.
  21742. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21743. - # not just through cpp. "Syntax error" is here to catch this case.
  21744. - cat >conftest.$ac_ext <<_ACEOF
  21745. -/* confdefs.h. */
  21746. -_ACEOF
  21747. -cat confdefs.h >>conftest.$ac_ext
  21748. -cat >>conftest.$ac_ext <<_ACEOF
  21749. -/* end confdefs.h. */
  21750. -#ifdef __STDC__
  21751. -# include <limits.h>
  21752. -#else
  21753. -# include <assert.h>
  21754. -#endif
  21755. - Syntax error
  21756. -_ACEOF
  21757. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21758. -case "(($ac_try" in
  21759. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21760. - *) ac_try_echo=$ac_try;;
  21761. -esac
  21762. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21763. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21764. - ac_status=$?
  21765. - grep -v '^ *+' conftest.er1 >conftest.err
  21766. - rm -f conftest.er1
  21767. - cat conftest.err >&5
  21768. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21769. - (exit $ac_status); } >/dev/null && {
  21770. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21771. - test ! -s conftest.err
  21772. - }; then
  21773. - :
  21774. + if test -n "$ac_ct_OBJDUMP"; then
  21775. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21776. else
  21777. - echo "$as_me: failed program was:" >&5
  21778. -sed 's/^/| /' conftest.$ac_ext >&5
  21779. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21780. +for as_dir in $PATH
  21781. +do
  21782. + IFS=$as_save_IFS
  21783. + test -z "$as_dir" && as_dir=.
  21784. + for ac_exec_ext in '' $ac_executable_extensions; do
  21785. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21786. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21787. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21788. + break 2
  21789. + fi
  21790. +done
  21791. + done
  21792. +IFS=$as_save_IFS
  21793. - # Broken: fails on valid input.
  21794. -continue
  21795. fi
  21796. -
  21797. -rm -f conftest.err conftest.$ac_ext
  21798. -
  21799. - # OK, works on sane cases. Now check whether nonexistent headers
  21800. - # can be detected and how.
  21801. - cat >conftest.$ac_ext <<_ACEOF
  21802. -/* confdefs.h. */
  21803. -_ACEOF
  21804. -cat confdefs.h >>conftest.$ac_ext
  21805. -cat >>conftest.$ac_ext <<_ACEOF
  21806. -/* end confdefs.h. */
  21807. -#include <ac_nonexistent.h>
  21808. -_ACEOF
  21809. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21810. -case "(($ac_try" in
  21811. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21812. - *) ac_try_echo=$ac_try;;
  21813. -esac
  21814. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21815. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21816. - ac_status=$?
  21817. - grep -v '^ *+' conftest.er1 >conftest.err
  21818. - rm -f conftest.er1
  21819. - cat conftest.err >&5
  21820. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21821. - (exit $ac_status); } >/dev/null && {
  21822. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21823. - test ! -s conftest.err
  21824. - }; then
  21825. - # Broken: success on invalid input.
  21826. -continue
  21827. +fi
  21828. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21829. +if test -n "$ac_ct_OBJDUMP"; then
  21830. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21831. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21832. else
  21833. - echo "$as_me: failed program was:" >&5
  21834. -sed 's/^/| /' conftest.$ac_ext >&5
  21835. -
  21836. - # Passes both tests.
  21837. -ac_preproc_ok=:
  21838. -break
  21839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21840. +$as_echo "no" >&6; }
  21841. fi
  21842. -rm -f conftest.err conftest.$ac_ext
  21843. -
  21844. -done
  21845. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21846. -rm -f conftest.err conftest.$ac_ext
  21847. -if $ac_preproc_ok; then
  21848. - :
  21849. + if test "x$ac_ct_OBJDUMP" = x; then
  21850. + OBJDUMP="false"
  21851. + else
  21852. + case $cross_compiling:$ac_tool_warned in
  21853. +yes:)
  21854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21855. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21856. +ac_tool_warned=yes ;;
  21857. +esac
  21858. + OBJDUMP=$ac_ct_OBJDUMP
  21859. + fi
  21860. else
  21861. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  21862. -See \`config.log' for more details." >&5
  21863. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  21864. -See \`config.log' for more details." >&2;}
  21865. - { (exit 1); exit 1; }; }
  21866. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21867. fi
  21868. -ac_ext=c
  21869. -ac_cpp='$CPP $CPPFLAGS'
  21870. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21871. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21872. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21873. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21874. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  21875. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  21876. -if test "${ac_cv_header_stdc+set}" = set; then
  21877. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21878. -else
  21879. - cat >conftest.$ac_ext <<_ACEOF
  21880. -/* confdefs.h. */
  21881. -_ACEOF
  21882. -cat confdefs.h >>conftest.$ac_ext
  21883. -cat >>conftest.$ac_ext <<_ACEOF
  21884. -/* end confdefs.h. */
  21885. -#include <stdlib.h>
  21886. -#include <stdarg.h>
  21887. -#include <string.h>
  21888. -#include <float.h>
  21889. -int
  21890. -main ()
  21891. -{
  21892. - ;
  21893. - return 0;
  21894. -}
  21895. -_ACEOF
  21896. -rm -f conftest.$ac_objext
  21897. -if { (ac_try="$ac_compile"
  21898. -case "(($ac_try" in
  21899. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21900. - *) ac_try_echo=$ac_try;;
  21901. -esac
  21902. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21903. - (eval "$ac_compile") 2>conftest.er1
  21904. - ac_status=$?
  21905. - grep -v '^ *+' conftest.er1 >conftest.err
  21906. - rm -f conftest.er1
  21907. - cat conftest.err >&5
  21908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21909. - (exit $ac_status); } && {
  21910. - test -z "$ac_c_werror_flag" ||
  21911. - test ! -s conftest.err
  21912. - } && test -s conftest.$ac_objext; then
  21913. - ac_cv_header_stdc=yes
  21914. -else
  21915. - echo "$as_me: failed program was:" >&5
  21916. -sed 's/^/| /' conftest.$ac_ext >&5
  21917. - ac_cv_header_stdc=no
  21918. -fi
  21919. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21920. -if test $ac_cv_header_stdc = yes; then
  21921. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21922. - cat >conftest.$ac_ext <<_ACEOF
  21923. -/* confdefs.h. */
  21924. -_ACEOF
  21925. -cat confdefs.h >>conftest.$ac_ext
  21926. -cat >>conftest.$ac_ext <<_ACEOF
  21927. -/* end confdefs.h. */
  21928. -#include <string.h>
  21929. -_ACEOF
  21930. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21931. - $EGREP "memchr" >/dev/null 2>&1; then
  21932. - :
  21933. +
  21934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  21935. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  21936. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  21937. + $as_echo_n "(cached) " >&6
  21938. else
  21939. - ac_cv_header_stdc=no
  21940. -fi
  21941. -rm -f conftest*
  21942. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  21943. +lt_cv_file_magic_test_file=
  21944. +lt_cv_deplibs_check_method='unknown'
  21945. +# Need to set the preceding variable on all platforms that support
  21946. +# interlibrary dependencies.
  21947. +# 'none' -- dependencies not supported.
  21948. +# `unknown' -- same as none, but documents that we really don't know.
  21949. +# 'pass_all' -- all dependencies passed with no checks.
  21950. +# 'test_compile' -- check by making test program.
  21951. +# 'file_magic [[regex]]' -- check by looking for files in library path
  21952. +# which responds to the $file_magic_cmd with a given extended regex.
  21953. +# If you have `file' or equivalent on your system and you're not sure
  21954. +# whether `pass_all' will *always* work, you probably want this one.
  21955. -fi
  21956. +case $host_os in
  21957. +aix[4-9]*)
  21958. + lt_cv_deplibs_check_method=pass_all
  21959. + ;;
  21960. -if test $ac_cv_header_stdc = yes; then
  21961. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21962. - cat >conftest.$ac_ext <<_ACEOF
  21963. -/* confdefs.h. */
  21964. -_ACEOF
  21965. -cat confdefs.h >>conftest.$ac_ext
  21966. -cat >>conftest.$ac_ext <<_ACEOF
  21967. -/* end confdefs.h. */
  21968. -#include <stdlib.h>
  21969. +beos*)
  21970. + lt_cv_deplibs_check_method=pass_all
  21971. + ;;
  21972. -_ACEOF
  21973. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21974. - $EGREP "free" >/dev/null 2>&1; then
  21975. - :
  21976. -else
  21977. - ac_cv_header_stdc=no
  21978. -fi
  21979. -rm -f conftest*
  21980. +bsdi[45]*)
  21981. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21982. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  21983. + lt_cv_file_magic_test_file=/shlib/libc.so
  21984. + ;;
  21985. -fi
  21986. +cygwin*)
  21987. + # func_win32_libid is a shell function defined in ltmain.sh
  21988. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21989. + lt_cv_file_magic_cmd='func_win32_libid'
  21990. + ;;
  21991. -if test $ac_cv_header_stdc = yes; then
  21992. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21993. - if test "$cross_compiling" = yes; then
  21994. - :
  21995. -else
  21996. - cat >conftest.$ac_ext <<_ACEOF
  21997. -/* confdefs.h. */
  21998. -_ACEOF
  21999. -cat confdefs.h >>conftest.$ac_ext
  22000. -cat >>conftest.$ac_ext <<_ACEOF
  22001. -/* end confdefs.h. */
  22002. -#include <ctype.h>
  22003. -#include <stdlib.h>
  22004. -#if ((' ' & 0x0FF) == 0x020)
  22005. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  22006. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  22007. -#else
  22008. -# define ISLOWER(c) \
  22009. - (('a' <= (c) && (c) <= 'i') \
  22010. - || ('j' <= (c) && (c) <= 'r') \
  22011. - || ('s' <= (c) && (c) <= 'z'))
  22012. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  22013. -#endif
  22014. +mingw* | pw32*)
  22015. + # Base MSYS/MinGW do not provide the 'file' command needed by
  22016. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  22017. + # unless we find 'file', for example because we are cross-compiling.
  22018. + if ( file / ) >/dev/null 2>&1; then
  22019. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22020. + lt_cv_file_magic_cmd='func_win32_libid'
  22021. + else
  22022. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22023. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22024. + fi
  22025. + ;;
  22026. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  22027. -int
  22028. -main ()
  22029. -{
  22030. - int i;
  22031. - for (i = 0; i < 256; i++)
  22032. - if (XOR (islower (i), ISLOWER (i))
  22033. - || toupper (i) != TOUPPER (i))
  22034. - return 2;
  22035. - return 0;
  22036. -}
  22037. -_ACEOF
  22038. -rm -f conftest$ac_exeext
  22039. -if { (ac_try="$ac_link"
  22040. -case "(($ac_try" in
  22041. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22042. - *) ac_try_echo=$ac_try;;
  22043. -esac
  22044. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22045. - (eval "$ac_link") 2>&5
  22046. - ac_status=$?
  22047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22048. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22049. - { (case "(($ac_try" in
  22050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22051. - *) ac_try_echo=$ac_try;;
  22052. -esac
  22053. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22054. - (eval "$ac_try") 2>&5
  22055. - ac_status=$?
  22056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22057. - (exit $ac_status); }; }; then
  22058. - :
  22059. -else
  22060. - echo "$as_me: program exited with status $ac_status" >&5
  22061. -echo "$as_me: failed program was:" >&5
  22062. -sed 's/^/| /' conftest.$ac_ext >&5
  22063. +cegcc)
  22064. + # use the weaker test based on 'objdump'. See mingw*.
  22065. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  22066. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22067. + ;;
  22068. -( exit $ac_status )
  22069. -ac_cv_header_stdc=no
  22070. -fi
  22071. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22072. -fi
  22073. +darwin* | rhapsody*)
  22074. + lt_cv_deplibs_check_method=pass_all
  22075. + ;;
  22076. +
  22077. +freebsd* | dragonfly*)
  22078. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22079. + case $host_cpu in
  22080. + i*86 )
  22081. + # Not sure whether the presence of OpenBSD here was a mistake.
  22082. + # Let's accept both of them until this is cleared up.
  22083. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  22084. + lt_cv_file_magic_cmd=/usr/bin/file
  22085. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22086. + ;;
  22087. + esac
  22088. + else
  22089. + lt_cv_deplibs_check_method=pass_all
  22090. + fi
  22091. + ;;
  22092. +gnu*)
  22093. + lt_cv_deplibs_check_method=pass_all
  22094. + ;;
  22095. -fi
  22096. -fi
  22097. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  22098. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  22099. -if test $ac_cv_header_stdc = yes; then
  22100. +hpux10.20* | hpux11*)
  22101. + lt_cv_file_magic_cmd=/usr/bin/file
  22102. + case $host_cpu in
  22103. + ia64*)
  22104. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  22105. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  22106. + ;;
  22107. + hppa*64*)
  22108. + 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]'
  22109. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  22110. + ;;
  22111. + *)
  22112. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  22113. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  22114. + ;;
  22115. + esac
  22116. + ;;
  22117. -cat >>confdefs.h <<\_ACEOF
  22118. -#define STDC_HEADERS 1
  22119. -_ACEOF
  22120. +interix[3-9]*)
  22121. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  22122. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  22123. + ;;
  22124. -fi
  22125. +irix5* | irix6* | nonstopux*)
  22126. + case $LD in
  22127. + *-32|*"-32 ") libmagic=32-bit;;
  22128. + *-n32|*"-n32 ") libmagic=N32;;
  22129. + *-64|*"-64 ") libmagic=64-bit;;
  22130. + *) libmagic=never-match;;
  22131. + esac
  22132. + lt_cv_deplibs_check_method=pass_all
  22133. + ;;
  22134. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  22135. +# This must be Linux ELF.
  22136. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  22137. + lt_cv_deplibs_check_method=pass_all
  22138. + ;;
  22139. +netbsd* | netbsdelf*-gnu)
  22140. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22141. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22142. + else
  22143. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  22144. + fi
  22145. + ;;
  22146. +newos6*)
  22147. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  22148. + lt_cv_file_magic_cmd=/usr/bin/file
  22149. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  22150. + ;;
  22151. +*nto* | *qnx*)
  22152. + lt_cv_deplibs_check_method=pass_all
  22153. + ;;
  22154. +openbsd*)
  22155. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22156. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22157. + else
  22158. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22159. + fi
  22160. + ;;
  22161. +osf3* | osf4* | osf5*)
  22162. + lt_cv_deplibs_check_method=pass_all
  22163. + ;;
  22164. +rdos*)
  22165. + lt_cv_deplibs_check_method=pass_all
  22166. + ;;
  22167. +solaris*)
  22168. + lt_cv_deplibs_check_method=pass_all
  22169. + ;;
  22170. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22171. + lt_cv_deplibs_check_method=pass_all
  22172. + ;;
  22173. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  22174. - inttypes.h stdint.h unistd.h
  22175. -do
  22176. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22177. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  22178. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22179. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22180. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22181. -else
  22182. - cat >conftest.$ac_ext <<_ACEOF
  22183. -/* confdefs.h. */
  22184. -_ACEOF
  22185. -cat confdefs.h >>conftest.$ac_ext
  22186. -cat >>conftest.$ac_ext <<_ACEOF
  22187. -/* end confdefs.h. */
  22188. -$ac_includes_default
  22189. +sysv4 | sysv4.3*)
  22190. + case $host_vendor in
  22191. + motorola)
  22192. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  22193. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22194. + ;;
  22195. + ncr)
  22196. + lt_cv_deplibs_check_method=pass_all
  22197. + ;;
  22198. + sequent)
  22199. + lt_cv_file_magic_cmd='/bin/file'
  22200. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22201. + ;;
  22202. + sni)
  22203. + lt_cv_file_magic_cmd='/bin/file'
  22204. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22205. + lt_cv_file_magic_test_file=/lib/libc.so
  22206. + ;;
  22207. + siemens)
  22208. + lt_cv_deplibs_check_method=pass_all
  22209. + ;;
  22210. + pc)
  22211. + lt_cv_deplibs_check_method=pass_all
  22212. + ;;
  22213. + esac
  22214. + ;;
  22215. -#include <$ac_header>
  22216. -_ACEOF
  22217. -rm -f conftest.$ac_objext
  22218. -if { (ac_try="$ac_compile"
  22219. -case "(($ac_try" in
  22220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22221. - *) ac_try_echo=$ac_try;;
  22222. +tpf*)
  22223. + lt_cv_deplibs_check_method=pass_all
  22224. + ;;
  22225. esac
  22226. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22227. - (eval "$ac_compile") 2>conftest.er1
  22228. - ac_status=$?
  22229. - grep -v '^ *+' conftest.er1 >conftest.err
  22230. - rm -f conftest.er1
  22231. - cat conftest.err >&5
  22232. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22233. - (exit $ac_status); } && {
  22234. - test -z "$ac_c_werror_flag" ||
  22235. - test ! -s conftest.err
  22236. - } && test -s conftest.$ac_objext; then
  22237. - eval "$as_ac_Header=yes"
  22238. -else
  22239. - echo "$as_me: failed program was:" >&5
  22240. -sed 's/^/| /' conftest.$ac_ext >&5
  22241. - eval "$as_ac_Header=no"
  22242. fi
  22243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22244. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22245. +file_magic_cmd=$lt_cv_file_magic_cmd
  22246. +deplibs_check_method=$lt_cv_deplibs_check_method
  22247. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22248. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22249. -fi
  22250. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22251. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22252. -echo "${ECHO_T}$ac_res" >&6; }
  22253. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22254. - cat >>confdefs.h <<_ACEOF
  22255. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22256. -_ACEOF
  22257. -fi
  22258. -done
  22259. -for ac_header in dlfcn.h
  22260. -do
  22261. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22262. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22263. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  22264. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22265. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22266. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22267. -fi
  22268. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22269. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22270. -echo "${ECHO_T}$ac_res" >&6; }
  22271. -else
  22272. - # Is the header compilable?
  22273. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22274. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  22275. -cat >conftest.$ac_ext <<_ACEOF
  22276. -/* confdefs.h. */
  22277. -_ACEOF
  22278. -cat confdefs.h >>conftest.$ac_ext
  22279. -cat >>conftest.$ac_ext <<_ACEOF
  22280. -/* end confdefs.h. */
  22281. -$ac_includes_default
  22282. -#include <$ac_header>
  22283. -_ACEOF
  22284. -rm -f conftest.$ac_objext
  22285. -if { (ac_try="$ac_compile"
  22286. -case "(($ac_try" in
  22287. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22288. - *) ac_try_echo=$ac_try;;
  22289. -esac
  22290. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22291. - (eval "$ac_compile") 2>conftest.er1
  22292. - ac_status=$?
  22293. - grep -v '^ *+' conftest.er1 >conftest.err
  22294. - rm -f conftest.er1
  22295. - cat conftest.err >&5
  22296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22297. - (exit $ac_status); } && {
  22298. - test -z "$ac_c_werror_flag" ||
  22299. - test ! -s conftest.err
  22300. - } && test -s conftest.$ac_objext; then
  22301. - ac_header_compiler=yes
  22302. -else
  22303. - echo "$as_me: failed program was:" >&5
  22304. -sed 's/^/| /' conftest.$ac_ext >&5
  22305. - ac_header_compiler=no
  22306. -fi
  22307. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22308. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22309. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  22310. -# Is the header present?
  22311. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22312. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  22313. -cat >conftest.$ac_ext <<_ACEOF
  22314. -/* confdefs.h. */
  22315. -_ACEOF
  22316. -cat confdefs.h >>conftest.$ac_ext
  22317. -cat >>conftest.$ac_ext <<_ACEOF
  22318. -/* end confdefs.h. */
  22319. -#include <$ac_header>
  22320. -_ACEOF
  22321. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22322. -case "(($ac_try" in
  22323. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22324. - *) ac_try_echo=$ac_try;;
  22325. -esac
  22326. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22327. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22328. - ac_status=$?
  22329. - grep -v '^ *+' conftest.er1 >conftest.err
  22330. - rm -f conftest.er1
  22331. - cat conftest.err >&5
  22332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22333. - (exit $ac_status); } >/dev/null && {
  22334. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22335. - test ! -s conftest.err
  22336. - }; then
  22337. - ac_header_preproc=yes
  22338. -else
  22339. - echo "$as_me: failed program was:" >&5
  22340. -sed 's/^/| /' conftest.$ac_ext >&5
  22341. - ac_header_preproc=no
  22342. -fi
  22343. -rm -f conftest.err conftest.$ac_ext
  22344. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22345. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  22346. -# So? What about this header?
  22347. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22348. - yes:no: )
  22349. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22350. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22351. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22352. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22353. - ac_header_preproc=yes
  22354. - ;;
  22355. - no:yes:* )
  22356. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22357. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22358. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22359. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22360. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22361. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22362. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22363. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22364. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22365. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22366. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22367. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22368. -
  22369. - ;;
  22370. -esac
  22371. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  22372. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22373. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22375. -else
  22376. - eval "$as_ac_Header=\$ac_header_preproc"
  22377. -fi
  22378. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22379. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22380. -echo "${ECHO_T}$ac_res" >&6; }
  22381. +if test -n "$ac_tool_prefix"; then
  22382. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22383. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22384. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22385. +$as_echo_n "checking for $ac_word... " >&6; }
  22386. +if test "${ac_cv_prog_AR+set}" = set; then :
  22387. + $as_echo_n "(cached) " >&6
  22388. +else
  22389. + if test -n "$AR"; then
  22390. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22391. +else
  22392. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22393. +for as_dir in $PATH
  22394. +do
  22395. + IFS=$as_save_IFS
  22396. + test -z "$as_dir" && as_dir=.
  22397. + for ac_exec_ext in '' $ac_executable_extensions; do
  22398. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22399. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22400. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22401. + break 2
  22402. + fi
  22403. +done
  22404. + done
  22405. +IFS=$as_save_IFS
  22406. fi
  22407. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22408. - cat >>confdefs.h <<_ACEOF
  22409. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22410. -_ACEOF
  22411. -
  22412. +fi
  22413. +AR=$ac_cv_prog_AR
  22414. +if test -n "$AR"; then
  22415. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22416. +$as_echo "$AR" >&6; }
  22417. +else
  22418. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22419. +$as_echo "no" >&6; }
  22420. fi
  22421. -done
  22422. -ac_ext=cpp
  22423. -ac_cpp='$CXXCPP $CPPFLAGS'
  22424. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22425. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22426. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22427. -if test -z "$CXX"; then
  22428. - if test -n "$CCC"; then
  22429. - CXX=$CCC
  22430. - else
  22431. - if test -n "$ac_tool_prefix"; then
  22432. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  22433. - do
  22434. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22435. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22436. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22437. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22438. -if test "${ac_cv_prog_CXX+set}" = set; then
  22439. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22440. +fi
  22441. +if test -z "$ac_cv_prog_AR"; then
  22442. + ac_ct_AR=$AR
  22443. + # Extract the first word of "ar", so it can be a program name with args.
  22444. +set dummy ar; ac_word=$2
  22445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22446. +$as_echo_n "checking for $ac_word... " >&6; }
  22447. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22448. + $as_echo_n "(cached) " >&6
  22449. else
  22450. - if test -n "$CXX"; then
  22451. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  22452. + if test -n "$ac_ct_AR"; then
  22453. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22454. else
  22455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22456. for as_dir in $PATH
  22457. do
  22458. IFS=$as_save_IFS
  22459. test -z "$as_dir" && as_dir=.
  22460. - for ac_exec_ext in '' $ac_executable_extensions; do
  22461. + for ac_exec_ext in '' $ac_executable_extensions; do
  22462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22463. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  22464. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22465. + ac_cv_prog_ac_ct_AR="ar"
  22466. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22467. break 2
  22468. fi
  22469. done
  22470. -done
  22471. + done
  22472. IFS=$as_save_IFS
  22473. fi
  22474. fi
  22475. -CXX=$ac_cv_prog_CXX
  22476. -if test -n "$CXX"; then
  22477. - { echo "$as_me:$LINENO: result: $CXX" >&5
  22478. -echo "${ECHO_T}$CXX" >&6; }
  22479. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22480. +if test -n "$ac_ct_AR"; then
  22481. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22482. +$as_echo "$ac_ct_AR" >&6; }
  22483. else
  22484. - { echo "$as_me:$LINENO: result: no" >&5
  22485. -echo "${ECHO_T}no" >&6; }
  22486. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22487. +$as_echo "no" >&6; }
  22488. fi
  22489. -
  22490. - test -n "$CXX" && break
  22491. - done
  22492. + if test "x$ac_ct_AR" = x; then
  22493. + AR="false"
  22494. + else
  22495. + case $cross_compiling:$ac_tool_warned in
  22496. +yes:)
  22497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22498. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22499. +ac_tool_warned=yes ;;
  22500. +esac
  22501. + AR=$ac_ct_AR
  22502. + fi
  22503. +else
  22504. + AR="$ac_cv_prog_AR"
  22505. fi
  22506. -if test -z "$CXX"; then
  22507. - ac_ct_CXX=$CXX
  22508. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  22509. -do
  22510. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22511. -set dummy $ac_prog; ac_word=$2
  22512. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22513. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22514. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  22515. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22516. +
  22517. +test -z "$AR" && AR=ar
  22518. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22519. +
  22520. +
  22521. +
  22522. +
  22523. +
  22524. +
  22525. +
  22526. +
  22527. +
  22528. +
  22529. +
  22530. +if test -n "$ac_tool_prefix"; then
  22531. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22532. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22533. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22534. +$as_echo_n "checking for $ac_word... " >&6; }
  22535. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22536. + $as_echo_n "(cached) " >&6
  22537. else
  22538. - if test -n "$ac_ct_CXX"; then
  22539. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  22540. + if test -n "$STRIP"; then
  22541. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22542. else
  22543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22544. for as_dir in $PATH
  22545. do
  22546. IFS=$as_save_IFS
  22547. test -z "$as_dir" && as_dir=.
  22548. - for ac_exec_ext in '' $ac_executable_extensions; do
  22549. + for ac_exec_ext in '' $ac_executable_extensions; do
  22550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22551. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  22552. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22553. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22554. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22555. break 2
  22556. fi
  22557. done
  22558. -done
  22559. + done
  22560. IFS=$as_save_IFS
  22561. fi
  22562. fi
  22563. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  22564. -if test -n "$ac_ct_CXX"; then
  22565. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  22566. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  22567. +STRIP=$ac_cv_prog_STRIP
  22568. +if test -n "$STRIP"; then
  22569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22570. +$as_echo "$STRIP" >&6; }
  22571. else
  22572. - { echo "$as_me:$LINENO: result: no" >&5
  22573. -echo "${ECHO_T}no" >&6; }
  22574. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22575. +$as_echo "no" >&6; }
  22576. fi
  22577. - test -n "$ac_ct_CXX" && break
  22578. +fi
  22579. +if test -z "$ac_cv_prog_STRIP"; then
  22580. + ac_ct_STRIP=$STRIP
  22581. + # Extract the first word of "strip", so it can be a program name with args.
  22582. +set dummy strip; ac_word=$2
  22583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22584. +$as_echo_n "checking for $ac_word... " >&6; }
  22585. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22586. + $as_echo_n "(cached) " >&6
  22587. +else
  22588. + if test -n "$ac_ct_STRIP"; then
  22589. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22590. +else
  22591. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22592. +for as_dir in $PATH
  22593. +do
  22594. + IFS=$as_save_IFS
  22595. + test -z "$as_dir" && as_dir=.
  22596. + for ac_exec_ext in '' $ac_executable_extensions; do
  22597. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22598. + ac_cv_prog_ac_ct_STRIP="strip"
  22599. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22600. + break 2
  22601. + fi
  22602. done
  22603. + done
  22604. +IFS=$as_save_IFS
  22605. - if test "x$ac_ct_CXX" = x; then
  22606. - CXX="g++"
  22607. +fi
  22608. +fi
  22609. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22610. +if test -n "$ac_ct_STRIP"; then
  22611. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  22612. +$as_echo "$ac_ct_STRIP" >&6; }
  22613. +else
  22614. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22615. +$as_echo "no" >&6; }
  22616. +fi
  22617. +
  22618. + if test "x$ac_ct_STRIP" = x; then
  22619. + STRIP=":"
  22620. else
  22621. case $cross_compiling:$ac_tool_warned in
  22622. yes:)
  22623. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22624. -whose name does not start with the host triplet. If you think this
  22625. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22626. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22627. -whose name does not start with the host triplet. If you think this
  22628. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22630. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22631. ac_tool_warned=yes ;;
  22632. esac
  22633. - CXX=$ac_ct_CXX
  22634. + STRIP=$ac_ct_STRIP
  22635. fi
  22636. +else
  22637. + STRIP="$ac_cv_prog_STRIP"
  22638. fi
  22639. - fi
  22640. -fi
  22641. -# Provide some information about the compiler.
  22642. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  22643. -ac_compiler=`set X $ac_compile; echo $2`
  22644. -{ (ac_try="$ac_compiler --version >&5"
  22645. -case "(($ac_try" in
  22646. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22647. - *) ac_try_echo=$ac_try;;
  22648. -esac
  22649. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22650. - (eval "$ac_compiler --version >&5") 2>&5
  22651. - ac_status=$?
  22652. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22653. - (exit $ac_status); }
  22654. -{ (ac_try="$ac_compiler -v >&5"
  22655. -case "(($ac_try" in
  22656. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22657. - *) ac_try_echo=$ac_try;;
  22658. -esac
  22659. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22660. - (eval "$ac_compiler -v >&5") 2>&5
  22661. - ac_status=$?
  22662. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22663. - (exit $ac_status); }
  22664. -{ (ac_try="$ac_compiler -V >&5"
  22665. -case "(($ac_try" in
  22666. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22667. - *) ac_try_echo=$ac_try;;
  22668. -esac
  22669. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22670. - (eval "$ac_compiler -V >&5") 2>&5
  22671. - ac_status=$?
  22672. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22673. - (exit $ac_status); }
  22674. +test -z "$STRIP" && STRIP=:
  22675. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  22676. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  22677. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  22678. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22679. -else
  22680. - cat >conftest.$ac_ext <<_ACEOF
  22681. -/* confdefs.h. */
  22682. -_ACEOF
  22683. -cat confdefs.h >>conftest.$ac_ext
  22684. -cat >>conftest.$ac_ext <<_ACEOF
  22685. -/* end confdefs.h. */
  22686. -int
  22687. -main ()
  22688. -{
  22689. -#ifndef __GNUC__
  22690. - choke me
  22691. -#endif
  22692. - ;
  22693. - return 0;
  22694. -}
  22695. -_ACEOF
  22696. -rm -f conftest.$ac_objext
  22697. -if { (ac_try="$ac_compile"
  22698. -case "(($ac_try" in
  22699. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22700. - *) ac_try_echo=$ac_try;;
  22701. -esac
  22702. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22703. - (eval "$ac_compile") 2>conftest.er1
  22704. - ac_status=$?
  22705. - grep -v '^ *+' conftest.er1 >conftest.err
  22706. - rm -f conftest.er1
  22707. - cat conftest.err >&5
  22708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22709. - (exit $ac_status); } && {
  22710. - test -z "$ac_cxx_werror_flag" ||
  22711. - test ! -s conftest.err
  22712. - } && test -s conftest.$ac_objext; then
  22713. - ac_compiler_gnu=yes
  22714. -else
  22715. - echo "$as_me: failed program was:" >&5
  22716. -sed 's/^/| /' conftest.$ac_ext >&5
  22717. - ac_compiler_gnu=no
  22718. -fi
  22719. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22720. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  22721. +
  22722. +if test -n "$ac_tool_prefix"; then
  22723. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22724. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22726. +$as_echo_n "checking for $ac_word... " >&6; }
  22727. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  22728. + $as_echo_n "(cached) " >&6
  22729. +else
  22730. + if test -n "$RANLIB"; then
  22731. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22732. +else
  22733. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22734. +for as_dir in $PATH
  22735. +do
  22736. + IFS=$as_save_IFS
  22737. + test -z "$as_dir" && as_dir=.
  22738. + for ac_exec_ext in '' $ac_executable_extensions; do
  22739. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22740. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22741. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22742. + break 2
  22743. + fi
  22744. +done
  22745. + done
  22746. +IFS=$as_save_IFS
  22747. fi
  22748. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  22749. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  22750. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  22751. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  22752. -ac_save_CXXFLAGS=$CXXFLAGS
  22753. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  22754. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  22755. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  22756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22757. +fi
  22758. +RANLIB=$ac_cv_prog_RANLIB
  22759. +if test -n "$RANLIB"; then
  22760. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  22761. +$as_echo "$RANLIB" >&6; }
  22762. else
  22763. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  22764. - ac_cxx_werror_flag=yes
  22765. - ac_cv_prog_cxx_g=no
  22766. - CXXFLAGS="-g"
  22767. - cat >conftest.$ac_ext <<_ACEOF
  22768. -/* confdefs.h. */
  22769. -_ACEOF
  22770. -cat confdefs.h >>conftest.$ac_ext
  22771. -cat >>conftest.$ac_ext <<_ACEOF
  22772. -/* end confdefs.h. */
  22773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22774. +$as_echo "no" >&6; }
  22775. +fi
  22776. -int
  22777. -main ()
  22778. -{
  22779. - ;
  22780. - return 0;
  22781. -}
  22782. -_ACEOF
  22783. -rm -f conftest.$ac_objext
  22784. -if { (ac_try="$ac_compile"
  22785. -case "(($ac_try" in
  22786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22787. - *) ac_try_echo=$ac_try;;
  22788. -esac
  22789. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22790. - (eval "$ac_compile") 2>conftest.er1
  22791. - ac_status=$?
  22792. - grep -v '^ *+' conftest.er1 >conftest.err
  22793. - rm -f conftest.er1
  22794. - cat conftest.err >&5
  22795. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22796. - (exit $ac_status); } && {
  22797. - test -z "$ac_cxx_werror_flag" ||
  22798. - test ! -s conftest.err
  22799. - } && test -s conftest.$ac_objext; then
  22800. - ac_cv_prog_cxx_g=yes
  22801. +fi
  22802. +if test -z "$ac_cv_prog_RANLIB"; then
  22803. + ac_ct_RANLIB=$RANLIB
  22804. + # Extract the first word of "ranlib", so it can be a program name with args.
  22805. +set dummy ranlib; ac_word=$2
  22806. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22807. +$as_echo_n "checking for $ac_word... " >&6; }
  22808. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  22809. + $as_echo_n "(cached) " >&6
  22810. else
  22811. - echo "$as_me: failed program was:" >&5
  22812. -sed 's/^/| /' conftest.$ac_ext >&5
  22813. + if test -n "$ac_ct_RANLIB"; then
  22814. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22815. +else
  22816. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22817. +for as_dir in $PATH
  22818. +do
  22819. + IFS=$as_save_IFS
  22820. + test -z "$as_dir" && as_dir=.
  22821. + for ac_exec_ext in '' $ac_executable_extensions; do
  22822. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22823. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  22824. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22825. + break 2
  22826. + fi
  22827. +done
  22828. + done
  22829. +IFS=$as_save_IFS
  22830. - CXXFLAGS=""
  22831. - cat >conftest.$ac_ext <<_ACEOF
  22832. -/* confdefs.h. */
  22833. -_ACEOF
  22834. -cat confdefs.h >>conftest.$ac_ext
  22835. -cat >>conftest.$ac_ext <<_ACEOF
  22836. -/* end confdefs.h. */
  22837. +fi
  22838. +fi
  22839. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22840. +if test -n "$ac_ct_RANLIB"; then
  22841. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  22842. +$as_echo "$ac_ct_RANLIB" >&6; }
  22843. +else
  22844. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22845. +$as_echo "no" >&6; }
  22846. +fi
  22847. -int
  22848. -main ()
  22849. -{
  22850. -
  22851. - ;
  22852. - return 0;
  22853. -}
  22854. -_ACEOF
  22855. -rm -f conftest.$ac_objext
  22856. -if { (ac_try="$ac_compile"
  22857. -case "(($ac_try" in
  22858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22859. - *) ac_try_echo=$ac_try;;
  22860. + if test "x$ac_ct_RANLIB" = x; then
  22861. + RANLIB=":"
  22862. + else
  22863. + case $cross_compiling:$ac_tool_warned in
  22864. +yes:)
  22865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22866. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22867. +ac_tool_warned=yes ;;
  22868. esac
  22869. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22870. - (eval "$ac_compile") 2>conftest.er1
  22871. - ac_status=$?
  22872. - grep -v '^ *+' conftest.er1 >conftest.err
  22873. - rm -f conftest.er1
  22874. - cat conftest.err >&5
  22875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22876. - (exit $ac_status); } && {
  22877. - test -z "$ac_cxx_werror_flag" ||
  22878. - test ! -s conftest.err
  22879. - } && test -s conftest.$ac_objext; then
  22880. - :
  22881. + RANLIB=$ac_ct_RANLIB
  22882. + fi
  22883. else
  22884. - echo "$as_me: failed program was:" >&5
  22885. -sed 's/^/| /' conftest.$ac_ext >&5
  22886. + RANLIB="$ac_cv_prog_RANLIB"
  22887. +fi
  22888. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  22889. - CXXFLAGS="-g"
  22890. - cat >conftest.$ac_ext <<_ACEOF
  22891. -/* confdefs.h. */
  22892. -_ACEOF
  22893. -cat confdefs.h >>conftest.$ac_ext
  22894. -cat >>conftest.$ac_ext <<_ACEOF
  22895. -/* end confdefs.h. */
  22896. +test -z "$RANLIB" && RANLIB=:
  22897. -int
  22898. -main ()
  22899. -{
  22900. - ;
  22901. - return 0;
  22902. -}
  22903. -_ACEOF
  22904. -rm -f conftest.$ac_objext
  22905. -if { (ac_try="$ac_compile"
  22906. -case "(($ac_try" in
  22907. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22908. - *) ac_try_echo=$ac_try;;
  22909. -esac
  22910. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22911. - (eval "$ac_compile") 2>conftest.er1
  22912. - ac_status=$?
  22913. - grep -v '^ *+' conftest.er1 >conftest.err
  22914. - rm -f conftest.er1
  22915. - cat conftest.err >&5
  22916. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22917. - (exit $ac_status); } && {
  22918. - test -z "$ac_cxx_werror_flag" ||
  22919. - test ! -s conftest.err
  22920. - } && test -s conftest.$ac_objext; then
  22921. - ac_cv_prog_cxx_g=yes
  22922. -else
  22923. - echo "$as_me: failed program was:" >&5
  22924. -sed 's/^/| /' conftest.$ac_ext >&5
  22925. -fi
  22926. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22927. -fi
  22928. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22929. -fi
  22930. +# Determine commands to create old-style static archives.
  22931. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22932. +old_postinstall_cmds='chmod 644 $oldlib'
  22933. +old_postuninstall_cmds=
  22934. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22935. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  22936. -fi
  22937. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  22938. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  22939. -if test "$ac_test_CXXFLAGS" = set; then
  22940. - CXXFLAGS=$ac_save_CXXFLAGS
  22941. -elif test $ac_cv_prog_cxx_g = yes; then
  22942. - if test "$GXX" = yes; then
  22943. - CXXFLAGS="-g -O2"
  22944. - else
  22945. - CXXFLAGS="-g"
  22946. - fi
  22947. -else
  22948. - if test "$GXX" = yes; then
  22949. - CXXFLAGS="-O2"
  22950. - else
  22951. - CXXFLAGS=
  22952. - fi
  22953. +if test -n "$RANLIB"; then
  22954. + case $host_os in
  22955. + openbsd*)
  22956. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22957. + ;;
  22958. + *)
  22959. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22960. + ;;
  22961. + esac
  22962. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22963. fi
  22964. -ac_ext=cpp
  22965. -ac_cpp='$CXXCPP $CPPFLAGS'
  22966. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22967. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22968. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22969. -depcc="$CXX" am_compiler_list=
  22970. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  22971. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  22972. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  22973. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22974. -else
  22975. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  22976. - # We make a subdir and do the tests there. Otherwise we can end up
  22977. - # making bogus files that we don't know about and never remove. For
  22978. - # instance it was reported that on HP-UX the gcc test will end up
  22979. - # making a dummy file named `D' -- because `-MD' means `put the output
  22980. - # in D'.
  22981. - mkdir conftest.dir
  22982. - # Copy depcomp to subdir because otherwise we won't find it if we're
  22983. - # using a relative directory.
  22984. - cp "$am_depcomp" conftest.dir
  22985. - cd conftest.dir
  22986. - # We will build objects and dependencies in a subdirectory because
  22987. - # it helps to detect inapplicable dependency modes. For instance
  22988. - # both Tru64's cc and ICC support -MD to output dependencies as a
  22989. - # side effect of compilation, but ICC will put the dependencies in
  22990. - # the current directory while Tru64 will put them in the object
  22991. - # directory.
  22992. - mkdir sub
  22993. - am_cv_CXX_dependencies_compiler_type=none
  22994. - if test "$am_compiler_list" = ""; then
  22995. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  22996. - fi
  22997. - for depmode in $am_compiler_list; do
  22998. - # Setup a source with many dependencies, because some compilers
  22999. - # like to wrap large dependency lists on column 80 (with \), and
  23000. - # we should not choose a depcomp mode which is confused by this.
  23001. - #
  23002. - # We need to recreate these files for each test, as the compiler may
  23003. - # overwrite some of them when testing with obscure command lines.
  23004. - # This happens at least with the AIX C compiler.
  23005. - : > sub/conftest.c
  23006. - for i in 1 2 3 4 5 6; do
  23007. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  23008. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  23009. - # Solaris 8's {/usr,}/bin/sh.
  23010. - touch sub/conftst$i.h
  23011. - done
  23012. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  23013. - case $depmode in
  23014. - nosideeffect)
  23015. - # after this tag, mechanisms are not by side-effect, so they'll
  23016. - # only be used when explicitly requested
  23017. - if test "x$enable_dependency_tracking" = xyes; then
  23018. - continue
  23019. - else
  23020. - break
  23021. - fi
  23022. - ;;
  23023. - none) break ;;
  23024. - esac
  23025. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  23026. - # mode. It turns out that the SunPro C++ compiler does not properly
  23027. - # handle `-M -o', and we need to detect this.
  23028. - if depmode=$depmode \
  23029. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  23030. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  23031. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  23032. - >/dev/null 2>conftest.err &&
  23033. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  23034. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  23035. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  23036. - # icc doesn't choke on unknown options, it will just issue warnings
  23037. - # or remarks (even with -Werror). So we grep stderr for any message
  23038. - # that says an option was ignored or not supported.
  23039. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  23040. - # icc: Command line warning: ignoring option '-M'; no argument required
  23041. - # The diagnosis changed in icc 8.0:
  23042. - # icc: Command line remark: option '-MP' not supported
  23043. - if (grep 'ignoring option' conftest.err ||
  23044. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  23045. - am_cv_CXX_dependencies_compiler_type=$depmode
  23046. - break
  23047. - fi
  23048. - fi
  23049. - done
  23050. - cd ..
  23051. - rm -rf conftest.dir
  23052. -else
  23053. - am_cv_CXX_dependencies_compiler_type=none
  23054. -fi
  23055. -fi
  23056. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  23057. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  23058. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  23059. -if
  23060. - test "x$enable_dependency_tracking" != xno \
  23061. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  23062. - am__fastdepCXX_TRUE=
  23063. - am__fastdepCXX_FALSE='#'
  23064. -else
  23065. - am__fastdepCXX_TRUE='#'
  23066. - am__fastdepCXX_FALSE=
  23067. -fi
  23068. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  23069. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  23070. - (test "X$CXX" != "Xg++"))) ; then
  23071. - ac_ext=cpp
  23072. -ac_cpp='$CXXCPP $CPPFLAGS'
  23073. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23074. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23075. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23076. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  23077. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  23078. -if test -z "$CXXCPP"; then
  23079. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  23080. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23081. -else
  23082. - # Double quotes because CXXCPP needs to be expanded
  23083. - for CXXCPP in "$CXX -E" "/lib/cpp"
  23084. - do
  23085. - ac_preproc_ok=false
  23086. -for ac_cxx_preproc_warn_flag in '' yes
  23087. -do
  23088. - # Use a header file that comes with gcc, so configuring glibc
  23089. - # with a fresh cross-compiler works.
  23090. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23091. - # <limits.h> exists even on freestanding compilers.
  23092. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23093. - # not just through cpp. "Syntax error" is here to catch this case.
  23094. - cat >conftest.$ac_ext <<_ACEOF
  23095. -/* confdefs.h. */
  23096. -_ACEOF
  23097. -cat confdefs.h >>conftest.$ac_ext
  23098. -cat >>conftest.$ac_ext <<_ACEOF
  23099. -/* end confdefs.h. */
  23100. -#ifdef __STDC__
  23101. -# include <limits.h>
  23102. -#else
  23103. -# include <assert.h>
  23104. -#endif
  23105. - Syntax error
  23106. -_ACEOF
  23107. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23108. -case "(($ac_try" in
  23109. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23110. - *) ac_try_echo=$ac_try;;
  23111. -esac
  23112. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23113. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23114. - ac_status=$?
  23115. - grep -v '^ *+' conftest.er1 >conftest.err
  23116. - rm -f conftest.er1
  23117. - cat conftest.err >&5
  23118. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23119. - (exit $ac_status); } >/dev/null && {
  23120. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23121. - test ! -s conftest.err
  23122. - }; then
  23123. - :
  23124. -else
  23125. - echo "$as_me: failed program was:" >&5
  23126. -sed 's/^/| /' conftest.$ac_ext >&5
  23127. - # Broken: fails on valid input.
  23128. -continue
  23129. -fi
  23130. -rm -f conftest.err conftest.$ac_ext
  23131. - # OK, works on sane cases. Now check whether nonexistent headers
  23132. - # can be detected and how.
  23133. - cat >conftest.$ac_ext <<_ACEOF
  23134. -/* confdefs.h. */
  23135. -_ACEOF
  23136. -cat confdefs.h >>conftest.$ac_ext
  23137. -cat >>conftest.$ac_ext <<_ACEOF
  23138. -/* end confdefs.h. */
  23139. -#include <ac_nonexistent.h>
  23140. -_ACEOF
  23141. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23142. -case "(($ac_try" in
  23143. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23144. - *) ac_try_echo=$ac_try;;
  23145. -esac
  23146. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23147. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23148. - ac_status=$?
  23149. - grep -v '^ *+' conftest.er1 >conftest.err
  23150. - rm -f conftest.er1
  23151. - cat conftest.err >&5
  23152. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23153. - (exit $ac_status); } >/dev/null && {
  23154. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23155. - test ! -s conftest.err
  23156. - }; then
  23157. - # Broken: success on invalid input.
  23158. -continue
  23159. -else
  23160. - echo "$as_me: failed program was:" >&5
  23161. -sed 's/^/| /' conftest.$ac_ext >&5
  23162. - # Passes both tests.
  23163. -ac_preproc_ok=:
  23164. -break
  23165. -fi
  23166. -rm -f conftest.err conftest.$ac_ext
  23167. -done
  23168. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23169. -rm -f conftest.err conftest.$ac_ext
  23170. -if $ac_preproc_ok; then
  23171. - break
  23172. -fi
  23173. - done
  23174. - ac_cv_prog_CXXCPP=$CXXCPP
  23175. -fi
  23176. - CXXCPP=$ac_cv_prog_CXXCPP
  23177. -else
  23178. - ac_cv_prog_CXXCPP=$CXXCPP
  23179. -fi
  23180. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  23181. -echo "${ECHO_T}$CXXCPP" >&6; }
  23182. -ac_preproc_ok=false
  23183. -for ac_cxx_preproc_warn_flag in '' yes
  23184. -do
  23185. - # Use a header file that comes with gcc, so configuring glibc
  23186. - # with a fresh cross-compiler works.
  23187. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23188. - # <limits.h> exists even on freestanding compilers.
  23189. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23190. - # not just through cpp. "Syntax error" is here to catch this case.
  23191. - cat >conftest.$ac_ext <<_ACEOF
  23192. -/* confdefs.h. */
  23193. -_ACEOF
  23194. -cat confdefs.h >>conftest.$ac_ext
  23195. -cat >>conftest.$ac_ext <<_ACEOF
  23196. -/* end confdefs.h. */
  23197. -#ifdef __STDC__
  23198. -# include <limits.h>
  23199. -#else
  23200. -# include <assert.h>
  23201. -#endif
  23202. - Syntax error
  23203. -_ACEOF
  23204. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23205. -case "(($ac_try" in
  23206. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23207. - *) ac_try_echo=$ac_try;;
  23208. -esac
  23209. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23210. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23211. - ac_status=$?
  23212. - grep -v '^ *+' conftest.er1 >conftest.err
  23213. - rm -f conftest.er1
  23214. - cat conftest.err >&5
  23215. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23216. - (exit $ac_status); } >/dev/null && {
  23217. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23218. - test ! -s conftest.err
  23219. - }; then
  23220. - :
  23221. -else
  23222. - echo "$as_me: failed program was:" >&5
  23223. -sed 's/^/| /' conftest.$ac_ext >&5
  23224. - # Broken: fails on valid input.
  23225. -continue
  23226. -fi
  23227. -rm -f conftest.err conftest.$ac_ext
  23228. - # OK, works on sane cases. Now check whether nonexistent headers
  23229. - # can be detected and how.
  23230. - cat >conftest.$ac_ext <<_ACEOF
  23231. -/* confdefs.h. */
  23232. -_ACEOF
  23233. -cat confdefs.h >>conftest.$ac_ext
  23234. -cat >>conftest.$ac_ext <<_ACEOF
  23235. -/* end confdefs.h. */
  23236. -#include <ac_nonexistent.h>
  23237. -_ACEOF
  23238. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23239. -case "(($ac_try" in
  23240. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23241. - *) ac_try_echo=$ac_try;;
  23242. -esac
  23243. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23244. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23245. - ac_status=$?
  23246. - grep -v '^ *+' conftest.er1 >conftest.err
  23247. - rm -f conftest.er1
  23248. - cat conftest.err >&5
  23249. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23250. - (exit $ac_status); } >/dev/null && {
  23251. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23252. - test ! -s conftest.err
  23253. - }; then
  23254. - # Broken: success on invalid input.
  23255. -continue
  23256. -else
  23257. - echo "$as_me: failed program was:" >&5
  23258. -sed 's/^/| /' conftest.$ac_ext >&5
  23259. - # Passes both tests.
  23260. -ac_preproc_ok=:
  23261. -break
  23262. -fi
  23263. -rm -f conftest.err conftest.$ac_ext
  23264. -done
  23265. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23266. -rm -f conftest.err conftest.$ac_ext
  23267. -if $ac_preproc_ok; then
  23268. - :
  23269. -else
  23270. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23271. -See \`config.log' for more details." >&5
  23272. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23273. -See \`config.log' for more details." >&2;}
  23274. - { (exit 1); exit 1; }; }
  23275. -fi
  23276. -ac_ext=cpp
  23277. -ac_cpp='$CXXCPP $CPPFLAGS'
  23278. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23279. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23280. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23281. -fi
  23282. -ac_ext=f
  23283. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  23284. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23285. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  23286. -if test -n "$ac_tool_prefix"; then
  23287. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  23288. - do
  23289. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23290. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23291. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23292. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23293. -if test "${ac_cv_prog_F77+set}" = set; then
  23294. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23295. -else
  23296. - if test -n "$F77"; then
  23297. - ac_cv_prog_F77="$F77" # Let the user override the test.
  23298. -else
  23299. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23300. -for as_dir in $PATH
  23301. -do
  23302. - IFS=$as_save_IFS
  23303. - test -z "$as_dir" && as_dir=.
  23304. - for ac_exec_ext in '' $ac_executable_extensions; do
  23305. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23306. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  23307. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23308. - break 2
  23309. - fi
  23310. -done
  23311. -done
  23312. -IFS=$as_save_IFS
  23313. -fi
  23314. -fi
  23315. -F77=$ac_cv_prog_F77
  23316. -if test -n "$F77"; then
  23317. - { echo "$as_me:$LINENO: result: $F77" >&5
  23318. -echo "${ECHO_T}$F77" >&6; }
  23319. -else
  23320. - { echo "$as_me:$LINENO: result: no" >&5
  23321. -echo "${ECHO_T}no" >&6; }
  23322. -fi
  23323. - test -n "$F77" && break
  23324. - done
  23325. -fi
  23326. -if test -z "$F77"; then
  23327. - ac_ct_F77=$F77
  23328. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  23329. -do
  23330. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23331. -set dummy $ac_prog; ac_word=$2
  23332. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23333. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23334. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  23335. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23336. -else
  23337. - if test -n "$ac_ct_F77"; then
  23338. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  23339. -else
  23340. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23341. -for as_dir in $PATH
  23342. -do
  23343. - IFS=$as_save_IFS
  23344. - test -z "$as_dir" && as_dir=.
  23345. - for ac_exec_ext in '' $ac_executable_extensions; do
  23346. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23347. - ac_cv_prog_ac_ct_F77="$ac_prog"
  23348. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23349. - break 2
  23350. - fi
  23351. -done
  23352. -done
  23353. -IFS=$as_save_IFS
  23354. +# If no C compiler was specified, use CC.
  23355. +LTCC=${LTCC-"$CC"}
  23356. -fi
  23357. -fi
  23358. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  23359. -if test -n "$ac_ct_F77"; then
  23360. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  23361. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  23362. -else
  23363. - { echo "$as_me:$LINENO: result: no" >&5
  23364. -echo "${ECHO_T}no" >&6; }
  23365. -fi
  23366. +# If no C compiler flags were specified, use CFLAGS.
  23367. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23368. +# Allow CC to be a program name with arguments.
  23369. +compiler=$CC
  23370. - test -n "$ac_ct_F77" && break
  23371. -done
  23372. - if test "x$ac_ct_F77" = x; then
  23373. - F77=""
  23374. - else
  23375. - case $cross_compiling:$ac_tool_warned in
  23376. -yes:)
  23377. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23378. -whose name does not start with the host triplet. If you think this
  23379. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23380. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23381. -whose name does not start with the host triplet. If you think this
  23382. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23383. -ac_tool_warned=yes ;;
  23384. -esac
  23385. - F77=$ac_ct_F77
  23386. - fi
  23387. -fi
  23388. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23390. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23391. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23392. + $as_echo_n "(cached) " >&6
  23393. +else
  23394. +# These are sane defaults that work on at least a few old systems.
  23395. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23396. -# Provide some information about the compiler.
  23397. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  23398. -ac_compiler=`set X $ac_compile; echo $2`
  23399. -{ (ac_try="$ac_compiler --version >&5"
  23400. -case "(($ac_try" in
  23401. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23402. - *) ac_try_echo=$ac_try;;
  23403. -esac
  23404. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23405. - (eval "$ac_compiler --version >&5") 2>&5
  23406. - ac_status=$?
  23407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23408. - (exit $ac_status); }
  23409. -{ (ac_try="$ac_compiler -v >&5"
  23410. -case "(($ac_try" in
  23411. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23412. - *) ac_try_echo=$ac_try;;
  23413. -esac
  23414. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23415. - (eval "$ac_compiler -v >&5") 2>&5
  23416. - ac_status=$?
  23417. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23418. - (exit $ac_status); }
  23419. -{ (ac_try="$ac_compiler -V >&5"
  23420. -case "(($ac_try" in
  23421. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23422. - *) ac_try_echo=$ac_try;;
  23423. -esac
  23424. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23425. - (eval "$ac_compiler -V >&5") 2>&5
  23426. - ac_status=$?
  23427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23428. - (exit $ac_status); }
  23429. -rm -f a.out
  23430. -
  23431. -# If we don't use `.F' as extension, the preprocessor is not run on the
  23432. -# input file. (Note that this only needs to work for GNU compilers.)
  23433. -ac_save_ext=$ac_ext
  23434. -ac_ext=F
  23435. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  23436. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  23437. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  23438. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23439. -else
  23440. - cat >conftest.$ac_ext <<_ACEOF
  23441. - program main
  23442. -#ifndef __GNUC__
  23443. - choke me
  23444. -#endif
  23445. +# Character class describing NM global symbol codes.
  23446. +symcode='[BCDEGRST]'
  23447. - end
  23448. -_ACEOF
  23449. -rm -f conftest.$ac_objext
  23450. -if { (ac_try="$ac_compile"
  23451. -case "(($ac_try" in
  23452. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23453. - *) ac_try_echo=$ac_try;;
  23454. +# Regexp to match symbols that can be accessed directly from C.
  23455. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23456. +
  23457. +# Define system-specific variables.
  23458. +case $host_os in
  23459. +aix*)
  23460. + symcode='[BCDT]'
  23461. + ;;
  23462. +cygwin* | mingw* | pw32* | cegcc*)
  23463. + symcode='[ABCDGISTW]'
  23464. + ;;
  23465. +hpux*)
  23466. + if test "$host_cpu" = ia64; then
  23467. + symcode='[ABCDEGRST]'
  23468. + fi
  23469. + ;;
  23470. +irix* | nonstopux*)
  23471. + symcode='[BCDEGRST]'
  23472. + ;;
  23473. +osf*)
  23474. + symcode='[BCDEGQRST]'
  23475. + ;;
  23476. +solaris*)
  23477. + symcode='[BDRT]'
  23478. + ;;
  23479. +sco3.2v5*)
  23480. + symcode='[DT]'
  23481. + ;;
  23482. +sysv4.2uw2*)
  23483. + symcode='[DT]'
  23484. + ;;
  23485. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23486. + symcode='[ABDT]'
  23487. + ;;
  23488. +sysv4)
  23489. + symcode='[DFNSTU]'
  23490. + ;;
  23491. esac
  23492. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23493. - (eval "$ac_compile") 2>conftest.er1
  23494. - ac_status=$?
  23495. - grep -v '^ *+' conftest.er1 >conftest.err
  23496. - rm -f conftest.er1
  23497. - cat conftest.err >&5
  23498. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23499. - (exit $ac_status); } && {
  23500. - test -z "$ac_f77_werror_flag" ||
  23501. - test ! -s conftest.err
  23502. - } && test -s conftest.$ac_objext; then
  23503. - ac_compiler_gnu=yes
  23504. -else
  23505. - echo "$as_me: failed program was:" >&5
  23506. -sed 's/^/| /' conftest.$ac_ext >&5
  23507. - ac_compiler_gnu=no
  23508. -fi
  23509. +# If we're using GNU nm, then use its standard symbol codes.
  23510. +case `$NM -V 2>&1` in
  23511. +*GNU* | *'with BFD'*)
  23512. + symcode='[ABCDGIRSTW]' ;;
  23513. +esac
  23514. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23515. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  23516. +# Transform an extracted symbol line into a proper C declaration.
  23517. +# Some systems (esp. on ia64) link data and code symbols differently,
  23518. +# so use this general approach.
  23519. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23520. -fi
  23521. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  23522. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  23523. -ac_ext=$ac_save_ext
  23524. -ac_test_FFLAGS=${FFLAGS+set}
  23525. -ac_save_FFLAGS=$FFLAGS
  23526. -FFLAGS=
  23527. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  23528. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  23529. -if test "${ac_cv_prog_f77_g+set}" = set; then
  23530. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23531. -else
  23532. - FFLAGS=-g
  23533. -cat >conftest.$ac_ext <<_ACEOF
  23534. - program main
  23535. +# Transform an extracted symbol line into symbol name and symbol address
  23536. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23537. +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'"
  23538. - end
  23539. -_ACEOF
  23540. -rm -f conftest.$ac_objext
  23541. -if { (ac_try="$ac_compile"
  23542. -case "(($ac_try" in
  23543. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23544. - *) ac_try_echo=$ac_try;;
  23545. +# Handle CRLF in mingw tool chain
  23546. +opt_cr=
  23547. +case $build_os in
  23548. +mingw*)
  23549. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23550. + ;;
  23551. esac
  23552. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23553. - (eval "$ac_compile") 2>conftest.er1
  23554. - ac_status=$?
  23555. - grep -v '^ *+' conftest.er1 >conftest.err
  23556. - rm -f conftest.er1
  23557. - cat conftest.err >&5
  23558. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23559. - (exit $ac_status); } && {
  23560. - test -z "$ac_f77_werror_flag" ||
  23561. - test ! -s conftest.err
  23562. - } && test -s conftest.$ac_objext; then
  23563. - ac_cv_prog_f77_g=yes
  23564. -else
  23565. - echo "$as_me: failed program was:" >&5
  23566. -sed 's/^/| /' conftest.$ac_ext >&5
  23567. - ac_cv_prog_f77_g=no
  23568. -fi
  23569. +# Try without a prefix underscore, then with it.
  23570. +for ac_symprfx in "" "_"; do
  23571. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23572. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23573. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  23574. -fi
  23575. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  23576. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  23577. -if test "$ac_test_FFLAGS" = set; then
  23578. - FFLAGS=$ac_save_FFLAGS
  23579. -elif test $ac_cv_prog_f77_g = yes; then
  23580. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23581. - FFLAGS="-g -O2"
  23582. - else
  23583. - FFLAGS="-g"
  23584. - fi
  23585. -else
  23586. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23587. - FFLAGS="-O2"
  23588. + # Write the raw and C identifiers.
  23589. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23590. + # Fake it for dumpbin and say T for any non-static function
  23591. + # and D for any global variable.
  23592. + # Also find C++ and __fastcall symbols from MSVC++,
  23593. + # which start with @ or ?.
  23594. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23595. +" {last_section=section; section=\$ 3};"\
  23596. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23597. +" \$ 0!~/External *\|/{next};"\
  23598. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23599. +" {if(hide[section]) next};"\
  23600. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23601. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23602. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23603. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23604. +" ' prfx=^$ac_symprfx"
  23605. else
  23606. - FFLAGS=
  23607. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23608. fi
  23609. -fi
  23610. -
  23611. -G77=`test $ac_compiler_gnu = yes && echo yes`
  23612. -ac_ext=c
  23613. -ac_cpp='$CPP $CPPFLAGS'
  23614. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23615. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23616. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23617. -
  23618. + # Check to see that the pipe works correctly.
  23619. + pipe_works=no
  23620. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  23621. -
  23622. -# find the maximum length of command line arguments
  23623. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  23624. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  23625. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  23626. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23627. -else
  23628. - i=0
  23629. - teststring="ABCD"
  23630. + rm -f conftest*
  23631. + cat > conftest.$ac_ext <<_LT_EOF
  23632. +#ifdef __cplusplus
  23633. +extern "C" {
  23634. +#endif
  23635. +char nm_test_var;
  23636. +void nm_test_func(void);
  23637. +void nm_test_func(void){}
  23638. +#ifdef __cplusplus
  23639. +}
  23640. +#endif
  23641. +int main(){nm_test_var='a';nm_test_func();return(0);}
  23642. +_LT_EOF
  23643. - case $build_os in
  23644. - msdosdjgpp*)
  23645. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  23646. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  23647. - # during glob expansion). Even if it were fixed, the result of this
  23648. - # check would be larger than it should be.
  23649. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23650. - ;;
  23651. -
  23652. - gnu*)
  23653. - # Under GNU Hurd, this test is not required because there is
  23654. - # no limit to the length of command line arguments.
  23655. - # Libtool will interpret -1 as no limit whatsoever
  23656. - lt_cv_sys_max_cmd_len=-1;
  23657. - ;;
  23658. -
  23659. - cygwin* | mingw*)
  23660. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  23661. - # about 5 minutes as the teststring grows exponentially.
  23662. - # Worse, since 9x/ME are not pre-emptively multitasking,
  23663. - # you end up with a "frozen" computer, even though with patience
  23664. - # the test eventually succeeds (with a max line length of 256k).
  23665. - # Instead, let's just punt: use the minimum linelength reported by
  23666. - # all of the supported platforms: 8192 (on NT/2K/XP).
  23667. - lt_cv_sys_max_cmd_len=8192;
  23668. - ;;
  23669. -
  23670. - amigaos*)
  23671. - # On AmigaOS with pdksh, this test takes hours, literally.
  23672. - # So we just punt and use a minimum line length of 8192.
  23673. - lt_cv_sys_max_cmd_len=8192;
  23674. - ;;
  23675. -
  23676. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23677. - # This has been around since 386BSD, at least. Likely further.
  23678. - if test -x /sbin/sysctl; then
  23679. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23680. - elif test -x /usr/sbin/sysctl; then
  23681. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23682. - else
  23683. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  23684. - fi
  23685. - # And add a safety zone
  23686. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23687. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23688. - ;;
  23689. -
  23690. - interix*)
  23691. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  23692. - lt_cv_sys_max_cmd_len=196608
  23693. - ;;
  23694. -
  23695. - osf*)
  23696. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23697. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23698. - # nice to cause kernel panics so lets avoid the loop below.
  23699. - # First set a reasonable default.
  23700. - lt_cv_sys_max_cmd_len=16384
  23701. - #
  23702. - if test -x /sbin/sysconfig; then
  23703. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23704. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23705. - esac
  23706. - fi
  23707. - ;;
  23708. - sco3.2v5*)
  23709. - lt_cv_sys_max_cmd_len=102400
  23710. - ;;
  23711. - sysv5* | sco5v6* | sysv4.2uw2*)
  23712. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  23713. - if test -n "$kargmax"; then
  23714. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  23715. - else
  23716. - lt_cv_sys_max_cmd_len=32768
  23717. - fi
  23718. - ;;
  23719. - *)
  23720. - # If test is not a shell built-in, we'll probably end up computing a
  23721. - # maximum length that is only half of the actual maximum length, but
  23722. - # we can't tell.
  23723. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  23724. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  23725. - = "XX$teststring") >/dev/null 2>&1 &&
  23726. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  23727. - lt_cv_sys_max_cmd_len=$new_result &&
  23728. - test $i != 17 # 1/2 MB should be enough
  23729. - do
  23730. - i=`expr $i + 1`
  23731. - teststring=$teststring$teststring
  23732. - done
  23733. - teststring=
  23734. - # Add a significant safety factor because C++ compilers can tack on massive
  23735. - # amounts of additional arguments before passing them to the linker.
  23736. - # It appears as though 1/2 is a usable value.
  23737. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23738. - ;;
  23739. - esac
  23740. -
  23741. -fi
  23742. -
  23743. -if test -n $lt_cv_sys_max_cmd_len ; then
  23744. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  23745. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  23746. -else
  23747. - { echo "$as_me:$LINENO: result: none" >&5
  23748. -echo "${ECHO_T}none" >&6; }
  23749. -fi
  23750. -
  23751. -
  23752. -
  23753. -
  23754. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  23755. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  23756. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  23757. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  23758. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23759. -else
  23760. -
  23761. -# These are sane defaults that work on at least a few old systems.
  23762. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23763. -
  23764. -# Character class describing NM global symbol codes.
  23765. -symcode='[BCDEGRST]'
  23766. -
  23767. -# Regexp to match symbols that can be accessed directly from C.
  23768. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23769. -
  23770. -# Transform an extracted symbol line into a proper C declaration
  23771. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  23772. -
  23773. -# Transform an extracted symbol line into symbol name and symbol address
  23774. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  23775. -
  23776. -# Define system-specific variables.
  23777. -case $host_os in
  23778. -aix*)
  23779. - symcode='[BCDT]'
  23780. - ;;
  23781. -cygwin* | mingw* | pw32*)
  23782. - symcode='[ABCDGISTW]'
  23783. - ;;
  23784. -hpux*) # Its linker distinguishes data from code symbols
  23785. - if test "$host_cpu" = ia64; then
  23786. - symcode='[ABCDEGRST]'
  23787. - fi
  23788. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23789. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  23790. - ;;
  23791. -linux* | k*bsd*-gnu)
  23792. - if test "$host_cpu" = ia64; then
  23793. - symcode='[ABCDGIRSTW]'
  23794. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23795. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  23796. - fi
  23797. - ;;
  23798. -irix* | nonstopux*)
  23799. - symcode='[BCDEGRST]'
  23800. - ;;
  23801. -osf*)
  23802. - symcode='[BCDEGQRST]'
  23803. - ;;
  23804. -solaris*)
  23805. - symcode='[BDRT]'
  23806. - ;;
  23807. -sco3.2v5*)
  23808. - symcode='[DT]'
  23809. - ;;
  23810. -sysv4.2uw2*)
  23811. - symcode='[DT]'
  23812. - ;;
  23813. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23814. - symcode='[ABDT]'
  23815. - ;;
  23816. -sysv4)
  23817. - symcode='[DFNSTU]'
  23818. - ;;
  23819. -esac
  23820. -
  23821. -# Handle CRLF in mingw tool chain
  23822. -opt_cr=
  23823. -case $build_os in
  23824. -mingw*)
  23825. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23826. - ;;
  23827. -esac
  23828. -
  23829. -# If we're using GNU nm, then use its standard symbol codes.
  23830. -case `$NM -V 2>&1` in
  23831. -*GNU* | *'with BFD'*)
  23832. - symcode='[ABCDGIRSTW]' ;;
  23833. -esac
  23834. -
  23835. -# Try without a prefix undercore, then with it.
  23836. -for ac_symprfx in "" "_"; do
  23837. -
  23838. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23839. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  23840. -
  23841. - # Write the raw and C identifiers.
  23842. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23843. -
  23844. - # Check to see that the pipe works correctly.
  23845. - pipe_works=no
  23846. -
  23847. - rm -f conftest*
  23848. - cat > conftest.$ac_ext <<EOF
  23849. -#ifdef __cplusplus
  23850. -extern "C" {
  23851. -#endif
  23852. -char nm_test_var;
  23853. -void nm_test_func(){}
  23854. -#ifdef __cplusplus
  23855. -}
  23856. -#endif
  23857. -int main(){nm_test_var='a';nm_test_func();return(0);}
  23858. -EOF
  23859. -
  23860. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23861. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23862. (eval $ac_compile) 2>&5
  23863. ac_status=$?
  23864. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23865. - (exit $ac_status); }; then
  23866. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23867. + test $ac_status = 0; }; then
  23868. # Now try to grab the symbols.
  23869. nlist=conftest.nm
  23870. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  23871. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23872. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23873. ac_status=$?
  23874. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23875. - (exit $ac_status); } && test -s "$nlist"; then
  23876. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23877. + test $ac_status = 0; } && test -s "$nlist"; then
  23878. # Try sorting and uniquifying the output.
  23879. if sort "$nlist" | uniq > "$nlist"T; then
  23880. mv -f "$nlist"T "$nlist"
  23881. @@ -6290,53 +5725,55 @@
  23882. fi
  23883. # Make sure that we snagged all the symbols we need.
  23884. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  23885. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  23886. - cat <<EOF > conftest.$ac_ext
  23887. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23888. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23889. + cat <<_LT_EOF > conftest.$ac_ext
  23890. #ifdef __cplusplus
  23891. extern "C" {
  23892. #endif
  23893. -EOF
  23894. +_LT_EOF
  23895. # Now generate the symbol file.
  23896. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  23897. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23898. - cat <<EOF >> conftest.$ac_ext
  23899. -#if defined (__STDC__) && __STDC__
  23900. -# define lt_ptr_t void *
  23901. -#else
  23902. -# define lt_ptr_t char *
  23903. -# define const
  23904. -#endif
  23905. + cat <<_LT_EOF >> conftest.$ac_ext
  23906. -/* The mapping between symbol names and symbols. */
  23907. +/* The mapping between symbol names and symbols. */
  23908. const struct {
  23909. const char *name;
  23910. - lt_ptr_t address;
  23911. + void *address;
  23912. }
  23913. -lt_preloaded_symbols[] =
  23914. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23915. {
  23916. -EOF
  23917. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  23918. - cat <<\EOF >> conftest.$ac_ext
  23919. - {0, (lt_ptr_t) 0}
  23920. + { "@PROGRAM@", (void *) 0 },
  23921. +_LT_EOF
  23922. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23923. + cat <<\_LT_EOF >> conftest.$ac_ext
  23924. + {0, (void *) 0}
  23925. };
  23926. +/* This works around a problem in FreeBSD linker */
  23927. +#ifdef FREEBSD_WORKAROUND
  23928. +static const void *lt_preloaded_setup() {
  23929. + return lt__PROGRAM__LTX_preloaded_symbols;
  23930. +}
  23931. +#endif
  23932. +
  23933. #ifdef __cplusplus
  23934. }
  23935. #endif
  23936. -EOF
  23937. +_LT_EOF
  23938. # Now try linking the two files.
  23939. mv conftest.$ac_objext conftstm.$ac_objext
  23940. lt_save_LIBS="$LIBS"
  23941. lt_save_CFLAGS="$CFLAGS"
  23942. LIBS="conftstm.$ac_objext"
  23943. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23944. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23945. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23946. (eval $ac_link) 2>&5
  23947. ac_status=$?
  23948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23949. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  23950. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23951. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23952. pipe_works=yes
  23953. fi
  23954. LIBS="$lt_save_LIBS"
  23955. @@ -6354,7 +5791,7 @@
  23956. echo "$progname: failed program was:" >&5
  23957. cat conftest.$ac_ext >&5
  23958. fi
  23959. - rm -f conftest* conftst*
  23960. + rm -rf conftest* conftst*
  23961. # Do not use the global_symbol_pipe unless it works.
  23962. if test "$pipe_works" = yes; then
  23963. @@ -6370,6001 +5807,3434 @@
  23964. lt_cv_sys_global_symbol_to_cdecl=
  23965. fi
  23966. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23967. - { echo "$as_me:$LINENO: result: failed" >&5
  23968. -echo "${ECHO_T}failed" >&6; }
  23969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23970. +$as_echo "failed" >&6; }
  23971. else
  23972. - { echo "$as_me:$LINENO: result: ok" >&5
  23973. -echo "${ECHO_T}ok" >&6; }
  23974. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  23975. +$as_echo "ok" >&6; }
  23976. fi
  23977. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  23978. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  23979. -if test "${lt_cv_objdir+set}" = set; then
  23980. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23981. -else
  23982. - rm -f .libs 2>/dev/null
  23983. -mkdir .libs 2>/dev/null
  23984. -if test -d .libs; then
  23985. - lt_cv_objdir=.libs
  23986. -else
  23987. - # MS-DOS does not allow filenames that begin with a dot.
  23988. - lt_cv_objdir=_libs
  23989. -fi
  23990. -rmdir .libs 2>/dev/null
  23991. -fi
  23992. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  23993. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  23994. -objdir=$lt_cv_objdir
  23995. -case $host_os in
  23996. -aix3*)
  23997. - # AIX sometimes has problems with the GCC collect2 program. For some
  23998. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  23999. - # vanish in a puff of smoke.
  24000. - if test "X${COLLECT_NAMES+set}" != Xset; then
  24001. - COLLECT_NAMES=
  24002. - export COLLECT_NAMES
  24003. - fi
  24004. - ;;
  24005. -esac
  24006. -# Sed substitution that helps us do robust quoting. It backslashifies
  24007. -# metacharacters that are still active within double-quoted strings.
  24008. -Xsed='sed -e 1s/^X//'
  24009. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  24010. -# Same as above, but do not quote variable references.
  24011. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  24012. -# Sed substitution to delay expansion of an escaped shell variable in a
  24013. -# double_quote_subst'ed string.
  24014. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  24015. -# Sed substitution to avoid accidental globbing in evaled expressions
  24016. -no_glob_subst='s/\*/\\\*/g'
  24017. -# Constants:
  24018. -rm="rm -f"
  24019. -# Global variables:
  24020. -default_ofile=libtool
  24021. -can_build_shared=yes
  24022. -# All known linkers require a `.a' archive for static linking (except MSVC,
  24023. -# which needs '.lib').
  24024. -libext=a
  24025. -ltmain="$ac_aux_dir/ltmain.sh"
  24026. -ofile="$default_ofile"
  24027. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  24028. -if test -n "$ac_tool_prefix"; then
  24029. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  24030. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  24031. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24032. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24033. -if test "${ac_cv_prog_AR+set}" = set; then
  24034. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24035. -else
  24036. - if test -n "$AR"; then
  24037. - ac_cv_prog_AR="$AR" # Let the user override the test.
  24038. -else
  24039. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24040. -for as_dir in $PATH
  24041. -do
  24042. - IFS=$as_save_IFS
  24043. - test -z "$as_dir" && as_dir=.
  24044. - for ac_exec_ext in '' $ac_executable_extensions; do
  24045. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24046. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  24047. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24048. - break 2
  24049. - fi
  24050. -done
  24051. -done
  24052. -IFS=$as_save_IFS
  24053. -fi
  24054. -fi
  24055. -AR=$ac_cv_prog_AR
  24056. -if test -n "$AR"; then
  24057. - { echo "$as_me:$LINENO: result: $AR" >&5
  24058. -echo "${ECHO_T}$AR" >&6; }
  24059. -else
  24060. - { echo "$as_me:$LINENO: result: no" >&5
  24061. -echo "${ECHO_T}no" >&6; }
  24062. -fi
  24063. +
  24064. +
  24065. +
  24066. +
  24067. +
  24068. +
  24069. +# Check whether --enable-libtool-lock was given.
  24070. +if test "${enable_libtool_lock+set}" = set; then :
  24071. + enableval=$enable_libtool_lock;
  24072. fi
  24073. -if test -z "$ac_cv_prog_AR"; then
  24074. - ac_ct_AR=$AR
  24075. - # Extract the first word of "ar", so it can be a program name with args.
  24076. -set dummy ar; ac_word=$2
  24077. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24078. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24079. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  24080. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24081. +
  24082. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24083. +
  24084. +# Some flags need to be propagated to the compiler or linker for good
  24085. +# libtool support.
  24086. +case $host in
  24087. +ia64-*-hpux*)
  24088. + # Find out which ABI we are using.
  24089. + echo 'int i;' > conftest.$ac_ext
  24090. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24091. + (eval $ac_compile) 2>&5
  24092. + ac_status=$?
  24093. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24094. + test $ac_status = 0; }; then
  24095. + case `/usr/bin/file conftest.$ac_objext` in
  24096. + *ELF-32*)
  24097. + HPUX_IA64_MODE="32"
  24098. + ;;
  24099. + *ELF-64*)
  24100. + HPUX_IA64_MODE="64"
  24101. + ;;
  24102. + esac
  24103. + fi
  24104. + rm -rf conftest*
  24105. + ;;
  24106. +*-*-irix6*)
  24107. + # Find out which ABI we are using.
  24108. + echo '#line 5870 "configure"' > conftest.$ac_ext
  24109. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24110. + (eval $ac_compile) 2>&5
  24111. + ac_status=$?
  24112. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24113. + test $ac_status = 0; }; then
  24114. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24115. + case `/usr/bin/file conftest.$ac_objext` in
  24116. + *32-bit*)
  24117. + LD="${LD-ld} -melf32bsmip"
  24118. + ;;
  24119. + *N32*)
  24120. + LD="${LD-ld} -melf32bmipn32"
  24121. + ;;
  24122. + *64-bit*)
  24123. + LD="${LD-ld} -melf64bmip"
  24124. + ;;
  24125. + esac
  24126. + else
  24127. + case `/usr/bin/file conftest.$ac_objext` in
  24128. + *32-bit*)
  24129. + LD="${LD-ld} -32"
  24130. + ;;
  24131. + *N32*)
  24132. + LD="${LD-ld} -n32"
  24133. + ;;
  24134. + *64-bit*)
  24135. + LD="${LD-ld} -64"
  24136. + ;;
  24137. + esac
  24138. + fi
  24139. + fi
  24140. + rm -rf conftest*
  24141. + ;;
  24142. +
  24143. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  24144. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24145. + # Find out which ABI we are using.
  24146. + echo 'int i;' > conftest.$ac_ext
  24147. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24148. + (eval $ac_compile) 2>&5
  24149. + ac_status=$?
  24150. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24151. + test $ac_status = 0; }; then
  24152. + case `/usr/bin/file conftest.o` in
  24153. + *32-bit*)
  24154. + case $host in
  24155. + x86_64-*kfreebsd*-gnu)
  24156. + LD="${LD-ld} -m elf_i386_fbsd"
  24157. + ;;
  24158. + x86_64-*linux*)
  24159. + LD="${LD-ld} -m elf_i386"
  24160. + ;;
  24161. + ppc64-*linux*|powerpc64-*linux*)
  24162. + LD="${LD-ld} -m elf32ppclinux"
  24163. + ;;
  24164. + s390x-*linux*)
  24165. + LD="${LD-ld} -m elf_s390"
  24166. + ;;
  24167. + sparc64-*linux*)
  24168. + LD="${LD-ld} -m elf32_sparc"
  24169. + ;;
  24170. + esac
  24171. + ;;
  24172. + *64-bit*)
  24173. + case $host in
  24174. + x86_64-*kfreebsd*-gnu)
  24175. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24176. + ;;
  24177. + x86_64-*linux*)
  24178. + LD="${LD-ld} -m elf_x86_64"
  24179. + ;;
  24180. + ppc*-*linux*|powerpc*-*linux*)
  24181. + LD="${LD-ld} -m elf64ppc"
  24182. + ;;
  24183. + s390*-*linux*|s390*-*tpf*)
  24184. + LD="${LD-ld} -m elf64_s390"
  24185. + ;;
  24186. + sparc*-*linux*)
  24187. + LD="${LD-ld} -m elf64_sparc"
  24188. + ;;
  24189. + esac
  24190. + ;;
  24191. + esac
  24192. + fi
  24193. + rm -rf conftest*
  24194. + ;;
  24195. +
  24196. +*-*-sco3.2v5*)
  24197. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24198. + SAVE_CFLAGS="$CFLAGS"
  24199. + CFLAGS="$CFLAGS -belf"
  24200. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24201. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24202. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24203. + $as_echo_n "(cached) " >&6
  24204. else
  24205. - if test -n "$ac_ct_AR"; then
  24206. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  24207. + ac_ext=c
  24208. +ac_cpp='$CPP $CPPFLAGS'
  24209. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24210. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24211. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24212. +
  24213. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24214. +/* end confdefs.h. */
  24215. +
  24216. +int
  24217. +main ()
  24218. +{
  24219. +
  24220. + ;
  24221. + return 0;
  24222. +}
  24223. +_ACEOF
  24224. +if ac_fn_c_try_link "$LINENO"; then :
  24225. + lt_cv_cc_needs_belf=yes
  24226. +else
  24227. + lt_cv_cc_needs_belf=no
  24228. +fi
  24229. +rm -f core conftest.err conftest.$ac_objext \
  24230. + conftest$ac_exeext conftest.$ac_ext
  24231. + ac_ext=c
  24232. +ac_cpp='$CPP $CPPFLAGS'
  24233. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24234. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24235. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24236. +
  24237. +fi
  24238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  24239. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  24240. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  24241. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  24242. + CFLAGS="$SAVE_CFLAGS"
  24243. + fi
  24244. + ;;
  24245. +sparc*-*solaris*)
  24246. + # Find out which ABI we are using.
  24247. + echo 'int i;' > conftest.$ac_ext
  24248. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24249. + (eval $ac_compile) 2>&5
  24250. + ac_status=$?
  24251. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24252. + test $ac_status = 0; }; then
  24253. + case `/usr/bin/file conftest.o` in
  24254. + *64-bit*)
  24255. + case $lt_cv_prog_gnu_ld in
  24256. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  24257. + *)
  24258. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  24259. + LD="${LD-ld} -64"
  24260. + fi
  24261. + ;;
  24262. + esac
  24263. + ;;
  24264. + esac
  24265. + fi
  24266. + rm -rf conftest*
  24267. + ;;
  24268. +esac
  24269. +
  24270. +need_locks="$enable_libtool_lock"
  24271. +
  24272. +
  24273. + case $host_os in
  24274. + rhapsody* | darwin*)
  24275. + if test -n "$ac_tool_prefix"; then
  24276. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24277. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24279. +$as_echo_n "checking for $ac_word... " >&6; }
  24280. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  24281. + $as_echo_n "(cached) " >&6
  24282. +else
  24283. + if test -n "$DSYMUTIL"; then
  24284. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24285. else
  24286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24287. for as_dir in $PATH
  24288. do
  24289. IFS=$as_save_IFS
  24290. test -z "$as_dir" && as_dir=.
  24291. - for ac_exec_ext in '' $ac_executable_extensions; do
  24292. + for ac_exec_ext in '' $ac_executable_extensions; do
  24293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24294. - ac_cv_prog_ac_ct_AR="ar"
  24295. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24296. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24297. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24298. break 2
  24299. fi
  24300. done
  24301. + done
  24302. +IFS=$as_save_IFS
  24303. +
  24304. +fi
  24305. +fi
  24306. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24307. +if test -n "$DSYMUTIL"; then
  24308. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24309. +$as_echo "$DSYMUTIL" >&6; }
  24310. +else
  24311. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24312. +$as_echo "no" >&6; }
  24313. +fi
  24314. +
  24315. +
  24316. +fi
  24317. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24318. + ac_ct_DSYMUTIL=$DSYMUTIL
  24319. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24320. +set dummy dsymutil; ac_word=$2
  24321. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24322. +$as_echo_n "checking for $ac_word... " >&6; }
  24323. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24324. + $as_echo_n "(cached) " >&6
  24325. +else
  24326. + if test -n "$ac_ct_DSYMUTIL"; then
  24327. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24328. +else
  24329. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24330. +for as_dir in $PATH
  24331. +do
  24332. + IFS=$as_save_IFS
  24333. + test -z "$as_dir" && as_dir=.
  24334. + for ac_exec_ext in '' $ac_executable_extensions; do
  24335. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24336. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24337. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24338. + break 2
  24339. + fi
  24340. done
  24341. + done
  24342. IFS=$as_save_IFS
  24343. fi
  24344. fi
  24345. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  24346. -if test -n "$ac_ct_AR"; then
  24347. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  24348. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  24349. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24350. +if test -n "$ac_ct_DSYMUTIL"; then
  24351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24352. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24353. else
  24354. - { echo "$as_me:$LINENO: result: no" >&5
  24355. -echo "${ECHO_T}no" >&6; }
  24356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24357. +$as_echo "no" >&6; }
  24358. fi
  24359. - if test "x$ac_ct_AR" = x; then
  24360. - AR="false"
  24361. + if test "x$ac_ct_DSYMUTIL" = x; then
  24362. + DSYMUTIL=":"
  24363. else
  24364. case $cross_compiling:$ac_tool_warned in
  24365. yes:)
  24366. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24367. -whose name does not start with the host triplet. If you think this
  24368. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24369. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24370. -whose name does not start with the host triplet. If you think this
  24371. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24373. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24374. ac_tool_warned=yes ;;
  24375. esac
  24376. - AR=$ac_ct_AR
  24377. + DSYMUTIL=$ac_ct_DSYMUTIL
  24378. fi
  24379. else
  24380. - AR="$ac_cv_prog_AR"
  24381. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24382. fi
  24383. -if test -n "$ac_tool_prefix"; then
  24384. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  24385. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  24386. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24387. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24388. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  24389. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24390. + if test -n "$ac_tool_prefix"; then
  24391. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24392. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24394. +$as_echo_n "checking for $ac_word... " >&6; }
  24395. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24396. + $as_echo_n "(cached) " >&6
  24397. else
  24398. - if test -n "$RANLIB"; then
  24399. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  24400. + if test -n "$NMEDIT"; then
  24401. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24402. else
  24403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24404. for as_dir in $PATH
  24405. do
  24406. IFS=$as_save_IFS
  24407. test -z "$as_dir" && as_dir=.
  24408. - for ac_exec_ext in '' $ac_executable_extensions; do
  24409. + for ac_exec_ext in '' $ac_executable_extensions; do
  24410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24411. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  24412. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24413. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24414. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24415. break 2
  24416. fi
  24417. done
  24418. -done
  24419. + done
  24420. IFS=$as_save_IFS
  24421. fi
  24422. fi
  24423. -RANLIB=$ac_cv_prog_RANLIB
  24424. -if test -n "$RANLIB"; then
  24425. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  24426. -echo "${ECHO_T}$RANLIB" >&6; }
  24427. +NMEDIT=$ac_cv_prog_NMEDIT
  24428. +if test -n "$NMEDIT"; then
  24429. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24430. +$as_echo "$NMEDIT" >&6; }
  24431. else
  24432. - { echo "$as_me:$LINENO: result: no" >&5
  24433. -echo "${ECHO_T}no" >&6; }
  24434. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24435. +$as_echo "no" >&6; }
  24436. fi
  24437. fi
  24438. -if test -z "$ac_cv_prog_RANLIB"; then
  24439. - ac_ct_RANLIB=$RANLIB
  24440. - # Extract the first word of "ranlib", so it can be a program name with args.
  24441. -set dummy ranlib; ac_word=$2
  24442. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24443. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24444. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  24445. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24446. +if test -z "$ac_cv_prog_NMEDIT"; then
  24447. + ac_ct_NMEDIT=$NMEDIT
  24448. + # Extract the first word of "nmedit", so it can be a program name with args.
  24449. +set dummy nmedit; ac_word=$2
  24450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24451. +$as_echo_n "checking for $ac_word... " >&6; }
  24452. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  24453. + $as_echo_n "(cached) " >&6
  24454. else
  24455. - if test -n "$ac_ct_RANLIB"; then
  24456. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  24457. + if test -n "$ac_ct_NMEDIT"; then
  24458. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24459. else
  24460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24461. for as_dir in $PATH
  24462. do
  24463. IFS=$as_save_IFS
  24464. test -z "$as_dir" && as_dir=.
  24465. - for ac_exec_ext in '' $ac_executable_extensions; do
  24466. + for ac_exec_ext in '' $ac_executable_extensions; do
  24467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24468. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  24469. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24470. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24471. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24472. break 2
  24473. fi
  24474. done
  24475. -done
  24476. + done
  24477. IFS=$as_save_IFS
  24478. fi
  24479. fi
  24480. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  24481. -if test -n "$ac_ct_RANLIB"; then
  24482. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  24483. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  24484. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24485. +if test -n "$ac_ct_NMEDIT"; then
  24486. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  24487. +$as_echo "$ac_ct_NMEDIT" >&6; }
  24488. else
  24489. - { echo "$as_me:$LINENO: result: no" >&5
  24490. -echo "${ECHO_T}no" >&6; }
  24491. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24492. +$as_echo "no" >&6; }
  24493. fi
  24494. - if test "x$ac_ct_RANLIB" = x; then
  24495. - RANLIB=":"
  24496. + if test "x$ac_ct_NMEDIT" = x; then
  24497. + NMEDIT=":"
  24498. else
  24499. case $cross_compiling:$ac_tool_warned in
  24500. yes:)
  24501. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24502. -whose name does not start with the host triplet. If you think this
  24503. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24504. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24505. -whose name does not start with the host triplet. If you think this
  24506. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24507. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24508. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24509. ac_tool_warned=yes ;;
  24510. esac
  24511. - RANLIB=$ac_ct_RANLIB
  24512. + NMEDIT=$ac_ct_NMEDIT
  24513. fi
  24514. else
  24515. - RANLIB="$ac_cv_prog_RANLIB"
  24516. + NMEDIT="$ac_cv_prog_NMEDIT"
  24517. fi
  24518. -if test -n "$ac_tool_prefix"; then
  24519. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  24520. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  24521. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24522. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24523. -if test "${ac_cv_prog_STRIP+set}" = set; then
  24524. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24525. + if test -n "$ac_tool_prefix"; then
  24526. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  24527. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  24528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24529. +$as_echo_n "checking for $ac_word... " >&6; }
  24530. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  24531. + $as_echo_n "(cached) " >&6
  24532. else
  24533. - if test -n "$STRIP"; then
  24534. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  24535. + if test -n "$LIPO"; then
  24536. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  24537. else
  24538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24539. for as_dir in $PATH
  24540. do
  24541. IFS=$as_save_IFS
  24542. test -z "$as_dir" && as_dir=.
  24543. - for ac_exec_ext in '' $ac_executable_extensions; do
  24544. + for ac_exec_ext in '' $ac_executable_extensions; do
  24545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24546. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  24547. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24548. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  24549. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24550. break 2
  24551. fi
  24552. done
  24553. -done
  24554. + done
  24555. IFS=$as_save_IFS
  24556. fi
  24557. fi
  24558. -STRIP=$ac_cv_prog_STRIP
  24559. -if test -n "$STRIP"; then
  24560. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  24561. -echo "${ECHO_T}$STRIP" >&6; }
  24562. +LIPO=$ac_cv_prog_LIPO
  24563. +if test -n "$LIPO"; then
  24564. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  24565. +$as_echo "$LIPO" >&6; }
  24566. else
  24567. - { echo "$as_me:$LINENO: result: no" >&5
  24568. -echo "${ECHO_T}no" >&6; }
  24569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24570. +$as_echo "no" >&6; }
  24571. fi
  24572. fi
  24573. -if test -z "$ac_cv_prog_STRIP"; then
  24574. - ac_ct_STRIP=$STRIP
  24575. - # Extract the first word of "strip", so it can be a program name with args.
  24576. -set dummy strip; ac_word=$2
  24577. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24578. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24579. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  24580. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24581. +if test -z "$ac_cv_prog_LIPO"; then
  24582. + ac_ct_LIPO=$LIPO
  24583. + # Extract the first word of "lipo", so it can be a program name with args.
  24584. +set dummy lipo; ac_word=$2
  24585. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24586. +$as_echo_n "checking for $ac_word... " >&6; }
  24587. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  24588. + $as_echo_n "(cached) " >&6
  24589. else
  24590. - if test -n "$ac_ct_STRIP"; then
  24591. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  24592. + if test -n "$ac_ct_LIPO"; then
  24593. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  24594. else
  24595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24596. for as_dir in $PATH
  24597. do
  24598. IFS=$as_save_IFS
  24599. test -z "$as_dir" && as_dir=.
  24600. - for ac_exec_ext in '' $ac_executable_extensions; do
  24601. + for ac_exec_ext in '' $ac_executable_extensions; do
  24602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24603. - ac_cv_prog_ac_ct_STRIP="strip"
  24604. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24605. + ac_cv_prog_ac_ct_LIPO="lipo"
  24606. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24607. break 2
  24608. fi
  24609. done
  24610. -done
  24611. + done
  24612. IFS=$as_save_IFS
  24613. fi
  24614. fi
  24615. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24616. -if test -n "$ac_ct_STRIP"; then
  24617. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  24618. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  24619. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24620. +if test -n "$ac_ct_LIPO"; then
  24621. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24622. +$as_echo "$ac_ct_LIPO" >&6; }
  24623. else
  24624. - { echo "$as_me:$LINENO: result: no" >&5
  24625. -echo "${ECHO_T}no" >&6; }
  24626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24627. +$as_echo "no" >&6; }
  24628. fi
  24629. - if test "x$ac_ct_STRIP" = x; then
  24630. - STRIP=":"
  24631. + if test "x$ac_ct_LIPO" = x; then
  24632. + LIPO=":"
  24633. else
  24634. case $cross_compiling:$ac_tool_warned in
  24635. yes:)
  24636. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24637. -whose name does not start with the host triplet. If you think this
  24638. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24639. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24640. -whose name does not start with the host triplet. If you think this
  24641. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24643. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24644. ac_tool_warned=yes ;;
  24645. esac
  24646. - STRIP=$ac_ct_STRIP
  24647. + LIPO=$ac_ct_LIPO
  24648. fi
  24649. else
  24650. - STRIP="$ac_cv_prog_STRIP"
  24651. + LIPO="$ac_cv_prog_LIPO"
  24652. fi
  24653. + if test -n "$ac_tool_prefix"; then
  24654. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24655. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24657. +$as_echo_n "checking for $ac_word... " >&6; }
  24658. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24659. + $as_echo_n "(cached) " >&6
  24660. +else
  24661. + if test -n "$OTOOL"; then
  24662. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24663. +else
  24664. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24665. +for as_dir in $PATH
  24666. +do
  24667. + IFS=$as_save_IFS
  24668. + test -z "$as_dir" && as_dir=.
  24669. + for ac_exec_ext in '' $ac_executable_extensions; do
  24670. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24671. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24672. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24673. + break 2
  24674. + fi
  24675. +done
  24676. + done
  24677. +IFS=$as_save_IFS
  24678. -old_CC="$CC"
  24679. -old_CFLAGS="$CFLAGS"
  24680. -
  24681. -# Set sane defaults for various variables
  24682. -test -z "$AR" && AR=ar
  24683. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  24684. -test -z "$AS" && AS=as
  24685. -test -z "$CC" && CC=cc
  24686. -test -z "$LTCC" && LTCC=$CC
  24687. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  24688. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  24689. -test -z "$LD" && LD=ld
  24690. -test -z "$LN_S" && LN_S="ln -s"
  24691. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  24692. -test -z "$NM" && NM=nm
  24693. -test -z "$SED" && SED=sed
  24694. -test -z "$OBJDUMP" && OBJDUMP=objdump
  24695. -test -z "$RANLIB" && RANLIB=:
  24696. -test -z "$STRIP" && STRIP=:
  24697. -test -z "$ac_objext" && ac_objext=o
  24698. +fi
  24699. +fi
  24700. +OTOOL=$ac_cv_prog_OTOOL
  24701. +if test -n "$OTOOL"; then
  24702. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24703. +$as_echo "$OTOOL" >&6; }
  24704. +else
  24705. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24706. +$as_echo "no" >&6; }
  24707. +fi
  24708. -# Determine commands to create old-style static archives.
  24709. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  24710. -old_postinstall_cmds='chmod 644 $oldlib'
  24711. -old_postuninstall_cmds=
  24712. -if test -n "$RANLIB"; then
  24713. - case $host_os in
  24714. - openbsd*)
  24715. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  24716. - ;;
  24717. - *)
  24718. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  24719. - ;;
  24720. - esac
  24721. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  24722. fi
  24723. -
  24724. -for cc_temp in $compiler""; do
  24725. - case $cc_temp in
  24726. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24727. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24728. - \-*) ;;
  24729. - *) break;;
  24730. - esac
  24731. +if test -z "$ac_cv_prog_OTOOL"; then
  24732. + ac_ct_OTOOL=$OTOOL
  24733. + # Extract the first word of "otool", so it can be a program name with args.
  24734. +set dummy otool; ac_word=$2
  24735. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24736. +$as_echo_n "checking for $ac_word... " >&6; }
  24737. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24738. + $as_echo_n "(cached) " >&6
  24739. +else
  24740. + if test -n "$ac_ct_OTOOL"; then
  24741. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24742. +else
  24743. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24744. +for as_dir in $PATH
  24745. +do
  24746. + IFS=$as_save_IFS
  24747. + test -z "$as_dir" && as_dir=.
  24748. + for ac_exec_ext in '' $ac_executable_extensions; do
  24749. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24750. + ac_cv_prog_ac_ct_OTOOL="otool"
  24751. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24752. + break 2
  24753. + fi
  24754. done
  24755. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24756. -
  24757. + done
  24758. +IFS=$as_save_IFS
  24759. -# Only perform the check for file, if the check method requires it
  24760. -case $deplibs_check_method in
  24761. -file_magic*)
  24762. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  24763. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  24764. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  24765. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24766. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24767. +fi
  24768. +fi
  24769. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24770. +if test -n "$ac_ct_OTOOL"; then
  24771. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24772. +$as_echo "$ac_ct_OTOOL" >&6; }
  24773. else
  24774. - case $MAGIC_CMD in
  24775. -[\\/*] | ?:[\\/]*)
  24776. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24777. - ;;
  24778. -*)
  24779. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24780. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24781. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24782. - for ac_dir in $ac_dummy; do
  24783. - IFS="$lt_save_ifs"
  24784. - test -z "$ac_dir" && ac_dir=.
  24785. - if test -f $ac_dir/${ac_tool_prefix}file; then
  24786. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  24787. - if test -n "$file_magic_test_file"; then
  24788. - case $deplibs_check_method in
  24789. - "file_magic "*)
  24790. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24791. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24792. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24793. - $EGREP "$file_magic_regex" > /dev/null; then
  24794. - :
  24795. - else
  24796. - cat <<EOF 1>&2
  24797. -
  24798. -*** Warning: the command libtool uses to detect shared libraries,
  24799. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24800. -*** The result is that libtool may fail to recognize shared libraries
  24801. -*** as such. This will affect the creation of libtool libraries that
  24802. -*** depend on shared libraries, but programs linked with such libtool
  24803. -*** libraries will work regardless of this problem. Nevertheless, you
  24804. -*** may want to report the problem to your system manager and/or to
  24805. -*** bug-libtool@gnu.org
  24806. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24807. +$as_echo "no" >&6; }
  24808. +fi
  24809. -EOF
  24810. - fi ;;
  24811. - esac
  24812. - fi
  24813. - break
  24814. - fi
  24815. - done
  24816. - IFS="$lt_save_ifs"
  24817. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24818. - ;;
  24819. + if test "x$ac_ct_OTOOL" = x; then
  24820. + OTOOL=":"
  24821. + else
  24822. + case $cross_compiling:$ac_tool_warned in
  24823. +yes:)
  24824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24825. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24826. +ac_tool_warned=yes ;;
  24827. esac
  24828. + OTOOL=$ac_ct_OTOOL
  24829. + fi
  24830. +else
  24831. + OTOOL="$ac_cv_prog_OTOOL"
  24832. fi
  24833. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24834. -if test -n "$MAGIC_CMD"; then
  24835. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24836. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  24837. + if test -n "$ac_tool_prefix"; then
  24838. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  24839. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  24840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24841. +$as_echo_n "checking for $ac_word... " >&6; }
  24842. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  24843. + $as_echo_n "(cached) " >&6
  24844. else
  24845. - { echo "$as_me:$LINENO: result: no" >&5
  24846. -echo "${ECHO_T}no" >&6; }
  24847. -fi
  24848. + if test -n "$OTOOL64"; then
  24849. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  24850. +else
  24851. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24852. +for as_dir in $PATH
  24853. +do
  24854. + IFS=$as_save_IFS
  24855. + test -z "$as_dir" && as_dir=.
  24856. + for ac_exec_ext in '' $ac_executable_extensions; do
  24857. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24858. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  24859. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24860. + break 2
  24861. + fi
  24862. +done
  24863. + done
  24864. +IFS=$as_save_IFS
  24865. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  24866. - if test -n "$ac_tool_prefix"; then
  24867. - { echo "$as_me:$LINENO: checking for file" >&5
  24868. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  24869. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24870. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24871. +fi
  24872. +fi
  24873. +OTOOL64=$ac_cv_prog_OTOOL64
  24874. +if test -n "$OTOOL64"; then
  24875. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  24876. +$as_echo "$OTOOL64" >&6; }
  24877. else
  24878. - case $MAGIC_CMD in
  24879. -[\\/*] | ?:[\\/]*)
  24880. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24881. - ;;
  24882. -*)
  24883. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24884. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24885. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24886. - for ac_dir in $ac_dummy; do
  24887. - IFS="$lt_save_ifs"
  24888. - test -z "$ac_dir" && ac_dir=.
  24889. - if test -f $ac_dir/file; then
  24890. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  24891. - if test -n "$file_magic_test_file"; then
  24892. - case $deplibs_check_method in
  24893. - "file_magic "*)
  24894. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24895. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24896. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24897. - $EGREP "$file_magic_regex" > /dev/null; then
  24898. - :
  24899. - else
  24900. - cat <<EOF 1>&2
  24901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24902. +$as_echo "no" >&6; }
  24903. +fi
  24904. -*** Warning: the command libtool uses to detect shared libraries,
  24905. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24906. -*** The result is that libtool may fail to recognize shared libraries
  24907. -*** as such. This will affect the creation of libtool libraries that
  24908. -*** depend on shared libraries, but programs linked with such libtool
  24909. -*** libraries will work regardless of this problem. Nevertheless, you
  24910. -*** may want to report the problem to your system manager and/or to
  24911. -*** bug-libtool@gnu.org
  24912. -EOF
  24913. - fi ;;
  24914. - esac
  24915. - fi
  24916. - break
  24917. - fi
  24918. - done
  24919. - IFS="$lt_save_ifs"
  24920. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24921. - ;;
  24922. -esac
  24923. fi
  24924. +if test -z "$ac_cv_prog_OTOOL64"; then
  24925. + ac_ct_OTOOL64=$OTOOL64
  24926. + # Extract the first word of "otool64", so it can be a program name with args.
  24927. +set dummy otool64; ac_word=$2
  24928. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24929. +$as_echo_n "checking for $ac_word... " >&6; }
  24930. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24931. + $as_echo_n "(cached) " >&6
  24932. +else
  24933. + if test -n "$ac_ct_OTOOL64"; then
  24934. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24935. +else
  24936. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24937. +for as_dir in $PATH
  24938. +do
  24939. + IFS=$as_save_IFS
  24940. + test -z "$as_dir" && as_dir=.
  24941. + for ac_exec_ext in '' $ac_executable_extensions; do
  24942. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24943. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24944. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24945. + break 2
  24946. + fi
  24947. +done
  24948. + done
  24949. +IFS=$as_save_IFS
  24950. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24951. -if test -n "$MAGIC_CMD"; then
  24952. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24953. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  24954. +fi
  24955. +fi
  24956. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24957. +if test -n "$ac_ct_OTOOL64"; then
  24958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24959. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24960. else
  24961. - { echo "$as_me:$LINENO: result: no" >&5
  24962. -echo "${ECHO_T}no" >&6; }
  24963. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24964. +$as_echo "no" >&6; }
  24965. fi
  24966. + if test "x$ac_ct_OTOOL64" = x; then
  24967. + OTOOL64=":"
  24968. else
  24969. - MAGIC_CMD=:
  24970. + case $cross_compiling:$ac_tool_warned in
  24971. +yes:)
  24972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24973. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24974. +ac_tool_warned=yes ;;
  24975. +esac
  24976. + OTOOL64=$ac_ct_OTOOL64
  24977. fi
  24978. +else
  24979. + OTOOL64="$ac_cv_prog_OTOOL64"
  24980. fi
  24981. - fi
  24982. - ;;
  24983. -esac
  24984. -enable_dlopen=no
  24985. -enable_win32_dll=no
  24986. -# Check whether --enable-libtool-lock was given.
  24987. -if test "${enable_libtool_lock+set}" = set; then
  24988. - enableval=$enable_libtool_lock;
  24989. -fi
  24990. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24991. -# Check whether --with-pic was given.
  24992. -if test "${with_pic+set}" = set; then
  24993. - withval=$with_pic; pic_mode="$withval"
  24994. -else
  24995. - pic_mode=default
  24996. -fi
  24997. -test -z "$pic_mode" && pic_mode=default
  24998. -# Use C for the default configuration in the libtool script
  24999. -tagname=
  25000. -lt_save_CC="$CC"
  25001. -ac_ext=c
  25002. -ac_cpp='$CPP $CPPFLAGS'
  25003. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25004. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25005. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25006. -# Source file extension for C test sources.
  25007. -ac_ext=c
  25008. -# Object file extension for compiled C test sources.
  25009. -objext=o
  25010. -objext=$objext
  25011. -# Code to be used in simple compile tests
  25012. -lt_simple_compile_test_code="int some_variable = 0;\n"
  25013. -# Code to be used in simple link tests
  25014. -lt_simple_link_test_code='int main(){return(0);}\n'
  25015. -# If no C compiler was specified, use CC.
  25016. -LTCC=${LTCC-"$CC"}
  25017. -# If no C compiler flags were specified, use CFLAGS.
  25018. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25019. -# Allow CC to be a program name with arguments.
  25020. -compiler=$CC
  25021. -# save warnings/boilerplate of simple test code
  25022. -ac_outfile=conftest.$ac_objext
  25023. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  25024. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25025. -_lt_compiler_boilerplate=`cat conftest.err`
  25026. -$rm conftest*
  25027. -ac_outfile=conftest.$ac_objext
  25028. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  25029. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25030. -_lt_linker_boilerplate=`cat conftest.err`
  25031. -$rm conftest*
  25032. -lt_prog_compiler_no_builtin_flag=
  25033. -if test "$GCC" = yes; then
  25034. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  25035. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  25036. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  25037. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  25038. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25039. -else
  25040. - lt_cv_prog_compiler_rtti_exceptions=no
  25041. - ac_outfile=conftest.$ac_objext
  25042. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25043. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  25044. - # Insert the option either (1) after the last *FLAGS variable, or
  25045. - # (2) before a word containing "conftest.", or (3) at the end.
  25046. - # Note that $ac_compile itself does not contain backslashes and begins
  25047. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25048. - # The option is referenced via a variable to avoid confusing sed.
  25049. - lt_compile=`echo "$ac_compile" | $SED \
  25050. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25051. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25052. - -e 's:$: $lt_compiler_flag:'`
  25053. - (eval echo "\"\$as_me:7010: $lt_compile\"" >&5)
  25054. - (eval "$lt_compile" 2>conftest.err)
  25055. - ac_status=$?
  25056. - cat conftest.err >&5
  25057. - echo "$as_me:7014: \$? = $ac_status" >&5
  25058. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25059. - # The compiler can only warn and ignore the option if not recognized
  25060. - # So say no if there are warnings other than the usual output.
  25061. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25062. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25063. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25064. - lt_cv_prog_compiler_rtti_exceptions=yes
  25065. - fi
  25066. - fi
  25067. - $rm conftest*
  25068. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  25069. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  25070. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  25071. + $as_echo_n "(cached) " >&6
  25072. +else
  25073. + lt_cv_apple_cc_single_mod=no
  25074. + if test -z "${LT_MULTI_MODULE}"; then
  25075. + # By default we will add the -single_module flag. You can override
  25076. + # by either setting the environment variable LT_MULTI_MODULE
  25077. + # non-empty at configure time, or by adding -multi_module to the
  25078. + # link flags.
  25079. + rm -rf libconftest.dylib*
  25080. + echo "int foo(void){return 1;}" > conftest.c
  25081. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25082. +-dynamiclib -Wl,-single_module conftest.c" >&5
  25083. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25084. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  25085. + _lt_result=$?
  25086. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  25087. + lt_cv_apple_cc_single_mod=yes
  25088. + else
  25089. + cat conftest.err >&5
  25090. + fi
  25091. + rm -rf libconftest.dylib*
  25092. + rm -f conftest.*
  25093. + fi
  25094. fi
  25095. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  25096. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  25097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  25098. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  25099. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  25100. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  25101. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  25102. + $as_echo_n "(cached) " >&6
  25103. +else
  25104. + lt_cv_ld_exported_symbols_list=no
  25105. + save_LDFLAGS=$LDFLAGS
  25106. + echo "_main" > conftest.sym
  25107. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  25108. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25109. +/* end confdefs.h. */
  25110. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  25111. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  25112. +int
  25113. +main ()
  25114. +{
  25115. +
  25116. + ;
  25117. + return 0;
  25118. +}
  25119. +_ACEOF
  25120. +if ac_fn_c_try_link "$LINENO"; then :
  25121. + lt_cv_ld_exported_symbols_list=yes
  25122. else
  25123. - :
  25124. + lt_cv_ld_exported_symbols_list=no
  25125. fi
  25126. +rm -f core conftest.err conftest.$ac_objext \
  25127. + conftest$ac_exeext conftest.$ac_ext
  25128. + LDFLAGS="$save_LDFLAGS"
  25129. fi
  25130. -
  25131. -lt_prog_compiler_wl=
  25132. -lt_prog_compiler_pic=
  25133. -lt_prog_compiler_static=
  25134. -
  25135. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  25136. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  25137. -
  25138. - if test "$GCC" = yes; then
  25139. - lt_prog_compiler_wl='-Wl,'
  25140. - lt_prog_compiler_static='-static'
  25141. -
  25142. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  25143. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  25144. case $host_os in
  25145. - aix*)
  25146. - # All AIX code is PIC.
  25147. - if test "$host_cpu" = ia64; then
  25148. - # AIX 5 now supports IA64 processor
  25149. - lt_prog_compiler_static='-Bstatic'
  25150. - fi
  25151. - ;;
  25152. + rhapsody* | darwin1.[012])
  25153. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  25154. + darwin1.*)
  25155. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25156. + darwin*) # darwin 5.x on
  25157. + # if running on 10.5 or later, the deployment target defaults
  25158. + # to the OS version, if on x86, and 10.4, the deployment
  25159. + # target defaults to 10.4. Don't you love it?
  25160. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  25161. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  25162. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25163. + 10.[012]*)
  25164. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25165. + 10.*)
  25166. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25167. + esac
  25168. + ;;
  25169. + esac
  25170. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  25171. + _lt_dar_single_mod='$single_module'
  25172. + fi
  25173. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  25174. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  25175. + else
  25176. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25177. + fi
  25178. + if test "$DSYMUTIL" != ":"; then
  25179. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  25180. + else
  25181. + _lt_dsymutil=
  25182. + fi
  25183. + ;;
  25184. + esac
  25185. - amigaos*)
  25186. - # FIXME: we need at least 68020 code to build shared libraries, but
  25187. - # adding the `-m68020' flag to GCC prevents building anything better,
  25188. - # like `-m68040'.
  25189. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  25190. - ;;
  25191. +ac_ext=c
  25192. +ac_cpp='$CPP $CPPFLAGS'
  25193. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25194. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25195. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  25197. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  25198. +# On Suns, sometimes $CPP names a directory.
  25199. +if test -n "$CPP" && test -d "$CPP"; then
  25200. + CPP=
  25201. +fi
  25202. +if test -z "$CPP"; then
  25203. + if test "${ac_cv_prog_CPP+set}" = set; then :
  25204. + $as_echo_n "(cached) " >&6
  25205. +else
  25206. + # Double quotes because CPP needs to be expanded
  25207. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  25208. + do
  25209. + ac_preproc_ok=false
  25210. +for ac_c_preproc_warn_flag in '' yes
  25211. +do
  25212. + # Use a header file that comes with gcc, so configuring glibc
  25213. + # with a fresh cross-compiler works.
  25214. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25215. + # <limits.h> exists even on freestanding compilers.
  25216. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25217. + # not just through cpp. "Syntax error" is here to catch this case.
  25218. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25219. +/* end confdefs.h. */
  25220. +#ifdef __STDC__
  25221. +# include <limits.h>
  25222. +#else
  25223. +# include <assert.h>
  25224. +#endif
  25225. + Syntax error
  25226. +_ACEOF
  25227. +if ac_fn_c_try_cpp "$LINENO"; then :
  25228. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25229. - # PIC is the default for these OSes.
  25230. - ;;
  25231. +else
  25232. + # Broken: fails on valid input.
  25233. +continue
  25234. +fi
  25235. +rm -f conftest.err conftest.$ac_ext
  25236. - mingw* | pw32* | os2*)
  25237. - # This hack is so that the source file can tell whether it is being
  25238. - # built for inclusion in a dll (and should export symbols for example).
  25239. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25240. - ;;
  25241. + # OK, works on sane cases. Now check whether nonexistent headers
  25242. + # can be detected and how.
  25243. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25244. +/* end confdefs.h. */
  25245. +#include <ac_nonexistent.h>
  25246. +_ACEOF
  25247. +if ac_fn_c_try_cpp "$LINENO"; then :
  25248. + # Broken: success on invalid input.
  25249. +continue
  25250. +else
  25251. + # Passes both tests.
  25252. +ac_preproc_ok=:
  25253. +break
  25254. +fi
  25255. +rm -f conftest.err conftest.$ac_ext
  25256. - darwin* | rhapsody*)
  25257. - # PIC is the default on this platform
  25258. - # Common symbols not allowed in MH_DYLIB files
  25259. - lt_prog_compiler_pic='-fno-common'
  25260. - ;;
  25261. +done
  25262. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25263. +rm -f conftest.err conftest.$ac_ext
  25264. +if $ac_preproc_ok; then :
  25265. + break
  25266. +fi
  25267. - interix3*)
  25268. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  25269. - # Instead, we relocate shared libraries at runtime.
  25270. - ;;
  25271. + done
  25272. + ac_cv_prog_CPP=$CPP
  25273. - msdosdjgpp*)
  25274. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  25275. - # on systems that don't support them.
  25276. - lt_prog_compiler_can_build_shared=no
  25277. - enable_shared=no
  25278. - ;;
  25279. +fi
  25280. + CPP=$ac_cv_prog_CPP
  25281. +else
  25282. + ac_cv_prog_CPP=$CPP
  25283. +fi
  25284. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  25285. +$as_echo "$CPP" >&6; }
  25286. +ac_preproc_ok=false
  25287. +for ac_c_preproc_warn_flag in '' yes
  25288. +do
  25289. + # Use a header file that comes with gcc, so configuring glibc
  25290. + # with a fresh cross-compiler works.
  25291. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25292. + # <limits.h> exists even on freestanding compilers.
  25293. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25294. + # not just through cpp. "Syntax error" is here to catch this case.
  25295. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25296. +/* end confdefs.h. */
  25297. +#ifdef __STDC__
  25298. +# include <limits.h>
  25299. +#else
  25300. +# include <assert.h>
  25301. +#endif
  25302. + Syntax error
  25303. +_ACEOF
  25304. +if ac_fn_c_try_cpp "$LINENO"; then :
  25305. - sysv4*MP*)
  25306. - if test -d /usr/nec; then
  25307. - lt_prog_compiler_pic=-Kconform_pic
  25308. - fi
  25309. - ;;
  25310. +else
  25311. + # Broken: fails on valid input.
  25312. +continue
  25313. +fi
  25314. +rm -f conftest.err conftest.$ac_ext
  25315. - hpux*)
  25316. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25317. - # not for PA HP-UX.
  25318. - case $host_cpu in
  25319. - hppa*64*|ia64*)
  25320. - # +Z the default
  25321. - ;;
  25322. - *)
  25323. - lt_prog_compiler_pic='-fPIC'
  25324. - ;;
  25325. - esac
  25326. - ;;
  25327. + # OK, works on sane cases. Now check whether nonexistent headers
  25328. + # can be detected and how.
  25329. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25330. +/* end confdefs.h. */
  25331. +#include <ac_nonexistent.h>
  25332. +_ACEOF
  25333. +if ac_fn_c_try_cpp "$LINENO"; then :
  25334. + # Broken: success on invalid input.
  25335. +continue
  25336. +else
  25337. + # Passes both tests.
  25338. +ac_preproc_ok=:
  25339. +break
  25340. +fi
  25341. +rm -f conftest.err conftest.$ac_ext
  25342. - *)
  25343. - lt_prog_compiler_pic='-fPIC'
  25344. - ;;
  25345. - esac
  25346. - else
  25347. - # PORTME Check for flag to pass linker flags through the system compiler.
  25348. - case $host_os in
  25349. - aix*)
  25350. - lt_prog_compiler_wl='-Wl,'
  25351. - if test "$host_cpu" = ia64; then
  25352. - # AIX 5 now supports IA64 processor
  25353. - lt_prog_compiler_static='-Bstatic'
  25354. - else
  25355. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  25356. - fi
  25357. - ;;
  25358. - darwin*)
  25359. - # PIC is the default on this platform
  25360. - # Common symbols not allowed in MH_DYLIB files
  25361. - case $cc_basename in
  25362. - xlc*)
  25363. - lt_prog_compiler_pic='-qnocommon'
  25364. - lt_prog_compiler_wl='-Wl,'
  25365. - ;;
  25366. - esac
  25367. - ;;
  25368. +done
  25369. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25370. +rm -f conftest.err conftest.$ac_ext
  25371. +if $ac_preproc_ok; then :
  25372. - mingw* | pw32* | os2*)
  25373. - # This hack is so that the source file can tell whether it is being
  25374. - # built for inclusion in a dll (and should export symbols for example).
  25375. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25376. - ;;
  25377. +else
  25378. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25379. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25380. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  25381. +See \`config.log' for more details." "$LINENO" 5; }
  25382. +fi
  25383. - hpux9* | hpux10* | hpux11*)
  25384. - lt_prog_compiler_wl='-Wl,'
  25385. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25386. - # not for PA HP-UX.
  25387. - case $host_cpu in
  25388. - hppa*64*|ia64*)
  25389. - # +Z the default
  25390. - ;;
  25391. - *)
  25392. - lt_prog_compiler_pic='+Z'
  25393. - ;;
  25394. - esac
  25395. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  25396. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  25397. - ;;
  25398. +ac_ext=c
  25399. +ac_cpp='$CPP $CPPFLAGS'
  25400. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25401. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25402. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25403. - irix5* | irix6* | nonstopux*)
  25404. - lt_prog_compiler_wl='-Wl,'
  25405. - # PIC (with -KPIC) is the default.
  25406. - lt_prog_compiler_static='-non_shared'
  25407. - ;;
  25408. - newsos6)
  25409. - lt_prog_compiler_pic='-KPIC'
  25410. - lt_prog_compiler_static='-Bstatic'
  25411. - ;;
  25412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25413. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25414. +if test "${ac_cv_header_stdc+set}" = set; then :
  25415. + $as_echo_n "(cached) " >&6
  25416. +else
  25417. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25418. +/* end confdefs.h. */
  25419. +#include <stdlib.h>
  25420. +#include <stdarg.h>
  25421. +#include <string.h>
  25422. +#include <float.h>
  25423. - linux* | k*bsd*-gnu)
  25424. - case $cc_basename in
  25425. - icc* | ecc*)
  25426. - lt_prog_compiler_wl='-Wl,'
  25427. - lt_prog_compiler_pic='-KPIC'
  25428. - lt_prog_compiler_static='-static'
  25429. - ;;
  25430. - pgcc* | pgf77* | pgf90* | pgf95*)
  25431. - # Portland Group compilers (*not* the Pentium gcc compiler,
  25432. - # which looks to be a dead project)
  25433. - lt_prog_compiler_wl='-Wl,'
  25434. - lt_prog_compiler_pic='-fpic'
  25435. - lt_prog_compiler_static='-Bstatic'
  25436. - ;;
  25437. - ccc*)
  25438. - lt_prog_compiler_wl='-Wl,'
  25439. - # All Alpha code is PIC.
  25440. - lt_prog_compiler_static='-non_shared'
  25441. - ;;
  25442. - esac
  25443. - ;;
  25444. +int
  25445. +main ()
  25446. +{
  25447. - osf3* | osf4* | osf5*)
  25448. - lt_prog_compiler_wl='-Wl,'
  25449. - # All OSF/1 code is PIC.
  25450. - lt_prog_compiler_static='-non_shared'
  25451. - ;;
  25452. + ;
  25453. + return 0;
  25454. +}
  25455. +_ACEOF
  25456. +if ac_fn_c_try_compile "$LINENO"; then :
  25457. + ac_cv_header_stdc=yes
  25458. +else
  25459. + ac_cv_header_stdc=no
  25460. +fi
  25461. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25462. - solaris*)
  25463. - lt_prog_compiler_pic='-KPIC'
  25464. - lt_prog_compiler_static='-Bstatic'
  25465. - case $cc_basename in
  25466. - f77* | f90* | f95*)
  25467. - lt_prog_compiler_wl='-Qoption ld ';;
  25468. - *)
  25469. - lt_prog_compiler_wl='-Wl,';;
  25470. - esac
  25471. - ;;
  25472. -
  25473. - sunos4*)
  25474. - lt_prog_compiler_wl='-Qoption ld '
  25475. - lt_prog_compiler_pic='-PIC'
  25476. - lt_prog_compiler_static='-Bstatic'
  25477. - ;;
  25478. -
  25479. - sysv4 | sysv4.2uw2* | sysv4.3*)
  25480. - lt_prog_compiler_wl='-Wl,'
  25481. - lt_prog_compiler_pic='-KPIC'
  25482. - lt_prog_compiler_static='-Bstatic'
  25483. - ;;
  25484. +if test $ac_cv_header_stdc = yes; then
  25485. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25486. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25487. +/* end confdefs.h. */
  25488. +#include <string.h>
  25489. - sysv4*MP*)
  25490. - if test -d /usr/nec ;then
  25491. - lt_prog_compiler_pic='-Kconform_pic'
  25492. - lt_prog_compiler_static='-Bstatic'
  25493. - fi
  25494. - ;;
  25495. +_ACEOF
  25496. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25497. + $EGREP "memchr" >/dev/null 2>&1; then :
  25498. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  25499. - lt_prog_compiler_wl='-Wl,'
  25500. - lt_prog_compiler_pic='-KPIC'
  25501. - lt_prog_compiler_static='-Bstatic'
  25502. - ;;
  25503. +else
  25504. + ac_cv_header_stdc=no
  25505. +fi
  25506. +rm -f conftest*
  25507. - unicos*)
  25508. - lt_prog_compiler_wl='-Wl,'
  25509. - lt_prog_compiler_can_build_shared=no
  25510. - ;;
  25511. +fi
  25512. - uts4*)
  25513. - lt_prog_compiler_pic='-pic'
  25514. - lt_prog_compiler_static='-Bstatic'
  25515. - ;;
  25516. +if test $ac_cv_header_stdc = yes; then
  25517. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25518. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25519. +/* end confdefs.h. */
  25520. +#include <stdlib.h>
  25521. - *)
  25522. - lt_prog_compiler_can_build_shared=no
  25523. - ;;
  25524. - esac
  25525. - fi
  25526. +_ACEOF
  25527. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25528. + $EGREP "free" >/dev/null 2>&1; then :
  25529. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  25530. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  25531. +else
  25532. + ac_cv_header_stdc=no
  25533. +fi
  25534. +rm -f conftest*
  25535. -#
  25536. -# Check to make sure the PIC flag actually works.
  25537. -#
  25538. -if test -n "$lt_prog_compiler_pic"; then
  25539. +fi
  25540. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  25541. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  25542. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  25543. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25544. +if test $ac_cv_header_stdc = yes; then
  25545. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25546. + if test "$cross_compiling" = yes; then :
  25547. + :
  25548. else
  25549. - lt_prog_compiler_pic_works=no
  25550. - ac_outfile=conftest.$ac_objext
  25551. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25552. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  25553. - # Insert the option either (1) after the last *FLAGS variable, or
  25554. - # (2) before a word containing "conftest.", or (3) at the end.
  25555. - # Note that $ac_compile itself does not contain backslashes and begins
  25556. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25557. - # The option is referenced via a variable to avoid confusing sed.
  25558. - lt_compile=`echo "$ac_compile" | $SED \
  25559. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25560. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25561. - -e 's:$: $lt_compiler_flag:'`
  25562. - (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
  25563. - (eval "$lt_compile" 2>conftest.err)
  25564. - ac_status=$?
  25565. - cat conftest.err >&5
  25566. - echo "$as_me:7282: \$? = $ac_status" >&5
  25567. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25568. - # The compiler can only warn and ignore the option if not recognized
  25569. - # So say no if there are warnings other than the usual output.
  25570. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25571. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25572. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25573. - lt_prog_compiler_pic_works=yes
  25574. - fi
  25575. - fi
  25576. - $rm conftest*
  25577. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25578. +/* end confdefs.h. */
  25579. +#include <ctype.h>
  25580. +#include <stdlib.h>
  25581. +#if ((' ' & 0x0FF) == 0x020)
  25582. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25583. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25584. +#else
  25585. +# define ISLOWER(c) \
  25586. + (('a' <= (c) && (c) <= 'i') \
  25587. + || ('j' <= (c) && (c) <= 'r') \
  25588. + || ('s' <= (c) && (c) <= 'z'))
  25589. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25590. +#endif
  25591. -fi
  25592. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  25593. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  25594. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25595. +int
  25596. +main ()
  25597. +{
  25598. + int i;
  25599. + for (i = 0; i < 256; i++)
  25600. + if (XOR (islower (i), ISLOWER (i))
  25601. + || toupper (i) != TOUPPER (i))
  25602. + return 2;
  25603. + return 0;
  25604. +}
  25605. +_ACEOF
  25606. +if ac_fn_c_try_run "$LINENO"; then :
  25607. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  25608. - case $lt_prog_compiler_pic in
  25609. - "" | " "*) ;;
  25610. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  25611. - esac
  25612. else
  25613. - lt_prog_compiler_pic=
  25614. - lt_prog_compiler_can_build_shared=no
  25615. + ac_cv_header_stdc=no
  25616. +fi
  25617. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25618. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25619. fi
  25620. fi
  25621. -case $host_os in
  25622. - # For platforms which do not support PIC, -DPIC is meaningless:
  25623. - *djgpp*)
  25624. - lt_prog_compiler_pic=
  25625. - ;;
  25626. - *)
  25627. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  25628. - ;;
  25629. -esac
  25630. +fi
  25631. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25632. +$as_echo "$ac_cv_header_stdc" >&6; }
  25633. +if test $ac_cv_header_stdc = yes; then
  25634. -#
  25635. -# Check to make sure the static flag actually works.
  25636. -#
  25637. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  25638. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25639. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  25640. -if test "${lt_prog_compiler_static_works+set}" = set; then
  25641. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25642. -else
  25643. - lt_prog_compiler_static_works=no
  25644. - save_LDFLAGS="$LDFLAGS"
  25645. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25646. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  25647. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25648. - # The linker can only warn and ignore the option if not recognized
  25649. - # So say no if there are warnings
  25650. - if test -s conftest.err; then
  25651. - # Append any errors to the config.log.
  25652. - cat conftest.err 1>&5
  25653. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25654. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25655. - if diff conftest.exp conftest.er2 >/dev/null; then
  25656. - lt_prog_compiler_static_works=yes
  25657. - fi
  25658. - else
  25659. - lt_prog_compiler_static_works=yes
  25660. - fi
  25661. - fi
  25662. - $rm conftest*
  25663. - LDFLAGS="$save_LDFLAGS"
  25664. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25665. fi
  25666. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  25667. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  25668. -if test x"$lt_prog_compiler_static_works" = xyes; then
  25669. - :
  25670. -else
  25671. - lt_prog_compiler_static=
  25672. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25673. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25674. + inttypes.h stdint.h unistd.h
  25675. +do :
  25676. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25677. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25678. +"
  25679. +eval as_val=\$$as_ac_Header
  25680. + if test "x$as_val" = x""yes; then :
  25681. + cat >>confdefs.h <<_ACEOF
  25682. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25683. +_ACEOF
  25684. +
  25685. fi
  25686. +done
  25687. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  25688. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  25689. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  25690. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25691. -else
  25692. - lt_cv_prog_compiler_c_o=no
  25693. - $rm -r conftest 2>/dev/null
  25694. - mkdir conftest
  25695. - cd conftest
  25696. - mkdir out
  25697. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25698. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  25699. - # Insert the option either (1) after the last *FLAGS variable, or
  25700. - # (2) before a word containing "conftest.", or (3) at the end.
  25701. - # Note that $ac_compile itself does not contain backslashes and begins
  25702. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25703. - lt_compile=`echo "$ac_compile" | $SED \
  25704. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25705. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25706. - -e 's:$: $lt_compiler_flag:'`
  25707. - (eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
  25708. - (eval "$lt_compile" 2>out/conftest.err)
  25709. - ac_status=$?
  25710. - cat out/conftest.err >&5
  25711. - echo "$as_me:7386: \$? = $ac_status" >&5
  25712. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25713. - then
  25714. - # The compiler can only warn and ignore the option if not recognized
  25715. - # So say no if there are warnings
  25716. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25717. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25718. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25719. - lt_cv_prog_compiler_c_o=yes
  25720. - fi
  25721. - fi
  25722. - chmod u+w . 2>&5
  25723. - $rm conftest*
  25724. - # SGI C++ compiler will create directory out/ii_files/ for
  25725. - # template instantiation
  25726. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  25727. - $rm out/* && rmdir out
  25728. - cd ..
  25729. - rmdir conftest
  25730. - $rm conftest*
  25731. +for ac_header in dlfcn.h
  25732. +do :
  25733. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  25734. +"
  25735. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  25736. + cat >>confdefs.h <<_ACEOF
  25737. +#define HAVE_DLFCN_H 1
  25738. +_ACEOF
  25739. fi
  25740. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  25741. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  25742. +done
  25743. -hard_links="nottested"
  25744. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25745. - # do not overwrite the value of need_locks provided by the user
  25746. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  25747. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  25748. - hard_links=yes
  25749. - $rm conftest*
  25750. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25751. - touch conftest.a
  25752. - ln conftest.a conftest.b 2>&5 || hard_links=no
  25753. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25754. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  25755. -echo "${ECHO_T}$hard_links" >&6; }
  25756. - if test "$hard_links" = no; then
  25757. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25758. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25759. - need_locks=warn
  25760. - fi
  25761. +
  25762. +
  25763. +# Set options
  25764. +
  25765. +
  25766. +
  25767. + enable_dlopen=no
  25768. +
  25769. +
  25770. + enable_win32_dll=no
  25771. +
  25772. +
  25773. + # Check whether --enable-shared was given.
  25774. +if test "${enable_shared+set}" = set; then :
  25775. + enableval=$enable_shared; p=${PACKAGE-default}
  25776. + case $enableval in
  25777. + yes) enable_shared=yes ;;
  25778. + no) enable_shared=no ;;
  25779. + *)
  25780. + enable_shared=no
  25781. + # Look at the argument we got. We use all the common list separators.
  25782. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25783. + for pkg in $enableval; do
  25784. + IFS="$lt_save_ifs"
  25785. + if test "X$pkg" = "X$p"; then
  25786. + enable_shared=yes
  25787. + fi
  25788. + done
  25789. + IFS="$lt_save_ifs"
  25790. + ;;
  25791. + esac
  25792. else
  25793. - need_locks=no
  25794. + enable_shared=yes
  25795. fi
  25796. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25797. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  25798. - runpath_var=
  25799. - allow_undefined_flag=
  25800. - enable_shared_with_static_runtimes=no
  25801. - archive_cmds=
  25802. - archive_expsym_cmds=
  25803. - old_archive_From_new_cmds=
  25804. - old_archive_from_expsyms_cmds=
  25805. - export_dynamic_flag_spec=
  25806. - whole_archive_flag_spec=
  25807. - thread_safe_flag_spec=
  25808. - hardcode_libdir_flag_spec=
  25809. - hardcode_libdir_flag_spec_ld=
  25810. - hardcode_libdir_separator=
  25811. - hardcode_direct=no
  25812. - hardcode_minus_L=no
  25813. - hardcode_shlibpath_var=unsupported
  25814. - link_all_deplibs=unknown
  25815. - hardcode_automatic=no
  25816. - module_cmds=
  25817. - module_expsym_cmds=
  25818. - always_export_symbols=no
  25819. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25820. - # include_expsyms should be a list of space-separated symbols to be *always*
  25821. - # included in the symbol list
  25822. - include_expsyms=
  25823. - # exclude_expsyms can be an extended regexp of symbols to exclude
  25824. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25825. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25826. - # as well as any symbol that contains `d'.
  25827. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  25828. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25829. - # platforms (ab)use it in PIC code, but their linkers get confused if
  25830. - # the symbol is explicitly referenced. Since portable code cannot
  25831. - # rely on this symbol name, it's probably fine to never include it in
  25832. - # preloaded symbol tables.
  25833. - extract_expsyms_cmds=
  25834. - # Just being paranoid about ensuring that cc_basename is set.
  25835. - for cc_temp in $compiler""; do
  25836. - case $cc_temp in
  25837. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25838. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25839. - \-*) ;;
  25840. - *) break;;
  25841. - esac
  25842. -done
  25843. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25844. - case $host_os in
  25845. - cygwin* | mingw* | pw32*)
  25846. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25847. - # When not using gcc, we currently assume that we are using
  25848. - # Microsoft Visual C++.
  25849. - if test "$GCC" != yes; then
  25850. - with_gnu_ld=no
  25851. - fi
  25852. - ;;
  25853. - interix*)
  25854. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  25855. - with_gnu_ld=yes
  25856. - ;;
  25857. - openbsd*)
  25858. - with_gnu_ld=no
  25859. - ;;
  25860. - esac
  25861. - ld_shlibs=yes
  25862. - if test "$with_gnu_ld" = yes; then
  25863. - # If archive_cmds runs LD, not CC, wlarc should be empty
  25864. - wlarc='${wl}'
  25865. - # Set some defaults for GNU ld with shared library support. These
  25866. - # are reset later if shared libraries are not supported. Putting them
  25867. - # here allows them to be overridden if necessary.
  25868. - runpath_var=LD_RUN_PATH
  25869. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  25870. - export_dynamic_flag_spec='${wl}--export-dynamic'
  25871. - # ancient GNU ld didn't support --whole-archive et. al.
  25872. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  25873. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25874. - else
  25875. - whole_archive_flag_spec=
  25876. - fi
  25877. - supports_anon_versioning=no
  25878. - case `$LD -v 2>/dev/null` in
  25879. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25880. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25881. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25882. - *\ 2.11.*) ;; # other 2.11 versions
  25883. - *) supports_anon_versioning=yes ;;
  25884. - esac
  25885. - # See if GNU ld supports shared libraries.
  25886. - case $host_os in
  25887. - aix3* | aix4* | aix5*)
  25888. - # On AIX/PPC, the GNU linker is very broken
  25889. - if test "$host_cpu" != ia64; then
  25890. - ld_shlibs=no
  25891. - cat <<EOF 1>&2
  25892. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25893. -*** to be unable to reliably create shared libraries on AIX.
  25894. -*** Therefore, libtool is disabling shared libraries support. If you
  25895. -*** really care for shared libraries, you may want to modify your PATH
  25896. -*** so that a non-GNU linker is found, and then restart.
  25897. -EOF
  25898. - fi
  25899. +
  25900. + # Check whether --enable-static was given.
  25901. +if test "${enable_static+set}" = set; then :
  25902. + enableval=$enable_static; p=${PACKAGE-default}
  25903. + case $enableval in
  25904. + yes) enable_static=yes ;;
  25905. + no) enable_static=no ;;
  25906. + *)
  25907. + enable_static=no
  25908. + # Look at the argument we got. We use all the common list separators.
  25909. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25910. + for pkg in $enableval; do
  25911. + IFS="$lt_save_ifs"
  25912. + if test "X$pkg" = "X$p"; then
  25913. + enable_static=yes
  25914. + fi
  25915. + done
  25916. + IFS="$lt_save_ifs"
  25917. ;;
  25918. + esac
  25919. +else
  25920. + enable_static=yes
  25921. +fi
  25922. - amigaos*)
  25923. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  25924. - hardcode_libdir_flag_spec='-L$libdir'
  25925. - hardcode_minus_L=yes
  25926. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  25927. - # that the semantics of dynamic libraries on AmigaOS, at least up
  25928. - # to version 4, is to share data among multiple programs linked
  25929. - # with the same dynamic library. Since this doesn't match the
  25930. - # behavior of shared libraries on other platforms, we can't use
  25931. - # them.
  25932. - ld_shlibs=no
  25933. - ;;
  25934. - beos*)
  25935. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25936. - allow_undefined_flag=unsupported
  25937. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25938. - # support --undefined. This deserves some investigation. FIXME
  25939. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25940. - else
  25941. - ld_shlibs=no
  25942. - fi
  25943. - ;;
  25944. - cygwin* | mingw* | pw32*)
  25945. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25946. - # as there is no search path for DLLs.
  25947. - hardcode_libdir_flag_spec='-L$libdir'
  25948. - allow_undefined_flag=unsupported
  25949. - always_export_symbols=no
  25950. - enable_shared_with_static_runtimes=yes
  25951. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  25952. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25953. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25954. - # If the export-symbols file already is a .def file (1st line
  25955. - # is EXPORTS), use it as is; otherwise, prepend...
  25956. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25957. - cp $export_symbols $output_objdir/$soname.def;
  25958. - else
  25959. - echo EXPORTS > $output_objdir/$soname.def;
  25960. - cat $export_symbols >> $output_objdir/$soname.def;
  25961. - fi~
  25962. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25963. - else
  25964. - ld_shlibs=no
  25965. - fi
  25966. - ;;
  25967. - interix3*)
  25968. - hardcode_direct=no
  25969. - hardcode_shlibpath_var=no
  25970. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25971. - export_dynamic_flag_spec='${wl}-E'
  25972. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25973. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  25974. - # default) and relocated if they conflict, which is a slow very memory
  25975. - # consuming and fragmenting process. To avoid this, we pick a random,
  25976. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25977. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25978. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25979. - 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'
  25980. - ;;
  25981. - linux* | k*bsd*-gnu)
  25982. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25983. - tmp_addflag=
  25984. - case $cc_basename,$host_cpu in
  25985. - pgcc*) # Portland Group C compiler
  25986. - 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'
  25987. - tmp_addflag=' $pic_flag'
  25988. - ;;
  25989. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25990. - 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'
  25991. - tmp_addflag=' $pic_flag -Mnomain' ;;
  25992. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25993. - tmp_addflag=' -i_dynamic' ;;
  25994. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25995. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  25996. - ifc* | ifort*) # Intel Fortran compiler
  25997. - tmp_addflag=' -nofor_main' ;;
  25998. - esac
  25999. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26000. - if test $supports_anon_versioning = yes; then
  26001. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  26002. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26003. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  26004. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26005. - fi
  26006. - link_all_deplibs=no
  26007. - else
  26008. - ld_shlibs=no
  26009. - fi
  26010. - ;;
  26011. - netbsd* | netbsdelf*-gnu)
  26012. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26013. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26014. - wlarc=
  26015. - else
  26016. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26017. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26018. - fi
  26019. - ;;
  26020. - solaris*)
  26021. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  26022. - ld_shlibs=no
  26023. - cat <<EOF 1>&2
  26024. +# Check whether --with-pic was given.
  26025. +if test "${with_pic+set}" = set; then :
  26026. + withval=$with_pic; pic_mode="$withval"
  26027. +else
  26028. + pic_mode=default
  26029. +fi
  26030. +
  26031. +
  26032. +test -z "$pic_mode" && pic_mode=default
  26033. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26034. -*** create shared libraries on Solaris systems. Therefore, libtool
  26035. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26036. -*** binutils to release 2.9.1 or newer. Another option is to modify
  26037. -*** your PATH or compiler configuration so that the native linker is
  26038. -*** used, and then restart.
  26039. -EOF
  26040. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26041. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26042. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26043. - else
  26044. - ld_shlibs=no
  26045. - fi
  26046. - ;;
  26047. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26048. - case `$LD -v 2>&1` in
  26049. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26050. - ld_shlibs=no
  26051. - cat <<_LT_EOF 1>&2
  26052. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26053. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  26054. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26055. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  26056. -*** your PATH or compiler configuration so that the native linker is
  26057. -*** used, and then restart.
  26058. -_LT_EOF
  26059. - ;;
  26060. - *)
  26061. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26062. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  26063. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  26064. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  26065. - else
  26066. - ld_shlibs=no
  26067. - fi
  26068. - ;;
  26069. - esac
  26070. - ;;
  26071. - sunos4*)
  26072. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26073. - wlarc=
  26074. - hardcode_direct=yes
  26075. - hardcode_shlibpath_var=no
  26076. - ;;
  26077. + # Check whether --enable-fast-install was given.
  26078. +if test "${enable_fast_install+set}" = set; then :
  26079. + enableval=$enable_fast_install; p=${PACKAGE-default}
  26080. + case $enableval in
  26081. + yes) enable_fast_install=yes ;;
  26082. + no) enable_fast_install=no ;;
  26083. *)
  26084. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26085. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26086. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26087. - else
  26088. - ld_shlibs=no
  26089. - fi
  26090. + enable_fast_install=no
  26091. + # Look at the argument we got. We use all the common list separators.
  26092. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26093. + for pkg in $enableval; do
  26094. + IFS="$lt_save_ifs"
  26095. + if test "X$pkg" = "X$p"; then
  26096. + enable_fast_install=yes
  26097. + fi
  26098. + done
  26099. + IFS="$lt_save_ifs"
  26100. ;;
  26101. esac
  26102. +else
  26103. + enable_fast_install=yes
  26104. +fi
  26105. - if test "$ld_shlibs" = no; then
  26106. - runpath_var=
  26107. - hardcode_libdir_flag_spec=
  26108. - export_dynamic_flag_spec=
  26109. - whole_archive_flag_spec=
  26110. - fi
  26111. - else
  26112. - # PORTME fill in a description of your system's linker (not GNU ld)
  26113. - case $host_os in
  26114. - aix3*)
  26115. - allow_undefined_flag=unsupported
  26116. - always_export_symbols=yes
  26117. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  26118. - # Note: this linker hardcodes the directories in LIBPATH if there
  26119. - # are no directories specified by -L.
  26120. - hardcode_minus_L=yes
  26121. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26122. - # Neither direct hardcoding nor static linking is supported with a
  26123. - # broken collect2.
  26124. - hardcode_direct=unsupported
  26125. - fi
  26126. - ;;
  26127. - aix4* | aix5*)
  26128. - if test "$host_cpu" = ia64; then
  26129. - # On IA64, the linker does run time linking by default, so we don't
  26130. - # have to do anything special.
  26131. - aix_use_runtimelinking=no
  26132. - exp_sym_flag='-Bexport'
  26133. - no_entry_flag=""
  26134. - else
  26135. - # If we're using GNU nm, then we don't want the "-C" option.
  26136. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26137. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26138. - 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'
  26139. - else
  26140. - 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'
  26141. - fi
  26142. - aix_use_runtimelinking=no
  26143. - # Test if we are trying to use run time linking or normal
  26144. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26145. - # need to do runtime linking.
  26146. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  26147. - for ld_flag in $LDFLAGS; do
  26148. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26149. - aix_use_runtimelinking=yes
  26150. - break
  26151. - fi
  26152. - done
  26153. - ;;
  26154. - esac
  26155. - exp_sym_flag='-bexport'
  26156. - no_entry_flag='-bnoentry'
  26157. - fi
  26158. - # When large executables or shared objects are built, AIX ld can
  26159. - # have problems creating the table of contents. If linking a library
  26160. - # or program results in "error TOC overflow" add -mminimal-toc to
  26161. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26162. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26163. - archive_cmds=''
  26164. - hardcode_direct=yes
  26165. - hardcode_libdir_separator=':'
  26166. - link_all_deplibs=yes
  26167. - if test "$GCC" = yes; then
  26168. - case $host_os in aix4.[012]|aix4.[012].*)
  26169. - # We only want to do this on AIX 4.2 and lower, the check
  26170. - # below for broken collect2 doesn't work under 4.3+
  26171. - collect2name=`${CC} -print-prog-name=collect2`
  26172. - if test -f "$collect2name" && \
  26173. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26174. - then
  26175. - # We have reworked collect2
  26176. - hardcode_direct=yes
  26177. - else
  26178. - # We have old collect2
  26179. - hardcode_direct=unsupported
  26180. - # It fails to find uninstalled libraries when the uninstalled
  26181. - # path is not listed in the libpath. Setting hardcode_minus_L
  26182. - # to unsupported forces relinking
  26183. - hardcode_minus_L=yes
  26184. - hardcode_libdir_flag_spec='-L$libdir'
  26185. - hardcode_libdir_separator=
  26186. - fi
  26187. - ;;
  26188. - esac
  26189. - shared_flag='-shared'
  26190. - if test "$aix_use_runtimelinking" = yes; then
  26191. - shared_flag="$shared_flag "'${wl}-G'
  26192. - fi
  26193. - else
  26194. - # not using gcc
  26195. - if test "$host_cpu" = ia64; then
  26196. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26197. - # chokes on -Wl,-G. The following line is correct:
  26198. - shared_flag='-G'
  26199. - else
  26200. - if test "$aix_use_runtimelinking" = yes; then
  26201. - shared_flag='${wl}-G'
  26202. - else
  26203. - shared_flag='${wl}-bM:SRE'
  26204. - fi
  26205. - fi
  26206. - fi
  26207. - # It seems that -bexpall does not export symbols beginning with
  26208. - # underscore (_), so it is better to generate a list of symbols to export.
  26209. - always_export_symbols=yes
  26210. - if test "$aix_use_runtimelinking" = yes; then
  26211. - # Warning - without using the other runtime loading flags (-brtl),
  26212. - # -berok will link without error, but may produce a broken library.
  26213. - allow_undefined_flag='-berok'
  26214. - # Determine the default libpath from the value encoded in an empty executable.
  26215. - cat >conftest.$ac_ext <<_ACEOF
  26216. -/* confdefs.h. */
  26217. -_ACEOF
  26218. -cat confdefs.h >>conftest.$ac_ext
  26219. -cat >>conftest.$ac_ext <<_ACEOF
  26220. -/* end confdefs.h. */
  26221. -int
  26222. -main ()
  26223. -{
  26224. - ;
  26225. - return 0;
  26226. -}
  26227. -_ACEOF
  26228. -rm -f conftest.$ac_objext conftest$ac_exeext
  26229. -if { (ac_try="$ac_link"
  26230. -case "(($ac_try" in
  26231. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26232. - *) ac_try_echo=$ac_try;;
  26233. -esac
  26234. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26235. - (eval "$ac_link") 2>conftest.er1
  26236. - ac_status=$?
  26237. - grep -v '^ *+' conftest.er1 >conftest.err
  26238. - rm -f conftest.er1
  26239. - cat conftest.err >&5
  26240. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26241. - (exit $ac_status); } && {
  26242. - test -z "$ac_c_werror_flag" ||
  26243. - test ! -s conftest.err
  26244. - } && test -s conftest$ac_exeext &&
  26245. - $as_test_x conftest$ac_exeext; then
  26246. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26247. -}'`
  26248. -# Check for a 64-bit object if we didn't find anything.
  26249. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26250. -}'`; fi
  26251. -else
  26252. - echo "$as_me: failed program was:" >&5
  26253. -sed 's/^/| /' conftest.$ac_ext >&5
  26254. +# This can be used to rebuild libtool when needed
  26255. +LIBTOOL_DEPS="$ltmain"
  26256. +# Always use our own libtool.
  26257. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  26258. -fi
  26259. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26260. - conftest$ac_exeext conftest.$ac_ext
  26261. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26262. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26263. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  26264. - else
  26265. - if test "$host_cpu" = ia64; then
  26266. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26267. - allow_undefined_flag="-z nodefs"
  26268. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  26269. - else
  26270. - # Determine the default libpath from the value encoded in an empty executable.
  26271. - cat >conftest.$ac_ext <<_ACEOF
  26272. -/* confdefs.h. */
  26273. -_ACEOF
  26274. -cat confdefs.h >>conftest.$ac_ext
  26275. -cat >>conftest.$ac_ext <<_ACEOF
  26276. -/* end confdefs.h. */
  26277. -int
  26278. -main ()
  26279. -{
  26280. - ;
  26281. - return 0;
  26282. -}
  26283. -_ACEOF
  26284. -rm -f conftest.$ac_objext conftest$ac_exeext
  26285. -if { (ac_try="$ac_link"
  26286. -case "(($ac_try" in
  26287. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26288. - *) ac_try_echo=$ac_try;;
  26289. -esac
  26290. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26291. - (eval "$ac_link") 2>conftest.er1
  26292. - ac_status=$?
  26293. - grep -v '^ *+' conftest.er1 >conftest.err
  26294. - rm -f conftest.er1
  26295. - cat conftest.err >&5
  26296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26297. - (exit $ac_status); } && {
  26298. - test -z "$ac_c_werror_flag" ||
  26299. - test ! -s conftest.err
  26300. - } && test -s conftest$ac_exeext &&
  26301. - $as_test_x conftest$ac_exeext; then
  26302. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26303. -}'`
  26304. -# Check for a 64-bit object if we didn't find anything.
  26305. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26306. -}'`; fi
  26307. -else
  26308. - echo "$as_me: failed program was:" >&5
  26309. -sed 's/^/| /' conftest.$ac_ext >&5
  26310. -fi
  26311. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26312. - conftest$ac_exeext conftest.$ac_ext
  26313. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26314. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26315. - # Warning - without using the other run time loading flags,
  26316. - # -berok will link without error, but may produce a broken library.
  26317. - no_undefined_flag=' ${wl}-bernotok'
  26318. - allow_undefined_flag=' ${wl}-berok'
  26319. - # Exported symbols can be pulled into shared objects from archives
  26320. - whole_archive_flag_spec='$convenience'
  26321. - archive_cmds_need_lc=yes
  26322. - # This is similar to how AIX traditionally builds its shared libraries.
  26323. - 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'
  26324. - fi
  26325. - fi
  26326. - ;;
  26327. - amigaos*)
  26328. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  26329. - hardcode_libdir_flag_spec='-L$libdir'
  26330. - hardcode_minus_L=yes
  26331. - # see comment about different semantics on the GNU ld section
  26332. - ld_shlibs=no
  26333. - ;;
  26334. - bsdi[45]*)
  26335. - export_dynamic_flag_spec=-rdynamic
  26336. - ;;
  26337. - cygwin* | mingw* | pw32*)
  26338. - # When not using gcc, we currently assume that we are using
  26339. - # Microsoft Visual C++.
  26340. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  26341. - # no search path for DLLs.
  26342. - hardcode_libdir_flag_spec=' '
  26343. - allow_undefined_flag=unsupported
  26344. - # Tell ltmain to make .lib files, not .a files.
  26345. - libext=lib
  26346. - # Tell ltmain to make .dll files, not .so files.
  26347. - shrext_cmds=".dll"
  26348. - # FIXME: Setting linknames here is a bad hack.
  26349. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26350. - # The linker will automatically build a .lib file if we build a DLL.
  26351. - old_archive_From_new_cmds='true'
  26352. - # FIXME: Should let the user specify the lib program.
  26353. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  26354. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  26355. - enable_shared_with_static_runtimes=yes
  26356. - ;;
  26357. - darwin* | rhapsody*)
  26358. - case $host_os in
  26359. - rhapsody* | darwin1.[012])
  26360. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  26361. - ;;
  26362. - *) # Darwin 1.3 on
  26363. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  26364. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26365. - else
  26366. - case ${MACOSX_DEPLOYMENT_TARGET} in
  26367. - 10.[012])
  26368. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26369. - ;;
  26370. - 10.*)
  26371. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  26372. - ;;
  26373. - esac
  26374. - fi
  26375. - ;;
  26376. - esac
  26377. - archive_cmds_need_lc=no
  26378. - hardcode_direct=no
  26379. - hardcode_automatic=yes
  26380. - hardcode_shlibpath_var=unsupported
  26381. - whole_archive_flag_spec=''
  26382. - link_all_deplibs=yes
  26383. - if test "$GCC" = yes ; then
  26384. - output_verbose_link_cmd='echo'
  26385. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  26386. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26387. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26388. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26389. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26390. - else
  26391. - case $cc_basename in
  26392. - xlc*)
  26393. - output_verbose_link_cmd='echo'
  26394. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  26395. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26396. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26397. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26398. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26399. - ;;
  26400. - *)
  26401. - ld_shlibs=no
  26402. - ;;
  26403. - esac
  26404. - fi
  26405. - ;;
  26406. - dgux*)
  26407. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26408. - hardcode_libdir_flag_spec='-L$libdir'
  26409. - hardcode_shlibpath_var=no
  26410. - ;;
  26411. - freebsd1*)
  26412. - ld_shlibs=no
  26413. - ;;
  26414. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26415. - # support. Future versions do this automatically, but an explicit c++rt0.o
  26416. - # does not break anything, and helps significantly (at the cost of a little
  26417. - # extra space).
  26418. - freebsd2.2*)
  26419. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26420. - hardcode_libdir_flag_spec='-R$libdir'
  26421. - hardcode_direct=yes
  26422. - hardcode_shlibpath_var=no
  26423. - ;;
  26424. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26425. - freebsd2*)
  26426. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26427. - hardcode_direct=yes
  26428. - hardcode_minus_L=yes
  26429. - hardcode_shlibpath_var=no
  26430. - ;;
  26431. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26432. - freebsd* | dragonfly*)
  26433. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26434. - hardcode_libdir_flag_spec='-R$libdir'
  26435. - hardcode_direct=yes
  26436. - hardcode_shlibpath_var=no
  26437. - ;;
  26438. - hpux9*)
  26439. - if test "$GCC" = yes; then
  26440. - 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'
  26441. - else
  26442. - 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'
  26443. - fi
  26444. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26445. - hardcode_libdir_separator=:
  26446. - hardcode_direct=yes
  26447. - # hardcode_minus_L: Not really in the search PATH,
  26448. - # but as the default location of the library.
  26449. - hardcode_minus_L=yes
  26450. - export_dynamic_flag_spec='${wl}-E'
  26451. - ;;
  26452. - hpux10*)
  26453. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26454. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26455. - else
  26456. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26457. - fi
  26458. - if test "$with_gnu_ld" = no; then
  26459. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26460. - hardcode_libdir_separator=:
  26461. - hardcode_direct=yes
  26462. - export_dynamic_flag_spec='${wl}-E'
  26463. - # hardcode_minus_L: Not really in the search PATH,
  26464. - # but as the default location of the library.
  26465. - hardcode_minus_L=yes
  26466. - fi
  26467. - ;;
  26468. - hpux11*)
  26469. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26470. - case $host_cpu in
  26471. - hppa*64*)
  26472. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26473. - ;;
  26474. - ia64*)
  26475. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26476. - ;;
  26477. - *)
  26478. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26479. - ;;
  26480. - esac
  26481. - else
  26482. - case $host_cpu in
  26483. - hppa*64*)
  26484. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26485. - ;;
  26486. - ia64*)
  26487. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26488. - ;;
  26489. - *)
  26490. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26491. - ;;
  26492. - esac
  26493. - fi
  26494. - if test "$with_gnu_ld" = no; then
  26495. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26496. - hardcode_libdir_separator=:
  26497. +test -z "$LN_S" && LN_S="ln -s"
  26498. - case $host_cpu in
  26499. - hppa*64*|ia64*)
  26500. - hardcode_libdir_flag_spec_ld='+b $libdir'
  26501. - hardcode_direct=no
  26502. - hardcode_shlibpath_var=no
  26503. - ;;
  26504. - *)
  26505. - hardcode_direct=yes
  26506. - export_dynamic_flag_spec='${wl}-E'
  26507. - # hardcode_minus_L: Not really in the search PATH,
  26508. - # but as the default location of the library.
  26509. - hardcode_minus_L=yes
  26510. - ;;
  26511. - esac
  26512. - fi
  26513. - ;;
  26514. - irix5* | irix6* | nonstopux*)
  26515. - if test "$GCC" = yes; then
  26516. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26517. - else
  26518. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  26519. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26520. - fi
  26521. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26522. - hardcode_libdir_separator=:
  26523. - link_all_deplibs=yes
  26524. - ;;
  26525. - netbsd* | netbsdelf*-gnu)
  26526. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26527. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26528. - else
  26529. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26530. - fi
  26531. - hardcode_libdir_flag_spec='-R$libdir'
  26532. - hardcode_direct=yes
  26533. - hardcode_shlibpath_var=no
  26534. - ;;
  26535. - newsos6)
  26536. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26537. - hardcode_direct=yes
  26538. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26539. - hardcode_libdir_separator=:
  26540. - hardcode_shlibpath_var=no
  26541. - ;;
  26542. - openbsd*)
  26543. - hardcode_direct=yes
  26544. - hardcode_shlibpath_var=no
  26545. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26546. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26547. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26548. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26549. - export_dynamic_flag_spec='${wl}-E'
  26550. - else
  26551. - case $host_os in
  26552. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26553. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26554. - hardcode_libdir_flag_spec='-R$libdir'
  26555. - ;;
  26556. - *)
  26557. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26558. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26559. - ;;
  26560. - esac
  26561. - fi
  26562. - ;;
  26563. - os2*)
  26564. - hardcode_libdir_flag_spec='-L$libdir'
  26565. - hardcode_minus_L=yes
  26566. - allow_undefined_flag=unsupported
  26567. - 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'
  26568. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26569. - ;;
  26570. - osf3*)
  26571. - if test "$GCC" = yes; then
  26572. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26573. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26574. - else
  26575. - allow_undefined_flag=' -expect_unresolved \*'
  26576. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  26577. - fi
  26578. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26579. - hardcode_libdir_separator=:
  26580. - ;;
  26581. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  26582. - if test "$GCC" = yes; then
  26583. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26584. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26585. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26586. - else
  26587. - allow_undefined_flag=' -expect_unresolved \*'
  26588. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  26589. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  26590. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  26591. - # Both c and cxx compiler support -rpath directly
  26592. - hardcode_libdir_flag_spec='-rpath $libdir'
  26593. - fi
  26594. - hardcode_libdir_separator=:
  26595. - ;;
  26596. - solaris*)
  26597. - no_undefined_flag=' -z text'
  26598. - if test "$GCC" = yes; then
  26599. - wlarc='${wl}'
  26600. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26601. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26602. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  26603. - else
  26604. - wlarc=''
  26605. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26606. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26607. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  26608. - fi
  26609. - hardcode_libdir_flag_spec='-R$libdir'
  26610. - hardcode_shlibpath_var=no
  26611. - case $host_os in
  26612. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26613. - *)
  26614. - # The compiler driver will combine linker options so we
  26615. - # cannot just pass the convience library names through
  26616. - # without $wl, iff we do not link with $LD.
  26617. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  26618. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  26619. - case $wlarc in
  26620. - '')
  26621. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  26622. - *)
  26623. - whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  26624. - esac ;;
  26625. - esac
  26626. - link_all_deplibs=yes
  26627. - ;;
  26628. - sunos4*)
  26629. - if test "x$host_vendor" = xsequent; then
  26630. - # Use $CC to link under sequent, because it throws in some extra .o
  26631. - # files that make .init and .fini sections work.
  26632. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26633. - else
  26634. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26635. - fi
  26636. - hardcode_libdir_flag_spec='-L$libdir'
  26637. - hardcode_direct=yes
  26638. - hardcode_minus_L=yes
  26639. - hardcode_shlibpath_var=no
  26640. - ;;
  26641. - sysv4)
  26642. - case $host_vendor in
  26643. - sni)
  26644. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26645. - hardcode_direct=yes # is this really true???
  26646. - ;;
  26647. - siemens)
  26648. - ## LD is ld it makes a PLAMLIB
  26649. - ## CC just makes a GrossModule.
  26650. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26651. - reload_cmds='$CC -r -o $output$reload_objs'
  26652. - hardcode_direct=no
  26653. - ;;
  26654. - motorola)
  26655. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26656. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26657. - ;;
  26658. - esac
  26659. - runpath_var='LD_RUN_PATH'
  26660. - hardcode_shlibpath_var=no
  26661. - ;;
  26662. - sysv4.3*)
  26663. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26664. - hardcode_shlibpath_var=no
  26665. - export_dynamic_flag_spec='-Bexport'
  26666. - ;;
  26667. +if test -n "${ZSH_VERSION+set}" ; then
  26668. + setopt NO_GLOB_SUBST
  26669. +fi
  26670. - sysv4*MP*)
  26671. - if test -d /usr/nec; then
  26672. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26673. - hardcode_shlibpath_var=no
  26674. - runpath_var=LD_RUN_PATH
  26675. - hardcode_runpath_var=yes
  26676. - ld_shlibs=yes
  26677. - fi
  26678. - ;;
  26679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  26680. +$as_echo_n "checking for objdir... " >&6; }
  26681. +if test "${lt_cv_objdir+set}" = set; then :
  26682. + $as_echo_n "(cached) " >&6
  26683. +else
  26684. + rm -f .libs 2>/dev/null
  26685. +mkdir .libs 2>/dev/null
  26686. +if test -d .libs; then
  26687. + lt_cv_objdir=.libs
  26688. +else
  26689. + # MS-DOS does not allow filenames that begin with a dot.
  26690. + lt_cv_objdir=_libs
  26691. +fi
  26692. +rmdir .libs 2>/dev/null
  26693. +fi
  26694. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  26695. +$as_echo "$lt_cv_objdir" >&6; }
  26696. +objdir=$lt_cv_objdir
  26697. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  26698. - no_undefined_flag='${wl}-z,text'
  26699. - archive_cmds_need_lc=no
  26700. - hardcode_shlibpath_var=no
  26701. - runpath_var='LD_RUN_PATH'
  26702. - if test "$GCC" = yes; then
  26703. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26704. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26705. - else
  26706. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26707. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26708. - fi
  26709. - ;;
  26710. - sysv5* | sco3.2v5* | sco5v6*)
  26711. - # Note: We can NOT use -z defs as we might desire, because we do not
  26712. - # link with -lc, and that would cause any symbols used from libc to
  26713. - # always be unresolved, which means just about no library would
  26714. - # ever link correctly. If we're not using GNU ld we use -z text
  26715. - # though, which does catch some bad symbols but isn't as heavy-handed
  26716. - # as -z defs.
  26717. - no_undefined_flag='${wl}-z,text'
  26718. - allow_undefined_flag='${wl}-z,nodefs'
  26719. - archive_cmds_need_lc=no
  26720. - hardcode_shlibpath_var=no
  26721. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  26722. - hardcode_libdir_separator=':'
  26723. - link_all_deplibs=yes
  26724. - export_dynamic_flag_spec='${wl}-Bexport'
  26725. - runpath_var='LD_RUN_PATH'
  26726. - if test "$GCC" = yes; then
  26727. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26728. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26729. - else
  26730. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26731. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26732. - fi
  26733. - ;;
  26734. - uts4*)
  26735. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26736. - hardcode_libdir_flag_spec='-L$libdir'
  26737. - hardcode_shlibpath_var=no
  26738. - ;;
  26739. +cat >>confdefs.h <<_ACEOF
  26740. +#define LT_OBJDIR "$lt_cv_objdir/"
  26741. +_ACEOF
  26742. - *)
  26743. - ld_shlibs=no
  26744. - ;;
  26745. - esac
  26746. - fi
  26747. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  26748. -echo "${ECHO_T}$ld_shlibs" >&6; }
  26749. -test "$ld_shlibs" = no && can_build_shared=no
  26750. -#
  26751. -# Do we need to explicitly link libc?
  26752. -#
  26753. -case "x$archive_cmds_need_lc" in
  26754. -x|xyes)
  26755. - # Assume -lc should be added
  26756. - archive_cmds_need_lc=yes
  26757. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  26758. - case $archive_cmds in
  26759. - *'~'*)
  26760. - # FIXME: we may have to deal with multi-command sequences.
  26761. - ;;
  26762. - '$CC '*)
  26763. - # Test whether the compiler implicitly links with -lc since on some
  26764. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26765. - # to ld, don't add -lc before -lgcc.
  26766. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  26767. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  26768. - $rm conftest*
  26769. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26770. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26771. - (eval $ac_compile) 2>&5
  26772. - ac_status=$?
  26773. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26774. - (exit $ac_status); } 2>conftest.err; then
  26775. - soname=conftest
  26776. - lib=conftest
  26777. - libobjs=conftest.$ac_objext
  26778. - deplibs=
  26779. - wl=$lt_prog_compiler_wl
  26780. - pic_flag=$lt_prog_compiler_pic
  26781. - compiler_flags=-v
  26782. - linker_flags=-v
  26783. - verstring=
  26784. - output_objdir=.
  26785. - libname=conftest
  26786. - lt_save_allow_undefined_flag=$allow_undefined_flag
  26787. - allow_undefined_flag=
  26788. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  26789. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26790. - ac_status=$?
  26791. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26792. - (exit $ac_status); }
  26793. - then
  26794. - archive_cmds_need_lc=no
  26795. - else
  26796. - archive_cmds_need_lc=yes
  26797. - fi
  26798. - allow_undefined_flag=$lt_save_allow_undefined_flag
  26799. - else
  26800. - cat conftest.err 1>&5
  26801. - fi
  26802. - $rm conftest*
  26803. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  26804. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  26805. - ;;
  26806. - esac
  26807. +
  26808. +
  26809. +
  26810. +
  26811. +
  26812. +
  26813. +
  26814. +
  26815. +
  26816. +
  26817. +
  26818. +
  26819. +case $host_os in
  26820. +aix3*)
  26821. + # AIX sometimes has problems with the GCC collect2 program. For some
  26822. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  26823. + # vanish in a puff of smoke.
  26824. + if test "X${COLLECT_NAMES+set}" != Xset; then
  26825. + COLLECT_NAMES=
  26826. + export COLLECT_NAMES
  26827. fi
  26828. ;;
  26829. esac
  26830. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  26831. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  26832. -library_names_spec=
  26833. -libname_spec='lib$name'
  26834. -soname_spec=
  26835. -shrext_cmds=".so"
  26836. -postinstall_cmds=
  26837. -postuninstall_cmds=
  26838. -finish_cmds=
  26839. -finish_eval=
  26840. -shlibpath_var=
  26841. -shlibpath_overrides_runpath=unknown
  26842. -version_type=none
  26843. -dynamic_linker="$host_os ld.so"
  26844. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  26845. -if test "$GCC" = yes; then
  26846. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26847. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  26848. - # if the path contains ";" then we assume it to be the separator
  26849. - # otherwise default to the standard path separator (i.e. ":") - it is
  26850. - # assumed that no part of a normal pathname contains ";" but that should
  26851. - # okay in the real world where ";" in dirpaths is itself problematic.
  26852. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26853. - else
  26854. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26855. - fi
  26856. -else
  26857. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  26858. -fi
  26859. -need_lib_prefix=unknown
  26860. -hardcode_into_libs=no
  26861. -
  26862. -# when you set need_version to no, make sure it does not cause -set_version
  26863. -# flags to be left without arguments
  26864. -need_version=unknown
  26865. +# Sed substitution that helps us do robust quoting. It backslashifies
  26866. +# metacharacters that are still active within double-quoted strings.
  26867. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  26868. -case $host_os in
  26869. -aix3*)
  26870. - version_type=linux
  26871. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  26872. - shlibpath_var=LIBPATH
  26873. +# Same as above, but do not quote variable references.
  26874. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  26875. - # AIX 3 has no versioning support, so we append a major version to the name.
  26876. - soname_spec='${libname}${release}${shared_ext}$major'
  26877. - ;;
  26878. +# Sed substitution to delay expansion of an escaped shell variable in a
  26879. +# double_quote_subst'ed string.
  26880. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  26881. -aix4* | aix5*)
  26882. - version_type=linux
  26883. - need_lib_prefix=no
  26884. - need_version=no
  26885. - hardcode_into_libs=yes
  26886. - if test "$host_cpu" = ia64; then
  26887. - # AIX 5 supports IA64
  26888. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  26889. - shlibpath_var=LD_LIBRARY_PATH
  26890. - else
  26891. - # With GCC up to 2.95.x, collect2 would create an import file
  26892. - # for dependence libraries. The import file would start with
  26893. - # the line `#! .'. This would cause the generated library to
  26894. - # depend on `.', always an invalid library. This was fixed in
  26895. - # development snapshots of GCC prior to 3.0.
  26896. - case $host_os in
  26897. - aix4 | aix4.[01] | aix4.[01].*)
  26898. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  26899. - echo ' yes '
  26900. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  26901. - :
  26902. - else
  26903. - can_build_shared=no
  26904. - fi
  26905. - ;;
  26906. - esac
  26907. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26908. - # soname into executable. Probably we can add versioning support to
  26909. - # collect2, so additional links can be useful in future.
  26910. - if test "$aix_use_runtimelinking" = yes; then
  26911. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26912. - # instead of lib<name>.a to let people know that these are not
  26913. - # typical AIX shared libraries.
  26914. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26915. - else
  26916. - # We preserve .a as extension for shared libraries through AIX4.2
  26917. - # and later when we are not doing run time linking.
  26918. - library_names_spec='${libname}${release}.a $libname.a'
  26919. - soname_spec='${libname}${release}${shared_ext}$major'
  26920. - fi
  26921. - shlibpath_var=LIBPATH
  26922. - fi
  26923. - ;;
  26924. +# Sed substitution to delay expansion of an escaped single quote.
  26925. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  26926. -amigaos*)
  26927. - library_names_spec='$libname.ixlibrary $libname.a'
  26928. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26929. - 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'
  26930. - ;;
  26931. +# Sed substitution to avoid accidental globbing in evaled expressions
  26932. +no_glob_subst='s/\*/\\\*/g'
  26933. -beos*)
  26934. - library_names_spec='${libname}${shared_ext}'
  26935. - dynamic_linker="$host_os ld.so"
  26936. - shlibpath_var=LIBRARY_PATH
  26937. - ;;
  26938. +# Global variables:
  26939. +ofile=libtool
  26940. +can_build_shared=yes
  26941. -bsdi[45]*)
  26942. - version_type=linux
  26943. - need_version=no
  26944. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26945. - soname_spec='${libname}${release}${shared_ext}$major'
  26946. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26947. - shlibpath_var=LD_LIBRARY_PATH
  26948. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26949. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26950. - # the default ld.so.conf also contains /usr/contrib/lib and
  26951. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26952. - # libtool to hard-code these into programs
  26953. - ;;
  26954. +# All known linkers require a `.a' archive for static linking (except MSVC,
  26955. +# which needs '.lib').
  26956. +libext=a
  26957. -cygwin* | mingw* | pw32*)
  26958. - version_type=windows
  26959. - shrext_cmds=".dll"
  26960. - need_version=no
  26961. - need_lib_prefix=no
  26962. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  26963. - case $GCC,$host_os in
  26964. - yes,cygwin* | yes,mingw* | yes,pw32*)
  26965. - library_names_spec='$libname.dll.a'
  26966. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26967. - postinstall_cmds='base_file=`basename \${file}`~
  26968. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26969. - dldir=$destdir/`dirname \$dlpath`~
  26970. - test -d \$dldir || mkdir -p \$dldir~
  26971. - $install_prog $dir/$dlname \$dldir/$dlname~
  26972. - chmod a+x \$dldir/$dlname'
  26973. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26974. - dlpath=$dir/\$dldll~
  26975. - $rm \$dlpath'
  26976. - shlibpath_overrides_runpath=yes
  26977. +old_CC="$CC"
  26978. +old_CFLAGS="$CFLAGS"
  26979. - case $host_os in
  26980. - cygwin*)
  26981. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26982. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26983. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26984. - ;;
  26985. - mingw*)
  26986. - # MinGW DLLs use traditional 'lib' prefix
  26987. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26988. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26989. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26990. - # It is most probably a Windows format PATH printed by
  26991. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26992. - # path with ; separators, and with drive letters. We can handle the
  26993. - # drive letters (cygwin fileutils understands them), so leave them,
  26994. - # especially as we might pass files found there to a mingw objdump,
  26995. - # which wouldn't understand a cygwinified path. Ahh.
  26996. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26997. - else
  26998. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26999. - fi
  27000. - ;;
  27001. - pw32*)
  27002. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27003. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27004. - ;;
  27005. - esac
  27006. - ;;
  27007. +# Set sane defaults for various variables
  27008. +test -z "$CC" && CC=cc
  27009. +test -z "$LTCC" && LTCC=$CC
  27010. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  27011. +test -z "$LD" && LD=ld
  27012. +test -z "$ac_objext" && ac_objext=o
  27013. - *)
  27014. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27015. - ;;
  27016. +for cc_temp in $compiler""; do
  27017. + case $cc_temp in
  27018. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27019. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27020. + \-*) ;;
  27021. + *) break;;
  27022. esac
  27023. - dynamic_linker='Win32 ld.exe'
  27024. - # FIXME: first we should search . and the directory the executable is in
  27025. - shlibpath_var=PATH
  27026. - ;;
  27027. +done
  27028. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27029. -darwin* | rhapsody*)
  27030. - dynamic_linker="$host_os dyld"
  27031. - version_type=darwin
  27032. - need_lib_prefix=no
  27033. - need_version=no
  27034. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27035. - soname_spec='${libname}${release}${major}$shared_ext'
  27036. - shlibpath_overrides_runpath=yes
  27037. - shlibpath_var=DYLD_LIBRARY_PATH
  27038. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27039. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  27040. - if test "$GCC" = yes; then
  27041. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  27042. - else
  27043. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  27044. - fi
  27045. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27046. - ;;
  27047. -dgux*)
  27048. - version_type=linux
  27049. - need_lib_prefix=no
  27050. - need_version=no
  27051. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27052. - soname_spec='${libname}${release}${shared_ext}$major'
  27053. - shlibpath_var=LD_LIBRARY_PATH
  27054. +# Only perform the check for file, if the check method requires it
  27055. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  27056. +case $deplibs_check_method in
  27057. +file_magic*)
  27058. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  27059. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  27060. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  27061. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27062. + $as_echo_n "(cached) " >&6
  27063. +else
  27064. + case $MAGIC_CMD in
  27065. +[\\/*] | ?:[\\/]*)
  27066. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27067. ;;
  27068. +*)
  27069. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27070. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27071. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27072. + for ac_dir in $ac_dummy; do
  27073. + IFS="$lt_save_ifs"
  27074. + test -z "$ac_dir" && ac_dir=.
  27075. + if test -f $ac_dir/${ac_tool_prefix}file; then
  27076. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  27077. + if test -n "$file_magic_test_file"; then
  27078. + case $deplibs_check_method in
  27079. + "file_magic "*)
  27080. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27081. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27082. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27083. + $EGREP "$file_magic_regex" > /dev/null; then
  27084. + :
  27085. + else
  27086. + cat <<_LT_EOF 1>&2
  27087. -freebsd1*)
  27088. - dynamic_linker=no
  27089. +*** Warning: the command libtool uses to detect shared libraries,
  27090. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27091. +*** The result is that libtool may fail to recognize shared libraries
  27092. +*** as such. This will affect the creation of libtool libraries that
  27093. +*** depend on shared libraries, but programs linked with such libtool
  27094. +*** libraries will work regardless of this problem. Nevertheless, you
  27095. +*** may want to report the problem to your system manager and/or to
  27096. +*** bug-libtool@gnu.org
  27097. +
  27098. +_LT_EOF
  27099. + fi ;;
  27100. + esac
  27101. + fi
  27102. + break
  27103. + fi
  27104. + done
  27105. + IFS="$lt_save_ifs"
  27106. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27107. ;;
  27108. +esac
  27109. +fi
  27110. -freebsd* | dragonfly*)
  27111. - # DragonFly does not have aout. When/if they implement a new
  27112. - # versioning mechanism, adjust this.
  27113. - if test -x /usr/bin/objformat; then
  27114. - objformat=`/usr/bin/objformat`
  27115. - else
  27116. - case $host_os in
  27117. - freebsd[123]*) objformat=aout ;;
  27118. - *) objformat=elf ;;
  27119. - esac
  27120. - fi
  27121. - version_type=freebsd-$objformat
  27122. - case $version_type in
  27123. - freebsd-elf*)
  27124. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27125. - need_version=no
  27126. - need_lib_prefix=no
  27127. - ;;
  27128. - freebsd-*)
  27129. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27130. - need_version=yes
  27131. - ;;
  27132. - esac
  27133. - shlibpath_var=LD_LIBRARY_PATH
  27134. - case $host_os in
  27135. - freebsd2*)
  27136. - shlibpath_overrides_runpath=yes
  27137. - ;;
  27138. - freebsd3.[01]* | freebsdelf3.[01]*)
  27139. - shlibpath_overrides_runpath=yes
  27140. - hardcode_into_libs=yes
  27141. - ;;
  27142. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27143. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27144. - shlibpath_overrides_runpath=no
  27145. - hardcode_into_libs=yes
  27146. - ;;
  27147. - freebsd*) # from 4.6 on
  27148. - shlibpath_overrides_runpath=yes
  27149. - hardcode_into_libs=yes
  27150. - ;;
  27151. - esac
  27152. - ;;
  27153. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27154. +if test -n "$MAGIC_CMD"; then
  27155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27156. +$as_echo "$MAGIC_CMD" >&6; }
  27157. +else
  27158. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27159. +$as_echo "no" >&6; }
  27160. +fi
  27161. -gnu*)
  27162. - version_type=linux
  27163. - need_lib_prefix=no
  27164. - need_version=no
  27165. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27166. - soname_spec='${libname}${release}${shared_ext}$major'
  27167. - shlibpath_var=LD_LIBRARY_PATH
  27168. - hardcode_into_libs=yes
  27169. - ;;
  27170. -hpux9* | hpux10* | hpux11*)
  27171. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27172. - # link against other versions.
  27173. - version_type=sunos
  27174. - need_lib_prefix=no
  27175. - need_version=no
  27176. - case $host_cpu in
  27177. - ia64*)
  27178. - shrext_cmds='.so'
  27179. - hardcode_into_libs=yes
  27180. - dynamic_linker="$host_os dld.so"
  27181. - shlibpath_var=LD_LIBRARY_PATH
  27182. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27183. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27184. - soname_spec='${libname}${release}${shared_ext}$major'
  27185. - if test "X$HPUX_IA64_MODE" = X32; then
  27186. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27187. - else
  27188. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27189. - fi
  27190. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27191. - ;;
  27192. - hppa*64*)
  27193. - shrext_cmds='.sl'
  27194. - hardcode_into_libs=yes
  27195. - dynamic_linker="$host_os dld.sl"
  27196. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27197. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27198. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27199. - soname_spec='${libname}${release}${shared_ext}$major'
  27200. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27201. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27202. - ;;
  27203. - *)
  27204. - shrext_cmds='.sl'
  27205. - dynamic_linker="$host_os dld.sl"
  27206. - shlibpath_var=SHLIB_PATH
  27207. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27209. - soname_spec='${libname}${release}${shared_ext}$major'
  27210. - ;;
  27211. - esac
  27212. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27213. - postinstall_cmds='chmod 555 $lib'
  27214. - ;;
  27215. -interix3*)
  27216. - version_type=linux
  27217. - need_lib_prefix=no
  27218. - need_version=no
  27219. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27220. - soname_spec='${libname}${release}${shared_ext}$major'
  27221. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27222. - shlibpath_var=LD_LIBRARY_PATH
  27223. - shlibpath_overrides_runpath=no
  27224. - hardcode_into_libs=yes
  27225. - ;;
  27226. -irix5* | irix6* | nonstopux*)
  27227. - case $host_os in
  27228. - nonstopux*) version_type=nonstopux ;;
  27229. - *)
  27230. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27231. - version_type=linux
  27232. - else
  27233. - version_type=irix
  27234. - fi ;;
  27235. - esac
  27236. - need_lib_prefix=no
  27237. - need_version=no
  27238. - soname_spec='${libname}${release}${shared_ext}$major'
  27239. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27240. - case $host_os in
  27241. - irix5* | nonstopux*)
  27242. - libsuff= shlibsuff=
  27243. - ;;
  27244. - *)
  27245. - case $LD in # libtool.m4 will add one of these switches to LD
  27246. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27247. - libsuff= shlibsuff= libmagic=32-bit;;
  27248. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27249. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  27250. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27251. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27252. - *) libsuff= shlibsuff= libmagic=never-match;;
  27253. - esac
  27254. - ;;
  27255. - esac
  27256. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27257. - shlibpath_overrides_runpath=no
  27258. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27259. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27260. - hardcode_into_libs=yes
  27261. - ;;
  27262. -# No shared lib support for Linux oldld, aout, or coff.
  27263. -linux*oldld* | linux*aout* | linux*coff*)
  27264. - dynamic_linker=no
  27265. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  27266. + if test -n "$ac_tool_prefix"; then
  27267. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  27268. +$as_echo_n "checking for file... " >&6; }
  27269. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27270. + $as_echo_n "(cached) " >&6
  27271. +else
  27272. + case $MAGIC_CMD in
  27273. +[\\/*] | ?:[\\/]*)
  27274. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27275. ;;
  27276. +*)
  27277. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27278. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27279. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27280. + for ac_dir in $ac_dummy; do
  27281. + IFS="$lt_save_ifs"
  27282. + test -z "$ac_dir" && ac_dir=.
  27283. + if test -f $ac_dir/file; then
  27284. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  27285. + if test -n "$file_magic_test_file"; then
  27286. + case $deplibs_check_method in
  27287. + "file_magic "*)
  27288. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27289. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27290. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27291. + $EGREP "$file_magic_regex" > /dev/null; then
  27292. + :
  27293. + else
  27294. + cat <<_LT_EOF 1>&2
  27295. -# This must be Linux ELF.
  27296. -linux* | k*bsd*-gnu)
  27297. - version_type=linux
  27298. - need_lib_prefix=no
  27299. - need_version=no
  27300. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27301. - soname_spec='${libname}${release}${shared_ext}$major'
  27302. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27303. - shlibpath_var=LD_LIBRARY_PATH
  27304. - shlibpath_overrides_runpath=no
  27305. - # This implies no fast_install, which is unacceptable.
  27306. - # Some rework will be needed to allow for fast_install
  27307. - # before this can be enabled.
  27308. - hardcode_into_libs=yes
  27309. -
  27310. - # Append ld.so.conf contents to the search path
  27311. - if test -f /etc/ld.so.conf; then
  27312. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  27313. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  27314. - fi
  27315. +*** Warning: the command libtool uses to detect shared libraries,
  27316. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27317. +*** The result is that libtool may fail to recognize shared libraries
  27318. +*** as such. This will affect the creation of libtool libraries that
  27319. +*** depend on shared libraries, but programs linked with such libtool
  27320. +*** libraries will work regardless of this problem. Nevertheless, you
  27321. +*** may want to report the problem to your system manager and/or to
  27322. +*** bug-libtool@gnu.org
  27323. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  27324. - # powerpc, because MkLinux only supported shared libraries with the
  27325. - # GNU dynamic linker. Since this was broken with cross compilers,
  27326. - # most powerpc-linux boxes support dynamic linking these days and
  27327. - # people can always --disable-shared, the test was removed, and we
  27328. - # assume the GNU/Linux dynamic linker is in use.
  27329. - dynamic_linker='GNU/Linux ld.so'
  27330. +_LT_EOF
  27331. + fi ;;
  27332. + esac
  27333. + fi
  27334. + break
  27335. + fi
  27336. + done
  27337. + IFS="$lt_save_ifs"
  27338. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27339. ;;
  27340. +esac
  27341. +fi
  27342. +
  27343. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27344. +if test -n "$MAGIC_CMD"; then
  27345. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27346. +$as_echo "$MAGIC_CMD" >&6; }
  27347. +else
  27348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27349. +$as_echo "no" >&6; }
  27350. +fi
  27351. -netbsdelf*-gnu)
  27352. - version_type=linux
  27353. - need_lib_prefix=no
  27354. - need_version=no
  27355. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27356. - soname_spec='${libname}${release}${shared_ext}$major'
  27357. - shlibpath_var=LD_LIBRARY_PATH
  27358. - shlibpath_overrides_runpath=no
  27359. - hardcode_into_libs=yes
  27360. - dynamic_linker='NetBSD ld.elf_so'
  27361. - ;;
  27362. -netbsd*)
  27363. - version_type=sunos
  27364. - need_lib_prefix=no
  27365. - need_version=no
  27366. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27367. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27368. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27369. - dynamic_linker='NetBSD (a.out) ld.so'
  27370. else
  27371. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27372. - soname_spec='${libname}${release}${shared_ext}$major'
  27373. - dynamic_linker='NetBSD ld.elf_so'
  27374. + MAGIC_CMD=:
  27375. fi
  27376. - shlibpath_var=LD_LIBRARY_PATH
  27377. - shlibpath_overrides_runpath=yes
  27378. - hardcode_into_libs=yes
  27379. - ;;
  27380. +fi
  27381. -newsos6)
  27382. - version_type=linux
  27383. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27384. - shlibpath_var=LD_LIBRARY_PATH
  27385. - shlibpath_overrides_runpath=yes
  27386. + fi
  27387. ;;
  27388. +esac
  27389. -nto-qnx*)
  27390. - version_type=linux
  27391. - need_lib_prefix=no
  27392. - need_version=no
  27393. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27394. - soname_spec='${libname}${release}${shared_ext}$major'
  27395. - shlibpath_var=LD_LIBRARY_PATH
  27396. - shlibpath_overrides_runpath=yes
  27397. - ;;
  27398. +# Use C for the default configuration in the libtool script
  27399. -openbsd*)
  27400. - version_type=sunos
  27401. - sys_lib_dlsearch_path_spec="/usr/lib"
  27402. - need_lib_prefix=no
  27403. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  27404. - case $host_os in
  27405. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  27406. - *) need_version=no ;;
  27407. - esac
  27408. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27409. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27410. - shlibpath_var=LD_LIBRARY_PATH
  27411. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27412. - case $host_os in
  27413. - openbsd2.[89] | openbsd2.[89].*)
  27414. - shlibpath_overrides_runpath=no
  27415. - ;;
  27416. - *)
  27417. - shlibpath_overrides_runpath=yes
  27418. - ;;
  27419. - esac
  27420. - else
  27421. - shlibpath_overrides_runpath=yes
  27422. - fi
  27423. - ;;
  27424. +lt_save_CC="$CC"
  27425. +ac_ext=c
  27426. +ac_cpp='$CPP $CPPFLAGS'
  27427. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27428. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27429. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27430. -os2*)
  27431. - libname_spec='$name'
  27432. - shrext_cmds=".dll"
  27433. - need_lib_prefix=no
  27434. - library_names_spec='$libname${shared_ext} $libname.a'
  27435. - dynamic_linker='OS/2 ld.exe'
  27436. - shlibpath_var=LIBPATH
  27437. - ;;
  27438. -osf3* | osf4* | osf5*)
  27439. - version_type=osf
  27440. - need_lib_prefix=no
  27441. - need_version=no
  27442. - soname_spec='${libname}${release}${shared_ext}$major'
  27443. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27444. - shlibpath_var=LD_LIBRARY_PATH
  27445. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27446. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27447. - ;;
  27448. +# Source file extension for C test sources.
  27449. +ac_ext=c
  27450. -solaris*)
  27451. - version_type=linux
  27452. - need_lib_prefix=no
  27453. - need_version=no
  27454. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27455. - soname_spec='${libname}${release}${shared_ext}$major'
  27456. - shlibpath_var=LD_LIBRARY_PATH
  27457. - shlibpath_overrides_runpath=yes
  27458. - hardcode_into_libs=yes
  27459. - # ldd complains unless libraries are executable
  27460. - postinstall_cmds='chmod +x $lib'
  27461. - ;;
  27462. +# Object file extension for compiled C test sources.
  27463. +objext=o
  27464. +objext=$objext
  27465. -sunos4*)
  27466. - version_type=sunos
  27467. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27468. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27469. - shlibpath_var=LD_LIBRARY_PATH
  27470. - shlibpath_overrides_runpath=yes
  27471. - if test "$with_gnu_ld" = yes; then
  27472. - need_lib_prefix=no
  27473. - fi
  27474. - need_version=yes
  27475. - ;;
  27476. +# Code to be used in simple compile tests
  27477. +lt_simple_compile_test_code="int some_variable = 0;"
  27478. -sysv4 | sysv4.3*)
  27479. - version_type=linux
  27480. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27481. - soname_spec='${libname}${release}${shared_ext}$major'
  27482. - shlibpath_var=LD_LIBRARY_PATH
  27483. - case $host_vendor in
  27484. - sni)
  27485. - shlibpath_overrides_runpath=no
  27486. - need_lib_prefix=no
  27487. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  27488. - runpath_var=LD_RUN_PATH
  27489. - ;;
  27490. - siemens)
  27491. - need_lib_prefix=no
  27492. - ;;
  27493. - motorola)
  27494. - need_lib_prefix=no
  27495. - need_version=no
  27496. - shlibpath_overrides_runpath=no
  27497. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  27498. - ;;
  27499. - esac
  27500. - ;;
  27501. +# Code to be used in simple link tests
  27502. +lt_simple_link_test_code='int main(){return(0);}'
  27503. -sysv4*MP*)
  27504. - if test -d /usr/nec ;then
  27505. - version_type=linux
  27506. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  27507. - soname_spec='$libname${shared_ext}.$major'
  27508. - shlibpath_var=LD_LIBRARY_PATH
  27509. - fi
  27510. - ;;
  27511. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27512. - version_type=freebsd-elf
  27513. - need_lib_prefix=no
  27514. - need_version=no
  27515. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27516. - soname_spec='${libname}${release}${shared_ext}$major'
  27517. - shlibpath_var=LD_LIBRARY_PATH
  27518. - hardcode_into_libs=yes
  27519. - if test "$with_gnu_ld" = yes; then
  27520. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  27521. - shlibpath_overrides_runpath=no
  27522. - else
  27523. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  27524. - shlibpath_overrides_runpath=yes
  27525. - case $host_os in
  27526. - sco3.2v5*)
  27527. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  27528. - ;;
  27529. - esac
  27530. - fi
  27531. - sys_lib_dlsearch_path_spec='/usr/lib'
  27532. - ;;
  27533. -uts4*)
  27534. - version_type=linux
  27535. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27536. - soname_spec='${libname}${release}${shared_ext}$major'
  27537. - shlibpath_var=LD_LIBRARY_PATH
  27538. - ;;
  27539. -*)
  27540. - dynamic_linker=no
  27541. - ;;
  27542. -esac
  27543. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  27544. -echo "${ECHO_T}$dynamic_linker" >&6; }
  27545. -test "$dynamic_linker" = no && can_build_shared=no
  27546. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  27547. -if test "$GCC" = yes; then
  27548. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  27549. -fi
  27550. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  27551. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  27552. -hardcode_action=
  27553. -if test -n "$hardcode_libdir_flag_spec" || \
  27554. - test -n "$runpath_var" || \
  27555. - test "X$hardcode_automatic" = "Xyes" ; then
  27556. - # We can hardcode non-existant directories.
  27557. - if test "$hardcode_direct" != no &&
  27558. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  27559. - # have to relink, otherwise we might link with an installed library
  27560. - # when we should be linking with a yet-to-be-installed one
  27561. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  27562. - test "$hardcode_minus_L" != no; then
  27563. - # Linking always hardcodes the temporary library directory.
  27564. - hardcode_action=relink
  27565. - else
  27566. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  27567. - hardcode_action=immediate
  27568. - fi
  27569. +# If no C compiler was specified, use CC.
  27570. +LTCC=${LTCC-"$CC"}
  27571. +
  27572. +# If no C compiler flags were specified, use CFLAGS.
  27573. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27574. +
  27575. +# Allow CC to be a program name with arguments.
  27576. +compiler=$CC
  27577. +
  27578. +# Save the default compiler, since it gets overwritten when the other
  27579. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  27580. +compiler_DEFAULT=$CC
  27581. +
  27582. +# save warnings/boilerplate of simple test code
  27583. +ac_outfile=conftest.$ac_objext
  27584. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27585. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27586. +_lt_compiler_boilerplate=`cat conftest.err`
  27587. +$RM conftest*
  27588. +
  27589. +ac_outfile=conftest.$ac_objext
  27590. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27591. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27592. +_lt_linker_boilerplate=`cat conftest.err`
  27593. +$RM -r conftest*
  27594. +
  27595. +
  27596. +if test -n "$compiler"; then
  27597. +
  27598. +lt_prog_compiler_no_builtin_flag=
  27599. +
  27600. +if test "$GCC" = yes; then
  27601. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  27602. +
  27603. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  27604. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  27605. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  27606. + $as_echo_n "(cached) " >&6
  27607. else
  27608. - # We cannot hardcode anything, or else we can only hardcode existing
  27609. - # directories.
  27610. - hardcode_action=unsupported
  27611. -fi
  27612. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  27613. -echo "${ECHO_T}$hardcode_action" >&6; }
  27614. + lt_cv_prog_compiler_rtti_exceptions=no
  27615. + ac_outfile=conftest.$ac_objext
  27616. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27617. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  27618. + # Insert the option either (1) after the last *FLAGS variable, or
  27619. + # (2) before a word containing "conftest.", or (3) at the end.
  27620. + # Note that $ac_compile itself does not contain backslashes and begins
  27621. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27622. + # The option is referenced via a variable to avoid confusing sed.
  27623. + lt_compile=`echo "$ac_compile" | $SED \
  27624. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27625. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27626. + -e 's:$: $lt_compiler_flag:'`
  27627. + (eval echo "\"\$as_me:7396: $lt_compile\"" >&5)
  27628. + (eval "$lt_compile" 2>conftest.err)
  27629. + ac_status=$?
  27630. + cat conftest.err >&5
  27631. + echo "$as_me:7400: \$? = $ac_status" >&5
  27632. + if (exit $ac_status) && test -s "$ac_outfile"; then
  27633. + # The compiler can only warn and ignore the option if not recognized
  27634. + # So say no if there are warnings other than the usual output.
  27635. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27636. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27637. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27638. + lt_cv_prog_compiler_rtti_exceptions=yes
  27639. + fi
  27640. + fi
  27641. + $RM conftest*
  27642. -if test "$hardcode_action" = relink; then
  27643. - # Fast installation is not supported
  27644. - enable_fast_install=no
  27645. -elif test "$shlibpath_overrides_runpath" = yes ||
  27646. - test "$enable_shared" = no; then
  27647. - # Fast installation is not necessary
  27648. - enable_fast_install=needless
  27649. fi
  27650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  27651. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  27652. -striplib=
  27653. -old_striplib=
  27654. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  27655. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  27656. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  27657. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  27658. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  27659. - { echo "$as_me:$LINENO: result: yes" >&5
  27660. -echo "${ECHO_T}yes" >&6; }
  27661. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  27662. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  27663. else
  27664. -# FIXME - insert some real tests, host_os isn't really good enough
  27665. - case $host_os in
  27666. - darwin*)
  27667. - if test -n "$STRIP" ; then
  27668. - striplib="$STRIP -x"
  27669. - { echo "$as_me:$LINENO: result: yes" >&5
  27670. -echo "${ECHO_T}yes" >&6; }
  27671. - else
  27672. - { echo "$as_me:$LINENO: result: no" >&5
  27673. -echo "${ECHO_T}no" >&6; }
  27674. + :
  27675. fi
  27676. - ;;
  27677. - *)
  27678. - { echo "$as_me:$LINENO: result: no" >&5
  27679. -echo "${ECHO_T}no" >&6; }
  27680. - ;;
  27681. - esac
  27682. +
  27683. fi
  27684. -if test "x$enable_dlopen" != xyes; then
  27685. - enable_dlopen=unknown
  27686. - enable_dlopen_self=unknown
  27687. - enable_dlopen_self_static=unknown
  27688. -else
  27689. - lt_cv_dlopen=no
  27690. - lt_cv_dlopen_libs=
  27691. - case $host_os in
  27692. - beos*)
  27693. - lt_cv_dlopen="load_add_on"
  27694. - lt_cv_dlopen_libs=
  27695. - lt_cv_dlopen_self=yes
  27696. - ;;
  27697. - mingw* | pw32*)
  27698. - lt_cv_dlopen="LoadLibrary"
  27699. - lt_cv_dlopen_libs=
  27700. - ;;
  27701. - cygwin*)
  27702. - lt_cv_dlopen="dlopen"
  27703. - lt_cv_dlopen_libs=
  27704. - ;;
  27705. - darwin*)
  27706. - # if libdl is installed we need to link against it
  27707. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27708. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  27709. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27710. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27711. -else
  27712. - ac_check_lib_save_LIBS=$LIBS
  27713. -LIBS="-ldl $LIBS"
  27714. -cat >conftest.$ac_ext <<_ACEOF
  27715. -/* confdefs.h. */
  27716. -_ACEOF
  27717. -cat confdefs.h >>conftest.$ac_ext
  27718. -cat >>conftest.$ac_ext <<_ACEOF
  27719. -/* end confdefs.h. */
  27720. -/* Override any GCC internal prototype to avoid an error.
  27721. - Use char because int might match the return type of a GCC
  27722. - builtin and then its argument prototype would still apply. */
  27723. -#ifdef __cplusplus
  27724. -extern "C"
  27725. -#endif
  27726. -char dlopen ();
  27727. -int
  27728. -main ()
  27729. -{
  27730. -return dlopen ();
  27731. - ;
  27732. - return 0;
  27733. -}
  27734. -_ACEOF
  27735. -rm -f conftest.$ac_objext conftest$ac_exeext
  27736. -if { (ac_try="$ac_link"
  27737. -case "(($ac_try" in
  27738. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27739. - *) ac_try_echo=$ac_try;;
  27740. -esac
  27741. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27742. - (eval "$ac_link") 2>conftest.er1
  27743. - ac_status=$?
  27744. - grep -v '^ *+' conftest.er1 >conftest.err
  27745. - rm -f conftest.er1
  27746. - cat conftest.err >&5
  27747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27748. - (exit $ac_status); } && {
  27749. - test -z "$ac_c_werror_flag" ||
  27750. - test ! -s conftest.err
  27751. - } && test -s conftest$ac_exeext &&
  27752. - $as_test_x conftest$ac_exeext; then
  27753. - ac_cv_lib_dl_dlopen=yes
  27754. -else
  27755. - echo "$as_me: failed program was:" >&5
  27756. -sed 's/^/| /' conftest.$ac_ext >&5
  27757. + lt_prog_compiler_wl=
  27758. +lt_prog_compiler_pic=
  27759. +lt_prog_compiler_static=
  27760. - ac_cv_lib_dl_dlopen=no
  27761. -fi
  27762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  27763. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  27764. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27765. - conftest$ac_exeext conftest.$ac_ext
  27766. -LIBS=$ac_check_lib_save_LIBS
  27767. -fi
  27768. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  27769. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  27770. -if test $ac_cv_lib_dl_dlopen = yes; then
  27771. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  27772. -else
  27773. + if test "$GCC" = yes; then
  27774. + lt_prog_compiler_wl='-Wl,'
  27775. + lt_prog_compiler_static='-static'
  27776. - lt_cv_dlopen="dyld"
  27777. - lt_cv_dlopen_libs=
  27778. - lt_cv_dlopen_self=yes
  27779. + case $host_os in
  27780. + aix*)
  27781. + # All AIX code is PIC.
  27782. + if test "$host_cpu" = ia64; then
  27783. + # AIX 5 now supports IA64 processor
  27784. + lt_prog_compiler_static='-Bstatic'
  27785. + fi
  27786. + ;;
  27787. -fi
  27788. + amigaos*)
  27789. + case $host_cpu in
  27790. + powerpc)
  27791. + # see comment about AmigaOS4 .so support
  27792. + lt_prog_compiler_pic='-fPIC'
  27793. + ;;
  27794. + m68k)
  27795. + # FIXME: we need at least 68020 code to build shared libraries, but
  27796. + # adding the `-m68020' flag to GCC prevents building anything better,
  27797. + # like `-m68040'.
  27798. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  27799. + ;;
  27800. + esac
  27801. + ;;
  27802. - ;;
  27803. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27804. + # PIC is the default for these OSes.
  27805. + ;;
  27806. - *)
  27807. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  27808. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  27809. -if test "${ac_cv_func_shl_load+set}" = set; then
  27810. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27811. -else
  27812. - cat >conftest.$ac_ext <<_ACEOF
  27813. -/* confdefs.h. */
  27814. -_ACEOF
  27815. -cat confdefs.h >>conftest.$ac_ext
  27816. -cat >>conftest.$ac_ext <<_ACEOF
  27817. -/* end confdefs.h. */
  27818. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  27819. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27820. -#define shl_load innocuous_shl_load
  27821. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  27822. + # This hack is so that the source file can tell whether it is being
  27823. + # built for inclusion in a dll (and should export symbols for example).
  27824. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27825. + # (--disable-auto-import) libraries
  27826. + lt_prog_compiler_pic='-DDLL_EXPORT'
  27827. + ;;
  27828. -/* System header to define __stub macros and hopefully few prototypes,
  27829. - which can conflict with char shl_load (); below.
  27830. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27831. - <limits.h> exists even on freestanding compilers. */
  27832. + darwin* | rhapsody*)
  27833. + # PIC is the default on this platform
  27834. + # Common symbols not allowed in MH_DYLIB files
  27835. + lt_prog_compiler_pic='-fno-common'
  27836. + ;;
  27837. -#ifdef __STDC__
  27838. -# include <limits.h>
  27839. -#else
  27840. -# include <assert.h>
  27841. -#endif
  27842. + hpux*)
  27843. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  27844. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  27845. + # sets the default TLS model and affects inlining.
  27846. + case $host_cpu in
  27847. + hppa*64*)
  27848. + # +Z the default
  27849. + ;;
  27850. + *)
  27851. + lt_prog_compiler_pic='-fPIC'
  27852. + ;;
  27853. + esac
  27854. + ;;
  27855. -#undef shl_load
  27856. + interix[3-9]*)
  27857. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27858. + # Instead, we relocate shared libraries at runtime.
  27859. + ;;
  27860. -/* Override any GCC internal prototype to avoid an error.
  27861. - Use char because int might match the return type of a GCC
  27862. - builtin and then its argument prototype would still apply. */
  27863. -#ifdef __cplusplus
  27864. -extern "C"
  27865. -#endif
  27866. -char shl_load ();
  27867. -/* The GNU C library defines this for functions which it implements
  27868. - to always fail with ENOSYS. Some functions are actually named
  27869. - something starting with __ and the normal name is an alias. */
  27870. -#if defined __stub_shl_load || defined __stub___shl_load
  27871. -choke me
  27872. -#endif
  27873. + msdosdjgpp*)
  27874. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  27875. + # on systems that don't support them.
  27876. + lt_prog_compiler_can_build_shared=no
  27877. + enable_shared=no
  27878. + ;;
  27879. -int
  27880. -main ()
  27881. -{
  27882. -return shl_load ();
  27883. - ;
  27884. - return 0;
  27885. -}
  27886. -_ACEOF
  27887. -rm -f conftest.$ac_objext conftest$ac_exeext
  27888. -if { (ac_try="$ac_link"
  27889. -case "(($ac_try" in
  27890. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27891. - *) ac_try_echo=$ac_try;;
  27892. -esac
  27893. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27894. - (eval "$ac_link") 2>conftest.er1
  27895. - ac_status=$?
  27896. - grep -v '^ *+' conftest.er1 >conftest.err
  27897. - rm -f conftest.er1
  27898. - cat conftest.err >&5
  27899. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27900. - (exit $ac_status); } && {
  27901. - test -z "$ac_c_werror_flag" ||
  27902. - test ! -s conftest.err
  27903. - } && test -s conftest$ac_exeext &&
  27904. - $as_test_x conftest$ac_exeext; then
  27905. - ac_cv_func_shl_load=yes
  27906. -else
  27907. - echo "$as_me: failed program was:" >&5
  27908. -sed 's/^/| /' conftest.$ac_ext >&5
  27909. + *nto* | *qnx*)
  27910. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  27911. + # it will coredump.
  27912. + lt_prog_compiler_pic='-fPIC -shared'
  27913. + ;;
  27914. - ac_cv_func_shl_load=no
  27915. -fi
  27916. + sysv4*MP*)
  27917. + if test -d /usr/nec; then
  27918. + lt_prog_compiler_pic=-Kconform_pic
  27919. + fi
  27920. + ;;
  27921. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27922. - conftest$ac_exeext conftest.$ac_ext
  27923. -fi
  27924. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  27925. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  27926. -if test $ac_cv_func_shl_load = yes; then
  27927. - lt_cv_dlopen="shl_load"
  27928. -else
  27929. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  27930. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  27931. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  27932. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27933. -else
  27934. - ac_check_lib_save_LIBS=$LIBS
  27935. -LIBS="-ldld $LIBS"
  27936. -cat >conftest.$ac_ext <<_ACEOF
  27937. -/* confdefs.h. */
  27938. -_ACEOF
  27939. -cat confdefs.h >>conftest.$ac_ext
  27940. -cat >>conftest.$ac_ext <<_ACEOF
  27941. -/* end confdefs.h. */
  27942. + *)
  27943. + lt_prog_compiler_pic='-fPIC'
  27944. + ;;
  27945. + esac
  27946. + else
  27947. + # PORTME Check for flag to pass linker flags through the system compiler.
  27948. + case $host_os in
  27949. + aix*)
  27950. + lt_prog_compiler_wl='-Wl,'
  27951. + if test "$host_cpu" = ia64; then
  27952. + # AIX 5 now supports IA64 processor
  27953. + lt_prog_compiler_static='-Bstatic'
  27954. + else
  27955. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  27956. + fi
  27957. + ;;
  27958. -/* Override any GCC internal prototype to avoid an error.
  27959. - Use char because int might match the return type of a GCC
  27960. - builtin and then its argument prototype would still apply. */
  27961. -#ifdef __cplusplus
  27962. -extern "C"
  27963. -#endif
  27964. -char shl_load ();
  27965. -int
  27966. -main ()
  27967. -{
  27968. -return shl_load ();
  27969. - ;
  27970. - return 0;
  27971. -}
  27972. -_ACEOF
  27973. -rm -f conftest.$ac_objext conftest$ac_exeext
  27974. -if { (ac_try="$ac_link"
  27975. -case "(($ac_try" in
  27976. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27977. - *) ac_try_echo=$ac_try;;
  27978. -esac
  27979. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27980. - (eval "$ac_link") 2>conftest.er1
  27981. - ac_status=$?
  27982. - grep -v '^ *+' conftest.er1 >conftest.err
  27983. - rm -f conftest.er1
  27984. - cat conftest.err >&5
  27985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27986. - (exit $ac_status); } && {
  27987. - test -z "$ac_c_werror_flag" ||
  27988. - test ! -s conftest.err
  27989. - } && test -s conftest$ac_exeext &&
  27990. - $as_test_x conftest$ac_exeext; then
  27991. - ac_cv_lib_dld_shl_load=yes
  27992. -else
  27993. - echo "$as_me: failed program was:" >&5
  27994. -sed 's/^/| /' conftest.$ac_ext >&5
  27995. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  27996. + # This hack is so that the source file can tell whether it is being
  27997. + # built for inclusion in a dll (and should export symbols for example).
  27998. + lt_prog_compiler_pic='-DDLL_EXPORT'
  27999. + ;;
  28000. - ac_cv_lib_dld_shl_load=no
  28001. -fi
  28002. + hpux9* | hpux10* | hpux11*)
  28003. + lt_prog_compiler_wl='-Wl,'
  28004. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28005. + # not for PA HP-UX.
  28006. + case $host_cpu in
  28007. + hppa*64*|ia64*)
  28008. + # +Z the default
  28009. + ;;
  28010. + *)
  28011. + lt_prog_compiler_pic='+Z'
  28012. + ;;
  28013. + esac
  28014. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  28015. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  28016. + ;;
  28017. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28018. - conftest$ac_exeext conftest.$ac_ext
  28019. -LIBS=$ac_check_lib_save_LIBS
  28020. -fi
  28021. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  28022. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  28023. -if test $ac_cv_lib_dld_shl_load = yes; then
  28024. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  28025. -else
  28026. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  28027. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  28028. -if test "${ac_cv_func_dlopen+set}" = set; then
  28029. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28030. -else
  28031. - cat >conftest.$ac_ext <<_ACEOF
  28032. -/* confdefs.h. */
  28033. -_ACEOF
  28034. -cat confdefs.h >>conftest.$ac_ext
  28035. -cat >>conftest.$ac_ext <<_ACEOF
  28036. -/* end confdefs.h. */
  28037. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  28038. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28039. -#define dlopen innocuous_dlopen
  28040. + irix5* | irix6* | nonstopux*)
  28041. + lt_prog_compiler_wl='-Wl,'
  28042. + # PIC (with -KPIC) is the default.
  28043. + lt_prog_compiler_static='-non_shared'
  28044. + ;;
  28045. -/* System header to define __stub macros and hopefully few prototypes,
  28046. - which can conflict with char dlopen (); below.
  28047. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28048. - <limits.h> exists even on freestanding compilers. */
  28049. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  28050. + case $cc_basename in
  28051. + # old Intel for x86_64 which still supported -KPIC.
  28052. + ecc*)
  28053. + lt_prog_compiler_wl='-Wl,'
  28054. + lt_prog_compiler_pic='-KPIC'
  28055. + lt_prog_compiler_static='-static'
  28056. + ;;
  28057. + # icc used to be incompatible with GCC.
  28058. + # ICC 10 doesn't accept -KPIC any more.
  28059. + icc* | ifort*)
  28060. + lt_prog_compiler_wl='-Wl,'
  28061. + lt_prog_compiler_pic='-fPIC'
  28062. + lt_prog_compiler_static='-static'
  28063. + ;;
  28064. + # Lahey Fortran 8.1.
  28065. + lf95*)
  28066. + lt_prog_compiler_wl='-Wl,'
  28067. + lt_prog_compiler_pic='--shared'
  28068. + lt_prog_compiler_static='--static'
  28069. + ;;
  28070. + pgcc* | pgf77* | pgf90* | pgf95*)
  28071. + # Portland Group compilers (*not* the Pentium gcc compiler,
  28072. + # which looks to be a dead project)
  28073. + lt_prog_compiler_wl='-Wl,'
  28074. + lt_prog_compiler_pic='-fpic'
  28075. + lt_prog_compiler_static='-Bstatic'
  28076. + ;;
  28077. + ccc*)
  28078. + lt_prog_compiler_wl='-Wl,'
  28079. + # All Alpha code is PIC.
  28080. + lt_prog_compiler_static='-non_shared'
  28081. + ;;
  28082. + xl*)
  28083. + # IBM XL C 8.0/Fortran 10.1 on PPC
  28084. + lt_prog_compiler_wl='-Wl,'
  28085. + lt_prog_compiler_pic='-qpic'
  28086. + lt_prog_compiler_static='-qstaticlink'
  28087. + ;;
  28088. + *)
  28089. + case `$CC -V 2>&1 | sed 5q` in
  28090. + *Sun\ C*)
  28091. + # Sun C 5.9
  28092. + lt_prog_compiler_pic='-KPIC'
  28093. + lt_prog_compiler_static='-Bstatic'
  28094. + lt_prog_compiler_wl='-Wl,'
  28095. + ;;
  28096. + *Sun\ F*)
  28097. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  28098. + lt_prog_compiler_pic='-KPIC'
  28099. + lt_prog_compiler_static='-Bstatic'
  28100. + lt_prog_compiler_wl=''
  28101. + ;;
  28102. + esac
  28103. + ;;
  28104. + esac
  28105. + ;;
  28106. -#ifdef __STDC__
  28107. -# include <limits.h>
  28108. -#else
  28109. -# include <assert.h>
  28110. -#endif
  28111. + newsos6)
  28112. + lt_prog_compiler_pic='-KPIC'
  28113. + lt_prog_compiler_static='-Bstatic'
  28114. + ;;
  28115. -#undef dlopen
  28116. + *nto* | *qnx*)
  28117. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  28118. + # it will coredump.
  28119. + lt_prog_compiler_pic='-fPIC -shared'
  28120. + ;;
  28121. -/* Override any GCC internal prototype to avoid an error.
  28122. - Use char because int might match the return type of a GCC
  28123. - builtin and then its argument prototype would still apply. */
  28124. -#ifdef __cplusplus
  28125. -extern "C"
  28126. -#endif
  28127. -char dlopen ();
  28128. -/* The GNU C library defines this for functions which it implements
  28129. - to always fail with ENOSYS. Some functions are actually named
  28130. - something starting with __ and the normal name is an alias. */
  28131. -#if defined __stub_dlopen || defined __stub___dlopen
  28132. -choke me
  28133. -#endif
  28134. + osf3* | osf4* | osf5*)
  28135. + lt_prog_compiler_wl='-Wl,'
  28136. + # All OSF/1 code is PIC.
  28137. + lt_prog_compiler_static='-non_shared'
  28138. + ;;
  28139. -int
  28140. -main ()
  28141. -{
  28142. -return dlopen ();
  28143. - ;
  28144. - return 0;
  28145. -}
  28146. -_ACEOF
  28147. -rm -f conftest.$ac_objext conftest$ac_exeext
  28148. -if { (ac_try="$ac_link"
  28149. -case "(($ac_try" in
  28150. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28151. - *) ac_try_echo=$ac_try;;
  28152. -esac
  28153. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28154. - (eval "$ac_link") 2>conftest.er1
  28155. - ac_status=$?
  28156. - grep -v '^ *+' conftest.er1 >conftest.err
  28157. - rm -f conftest.er1
  28158. - cat conftest.err >&5
  28159. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28160. - (exit $ac_status); } && {
  28161. - test -z "$ac_c_werror_flag" ||
  28162. - test ! -s conftest.err
  28163. - } && test -s conftest$ac_exeext &&
  28164. - $as_test_x conftest$ac_exeext; then
  28165. - ac_cv_func_dlopen=yes
  28166. -else
  28167. - echo "$as_me: failed program was:" >&5
  28168. -sed 's/^/| /' conftest.$ac_ext >&5
  28169. + rdos*)
  28170. + lt_prog_compiler_static='-non_shared'
  28171. + ;;
  28172. - ac_cv_func_dlopen=no
  28173. -fi
  28174. + solaris*)
  28175. + lt_prog_compiler_pic='-KPIC'
  28176. + lt_prog_compiler_static='-Bstatic'
  28177. + case $cc_basename in
  28178. + f77* | f90* | f95*)
  28179. + lt_prog_compiler_wl='-Qoption ld ';;
  28180. + *)
  28181. + lt_prog_compiler_wl='-Wl,';;
  28182. + esac
  28183. + ;;
  28184. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28185. - conftest$ac_exeext conftest.$ac_ext
  28186. -fi
  28187. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  28188. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  28189. -if test $ac_cv_func_dlopen = yes; then
  28190. - lt_cv_dlopen="dlopen"
  28191. -else
  28192. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  28193. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  28194. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  28195. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28196. -else
  28197. - ac_check_lib_save_LIBS=$LIBS
  28198. -LIBS="-ldl $LIBS"
  28199. -cat >conftest.$ac_ext <<_ACEOF
  28200. -/* confdefs.h. */
  28201. -_ACEOF
  28202. -cat confdefs.h >>conftest.$ac_ext
  28203. -cat >>conftest.$ac_ext <<_ACEOF
  28204. -/* end confdefs.h. */
  28205. + sunos4*)
  28206. + lt_prog_compiler_wl='-Qoption ld '
  28207. + lt_prog_compiler_pic='-PIC'
  28208. + lt_prog_compiler_static='-Bstatic'
  28209. + ;;
  28210. -/* Override any GCC internal prototype to avoid an error.
  28211. - Use char because int might match the return type of a GCC
  28212. - builtin and then its argument prototype would still apply. */
  28213. -#ifdef __cplusplus
  28214. -extern "C"
  28215. -#endif
  28216. -char dlopen ();
  28217. -int
  28218. -main ()
  28219. -{
  28220. -return dlopen ();
  28221. - ;
  28222. - return 0;
  28223. -}
  28224. -_ACEOF
  28225. -rm -f conftest.$ac_objext conftest$ac_exeext
  28226. -if { (ac_try="$ac_link"
  28227. -case "(($ac_try" in
  28228. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28229. - *) ac_try_echo=$ac_try;;
  28230. -esac
  28231. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28232. - (eval "$ac_link") 2>conftest.er1
  28233. - ac_status=$?
  28234. - grep -v '^ *+' conftest.er1 >conftest.err
  28235. - rm -f conftest.er1
  28236. - cat conftest.err >&5
  28237. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28238. - (exit $ac_status); } && {
  28239. - test -z "$ac_c_werror_flag" ||
  28240. - test ! -s conftest.err
  28241. - } && test -s conftest$ac_exeext &&
  28242. - $as_test_x conftest$ac_exeext; then
  28243. - ac_cv_lib_dl_dlopen=yes
  28244. -else
  28245. - echo "$as_me: failed program was:" >&5
  28246. -sed 's/^/| /' conftest.$ac_ext >&5
  28247. + sysv4 | sysv4.2uw2* | sysv4.3*)
  28248. + lt_prog_compiler_wl='-Wl,'
  28249. + lt_prog_compiler_pic='-KPIC'
  28250. + lt_prog_compiler_static='-Bstatic'
  28251. + ;;
  28252. - ac_cv_lib_dl_dlopen=no
  28253. -fi
  28254. + sysv4*MP*)
  28255. + if test -d /usr/nec ;then
  28256. + lt_prog_compiler_pic='-Kconform_pic'
  28257. + lt_prog_compiler_static='-Bstatic'
  28258. + fi
  28259. + ;;
  28260. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28261. - conftest$ac_exeext conftest.$ac_ext
  28262. -LIBS=$ac_check_lib_save_LIBS
  28263. -fi
  28264. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  28265. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  28266. -if test $ac_cv_lib_dl_dlopen = yes; then
  28267. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28268. -else
  28269. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  28270. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  28271. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  28272. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28273. -else
  28274. - ac_check_lib_save_LIBS=$LIBS
  28275. -LIBS="-lsvld $LIBS"
  28276. -cat >conftest.$ac_ext <<_ACEOF
  28277. -/* confdefs.h. */
  28278. -_ACEOF
  28279. -cat confdefs.h >>conftest.$ac_ext
  28280. -cat >>conftest.$ac_ext <<_ACEOF
  28281. -/* end confdefs.h. */
  28282. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28283. + lt_prog_compiler_wl='-Wl,'
  28284. + lt_prog_compiler_pic='-KPIC'
  28285. + lt_prog_compiler_static='-Bstatic'
  28286. + ;;
  28287. -/* Override any GCC internal prototype to avoid an error.
  28288. - Use char because int might match the return type of a GCC
  28289. - builtin and then its argument prototype would still apply. */
  28290. -#ifdef __cplusplus
  28291. -extern "C"
  28292. -#endif
  28293. -char dlopen ();
  28294. -int
  28295. -main ()
  28296. -{
  28297. -return dlopen ();
  28298. - ;
  28299. - return 0;
  28300. -}
  28301. -_ACEOF
  28302. -rm -f conftest.$ac_objext conftest$ac_exeext
  28303. -if { (ac_try="$ac_link"
  28304. -case "(($ac_try" in
  28305. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28306. - *) ac_try_echo=$ac_try;;
  28307. -esac
  28308. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28309. - (eval "$ac_link") 2>conftest.er1
  28310. - ac_status=$?
  28311. - grep -v '^ *+' conftest.er1 >conftest.err
  28312. - rm -f conftest.er1
  28313. - cat conftest.err >&5
  28314. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28315. - (exit $ac_status); } && {
  28316. - test -z "$ac_c_werror_flag" ||
  28317. - test ! -s conftest.err
  28318. - } && test -s conftest$ac_exeext &&
  28319. - $as_test_x conftest$ac_exeext; then
  28320. - ac_cv_lib_svld_dlopen=yes
  28321. -else
  28322. - echo "$as_me: failed program was:" >&5
  28323. -sed 's/^/| /' conftest.$ac_ext >&5
  28324. + unicos*)
  28325. + lt_prog_compiler_wl='-Wl,'
  28326. + lt_prog_compiler_can_build_shared=no
  28327. + ;;
  28328. - ac_cv_lib_svld_dlopen=no
  28329. -fi
  28330. + uts4*)
  28331. + lt_prog_compiler_pic='-pic'
  28332. + lt_prog_compiler_static='-Bstatic'
  28333. + ;;
  28334. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28335. - conftest$ac_exeext conftest.$ac_ext
  28336. -LIBS=$ac_check_lib_save_LIBS
  28337. -fi
  28338. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  28339. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  28340. -if test $ac_cv_lib_svld_dlopen = yes; then
  28341. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  28342. -else
  28343. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  28344. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  28345. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  28346. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28347. -else
  28348. - ac_check_lib_save_LIBS=$LIBS
  28349. -LIBS="-ldld $LIBS"
  28350. -cat >conftest.$ac_ext <<_ACEOF
  28351. -/* confdefs.h. */
  28352. -_ACEOF
  28353. -cat confdefs.h >>conftest.$ac_ext
  28354. -cat >>conftest.$ac_ext <<_ACEOF
  28355. -/* end confdefs.h. */
  28356. + *)
  28357. + lt_prog_compiler_can_build_shared=no
  28358. + ;;
  28359. + esac
  28360. + fi
  28361. -/* Override any GCC internal prototype to avoid an error.
  28362. - Use char because int might match the return type of a GCC
  28363. - builtin and then its argument prototype would still apply. */
  28364. -#ifdef __cplusplus
  28365. -extern "C"
  28366. -#endif
  28367. -char dld_link ();
  28368. -int
  28369. -main ()
  28370. -{
  28371. -return dld_link ();
  28372. - ;
  28373. - return 0;
  28374. -}
  28375. -_ACEOF
  28376. -rm -f conftest.$ac_objext conftest$ac_exeext
  28377. -if { (ac_try="$ac_link"
  28378. -case "(($ac_try" in
  28379. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28380. - *) ac_try_echo=$ac_try;;
  28381. +case $host_os in
  28382. + # For platforms which do not support PIC, -DPIC is meaningless:
  28383. + *djgpp*)
  28384. + lt_prog_compiler_pic=
  28385. + ;;
  28386. + *)
  28387. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  28388. + ;;
  28389. esac
  28390. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28391. - (eval "$ac_link") 2>conftest.er1
  28392. - ac_status=$?
  28393. - grep -v '^ *+' conftest.er1 >conftest.err
  28394. - rm -f conftest.er1
  28395. - cat conftest.err >&5
  28396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28397. - (exit $ac_status); } && {
  28398. - test -z "$ac_c_werror_flag" ||
  28399. - test ! -s conftest.err
  28400. - } && test -s conftest$ac_exeext &&
  28401. - $as_test_x conftest$ac_exeext; then
  28402. - ac_cv_lib_dld_dld_link=yes
  28403. -else
  28404. - echo "$as_me: failed program was:" >&5
  28405. -sed 's/^/| /' conftest.$ac_ext >&5
  28406. -
  28407. - ac_cv_lib_dld_dld_link=no
  28408. -fi
  28409. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  28410. +$as_echo "$lt_prog_compiler_pic" >&6; }
  28411. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28412. - conftest$ac_exeext conftest.$ac_ext
  28413. -LIBS=$ac_check_lib_save_LIBS
  28414. -fi
  28415. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  28416. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  28417. -if test $ac_cv_lib_dld_dld_link = yes; then
  28418. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  28419. -fi
  28420. -fi
  28421. -fi
  28422. +#
  28423. +# Check to make sure the PIC flag actually works.
  28424. +#
  28425. +if test -n "$lt_prog_compiler_pic"; then
  28426. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  28427. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  28428. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  28429. + $as_echo_n "(cached) " >&6
  28430. +else
  28431. + lt_cv_prog_compiler_pic_works=no
  28432. + ac_outfile=conftest.$ac_objext
  28433. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28434. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  28435. + # Insert the option either (1) after the last *FLAGS variable, or
  28436. + # (2) before a word containing "conftest.", or (3) at the end.
  28437. + # Note that $ac_compile itself does not contain backslashes and begins
  28438. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28439. + # The option is referenced via a variable to avoid confusing sed.
  28440. + lt_compile=`echo "$ac_compile" | $SED \
  28441. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28442. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28443. + -e 's:$: $lt_compiler_flag:'`
  28444. + (eval echo "\"\$as_me:7735: $lt_compile\"" >&5)
  28445. + (eval "$lt_compile" 2>conftest.err)
  28446. + ac_status=$?
  28447. + cat conftest.err >&5
  28448. + echo "$as_me:7739: \$? = $ac_status" >&5
  28449. + if (exit $ac_status) && test -s "$ac_outfile"; then
  28450. + # The compiler can only warn and ignore the option if not recognized
  28451. + # So say no if there are warnings other than the usual output.
  28452. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28453. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28454. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28455. + lt_cv_prog_compiler_pic_works=yes
  28456. + fi
  28457. + fi
  28458. + $RM conftest*
  28459. fi
  28460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  28461. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  28462. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  28463. + case $lt_prog_compiler_pic in
  28464. + "" | " "*) ;;
  28465. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  28466. + esac
  28467. +else
  28468. + lt_prog_compiler_pic=
  28469. + lt_prog_compiler_can_build_shared=no
  28470. +fi
  28471. fi
  28472. -fi
  28473. - ;;
  28474. - esac
  28475. - if test "x$lt_cv_dlopen" != xno; then
  28476. - enable_dlopen=yes
  28477. - else
  28478. - enable_dlopen=no
  28479. - fi
  28480. - case $lt_cv_dlopen in
  28481. - dlopen)
  28482. - save_CPPFLAGS="$CPPFLAGS"
  28483. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  28484. - save_LDFLAGS="$LDFLAGS"
  28485. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  28486. +#
  28487. +# Check to make sure the static flag actually works.
  28488. +#
  28489. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  28490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28491. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28492. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  28493. + $as_echo_n "(cached) " >&6
  28494. +else
  28495. + lt_cv_prog_compiler_static_works=no
  28496. + save_LDFLAGS="$LDFLAGS"
  28497. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28498. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28499. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28500. + # The linker can only warn and ignore the option if not recognized
  28501. + # So say no if there are warnings
  28502. + if test -s conftest.err; then
  28503. + # Append any errors to the config.log.
  28504. + cat conftest.err 1>&5
  28505. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28506. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28507. + if diff conftest.exp conftest.er2 >/dev/null; then
  28508. + lt_cv_prog_compiler_static_works=yes
  28509. + fi
  28510. + else
  28511. + lt_cv_prog_compiler_static_works=yes
  28512. + fi
  28513. + fi
  28514. + $RM -r conftest*
  28515. + LDFLAGS="$save_LDFLAGS"
  28516. - save_LIBS="$LIBS"
  28517. - LIBS="$lt_cv_dlopen_libs $LIBS"
  28518. +fi
  28519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  28520. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  28521. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  28522. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  28523. -if test "${lt_cv_dlopen_self+set}" = set; then
  28524. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28525. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  28526. + :
  28527. else
  28528. - if test "$cross_compiling" = yes; then :
  28529. - lt_cv_dlopen_self=cross
  28530. -else
  28531. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28532. - lt_status=$lt_dlunknown
  28533. - cat > conftest.$ac_ext <<EOF
  28534. -#line 9679 "configure"
  28535. -#include "confdefs.h"
  28536. -
  28537. -#if HAVE_DLFCN_H
  28538. -#include <dlfcn.h>
  28539. -#endif
  28540. + lt_prog_compiler_static=
  28541. +fi
  28542. -#include <stdio.h>
  28543. -#ifdef RTLD_GLOBAL
  28544. -# define LT_DLGLOBAL RTLD_GLOBAL
  28545. -#else
  28546. -# ifdef DL_GLOBAL
  28547. -# define LT_DLGLOBAL DL_GLOBAL
  28548. -# else
  28549. -# define LT_DLGLOBAL 0
  28550. -# endif
  28551. -#endif
  28552. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28553. - find out it does not work in some platform. */
  28554. -#ifndef LT_DLLAZY_OR_NOW
  28555. -# ifdef RTLD_LAZY
  28556. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28557. -# else
  28558. -# ifdef DL_LAZY
  28559. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28560. -# else
  28561. -# ifdef RTLD_NOW
  28562. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28563. -# else
  28564. -# ifdef DL_NOW
  28565. -# define LT_DLLAZY_OR_NOW DL_NOW
  28566. -# else
  28567. -# define LT_DLLAZY_OR_NOW 0
  28568. -# endif
  28569. -# endif
  28570. -# endif
  28571. -# endif
  28572. -#endif
  28573. -#ifdef __cplusplus
  28574. -extern "C" void exit (int);
  28575. -#endif
  28576. -void fnord() { int i=42;}
  28577. -int main ()
  28578. -{
  28579. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28580. - int status = $lt_dlunknown;
  28581. - if (self)
  28582. - {
  28583. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28584. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28585. - /* dlclose (self); */
  28586. - }
  28587. - else
  28588. - puts (dlerror ());
  28589. - exit (status);
  28590. -}
  28591. -EOF
  28592. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28593. - (eval $ac_link) 2>&5
  28594. - ac_status=$?
  28595. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28596. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28597. - (./conftest; exit; ) >&5 2>/dev/null
  28598. - lt_status=$?
  28599. - case x$lt_status in
  28600. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  28601. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  28602. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  28603. - esac
  28604. - else :
  28605. - # compilation failed
  28606. - lt_cv_dlopen_self=no
  28607. - fi
  28608. -fi
  28609. -rm -fr conftest*
  28610. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  28611. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28612. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  28613. + $as_echo_n "(cached) " >&6
  28614. +else
  28615. + lt_cv_prog_compiler_c_o=no
  28616. + $RM -r conftest 2>/dev/null
  28617. + mkdir conftest
  28618. + cd conftest
  28619. + mkdir out
  28620. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28621. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  28622. + # Insert the option either (1) after the last *FLAGS variable, or
  28623. + # (2) before a word containing "conftest.", or (3) at the end.
  28624. + # Note that $ac_compile itself does not contain backslashes and begins
  28625. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28626. + lt_compile=`echo "$ac_compile" | $SED \
  28627. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28628. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28629. + -e 's:$: $lt_compiler_flag:'`
  28630. + (eval echo "\"\$as_me:7840: $lt_compile\"" >&5)
  28631. + (eval "$lt_compile" 2>out/conftest.err)
  28632. + ac_status=$?
  28633. + cat out/conftest.err >&5
  28634. + echo "$as_me:7844: \$? = $ac_status" >&5
  28635. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28636. + then
  28637. + # The compiler can only warn and ignore the option if not recognized
  28638. + # So say no if there are warnings
  28639. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28640. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28641. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28642. + lt_cv_prog_compiler_c_o=yes
  28643. + fi
  28644. + fi
  28645. + chmod u+w . 2>&5
  28646. + $RM conftest*
  28647. + # SGI C++ compiler will create directory out/ii_files/ for
  28648. + # template instantiation
  28649. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  28650. + $RM out/* && rmdir out
  28651. + cd ..
  28652. + $RM -r conftest
  28653. + $RM conftest*
  28654. fi
  28655. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  28656. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  28657. -
  28658. - if test "x$lt_cv_dlopen_self" = xyes; then
  28659. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  28660. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  28661. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  28662. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  28663. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28664. -else
  28665. - if test "$cross_compiling" = yes; then :
  28666. - lt_cv_dlopen_self_static=cross
  28667. -else
  28668. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28669. - lt_status=$lt_dlunknown
  28670. - cat > conftest.$ac_ext <<EOF
  28671. -#line 9779 "configure"
  28672. -#include "confdefs.h"
  28673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  28674. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  28675. -#if HAVE_DLFCN_H
  28676. -#include <dlfcn.h>
  28677. -#endif
  28678. -#include <stdio.h>
  28679. -#ifdef RTLD_GLOBAL
  28680. -# define LT_DLGLOBAL RTLD_GLOBAL
  28681. -#else
  28682. -# ifdef DL_GLOBAL
  28683. -# define LT_DLGLOBAL DL_GLOBAL
  28684. -# else
  28685. -# define LT_DLGLOBAL 0
  28686. -# endif
  28687. -#endif
  28688. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28689. - find out it does not work in some platform. */
  28690. -#ifndef LT_DLLAZY_OR_NOW
  28691. -# ifdef RTLD_LAZY
  28692. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28693. -# else
  28694. -# ifdef DL_LAZY
  28695. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28696. -# else
  28697. -# ifdef RTLD_NOW
  28698. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28699. -# else
  28700. -# ifdef DL_NOW
  28701. -# define LT_DLLAZY_OR_NOW DL_NOW
  28702. -# else
  28703. -# define LT_DLLAZY_OR_NOW 0
  28704. -# endif
  28705. -# endif
  28706. -# endif
  28707. -# endif
  28708. -#endif
  28709. -#ifdef __cplusplus
  28710. -extern "C" void exit (int);
  28711. -#endif
  28712. -void fnord() { int i=42;}
  28713. -int main ()
  28714. -{
  28715. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28716. - int status = $lt_dlunknown;
  28717. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  28718. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28719. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  28720. + $as_echo_n "(cached) " >&6
  28721. +else
  28722. + lt_cv_prog_compiler_c_o=no
  28723. + $RM -r conftest 2>/dev/null
  28724. + mkdir conftest
  28725. + cd conftest
  28726. + mkdir out
  28727. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28728. - if (self)
  28729. - {
  28730. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28731. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28732. - /* dlclose (self); */
  28733. - }
  28734. - else
  28735. - puts (dlerror ());
  28736. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  28737. + # Insert the option either (1) after the last *FLAGS variable, or
  28738. + # (2) before a word containing "conftest.", or (3) at the end.
  28739. + # Note that $ac_compile itself does not contain backslashes and begins
  28740. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28741. + lt_compile=`echo "$ac_compile" | $SED \
  28742. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28743. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28744. + -e 's:$: $lt_compiler_flag:'`
  28745. + (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
  28746. + (eval "$lt_compile" 2>out/conftest.err)
  28747. + ac_status=$?
  28748. + cat out/conftest.err >&5
  28749. + echo "$as_me:7899: \$? = $ac_status" >&5
  28750. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28751. + then
  28752. + # The compiler can only warn and ignore the option if not recognized
  28753. + # So say no if there are warnings
  28754. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28755. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28756. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28757. + lt_cv_prog_compiler_c_o=yes
  28758. + fi
  28759. + fi
  28760. + chmod u+w . 2>&5
  28761. + $RM conftest*
  28762. + # SGI C++ compiler will create directory out/ii_files/ for
  28763. + # template instantiation
  28764. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  28765. + $RM out/* && rmdir out
  28766. + cd ..
  28767. + $RM -r conftest
  28768. + $RM conftest*
  28769. - exit (status);
  28770. -}
  28771. -EOF
  28772. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28773. - (eval $ac_link) 2>&5
  28774. - ac_status=$?
  28775. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28776. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28777. - (./conftest; exit; ) >&5 2>/dev/null
  28778. - lt_status=$?
  28779. - case x$lt_status in
  28780. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  28781. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  28782. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  28783. - esac
  28784. - else :
  28785. - # compilation failed
  28786. - lt_cv_dlopen_self_static=no
  28787. - fi
  28788. fi
  28789. -rm -fr conftest*
  28790. -
  28791. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  28792. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  28793. -fi
  28794. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  28795. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  28796. - fi
  28797. - CPPFLAGS="$save_CPPFLAGS"
  28798. - LDFLAGS="$save_LDFLAGS"
  28799. - LIBS="$save_LIBS"
  28800. - ;;
  28801. - esac
  28802. - case $lt_cv_dlopen_self in
  28803. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  28804. - *) enable_dlopen_self=unknown ;;
  28805. - esac
  28806. - case $lt_cv_dlopen_self_static in
  28807. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  28808. - *) enable_dlopen_self_static=unknown ;;
  28809. - esac
  28810. +hard_links="nottested"
  28811. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  28812. + # do not overwrite the value of need_locks provided by the user
  28813. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  28814. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  28815. + hard_links=yes
  28816. + $RM conftest*
  28817. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28818. + touch conftest.a
  28819. + ln conftest.a conftest.b 2>&5 || hard_links=no
  28820. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28821. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  28822. +$as_echo "$hard_links" >&6; }
  28823. + if test "$hard_links" = no; then
  28824. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28825. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28826. + need_locks=warn
  28827. + fi
  28828. +else
  28829. + need_locks=no
  28830. fi
  28831. -# Report which library types will actually be built
  28832. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  28833. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  28834. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  28835. -echo "${ECHO_T}$can_build_shared" >&6; }
  28836. -
  28837. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  28838. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  28839. -test "$can_build_shared" = "no" && enable_shared=no
  28840. -
  28841. -# On AIX, shared libraries and static libraries use the same namespace, and
  28842. -# are all built from PIC.
  28843. -case $host_os in
  28844. -aix3*)
  28845. - test "$enable_shared" = yes && enable_static=no
  28846. - if test -n "$RANLIB"; then
  28847. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  28848. - postinstall_cmds='$RANLIB $lib'
  28849. - fi
  28850. - ;;
  28851. -
  28852. -aix4* | aix5*)
  28853. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  28854. - test "$enable_shared" = yes && enable_static=no
  28855. - fi
  28856. - ;;
  28857. -esac
  28858. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  28859. -echo "${ECHO_T}$enable_shared" >&6; }
  28860. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  28861. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  28862. -# Make sure either enable_shared or enable_static is yes.
  28863. -test "$enable_shared" = yes || enable_static=yes
  28864. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  28865. -echo "${ECHO_T}$enable_static" >&6; }
  28866. -
  28867. -# The else clause should only fire when bootstrapping the
  28868. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28869. -# with your package, and you will get complaints that there are
  28870. -# no rules to generate ltmain.sh.
  28871. -if test -f "$ltmain"; then
  28872. - # See if we are running on zsh, and set the options which allow our commands through
  28873. - # without removal of \ escapes.
  28874. - if test -n "${ZSH_VERSION+set}" ; then
  28875. - setopt NO_GLOB_SUBST
  28876. - fi
  28877. - # Now quote all the things that may contain metacharacters while being
  28878. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28879. - # variables and quote the copies for generation of the libtool script.
  28880. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  28881. - SED SHELL STRIP \
  28882. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28883. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28884. - deplibs_check_method reload_flag reload_cmds need_locks \
  28885. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28886. - lt_cv_sys_global_symbol_to_c_name_address \
  28887. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28888. - old_postinstall_cmds old_postuninstall_cmds \
  28889. - compiler \
  28890. - CC \
  28891. - LD \
  28892. - lt_prog_compiler_wl \
  28893. - lt_prog_compiler_pic \
  28894. - lt_prog_compiler_static \
  28895. - lt_prog_compiler_no_builtin_flag \
  28896. - export_dynamic_flag_spec \
  28897. - thread_safe_flag_spec \
  28898. - whole_archive_flag_spec \
  28899. - enable_shared_with_static_runtimes \
  28900. - old_archive_cmds \
  28901. - old_archive_from_new_cmds \
  28902. - predep_objects \
  28903. - postdep_objects \
  28904. - predeps \
  28905. - postdeps \
  28906. - compiler_lib_search_path \
  28907. - archive_cmds \
  28908. - archive_expsym_cmds \
  28909. - postinstall_cmds \
  28910. - postuninstall_cmds \
  28911. - old_archive_from_expsyms_cmds \
  28912. - allow_undefined_flag \
  28913. - no_undefined_flag \
  28914. - export_symbols_cmds \
  28915. - hardcode_libdir_flag_spec \
  28916. - hardcode_libdir_flag_spec_ld \
  28917. - hardcode_libdir_separator \
  28918. - hardcode_automatic \
  28919. - module_cmds \
  28920. - module_expsym_cmds \
  28921. - lt_cv_prog_compiler_c_o \
  28922. - exclude_expsyms \
  28923. - include_expsyms; do
  28924. -
  28925. - case $var in
  28926. - old_archive_cmds | \
  28927. - old_archive_from_new_cmds | \
  28928. - archive_cmds | \
  28929. - archive_expsym_cmds | \
  28930. - module_cmds | \
  28931. - module_expsym_cmds | \
  28932. - old_archive_from_expsyms_cmds | \
  28933. - export_symbols_cmds | \
  28934. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  28935. - postinstall_cmds | postuninstall_cmds | \
  28936. - old_postinstall_cmds | old_postuninstall_cmds | \
  28937. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  28938. - # Double-quote double-evaled strings.
  28939. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  28940. - ;;
  28941. - *)
  28942. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  28943. - ;;
  28944. - esac
  28945. - done
  28946. - case $lt_echo in
  28947. - *'\$0 --fallback-echo"')
  28948. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  28949. - ;;
  28950. - esac
  28951. -cfgfile="${ofile}T"
  28952. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  28953. - $rm -f "$cfgfile"
  28954. - { echo "$as_me:$LINENO: creating $ofile" >&5
  28955. -echo "$as_me: creating $ofile" >&6;}
  28956. - cat <<__EOF__ >> "$cfgfile"
  28957. -#! $SHELL
  28958. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28959. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  28960. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  28961. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  28962. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  28963. -#
  28964. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  28965. -# Free Software Foundation, Inc.
  28966. -#
  28967. -# This file is part of GNU Libtool:
  28968. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  28969. -#
  28970. -# This program is free software; you can redistribute it and/or modify
  28971. -# it under the terms of the GNU General Public License as published by
  28972. -# the Free Software Foundation; either version 2 of the License, or
  28973. -# (at your option) any later version.
  28974. -#
  28975. -# This program is distributed in the hope that it will be useful, but
  28976. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  28977. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  28978. -# General Public License for more details.
  28979. -#
  28980. -# You should have received a copy of the GNU General Public License
  28981. -# along with this program; if not, write to the Free Software
  28982. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  28983. -#
  28984. -# As a special exception to the GNU General Public License, if you
  28985. -# distribute this file as part of a program that contains a
  28986. -# configuration script generated by Autoconf, you may include it under
  28987. -# the same distribution terms that you use for the rest of that program.
  28988. + runpath_var=
  28989. + allow_undefined_flag=
  28990. + always_export_symbols=no
  28991. + archive_cmds=
  28992. + archive_expsym_cmds=
  28993. + compiler_needs_object=no
  28994. + enable_shared_with_static_runtimes=no
  28995. + export_dynamic_flag_spec=
  28996. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28997. + hardcode_automatic=no
  28998. + hardcode_direct=no
  28999. + hardcode_direct_absolute=no
  29000. + hardcode_libdir_flag_spec=
  29001. + hardcode_libdir_flag_spec_ld=
  29002. + hardcode_libdir_separator=
  29003. + hardcode_minus_L=no
  29004. + hardcode_shlibpath_var=unsupported
  29005. + inherit_rpath=no
  29006. + link_all_deplibs=unknown
  29007. + module_cmds=
  29008. + module_expsym_cmds=
  29009. + old_archive_from_new_cmds=
  29010. + old_archive_from_expsyms_cmds=
  29011. + thread_safe_flag_spec=
  29012. + whole_archive_flag_spec=
  29013. + # include_expsyms should be a list of space-separated symbols to be *always*
  29014. + # included in the symbol list
  29015. + include_expsyms=
  29016. + # exclude_expsyms can be an extended regexp of symbols to exclude
  29017. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  29018. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  29019. + # as well as any symbol that contains `d'.
  29020. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  29021. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  29022. + # platforms (ab)use it in PIC code, but their linkers get confused if
  29023. + # the symbol is explicitly referenced. Since portable code cannot
  29024. + # rely on this symbol name, it's probably fine to never include it in
  29025. + # preloaded symbol tables.
  29026. + # Exclude shared library initialization/finalization symbols.
  29027. + extract_expsyms_cmds=
  29028. -# A sed program that does not truncate output.
  29029. -SED=$lt_SED
  29030. + case $host_os in
  29031. + cygwin* | mingw* | pw32* | cegcc*)
  29032. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  29033. + # When not using gcc, we currently assume that we are using
  29034. + # Microsoft Visual C++.
  29035. + if test "$GCC" != yes; then
  29036. + with_gnu_ld=no
  29037. + fi
  29038. + ;;
  29039. + interix*)
  29040. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  29041. + with_gnu_ld=yes
  29042. + ;;
  29043. + openbsd*)
  29044. + with_gnu_ld=no
  29045. + ;;
  29046. + linux* | k*bsd*-gnu)
  29047. + link_all_deplibs=no
  29048. + ;;
  29049. + esac
  29050. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  29051. -Xsed="$SED -e 1s/^X//"
  29052. + ld_shlibs=yes
  29053. + if test "$with_gnu_ld" = yes; then
  29054. + # If archive_cmds runs LD, not CC, wlarc should be empty
  29055. + wlarc='${wl}'
  29056. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  29057. -# if CDPATH is set.
  29058. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29059. + # Set some defaults for GNU ld with shared library support. These
  29060. + # are reset later if shared libraries are not supported. Putting them
  29061. + # here allows them to be overridden if necessary.
  29062. + runpath_var=LD_RUN_PATH
  29063. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29064. + export_dynamic_flag_spec='${wl}--export-dynamic'
  29065. + # ancient GNU ld didn't support --whole-archive et. al.
  29066. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  29067. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29068. + else
  29069. + whole_archive_flag_spec=
  29070. + fi
  29071. + supports_anon_versioning=no
  29072. + case `$LD -v 2>&1` in
  29073. + *GNU\ gold*) supports_anon_versioning=yes ;;
  29074. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  29075. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  29076. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  29077. + *\ 2.11.*) ;; # other 2.11 versions
  29078. + *) supports_anon_versioning=yes ;;
  29079. + esac
  29080. -# The names of the tagged configurations supported by this script.
  29081. -available_tags=
  29082. + # See if GNU ld supports shared libraries.
  29083. + case $host_os in
  29084. + aix[3-9]*)
  29085. + # On AIX/PPC, the GNU linker is very broken
  29086. + if test "$host_cpu" != ia64; then
  29087. + ld_shlibs=no
  29088. + cat <<_LT_EOF 1>&2
  29089. -# ### BEGIN LIBTOOL CONFIG
  29090. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  29091. +*** to be unable to reliably create shared libraries on AIX.
  29092. +*** Therefore, libtool is disabling shared libraries support. If you
  29093. +*** really care for shared libraries, you may want to modify your PATH
  29094. +*** so that a non-GNU linker is found, and then restart.
  29095. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29096. +_LT_EOF
  29097. + fi
  29098. + ;;
  29099. -# Shell to use when invoking shell scripts.
  29100. -SHELL=$lt_SHELL
  29101. + amigaos*)
  29102. + case $host_cpu in
  29103. + powerpc)
  29104. + # see comment about AmigaOS4 .so support
  29105. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29106. + archive_expsym_cmds=''
  29107. + ;;
  29108. + m68k)
  29109. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  29110. + hardcode_libdir_flag_spec='-L$libdir'
  29111. + hardcode_minus_L=yes
  29112. + ;;
  29113. + esac
  29114. + ;;
  29115. -# Whether or not to build shared libraries.
  29116. -build_libtool_libs=$enable_shared
  29117. + beos*)
  29118. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29119. + allow_undefined_flag=unsupported
  29120. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29121. + # support --undefined. This deserves some investigation. FIXME
  29122. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29123. + else
  29124. + ld_shlibs=no
  29125. + fi
  29126. + ;;
  29127. -# Whether or not to build static libraries.
  29128. -build_old_libs=$enable_static
  29129. + cygwin* | mingw* | pw32* | cegcc*)
  29130. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  29131. + # as there is no search path for DLLs.
  29132. + hardcode_libdir_flag_spec='-L$libdir'
  29133. + allow_undefined_flag=unsupported
  29134. + always_export_symbols=no
  29135. + enable_shared_with_static_runtimes=yes
  29136. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29137. -# Whether or not to add -lc for building shared libraries.
  29138. -build_libtool_need_lc=$archive_cmds_need_lc
  29139. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  29140. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29141. + # If the export-symbols file already is a .def file (1st line
  29142. + # is EXPORTS), use it as is; otherwise, prepend...
  29143. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29144. + cp $export_symbols $output_objdir/$soname.def;
  29145. + else
  29146. + echo EXPORTS > $output_objdir/$soname.def;
  29147. + cat $export_symbols >> $output_objdir/$soname.def;
  29148. + fi~
  29149. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29150. + else
  29151. + ld_shlibs=no
  29152. + fi
  29153. + ;;
  29154. -# Whether or not to disallow shared libs when runtime libs are static
  29155. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  29156. + interix[3-9]*)
  29157. + hardcode_direct=no
  29158. + hardcode_shlibpath_var=no
  29159. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29160. + export_dynamic_flag_spec='${wl}-E'
  29161. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29162. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  29163. + # default) and relocated if they conflict, which is a slow very memory
  29164. + # consuming and fragmenting process. To avoid this, we pick a random,
  29165. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29166. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29167. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29168. + 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'
  29169. + ;;
  29170. -# Whether or not to optimize for fast installation.
  29171. -fast_install=$enable_fast_install
  29172. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  29173. + tmp_diet=no
  29174. + if test "$host_os" = linux-dietlibc; then
  29175. + case $cc_basename in
  29176. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  29177. + esac
  29178. + fi
  29179. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  29180. + && test "$tmp_diet" = no
  29181. + then
  29182. + tmp_addflag=
  29183. + tmp_sharedflag='-shared'
  29184. + case $cc_basename,$host_cpu in
  29185. + pgcc*) # Portland Group C compiler
  29186. + 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'
  29187. + tmp_addflag=' $pic_flag'
  29188. + ;;
  29189. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29190. + 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'
  29191. + tmp_addflag=' $pic_flag -Mnomain' ;;
  29192. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29193. + tmp_addflag=' -i_dynamic' ;;
  29194. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29195. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  29196. + ifc* | ifort*) # Intel Fortran compiler
  29197. + tmp_addflag=' -nofor_main' ;;
  29198. + lf95*) # Lahey Fortran 8.1
  29199. + whole_archive_flag_spec=
  29200. + tmp_sharedflag='--shared' ;;
  29201. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  29202. + tmp_sharedflag='-qmkshrobj'
  29203. + tmp_addflag= ;;
  29204. + esac
  29205. + case `$CC -V 2>&1 | sed 5q` in
  29206. + *Sun\ C*) # Sun C 5.9
  29207. + 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'
  29208. + compiler_needs_object=yes
  29209. + tmp_sharedflag='-G' ;;
  29210. + *Sun\ F*) # Sun Fortran 8.3
  29211. + tmp_sharedflag='-G' ;;
  29212. + esac
  29213. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29214. -# The host system.
  29215. -host_alias=$host_alias
  29216. -host=$host
  29217. -host_os=$host_os
  29218. + if test "x$supports_anon_versioning" = xyes; then
  29219. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29220. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29221. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29222. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29223. + fi
  29224. -# The build system.
  29225. -build_alias=$build_alias
  29226. -build=$build
  29227. -build_os=$build_os
  29228. + case $cc_basename in
  29229. + xlf*)
  29230. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  29231. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  29232. + hardcode_libdir_flag_spec=
  29233. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  29234. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  29235. + if test "x$supports_anon_versioning" = xyes; then
  29236. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29237. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29238. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29239. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  29240. + fi
  29241. + ;;
  29242. + esac
  29243. + else
  29244. + ld_shlibs=no
  29245. + fi
  29246. + ;;
  29247. -# An echo program that does not interpret backslashes.
  29248. -echo=$lt_echo
  29249. + netbsd* | netbsdelf*-gnu)
  29250. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29251. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  29252. + wlarc=
  29253. + else
  29254. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29255. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29256. + fi
  29257. + ;;
  29258. -# The archiver.
  29259. -AR=$lt_AR
  29260. -AR_FLAGS=$lt_AR_FLAGS
  29261. + solaris*)
  29262. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  29263. + ld_shlibs=no
  29264. + cat <<_LT_EOF 1>&2
  29265. -# A C compiler.
  29266. -LTCC=$lt_LTCC
  29267. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  29268. +*** create shared libraries on Solaris systems. Therefore, libtool
  29269. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29270. +*** binutils to release 2.9.1 or newer. Another option is to modify
  29271. +*** your PATH or compiler configuration so that the native linker is
  29272. +*** used, and then restart.
  29273. -# LTCC compiler flags.
  29274. -LTCFLAGS=$lt_LTCFLAGS
  29275. +_LT_EOF
  29276. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29277. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29278. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29279. + else
  29280. + ld_shlibs=no
  29281. + fi
  29282. + ;;
  29283. -# A language-specific compiler.
  29284. -CC=$lt_compiler
  29285. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  29286. + case `$LD -v 2>&1` in
  29287. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  29288. + ld_shlibs=no
  29289. + cat <<_LT_EOF 1>&2
  29290. -# Is the compiler the GNU C compiler?
  29291. -with_gcc=$GCC
  29292. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  29293. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  29294. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29295. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  29296. +*** your PATH or compiler configuration so that the native linker is
  29297. +*** used, and then restart.
  29298. -# An ERE matcher.
  29299. -EGREP=$lt_EGREP
  29300. +_LT_EOF
  29301. + ;;
  29302. + *)
  29303. + # For security reasons, it is highly recommended that you always
  29304. + # use absolute paths for naming shared libraries, and exclude the
  29305. + # DT_RUNPATH tag from executables and libraries. But doing so
  29306. + # requires that you compile everything twice, which is a pain.
  29307. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29308. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29309. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29310. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29311. + else
  29312. + ld_shlibs=no
  29313. + fi
  29314. + ;;
  29315. + esac
  29316. + ;;
  29317. -# The linker used to build libraries.
  29318. -LD=$lt_LD
  29319. + sunos4*)
  29320. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29321. + wlarc=
  29322. + hardcode_direct=yes
  29323. + hardcode_shlibpath_var=no
  29324. + ;;
  29325. -# Whether we need hard or soft links.
  29326. -LN_S=$lt_LN_S
  29327. -
  29328. -# A BSD-compatible nm program.
  29329. -NM=$lt_NM
  29330. -
  29331. -# A symbol stripping program
  29332. -STRIP=$lt_STRIP
  29333. + *)
  29334. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29335. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29336. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29337. + else
  29338. + ld_shlibs=no
  29339. + fi
  29340. + ;;
  29341. + esac
  29342. -# Used to examine libraries when file_magic_cmd begins "file"
  29343. -MAGIC_CMD=$MAGIC_CMD
  29344. + if test "$ld_shlibs" = no; then
  29345. + runpath_var=
  29346. + hardcode_libdir_flag_spec=
  29347. + export_dynamic_flag_spec=
  29348. + whole_archive_flag_spec=
  29349. + fi
  29350. + else
  29351. + # PORTME fill in a description of your system's linker (not GNU ld)
  29352. + case $host_os in
  29353. + aix3*)
  29354. + allow_undefined_flag=unsupported
  29355. + always_export_symbols=yes
  29356. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  29357. + # Note: this linker hardcodes the directories in LIBPATH if there
  29358. + # are no directories specified by -L.
  29359. + hardcode_minus_L=yes
  29360. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  29361. + # Neither direct hardcoding nor static linking is supported with a
  29362. + # broken collect2.
  29363. + hardcode_direct=unsupported
  29364. + fi
  29365. + ;;
  29366. -# Used on cygwin: DLL creation program.
  29367. -DLLTOOL="$DLLTOOL"
  29368. + aix[4-9]*)
  29369. + if test "$host_cpu" = ia64; then
  29370. + # On IA64, the linker does run time linking by default, so we don't
  29371. + # have to do anything special.
  29372. + aix_use_runtimelinking=no
  29373. + exp_sym_flag='-Bexport'
  29374. + no_entry_flag=""
  29375. + else
  29376. + # If we're using GNU nm, then we don't want the "-C" option.
  29377. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29378. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  29379. + 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'
  29380. + else
  29381. + 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'
  29382. + fi
  29383. + aix_use_runtimelinking=no
  29384. -# Used on cygwin: object dumper.
  29385. -OBJDUMP="$OBJDUMP"
  29386. + # Test if we are trying to use run time linking or normal
  29387. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29388. + # need to do runtime linking.
  29389. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  29390. + for ld_flag in $LDFLAGS; do
  29391. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  29392. + aix_use_runtimelinking=yes
  29393. + break
  29394. + fi
  29395. + done
  29396. + ;;
  29397. + esac
  29398. -# Used on cygwin: assembler.
  29399. -AS="$AS"
  29400. + exp_sym_flag='-bexport'
  29401. + no_entry_flag='-bnoentry'
  29402. + fi
  29403. -# The name of the directory that contains temporary libtool files.
  29404. -objdir=$objdir
  29405. + # When large executables or shared objects are built, AIX ld can
  29406. + # have problems creating the table of contents. If linking a library
  29407. + # or program results in "error TOC overflow" add -mminimal-toc to
  29408. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29409. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29410. -# How to create reloadable object files.
  29411. -reload_flag=$lt_reload_flag
  29412. -reload_cmds=$lt_reload_cmds
  29413. + archive_cmds=''
  29414. + hardcode_direct=yes
  29415. + hardcode_direct_absolute=yes
  29416. + hardcode_libdir_separator=':'
  29417. + link_all_deplibs=yes
  29418. + file_list_spec='${wl}-f,'
  29419. -# How to pass a linker flag through the compiler.
  29420. -wl=$lt_lt_prog_compiler_wl
  29421. + if test "$GCC" = yes; then
  29422. + case $host_os in aix4.[012]|aix4.[012].*)
  29423. + # We only want to do this on AIX 4.2 and lower, the check
  29424. + # below for broken collect2 doesn't work under 4.3+
  29425. + collect2name=`${CC} -print-prog-name=collect2`
  29426. + if test -f "$collect2name" &&
  29427. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  29428. + then
  29429. + # We have reworked collect2
  29430. + :
  29431. + else
  29432. + # We have old collect2
  29433. + hardcode_direct=unsupported
  29434. + # It fails to find uninstalled libraries when the uninstalled
  29435. + # path is not listed in the libpath. Setting hardcode_minus_L
  29436. + # to unsupported forces relinking
  29437. + hardcode_minus_L=yes
  29438. + hardcode_libdir_flag_spec='-L$libdir'
  29439. + hardcode_libdir_separator=
  29440. + fi
  29441. + ;;
  29442. + esac
  29443. + shared_flag='-shared'
  29444. + if test "$aix_use_runtimelinking" = yes; then
  29445. + shared_flag="$shared_flag "'${wl}-G'
  29446. + fi
  29447. + link_all_deplibs=no
  29448. + else
  29449. + # not using gcc
  29450. + if test "$host_cpu" = ia64; then
  29451. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29452. + # chokes on -Wl,-G. The following line is correct:
  29453. + shared_flag='-G'
  29454. + else
  29455. + if test "$aix_use_runtimelinking" = yes; then
  29456. + shared_flag='${wl}-G'
  29457. + else
  29458. + shared_flag='${wl}-bM:SRE'
  29459. + fi
  29460. + fi
  29461. + fi
  29462. -# Object file suffix (normally "o").
  29463. -objext="$ac_objext"
  29464. + export_dynamic_flag_spec='${wl}-bexpall'
  29465. + # It seems that -bexpall does not export symbols beginning with
  29466. + # underscore (_), so it is better to generate a list of symbols to export.
  29467. + always_export_symbols=yes
  29468. + if test "$aix_use_runtimelinking" = yes; then
  29469. + # Warning - without using the other runtime loading flags (-brtl),
  29470. + # -berok will link without error, but may produce a broken library.
  29471. + allow_undefined_flag='-berok'
  29472. + # Determine the default libpath from the value encoded in an
  29473. + # empty executable.
  29474. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29475. +/* end confdefs.h. */
  29476. -# Old archive suffix (normally "a").
  29477. -libext="$libext"
  29478. +int
  29479. +main ()
  29480. +{
  29481. -# Shared library suffix (normally ".so").
  29482. -shrext_cmds='$shrext_cmds'
  29483. + ;
  29484. + return 0;
  29485. +}
  29486. +_ACEOF
  29487. +if ac_fn_c_try_link "$LINENO"; then :
  29488. -# Executable file suffix (normally "").
  29489. -exeext="$exeext"
  29490. +lt_aix_libpath_sed='
  29491. + /Import File Strings/,/^$/ {
  29492. + /^0/ {
  29493. + s/^0 *\(.*\)$/\1/
  29494. + p
  29495. + }
  29496. + }'
  29497. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29498. +# Check for a 64-bit object if we didn't find anything.
  29499. +if test -z "$aix_libpath"; then
  29500. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29501. +fi
  29502. +fi
  29503. +rm -f core conftest.err conftest.$ac_objext \
  29504. + conftest$ac_exeext conftest.$ac_ext
  29505. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29506. -# Additional compiler flags for building library objects.
  29507. -pic_flag=$lt_lt_prog_compiler_pic
  29508. -pic_mode=$pic_mode
  29509. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  29510. + 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"
  29511. + else
  29512. + if test "$host_cpu" = ia64; then
  29513. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  29514. + allow_undefined_flag="-z nodefs"
  29515. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  29516. + else
  29517. + # Determine the default libpath from the value encoded in an
  29518. + # empty executable.
  29519. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29520. +/* end confdefs.h. */
  29521. -# What is the maximum length of a command?
  29522. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29523. +int
  29524. +main ()
  29525. +{
  29526. -# Does compiler simultaneously support -c and -o options?
  29527. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  29528. + ;
  29529. + return 0;
  29530. +}
  29531. +_ACEOF
  29532. +if ac_fn_c_try_link "$LINENO"; then :
  29533. -# Must we lock files when doing compilation?
  29534. -need_locks=$lt_need_locks
  29535. +lt_aix_libpath_sed='
  29536. + /Import File Strings/,/^$/ {
  29537. + /^0/ {
  29538. + s/^0 *\(.*\)$/\1/
  29539. + p
  29540. + }
  29541. + }'
  29542. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29543. +# Check for a 64-bit object if we didn't find anything.
  29544. +if test -z "$aix_libpath"; then
  29545. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29546. +fi
  29547. +fi
  29548. +rm -f core conftest.err conftest.$ac_objext \
  29549. + conftest$ac_exeext conftest.$ac_ext
  29550. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29551. -# Do we need the lib prefix for modules?
  29552. -need_lib_prefix=$need_lib_prefix
  29553. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  29554. + # Warning - without using the other run time loading flags,
  29555. + # -berok will link without error, but may produce a broken library.
  29556. + no_undefined_flag=' ${wl}-bernotok'
  29557. + allow_undefined_flag=' ${wl}-berok'
  29558. + # Exported symbols can be pulled into shared objects from archives
  29559. + whole_archive_flag_spec='$convenience'
  29560. + archive_cmds_need_lc=yes
  29561. + # This is similar to how AIX traditionally builds its shared libraries.
  29562. + 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'
  29563. + fi
  29564. + fi
  29565. + ;;
  29566. -# Do we need a version for libraries?
  29567. -need_version=$need_version
  29568. + amigaos*)
  29569. + case $host_cpu in
  29570. + powerpc)
  29571. + # see comment about AmigaOS4 .so support
  29572. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29573. + archive_expsym_cmds=''
  29574. + ;;
  29575. + m68k)
  29576. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  29577. + hardcode_libdir_flag_spec='-L$libdir'
  29578. + hardcode_minus_L=yes
  29579. + ;;
  29580. + esac
  29581. + ;;
  29582. -# Whether dlopen is supported.
  29583. -dlopen_support=$enable_dlopen
  29584. + bsdi[45]*)
  29585. + export_dynamic_flag_spec=-rdynamic
  29586. + ;;
  29587. -# Whether dlopen of programs is supported.
  29588. -dlopen_self=$enable_dlopen_self
  29589. + cygwin* | mingw* | pw32* | cegcc*)
  29590. + # When not using gcc, we currently assume that we are using
  29591. + # Microsoft Visual C++.
  29592. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  29593. + # no search path for DLLs.
  29594. + hardcode_libdir_flag_spec=' '
  29595. + allow_undefined_flag=unsupported
  29596. + # Tell ltmain to make .lib files, not .a files.
  29597. + libext=lib
  29598. + # Tell ltmain to make .dll files, not .so files.
  29599. + shrext_cmds=".dll"
  29600. + # FIXME: Setting linknames here is a bad hack.
  29601. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  29602. + # The linker will automatically build a .lib file if we build a DLL.
  29603. + old_archive_from_new_cmds='true'
  29604. + # FIXME: Should let the user specify the lib program.
  29605. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  29606. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  29607. + enable_shared_with_static_runtimes=yes
  29608. + ;;
  29609. -# Whether dlopen of statically linked programs is supported.
  29610. -dlopen_self_static=$enable_dlopen_self_static
  29611. + darwin* | rhapsody*)
  29612. -# Compiler flag to prevent dynamic linking.
  29613. -link_static_flag=$lt_lt_prog_compiler_static
  29614. -# Compiler flag to turn off builtin functions.
  29615. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  29616. + archive_cmds_need_lc=no
  29617. + hardcode_direct=no
  29618. + hardcode_automatic=yes
  29619. + hardcode_shlibpath_var=unsupported
  29620. + whole_archive_flag_spec=''
  29621. + link_all_deplibs=yes
  29622. + allow_undefined_flag="$_lt_dar_allow_undefined"
  29623. + case $cc_basename in
  29624. + ifort*) _lt_dar_can_shared=yes ;;
  29625. + *) _lt_dar_can_shared=$GCC ;;
  29626. + esac
  29627. + if test "$_lt_dar_can_shared" = "yes"; then
  29628. + output_verbose_link_cmd=echo
  29629. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  29630. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  29631. + 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}"
  29632. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  29633. -# Compiler flag to allow reflexive dlopens.
  29634. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  29635. + else
  29636. + ld_shlibs=no
  29637. + fi
  29638. -# Compiler flag to generate shared objects directly from archives.
  29639. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  29640. + ;;
  29641. -# Compiler flag to generate thread-safe objects.
  29642. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  29643. + dgux*)
  29644. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29645. + hardcode_libdir_flag_spec='-L$libdir'
  29646. + hardcode_shlibpath_var=no
  29647. + ;;
  29648. -# Library versioning type.
  29649. -version_type=$version_type
  29650. + freebsd1*)
  29651. + ld_shlibs=no
  29652. + ;;
  29653. -# Format of library name prefix.
  29654. -libname_spec=$lt_libname_spec
  29655. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  29656. + # support. Future versions do this automatically, but an explicit c++rt0.o
  29657. + # does not break anything, and helps significantly (at the cost of a little
  29658. + # extra space).
  29659. + freebsd2.2*)
  29660. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  29661. + hardcode_libdir_flag_spec='-R$libdir'
  29662. + hardcode_direct=yes
  29663. + hardcode_shlibpath_var=no
  29664. + ;;
  29665. -# List of archive names. First name is the real one, the rest are links.
  29666. -# The last name is the one that the linker finds with -lNAME.
  29667. -library_names_spec=$lt_library_names_spec
  29668. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  29669. + freebsd2*)
  29670. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29671. + hardcode_direct=yes
  29672. + hardcode_minus_L=yes
  29673. + hardcode_shlibpath_var=no
  29674. + ;;
  29675. -# The coded name of the library, if different from the real name.
  29676. -soname_spec=$lt_soname_spec
  29677. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  29678. + freebsd* | dragonfly*)
  29679. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  29680. + hardcode_libdir_flag_spec='-R$libdir'
  29681. + hardcode_direct=yes
  29682. + hardcode_shlibpath_var=no
  29683. + ;;
  29684. -# Commands used to build and install an old-style archive.
  29685. -RANLIB=$lt_RANLIB
  29686. -old_archive_cmds=$lt_old_archive_cmds
  29687. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29688. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29689. + hpux9*)
  29690. + if test "$GCC" = yes; then
  29691. + 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'
  29692. + else
  29693. + 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'
  29694. + fi
  29695. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29696. + hardcode_libdir_separator=:
  29697. + hardcode_direct=yes
  29698. -# Create an old-style archive from a shared archive.
  29699. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  29700. + # hardcode_minus_L: Not really in the search PATH,
  29701. + # but as the default location of the library.
  29702. + hardcode_minus_L=yes
  29703. + export_dynamic_flag_spec='${wl}-E'
  29704. + ;;
  29705. -# Create a temporary old-style archive to link instead of a shared archive.
  29706. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  29707. + hpux10*)
  29708. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29709. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29710. + else
  29711. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  29712. + fi
  29713. + if test "$with_gnu_ld" = no; then
  29714. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29715. + hardcode_libdir_flag_spec_ld='+b $libdir'
  29716. + hardcode_libdir_separator=:
  29717. + hardcode_direct=yes
  29718. + hardcode_direct_absolute=yes
  29719. + export_dynamic_flag_spec='${wl}-E'
  29720. + # hardcode_minus_L: Not really in the search PATH,
  29721. + # but as the default location of the library.
  29722. + hardcode_minus_L=yes
  29723. + fi
  29724. + ;;
  29725. -# Commands used to build and install a shared archive.
  29726. -archive_cmds=$lt_archive_cmds
  29727. -archive_expsym_cmds=$lt_archive_expsym_cmds
  29728. -postinstall_cmds=$lt_postinstall_cmds
  29729. -postuninstall_cmds=$lt_postuninstall_cmds
  29730. + hpux11*)
  29731. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29732. + case $host_cpu in
  29733. + hppa*64*)
  29734. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29735. + ;;
  29736. + ia64*)
  29737. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29738. + ;;
  29739. + *)
  29740. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29741. + ;;
  29742. + esac
  29743. + else
  29744. + case $host_cpu in
  29745. + hppa*64*)
  29746. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29747. + ;;
  29748. + ia64*)
  29749. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29750. + ;;
  29751. + *)
  29752. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29753. + ;;
  29754. + esac
  29755. + fi
  29756. + if test "$with_gnu_ld" = no; then
  29757. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29758. + hardcode_libdir_separator=:
  29759. -# Commands used to build a loadable module (assumed same as above if empty)
  29760. -module_cmds=$lt_module_cmds
  29761. -module_expsym_cmds=$lt_module_expsym_cmds
  29762. + case $host_cpu in
  29763. + hppa*64*|ia64*)
  29764. + hardcode_direct=no
  29765. + hardcode_shlibpath_var=no
  29766. + ;;
  29767. + *)
  29768. + hardcode_direct=yes
  29769. + hardcode_direct_absolute=yes
  29770. + export_dynamic_flag_spec='${wl}-E'
  29771. -# Commands to strip libraries.
  29772. -old_striplib=$lt_old_striplib
  29773. -striplib=$lt_striplib
  29774. + # hardcode_minus_L: Not really in the search PATH,
  29775. + # but as the default location of the library.
  29776. + hardcode_minus_L=yes
  29777. + ;;
  29778. + esac
  29779. + fi
  29780. + ;;
  29781. -# Dependencies to place before the objects being linked to create a
  29782. -# shared library.
  29783. -predep_objects=$lt_predep_objects
  29784. + irix5* | irix6* | nonstopux*)
  29785. + if test "$GCC" = yes; then
  29786. + 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'
  29787. + # Try to use the -exported_symbol ld option, if it does not
  29788. + # work, assume that -exports_file does not work either and
  29789. + # implicitly export all symbols.
  29790. + save_LDFLAGS="$LDFLAGS"
  29791. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  29792. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29793. +/* end confdefs.h. */
  29794. +int foo(void) {}
  29795. +_ACEOF
  29796. +if ac_fn_c_try_link "$LINENO"; then :
  29797. + 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'
  29798. -# Dependencies to place after the objects being linked to create a
  29799. -# shared library.
  29800. -postdep_objects=$lt_postdep_objects
  29801. +fi
  29802. +rm -f core conftest.err conftest.$ac_objext \
  29803. + conftest$ac_exeext conftest.$ac_ext
  29804. + LDFLAGS="$save_LDFLAGS"
  29805. + else
  29806. + 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'
  29807. + 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'
  29808. + fi
  29809. + archive_cmds_need_lc='no'
  29810. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29811. + hardcode_libdir_separator=:
  29812. + inherit_rpath=yes
  29813. + link_all_deplibs=yes
  29814. + ;;
  29815. -# Dependencies to place before the objects being linked to create a
  29816. -# shared library.
  29817. -predeps=$lt_predeps
  29818. + netbsd* | netbsdelf*-gnu)
  29819. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29820. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  29821. + else
  29822. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  29823. + fi
  29824. + hardcode_libdir_flag_spec='-R$libdir'
  29825. + hardcode_direct=yes
  29826. + hardcode_shlibpath_var=no
  29827. + ;;
  29828. -# Dependencies to place after the objects being linked to create a
  29829. -# shared library.
  29830. -postdeps=$lt_postdeps
  29831. + newsos6)
  29832. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29833. + hardcode_direct=yes
  29834. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29835. + hardcode_libdir_separator=:
  29836. + hardcode_shlibpath_var=no
  29837. + ;;
  29838. -# The library search path used internally by the compiler when linking
  29839. -# a shared library.
  29840. -compiler_lib_search_path=$lt_compiler_lib_search_path
  29841. + *nto* | *qnx*)
  29842. + ;;
  29843. -# Method to check whether dependent libraries are shared objects.
  29844. -deplibs_check_method=$lt_deplibs_check_method
  29845. + openbsd*)
  29846. + if test -f /usr/libexec/ld.so; then
  29847. + hardcode_direct=yes
  29848. + hardcode_shlibpath_var=no
  29849. + hardcode_direct_absolute=yes
  29850. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29851. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29852. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  29853. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29854. + export_dynamic_flag_spec='${wl}-E'
  29855. + else
  29856. + case $host_os in
  29857. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  29858. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29859. + hardcode_libdir_flag_spec='-R$libdir'
  29860. + ;;
  29861. + *)
  29862. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29863. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29864. + ;;
  29865. + esac
  29866. + fi
  29867. + else
  29868. + ld_shlibs=no
  29869. + fi
  29870. + ;;
  29871. -# Command to use when deplibs_check_method == file_magic.
  29872. -file_magic_cmd=$lt_file_magic_cmd
  29873. + os2*)
  29874. + hardcode_libdir_flag_spec='-L$libdir'
  29875. + hardcode_minus_L=yes
  29876. + allow_undefined_flag=unsupported
  29877. + 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'
  29878. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  29879. + ;;
  29880. -# Flag that allows shared libraries with undefined symbols to be built.
  29881. -allow_undefined_flag=$lt_allow_undefined_flag
  29882. + osf3*)
  29883. + if test "$GCC" = yes; then
  29884. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  29885. + 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'
  29886. + else
  29887. + allow_undefined_flag=' -expect_unresolved \*'
  29888. + 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'
  29889. + fi
  29890. + archive_cmds_need_lc='no'
  29891. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29892. + hardcode_libdir_separator=:
  29893. + ;;
  29894. -# Flag that forces no undefined symbols.
  29895. -no_undefined_flag=$lt_no_undefined_flag
  29896. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  29897. + if test "$GCC" = yes; then
  29898. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  29899. + 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'
  29900. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29901. + else
  29902. + allow_undefined_flag=' -expect_unresolved \*'
  29903. + 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'
  29904. + 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~
  29905. + $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'
  29906. -# Commands used to finish a libtool library installation in a directory.
  29907. -finish_cmds=$lt_finish_cmds
  29908. + # Both c and cxx compiler support -rpath directly
  29909. + hardcode_libdir_flag_spec='-rpath $libdir'
  29910. + fi
  29911. + archive_cmds_need_lc='no'
  29912. + hardcode_libdir_separator=:
  29913. + ;;
  29914. -# Same as above, but a single script fragment to be evaled but not shown.
  29915. -finish_eval=$lt_finish_eval
  29916. + solaris*)
  29917. + no_undefined_flag=' -z defs'
  29918. + if test "$GCC" = yes; then
  29919. + wlarc='${wl}'
  29920. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29921. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29922. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  29923. + else
  29924. + case `$CC -V 2>&1` in
  29925. + *"Compilers 5.0"*)
  29926. + wlarc=''
  29927. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29928. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29929. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  29930. + ;;
  29931. + *)
  29932. + wlarc='${wl}'
  29933. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29934. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29935. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  29936. + ;;
  29937. + esac
  29938. + fi
  29939. + hardcode_libdir_flag_spec='-R$libdir'
  29940. + hardcode_shlibpath_var=no
  29941. + case $host_os in
  29942. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  29943. + *)
  29944. + # The compiler driver will combine and reorder linker options,
  29945. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  29946. + # but is careful enough not to reorder.
  29947. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  29948. + if test "$GCC" = yes; then
  29949. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29950. + else
  29951. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  29952. + fi
  29953. + ;;
  29954. + esac
  29955. + link_all_deplibs=yes
  29956. + ;;
  29957. -# Take the output of nm and produce a listing of raw symbols and C names.
  29958. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29959. + sunos4*)
  29960. + if test "x$host_vendor" = xsequent; then
  29961. + # Use $CC to link under sequent, because it throws in some extra .o
  29962. + # files that make .init and .fini sections work.
  29963. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29964. + else
  29965. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  29966. + fi
  29967. + hardcode_libdir_flag_spec='-L$libdir'
  29968. + hardcode_direct=yes
  29969. + hardcode_minus_L=yes
  29970. + hardcode_shlibpath_var=no
  29971. + ;;
  29972. -# Transform the output of nm in a proper C declaration
  29973. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29974. + sysv4)
  29975. + case $host_vendor in
  29976. + sni)
  29977. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29978. + hardcode_direct=yes # is this really true???
  29979. + ;;
  29980. + siemens)
  29981. + ## LD is ld it makes a PLAMLIB
  29982. + ## CC just makes a GrossModule.
  29983. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  29984. + reload_cmds='$CC -r -o $output$reload_objs'
  29985. + hardcode_direct=no
  29986. + ;;
  29987. + motorola)
  29988. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29989. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  29990. + ;;
  29991. + esac
  29992. + runpath_var='LD_RUN_PATH'
  29993. + hardcode_shlibpath_var=no
  29994. + ;;
  29995. -# Transform the output of nm in a C name address pair
  29996. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29997. + sysv4.3*)
  29998. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29999. + hardcode_shlibpath_var=no
  30000. + export_dynamic_flag_spec='-Bexport'
  30001. + ;;
  30002. -# This is the shared library runtime path variable.
  30003. -runpath_var=$runpath_var
  30004. + sysv4*MP*)
  30005. + if test -d /usr/nec; then
  30006. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30007. + hardcode_shlibpath_var=no
  30008. + runpath_var=LD_RUN_PATH
  30009. + hardcode_runpath_var=yes
  30010. + ld_shlibs=yes
  30011. + fi
  30012. + ;;
  30013. -# This is the shared library path variable.
  30014. -shlibpath_var=$shlibpath_var
  30015. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  30016. + no_undefined_flag='${wl}-z,text'
  30017. + archive_cmds_need_lc=no
  30018. + hardcode_shlibpath_var=no
  30019. + runpath_var='LD_RUN_PATH'
  30020. -# Is shlibpath searched before the hard-coded library search path?
  30021. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30022. + if test "$GCC" = yes; then
  30023. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30024. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30025. + else
  30026. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30027. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30028. + fi
  30029. + ;;
  30030. -# How to hardcode a shared library path into an executable.
  30031. -hardcode_action=$hardcode_action
  30032. + sysv5* | sco3.2v5* | sco5v6*)
  30033. + # Note: We can NOT use -z defs as we might desire, because we do not
  30034. + # link with -lc, and that would cause any symbols used from libc to
  30035. + # always be unresolved, which means just about no library would
  30036. + # ever link correctly. If we're not using GNU ld we use -z text
  30037. + # though, which does catch some bad symbols but isn't as heavy-handed
  30038. + # as -z defs.
  30039. + no_undefined_flag='${wl}-z,text'
  30040. + allow_undefined_flag='${wl}-z,nodefs'
  30041. + archive_cmds_need_lc=no
  30042. + hardcode_shlibpath_var=no
  30043. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  30044. + hardcode_libdir_separator=':'
  30045. + link_all_deplibs=yes
  30046. + export_dynamic_flag_spec='${wl}-Bexport'
  30047. + runpath_var='LD_RUN_PATH'
  30048. -# Whether we should hardcode library paths into libraries.
  30049. -hardcode_into_libs=$hardcode_into_libs
  30050. + if test "$GCC" = yes; then
  30051. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30052. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30053. + else
  30054. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30055. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30056. + fi
  30057. + ;;
  30058. -# Flag to hardcode \$libdir into a binary during linking.
  30059. -# This must work even if \$libdir does not exist.
  30060. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30061. + uts4*)
  30062. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30063. + hardcode_libdir_flag_spec='-L$libdir'
  30064. + hardcode_shlibpath_var=no
  30065. + ;;
  30066. -# If ld is used when linking, flag to hardcode \$libdir into
  30067. -# a binary during linking. This must work even if \$libdir does
  30068. -# not exist.
  30069. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30070. + *)
  30071. + ld_shlibs=no
  30072. + ;;
  30073. + esac
  30074. -# Whether we need a single -rpath flag with a separated argument.
  30075. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30076. + if test x$host_vendor = xsni; then
  30077. + case $host in
  30078. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  30079. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  30080. + ;;
  30081. + esac
  30082. + fi
  30083. + fi
  30084. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30085. -# resulting binary.
  30086. -hardcode_direct=$hardcode_direct
  30087. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  30088. +$as_echo "$ld_shlibs" >&6; }
  30089. +test "$ld_shlibs" = no && can_build_shared=no
  30090. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30091. -# resulting binary.
  30092. -hardcode_minus_L=$hardcode_minus_L
  30093. +with_gnu_ld=$with_gnu_ld
  30094. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30095. -# the resulting binary.
  30096. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  30097. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30098. -# and all subsequent libraries and executables linked against it.
  30099. -hardcode_automatic=$hardcode_automatic
  30100. -# Variables whose values should be saved in libtool wrapper scripts and
  30101. -# restored at relink time.
  30102. -variables_saved_for_relink="$variables_saved_for_relink"
  30103. -# Whether libtool must link a program against all its dependency libraries.
  30104. -link_all_deplibs=$link_all_deplibs
  30105. -# Compile-time system search path for libraries
  30106. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30107. -# Run-time system search path for libraries
  30108. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30109. -# Fix the shell variable \$srcfile for the compiler.
  30110. -fix_srcfile_path="$fix_srcfile_path"
  30111. -# Set to yes if exported symbols are required.
  30112. -always_export_symbols=$always_export_symbols
  30113. -# The commands to list exported symbols.
  30114. -export_symbols_cmds=$lt_export_symbols_cmds
  30115. -# The commands to extract the exported symbol list from a shared archive.
  30116. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30117. -# Symbols that should not be listed in the preloaded symbols.
  30118. -exclude_expsyms=$lt_exclude_expsyms
  30119. -# Symbols that must always be exported.
  30120. -include_expsyms=$lt_include_expsyms
  30121. -# ### END LIBTOOL CONFIG
  30122. -__EOF__
  30123. +
  30124. +#
  30125. +# Do we need to explicitly link libc?
  30126. +#
  30127. +case "x$archive_cmds_need_lc" in
  30128. +x|xyes)
  30129. + # Assume -lc should be added
  30130. + archive_cmds_need_lc=yes
  30131. +
  30132. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  30133. + case $archive_cmds in
  30134. + *'~'*)
  30135. + # FIXME: we may have to deal with multi-command sequences.
  30136. + ;;
  30137. + '$CC '*)
  30138. + # Test whether the compiler implicitly links with -lc since on some
  30139. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30140. + # to ld, don't add -lc before -lgcc.
  30141. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  30142. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  30143. + $RM conftest*
  30144. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30145. +
  30146. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  30147. + (eval $ac_compile) 2>&5
  30148. + ac_status=$?
  30149. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30150. + test $ac_status = 0; } 2>conftest.err; then
  30151. + soname=conftest
  30152. + lib=conftest
  30153. + libobjs=conftest.$ac_objext
  30154. + deplibs=
  30155. + wl=$lt_prog_compiler_wl
  30156. + pic_flag=$lt_prog_compiler_pic
  30157. + compiler_flags=-v
  30158. + linker_flags=-v
  30159. + verstring=
  30160. + output_objdir=.
  30161. + libname=conftest
  30162. + lt_save_allow_undefined_flag=$allow_undefined_flag
  30163. + allow_undefined_flag=
  30164. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  30165. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30166. + ac_status=$?
  30167. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30168. + test $ac_status = 0; }
  30169. + then
  30170. + archive_cmds_need_lc=no
  30171. + else
  30172. + archive_cmds_need_lc=yes
  30173. + fi
  30174. + allow_undefined_flag=$lt_save_allow_undefined_flag
  30175. + else
  30176. + cat conftest.err 1>&5
  30177. + fi
  30178. + $RM conftest*
  30179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  30180. +$as_echo "$archive_cmds_need_lc" >&6; }
  30181. + ;;
  30182. + esac
  30183. + fi
  30184. + ;;
  30185. +esac
  30186. - case $host_os in
  30187. - aix3*)
  30188. - cat <<\EOF >> "$cfgfile"
  30189. -# AIX sometimes has problems with the GCC collect2 program. For some
  30190. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  30191. -# vanish in a puff of smoke.
  30192. -if test "X${COLLECT_NAMES+set}" != Xset; then
  30193. - COLLECT_NAMES=
  30194. - export COLLECT_NAMES
  30195. -fi
  30196. -EOF
  30197. - ;;
  30198. - esac
  30199. - # We use sed instead of cat because bash on DJGPP gets confused if
  30200. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30201. - # text mode, it properly converts lines to CR/LF. This bash problem
  30202. - # is reportedly fixed, but why not run on old versions too?
  30203. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  30204. - mv -f "$cfgfile" "$ofile" || \
  30205. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30206. - chmod +x "$ofile"
  30207. -else
  30208. - # If there is no Makefile yet, we rely on a make rule to execute
  30209. - # `config.status --recheck' to rerun these tests and create the
  30210. - # libtool script then.
  30211. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30212. - if test -f "$ltmain_in"; then
  30213. - test -f Makefile && make "$ltmain"
  30214. - fi
  30215. -fi
  30216. -ac_ext=c
  30217. -ac_cpp='$CPP $CPPFLAGS'
  30218. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30219. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30220. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30221. -CC="$lt_save_CC"
  30222. -# Check whether --with-tags was given.
  30223. -if test "${with_tags+set}" = set; then
  30224. - withval=$with_tags; tagnames="$withval"
  30225. -fi
  30226. -if test -f "$ltmain" && test -n "$tagnames"; then
  30227. - if test ! -f "${ofile}"; then
  30228. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  30229. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  30230. - fi
  30231. - if test -z "$LTCC"; then
  30232. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  30233. - if test -z "$LTCC"; then
  30234. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  30235. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  30236. - else
  30237. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  30238. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  30239. - fi
  30240. - fi
  30241. - if test -z "$LTCFLAGS"; then
  30242. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  30243. - fi
  30244. - # Extract list of available tagged configurations in $ofile.
  30245. - # Note that this assumes the entire list is on one line.
  30246. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  30247. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  30248. - for tagname in $tagnames; do
  30249. - IFS="$lt_save_ifs"
  30250. - # Check whether tagname contains only valid characters
  30251. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  30252. - "") ;;
  30253. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  30254. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  30255. - { (exit 1); exit 1; }; }
  30256. - ;;
  30257. - esac
  30258. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  30259. - then
  30260. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  30261. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  30262. - { (exit 1); exit 1; }; }
  30263. - fi
  30264. - # Update the list of available tags.
  30265. - if test -n "$tagname"; then
  30266. - echo appending configuration tag \"$tagname\" to $ofile
  30267. -
  30268. - case $tagname in
  30269. - CXX)
  30270. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  30271. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  30272. - (test "X$CXX" != "Xg++"))) ; then
  30273. - ac_ext=cpp
  30274. -ac_cpp='$CXXCPP $CPPFLAGS'
  30275. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30276. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30277. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30278. -archive_cmds_need_lc_CXX=no
  30279. -allow_undefined_flag_CXX=
  30280. -always_export_symbols_CXX=no
  30281. -archive_expsym_cmds_CXX=
  30282. -export_dynamic_flag_spec_CXX=
  30283. -hardcode_direct_CXX=no
  30284. -hardcode_libdir_flag_spec_CXX=
  30285. -hardcode_libdir_flag_spec_ld_CXX=
  30286. -hardcode_libdir_separator_CXX=
  30287. -hardcode_minus_L_CXX=no
  30288. -hardcode_shlibpath_var_CXX=unsupported
  30289. -hardcode_automatic_CXX=no
  30290. -module_cmds_CXX=
  30291. -module_expsym_cmds_CXX=
  30292. -link_all_deplibs_CXX=unknown
  30293. -old_archive_cmds_CXX=$old_archive_cmds
  30294. -no_undefined_flag_CXX=
  30295. -whole_archive_flag_spec_CXX=
  30296. -enable_shared_with_static_runtimes_CXX=no
  30297. -# Dependencies to place before and after the object being linked:
  30298. -predep_objects_CXX=
  30299. -postdep_objects_CXX=
  30300. -predeps_CXX=
  30301. -postdeps_CXX=
  30302. -compiler_lib_search_path_CXX=
  30303. -# Source file extension for C++ test sources.
  30304. -ac_ext=cpp
  30305. -# Object file extension for compiled C++ test sources.
  30306. -objext=o
  30307. -objext_CXX=$objext
  30308. -# Code to be used in simple compile tests
  30309. -lt_simple_compile_test_code="int some_variable = 0;\n"
  30310. -# Code to be used in simple link tests
  30311. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  30312. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30313. -# If no C compiler was specified, use CC.
  30314. -LTCC=${LTCC-"$CC"}
  30315. -# If no C compiler flags were specified, use CFLAGS.
  30316. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30317. -# Allow CC to be a program name with arguments.
  30318. -compiler=$CC
  30319. -# save warnings/boilerplate of simple test code
  30320. -ac_outfile=conftest.$ac_objext
  30321. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  30322. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30323. -_lt_compiler_boilerplate=`cat conftest.err`
  30324. -$rm conftest*
  30325. -ac_outfile=conftest.$ac_objext
  30326. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  30327. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30328. -_lt_linker_boilerplate=`cat conftest.err`
  30329. -$rm conftest*
  30330. -# Allow CC to be a program name with arguments.
  30331. -lt_save_CC=$CC
  30332. -lt_save_LD=$LD
  30333. -lt_save_GCC=$GCC
  30334. -GCC=$GXX
  30335. -lt_save_with_gnu_ld=$with_gnu_ld
  30336. -lt_save_path_LD=$lt_cv_path_LD
  30337. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  30338. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  30339. -else
  30340. - $as_unset lt_cv_prog_gnu_ld
  30341. -fi
  30342. -if test -n "${lt_cv_path_LDCXX+set}"; then
  30343. - lt_cv_path_LD=$lt_cv_path_LDCXX
  30344. -else
  30345. - $as_unset lt_cv_path_LD
  30346. -fi
  30347. -test -z "${LDCXX+set}" || LD=$LDCXX
  30348. -CC=${CXX-"c++"}
  30349. -compiler=$CC
  30350. -compiler_CXX=$CC
  30351. -for cc_temp in $compiler""; do
  30352. - case $cc_temp in
  30353. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30354. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30355. - \-*) ;;
  30356. - *) break;;
  30357. - esac
  30358. -done
  30359. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30360. -# We don't want -fno-exception wen compiling C++ code, so set the
  30361. -# no_builtin_flag separately
  30362. -if test "$GXX" = yes; then
  30363. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  30364. -else
  30365. - lt_prog_compiler_no_builtin_flag_CXX=
  30366. -fi
  30367. -if test "$GXX" = yes; then
  30368. - # Set up default GNU C++ configuration
  30369. -# Check whether --with-gnu-ld was given.
  30370. -if test "${with_gnu_ld+set}" = set; then
  30371. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  30372. -else
  30373. - with_gnu_ld=no
  30374. -fi
  30375. -ac_prog=ld
  30376. -if test "$GCC" = yes; then
  30377. - # Check if gcc -print-prog-name=ld gives a path.
  30378. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  30379. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  30380. - case $host in
  30381. - *-*-mingw*)
  30382. - # gcc leaves a trailing carriage return which upsets mingw
  30383. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  30384. - *)
  30385. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  30386. - esac
  30387. - case $ac_prog in
  30388. - # Accept absolute paths.
  30389. - [\\/]* | ?:[\\/]*)
  30390. - re_direlt='/[^/][^/]*/\.\./'
  30391. - # Canonicalize the pathname of ld
  30392. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  30393. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  30394. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  30395. - done
  30396. - test -z "$LD" && LD="$ac_prog"
  30397. - ;;
  30398. - "")
  30399. - # If it fails, then pretend we aren't using GCC.
  30400. - ac_prog=ld
  30401. - ;;
  30402. - *)
  30403. - # If it is relative, then search for the first ld in PATH.
  30404. - with_gnu_ld=unknown
  30405. - ;;
  30406. - esac
  30407. -elif test "$with_gnu_ld" = yes; then
  30408. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  30409. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  30410. -else
  30411. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  30412. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  30413. -fi
  30414. -if test "${lt_cv_path_LD+set}" = set; then
  30415. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30416. -else
  30417. - if test -z "$LD"; then
  30418. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30419. - for ac_dir in $PATH; do
  30420. - IFS="$lt_save_ifs"
  30421. - test -z "$ac_dir" && ac_dir=.
  30422. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  30423. - lt_cv_path_LD="$ac_dir/$ac_prog"
  30424. - # Check to see if the program is GNU ld. I'd rather use --version,
  30425. - # but apparently some variants of GNU ld only accept -v.
  30426. - # Break only if it was the GNU/non-GNU ld that we prefer.
  30427. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  30428. - *GNU* | *'with BFD'*)
  30429. - test "$with_gnu_ld" != no && break
  30430. - ;;
  30431. - *)
  30432. - test "$with_gnu_ld" != yes && break
  30433. - ;;
  30434. - esac
  30435. - fi
  30436. - done
  30437. - IFS="$lt_save_ifs"
  30438. -else
  30439. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  30440. -fi
  30441. -fi
  30442. -LD="$lt_cv_path_LD"
  30443. -if test -n "$LD"; then
  30444. - { echo "$as_me:$LINENO: result: $LD" >&5
  30445. -echo "${ECHO_T}$LD" >&6; }
  30446. -else
  30447. - { echo "$as_me:$LINENO: result: no" >&5
  30448. -echo "${ECHO_T}no" >&6; }
  30449. -fi
  30450. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  30451. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  30452. - { (exit 1); exit 1; }; }
  30453. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  30454. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  30455. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  30456. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30457. -else
  30458. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  30459. -case `$LD -v 2>&1 </dev/null` in
  30460. -*GNU* | *'with BFD'*)
  30461. - lt_cv_prog_gnu_ld=yes
  30462. - ;;
  30463. -*)
  30464. - lt_cv_prog_gnu_ld=no
  30465. - ;;
  30466. -esac
  30467. -fi
  30468. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  30469. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  30470. -with_gnu_ld=$lt_cv_prog_gnu_ld
  30471. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  30472. - # archiving commands below assume that GNU ld is being used.
  30473. - if test "$with_gnu_ld" = yes; then
  30474. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30475. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30476. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  30477. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  30478. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30479. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  30480. - # investigate it a little bit more. (MM)
  30481. - wlarc='${wl}'
  30482. - # ancient GNU ld didn't support --whole-archive et. al.
  30483. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  30484. - grep 'no-whole-archive' > /dev/null; then
  30485. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30486. - else
  30487. - whole_archive_flag_spec_CXX=
  30488. - fi
  30489. - else
  30490. - with_gnu_ld=no
  30491. - wlarc=
  30492. - # A generic and very simple default shared library creation
  30493. - # command for GNU C++ for the case where it uses the native
  30494. - # linker, instead of GNU ld. If possible, this setting should
  30495. - # overridden to take advantage of the native linker features on
  30496. - # the platform it is being used on.
  30497. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  30498. - fi
  30499. - # Commands to make compiler produce verbose output that lists
  30500. - # what "hidden" libraries, object files and flags are used when
  30501. - # linking a shared library.
  30502. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  30503. -else
  30504. - GXX=no
  30505. - with_gnu_ld=no
  30506. - wlarc=
  30507. -fi
  30508. -# PORTME: fill in a description of your system's C++ link characteristics
  30509. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30510. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  30511. -ld_shlibs_CXX=yes
  30512. -case $host_os in
  30513. - aix3*)
  30514. - # FIXME: insert proper C++ library support
  30515. - ld_shlibs_CXX=no
  30516. - ;;
  30517. - aix4* | aix5*)
  30518. - if test "$host_cpu" = ia64; then
  30519. - # On IA64, the linker does run time linking by default, so we don't
  30520. - # have to do anything special.
  30521. - aix_use_runtimelinking=no
  30522. - exp_sym_flag='-Bexport'
  30523. - no_entry_flag=""
  30524. - else
  30525. - aix_use_runtimelinking=no
  30526. - # Test if we are trying to use run time linking or normal
  30527. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30528. - # need to do runtime linking.
  30529. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  30530. - for ld_flag in $LDFLAGS; do
  30531. - case $ld_flag in
  30532. - *-brtl*)
  30533. - aix_use_runtimelinking=yes
  30534. - break
  30535. - ;;
  30536. - esac
  30537. - done
  30538. - ;;
  30539. - esac
  30540. - exp_sym_flag='-bexport'
  30541. - no_entry_flag='-bnoentry'
  30542. - fi
  30543. - # When large executables or shared objects are built, AIX ld can
  30544. - # have problems creating the table of contents. If linking a library
  30545. - # or program results in "error TOC overflow" add -mminimal-toc to
  30546. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30547. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30548. -
  30549. - archive_cmds_CXX=''
  30550. - hardcode_direct_CXX=yes
  30551. - hardcode_libdir_separator_CXX=':'
  30552. - link_all_deplibs_CXX=yes
  30553. - if test "$GXX" = yes; then
  30554. - case $host_os in aix4.[012]|aix4.[012].*)
  30555. - # We only want to do this on AIX 4.2 and lower, the check
  30556. - # below for broken collect2 doesn't work under 4.3+
  30557. - collect2name=`${CC} -print-prog-name=collect2`
  30558. - if test -f "$collect2name" && \
  30559. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30560. - then
  30561. - # We have reworked collect2
  30562. - hardcode_direct_CXX=yes
  30563. - else
  30564. - # We have old collect2
  30565. - hardcode_direct_CXX=unsupported
  30566. - # It fails to find uninstalled libraries when the uninstalled
  30567. - # path is not listed in the libpath. Setting hardcode_minus_L
  30568. - # to unsupported forces relinking
  30569. - hardcode_minus_L_CXX=yes
  30570. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  30571. - hardcode_libdir_separator_CXX=
  30572. - fi
  30573. - ;;
  30574. - esac
  30575. - shared_flag='-shared'
  30576. - if test "$aix_use_runtimelinking" = yes; then
  30577. - shared_flag="$shared_flag "'${wl}-G'
  30578. - fi
  30579. - else
  30580. - # not using gcc
  30581. - if test "$host_cpu" = ia64; then
  30582. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30583. - # chokes on -Wl,-G. The following line is correct:
  30584. - shared_flag='-G'
  30585. - else
  30586. - if test "$aix_use_runtimelinking" = yes; then
  30587. - shared_flag='${wl}-G'
  30588. - else
  30589. - shared_flag='${wl}-bM:SRE'
  30590. - fi
  30591. - fi
  30592. - fi
  30593. - # It seems that -bexpall does not export symbols beginning with
  30594. - # underscore (_), so it is better to generate a list of symbols to export.
  30595. - always_export_symbols_CXX=yes
  30596. - if test "$aix_use_runtimelinking" = yes; then
  30597. - # Warning - without using the other runtime loading flags (-brtl),
  30598. - # -berok will link without error, but may produce a broken library.
  30599. - allow_undefined_flag_CXX='-berok'
  30600. - # Determine the default libpath from the value encoded in an empty executable.
  30601. - cat >conftest.$ac_ext <<_ACEOF
  30602. -/* confdefs.h. */
  30603. -_ACEOF
  30604. -cat confdefs.h >>conftest.$ac_ext
  30605. -cat >>conftest.$ac_ext <<_ACEOF
  30606. -/* end confdefs.h. */
  30607. -int
  30608. -main ()
  30609. -{
  30610. - ;
  30611. - return 0;
  30612. -}
  30613. -_ACEOF
  30614. -rm -f conftest.$ac_objext conftest$ac_exeext
  30615. -if { (ac_try="$ac_link"
  30616. -case "(($ac_try" in
  30617. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30618. - *) ac_try_echo=$ac_try;;
  30619. -esac
  30620. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30621. - (eval "$ac_link") 2>conftest.er1
  30622. - ac_status=$?
  30623. - grep -v '^ *+' conftest.er1 >conftest.err
  30624. - rm -f conftest.er1
  30625. - cat conftest.err >&5
  30626. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30627. - (exit $ac_status); } && {
  30628. - test -z "$ac_cxx_werror_flag" ||
  30629. - test ! -s conftest.err
  30630. - } && test -s conftest$ac_exeext &&
  30631. - $as_test_x conftest$ac_exeext; then
  30632. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30633. -}'`
  30634. -# Check for a 64-bit object if we didn't find anything.
  30635. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30636. -}'`; fi
  30637. -else
  30638. - echo "$as_me: failed program was:" >&5
  30639. -sed 's/^/| /' conftest.$ac_ext >&5
  30640. -fi
  30641. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30642. - conftest$ac_exeext conftest.$ac_ext
  30643. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30644. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  30645. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  30646. - else
  30647. - if test "$host_cpu" = ia64; then
  30648. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  30649. - allow_undefined_flag_CXX="-z nodefs"
  30650. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  30651. - else
  30652. - # Determine the default libpath from the value encoded in an empty executable.
  30653. - cat >conftest.$ac_ext <<_ACEOF
  30654. -/* confdefs.h. */
  30655. -_ACEOF
  30656. -cat confdefs.h >>conftest.$ac_ext
  30657. -cat >>conftest.$ac_ext <<_ACEOF
  30658. -/* end confdefs.h. */
  30659. -int
  30660. -main ()
  30661. -{
  30662. - ;
  30663. - return 0;
  30664. -}
  30665. -_ACEOF
  30666. -rm -f conftest.$ac_objext conftest$ac_exeext
  30667. -if { (ac_try="$ac_link"
  30668. -case "(($ac_try" in
  30669. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30670. - *) ac_try_echo=$ac_try;;
  30671. -esac
  30672. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30673. - (eval "$ac_link") 2>conftest.er1
  30674. - ac_status=$?
  30675. - grep -v '^ *+' conftest.er1 >conftest.err
  30676. - rm -f conftest.er1
  30677. - cat conftest.err >&5
  30678. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30679. - (exit $ac_status); } && {
  30680. - test -z "$ac_cxx_werror_flag" ||
  30681. - test ! -s conftest.err
  30682. - } && test -s conftest$ac_exeext &&
  30683. - $as_test_x conftest$ac_exeext; then
  30684. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30685. -}'`
  30686. -# Check for a 64-bit object if we didn't find anything.
  30687. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30688. -}'`; fi
  30689. -else
  30690. - echo "$as_me: failed program was:" >&5
  30691. -sed 's/^/| /' conftest.$ac_ext >&5
  30692. -fi
  30693. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30694. - conftest$ac_exeext conftest.$ac_ext
  30695. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30696. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  30697. - # Warning - without using the other run time loading flags,
  30698. - # -berok will link without error, but may produce a broken library.
  30699. - no_undefined_flag_CXX=' ${wl}-bernotok'
  30700. - allow_undefined_flag_CXX=' ${wl}-berok'
  30701. - # Exported symbols can be pulled into shared objects from archives
  30702. - whole_archive_flag_spec_CXX='$convenience'
  30703. - archive_cmds_need_lc_CXX=yes
  30704. - # This is similar to how AIX traditionally builds its shared libraries.
  30705. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  30706. - fi
  30707. - fi
  30708. - ;;
  30709. - beos*)
  30710. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30711. - allow_undefined_flag_CXX=unsupported
  30712. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30713. - # support --undefined. This deserves some investigation. FIXME
  30714. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30715. - else
  30716. - ld_shlibs_CXX=no
  30717. - fi
  30718. - ;;
  30719. - chorus*)
  30720. - case $cc_basename in
  30721. - *)
  30722. - # FIXME: insert proper C++ library support
  30723. - ld_shlibs_CXX=no
  30724. - ;;
  30725. - esac
  30726. - ;;
  30727. - cygwin* | mingw* | pw32*)
  30728. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  30729. - # as there is no search path for DLLs.
  30730. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  30731. - allow_undefined_flag_CXX=unsupported
  30732. - always_export_symbols_CXX=no
  30733. - enable_shared_with_static_runtimes_CXX=yes
  30734. -
  30735. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30736. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30737. - # If the export-symbols file already is a .def file (1st line
  30738. - # is EXPORTS), use it as is; otherwise, prepend...
  30739. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30740. - cp $export_symbols $output_objdir/$soname.def;
  30741. - else
  30742. - echo EXPORTS > $output_objdir/$soname.def;
  30743. - cat $export_symbols >> $output_objdir/$soname.def;
  30744. - fi~
  30745. - $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'
  30746. - else
  30747. - ld_shlibs_CXX=no
  30748. - fi
  30749. - ;;
  30750. - darwin* | rhapsody*)
  30751. - case $host_os in
  30752. - rhapsody* | darwin1.[012])
  30753. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  30754. - ;;
  30755. - *) # Darwin 1.3 on
  30756. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30757. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30758. - else
  30759. - case ${MACOSX_DEPLOYMENT_TARGET} in
  30760. - 10.[012])
  30761. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30762. - ;;
  30763. - 10.*)
  30764. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  30765. - ;;
  30766. - esac
  30767. - fi
  30768. - ;;
  30769. - esac
  30770. - archive_cmds_need_lc_CXX=no
  30771. - hardcode_direct_CXX=no
  30772. - hardcode_automatic_CXX=yes
  30773. - hardcode_shlibpath_var_CXX=unsupported
  30774. - whole_archive_flag_spec_CXX=''
  30775. - link_all_deplibs_CXX=yes
  30776. -
  30777. - if test "$GXX" = yes ; then
  30778. - lt_int_apple_cc_single_mod=no
  30779. - output_verbose_link_cmd='echo'
  30780. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  30781. - lt_int_apple_cc_single_mod=yes
  30782. - fi
  30783. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  30784. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  30785. - else
  30786. - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  30787. - fi
  30788. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30789. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30790. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  30791. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30792. - else
  30793. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30794. - fi
  30795. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30796. - else
  30797. - case $cc_basename in
  30798. - xlc*)
  30799. - output_verbose_link_cmd='echo'
  30800. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  30801. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30802. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30803. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30804. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30805. - ;;
  30806. - *)
  30807. - ld_shlibs_CXX=no
  30808. - ;;
  30809. - esac
  30810. - fi
  30811. - ;;
  30812. - dgux*)
  30813. - case $cc_basename in
  30814. - ec++*)
  30815. - # FIXME: insert proper C++ library support
  30816. - ld_shlibs_CXX=no
  30817. - ;;
  30818. - ghcx*)
  30819. - # Green Hills C++ Compiler
  30820. - # FIXME: insert proper C++ library support
  30821. - ld_shlibs_CXX=no
  30822. - ;;
  30823. - *)
  30824. - # FIXME: insert proper C++ library support
  30825. - ld_shlibs_CXX=no
  30826. - ;;
  30827. - esac
  30828. - ;;
  30829. - freebsd[12]*)
  30830. - # C++ shared libraries reported to be fairly broken before switch to ELF
  30831. - ld_shlibs_CXX=no
  30832. - ;;
  30833. - freebsd-elf*)
  30834. - archive_cmds_need_lc_CXX=no
  30835. - ;;
  30836. - freebsd* | dragonfly*)
  30837. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  30838. - # conventions
  30839. - ld_shlibs_CXX=yes
  30840. - ;;
  30841. - gnu*)
  30842. - ;;
  30843. - hpux9*)
  30844. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30845. - hardcode_libdir_separator_CXX=:
  30846. - export_dynamic_flag_spec_CXX='${wl}-E'
  30847. - hardcode_direct_CXX=yes
  30848. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30849. - # but as the default
  30850. - # location of the library.
  30851. -
  30852. - case $cc_basename in
  30853. - CC*)
  30854. - # FIXME: insert proper C++ library support
  30855. - ld_shlibs_CXX=no
  30856. - ;;
  30857. - aCC*)
  30858. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  30859. - # Commands to make compiler produce verbose output that lists
  30860. - # what "hidden" libraries, object files and flags are used when
  30861. - # linking a shared library.
  30862. - #
  30863. - # There doesn't appear to be a way to prevent this compiler from
  30864. - # explicitly linking system object files so we need to strip them
  30865. - # from the output so that they don't get included in the library
  30866. - # dependencies.
  30867. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  30868. - ;;
  30869. - *)
  30870. - if test "$GXX" = yes; then
  30871. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  30872. - else
  30873. - # FIXME: insert proper C++ library support
  30874. - ld_shlibs_CXX=no
  30875. - fi
  30876. - ;;
  30877. - esac
  30878. - ;;
  30879. - hpux10*|hpux11*)
  30880. - if test $with_gnu_ld = no; then
  30881. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30882. - hardcode_libdir_separator_CXX=:
  30883. - case $host_cpu in
  30884. - hppa*64*|ia64*)
  30885. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  30886. - ;;
  30887. - *)
  30888. - export_dynamic_flag_spec_CXX='${wl}-E'
  30889. - ;;
  30890. - esac
  30891. - fi
  30892. - case $host_cpu in
  30893. - hppa*64*|ia64*)
  30894. - hardcode_direct_CXX=no
  30895. - hardcode_shlibpath_var_CXX=no
  30896. - ;;
  30897. - *)
  30898. - hardcode_direct_CXX=yes
  30899. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30900. - # but as the default
  30901. - # location of the library.
  30902. - ;;
  30903. - esac
  30904. - case $cc_basename in
  30905. - CC*)
  30906. - # FIXME: insert proper C++ library support
  30907. - ld_shlibs_CXX=no
  30908. - ;;
  30909. - aCC*)
  30910. - case $host_cpu in
  30911. - hppa*64*)
  30912. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30913. - ;;
  30914. - ia64*)
  30915. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30916. - ;;
  30917. - *)
  30918. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30919. - ;;
  30920. - esac
  30921. - # Commands to make compiler produce verbose output that lists
  30922. - # what "hidden" libraries, object files and flags are used when
  30923. - # linking a shared library.
  30924. - #
  30925. - # There doesn't appear to be a way to prevent this compiler from
  30926. - # explicitly linking system object files so we need to strip them
  30927. - # from the output so that they don't get included in the library
  30928. - # dependencies.
  30929. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  30930. - ;;
  30931. - *)
  30932. - if test "$GXX" = yes; then
  30933. - if test $with_gnu_ld = no; then
  30934. - case $host_cpu in
  30935. - hppa*64*)
  30936. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30937. - ;;
  30938. - ia64*)
  30939. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30940. - ;;
  30941. - *)
  30942. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30943. - ;;
  30944. - esac
  30945. - fi
  30946. - else
  30947. - # FIXME: insert proper C++ library support
  30948. - ld_shlibs_CXX=no
  30949. - fi
  30950. - ;;
  30951. - esac
  30952. - ;;
  30953. - interix3*)
  30954. - hardcode_direct_CXX=no
  30955. - hardcode_shlibpath_var_CXX=no
  30956. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  30957. - export_dynamic_flag_spec_CXX='${wl}-E'
  30958. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30959. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  30960. - # default) and relocated if they conflict, which is a slow very memory
  30961. - # consuming and fragmenting process. To avoid this, we pick a random,
  30962. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30963. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30964. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30965. - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30966. - ;;
  30967. - irix5* | irix6*)
  30968. - case $cc_basename in
  30969. - CC*)
  30970. - # SGI C++
  30971. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  30972. -
  30973. - # Archives containing C++ object files must be created using
  30974. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  30975. - # necessary to make sure instantiated templates are included
  30976. - # in the archive.
  30977. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  30978. - ;;
  30979. - *)
  30980. - if test "$GXX" = yes; then
  30981. - if test "$with_gnu_ld" = no; then
  30982. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  30983. - else
  30984. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  30985. - fi
  30986. - fi
  30987. - link_all_deplibs_CXX=yes
  30988. - ;;
  30989. - esac
  30990. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  30991. - hardcode_libdir_separator_CXX=:
  30992. - ;;
  30993. - linux* | k*bsd*-gnu)
  30994. - case $cc_basename in
  30995. - KCC*)
  30996. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  30997. -
  30998. - # KCC will only create a shared library if the output file
  30999. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31000. - # to its proper name (with version) after linking.
  31001. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  31002. - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  31003. - # Commands to make compiler produce verbose output that lists
  31004. - # what "hidden" libraries, object files and flags are used when
  31005. - # linking a shared library.
  31006. - #
  31007. - # There doesn't appear to be a way to prevent this compiler from
  31008. - # explicitly linking system object files so we need to strip them
  31009. - # from the output so that they don't get included in the library
  31010. - # dependencies.
  31011. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  31012. -
  31013. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  31014. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31015. -
  31016. - # Archives containing C++ object files must be created using
  31017. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  31018. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  31019. - ;;
  31020. - icpc*)
  31021. - # Intel C++
  31022. - with_gnu_ld=yes
  31023. - # version 8.0 and above of icpc choke on multiply defined symbols
  31024. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  31025. - # earlier do not add the objects themselves.
  31026. - case `$CC -V 2>&1` in
  31027. - *"Version 7."*)
  31028. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31029. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31030. - ;;
  31031. - *) # Version 8.0 or newer
  31032. - tmp_idyn=
  31033. - case $host_cpu in
  31034. - ia64*) tmp_idyn=' -i_dynamic';;
  31035. - esac
  31036. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31037. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31038. - ;;
  31039. - esac
  31040. - archive_cmds_need_lc_CXX=no
  31041. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31042. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31043. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  31044. - ;;
  31045. - pgCC*)
  31046. - # Portland Group C++ compiler
  31047. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  31048. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  31049. -
  31050. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31051. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31052. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31053. - ;;
  31054. - cxx*)
  31055. - # Compaq C++
  31056. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31057. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  31058. - runpath_var=LD_RUN_PATH
  31059. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  31060. - hardcode_libdir_separator_CXX=:
  31061. - # Commands to make compiler produce verbose output that lists
  31062. - # what "hidden" libraries, object files and flags are used when
  31063. - # linking a shared library.
  31064. - #
  31065. - # There doesn't appear to be a way to prevent this compiler from
  31066. - # explicitly linking system object files so we need to strip them
  31067. - # from the output so that they don't get included in the library
  31068. - # dependencies.
  31069. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  31070. - ;;
  31071. - esac
  31072. - ;;
  31073. - lynxos*)
  31074. - # FIXME: insert proper C++ library support
  31075. - ld_shlibs_CXX=no
  31076. - ;;
  31077. - m88k*)
  31078. - # FIXME: insert proper C++ library support
  31079. - ld_shlibs_CXX=no
  31080. - ;;
  31081. - mvs*)
  31082. - case $cc_basename in
  31083. - cxx*)
  31084. - # FIXME: insert proper C++ library support
  31085. - ld_shlibs_CXX=no
  31086. - ;;
  31087. - *)
  31088. - # FIXME: insert proper C++ library support
  31089. - ld_shlibs_CXX=no
  31090. - ;;
  31091. - esac
  31092. - ;;
  31093. - netbsd* | netbsdelf*-gnu)
  31094. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31095. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  31096. - wlarc=
  31097. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  31098. - hardcode_direct_CXX=yes
  31099. - hardcode_shlibpath_var_CXX=no
  31100. - fi
  31101. - # Workaround some broken pre-1.5 toolchains
  31102. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  31103. - ;;
  31104. - openbsd2*)
  31105. - # C++ shared libraries are fairly broken
  31106. - ld_shlibs_CXX=no
  31107. - ;;
  31108. - openbsd*)
  31109. - hardcode_direct_CXX=yes
  31110. - hardcode_shlibpath_var_CXX=no
  31111. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  31112. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31113. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31114. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  31115. - export_dynamic_flag_spec_CXX='${wl}-E'
  31116. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31117. - fi
  31118. - output_verbose_link_cmd='echo'
  31119. - ;;
  31120. - osf3*)
  31121. - case $cc_basename in
  31122. - KCC*)
  31123. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31124. -
  31125. - # KCC will only create a shared library if the output file
  31126. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31127. - # to its proper name (with version) after linking.
  31128. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  31129. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31130. - hardcode_libdir_separator_CXX=:
  31131. - # Archives containing C++ object files must be created using
  31132. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  31133. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  31134. - ;;
  31135. - RCC*)
  31136. - # Rational C++ 2.4.1
  31137. - # FIXME: insert proper C++ library support
  31138. - ld_shlibs_CXX=no
  31139. - ;;
  31140. - cxx*)
  31141. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31142. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31143. -
  31144. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31145. - hardcode_libdir_separator_CXX=:
  31146. -
  31147. - # Commands to make compiler produce verbose output that lists
  31148. - # what "hidden" libraries, object files and flags are used when
  31149. - # linking a shared library.
  31150. - #
  31151. - # There doesn't appear to be a way to prevent this compiler from
  31152. - # explicitly linking system object files so we need to strip them
  31153. - # from the output so that they don't get included in the library
  31154. - # dependencies.
  31155. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  31156. - ;;
  31157. - *)
  31158. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31159. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31160. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31161. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31162. - hardcode_libdir_separator_CXX=:
  31163. - # Commands to make compiler produce verbose output that lists
  31164. - # what "hidden" libraries, object files and flags are used when
  31165. - # linking a shared library.
  31166. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31167. - else
  31168. - # FIXME: insert proper C++ library support
  31169. - ld_shlibs_CXX=no
  31170. - fi
  31171. - ;;
  31172. - esac
  31173. - ;;
  31174. - osf4* | osf5*)
  31175. - case $cc_basename in
  31176. - KCC*)
  31177. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31178. -
  31179. - # KCC will only create a shared library if the output file
  31180. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31181. - # to its proper name (with version) after linking.
  31182. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  31183. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31184. - hardcode_libdir_separator_CXX=:
  31185. - # Archives containing C++ object files must be created using
  31186. - # the KAI C++ compiler.
  31187. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  31188. - ;;
  31189. - RCC*)
  31190. - # Rational C++ 2.4.1
  31191. - # FIXME: insert proper C++ library support
  31192. - ld_shlibs_CXX=no
  31193. - ;;
  31194. - cxx*)
  31195. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  31196. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31197. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  31198. - echo "-hidden">> $lib.exp~
  31199. - $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~
  31200. - $rm $lib.exp'
  31201. -
  31202. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  31203. - hardcode_libdir_separator_CXX=:
  31204. -
  31205. - # Commands to make compiler produce verbose output that lists
  31206. - # what "hidden" libraries, object files and flags are used when
  31207. - # linking a shared library.
  31208. - #
  31209. - # There doesn't appear to be a way to prevent this compiler from
  31210. - # explicitly linking system object files so we need to strip them
  31211. - # from the output so that they don't get included in the library
  31212. - # dependencies.
  31213. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  31214. - ;;
  31215. - *)
  31216. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31217. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31218. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31219. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31220. - hardcode_libdir_separator_CXX=:
  31221. - # Commands to make compiler produce verbose output that lists
  31222. - # what "hidden" libraries, object files and flags are used when
  31223. - # linking a shared library.
  31224. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31225. - else
  31226. - # FIXME: insert proper C++ library support
  31227. - ld_shlibs_CXX=no
  31228. - fi
  31229. - ;;
  31230. - esac
  31231. - ;;
  31232. - psos*)
  31233. - # FIXME: insert proper C++ library support
  31234. - ld_shlibs_CXX=no
  31235. - ;;
  31236. - sunos4*)
  31237. - case $cc_basename in
  31238. - CC*)
  31239. - # Sun C++ 4.x
  31240. - # FIXME: insert proper C++ library support
  31241. - ld_shlibs_CXX=no
  31242. - ;;
  31243. - lcc*)
  31244. - # Lucid
  31245. - # FIXME: insert proper C++ library support
  31246. - ld_shlibs_CXX=no
  31247. - ;;
  31248. - *)
  31249. - # FIXME: insert proper C++ library support
  31250. - ld_shlibs_CXX=no
  31251. - ;;
  31252. - esac
  31253. - ;;
  31254. - solaris*)
  31255. - case $cc_basename in
  31256. - CC*)
  31257. - # Sun C++ 4.2, 5.x and Centerline C++
  31258. - archive_cmds_need_lc_CXX=yes
  31259. - no_undefined_flag_CXX=' -zdefs'
  31260. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31261. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31262. - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  31263. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  31264. - hardcode_shlibpath_var_CXX=no
  31265. - case $host_os in
  31266. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31267. - *)
  31268. - # The C++ compiler is used as linker so we must use $wl
  31269. - # flag to pass the commands to the underlying system
  31270. - # linker. We must also pass each convience library through
  31271. - # to the system linker between allextract/defaultextract.
  31272. - # The C++ compiler will combine linker options so we
  31273. - # cannot just pass the convience library names through
  31274. - # without $wl.
  31275. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31276. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  31277. - ;;
  31278. - esac
  31279. - link_all_deplibs_CXX=yes
  31280. - output_verbose_link_cmd='echo'
  31281. - # Archives containing C++ object files must be created using
  31282. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  31283. - # necessary to make sure instantiated templates are included
  31284. - # in the archive.
  31285. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  31286. - ;;
  31287. - gcx*)
  31288. - # Green Hills C++ Compiler
  31289. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31290. - # The C++ compiler must be used to create the archive.
  31291. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  31292. - ;;
  31293. - *)
  31294. - # GNU C++ compiler with Solaris linker
  31295. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31296. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  31297. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  31298. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31299. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31300. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  31301. - # Commands to make compiler produce verbose output that lists
  31302. - # what "hidden" libraries, object files and flags are used when
  31303. - # linking a shared library.
  31304. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  31305. - else
  31306. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  31307. - # platform.
  31308. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31309. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31310. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  31311. - # Commands to make compiler produce verbose output that lists
  31312. - # what "hidden" libraries, object files and flags are used when
  31313. - # linking a shared library.
  31314. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  31315. - fi
  31316. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  31317. - fi
  31318. - ;;
  31319. - esac
  31320. - ;;
  31321. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31322. - no_undefined_flag_CXX='${wl}-z,text'
  31323. - archive_cmds_need_lc_CXX=no
  31324. - hardcode_shlibpath_var_CXX=no
  31325. - runpath_var='LD_RUN_PATH'
  31326. -
  31327. - case $cc_basename in
  31328. - CC*)
  31329. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31330. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31331. - ;;
  31332. - *)
  31333. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31334. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31335. - ;;
  31336. - esac
  31337. - ;;
  31338. - sysv5* | sco3.2v5* | sco5v6*)
  31339. - # Note: We can NOT use -z defs as we might desire, because we do not
  31340. - # link with -lc, and that would cause any symbols used from libc to
  31341. - # always be unresolved, which means just about no library would
  31342. - # ever link correctly. If we're not using GNU ld we use -z text
  31343. - # though, which does catch some bad symbols but isn't as heavy-handed
  31344. - # as -z defs.
  31345. - # For security reasons, it is highly recommended that you always
  31346. - # use absolute paths for naming shared libraries, and exclude the
  31347. - # DT_RUNPATH tag from executables and libraries. But doing so
  31348. - # requires that you compile everything twice, which is a pain.
  31349. - # So that behaviour is only enabled if SCOABSPATH is set to a
  31350. - # non-empty value in the environment. Most likely only useful for
  31351. - # creating official distributions of packages.
  31352. - # This is a hack until libtool officially supports absolute path
  31353. - # names for shared libraries.
  31354. - no_undefined_flag_CXX='${wl}-z,text'
  31355. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  31356. - archive_cmds_need_lc_CXX=no
  31357. - hardcode_shlibpath_var_CXX=no
  31358. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31359. - hardcode_libdir_separator_CXX=':'
  31360. - link_all_deplibs_CXX=yes
  31361. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  31362. - runpath_var='LD_RUN_PATH'
  31363. -
  31364. - case $cc_basename in
  31365. - CC*)
  31366. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31367. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31368. - ;;
  31369. - *)
  31370. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31371. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31372. - ;;
  31373. - esac
  31374. - ;;
  31375. - tandem*)
  31376. - case $cc_basename in
  31377. - NCC*)
  31378. - # NonStop-UX NCC 3.20
  31379. - # FIXME: insert proper C++ library support
  31380. - ld_shlibs_CXX=no
  31381. - ;;
  31382. - *)
  31383. - # FIXME: insert proper C++ library support
  31384. - ld_shlibs_CXX=no
  31385. - ;;
  31386. - esac
  31387. - ;;
  31388. - vxworks*)
  31389. - # FIXME: insert proper C++ library support
  31390. - ld_shlibs_CXX=no
  31391. - ;;
  31392. - *)
  31393. - # FIXME: insert proper C++ library support
  31394. - ld_shlibs_CXX=no
  31395. - ;;
  31396. -esac
  31397. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  31398. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  31399. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  31400. -GCC_CXX="$GXX"
  31401. -LD_CXX="$LD"
  31402. -cat > conftest.$ac_ext <<EOF
  31403. -class Foo
  31404. -{
  31405. -public:
  31406. - Foo (void) { a = 0; }
  31407. -private:
  31408. - int a;
  31409. -};
  31410. -EOF
  31411. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31412. - (eval $ac_compile) 2>&5
  31413. - ac_status=$?
  31414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31415. - (exit $ac_status); }; then
  31416. - # Parse the compiler output and extract the necessary
  31417. - # objects, libraries and library flags.
  31418. - # Sentinel used to keep track of whether or not we are before
  31419. - # the conftest object file.
  31420. - pre_test_object_deps_done=no
  31421. - # The `*' in the case matches for architectures that use `case' in
  31422. - # $output_verbose_cmd can trigger glob expansion during the loop
  31423. - # eval without this substitution.
  31424. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  31425. - for p in `eval $output_verbose_link_cmd`; do
  31426. - case $p in
  31427. - -L* | -R* | -l*)
  31428. - # Some compilers place space between "-{L,R}" and the path.
  31429. - # Remove the space.
  31430. - if test $p = "-L" \
  31431. - || test $p = "-R"; then
  31432. - prev=$p
  31433. - continue
  31434. - else
  31435. - prev=
  31436. - fi
  31437. - if test "$pre_test_object_deps_done" = no; then
  31438. - case $p in
  31439. - -L* | -R*)
  31440. - # Internal compiler library paths should come after those
  31441. - # provided the user. The postdeps already come after the
  31442. - # user supplied libs so there is no need to process them.
  31443. - if test -z "$compiler_lib_search_path_CXX"; then
  31444. - compiler_lib_search_path_CXX="${prev}${p}"
  31445. - else
  31446. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  31447. - fi
  31448. - ;;
  31449. - # The "-l" case would never come before the object being
  31450. - # linked, so don't bother handling this case.
  31451. - esac
  31452. - else
  31453. - if test -z "$postdeps_CXX"; then
  31454. - postdeps_CXX="${prev}${p}"
  31455. - else
  31456. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  31457. - fi
  31458. - fi
  31459. - ;;
  31460. - *.$objext)
  31461. - # This assumes that the test object file only shows up
  31462. - # once in the compiler output.
  31463. - if test "$p" = "conftest.$objext"; then
  31464. - pre_test_object_deps_done=yes
  31465. - continue
  31466. - fi
  31467. - if test "$pre_test_object_deps_done" = no; then
  31468. - if test -z "$predep_objects_CXX"; then
  31469. - predep_objects_CXX="$p"
  31470. - else
  31471. - predep_objects_CXX="$predep_objects_CXX $p"
  31472. - fi
  31473. - else
  31474. - if test -z "$postdep_objects_CXX"; then
  31475. - postdep_objects_CXX="$p"
  31476. - else
  31477. - postdep_objects_CXX="$postdep_objects_CXX $p"
  31478. - fi
  31479. - fi
  31480. - ;;
  31481. - *) ;; # Ignore the rest.
  31482. - esac
  31483. - done
  31484. - # Clean up.
  31485. - rm -f a.out a.exe
  31486. -else
  31487. - echo "libtool.m4: error: problem compiling CXX test program"
  31488. -fi
  31489. -$rm -f confest.$objext
  31490. -# PORTME: override above test on systems where it is broken
  31491. -case $host_os in
  31492. -interix3*)
  31493. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  31494. - # hack all around it, let's just trust "g++" to DTRT.
  31495. - predep_objects_CXX=
  31496. - postdep_objects_CXX=
  31497. - postdeps_CXX=
  31498. - ;;
  31499. -solaris*)
  31500. - case $cc_basename in
  31501. - CC*)
  31502. - # Adding this requires a known-good setup of shared libraries for
  31503. - # Sun compiler versions before 5.6, else PIC objects from an old
  31504. - # archive will be linked into the output, leading to subtle bugs.
  31505. - postdeps_CXX='-lCstd -lCrun'
  31506. - ;;
  31507. - esac
  31508. - ;;
  31509. -esac
  31510. -case " $postdeps_CXX " in
  31511. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  31512. -esac
  31513. -lt_prog_compiler_wl_CXX=
  31514. -lt_prog_compiler_pic_CXX=
  31515. -lt_prog_compiler_static_CXX=
  31516. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31517. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  31518. - # C++ specific cases for pic, static, wl, etc.
  31519. - if test "$GXX" = yes; then
  31520. - lt_prog_compiler_wl_CXX='-Wl,'
  31521. - lt_prog_compiler_static_CXX='-static'
  31522. - case $host_os in
  31523. - aix*)
  31524. - # All AIX code is PIC.
  31525. - if test "$host_cpu" = ia64; then
  31526. - # AIX 5 now supports IA64 processor
  31527. - lt_prog_compiler_static_CXX='-Bstatic'
  31528. - fi
  31529. - ;;
  31530. - amigaos*)
  31531. - # FIXME: we need at least 68020 code to build shared libraries, but
  31532. - # adding the `-m68020' flag to GCC prevents building anything better,
  31533. - # like `-m68040'.
  31534. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  31535. - ;;
  31536. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31537. - # PIC is the default for these OSes.
  31538. - ;;
  31539. - mingw* | os2* | pw32*)
  31540. - # This hack is so that the source file can tell whether it is being
  31541. - # built for inclusion in a dll (and should export symbols for example).
  31542. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  31543. - ;;
  31544. - darwin* | rhapsody*)
  31545. - # PIC is the default on this platform
  31546. - # Common symbols not allowed in MH_DYLIB files
  31547. - lt_prog_compiler_pic_CXX='-fno-common'
  31548. - ;;
  31549. - *djgpp*)
  31550. - # DJGPP does not support shared libraries at all
  31551. - lt_prog_compiler_pic_CXX=
  31552. - ;;
  31553. - interix3*)
  31554. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  31555. - # Instead, we relocate shared libraries at runtime.
  31556. - ;;
  31557. - sysv4*MP*)
  31558. - if test -d /usr/nec; then
  31559. - lt_prog_compiler_pic_CXX=-Kconform_pic
  31560. - fi
  31561. - ;;
  31562. - hpux*)
  31563. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31564. - # not for PA HP-UX.
  31565. - case $host_cpu in
  31566. - hppa*64*|ia64*)
  31567. - ;;
  31568. - *)
  31569. - lt_prog_compiler_pic_CXX='-fPIC'
  31570. - ;;
  31571. - esac
  31572. - ;;
  31573. - *)
  31574. - lt_prog_compiler_pic_CXX='-fPIC'
  31575. - ;;
  31576. - esac
  31577. - else
  31578. - case $host_os in
  31579. - aix4* | aix5*)
  31580. - # All AIX code is PIC.
  31581. - if test "$host_cpu" = ia64; then
  31582. - # AIX 5 now supports IA64 processor
  31583. - lt_prog_compiler_static_CXX='-Bstatic'
  31584. - else
  31585. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  31586. - fi
  31587. - ;;
  31588. - chorus*)
  31589. - case $cc_basename in
  31590. - cxch68*)
  31591. - # Green Hills C++ Compiler
  31592. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  31593. - ;;
  31594. - esac
  31595. - ;;
  31596. - darwin*)
  31597. - # PIC is the default on this platform
  31598. - # Common symbols not allowed in MH_DYLIB files
  31599. - case $cc_basename in
  31600. - xlc*)
  31601. - lt_prog_compiler_pic_CXX='-qnocommon'
  31602. - lt_prog_compiler_wl_CXX='-Wl,'
  31603. - ;;
  31604. - esac
  31605. - ;;
  31606. - dgux*)
  31607. - case $cc_basename in
  31608. - ec++*)
  31609. - lt_prog_compiler_pic_CXX='-KPIC'
  31610. - ;;
  31611. - ghcx*)
  31612. - # Green Hills C++ Compiler
  31613. - lt_prog_compiler_pic_CXX='-pic'
  31614. - ;;
  31615. - *)
  31616. - ;;
  31617. - esac
  31618. - ;;
  31619. - freebsd* | dragonfly*)
  31620. - # FreeBSD uses GNU C++
  31621. - ;;
  31622. - hpux9* | hpux10* | hpux11*)
  31623. - case $cc_basename in
  31624. - CC*)
  31625. - lt_prog_compiler_wl_CXX='-Wl,'
  31626. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  31627. - if test "$host_cpu" != ia64; then
  31628. - lt_prog_compiler_pic_CXX='+Z'
  31629. - fi
  31630. - ;;
  31631. - aCC*)
  31632. - lt_prog_compiler_wl_CXX='-Wl,'
  31633. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  31634. - case $host_cpu in
  31635. - hppa*64*|ia64*)
  31636. - # +Z the default
  31637. - ;;
  31638. - *)
  31639. - lt_prog_compiler_pic_CXX='+Z'
  31640. - ;;
  31641. - esac
  31642. - ;;
  31643. - *)
  31644. - ;;
  31645. - esac
  31646. - ;;
  31647. - interix*)
  31648. - # This is c89, which is MS Visual C++ (no shared libs)
  31649. - # Anyone wants to do a port?
  31650. - ;;
  31651. - irix5* | irix6* | nonstopux*)
  31652. - case $cc_basename in
  31653. - CC*)
  31654. - lt_prog_compiler_wl_CXX='-Wl,'
  31655. - lt_prog_compiler_static_CXX='-non_shared'
  31656. - # CC pic flag -KPIC is the default.
  31657. - ;;
  31658. - *)
  31659. - ;;
  31660. - esac
  31661. - ;;
  31662. - linux* | k*bsd*-gnu)
  31663. - case $cc_basename in
  31664. - KCC*)
  31665. - # KAI C++ Compiler
  31666. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  31667. - lt_prog_compiler_pic_CXX='-fPIC'
  31668. - ;;
  31669. - icpc* | ecpc*)
  31670. - # Intel C++
  31671. - lt_prog_compiler_wl_CXX='-Wl,'
  31672. - lt_prog_compiler_pic_CXX='-KPIC'
  31673. - lt_prog_compiler_static_CXX='-static'
  31674. - ;;
  31675. - pgCC*)
  31676. - # Portland Group C++ compiler.
  31677. - lt_prog_compiler_wl_CXX='-Wl,'
  31678. - lt_prog_compiler_pic_CXX='-fpic'
  31679. - lt_prog_compiler_static_CXX='-Bstatic'
  31680. - ;;
  31681. - cxx*)
  31682. - # Compaq C++
  31683. - # Make sure the PIC flag is empty. It appears that all Alpha
  31684. - # Linux and Compaq Tru64 Unix objects are PIC.
  31685. - lt_prog_compiler_pic_CXX=
  31686. - lt_prog_compiler_static_CXX='-non_shared'
  31687. - ;;
  31688. - *)
  31689. - ;;
  31690. - esac
  31691. - ;;
  31692. - lynxos*)
  31693. - ;;
  31694. - m88k*)
  31695. - ;;
  31696. - mvs*)
  31697. - case $cc_basename in
  31698. - cxx*)
  31699. - lt_prog_compiler_pic_CXX='-W c,exportall'
  31700. - ;;
  31701. - *)
  31702. - ;;
  31703. - esac
  31704. - ;;
  31705. - netbsd* | netbsdelf*-gnu)
  31706. - ;;
  31707. - osf3* | osf4* | osf5*)
  31708. - case $cc_basename in
  31709. - KCC*)
  31710. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  31711. - ;;
  31712. - RCC*)
  31713. - # Rational C++ 2.4.1
  31714. - lt_prog_compiler_pic_CXX='-pic'
  31715. - ;;
  31716. - cxx*)
  31717. - # Digital/Compaq C++
  31718. - lt_prog_compiler_wl_CXX='-Wl,'
  31719. - # Make sure the PIC flag is empty. It appears that all Alpha
  31720. - # Linux and Compaq Tru64 Unix objects are PIC.
  31721. - lt_prog_compiler_pic_CXX=
  31722. - lt_prog_compiler_static_CXX='-non_shared'
  31723. - ;;
  31724. - *)
  31725. - ;;
  31726. - esac
  31727. - ;;
  31728. - psos*)
  31729. - ;;
  31730. - solaris*)
  31731. - case $cc_basename in
  31732. - CC*)
  31733. - # Sun C++ 4.2, 5.x and Centerline C++
  31734. - lt_prog_compiler_pic_CXX='-KPIC'
  31735. - lt_prog_compiler_static_CXX='-Bstatic'
  31736. - lt_prog_compiler_wl_CXX='-Qoption ld '
  31737. - ;;
  31738. - gcx*)
  31739. - # Green Hills C++ Compiler
  31740. - lt_prog_compiler_pic_CXX='-PIC'
  31741. - ;;
  31742. - *)
  31743. - ;;
  31744. - esac
  31745. - ;;
  31746. - sunos4*)
  31747. - case $cc_basename in
  31748. - CC*)
  31749. - # Sun C++ 4.x
  31750. - lt_prog_compiler_pic_CXX='-pic'
  31751. - lt_prog_compiler_static_CXX='-Bstatic'
  31752. - ;;
  31753. - lcc*)
  31754. - # Lucid
  31755. - lt_prog_compiler_pic_CXX='-pic'
  31756. - ;;
  31757. - *)
  31758. - ;;
  31759. - esac
  31760. - ;;
  31761. - tandem*)
  31762. - case $cc_basename in
  31763. - NCC*)
  31764. - # NonStop-UX NCC 3.20
  31765. - lt_prog_compiler_pic_CXX='-KPIC'
  31766. - ;;
  31767. - *)
  31768. - ;;
  31769. - esac
  31770. - ;;
  31771. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31772. - case $cc_basename in
  31773. - CC*)
  31774. - lt_prog_compiler_wl_CXX='-Wl,'
  31775. - lt_prog_compiler_pic_CXX='-KPIC'
  31776. - lt_prog_compiler_static_CXX='-Bstatic'
  31777. - ;;
  31778. - esac
  31779. - ;;
  31780. - vxworks*)
  31781. - ;;
  31782. - *)
  31783. - lt_prog_compiler_can_build_shared_CXX=no
  31784. - ;;
  31785. - esac
  31786. - fi
  31787. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  31788. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  31789. -#
  31790. -# Check to make sure the PIC flag actually works.
  31791. -#
  31792. -if test -n "$lt_prog_compiler_pic_CXX"; then
  31793. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  31794. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  31795. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  31796. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31797. -else
  31798. - lt_prog_compiler_pic_works_CXX=no
  31799. - ac_outfile=conftest.$ac_objext
  31800. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31801. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  31802. - # Insert the option either (1) after the last *FLAGS variable, or
  31803. - # (2) before a word containing "conftest.", or (3) at the end.
  31804. - # Note that $ac_compile itself does not contain backslashes and begins
  31805. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31806. - # The option is referenced via a variable to avoid confusing sed.
  31807. - lt_compile=`echo "$ac_compile" | $SED \
  31808. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31809. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31810. - -e 's:$: $lt_compiler_flag:'`
  31811. - (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
  31812. - (eval "$lt_compile" 2>conftest.err)
  31813. - ac_status=$?
  31814. - cat conftest.err >&5
  31815. - echo "$as_me:12119: \$? = $ac_status" >&5
  31816. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31817. - # The compiler can only warn and ignore the option if not recognized
  31818. - # So say no if there are warnings other than the usual output.
  31819. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31820. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31821. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31822. - lt_prog_compiler_pic_works_CXX=yes
  31823. - fi
  31824. - fi
  31825. - $rm conftest*
  31826. -fi
  31827. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  31828. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  31829. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  31830. - case $lt_prog_compiler_pic_CXX in
  31831. - "" | " "*) ;;
  31832. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  31833. - esac
  31834. -else
  31835. - lt_prog_compiler_pic_CXX=
  31836. - lt_prog_compiler_can_build_shared_CXX=no
  31837. -fi
  31838. -fi
  31839. -case $host_os in
  31840. - # For platforms which do not support PIC, -DPIC is meaningless:
  31841. - *djgpp*)
  31842. - lt_prog_compiler_pic_CXX=
  31843. - ;;
  31844. - *)
  31845. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  31846. - ;;
  31847. -esac
  31848. -#
  31849. -# Check to make sure the static flag actually works.
  31850. -#
  31851. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  31852. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31853. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31854. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  31855. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31856. -else
  31857. - lt_prog_compiler_static_works_CXX=no
  31858. - save_LDFLAGS="$LDFLAGS"
  31859. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31860. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  31861. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31862. - # The linker can only warn and ignore the option if not recognized
  31863. - # So say no if there are warnings
  31864. - if test -s conftest.err; then
  31865. - # Append any errors to the config.log.
  31866. - cat conftest.err 1>&5
  31867. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31868. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31869. - if diff conftest.exp conftest.er2 >/dev/null; then
  31870. - lt_prog_compiler_static_works_CXX=yes
  31871. - fi
  31872. - else
  31873. - lt_prog_compiler_static_works_CXX=yes
  31874. - fi
  31875. - fi
  31876. - $rm conftest*
  31877. - LDFLAGS="$save_LDFLAGS"
  31878. -fi
  31879. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  31880. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  31881. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  31882. - :
  31883. -else
  31884. - lt_prog_compiler_static_CXX=
  31885. -fi
  31886. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31887. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31888. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  31889. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31890. -else
  31891. - lt_cv_prog_compiler_c_o_CXX=no
  31892. - $rm -r conftest 2>/dev/null
  31893. - mkdir conftest
  31894. - cd conftest
  31895. - mkdir out
  31896. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31897. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31898. - # Insert the option either (1) after the last *FLAGS variable, or
  31899. - # (2) before a word containing "conftest.", or (3) at the end.
  31900. - # Note that $ac_compile itself does not contain backslashes and begins
  31901. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31902. - lt_compile=`echo "$ac_compile" | $SED \
  31903. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31904. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31905. - -e 's:$: $lt_compiler_flag:'`
  31906. - (eval echo "\"\$as_me:12219: $lt_compile\"" >&5)
  31907. - (eval "$lt_compile" 2>out/conftest.err)
  31908. - ac_status=$?
  31909. - cat out/conftest.err >&5
  31910. - echo "$as_me:12223: \$? = $ac_status" >&5
  31911. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31912. - then
  31913. - # The compiler can only warn and ignore the option if not recognized
  31914. - # So say no if there are warnings
  31915. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31916. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31917. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31918. - lt_cv_prog_compiler_c_o_CXX=yes
  31919. - fi
  31920. - fi
  31921. - chmod u+w . 2>&5
  31922. - $rm conftest*
  31923. - # SGI C++ compiler will create directory out/ii_files/ for
  31924. - # template instantiation
  31925. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31926. - $rm out/* && rmdir out
  31927. - cd ..
  31928. - rmdir conftest
  31929. - $rm conftest*
  31930. -fi
  31931. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  31932. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  31933. -hard_links="nottested"
  31934. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  31935. - # do not overwrite the value of need_locks provided by the user
  31936. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31937. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31938. - hard_links=yes
  31939. - $rm conftest*
  31940. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31941. - touch conftest.a
  31942. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31943. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31944. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31945. -echo "${ECHO_T}$hard_links" >&6; }
  31946. - if test "$hard_links" = no; then
  31947. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31948. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31949. - need_locks=warn
  31950. - fi
  31951. -else
  31952. - need_locks=no
  31953. -fi
  31954. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31955. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31956. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31957. - case $host_os in
  31958. - aix4* | aix5*)
  31959. - # If we're using GNU nm, then we don't want the "-C" option.
  31960. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31961. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31962. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31963. - else
  31964. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31965. - fi
  31966. - ;;
  31967. - pw32*)
  31968. - export_symbols_cmds_CXX="$ltdll_cmds"
  31969. - ;;
  31970. - cygwin* | mingw*)
  31971. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  31972. - ;;
  31973. - linux* | k*bsd*-gnu)
  31974. - link_all_deplibs_CXX=no
  31975. - ;;
  31976. - *)
  31977. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31978. - ;;
  31979. - esac
  31980. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  31981. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  31982. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  31983. -#
  31984. -# Do we need to explicitly link libc?
  31985. -#
  31986. -case "x$archive_cmds_need_lc_CXX" in
  31987. -x|xyes)
  31988. - # Assume -lc should be added
  31989. - archive_cmds_need_lc_CXX=yes
  31990. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31991. - case $archive_cmds_CXX in
  31992. - *'~'*)
  31993. - # FIXME: we may have to deal with multi-command sequences.
  31994. - ;;
  31995. - '$CC '*)
  31996. - # Test whether the compiler implicitly links with -lc since on some
  31997. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31998. - # to ld, don't add -lc before -lgcc.
  31999. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32000. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32001. - $rm conftest*
  32002. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32003. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32004. - (eval $ac_compile) 2>&5
  32005. - ac_status=$?
  32006. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32007. - (exit $ac_status); } 2>conftest.err; then
  32008. - soname=conftest
  32009. - lib=conftest
  32010. - libobjs=conftest.$ac_objext
  32011. - deplibs=
  32012. - wl=$lt_prog_compiler_wl_CXX
  32013. - pic_flag=$lt_prog_compiler_pic_CXX
  32014. - compiler_flags=-v
  32015. - linker_flags=-v
  32016. - verstring=
  32017. - output_objdir=.
  32018. - libname=conftest
  32019. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  32020. - allow_undefined_flag_CXX=
  32021. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32022. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32023. - ac_status=$?
  32024. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32025. - (exit $ac_status); }
  32026. - then
  32027. - archive_cmds_need_lc_CXX=no
  32028. - else
  32029. - archive_cmds_need_lc_CXX=yes
  32030. - fi
  32031. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  32032. - else
  32033. - cat conftest.err 1>&5
  32034. - fi
  32035. - $rm conftest*
  32036. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  32037. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  32038. - ;;
  32039. - esac
  32040. - fi
  32041. - ;;
  32042. -esac
  32043. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32044. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32045. +
  32046. +
  32047. +
  32048. +
  32049. +
  32050. +
  32051. +
  32052. +
  32053. +
  32054. +
  32055. +
  32056. +
  32057. +
  32058. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  32059. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  32060. +
  32061. +if test "$GCC" = yes; then
  32062. + case $host_os in
  32063. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  32064. + *) lt_awk_arg="/^libraries:/" ;;
  32065. + esac
  32066. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32067. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  32068. + # if the path contains ";" then we assume it to be the separator
  32069. + # otherwise default to the standard path separator (i.e. ":") - it is
  32070. + # assumed that no part of a normal pathname contains ";" but that should
  32071. + # okay in the real world where ";" in dirpaths is itself problematic.
  32072. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  32073. + else
  32074. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32075. + fi
  32076. + # Ok, now we have the path, separated by spaces, we can step through it
  32077. + # and add multilib dir if necessary.
  32078. + lt_tmp_lt_search_path_spec=
  32079. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  32080. + for lt_sys_path in $lt_search_path_spec; do
  32081. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  32082. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  32083. + else
  32084. + test -d "$lt_sys_path" && \
  32085. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  32086. + fi
  32087. + done
  32088. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  32089. +BEGIN {RS=" "; FS="/|\n";} {
  32090. + lt_foo="";
  32091. + lt_count=0;
  32092. + for (lt_i = NF; lt_i > 0; lt_i--) {
  32093. + if ($lt_i != "" && $lt_i != ".") {
  32094. + if ($lt_i == "..") {
  32095. + lt_count++;
  32096. + } else {
  32097. + if (lt_count == 0) {
  32098. + lt_foo="/" $lt_i lt_foo;
  32099. + } else {
  32100. + lt_count--;
  32101. + }
  32102. + }
  32103. + }
  32104. + }
  32105. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  32106. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  32107. +}'`
  32108. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  32109. +else
  32110. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32111. +fi
  32112. library_names_spec=
  32113. libname_spec='lib$name'
  32114. soname_spec=
  32115. @@ -12378,20 +9248,6 @@
  32116. version_type=none
  32117. dynamic_linker="$host_os ld.so"
  32118. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32119. -if test "$GCC" = yes; then
  32120. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32121. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  32122. - # if the path contains ";" then we assume it to be the separator
  32123. - # otherwise default to the standard path separator (i.e. ":") - it is
  32124. - # assumed that no part of a normal pathname contains ";" but that should
  32125. - # okay in the real world where ";" in dirpaths is itself problematic.
  32126. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32127. - else
  32128. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32129. - fi
  32130. -else
  32131. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32132. -fi
  32133. need_lib_prefix=unknown
  32134. hardcode_into_libs=no
  32135. @@ -12409,7 +9265,7 @@
  32136. soname_spec='${libname}${release}${shared_ext}$major'
  32137. ;;
  32138. -aix4* | aix5*)
  32139. +aix[4-9]*)
  32140. version_type=linux
  32141. need_lib_prefix=no
  32142. need_version=no
  32143. @@ -12428,7 +9284,7 @@
  32144. aix4 | aix4.[01] | aix4.[01].*)
  32145. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32146. echo ' yes '
  32147. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32148. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  32149. :
  32150. else
  32151. can_build_shared=no
  32152. @@ -12454,9 +9310,18 @@
  32153. ;;
  32154. amigaos*)
  32155. - library_names_spec='$libname.ixlibrary $libname.a'
  32156. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32157. - 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'
  32158. + case $host_cpu in
  32159. + powerpc)
  32160. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  32161. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  32162. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32163. + ;;
  32164. + m68k)
  32165. + library_names_spec='$libname.ixlibrary $libname.a'
  32166. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32167. + 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'
  32168. + ;;
  32169. + esac
  32170. ;;
  32171. beos*)
  32172. @@ -12479,25 +9344,28 @@
  32173. # libtool to hard-code these into programs
  32174. ;;
  32175. -cygwin* | mingw* | pw32*)
  32176. +cygwin* | mingw* | pw32* | cegcc*)
  32177. version_type=windows
  32178. shrext_cmds=".dll"
  32179. need_version=no
  32180. need_lib_prefix=no
  32181. case $GCC,$host_os in
  32182. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32183. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  32184. library_names_spec='$libname.dll.a'
  32185. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32186. postinstall_cmds='base_file=`basename \${file}`~
  32187. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32188. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  32189. dldir=$destdir/`dirname \$dlpath`~
  32190. test -d \$dldir || mkdir -p \$dldir~
  32191. $install_prog $dir/$dlname \$dldir/$dlname~
  32192. - chmod a+x \$dldir/$dlname'
  32193. + chmod a+x \$dldir/$dlname~
  32194. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  32195. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  32196. + fi'
  32197. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32198. dlpath=$dir/\$dldll~
  32199. - $rm \$dlpath'
  32200. + $RM \$dlpath'
  32201. shlibpath_overrides_runpath=yes
  32202. case $host_os in
  32203. @@ -12506,20 +9374,20 @@
  32204. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32205. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32206. ;;
  32207. - mingw*)
  32208. + mingw* | cegcc*)
  32209. # MinGW DLLs use traditional 'lib' prefix
  32210. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32211. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32212. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32213. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32214. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  32215. # It is most probably a Windows format PATH printed by
  32216. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32217. # path with ; separators, and with drive letters. We can handle the
  32218. # drive letters (cygwin fileutils understands them), so leave them,
  32219. # especially as we might pass files found there to a mingw objdump,
  32220. # which wouldn't understand a cygwinified path. Ahh.
  32221. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32222. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32223. else
  32224. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32225. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32226. fi
  32227. ;;
  32228. pw32*)
  32229. @@ -12543,17 +9411,13 @@
  32230. version_type=darwin
  32231. need_lib_prefix=no
  32232. need_version=no
  32233. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32234. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32235. soname_spec='${libname}${release}${major}$shared_ext'
  32236. shlibpath_overrides_runpath=yes
  32237. shlibpath_var=DYLD_LIBRARY_PATH
  32238. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32239. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  32240. - if test "$GCC" = yes; then
  32241. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  32242. - else
  32243. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  32244. - fi
  32245. +
  32246. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  32247. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32248. ;;
  32249. @@ -12607,7 +9471,7 @@
  32250. shlibpath_overrides_runpath=no
  32251. hardcode_into_libs=yes
  32252. ;;
  32253. - freebsd*) # from 4.6 on
  32254. + *) # from 4.6 on, and DragonFly
  32255. shlibpath_overrides_runpath=yes
  32256. hardcode_into_libs=yes
  32257. ;;
  32258. @@ -12646,18 +9510,18 @@
  32259. fi
  32260. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32261. ;;
  32262. - hppa*64*)
  32263. - shrext_cmds='.sl'
  32264. - hardcode_into_libs=yes
  32265. - dynamic_linker="$host_os dld.sl"
  32266. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32267. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32268. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32269. - soname_spec='${libname}${release}${shared_ext}$major'
  32270. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32271. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32272. - ;;
  32273. - *)
  32274. + hppa*64*)
  32275. + shrext_cmds='.sl'
  32276. + hardcode_into_libs=yes
  32277. + dynamic_linker="$host_os dld.sl"
  32278. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32279. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32280. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32281. + soname_spec='${libname}${release}${shared_ext}$major'
  32282. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32283. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32284. + ;;
  32285. + *)
  32286. shrext_cmds='.sl'
  32287. dynamic_linker="$host_os dld.sl"
  32288. shlibpath_var=SHLIB_PATH
  32289. @@ -12670,7 +9534,7 @@
  32290. postinstall_cmds='chmod 555 $lib'
  32291. ;;
  32292. -interix3*)
  32293. +interix[3-9]*)
  32294. version_type=linux
  32295. need_lib_prefix=no
  32296. need_version=no
  32297. @@ -12725,7 +9589,7 @@
  32298. ;;
  32299. # This must be Linux ELF.
  32300. -linux* | k*bsd*-gnu)
  32301. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  32302. version_type=linux
  32303. need_lib_prefix=no
  32304. need_version=no
  32305. @@ -12734,6 +9598,32 @@
  32306. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32307. shlibpath_var=LD_LIBRARY_PATH
  32308. shlibpath_overrides_runpath=no
  32309. + # Some binutils ld are patched to set DT_RUNPATH
  32310. + save_LDFLAGS=$LDFLAGS
  32311. + save_libdir=$libdir
  32312. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  32313. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  32314. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32315. +/* end confdefs.h. */
  32316. +
  32317. +int
  32318. +main ()
  32319. +{
  32320. +
  32321. + ;
  32322. + return 0;
  32323. +}
  32324. +_ACEOF
  32325. +if ac_fn_c_try_link "$LINENO"; then :
  32326. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  32327. + shlibpath_overrides_runpath=yes
  32328. +fi
  32329. +fi
  32330. +rm -f core conftest.err conftest.$ac_objext \
  32331. + conftest$ac_exeext conftest.$ac_ext
  32332. + LDFLAGS=$save_LDFLAGS
  32333. + libdir=$save_libdir
  32334. +
  32335. # This implies no fast_install, which is unacceptable.
  32336. # Some rework will be needed to allow for fast_install
  32337. # before this can be enabled.
  32338. @@ -12741,7 +9631,7 @@
  32339. # Append ld.so.conf contents to the search path
  32340. if test -f /etc/ld.so.conf; then
  32341. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  32342. + 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' ' '`
  32343. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32344. fi
  32345. @@ -12770,7 +9660,7 @@
  32346. version_type=sunos
  32347. need_lib_prefix=no
  32348. need_version=no
  32349. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32350. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  32351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32353. dynamic_linker='NetBSD (a.out) ld.so'
  32354. @@ -12791,14 +9681,16 @@
  32355. shlibpath_overrides_runpath=yes
  32356. ;;
  32357. -nto-qnx*)
  32358. - version_type=linux
  32359. +*nto* | *qnx*)
  32360. + version_type=qnx
  32361. need_lib_prefix=no
  32362. need_version=no
  32363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32364. soname_spec='${libname}${release}${shared_ext}$major'
  32365. shlibpath_var=LD_LIBRARY_PATH
  32366. - shlibpath_overrides_runpath=yes
  32367. + shlibpath_overrides_runpath=no
  32368. + hardcode_into_libs=yes
  32369. + dynamic_linker='ldqnx.so'
  32370. ;;
  32371. openbsd*)
  32372. @@ -12807,13 +9699,13 @@
  32373. need_lib_prefix=no
  32374. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  32375. case $host_os in
  32376. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32377. - *) need_version=no ;;
  32378. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32379. + *) need_version=no ;;
  32380. esac
  32381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32382. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32383. shlibpath_var=LD_LIBRARY_PATH
  32384. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32385. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32386. case $host_os in
  32387. openbsd2.[89] | openbsd2.[89].*)
  32388. shlibpath_overrides_runpath=no
  32389. @@ -12847,6 +9739,10 @@
  32390. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32391. ;;
  32392. +rdos*)
  32393. + dynamic_linker=no
  32394. + ;;
  32395. +
  32396. solaris*)
  32397. version_type=linux
  32398. need_lib_prefix=no
  32399. @@ -12881,7 +9777,6 @@
  32400. sni)
  32401. shlibpath_overrides_runpath=no
  32402. need_lib_prefix=no
  32403. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  32404. runpath_var=LD_RUN_PATH
  32405. ;;
  32406. siemens)
  32407. @@ -12912,13 +9807,12 @@
  32408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32409. soname_spec='${libname}${release}${shared_ext}$major'
  32410. shlibpath_var=LD_LIBRARY_PATH
  32411. + shlibpath_overrides_runpath=yes
  32412. hardcode_into_libs=yes
  32413. if test "$with_gnu_ld" = yes; then
  32414. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  32415. - shlibpath_overrides_runpath=no
  32416. else
  32417. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  32418. - shlibpath_overrides_runpath=yes
  32419. case $host_os in
  32420. sco3.2v5*)
  32421. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  32422. @@ -12928,6 +9822,17 @@
  32423. sys_lib_dlsearch_path_spec='/usr/lib'
  32424. ;;
  32425. +tpf*)
  32426. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  32427. + version_type=linux
  32428. + need_lib_prefix=no
  32429. + need_version=no
  32430. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32431. + shlibpath_var=LD_LIBRARY_PATH
  32432. + shlibpath_overrides_runpath=no
  32433. + hardcode_into_libs=yes
  32434. + ;;
  32435. +
  32436. uts4*)
  32437. version_type=linux
  32438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32439. @@ -12939,8 +9844,8 @@
  32440. dynamic_linker=no
  32441. ;;
  32442. esac
  32443. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  32444. -echo "${ECHO_T}$dynamic_linker" >&6; }
  32445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  32446. +$as_echo "$dynamic_linker" >&6; }
  32447. test "$dynamic_linker" = no && can_build_shared=no
  32448. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  32449. @@ -12948,3055 +9853,2648 @@
  32450. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  32451. fi
  32452. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32453. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  32454. -hardcode_action_CXX=
  32455. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  32456. - test -n "$runpath_var_CXX" || \
  32457. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  32458. -
  32459. - # We can hardcode non-existant directories.
  32460. - if test "$hardcode_direct_CXX" != no &&
  32461. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32462. - # have to relink, otherwise we might link with an installed library
  32463. - # when we should be linking with a yet-to-be-installed one
  32464. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  32465. - test "$hardcode_minus_L_CXX" != no; then
  32466. - # Linking always hardcodes the temporary library directory.
  32467. - hardcode_action_CXX=relink
  32468. - else
  32469. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32470. - hardcode_action_CXX=immediate
  32471. - fi
  32472. -else
  32473. - # We cannot hardcode anything, or else we can only hardcode existing
  32474. - # directories.
  32475. - hardcode_action_CXX=unsupported
  32476. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  32477. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  32478. fi
  32479. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  32480. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  32481. -
  32482. -if test "$hardcode_action_CXX" = relink; then
  32483. - # Fast installation is not supported
  32484. - enable_fast_install=no
  32485. -elif test "$shlibpath_overrides_runpath" = yes ||
  32486. - test "$enable_shared" = no; then
  32487. - # Fast installation is not necessary
  32488. - enable_fast_install=needless
  32489. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  32490. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  32491. fi
  32492. -# The else clause should only fire when bootstrapping the
  32493. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32494. -# with your package, and you will get complaints that there are
  32495. -# no rules to generate ltmain.sh.
  32496. -if test -f "$ltmain"; then
  32497. - # See if we are running on zsh, and set the options which allow our commands through
  32498. - # without removal of \ escapes.
  32499. - if test -n "${ZSH_VERSION+set}" ; then
  32500. - setopt NO_GLOB_SUBST
  32501. - fi
  32502. - # Now quote all the things that may contain metacharacters while being
  32503. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32504. - # variables and quote the copies for generation of the libtool script.
  32505. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32506. - SED SHELL STRIP \
  32507. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32508. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32509. - deplibs_check_method reload_flag reload_cmds need_locks \
  32510. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32511. - lt_cv_sys_global_symbol_to_c_name_address \
  32512. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32513. - old_postinstall_cmds old_postuninstall_cmds \
  32514. - compiler_CXX \
  32515. - CC_CXX \
  32516. - LD_CXX \
  32517. - lt_prog_compiler_wl_CXX \
  32518. - lt_prog_compiler_pic_CXX \
  32519. - lt_prog_compiler_static_CXX \
  32520. - lt_prog_compiler_no_builtin_flag_CXX \
  32521. - export_dynamic_flag_spec_CXX \
  32522. - thread_safe_flag_spec_CXX \
  32523. - whole_archive_flag_spec_CXX \
  32524. - enable_shared_with_static_runtimes_CXX \
  32525. - old_archive_cmds_CXX \
  32526. - old_archive_from_new_cmds_CXX \
  32527. - predep_objects_CXX \
  32528. - postdep_objects_CXX \
  32529. - predeps_CXX \
  32530. - postdeps_CXX \
  32531. - compiler_lib_search_path_CXX \
  32532. - archive_cmds_CXX \
  32533. - archive_expsym_cmds_CXX \
  32534. - postinstall_cmds_CXX \
  32535. - postuninstall_cmds_CXX \
  32536. - old_archive_from_expsyms_cmds_CXX \
  32537. - allow_undefined_flag_CXX \
  32538. - no_undefined_flag_CXX \
  32539. - export_symbols_cmds_CXX \
  32540. - hardcode_libdir_flag_spec_CXX \
  32541. - hardcode_libdir_flag_spec_ld_CXX \
  32542. - hardcode_libdir_separator_CXX \
  32543. - hardcode_automatic_CXX \
  32544. - module_cmds_CXX \
  32545. - module_expsym_cmds_CXX \
  32546. - lt_cv_prog_compiler_c_o_CXX \
  32547. - exclude_expsyms_CXX \
  32548. - include_expsyms_CXX; do
  32549. -
  32550. - case $var in
  32551. - old_archive_cmds_CXX | \
  32552. - old_archive_from_new_cmds_CXX | \
  32553. - archive_cmds_CXX | \
  32554. - archive_expsym_cmds_CXX | \
  32555. - module_cmds_CXX | \
  32556. - module_expsym_cmds_CXX | \
  32557. - old_archive_from_expsyms_cmds_CXX | \
  32558. - export_symbols_cmds_CXX | \
  32559. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32560. - postinstall_cmds | postuninstall_cmds | \
  32561. - old_postinstall_cmds | old_postuninstall_cmds | \
  32562. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32563. - # Double-quote double-evaled strings.
  32564. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32565. - ;;
  32566. - *)
  32567. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32568. - ;;
  32569. - esac
  32570. - done
  32571. - case $lt_echo in
  32572. - *'\$0 --fallback-echo"')
  32573. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32574. - ;;
  32575. - esac
  32576. -cfgfile="$ofile"
  32577. - cat <<__EOF__ >> "$cfgfile"
  32578. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32579. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32580. -# Shell to use when invoking shell scripts.
  32581. -SHELL=$lt_SHELL
  32582. -# Whether or not to build shared libraries.
  32583. -build_libtool_libs=$enable_shared
  32584. -# Whether or not to build static libraries.
  32585. -build_old_libs=$enable_static
  32586. -# Whether or not to add -lc for building shared libraries.
  32587. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  32588. -# Whether or not to disallow shared libs when runtime libs are static
  32589. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  32590. -# Whether or not to optimize for fast installation.
  32591. -fast_install=$enable_fast_install
  32592. -# The host system.
  32593. -host_alias=$host_alias
  32594. -host=$host
  32595. -host_os=$host_os
  32596. -# The build system.
  32597. -build_alias=$build_alias
  32598. -build=$build
  32599. -build_os=$build_os
  32600. -# An echo program that does not interpret backslashes.
  32601. -echo=$lt_echo
  32602. -# The archiver.
  32603. -AR=$lt_AR
  32604. -AR_FLAGS=$lt_AR_FLAGS
  32605. -# A C compiler.
  32606. -LTCC=$lt_LTCC
  32607. -# LTCC compiler flags.
  32608. -LTCFLAGS=$lt_LTCFLAGS
  32609. -# A language-specific compiler.
  32610. -CC=$lt_compiler_CXX
  32611. -# Is the compiler the GNU C compiler?
  32612. -with_gcc=$GCC_CXX
  32613. -# An ERE matcher.
  32614. -EGREP=$lt_EGREP
  32615. -# The linker used to build libraries.
  32616. -LD=$lt_LD_CXX
  32617. -# Whether we need hard or soft links.
  32618. -LN_S=$lt_LN_S
  32619. -# A BSD-compatible nm program.
  32620. -NM=$lt_NM
  32621. -# A symbol stripping program
  32622. -STRIP=$lt_STRIP
  32623. -# Used to examine libraries when file_magic_cmd begins "file"
  32624. -MAGIC_CMD=$MAGIC_CMD
  32625. -# Used on cygwin: DLL creation program.
  32626. -DLLTOOL="$DLLTOOL"
  32627. -# Used on cygwin: object dumper.
  32628. -OBJDUMP="$OBJDUMP"
  32629. -# Used on cygwin: assembler.
  32630. -AS="$AS"
  32631. -# The name of the directory that contains temporary libtool files.
  32632. -objdir=$objdir
  32633. -# How to create reloadable object files.
  32634. -reload_flag=$lt_reload_flag
  32635. -reload_cmds=$lt_reload_cmds
  32636. -# How to pass a linker flag through the compiler.
  32637. -wl=$lt_lt_prog_compiler_wl_CXX
  32638. -# Object file suffix (normally "o").
  32639. -objext="$ac_objext"
  32640. -# Old archive suffix (normally "a").
  32641. -libext="$libext"
  32642. -# Shared library suffix (normally ".so").
  32643. -shrext_cmds='$shrext_cmds'
  32644. -# Executable file suffix (normally "").
  32645. -exeext="$exeext"
  32646. -# Additional compiler flags for building library objects.
  32647. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  32648. -pic_mode=$pic_mode
  32649. -# What is the maximum length of a command?
  32650. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32651. -# Does compiler simultaneously support -c and -o options?
  32652. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  32653. -# Must we lock files when doing compilation?
  32654. -need_locks=$lt_need_locks
  32655. -# Do we need the lib prefix for modules?
  32656. -need_lib_prefix=$need_lib_prefix
  32657. -# Do we need a version for libraries?
  32658. -need_version=$need_version
  32659. -# Whether dlopen is supported.
  32660. -dlopen_support=$enable_dlopen
  32661. -# Whether dlopen of programs is supported.
  32662. -dlopen_self=$enable_dlopen_self
  32663. -# Whether dlopen of statically linked programs is supported.
  32664. -dlopen_self_static=$enable_dlopen_self_static
  32665. -# Compiler flag to prevent dynamic linking.
  32666. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  32667. -# Compiler flag to turn off builtin functions.
  32668. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  32669. -# Compiler flag to allow reflexive dlopens.
  32670. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  32671. -# Compiler flag to generate shared objects directly from archives.
  32672. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  32673. -# Compiler flag to generate thread-safe objects.
  32674. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  32675. -# Library versioning type.
  32676. -version_type=$version_type
  32677. -# Format of library name prefix.
  32678. -libname_spec=$lt_libname_spec
  32679. -# List of archive names. First name is the real one, the rest are links.
  32680. -# The last name is the one that the linker finds with -lNAME.
  32681. -library_names_spec=$lt_library_names_spec
  32682. -# The coded name of the library, if different from the real name.
  32683. -soname_spec=$lt_soname_spec
  32684. -# Commands used to build and install an old-style archive.
  32685. -RANLIB=$lt_RANLIB
  32686. -old_archive_cmds=$lt_old_archive_cmds_CXX
  32687. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32688. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32689. -# Create an old-style archive from a shared archive.
  32690. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  32691. -# Create a temporary old-style archive to link instead of a shared archive.
  32692. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  32693. -# Commands used to build and install a shared archive.
  32694. -archive_cmds=$lt_archive_cmds_CXX
  32695. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  32696. -postinstall_cmds=$lt_postinstall_cmds
  32697. -postuninstall_cmds=$lt_postuninstall_cmds
  32698. -# Commands used to build a loadable module (assumed same as above if empty)
  32699. -module_cmds=$lt_module_cmds_CXX
  32700. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  32701. -# Commands to strip libraries.
  32702. -old_striplib=$lt_old_striplib
  32703. -striplib=$lt_striplib
  32704. -# Dependencies to place before the objects being linked to create a
  32705. -# shared library.
  32706. -predep_objects=$lt_predep_objects_CXX
  32707. -# Dependencies to place after the objects being linked to create a
  32708. -# shared library.
  32709. -postdep_objects=$lt_postdep_objects_CXX
  32710. -# Dependencies to place before the objects being linked to create a
  32711. -# shared library.
  32712. -predeps=$lt_predeps_CXX
  32713. -# Dependencies to place after the objects being linked to create a
  32714. -# shared library.
  32715. -postdeps=$lt_postdeps_CXX
  32716. -# The library search path used internally by the compiler when linking
  32717. -# a shared library.
  32718. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  32719. -# Method to check whether dependent libraries are shared objects.
  32720. -deplibs_check_method=$lt_deplibs_check_method
  32721. -# Command to use when deplibs_check_method == file_magic.
  32722. -file_magic_cmd=$lt_file_magic_cmd
  32723. -# Flag that allows shared libraries with undefined symbols to be built.
  32724. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  32725. -# Flag that forces no undefined symbols.
  32726. -no_undefined_flag=$lt_no_undefined_flag_CXX
  32727. -# Commands used to finish a libtool library installation in a directory.
  32728. -finish_cmds=$lt_finish_cmds
  32729. -# Same as above, but a single script fragment to be evaled but not shown.
  32730. -finish_eval=$lt_finish_eval
  32731. -# Take the output of nm and produce a listing of raw symbols and C names.
  32732. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32733. -# Transform the output of nm in a proper C declaration
  32734. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32735. -# Transform the output of nm in a C name address pair
  32736. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32737. -# This is the shared library runtime path variable.
  32738. -runpath_var=$runpath_var
  32739. -# This is the shared library path variable.
  32740. -shlibpath_var=$shlibpath_var
  32741. -# Is shlibpath searched before the hard-coded library search path?
  32742. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32743. -# How to hardcode a shared library path into an executable.
  32744. -hardcode_action=$hardcode_action_CXX
  32745. -# Whether we should hardcode library paths into libraries.
  32746. -hardcode_into_libs=$hardcode_into_libs
  32747. -# Flag to hardcode \$libdir into a binary during linking.
  32748. -# This must work even if \$libdir does not exist.
  32749. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  32750. -# If ld is used when linking, flag to hardcode \$libdir into
  32751. -# a binary during linking. This must work even if \$libdir does
  32752. -# not exist.
  32753. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  32754. -# Whether we need a single -rpath flag with a separated argument.
  32755. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  32756. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32757. -# resulting binary.
  32758. -hardcode_direct=$hardcode_direct_CXX
  32759. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32760. -# resulting binary.
  32761. -hardcode_minus_L=$hardcode_minus_L_CXX
  32762. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32763. -# the resulting binary.
  32764. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  32765. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32766. -# and all subsequent libraries and executables linked against it.
  32767. -hardcode_automatic=$hardcode_automatic_CXX
  32768. -# Variables whose values should be saved in libtool wrapper scripts and
  32769. -# restored at relink time.
  32770. -variables_saved_for_relink="$variables_saved_for_relink"
  32771. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  32772. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  32773. +hardcode_action=
  32774. +if test -n "$hardcode_libdir_flag_spec" ||
  32775. + test -n "$runpath_var" ||
  32776. + test "X$hardcode_automatic" = "Xyes" ; then
  32777. -# Whether libtool must link a program against all its dependency libraries.
  32778. -link_all_deplibs=$link_all_deplibs_CXX
  32779. + # We can hardcode non-existent directories.
  32780. + if test "$hardcode_direct" != no &&
  32781. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32782. + # have to relink, otherwise we might link with an installed library
  32783. + # when we should be linking with a yet-to-be-installed one
  32784. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  32785. + test "$hardcode_minus_L" != no; then
  32786. + # Linking always hardcodes the temporary library directory.
  32787. + hardcode_action=relink
  32788. + else
  32789. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32790. + hardcode_action=immediate
  32791. + fi
  32792. +else
  32793. + # We cannot hardcode anything, or else we can only hardcode existing
  32794. + # directories.
  32795. + hardcode_action=unsupported
  32796. +fi
  32797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  32798. +$as_echo "$hardcode_action" >&6; }
  32799. -# Compile-time system search path for libraries
  32800. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32801. +if test "$hardcode_action" = relink ||
  32802. + test "$inherit_rpath" = yes; then
  32803. + # Fast installation is not supported
  32804. + enable_fast_install=no
  32805. +elif test "$shlibpath_overrides_runpath" = yes ||
  32806. + test "$enable_shared" = no; then
  32807. + # Fast installation is not necessary
  32808. + enable_fast_install=needless
  32809. +fi
  32810. -# Run-time system search path for libraries
  32811. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32812. -# Fix the shell variable \$srcfile for the compiler.
  32813. -fix_srcfile_path="$fix_srcfile_path_CXX"
  32814. -# Set to yes if exported symbols are required.
  32815. -always_export_symbols=$always_export_symbols_CXX
  32816. -# The commands to list exported symbols.
  32817. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  32818. -# The commands to extract the exported symbol list from a shared archive.
  32819. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32820. -# Symbols that should not be listed in the preloaded symbols.
  32821. -exclude_expsyms=$lt_exclude_expsyms_CXX
  32822. + if test "x$enable_dlopen" != xyes; then
  32823. + enable_dlopen=unknown
  32824. + enable_dlopen_self=unknown
  32825. + enable_dlopen_self_static=unknown
  32826. +else
  32827. + lt_cv_dlopen=no
  32828. + lt_cv_dlopen_libs=
  32829. -# Symbols that must always be exported.
  32830. -include_expsyms=$lt_include_expsyms_CXX
  32831. + case $host_os in
  32832. + beos*)
  32833. + lt_cv_dlopen="load_add_on"
  32834. + lt_cv_dlopen_libs=
  32835. + lt_cv_dlopen_self=yes
  32836. + ;;
  32837. -# ### END LIBTOOL TAG CONFIG: $tagname
  32838. + mingw* | pw32* | cegcc*)
  32839. + lt_cv_dlopen="LoadLibrary"
  32840. + lt_cv_dlopen_libs=
  32841. + ;;
  32842. -__EOF__
  32843. + cygwin*)
  32844. + lt_cv_dlopen="dlopen"
  32845. + lt_cv_dlopen_libs=
  32846. + ;;
  32847. + darwin*)
  32848. + # if libdl is installed we need to link against it
  32849. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  32850. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  32851. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  32852. + $as_echo_n "(cached) " >&6
  32853. +else
  32854. + ac_check_lib_save_LIBS=$LIBS
  32855. +LIBS="-ldl $LIBS"
  32856. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32857. +/* end confdefs.h. */
  32858. +/* Override any GCC internal prototype to avoid an error.
  32859. + Use char because int might match the return type of a GCC
  32860. + builtin and then its argument prototype would still apply. */
  32861. +#ifdef __cplusplus
  32862. +extern "C"
  32863. +#endif
  32864. +char dlopen ();
  32865. +int
  32866. +main ()
  32867. +{
  32868. +return dlopen ();
  32869. + ;
  32870. + return 0;
  32871. +}
  32872. +_ACEOF
  32873. +if ac_fn_c_try_link "$LINENO"; then :
  32874. + ac_cv_lib_dl_dlopen=yes
  32875. else
  32876. - # If there is no Makefile yet, we rely on a make rule to execute
  32877. - # `config.status --recheck' to rerun these tests and create the
  32878. - # libtool script then.
  32879. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32880. - if test -f "$ltmain_in"; then
  32881. - test -f Makefile && make "$ltmain"
  32882. - fi
  32883. + ac_cv_lib_dl_dlopen=no
  32884. fi
  32885. +rm -f core conftest.err conftest.$ac_objext \
  32886. + conftest$ac_exeext conftest.$ac_ext
  32887. +LIBS=$ac_check_lib_save_LIBS
  32888. +fi
  32889. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  32890. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  32891. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  32892. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  32893. +else
  32894. + lt_cv_dlopen="dyld"
  32895. + lt_cv_dlopen_libs=
  32896. + lt_cv_dlopen_self=yes
  32897. -ac_ext=c
  32898. -ac_cpp='$CPP $CPPFLAGS'
  32899. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32900. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32901. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32902. -
  32903. -CC=$lt_save_CC
  32904. -LDCXX=$LD
  32905. -LD=$lt_save_LD
  32906. -GCC=$lt_save_GCC
  32907. -with_gnu_ldcxx=$with_gnu_ld
  32908. -with_gnu_ld=$lt_save_with_gnu_ld
  32909. -lt_cv_path_LDCXX=$lt_cv_path_LD
  32910. -lt_cv_path_LD=$lt_save_path_LD
  32911. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  32912. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  32913. -
  32914. - else
  32915. - tagname=""
  32916. - fi
  32917. - ;;
  32918. -
  32919. - F77)
  32920. - if test -n "$F77" && test "X$F77" != "Xno"; then
  32921. -
  32922. -ac_ext=f
  32923. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  32924. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32925. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  32926. -
  32927. -
  32928. -archive_cmds_need_lc_F77=no
  32929. -allow_undefined_flag_F77=
  32930. -always_export_symbols_F77=no
  32931. -archive_expsym_cmds_F77=
  32932. -export_dynamic_flag_spec_F77=
  32933. -hardcode_direct_F77=no
  32934. -hardcode_libdir_flag_spec_F77=
  32935. -hardcode_libdir_flag_spec_ld_F77=
  32936. -hardcode_libdir_separator_F77=
  32937. -hardcode_minus_L_F77=no
  32938. -hardcode_automatic_F77=no
  32939. -module_cmds_F77=
  32940. -module_expsym_cmds_F77=
  32941. -link_all_deplibs_F77=unknown
  32942. -old_archive_cmds_F77=$old_archive_cmds
  32943. -no_undefined_flag_F77=
  32944. -whole_archive_flag_spec_F77=
  32945. -enable_shared_with_static_runtimes_F77=no
  32946. +fi
  32947. -# Source file extension for f77 test sources.
  32948. -ac_ext=f
  32949. + ;;
  32950. -# Object file extension for compiled f77 test sources.
  32951. -objext=o
  32952. -objext_F77=$objext
  32953. + *)
  32954. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  32955. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  32956. + lt_cv_dlopen="shl_load"
  32957. +else
  32958. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  32959. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  32960. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  32961. + $as_echo_n "(cached) " >&6
  32962. +else
  32963. + ac_check_lib_save_LIBS=$LIBS
  32964. +LIBS="-ldld $LIBS"
  32965. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32966. +/* end confdefs.h. */
  32967. -# Code to be used in simple compile tests
  32968. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  32969. +/* Override any GCC internal prototype to avoid an error.
  32970. + Use char because int might match the return type of a GCC
  32971. + builtin and then its argument prototype would still apply. */
  32972. +#ifdef __cplusplus
  32973. +extern "C"
  32974. +#endif
  32975. +char shl_load ();
  32976. +int
  32977. +main ()
  32978. +{
  32979. +return shl_load ();
  32980. + ;
  32981. + return 0;
  32982. +}
  32983. +_ACEOF
  32984. +if ac_fn_c_try_link "$LINENO"; then :
  32985. + ac_cv_lib_dld_shl_load=yes
  32986. +else
  32987. + ac_cv_lib_dld_shl_load=no
  32988. +fi
  32989. +rm -f core conftest.err conftest.$ac_objext \
  32990. + conftest$ac_exeext conftest.$ac_ext
  32991. +LIBS=$ac_check_lib_save_LIBS
  32992. +fi
  32993. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  32994. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  32995. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  32996. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  32997. +else
  32998. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  32999. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  33000. + lt_cv_dlopen="dlopen"
  33001. +else
  33002. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  33003. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  33004. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  33005. + $as_echo_n "(cached) " >&6
  33006. +else
  33007. + ac_check_lib_save_LIBS=$LIBS
  33008. +LIBS="-ldl $LIBS"
  33009. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33010. +/* end confdefs.h. */
  33011. -# Code to be used in simple link tests
  33012. -lt_simple_link_test_code=" program t\n end\n"
  33013. -
  33014. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33015. +/* Override any GCC internal prototype to avoid an error.
  33016. + Use char because int might match the return type of a GCC
  33017. + builtin and then its argument prototype would still apply. */
  33018. +#ifdef __cplusplus
  33019. +extern "C"
  33020. +#endif
  33021. +char dlopen ();
  33022. +int
  33023. +main ()
  33024. +{
  33025. +return dlopen ();
  33026. + ;
  33027. + return 0;
  33028. +}
  33029. +_ACEOF
  33030. +if ac_fn_c_try_link "$LINENO"; then :
  33031. + ac_cv_lib_dl_dlopen=yes
  33032. +else
  33033. + ac_cv_lib_dl_dlopen=no
  33034. +fi
  33035. +rm -f core conftest.err conftest.$ac_objext \
  33036. + conftest$ac_exeext conftest.$ac_ext
  33037. +LIBS=$ac_check_lib_save_LIBS
  33038. +fi
  33039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  33040. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  33041. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  33042. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33043. +else
  33044. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  33045. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  33046. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  33047. + $as_echo_n "(cached) " >&6
  33048. +else
  33049. + ac_check_lib_save_LIBS=$LIBS
  33050. +LIBS="-lsvld $LIBS"
  33051. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33052. +/* end confdefs.h. */
  33053. -# If no C compiler was specified, use CC.
  33054. -LTCC=${LTCC-"$CC"}
  33055. +/* Override any GCC internal prototype to avoid an error.
  33056. + Use char because int might match the return type of a GCC
  33057. + builtin and then its argument prototype would still apply. */
  33058. +#ifdef __cplusplus
  33059. +extern "C"
  33060. +#endif
  33061. +char dlopen ();
  33062. +int
  33063. +main ()
  33064. +{
  33065. +return dlopen ();
  33066. + ;
  33067. + return 0;
  33068. +}
  33069. +_ACEOF
  33070. +if ac_fn_c_try_link "$LINENO"; then :
  33071. + ac_cv_lib_svld_dlopen=yes
  33072. +else
  33073. + ac_cv_lib_svld_dlopen=no
  33074. +fi
  33075. +rm -f core conftest.err conftest.$ac_objext \
  33076. + conftest$ac_exeext conftest.$ac_ext
  33077. +LIBS=$ac_check_lib_save_LIBS
  33078. +fi
  33079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  33080. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  33081. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  33082. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  33083. +else
  33084. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  33085. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  33086. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  33087. + $as_echo_n "(cached) " >&6
  33088. +else
  33089. + ac_check_lib_save_LIBS=$LIBS
  33090. +LIBS="-ldld $LIBS"
  33091. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33092. +/* end confdefs.h. */
  33093. -# If no C compiler flags were specified, use CFLAGS.
  33094. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  33095. +/* Override any GCC internal prototype to avoid an error.
  33096. + Use char because int might match the return type of a GCC
  33097. + builtin and then its argument prototype would still apply. */
  33098. +#ifdef __cplusplus
  33099. +extern "C"
  33100. +#endif
  33101. +char dld_link ();
  33102. +int
  33103. +main ()
  33104. +{
  33105. +return dld_link ();
  33106. + ;
  33107. + return 0;
  33108. +}
  33109. +_ACEOF
  33110. +if ac_fn_c_try_link "$LINENO"; then :
  33111. + ac_cv_lib_dld_dld_link=yes
  33112. +else
  33113. + ac_cv_lib_dld_dld_link=no
  33114. +fi
  33115. +rm -f core conftest.err conftest.$ac_objext \
  33116. + conftest$ac_exeext conftest.$ac_ext
  33117. +LIBS=$ac_check_lib_save_LIBS
  33118. +fi
  33119. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  33120. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  33121. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  33122. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  33123. +fi
  33124. -# Allow CC to be a program name with arguments.
  33125. -compiler=$CC
  33126. +fi
  33127. -# save warnings/boilerplate of simple test code
  33128. -ac_outfile=conftest.$ac_objext
  33129. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  33130. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33131. -_lt_compiler_boilerplate=`cat conftest.err`
  33132. -$rm conftest*
  33133. -ac_outfile=conftest.$ac_objext
  33134. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  33135. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33136. -_lt_linker_boilerplate=`cat conftest.err`
  33137. -$rm conftest*
  33138. +fi
  33139. -# Allow CC to be a program name with arguments.
  33140. -lt_save_CC="$CC"
  33141. -CC=${F77-"f77"}
  33142. -compiler=$CC
  33143. -compiler_F77=$CC
  33144. -for cc_temp in $compiler""; do
  33145. - case $cc_temp in
  33146. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33147. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33148. - \-*) ;;
  33149. - *) break;;
  33150. - esac
  33151. -done
  33152. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33153. +fi
  33154. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  33155. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  33156. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  33157. -echo "${ECHO_T}$can_build_shared" >&6; }
  33158. +fi
  33159. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  33160. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  33161. -test "$can_build_shared" = "no" && enable_shared=no
  33162. -# On AIX, shared libraries and static libraries use the same namespace, and
  33163. -# are all built from PIC.
  33164. -case $host_os in
  33165. -aix3*)
  33166. - test "$enable_shared" = yes && enable_static=no
  33167. - if test -n "$RANLIB"; then
  33168. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  33169. - postinstall_cmds='$RANLIB $lib'
  33170. - fi
  33171. - ;;
  33172. -aix4* | aix5*)
  33173. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  33174. - test "$enable_shared" = yes && enable_static=no
  33175. - fi
  33176. - ;;
  33177. -esac
  33178. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  33179. -echo "${ECHO_T}$enable_shared" >&6; }
  33180. +fi
  33181. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  33182. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  33183. -# Make sure either enable_shared or enable_static is yes.
  33184. -test "$enable_shared" = yes || enable_static=yes
  33185. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  33186. -echo "${ECHO_T}$enable_static" >&6; }
  33187. -
  33188. -GCC_F77="$G77"
  33189. -LD_F77="$LD"
  33190. -
  33191. -lt_prog_compiler_wl_F77=
  33192. -lt_prog_compiler_pic_F77=
  33193. -lt_prog_compiler_static_F77=
  33194. + ;;
  33195. + esac
  33196. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33197. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  33198. + if test "x$lt_cv_dlopen" != xno; then
  33199. + enable_dlopen=yes
  33200. + else
  33201. + enable_dlopen=no
  33202. + fi
  33203. - if test "$GCC" = yes; then
  33204. - lt_prog_compiler_wl_F77='-Wl,'
  33205. - lt_prog_compiler_static_F77='-static'
  33206. + case $lt_cv_dlopen in
  33207. + dlopen)
  33208. + save_CPPFLAGS="$CPPFLAGS"
  33209. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  33210. - case $host_os in
  33211. - aix*)
  33212. - # All AIX code is PIC.
  33213. - if test "$host_cpu" = ia64; then
  33214. - # AIX 5 now supports IA64 processor
  33215. - lt_prog_compiler_static_F77='-Bstatic'
  33216. - fi
  33217. - ;;
  33218. + save_LDFLAGS="$LDFLAGS"
  33219. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  33220. - amigaos*)
  33221. - # FIXME: we need at least 68020 code to build shared libraries, but
  33222. - # adding the `-m68020' flag to GCC prevents building anything better,
  33223. - # like `-m68040'.
  33224. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  33225. - ;;
  33226. + save_LIBS="$LIBS"
  33227. + LIBS="$lt_cv_dlopen_libs $LIBS"
  33228. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33229. - # PIC is the default for these OSes.
  33230. - ;;
  33231. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  33232. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  33233. +if test "${lt_cv_dlopen_self+set}" = set; then :
  33234. + $as_echo_n "(cached) " >&6
  33235. +else
  33236. + if test "$cross_compiling" = yes; then :
  33237. + lt_cv_dlopen_self=cross
  33238. +else
  33239. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  33240. + lt_status=$lt_dlunknown
  33241. + cat > conftest.$ac_ext <<_LT_EOF
  33242. +#line 10279 "configure"
  33243. +#include "confdefs.h"
  33244. - mingw* | pw32* | os2*)
  33245. - # This hack is so that the source file can tell whether it is being
  33246. - # built for inclusion in a dll (and should export symbols for example).
  33247. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  33248. - ;;
  33249. +#if HAVE_DLFCN_H
  33250. +#include <dlfcn.h>
  33251. +#endif
  33252. - darwin* | rhapsody*)
  33253. - # PIC is the default on this platform
  33254. - # Common symbols not allowed in MH_DYLIB files
  33255. - lt_prog_compiler_pic_F77='-fno-common'
  33256. - ;;
  33257. +#include <stdio.h>
  33258. - interix3*)
  33259. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33260. - # Instead, we relocate shared libraries at runtime.
  33261. - ;;
  33262. +#ifdef RTLD_GLOBAL
  33263. +# define LT_DLGLOBAL RTLD_GLOBAL
  33264. +#else
  33265. +# ifdef DL_GLOBAL
  33266. +# define LT_DLGLOBAL DL_GLOBAL
  33267. +# else
  33268. +# define LT_DLGLOBAL 0
  33269. +# endif
  33270. +#endif
  33271. - msdosdjgpp*)
  33272. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  33273. - # on systems that don't support them.
  33274. - lt_prog_compiler_can_build_shared_F77=no
  33275. - enable_shared=no
  33276. - ;;
  33277. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  33278. + find out it does not work in some platform. */
  33279. +#ifndef LT_DLLAZY_OR_NOW
  33280. +# ifdef RTLD_LAZY
  33281. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  33282. +# else
  33283. +# ifdef DL_LAZY
  33284. +# define LT_DLLAZY_OR_NOW DL_LAZY
  33285. +# else
  33286. +# ifdef RTLD_NOW
  33287. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  33288. +# else
  33289. +# ifdef DL_NOW
  33290. +# define LT_DLLAZY_OR_NOW DL_NOW
  33291. +# else
  33292. +# define LT_DLLAZY_OR_NOW 0
  33293. +# endif
  33294. +# endif
  33295. +# endif
  33296. +# endif
  33297. +#endif
  33298. - sysv4*MP*)
  33299. - if test -d /usr/nec; then
  33300. - lt_prog_compiler_pic_F77=-Kconform_pic
  33301. - fi
  33302. - ;;
  33303. +void fnord() { int i=42;}
  33304. +int main ()
  33305. +{
  33306. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  33307. + int status = $lt_dlunknown;
  33308. - hpux*)
  33309. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33310. - # not for PA HP-UX.
  33311. - case $host_cpu in
  33312. - hppa*64*|ia64*)
  33313. - # +Z the default
  33314. - ;;
  33315. - *)
  33316. - lt_prog_compiler_pic_F77='-fPIC'
  33317. - ;;
  33318. - esac
  33319. - ;;
  33320. + if (self)
  33321. + {
  33322. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  33323. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  33324. + /* dlclose (self); */
  33325. + }
  33326. + else
  33327. + puts (dlerror ());
  33328. - *)
  33329. - lt_prog_compiler_pic_F77='-fPIC'
  33330. - ;;
  33331. + return status;
  33332. +}
  33333. +_LT_EOF
  33334. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  33335. + (eval $ac_link) 2>&5
  33336. + ac_status=$?
  33337. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33338. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  33339. + (./conftest; exit; ) >&5 2>/dev/null
  33340. + lt_status=$?
  33341. + case x$lt_status in
  33342. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  33343. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  33344. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  33345. esac
  33346. - else
  33347. - # PORTME Check for flag to pass linker flags through the system compiler.
  33348. - case $host_os in
  33349. - aix*)
  33350. - lt_prog_compiler_wl_F77='-Wl,'
  33351. - if test "$host_cpu" = ia64; then
  33352. - # AIX 5 now supports IA64 processor
  33353. - lt_prog_compiler_static_F77='-Bstatic'
  33354. - else
  33355. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  33356. - fi
  33357. - ;;
  33358. - darwin*)
  33359. - # PIC is the default on this platform
  33360. - # Common symbols not allowed in MH_DYLIB files
  33361. - case $cc_basename in
  33362. - xlc*)
  33363. - lt_prog_compiler_pic_F77='-qnocommon'
  33364. - lt_prog_compiler_wl_F77='-Wl,'
  33365. - ;;
  33366. - esac
  33367. - ;;
  33368. + else :
  33369. + # compilation failed
  33370. + lt_cv_dlopen_self=no
  33371. + fi
  33372. +fi
  33373. +rm -fr conftest*
  33374. - mingw* | pw32* | os2*)
  33375. - # This hack is so that the source file can tell whether it is being
  33376. - # built for inclusion in a dll (and should export symbols for example).
  33377. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  33378. - ;;
  33379. - hpux9* | hpux10* | hpux11*)
  33380. - lt_prog_compiler_wl_F77='-Wl,'
  33381. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33382. - # not for PA HP-UX.
  33383. - case $host_cpu in
  33384. - hppa*64*|ia64*)
  33385. - # +Z the default
  33386. - ;;
  33387. - *)
  33388. - lt_prog_compiler_pic_F77='+Z'
  33389. - ;;
  33390. - esac
  33391. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33392. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  33393. - ;;
  33394. +fi
  33395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  33396. +$as_echo "$lt_cv_dlopen_self" >&6; }
  33397. - irix5* | irix6* | nonstopux*)
  33398. - lt_prog_compiler_wl_F77='-Wl,'
  33399. - # PIC (with -KPIC) is the default.
  33400. - lt_prog_compiler_static_F77='-non_shared'
  33401. - ;;
  33402. + if test "x$lt_cv_dlopen_self" = xyes; then
  33403. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  33404. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  33405. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  33406. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  33407. + $as_echo_n "(cached) " >&6
  33408. +else
  33409. + if test "$cross_compiling" = yes; then :
  33410. + lt_cv_dlopen_self_static=cross
  33411. +else
  33412. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  33413. + lt_status=$lt_dlunknown
  33414. + cat > conftest.$ac_ext <<_LT_EOF
  33415. +#line 10375 "configure"
  33416. +#include "confdefs.h"
  33417. - newsos6)
  33418. - lt_prog_compiler_pic_F77='-KPIC'
  33419. - lt_prog_compiler_static_F77='-Bstatic'
  33420. - ;;
  33421. +#if HAVE_DLFCN_H
  33422. +#include <dlfcn.h>
  33423. +#endif
  33424. - linux* | k*bsd*-gnu)
  33425. - case $cc_basename in
  33426. - icc* | ecc*)
  33427. - lt_prog_compiler_wl_F77='-Wl,'
  33428. - lt_prog_compiler_pic_F77='-KPIC'
  33429. - lt_prog_compiler_static_F77='-static'
  33430. - ;;
  33431. - pgcc* | pgf77* | pgf90* | pgf95*)
  33432. - # Portland Group compilers (*not* the Pentium gcc compiler,
  33433. - # which looks to be a dead project)
  33434. - lt_prog_compiler_wl_F77='-Wl,'
  33435. - lt_prog_compiler_pic_F77='-fpic'
  33436. - lt_prog_compiler_static_F77='-Bstatic'
  33437. - ;;
  33438. - ccc*)
  33439. - lt_prog_compiler_wl_F77='-Wl,'
  33440. - # All Alpha code is PIC.
  33441. - lt_prog_compiler_static_F77='-non_shared'
  33442. - ;;
  33443. - esac
  33444. - ;;
  33445. +#include <stdio.h>
  33446. - osf3* | osf4* | osf5*)
  33447. - lt_prog_compiler_wl_F77='-Wl,'
  33448. - # All OSF/1 code is PIC.
  33449. - lt_prog_compiler_static_F77='-non_shared'
  33450. - ;;
  33451. +#ifdef RTLD_GLOBAL
  33452. +# define LT_DLGLOBAL RTLD_GLOBAL
  33453. +#else
  33454. +# ifdef DL_GLOBAL
  33455. +# define LT_DLGLOBAL DL_GLOBAL
  33456. +# else
  33457. +# define LT_DLGLOBAL 0
  33458. +# endif
  33459. +#endif
  33460. - solaris*)
  33461. - lt_prog_compiler_pic_F77='-KPIC'
  33462. - lt_prog_compiler_static_F77='-Bstatic'
  33463. - case $cc_basename in
  33464. - f77* | f90* | f95*)
  33465. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  33466. - *)
  33467. - lt_prog_compiler_wl_F77='-Wl,';;
  33468. - esac
  33469. - ;;
  33470. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  33471. + find out it does not work in some platform. */
  33472. +#ifndef LT_DLLAZY_OR_NOW
  33473. +# ifdef RTLD_LAZY
  33474. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  33475. +# else
  33476. +# ifdef DL_LAZY
  33477. +# define LT_DLLAZY_OR_NOW DL_LAZY
  33478. +# else
  33479. +# ifdef RTLD_NOW
  33480. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  33481. +# else
  33482. +# ifdef DL_NOW
  33483. +# define LT_DLLAZY_OR_NOW DL_NOW
  33484. +# else
  33485. +# define LT_DLLAZY_OR_NOW 0
  33486. +# endif
  33487. +# endif
  33488. +# endif
  33489. +# endif
  33490. +#endif
  33491. - sunos4*)
  33492. - lt_prog_compiler_wl_F77='-Qoption ld '
  33493. - lt_prog_compiler_pic_F77='-PIC'
  33494. - lt_prog_compiler_static_F77='-Bstatic'
  33495. - ;;
  33496. +void fnord() { int i=42;}
  33497. +int main ()
  33498. +{
  33499. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  33500. + int status = $lt_dlunknown;
  33501. - sysv4 | sysv4.2uw2* | sysv4.3*)
  33502. - lt_prog_compiler_wl_F77='-Wl,'
  33503. - lt_prog_compiler_pic_F77='-KPIC'
  33504. - lt_prog_compiler_static_F77='-Bstatic'
  33505. - ;;
  33506. + if (self)
  33507. + {
  33508. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  33509. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  33510. + /* dlclose (self); */
  33511. + }
  33512. + else
  33513. + puts (dlerror ());
  33514. - sysv4*MP*)
  33515. - if test -d /usr/nec ;then
  33516. - lt_prog_compiler_pic_F77='-Kconform_pic'
  33517. - lt_prog_compiler_static_F77='-Bstatic'
  33518. - fi
  33519. - ;;
  33520. + return status;
  33521. +}
  33522. +_LT_EOF
  33523. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  33524. + (eval $ac_link) 2>&5
  33525. + ac_status=$?
  33526. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33527. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  33528. + (./conftest; exit; ) >&5 2>/dev/null
  33529. + lt_status=$?
  33530. + case x$lt_status in
  33531. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  33532. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  33533. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  33534. + esac
  33535. + else :
  33536. + # compilation failed
  33537. + lt_cv_dlopen_self_static=no
  33538. + fi
  33539. +fi
  33540. +rm -fr conftest*
  33541. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33542. - lt_prog_compiler_wl_F77='-Wl,'
  33543. - lt_prog_compiler_pic_F77='-KPIC'
  33544. - lt_prog_compiler_static_F77='-Bstatic'
  33545. - ;;
  33546. - unicos*)
  33547. - lt_prog_compiler_wl_F77='-Wl,'
  33548. - lt_prog_compiler_can_build_shared_F77=no
  33549. - ;;
  33550. +fi
  33551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  33552. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  33553. + fi
  33554. - uts4*)
  33555. - lt_prog_compiler_pic_F77='-pic'
  33556. - lt_prog_compiler_static_F77='-Bstatic'
  33557. - ;;
  33558. + CPPFLAGS="$save_CPPFLAGS"
  33559. + LDFLAGS="$save_LDFLAGS"
  33560. + LIBS="$save_LIBS"
  33561. + ;;
  33562. + esac
  33563. - *)
  33564. - lt_prog_compiler_can_build_shared_F77=no
  33565. - ;;
  33566. - esac
  33567. - fi
  33568. + case $lt_cv_dlopen_self in
  33569. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  33570. + *) enable_dlopen_self=unknown ;;
  33571. + esac
  33572. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  33573. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  33574. + case $lt_cv_dlopen_self_static in
  33575. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  33576. + *) enable_dlopen_self_static=unknown ;;
  33577. + esac
  33578. +fi
  33579. -#
  33580. -# Check to make sure the PIC flag actually works.
  33581. -#
  33582. -if test -n "$lt_prog_compiler_pic_F77"; then
  33583. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  33584. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  33585. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  33586. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33587. -else
  33588. - lt_prog_compiler_pic_works_F77=no
  33589. - ac_outfile=conftest.$ac_objext
  33590. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33591. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  33592. - # Insert the option either (1) after the last *FLAGS variable, or
  33593. - # (2) before a word containing "conftest.", or (3) at the end.
  33594. - # Note that $ac_compile itself does not contain backslashes and begins
  33595. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33596. - # The option is referenced via a variable to avoid confusing sed.
  33597. - lt_compile=`echo "$ac_compile" | $SED \
  33598. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33599. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33600. - -e 's:$: $lt_compiler_flag:'`
  33601. - (eval echo "\"\$as_me:13780: $lt_compile\"" >&5)
  33602. - (eval "$lt_compile" 2>conftest.err)
  33603. - ac_status=$?
  33604. - cat conftest.err >&5
  33605. - echo "$as_me:13784: \$? = $ac_status" >&5
  33606. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33607. - # The compiler can only warn and ignore the option if not recognized
  33608. - # So say no if there are warnings other than the usual output.
  33609. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33610. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33611. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33612. - lt_prog_compiler_pic_works_F77=yes
  33613. - fi
  33614. - fi
  33615. - $rm conftest*
  33616. -fi
  33617. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  33618. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  33619. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  33620. - case $lt_prog_compiler_pic_F77 in
  33621. - "" | " "*) ;;
  33622. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  33623. - esac
  33624. -else
  33625. - lt_prog_compiler_pic_F77=
  33626. - lt_prog_compiler_can_build_shared_F77=no
  33627. -fi
  33628. -fi
  33629. -case $host_os in
  33630. - # For platforms which do not support PIC, -DPIC is meaningless:
  33631. - *djgpp*)
  33632. - lt_prog_compiler_pic_F77=
  33633. +
  33634. +
  33635. +
  33636. +
  33637. +
  33638. +
  33639. +
  33640. +
  33641. +
  33642. +
  33643. +
  33644. +
  33645. +striplib=
  33646. +old_striplib=
  33647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  33648. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  33649. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  33650. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  33651. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  33652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33653. +$as_echo "yes" >&6; }
  33654. +else
  33655. +# FIXME - insert some real tests, host_os isn't really good enough
  33656. + case $host_os in
  33657. + darwin*)
  33658. + if test -n "$STRIP" ; then
  33659. + striplib="$STRIP -x"
  33660. + old_striplib="$STRIP -S"
  33661. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33662. +$as_echo "yes" >&6; }
  33663. + else
  33664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33665. +$as_echo "no" >&6; }
  33666. + fi
  33667. ;;
  33668. *)
  33669. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  33670. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33671. +$as_echo "no" >&6; }
  33672. ;;
  33673. -esac
  33674. + esac
  33675. +fi
  33676. -#
  33677. -# Check to make sure the static flag actually works.
  33678. -#
  33679. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  33680. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33681. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  33682. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  33683. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33684. -else
  33685. - lt_prog_compiler_static_works_F77=no
  33686. - save_LDFLAGS="$LDFLAGS"
  33687. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33688. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  33689. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33690. - # The linker can only warn and ignore the option if not recognized
  33691. - # So say no if there are warnings
  33692. - if test -s conftest.err; then
  33693. - # Append any errors to the config.log.
  33694. - cat conftest.err 1>&5
  33695. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33696. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33697. - if diff conftest.exp conftest.er2 >/dev/null; then
  33698. - lt_prog_compiler_static_works_F77=yes
  33699. - fi
  33700. - else
  33701. - lt_prog_compiler_static_works_F77=yes
  33702. - fi
  33703. - fi
  33704. - $rm conftest*
  33705. - LDFLAGS="$save_LDFLAGS"
  33706. -fi
  33707. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  33708. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  33709. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  33710. - :
  33711. -else
  33712. - lt_prog_compiler_static_F77=
  33713. -fi
  33714. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33715. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  33716. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  33717. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33718. -else
  33719. - lt_cv_prog_compiler_c_o_F77=no
  33720. - $rm -r conftest 2>/dev/null
  33721. - mkdir conftest
  33722. - cd conftest
  33723. - mkdir out
  33724. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33725. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  33726. - # Insert the option either (1) after the last *FLAGS variable, or
  33727. - # (2) before a word containing "conftest.", or (3) at the end.
  33728. - # Note that $ac_compile itself does not contain backslashes and begins
  33729. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33730. - lt_compile=`echo "$ac_compile" | $SED \
  33731. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33732. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33733. - -e 's:$: $lt_compiler_flag:'`
  33734. - (eval echo "\"\$as_me:13884: $lt_compile\"" >&5)
  33735. - (eval "$lt_compile" 2>out/conftest.err)
  33736. - ac_status=$?
  33737. - cat out/conftest.err >&5
  33738. - echo "$as_me:13888: \$? = $ac_status" >&5
  33739. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33740. - then
  33741. - # The compiler can only warn and ignore the option if not recognized
  33742. - # So say no if there are warnings
  33743. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33744. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33745. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33746. - lt_cv_prog_compiler_c_o_F77=yes
  33747. - fi
  33748. - fi
  33749. - chmod u+w . 2>&5
  33750. - $rm conftest*
  33751. - # SGI C++ compiler will create directory out/ii_files/ for
  33752. - # template instantiation
  33753. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33754. - $rm out/* && rmdir out
  33755. - cd ..
  33756. - rmdir conftest
  33757. - $rm conftest*
  33758. -fi
  33759. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  33760. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  33761. -hard_links="nottested"
  33762. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  33763. - # do not overwrite the value of need_locks provided by the user
  33764. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33765. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  33766. - hard_links=yes
  33767. - $rm conftest*
  33768. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33769. - touch conftest.a
  33770. - ln conftest.a conftest.b 2>&5 || hard_links=no
  33771. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33772. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  33773. -echo "${ECHO_T}$hard_links" >&6; }
  33774. - if test "$hard_links" = no; then
  33775. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33776. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33777. - need_locks=warn
  33778. - fi
  33779. -else
  33780. - need_locks=no
  33781. -fi
  33782. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33783. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  33784. - runpath_var=
  33785. - allow_undefined_flag_F77=
  33786. - enable_shared_with_static_runtimes_F77=no
  33787. - archive_cmds_F77=
  33788. - archive_expsym_cmds_F77=
  33789. - old_archive_From_new_cmds_F77=
  33790. - old_archive_from_expsyms_cmds_F77=
  33791. - export_dynamic_flag_spec_F77=
  33792. - whole_archive_flag_spec_F77=
  33793. - thread_safe_flag_spec_F77=
  33794. - hardcode_libdir_flag_spec_F77=
  33795. - hardcode_libdir_flag_spec_ld_F77=
  33796. - hardcode_libdir_separator_F77=
  33797. - hardcode_direct_F77=no
  33798. - hardcode_minus_L_F77=no
  33799. - hardcode_shlibpath_var_F77=unsupported
  33800. - link_all_deplibs_F77=unknown
  33801. - hardcode_automatic_F77=no
  33802. - module_cmds_F77=
  33803. - module_expsym_cmds_F77=
  33804. - always_export_symbols_F77=no
  33805. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33806. - # include_expsyms should be a list of space-separated symbols to be *always*
  33807. - # included in the symbol list
  33808. - include_expsyms_F77=
  33809. - # exclude_expsyms can be an extended regexp of symbols to exclude
  33810. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33811. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33812. - # as well as any symbol that contains `d'.
  33813. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  33814. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33815. - # platforms (ab)use it in PIC code, but their linkers get confused if
  33816. - # the symbol is explicitly referenced. Since portable code cannot
  33817. - # rely on this symbol name, it's probably fine to never include it in
  33818. - # preloaded symbol tables.
  33819. - extract_expsyms_cmds=
  33820. - # Just being paranoid about ensuring that cc_basename is set.
  33821. - for cc_temp in $compiler""; do
  33822. - case $cc_temp in
  33823. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33824. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33825. - \-*) ;;
  33826. - *) break;;
  33827. - esac
  33828. -done
  33829. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33830. + # Report which library types will actually be built
  33831. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  33832. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  33833. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  33834. +$as_echo "$can_build_shared" >&6; }
  33835. +
  33836. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  33837. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  33838. + test "$can_build_shared" = "no" && enable_shared=no
  33839. +
  33840. + # On AIX, shared libraries and static libraries use the same namespace, and
  33841. + # are all built from PIC.
  33842. case $host_os in
  33843. - cygwin* | mingw* | pw32*)
  33844. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33845. - # When not using gcc, we currently assume that we are using
  33846. - # Microsoft Visual C++.
  33847. - if test "$GCC" != yes; then
  33848. - with_gnu_ld=no
  33849. + aix3*)
  33850. + test "$enable_shared" = yes && enable_static=no
  33851. + if test -n "$RANLIB"; then
  33852. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  33853. + postinstall_cmds='$RANLIB $lib'
  33854. fi
  33855. ;;
  33856. - interix*)
  33857. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  33858. - with_gnu_ld=yes
  33859. - ;;
  33860. - openbsd*)
  33861. - with_gnu_ld=no
  33862. +
  33863. + aix[4-9]*)
  33864. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  33865. + test "$enable_shared" = yes && enable_static=no
  33866. + fi
  33867. ;;
  33868. esac
  33869. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  33870. +$as_echo "$enable_shared" >&6; }
  33871. - ld_shlibs_F77=yes
  33872. - if test "$with_gnu_ld" = yes; then
  33873. - # If archive_cmds runs LD, not CC, wlarc should be empty
  33874. - wlarc='${wl}'
  33875. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  33876. +$as_echo_n "checking whether to build static libraries... " >&6; }
  33877. + # Make sure either enable_shared or enable_static is yes.
  33878. + test "$enable_shared" = yes || enable_static=yes
  33879. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  33880. +$as_echo "$enable_static" >&6; }
  33881. - # Set some defaults for GNU ld with shared library support. These
  33882. - # are reset later if shared libraries are not supported. Putting them
  33883. - # here allows them to be overridden if necessary.
  33884. - runpath_var=LD_RUN_PATH
  33885. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  33886. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  33887. - # ancient GNU ld didn't support --whole-archive et. al.
  33888. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  33889. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33890. - else
  33891. - whole_archive_flag_spec_F77=
  33892. - fi
  33893. - supports_anon_versioning=no
  33894. - case `$LD -v 2>/dev/null` in
  33895. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  33896. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33897. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33898. - *\ 2.11.*) ;; # other 2.11 versions
  33899. - *) supports_anon_versioning=yes ;;
  33900. - esac
  33901. - # See if GNU ld supports shared libraries.
  33902. - case $host_os in
  33903. - aix3* | aix4* | aix5*)
  33904. - # On AIX/PPC, the GNU linker is very broken
  33905. - if test "$host_cpu" != ia64; then
  33906. - ld_shlibs_F77=no
  33907. - cat <<EOF 1>&2
  33908. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33909. -*** to be unable to reliably create shared libraries on AIX.
  33910. -*** Therefore, libtool is disabling shared libraries support. If you
  33911. -*** really care for shared libraries, you may want to modify your PATH
  33912. -*** so that a non-GNU linker is found, and then restart.
  33913. -EOF
  33914. - fi
  33915. - ;;
  33916. +fi
  33917. +ac_ext=c
  33918. +ac_cpp='$CPP $CPPFLAGS'
  33919. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33920. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33921. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33922. - amigaos*)
  33923. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33924. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33925. - hardcode_minus_L_F77=yes
  33926. -
  33927. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  33928. - # that the semantics of dynamic libraries on AmigaOS, at least up
  33929. - # to version 4, is to share data among multiple programs linked
  33930. - # with the same dynamic library. Since this doesn't match the
  33931. - # behavior of shared libraries on other platforms, we can't use
  33932. - # them.
  33933. - ld_shlibs_F77=no
  33934. - ;;
  33935. +CC="$lt_save_CC"
  33936. - beos*)
  33937. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33938. - allow_undefined_flag_F77=unsupported
  33939. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33940. - # support --undefined. This deserves some investigation. FIXME
  33941. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33942. - else
  33943. - ld_shlibs_F77=no
  33944. - fi
  33945. - ;;
  33946. - cygwin* | mingw* | pw32*)
  33947. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  33948. - # as there is no search path for DLLs.
  33949. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33950. - allow_undefined_flag_F77=unsupported
  33951. - always_export_symbols_F77=no
  33952. - enable_shared_with_static_runtimes_F77=yes
  33953. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  33954. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  33955. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33956. - # If the export-symbols file already is a .def file (1st line
  33957. - # is EXPORTS), use it as is; otherwise, prepend...
  33958. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33959. - cp $export_symbols $output_objdir/$soname.def;
  33960. - else
  33961. - echo EXPORTS > $output_objdir/$soname.def;
  33962. - cat $export_symbols >> $output_objdir/$soname.def;
  33963. - fi~
  33964. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33965. - else
  33966. - ld_shlibs_F77=no
  33967. - fi
  33968. - ;;
  33969. - interix3*)
  33970. - hardcode_direct_F77=no
  33971. - hardcode_shlibpath_var_F77=no
  33972. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  33973. - export_dynamic_flag_spec_F77='${wl}-E'
  33974. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33975. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  33976. - # default) and relocated if they conflict, which is a slow very memory
  33977. - # consuming and fragmenting process. To avoid this, we pick a random,
  33978. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33979. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33980. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33981. - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33982. - ;;
  33983. - linux* | k*bsd*-gnu)
  33984. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33985. - tmp_addflag=
  33986. - case $cc_basename,$host_cpu in
  33987. - pgcc*) # Portland Group C compiler
  33988. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  33989. - tmp_addflag=' $pic_flag'
  33990. - ;;
  33991. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  33992. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  33993. - tmp_addflag=' $pic_flag -Mnomain' ;;
  33994. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33995. - tmp_addflag=' -i_dynamic' ;;
  33996. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33997. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  33998. - ifc* | ifort*) # Intel Fortran compiler
  33999. - tmp_addflag=' -nofor_main' ;;
  34000. - esac
  34001. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34002. - if test $supports_anon_versioning = yes; then
  34003. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  34004. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34005. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34006. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34007. - fi
  34008. - link_all_deplibs_F77=no
  34009. - else
  34010. - ld_shlibs_F77=no
  34011. - fi
  34012. - ;;
  34013. - netbsd* | netbsdelf*-gnu)
  34014. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34015. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34016. - wlarc=
  34017. - else
  34018. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34019. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34020. - fi
  34021. - ;;
  34022. - solaris*)
  34023. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34024. - ld_shlibs_F77=no
  34025. - cat <<EOF 1>&2
  34026. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34027. -*** create shared libraries on Solaris systems. Therefore, libtool
  34028. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34029. -*** binutils to release 2.9.1 or newer. Another option is to modify
  34030. -*** your PATH or compiler configuration so that the native linker is
  34031. -*** used, and then restart.
  34032. -EOF
  34033. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34034. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34035. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34036. - else
  34037. - ld_shlibs_F77=no
  34038. - fi
  34039. - ;;
  34040. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34041. - case `$LD -v 2>&1` in
  34042. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34043. - ld_shlibs_F77=no
  34044. - cat <<_LT_EOF 1>&2
  34045. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34046. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  34047. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34048. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34049. -*** your PATH or compiler configuration so that the native linker is
  34050. -*** used, and then restart.
  34051. -_LT_EOF
  34052. - ;;
  34053. - *)
  34054. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34055. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34056. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34057. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34058. - else
  34059. - ld_shlibs_F77=no
  34060. - fi
  34061. - ;;
  34062. - esac
  34063. - ;;
  34064. + ac_config_commands="$ac_config_commands libtool"
  34065. - sunos4*)
  34066. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34067. - wlarc=
  34068. - hardcode_direct_F77=yes
  34069. - hardcode_shlibpath_var_F77=no
  34070. - ;;
  34071. - *)
  34072. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34073. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34074. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34075. - else
  34076. - ld_shlibs_F77=no
  34077. - fi
  34078. - ;;
  34079. - esac
  34080. - if test "$ld_shlibs_F77" = no; then
  34081. - runpath_var=
  34082. - hardcode_libdir_flag_spec_F77=
  34083. - export_dynamic_flag_spec_F77=
  34084. - whole_archive_flag_spec_F77=
  34085. - fi
  34086. - else
  34087. - # PORTME fill in a description of your system's linker (not GNU ld)
  34088. - case $host_os in
  34089. - aix3*)
  34090. - allow_undefined_flag_F77=unsupported
  34091. - always_export_symbols_F77=yes
  34092. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  34093. - # Note: this linker hardcodes the directories in LIBPATH if there
  34094. - # are no directories specified by -L.
  34095. - hardcode_minus_L_F77=yes
  34096. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34097. - # Neither direct hardcoding nor static linking is supported with a
  34098. - # broken collect2.
  34099. - hardcode_direct_F77=unsupported
  34100. - fi
  34101. - ;;
  34102. - aix4* | aix5*)
  34103. - if test "$host_cpu" = ia64; then
  34104. - # On IA64, the linker does run time linking by default, so we don't
  34105. - # have to do anything special.
  34106. - aix_use_runtimelinking=no
  34107. - exp_sym_flag='-Bexport'
  34108. - no_entry_flag=""
  34109. - else
  34110. - # If we're using GNU nm, then we don't want the "-C" option.
  34111. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34112. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34113. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  34114. - else
  34115. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  34116. - fi
  34117. - aix_use_runtimelinking=no
  34118. +# Only expand once:
  34119. - # Test if we are trying to use run time linking or normal
  34120. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34121. - # need to do runtime linking.
  34122. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  34123. - for ld_flag in $LDFLAGS; do
  34124. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34125. - aix_use_runtimelinking=yes
  34126. - break
  34127. - fi
  34128. - done
  34129. - ;;
  34130. - esac
  34131. - exp_sym_flag='-bexport'
  34132. - no_entry_flag='-bnoentry'
  34133. - fi
  34134. - # When large executables or shared objects are built, AIX ld can
  34135. - # have problems creating the table of contents. If linking a library
  34136. - # or program results in "error TOC overflow" add -mminimal-toc to
  34137. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34138. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34139. - archive_cmds_F77=''
  34140. - hardcode_direct_F77=yes
  34141. - hardcode_libdir_separator_F77=':'
  34142. - link_all_deplibs_F77=yes
  34143. +ac_ext=c
  34144. +ac_cpp='$CPP $CPPFLAGS'
  34145. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34146. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34147. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34148. +if test -n "$ac_tool_prefix"; then
  34149. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  34150. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  34151. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34152. +$as_echo_n "checking for $ac_word... " >&6; }
  34153. +if test "${ac_cv_prog_CC+set}" = set; then :
  34154. + $as_echo_n "(cached) " >&6
  34155. +else
  34156. + if test -n "$CC"; then
  34157. + ac_cv_prog_CC="$CC" # Let the user override the test.
  34158. +else
  34159. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34160. +for as_dir in $PATH
  34161. +do
  34162. + IFS=$as_save_IFS
  34163. + test -z "$as_dir" && as_dir=.
  34164. + for ac_exec_ext in '' $ac_executable_extensions; do
  34165. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34166. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  34167. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34168. + break 2
  34169. + fi
  34170. +done
  34171. + done
  34172. +IFS=$as_save_IFS
  34173. - if test "$GCC" = yes; then
  34174. - case $host_os in aix4.[012]|aix4.[012].*)
  34175. - # We only want to do this on AIX 4.2 and lower, the check
  34176. - # below for broken collect2 doesn't work under 4.3+
  34177. - collect2name=`${CC} -print-prog-name=collect2`
  34178. - if test -f "$collect2name" && \
  34179. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34180. - then
  34181. - # We have reworked collect2
  34182. - hardcode_direct_F77=yes
  34183. - else
  34184. - # We have old collect2
  34185. - hardcode_direct_F77=unsupported
  34186. - # It fails to find uninstalled libraries when the uninstalled
  34187. - # path is not listed in the libpath. Setting hardcode_minus_L
  34188. - # to unsupported forces relinking
  34189. - hardcode_minus_L_F77=yes
  34190. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34191. - hardcode_libdir_separator_F77=
  34192. - fi
  34193. - ;;
  34194. - esac
  34195. - shared_flag='-shared'
  34196. - if test "$aix_use_runtimelinking" = yes; then
  34197. - shared_flag="$shared_flag "'${wl}-G'
  34198. - fi
  34199. - else
  34200. - # not using gcc
  34201. - if test "$host_cpu" = ia64; then
  34202. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34203. - # chokes on -Wl,-G. The following line is correct:
  34204. - shared_flag='-G'
  34205. - else
  34206. - if test "$aix_use_runtimelinking" = yes; then
  34207. - shared_flag='${wl}-G'
  34208. - else
  34209. - shared_flag='${wl}-bM:SRE'
  34210. - fi
  34211. - fi
  34212. - fi
  34213. -
  34214. - # It seems that -bexpall does not export symbols beginning with
  34215. - # underscore (_), so it is better to generate a list of symbols to export.
  34216. - always_export_symbols_F77=yes
  34217. - if test "$aix_use_runtimelinking" = yes; then
  34218. - # Warning - without using the other runtime loading flags (-brtl),
  34219. - # -berok will link without error, but may produce a broken library.
  34220. - allow_undefined_flag_F77='-berok'
  34221. - # Determine the default libpath from the value encoded in an empty executable.
  34222. - cat >conftest.$ac_ext <<_ACEOF
  34223. - program main
  34224. +fi
  34225. +fi
  34226. +CC=$ac_cv_prog_CC
  34227. +if test -n "$CC"; then
  34228. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34229. +$as_echo "$CC" >&6; }
  34230. +else
  34231. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34232. +$as_echo "no" >&6; }
  34233. +fi
  34234. - end
  34235. -_ACEOF
  34236. -rm -f conftest.$ac_objext conftest$ac_exeext
  34237. -if { (ac_try="$ac_link"
  34238. -case "(($ac_try" in
  34239. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34240. - *) ac_try_echo=$ac_try;;
  34241. -esac
  34242. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34243. - (eval "$ac_link") 2>conftest.er1
  34244. - ac_status=$?
  34245. - grep -v '^ *+' conftest.er1 >conftest.err
  34246. - rm -f conftest.er1
  34247. - cat conftest.err >&5
  34248. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34249. - (exit $ac_status); } && {
  34250. - test -z "$ac_f77_werror_flag" ||
  34251. - test ! -s conftest.err
  34252. - } && test -s conftest$ac_exeext &&
  34253. - $as_test_x conftest$ac_exeext; then
  34254. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34255. -}'`
  34256. -# Check for a 64-bit object if we didn't find anything.
  34257. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34258. -}'`; fi
  34259. +fi
  34260. +if test -z "$ac_cv_prog_CC"; then
  34261. + ac_ct_CC=$CC
  34262. + # Extract the first word of "gcc", so it can be a program name with args.
  34263. +set dummy gcc; ac_word=$2
  34264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34265. +$as_echo_n "checking for $ac_word... " >&6; }
  34266. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  34267. + $as_echo_n "(cached) " >&6
  34268. else
  34269. - echo "$as_me: failed program was:" >&5
  34270. -sed 's/^/| /' conftest.$ac_ext >&5
  34271. + if test -n "$ac_ct_CC"; then
  34272. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  34273. +else
  34274. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34275. +for as_dir in $PATH
  34276. +do
  34277. + IFS=$as_save_IFS
  34278. + test -z "$as_dir" && as_dir=.
  34279. + for ac_exec_ext in '' $ac_executable_extensions; do
  34280. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34281. + ac_cv_prog_ac_ct_CC="gcc"
  34282. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34283. + break 2
  34284. + fi
  34285. +done
  34286. + done
  34287. +IFS=$as_save_IFS
  34288. +fi
  34289. +fi
  34290. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  34291. +if test -n "$ac_ct_CC"; then
  34292. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  34293. +$as_echo "$ac_ct_CC" >&6; }
  34294. +else
  34295. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34296. +$as_echo "no" >&6; }
  34297. +fi
  34298. + if test "x$ac_ct_CC" = x; then
  34299. + CC=""
  34300. + else
  34301. + case $cross_compiling:$ac_tool_warned in
  34302. +yes:)
  34303. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  34304. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34305. +ac_tool_warned=yes ;;
  34306. +esac
  34307. + CC=$ac_ct_CC
  34308. + fi
  34309. +else
  34310. + CC="$ac_cv_prog_CC"
  34311. fi
  34312. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34313. - conftest$ac_exeext conftest.$ac_ext
  34314. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34315. +if test -z "$CC"; then
  34316. + if test -n "$ac_tool_prefix"; then
  34317. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  34318. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  34319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34320. +$as_echo_n "checking for $ac_word... " >&6; }
  34321. +if test "${ac_cv_prog_CC+set}" = set; then :
  34322. + $as_echo_n "(cached) " >&6
  34323. +else
  34324. + if test -n "$CC"; then
  34325. + ac_cv_prog_CC="$CC" # Let the user override the test.
  34326. +else
  34327. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34328. +for as_dir in $PATH
  34329. +do
  34330. + IFS=$as_save_IFS
  34331. + test -z "$as_dir" && as_dir=.
  34332. + for ac_exec_ext in '' $ac_executable_extensions; do
  34333. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34334. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  34335. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34336. + break 2
  34337. + fi
  34338. +done
  34339. + done
  34340. +IFS=$as_save_IFS
  34341. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  34342. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34343. - else
  34344. - if test "$host_cpu" = ia64; then
  34345. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  34346. - allow_undefined_flag_F77="-z nodefs"
  34347. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  34348. - else
  34349. - # Determine the default libpath from the value encoded in an empty executable.
  34350. - cat >conftest.$ac_ext <<_ACEOF
  34351. - program main
  34352. +fi
  34353. +fi
  34354. +CC=$ac_cv_prog_CC
  34355. +if test -n "$CC"; then
  34356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34357. +$as_echo "$CC" >&6; }
  34358. +else
  34359. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34360. +$as_echo "no" >&6; }
  34361. +fi
  34362. - end
  34363. -_ACEOF
  34364. -rm -f conftest.$ac_objext conftest$ac_exeext
  34365. -if { (ac_try="$ac_link"
  34366. -case "(($ac_try" in
  34367. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34368. - *) ac_try_echo=$ac_try;;
  34369. -esac
  34370. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34371. - (eval "$ac_link") 2>conftest.er1
  34372. - ac_status=$?
  34373. - grep -v '^ *+' conftest.er1 >conftest.err
  34374. - rm -f conftest.er1
  34375. - cat conftest.err >&5
  34376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34377. - (exit $ac_status); } && {
  34378. - test -z "$ac_f77_werror_flag" ||
  34379. - test ! -s conftest.err
  34380. - } && test -s conftest$ac_exeext &&
  34381. - $as_test_x conftest$ac_exeext; then
  34382. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34383. -}'`
  34384. -# Check for a 64-bit object if we didn't find anything.
  34385. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34386. -}'`; fi
  34387. + fi
  34388. +fi
  34389. +if test -z "$CC"; then
  34390. + # Extract the first word of "cc", so it can be a program name with args.
  34391. +set dummy cc; ac_word=$2
  34392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34393. +$as_echo_n "checking for $ac_word... " >&6; }
  34394. +if test "${ac_cv_prog_CC+set}" = set; then :
  34395. + $as_echo_n "(cached) " >&6
  34396. else
  34397. - echo "$as_me: failed program was:" >&5
  34398. -sed 's/^/| /' conftest.$ac_ext >&5
  34399. -
  34400. + if test -n "$CC"; then
  34401. + ac_cv_prog_CC="$CC" # Let the user override the test.
  34402. +else
  34403. + ac_prog_rejected=no
  34404. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34405. +for as_dir in $PATH
  34406. +do
  34407. + IFS=$as_save_IFS
  34408. + test -z "$as_dir" && as_dir=.
  34409. + for ac_exec_ext in '' $ac_executable_extensions; do
  34410. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34411. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  34412. + ac_prog_rejected=yes
  34413. + continue
  34414. + fi
  34415. + ac_cv_prog_CC="cc"
  34416. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34417. + break 2
  34418. + fi
  34419. +done
  34420. + done
  34421. +IFS=$as_save_IFS
  34422. +if test $ac_prog_rejected = yes; then
  34423. + # We found a bogon in the path, so make sure we never use it.
  34424. + set dummy $ac_cv_prog_CC
  34425. + shift
  34426. + if test $# != 0; then
  34427. + # We chose a different compiler from the bogus one.
  34428. + # However, it has the same basename, so the bogon will be chosen
  34429. + # first if we set CC to just the basename; use the full file name.
  34430. + shift
  34431. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  34432. + fi
  34433. +fi
  34434. +fi
  34435. +fi
  34436. +CC=$ac_cv_prog_CC
  34437. +if test -n "$CC"; then
  34438. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34439. +$as_echo "$CC" >&6; }
  34440. +else
  34441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34442. +$as_echo "no" >&6; }
  34443. fi
  34444. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34445. - conftest$ac_exeext conftest.$ac_ext
  34446. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34447. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  34448. - # Warning - without using the other run time loading flags,
  34449. - # -berok will link without error, but may produce a broken library.
  34450. - no_undefined_flag_F77=' ${wl}-bernotok'
  34451. - allow_undefined_flag_F77=' ${wl}-berok'
  34452. - # Exported symbols can be pulled into shared objects from archives
  34453. - whole_archive_flag_spec_F77='$convenience'
  34454. - archive_cmds_need_lc_F77=yes
  34455. - # This is similar to how AIX traditionally builds its shared libraries.
  34456. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  34457. - fi
  34458. - fi
  34459. - ;;
  34460. +fi
  34461. +if test -z "$CC"; then
  34462. + if test -n "$ac_tool_prefix"; then
  34463. + for ac_prog in cl.exe
  34464. + do
  34465. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  34466. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  34467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34468. +$as_echo_n "checking for $ac_word... " >&6; }
  34469. +if test "${ac_cv_prog_CC+set}" = set; then :
  34470. + $as_echo_n "(cached) " >&6
  34471. +else
  34472. + if test -n "$CC"; then
  34473. + ac_cv_prog_CC="$CC" # Let the user override the test.
  34474. +else
  34475. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34476. +for as_dir in $PATH
  34477. +do
  34478. + IFS=$as_save_IFS
  34479. + test -z "$as_dir" && as_dir=.
  34480. + for ac_exec_ext in '' $ac_executable_extensions; do
  34481. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34482. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  34483. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34484. + break 2
  34485. + fi
  34486. +done
  34487. + done
  34488. +IFS=$as_save_IFS
  34489. - amigaos*)
  34490. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34491. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34492. - hardcode_minus_L_F77=yes
  34493. - # see comment about different semantics on the GNU ld section
  34494. - ld_shlibs_F77=no
  34495. - ;;
  34496. +fi
  34497. +fi
  34498. +CC=$ac_cv_prog_CC
  34499. +if test -n "$CC"; then
  34500. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34501. +$as_echo "$CC" >&6; }
  34502. +else
  34503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34504. +$as_echo "no" >&6; }
  34505. +fi
  34506. - bsdi[45]*)
  34507. - export_dynamic_flag_spec_F77=-rdynamic
  34508. - ;;
  34509. - cygwin* | mingw* | pw32*)
  34510. - # When not using gcc, we currently assume that we are using
  34511. - # Microsoft Visual C++.
  34512. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  34513. - # no search path for DLLs.
  34514. - hardcode_libdir_flag_spec_F77=' '
  34515. - allow_undefined_flag_F77=unsupported
  34516. - # Tell ltmain to make .lib files, not .a files.
  34517. - libext=lib
  34518. - # Tell ltmain to make .dll files, not .so files.
  34519. - shrext_cmds=".dll"
  34520. - # FIXME: Setting linknames here is a bad hack.
  34521. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34522. - # The linker will automatically build a .lib file if we build a DLL.
  34523. - old_archive_From_new_cmds_F77='true'
  34524. - # FIXME: Should let the user specify the lib program.
  34525. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  34526. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  34527. - enable_shared_with_static_runtimes_F77=yes
  34528. - ;;
  34529. + test -n "$CC" && break
  34530. + done
  34531. +fi
  34532. +if test -z "$CC"; then
  34533. + ac_ct_CC=$CC
  34534. + for ac_prog in cl.exe
  34535. +do
  34536. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  34537. +set dummy $ac_prog; ac_word=$2
  34538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34539. +$as_echo_n "checking for $ac_word... " >&6; }
  34540. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  34541. + $as_echo_n "(cached) " >&6
  34542. +else
  34543. + if test -n "$ac_ct_CC"; then
  34544. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  34545. +else
  34546. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34547. +for as_dir in $PATH
  34548. +do
  34549. + IFS=$as_save_IFS
  34550. + test -z "$as_dir" && as_dir=.
  34551. + for ac_exec_ext in '' $ac_executable_extensions; do
  34552. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34553. + ac_cv_prog_ac_ct_CC="$ac_prog"
  34554. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34555. + break 2
  34556. + fi
  34557. +done
  34558. + done
  34559. +IFS=$as_save_IFS
  34560. - darwin* | rhapsody*)
  34561. - case $host_os in
  34562. - rhapsody* | darwin1.[012])
  34563. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  34564. - ;;
  34565. - *) # Darwin 1.3 on
  34566. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  34567. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  34568. - else
  34569. - case ${MACOSX_DEPLOYMENT_TARGET} in
  34570. - 10.[012])
  34571. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  34572. - ;;
  34573. - 10.*)
  34574. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  34575. - ;;
  34576. - esac
  34577. - fi
  34578. - ;;
  34579. - esac
  34580. - archive_cmds_need_lc_F77=no
  34581. - hardcode_direct_F77=no
  34582. - hardcode_automatic_F77=yes
  34583. - hardcode_shlibpath_var_F77=unsupported
  34584. - whole_archive_flag_spec_F77=''
  34585. - link_all_deplibs_F77=yes
  34586. - if test "$GCC" = yes ; then
  34587. - output_verbose_link_cmd='echo'
  34588. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  34589. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  34590. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  34591. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34592. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34593. - else
  34594. - case $cc_basename in
  34595. - xlc*)
  34596. - output_verbose_link_cmd='echo'
  34597. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  34598. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  34599. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  34600. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34601. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34602. - ;;
  34603. - *)
  34604. - ld_shlibs_F77=no
  34605. - ;;
  34606. - esac
  34607. - fi
  34608. - ;;
  34609. +fi
  34610. +fi
  34611. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  34612. +if test -n "$ac_ct_CC"; then
  34613. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  34614. +$as_echo "$ac_ct_CC" >&6; }
  34615. +else
  34616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34617. +$as_echo "no" >&6; }
  34618. +fi
  34619. - dgux*)
  34620. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34621. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34622. - hardcode_shlibpath_var_F77=no
  34623. - ;;
  34624. - freebsd1*)
  34625. - ld_shlibs_F77=no
  34626. - ;;
  34627. + test -n "$ac_ct_CC" && break
  34628. +done
  34629. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34630. - # support. Future versions do this automatically, but an explicit c++rt0.o
  34631. - # does not break anything, and helps significantly (at the cost of a little
  34632. - # extra space).
  34633. - freebsd2.2*)
  34634. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34635. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34636. - hardcode_direct_F77=yes
  34637. - hardcode_shlibpath_var_F77=no
  34638. - ;;
  34639. + if test "x$ac_ct_CC" = x; then
  34640. + CC=""
  34641. + else
  34642. + case $cross_compiling:$ac_tool_warned in
  34643. +yes:)
  34644. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  34645. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34646. +ac_tool_warned=yes ;;
  34647. +esac
  34648. + CC=$ac_ct_CC
  34649. + fi
  34650. +fi
  34651. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34652. - freebsd2*)
  34653. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34654. - hardcode_direct_F77=yes
  34655. - hardcode_minus_L_F77=yes
  34656. - hardcode_shlibpath_var_F77=no
  34657. - ;;
  34658. +fi
  34659. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34660. - freebsd* | dragonfly*)
  34661. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34662. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34663. - hardcode_direct_F77=yes
  34664. - hardcode_shlibpath_var_F77=no
  34665. - ;;
  34666. - hpux9*)
  34667. - if test "$GCC" = yes; then
  34668. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34669. - else
  34670. - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34671. - fi
  34672. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34673. - hardcode_libdir_separator_F77=:
  34674. - hardcode_direct_F77=yes
  34675. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34676. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34677. +as_fn_error "no acceptable C compiler found in \$PATH
  34678. +See \`config.log' for more details." "$LINENO" 5; }
  34679. - # hardcode_minus_L: Not really in the search PATH,
  34680. - # but as the default location of the library.
  34681. - hardcode_minus_L_F77=yes
  34682. - export_dynamic_flag_spec_F77='${wl}-E'
  34683. - ;;
  34684. +# Provide some information about the compiler.
  34685. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  34686. +set X $ac_compile
  34687. +ac_compiler=$2
  34688. +for ac_option in --version -v -V -qversion; do
  34689. + { { ac_try="$ac_compiler $ac_option >&5"
  34690. +case "(($ac_try" in
  34691. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34692. + *) ac_try_echo=$ac_try;;
  34693. +esac
  34694. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34695. +$as_echo "$ac_try_echo"; } >&5
  34696. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  34697. + ac_status=$?
  34698. + if test -s conftest.err; then
  34699. + sed '10a\
  34700. +... rest of stderr output deleted ...
  34701. + 10q' conftest.err >conftest.er1
  34702. + cat conftest.er1 >&5
  34703. + fi
  34704. + rm -f conftest.er1 conftest.err
  34705. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34706. + test $ac_status = 0; }
  34707. +done
  34708. - hpux10*)
  34709. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34710. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34711. - else
  34712. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34713. - fi
  34714. - if test "$with_gnu_ld" = no; then
  34715. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34716. - hardcode_libdir_separator_F77=:
  34717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  34718. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  34719. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  34720. + $as_echo_n "(cached) " >&6
  34721. +else
  34722. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34723. +/* end confdefs.h. */
  34724. - hardcode_direct_F77=yes
  34725. - export_dynamic_flag_spec_F77='${wl}-E'
  34726. +int
  34727. +main ()
  34728. +{
  34729. +#ifndef __GNUC__
  34730. + choke me
  34731. +#endif
  34732. - # hardcode_minus_L: Not really in the search PATH,
  34733. - # but as the default location of the library.
  34734. - hardcode_minus_L_F77=yes
  34735. - fi
  34736. - ;;
  34737. + ;
  34738. + return 0;
  34739. +}
  34740. +_ACEOF
  34741. +if ac_fn_c_try_compile "$LINENO"; then :
  34742. + ac_compiler_gnu=yes
  34743. +else
  34744. + ac_compiler_gnu=no
  34745. +fi
  34746. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34747. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  34748. - hpux11*)
  34749. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34750. - case $host_cpu in
  34751. - hppa*64*)
  34752. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34753. - ;;
  34754. - ia64*)
  34755. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34756. - ;;
  34757. - *)
  34758. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34759. - ;;
  34760. - esac
  34761. - else
  34762. - case $host_cpu in
  34763. - hppa*64*)
  34764. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34765. - ;;
  34766. - ia64*)
  34767. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34768. - ;;
  34769. - *)
  34770. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34771. - ;;
  34772. - esac
  34773. - fi
  34774. - if test "$with_gnu_ld" = no; then
  34775. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34776. - hardcode_libdir_separator_F77=:
  34777. +fi
  34778. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  34779. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  34780. +if test $ac_compiler_gnu = yes; then
  34781. + GCC=yes
  34782. +else
  34783. + GCC=
  34784. +fi
  34785. +ac_test_CFLAGS=${CFLAGS+set}
  34786. +ac_save_CFLAGS=$CFLAGS
  34787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  34788. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  34789. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  34790. + $as_echo_n "(cached) " >&6
  34791. +else
  34792. + ac_save_c_werror_flag=$ac_c_werror_flag
  34793. + ac_c_werror_flag=yes
  34794. + ac_cv_prog_cc_g=no
  34795. + CFLAGS="-g"
  34796. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34797. +/* end confdefs.h. */
  34798. - case $host_cpu in
  34799. - hppa*64*|ia64*)
  34800. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  34801. - hardcode_direct_F77=no
  34802. - hardcode_shlibpath_var_F77=no
  34803. - ;;
  34804. - *)
  34805. - hardcode_direct_F77=yes
  34806. - export_dynamic_flag_spec_F77='${wl}-E'
  34807. +int
  34808. +main ()
  34809. +{
  34810. - # hardcode_minus_L: Not really in the search PATH,
  34811. - # but as the default location of the library.
  34812. - hardcode_minus_L_F77=yes
  34813. - ;;
  34814. - esac
  34815. - fi
  34816. - ;;
  34817. + ;
  34818. + return 0;
  34819. +}
  34820. +_ACEOF
  34821. +if ac_fn_c_try_compile "$LINENO"; then :
  34822. + ac_cv_prog_cc_g=yes
  34823. +else
  34824. + CFLAGS=""
  34825. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34826. +/* end confdefs.h. */
  34827. - irix5* | irix6* | nonstopux*)
  34828. - if test "$GCC" = yes; then
  34829. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34830. - else
  34831. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  34832. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  34833. - fi
  34834. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34835. - hardcode_libdir_separator_F77=:
  34836. - link_all_deplibs_F77=yes
  34837. - ;;
  34838. +int
  34839. +main ()
  34840. +{
  34841. - netbsd* | netbsdelf*-gnu)
  34842. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34843. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34844. - else
  34845. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34846. - fi
  34847. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34848. - hardcode_direct_F77=yes
  34849. - hardcode_shlibpath_var_F77=no
  34850. - ;;
  34851. + ;
  34852. + return 0;
  34853. +}
  34854. +_ACEOF
  34855. +if ac_fn_c_try_compile "$LINENO"; then :
  34856. - newsos6)
  34857. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34858. - hardcode_direct_F77=yes
  34859. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34860. - hardcode_libdir_separator_F77=:
  34861. - hardcode_shlibpath_var_F77=no
  34862. - ;;
  34863. +else
  34864. + ac_c_werror_flag=$ac_save_c_werror_flag
  34865. + CFLAGS="-g"
  34866. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34867. +/* end confdefs.h. */
  34868. - openbsd*)
  34869. - hardcode_direct_F77=yes
  34870. - hardcode_shlibpath_var_F77=no
  34871. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34872. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34873. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34874. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34875. - export_dynamic_flag_spec_F77='${wl}-E'
  34876. - else
  34877. - case $host_os in
  34878. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34879. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34880. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34881. - ;;
  34882. - *)
  34883. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34884. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34885. - ;;
  34886. - esac
  34887. - fi
  34888. - ;;
  34889. +int
  34890. +main ()
  34891. +{
  34892. - os2*)
  34893. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34894. - hardcode_minus_L_F77=yes
  34895. - allow_undefined_flag_F77=unsupported
  34896. - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  34897. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34898. - ;;
  34899. + ;
  34900. + return 0;
  34901. +}
  34902. +_ACEOF
  34903. +if ac_fn_c_try_compile "$LINENO"; then :
  34904. + ac_cv_prog_cc_g=yes
  34905. +fi
  34906. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34907. +fi
  34908. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34909. +fi
  34910. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34911. + ac_c_werror_flag=$ac_save_c_werror_flag
  34912. +fi
  34913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  34914. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  34915. +if test "$ac_test_CFLAGS" = set; then
  34916. + CFLAGS=$ac_save_CFLAGS
  34917. +elif test $ac_cv_prog_cc_g = yes; then
  34918. + if test "$GCC" = yes; then
  34919. + CFLAGS="-g -O2"
  34920. + else
  34921. + CFLAGS="-g"
  34922. + fi
  34923. +else
  34924. + if test "$GCC" = yes; then
  34925. + CFLAGS="-O2"
  34926. + else
  34927. + CFLAGS=
  34928. + fi
  34929. +fi
  34930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  34931. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  34932. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  34933. + $as_echo_n "(cached) " >&6
  34934. +else
  34935. + ac_cv_prog_cc_c89=no
  34936. +ac_save_CC=$CC
  34937. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34938. +/* end confdefs.h. */
  34939. +#include <stdarg.h>
  34940. +#include <stdio.h>
  34941. +#include <sys/types.h>
  34942. +#include <sys/stat.h>
  34943. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  34944. +struct buf { int x; };
  34945. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  34946. +static char *e (p, i)
  34947. + char **p;
  34948. + int i;
  34949. +{
  34950. + return p[i];
  34951. +}
  34952. +static char *f (char * (*g) (char **, int), char **p, ...)
  34953. +{
  34954. + char *s;
  34955. + va_list v;
  34956. + va_start (v,p);
  34957. + s = g (p, va_arg (v,int));
  34958. + va_end (v);
  34959. + return s;
  34960. +}
  34961. - osf3*)
  34962. - if test "$GCC" = yes; then
  34963. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  34964. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34965. - else
  34966. - allow_undefined_flag_F77=' -expect_unresolved \*'
  34967. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  34968. - fi
  34969. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34970. - hardcode_libdir_separator_F77=:
  34971. - ;;
  34972. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  34973. + function prototypes and stuff, but not '\xHH' hex character constants.
  34974. + These don't provoke an error unfortunately, instead are silently treated
  34975. + as 'x'. The following induces an error, until -std is added to get
  34976. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  34977. + array size at least. It's necessary to write '\x00'==0 to get something
  34978. + that's true only with -std. */
  34979. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  34980. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  34981. - if test "$GCC" = yes; then
  34982. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  34983. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34984. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34985. - else
  34986. - allow_undefined_flag_F77=' -expect_unresolved \*'
  34987. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  34988. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  34989. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  34990. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  34991. + inside strings and character constants. */
  34992. +#define FOO(x) 'x'
  34993. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  34994. - # Both c and cxx compiler support -rpath directly
  34995. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  34996. - fi
  34997. - hardcode_libdir_separator_F77=:
  34998. - ;;
  34999. +int test (int i, double x);
  35000. +struct s1 {int (*f) (int a);};
  35001. +struct s2 {int (*f) (double a);};
  35002. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  35003. +int argc;
  35004. +char **argv;
  35005. +int
  35006. +main ()
  35007. +{
  35008. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  35009. + ;
  35010. + return 0;
  35011. +}
  35012. +_ACEOF
  35013. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  35014. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  35015. +do
  35016. + CC="$ac_save_CC $ac_arg"
  35017. + if ac_fn_c_try_compile "$LINENO"; then :
  35018. + ac_cv_prog_cc_c89=$ac_arg
  35019. +fi
  35020. +rm -f core conftest.err conftest.$ac_objext
  35021. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  35022. +done
  35023. +rm -f conftest.$ac_ext
  35024. +CC=$ac_save_CC
  35025. - solaris*)
  35026. - no_undefined_flag_F77=' -z text'
  35027. - if test "$GCC" = yes; then
  35028. - wlarc='${wl}'
  35029. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35030. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35031. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35032. - else
  35033. - wlarc=''
  35034. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35035. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35036. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35037. - fi
  35038. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35039. - hardcode_shlibpath_var_F77=no
  35040. - case $host_os in
  35041. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35042. - *)
  35043. - # The compiler driver will combine linker options so we
  35044. - # cannot just pass the convience library names through
  35045. - # without $wl, iff we do not link with $LD.
  35046. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  35047. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35048. - case $wlarc in
  35049. - '')
  35050. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  35051. - *)
  35052. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  35053. - esac ;;
  35054. - esac
  35055. - link_all_deplibs_F77=yes
  35056. - ;;
  35057. -
  35058. - sunos4*)
  35059. - if test "x$host_vendor" = xsequent; then
  35060. - # Use $CC to link under sequent, because it throws in some extra .o
  35061. - # files that make .init and .fini sections work.
  35062. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35063. - else
  35064. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35065. - fi
  35066. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35067. - hardcode_direct_F77=yes
  35068. - hardcode_minus_L_F77=yes
  35069. - hardcode_shlibpath_var_F77=no
  35070. - ;;
  35071. +fi
  35072. +# AC_CACHE_VAL
  35073. +case "x$ac_cv_prog_cc_c89" in
  35074. + x)
  35075. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  35076. +$as_echo "none needed" >&6; } ;;
  35077. + xno)
  35078. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  35079. +$as_echo "unsupported" >&6; } ;;
  35080. + *)
  35081. + CC="$CC $ac_cv_prog_cc_c89"
  35082. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  35083. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  35084. +esac
  35085. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  35086. - sysv4)
  35087. - case $host_vendor in
  35088. - sni)
  35089. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35090. - hardcode_direct_F77=yes # is this really true???
  35091. - ;;
  35092. - siemens)
  35093. - ## LD is ld it makes a PLAMLIB
  35094. - ## CC just makes a GrossModule.
  35095. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35096. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  35097. - hardcode_direct_F77=no
  35098. - ;;
  35099. - motorola)
  35100. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35101. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  35102. - ;;
  35103. - esac
  35104. - runpath_var='LD_RUN_PATH'
  35105. - hardcode_shlibpath_var_F77=no
  35106. - ;;
  35107. +fi
  35108. - sysv4.3*)
  35109. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35110. - hardcode_shlibpath_var_F77=no
  35111. - export_dynamic_flag_spec_F77='-Bexport'
  35112. - ;;
  35113. +ac_ext=c
  35114. +ac_cpp='$CPP $CPPFLAGS'
  35115. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35116. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35117. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35118. - sysv4*MP*)
  35119. - if test -d /usr/nec; then
  35120. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35121. - hardcode_shlibpath_var_F77=no
  35122. - runpath_var=LD_RUN_PATH
  35123. - hardcode_runpath_var=yes
  35124. - ld_shlibs_F77=yes
  35125. - fi
  35126. - ;;
  35127. +depcc="$CC" am_compiler_list=
  35128. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  35129. - no_undefined_flag_F77='${wl}-z,text'
  35130. - archive_cmds_need_lc_F77=no
  35131. - hardcode_shlibpath_var_F77=no
  35132. - runpath_var='LD_RUN_PATH'
  35133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  35134. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  35135. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  35136. + $as_echo_n "(cached) " >&6
  35137. +else
  35138. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  35139. + # We make a subdir and do the tests there. Otherwise we can end up
  35140. + # making bogus files that we don't know about and never remove. For
  35141. + # instance it was reported that on HP-UX the gcc test will end up
  35142. + # making a dummy file named `D' -- because `-MD' means `put the output
  35143. + # in D'.
  35144. + mkdir conftest.dir
  35145. + # Copy depcomp to subdir because otherwise we won't find it if we're
  35146. + # using a relative directory.
  35147. + cp "$am_depcomp" conftest.dir
  35148. + cd conftest.dir
  35149. + # We will build objects and dependencies in a subdirectory because
  35150. + # it helps to detect inapplicable dependency modes. For instance
  35151. + # both Tru64's cc and ICC support -MD to output dependencies as a
  35152. + # side effect of compilation, but ICC will put the dependencies in
  35153. + # the current directory while Tru64 will put them in the object
  35154. + # directory.
  35155. + mkdir sub
  35156. - if test "$GCC" = yes; then
  35157. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35158. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35159. - else
  35160. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35161. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35162. - fi
  35163. - ;;
  35164. + am_cv_CC_dependencies_compiler_type=none
  35165. + if test "$am_compiler_list" = ""; then
  35166. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  35167. + fi
  35168. + am__universal=false
  35169. + case " $depcc " in #(
  35170. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  35171. + esac
  35172. - sysv5* | sco3.2v5* | sco5v6*)
  35173. - # Note: We can NOT use -z defs as we might desire, because we do not
  35174. - # link with -lc, and that would cause any symbols used from libc to
  35175. - # always be unresolved, which means just about no library would
  35176. - # ever link correctly. If we're not using GNU ld we use -z text
  35177. - # though, which does catch some bad symbols but isn't as heavy-handed
  35178. - # as -z defs.
  35179. - no_undefined_flag_F77='${wl}-z,text'
  35180. - allow_undefined_flag_F77='${wl}-z,nodefs'
  35181. - archive_cmds_need_lc_F77=no
  35182. - hardcode_shlibpath_var_F77=no
  35183. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35184. - hardcode_libdir_separator_F77=':'
  35185. - link_all_deplibs_F77=yes
  35186. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  35187. - runpath_var='LD_RUN_PATH'
  35188. + for depmode in $am_compiler_list; do
  35189. + # Setup a source with many dependencies, because some compilers
  35190. + # like to wrap large dependency lists on column 80 (with \), and
  35191. + # we should not choose a depcomp mode which is confused by this.
  35192. + #
  35193. + # We need to recreate these files for each test, as the compiler may
  35194. + # overwrite some of them when testing with obscure command lines.
  35195. + # This happens at least with the AIX C compiler.
  35196. + : > sub/conftest.c
  35197. + for i in 1 2 3 4 5 6; do
  35198. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  35199. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  35200. + # Solaris 8's {/usr,}/bin/sh.
  35201. + touch sub/conftst$i.h
  35202. + done
  35203. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  35204. - if test "$GCC" = yes; then
  35205. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35206. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35207. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  35208. + # mode. It turns out that the SunPro C++ compiler does not properly
  35209. + # handle `-M -o', and we need to detect this. Also, some Intel
  35210. + # versions had trouble with output in subdirs
  35211. + am__obj=sub/conftest.${OBJEXT-o}
  35212. + am__minus_obj="-o $am__obj"
  35213. + case $depmode in
  35214. + gcc)
  35215. + # This depmode causes a compiler race in universal mode.
  35216. + test "$am__universal" = false || continue
  35217. + ;;
  35218. + nosideeffect)
  35219. + # after this tag, mechanisms are not by side-effect, so they'll
  35220. + # only be used when explicitly requested
  35221. + if test "x$enable_dependency_tracking" = xyes; then
  35222. + continue
  35223. else
  35224. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35225. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35226. + break
  35227. fi
  35228. ;;
  35229. -
  35230. - uts4*)
  35231. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35232. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35233. - hardcode_shlibpath_var_F77=no
  35234. - ;;
  35235. -
  35236. - *)
  35237. - ld_shlibs_F77=no
  35238. + msvisualcpp | msvcmsys)
  35239. + # This compiler won't grok `-c -o', but also, the minuso test has
  35240. + # not run yet. These depmodes are late enough in the game, and
  35241. + # so weak that their functioning should not be impacted.
  35242. + am__obj=conftest.${OBJEXT-o}
  35243. + am__minus_obj=
  35244. ;;
  35245. + none) break ;;
  35246. esac
  35247. - fi
  35248. + if depmode=$depmode \
  35249. + source=sub/conftest.c object=$am__obj \
  35250. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  35251. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  35252. + >/dev/null 2>conftest.err &&
  35253. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  35254. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  35255. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  35256. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  35257. + # icc doesn't choke on unknown options, it will just issue warnings
  35258. + # or remarks (even with -Werror). So we grep stderr for any message
  35259. + # that says an option was ignored or not supported.
  35260. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  35261. + # icc: Command line warning: ignoring option '-M'; no argument required
  35262. + # The diagnosis changed in icc 8.0:
  35263. + # icc: Command line remark: option '-MP' not supported
  35264. + if (grep 'ignoring option' conftest.err ||
  35265. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  35266. + am_cv_CC_dependencies_compiler_type=$depmode
  35267. + break
  35268. + fi
  35269. + fi
  35270. + done
  35271. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  35272. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  35273. -test "$ld_shlibs_F77" = no && can_build_shared=no
  35274. + cd ..
  35275. + rm -rf conftest.dir
  35276. +else
  35277. + am_cv_CC_dependencies_compiler_type=none
  35278. +fi
  35279. -#
  35280. -# Do we need to explicitly link libc?
  35281. -#
  35282. -case "x$archive_cmds_need_lc_F77" in
  35283. -x|xyes)
  35284. - # Assume -lc should be added
  35285. - archive_cmds_need_lc_F77=yes
  35286. +fi
  35287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  35288. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  35289. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  35290. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  35291. - case $archive_cmds_F77 in
  35292. - *'~'*)
  35293. - # FIXME: we may have to deal with multi-command sequences.
  35294. - ;;
  35295. - '$CC '*)
  35296. - # Test whether the compiler implicitly links with -lc since on some
  35297. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35298. - # to ld, don't add -lc before -lgcc.
  35299. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35300. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  35301. - $rm conftest*
  35302. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35303. + if
  35304. + test "x$enable_dependency_tracking" != xno \
  35305. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  35306. + am__fastdepCC_TRUE=
  35307. + am__fastdepCC_FALSE='#'
  35308. +else
  35309. + am__fastdepCC_TRUE='#'
  35310. + am__fastdepCC_FALSE=
  35311. +fi
  35312. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35313. - (eval $ac_compile) 2>&5
  35314. +
  35315. +if test "x$CC" != xcc; then
  35316. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  35317. +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  35318. +else
  35319. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  35320. +$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  35321. +fi
  35322. +set dummy $CC; ac_cc=`$as_echo "$2" |
  35323. + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  35324. +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  35325. + $as_echo_n "(cached) " >&6
  35326. +else
  35327. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35328. +/* end confdefs.h. */
  35329. +
  35330. +int
  35331. +main ()
  35332. +{
  35333. +
  35334. + ;
  35335. + return 0;
  35336. +}
  35337. +_ACEOF
  35338. +# Make sure it works both with $CC and with simple cc.
  35339. +# We do the test twice because some compilers refuse to overwrite an
  35340. +# existing .o file with -o, though they will create one.
  35341. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  35342. +rm -f conftest2.*
  35343. +if { { case "(($ac_try" in
  35344. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35345. + *) ac_try_echo=$ac_try;;
  35346. +esac
  35347. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  35348. +$as_echo "$ac_try_echo"; } >&5
  35349. + (eval "$ac_try") 2>&5
  35350. ac_status=$?
  35351. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35352. - (exit $ac_status); } 2>conftest.err; then
  35353. - soname=conftest
  35354. - lib=conftest
  35355. - libobjs=conftest.$ac_objext
  35356. - deplibs=
  35357. - wl=$lt_prog_compiler_wl_F77
  35358. - pic_flag=$lt_prog_compiler_pic_F77
  35359. - compiler_flags=-v
  35360. - linker_flags=-v
  35361. - verstring=
  35362. - output_objdir=.
  35363. - libname=conftest
  35364. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  35365. - allow_undefined_flag_F77=
  35366. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35367. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35368. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35369. + test $ac_status = 0; } &&
  35370. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  35371. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35372. + *) ac_try_echo=$ac_try;;
  35373. +esac
  35374. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  35375. +$as_echo "$ac_try_echo"; } >&5
  35376. + (eval "$ac_try") 2>&5
  35377. ac_status=$?
  35378. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35379. - (exit $ac_status); }
  35380. - then
  35381. - archive_cmds_need_lc_F77=no
  35382. - else
  35383. - archive_cmds_need_lc_F77=yes
  35384. - fi
  35385. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  35386. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35387. + test $ac_status = 0; };
  35388. +then
  35389. + eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  35390. + if test "x$CC" != xcc; then
  35391. + # Test first that cc exists at all.
  35392. + if { ac_try='cc -c conftest.$ac_ext >&5'
  35393. + { { case "(($ac_try" in
  35394. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35395. + *) ac_try_echo=$ac_try;;
  35396. +esac
  35397. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  35398. +$as_echo "$ac_try_echo"; } >&5
  35399. + (eval "$ac_try") 2>&5
  35400. + ac_status=$?
  35401. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35402. + test $ac_status = 0; }; }; then
  35403. + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  35404. + rm -f conftest2.*
  35405. + if { { case "(($ac_try" in
  35406. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35407. + *) ac_try_echo=$ac_try;;
  35408. +esac
  35409. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  35410. +$as_echo "$ac_try_echo"; } >&5
  35411. + (eval "$ac_try") 2>&5
  35412. + ac_status=$?
  35413. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35414. + test $ac_status = 0; } &&
  35415. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  35416. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35417. + *) ac_try_echo=$ac_try;;
  35418. +esac
  35419. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  35420. +$as_echo "$ac_try_echo"; } >&5
  35421. + (eval "$ac_try") 2>&5
  35422. + ac_status=$?
  35423. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35424. + test $ac_status = 0; };
  35425. + then
  35426. + # cc works too.
  35427. + :
  35428. else
  35429. - cat conftest.err 1>&5
  35430. + # cc exists but doesn't like -o.
  35431. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  35432. fi
  35433. - $rm conftest*
  35434. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  35435. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  35436. - ;;
  35437. - esac
  35438. + fi
  35439. fi
  35440. - ;;
  35441. -esac
  35442. +else
  35443. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  35444. +fi
  35445. +rm -f core conftest*
  35446. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35447. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  35448. -library_names_spec=
  35449. -libname_spec='lib$name'
  35450. -soname_spec=
  35451. -shrext_cmds=".so"
  35452. -postinstall_cmds=
  35453. -postuninstall_cmds=
  35454. -finish_cmds=
  35455. -finish_eval=
  35456. -shlibpath_var=
  35457. -shlibpath_overrides_runpath=unknown
  35458. -version_type=none
  35459. -dynamic_linker="$host_os ld.so"
  35460. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35461. -if test "$GCC" = yes; then
  35462. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35463. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  35464. - # if the path contains ";" then we assume it to be the separator
  35465. - # otherwise default to the standard path separator (i.e. ":") - it is
  35466. - # assumed that no part of a normal pathname contains ";" but that should
  35467. - # okay in the real world where ";" in dirpaths is itself problematic.
  35468. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35469. - else
  35470. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35471. - fi
  35472. +fi
  35473. +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  35474. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35475. +$as_echo "yes" >&6; }
  35476. else
  35477. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35478. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35479. +$as_echo "no" >&6; }
  35480. +
  35481. +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  35482. +
  35483. fi
  35484. -need_lib_prefix=unknown
  35485. -hardcode_into_libs=no
  35486. -# when you set need_version to no, make sure it does not cause -set_version
  35487. -# flags to be left without arguments
  35488. -need_version=unknown
  35489. +# FIXME: we rely on the cache variable name because
  35490. +# there is no other way.
  35491. +set dummy $CC
  35492. +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  35493. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  35494. +if test "$am_t" != yes; then
  35495. + # Losing compiler, so override with the script.
  35496. + # FIXME: It is wrong to rewrite CC.
  35497. + # But if we don't then we get into trouble of one sort or another.
  35498. + # A longer-term fix would be to have automake use am__CC in this case,
  35499. + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  35500. + CC="$am_aux_dir/compile $CC"
  35501. +fi
  35502. -case $host_os in
  35503. -aix3*)
  35504. - version_type=linux
  35505. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35506. - shlibpath_var=LIBPATH
  35507. - # AIX 3 has no versioning support, so we append a major version to the name.
  35508. - soname_spec='${libname}${release}${shared_ext}$major'
  35509. - ;;
  35510. +ac_ext=c
  35511. +ac_cpp='$CPP $CPPFLAGS'
  35512. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35513. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35514. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  35516. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  35517. +# On Suns, sometimes $CPP names a directory.
  35518. +if test -n "$CPP" && test -d "$CPP"; then
  35519. + CPP=
  35520. +fi
  35521. +if test -z "$CPP"; then
  35522. + if test "${ac_cv_prog_CPP+set}" = set; then :
  35523. + $as_echo_n "(cached) " >&6
  35524. +else
  35525. + # Double quotes because CPP needs to be expanded
  35526. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  35527. + do
  35528. + ac_preproc_ok=false
  35529. +for ac_c_preproc_warn_flag in '' yes
  35530. +do
  35531. + # Use a header file that comes with gcc, so configuring glibc
  35532. + # with a fresh cross-compiler works.
  35533. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35534. + # <limits.h> exists even on freestanding compilers.
  35535. + # On the NeXT, cc -E runs the code through the compiler's parser,
  35536. + # not just through cpp. "Syntax error" is here to catch this case.
  35537. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35538. +/* end confdefs.h. */
  35539. +#ifdef __STDC__
  35540. +# include <limits.h>
  35541. +#else
  35542. +# include <assert.h>
  35543. +#endif
  35544. + Syntax error
  35545. +_ACEOF
  35546. +if ac_fn_c_try_cpp "$LINENO"; then :
  35547. -aix4* | aix5*)
  35548. - version_type=linux
  35549. - need_lib_prefix=no
  35550. - need_version=no
  35551. - hardcode_into_libs=yes
  35552. - if test "$host_cpu" = ia64; then
  35553. - # AIX 5 supports IA64
  35554. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35555. - shlibpath_var=LD_LIBRARY_PATH
  35556. - else
  35557. - # With GCC up to 2.95.x, collect2 would create an import file
  35558. - # for dependence libraries. The import file would start with
  35559. - # the line `#! .'. This would cause the generated library to
  35560. - # depend on `.', always an invalid library. This was fixed in
  35561. - # development snapshots of GCC prior to 3.0.
  35562. - case $host_os in
  35563. - aix4 | aix4.[01] | aix4.[01].*)
  35564. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35565. - echo ' yes '
  35566. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35567. - :
  35568. - else
  35569. - can_build_shared=no
  35570. - fi
  35571. - ;;
  35572. - esac
  35573. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35574. - # soname into executable. Probably we can add versioning support to
  35575. - # collect2, so additional links can be useful in future.
  35576. - if test "$aix_use_runtimelinking" = yes; then
  35577. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35578. - # instead of lib<name>.a to let people know that these are not
  35579. - # typical AIX shared libraries.
  35580. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35581. - else
  35582. - # We preserve .a as extension for shared libraries through AIX4.2
  35583. - # and later when we are not doing run time linking.
  35584. - library_names_spec='${libname}${release}.a $libname.a'
  35585. - soname_spec='${libname}${release}${shared_ext}$major'
  35586. - fi
  35587. - shlibpath_var=LIBPATH
  35588. - fi
  35589. - ;;
  35590. +else
  35591. + # Broken: fails on valid input.
  35592. +continue
  35593. +fi
  35594. +rm -f conftest.err conftest.$ac_ext
  35595. -amigaos*)
  35596. - library_names_spec='$libname.ixlibrary $libname.a'
  35597. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35598. - 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'
  35599. - ;;
  35600. + # OK, works on sane cases. Now check whether nonexistent headers
  35601. + # can be detected and how.
  35602. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35603. +/* end confdefs.h. */
  35604. +#include <ac_nonexistent.h>
  35605. +_ACEOF
  35606. +if ac_fn_c_try_cpp "$LINENO"; then :
  35607. + # Broken: success on invalid input.
  35608. +continue
  35609. +else
  35610. + # Passes both tests.
  35611. +ac_preproc_ok=:
  35612. +break
  35613. +fi
  35614. +rm -f conftest.err conftest.$ac_ext
  35615. -beos*)
  35616. - library_names_spec='${libname}${shared_ext}'
  35617. - dynamic_linker="$host_os ld.so"
  35618. - shlibpath_var=LIBRARY_PATH
  35619. - ;;
  35620. +done
  35621. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  35622. +rm -f conftest.err conftest.$ac_ext
  35623. +if $ac_preproc_ok; then :
  35624. + break
  35625. +fi
  35626. -bsdi[45]*)
  35627. - version_type=linux
  35628. - need_version=no
  35629. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35630. - soname_spec='${libname}${release}${shared_ext}$major'
  35631. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  35632. - shlibpath_var=LD_LIBRARY_PATH
  35633. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  35634. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  35635. - # the default ld.so.conf also contains /usr/contrib/lib and
  35636. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  35637. - # libtool to hard-code these into programs
  35638. - ;;
  35639. + done
  35640. + ac_cv_prog_CPP=$CPP
  35641. -cygwin* | mingw* | pw32*)
  35642. - version_type=windows
  35643. - shrext_cmds=".dll"
  35644. - need_version=no
  35645. - need_lib_prefix=no
  35646. +fi
  35647. + CPP=$ac_cv_prog_CPP
  35648. +else
  35649. + ac_cv_prog_CPP=$CPP
  35650. +fi
  35651. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  35652. +$as_echo "$CPP" >&6; }
  35653. +ac_preproc_ok=false
  35654. +for ac_c_preproc_warn_flag in '' yes
  35655. +do
  35656. + # Use a header file that comes with gcc, so configuring glibc
  35657. + # with a fresh cross-compiler works.
  35658. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35659. + # <limits.h> exists even on freestanding compilers.
  35660. + # On the NeXT, cc -E runs the code through the compiler's parser,
  35661. + # not just through cpp. "Syntax error" is here to catch this case.
  35662. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35663. +/* end confdefs.h. */
  35664. +#ifdef __STDC__
  35665. +# include <limits.h>
  35666. +#else
  35667. +# include <assert.h>
  35668. +#endif
  35669. + Syntax error
  35670. +_ACEOF
  35671. +if ac_fn_c_try_cpp "$LINENO"; then :
  35672. - case $GCC,$host_os in
  35673. - yes,cygwin* | yes,mingw* | yes,pw32*)
  35674. - library_names_spec='$libname.dll.a'
  35675. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35676. - postinstall_cmds='base_file=`basename \${file}`~
  35677. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  35678. - dldir=$destdir/`dirname \$dlpath`~
  35679. - test -d \$dldir || mkdir -p \$dldir~
  35680. - $install_prog $dir/$dlname \$dldir/$dlname~
  35681. - chmod a+x \$dldir/$dlname'
  35682. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35683. - dlpath=$dir/\$dldll~
  35684. - $rm \$dlpath'
  35685. - shlibpath_overrides_runpath=yes
  35686. +else
  35687. + # Broken: fails on valid input.
  35688. +continue
  35689. +fi
  35690. +rm -f conftest.err conftest.$ac_ext
  35691. - case $host_os in
  35692. - cygwin*)
  35693. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  35694. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35695. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  35696. - ;;
  35697. - mingw*)
  35698. - # MinGW DLLs use traditional 'lib' prefix
  35699. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35700. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35701. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  35702. - # It is most probably a Windows format PATH printed by
  35703. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  35704. - # path with ; separators, and with drive letters. We can handle the
  35705. - # drive letters (cygwin fileutils understands them), so leave them,
  35706. - # especially as we might pass files found there to a mingw objdump,
  35707. - # which wouldn't understand a cygwinified path. Ahh.
  35708. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35709. - else
  35710. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35711. - fi
  35712. - ;;
  35713. - pw32*)
  35714. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  35715. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35716. - ;;
  35717. - esac
  35718. - ;;
  35719. + # OK, works on sane cases. Now check whether nonexistent headers
  35720. + # can be detected and how.
  35721. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35722. +/* end confdefs.h. */
  35723. +#include <ac_nonexistent.h>
  35724. +_ACEOF
  35725. +if ac_fn_c_try_cpp "$LINENO"; then :
  35726. + # Broken: success on invalid input.
  35727. +continue
  35728. +else
  35729. + # Passes both tests.
  35730. +ac_preproc_ok=:
  35731. +break
  35732. +fi
  35733. +rm -f conftest.err conftest.$ac_ext
  35734. - *)
  35735. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  35736. - ;;
  35737. - esac
  35738. - dynamic_linker='Win32 ld.exe'
  35739. - # FIXME: first we should search . and the directory the executable is in
  35740. - shlibpath_var=PATH
  35741. - ;;
  35742. +done
  35743. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  35744. +rm -f conftest.err conftest.$ac_ext
  35745. +if $ac_preproc_ok; then :
  35746. -darwin* | rhapsody*)
  35747. - dynamic_linker="$host_os dyld"
  35748. - version_type=darwin
  35749. - need_lib_prefix=no
  35750. - need_version=no
  35751. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35752. - soname_spec='${libname}${release}${major}$shared_ext'
  35753. - shlibpath_overrides_runpath=yes
  35754. - shlibpath_var=DYLD_LIBRARY_PATH
  35755. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  35756. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  35757. - if test "$GCC" = yes; then
  35758. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  35759. - else
  35760. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  35761. - fi
  35762. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  35763. - ;;
  35764. +else
  35765. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35766. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  35767. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  35768. +See \`config.log' for more details." "$LINENO" 5; }
  35769. +fi
  35770. -dgux*)
  35771. - version_type=linux
  35772. - need_lib_prefix=no
  35773. - need_version=no
  35774. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  35775. - soname_spec='${libname}${release}${shared_ext}$major'
  35776. - shlibpath_var=LD_LIBRARY_PATH
  35777. - ;;
  35778. -
  35779. -freebsd1*)
  35780. - dynamic_linker=no
  35781. - ;;
  35782. +ac_ext=c
  35783. +ac_cpp='$CPP $CPPFLAGS'
  35784. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35785. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35786. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35787. -freebsd* | dragonfly*)
  35788. - # DragonFly does not have aout. When/if they implement a new
  35789. - # versioning mechanism, adjust this.
  35790. - if test -x /usr/bin/objformat; then
  35791. - objformat=`/usr/bin/objformat`
  35792. +ac_ext=cpp
  35793. +ac_cpp='$CXXCPP $CPPFLAGS'
  35794. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35795. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35796. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35797. +if test -z "$CXX"; then
  35798. + if test -n "$CCC"; then
  35799. + CXX=$CCC
  35800. else
  35801. - case $host_os in
  35802. - freebsd[123]*) objformat=aout ;;
  35803. - *) objformat=elf ;;
  35804. - esac
  35805. + if test -n "$ac_tool_prefix"; then
  35806. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  35807. + do
  35808. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  35809. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  35810. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35811. +$as_echo_n "checking for $ac_word... " >&6; }
  35812. +if test "${ac_cv_prog_CXX+set}" = set; then :
  35813. + $as_echo_n "(cached) " >&6
  35814. +else
  35815. + if test -n "$CXX"; then
  35816. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  35817. +else
  35818. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35819. +for as_dir in $PATH
  35820. +do
  35821. + IFS=$as_save_IFS
  35822. + test -z "$as_dir" && as_dir=.
  35823. + for ac_exec_ext in '' $ac_executable_extensions; do
  35824. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35825. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  35826. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35827. + break 2
  35828. fi
  35829. - version_type=freebsd-$objformat
  35830. - case $version_type in
  35831. - freebsd-elf*)
  35832. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35833. - need_version=no
  35834. - need_lib_prefix=no
  35835. - ;;
  35836. - freebsd-*)
  35837. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  35838. - need_version=yes
  35839. - ;;
  35840. - esac
  35841. - shlibpath_var=LD_LIBRARY_PATH
  35842. - case $host_os in
  35843. - freebsd2*)
  35844. - shlibpath_overrides_runpath=yes
  35845. - ;;
  35846. - freebsd3.[01]* | freebsdelf3.[01]*)
  35847. - shlibpath_overrides_runpath=yes
  35848. - hardcode_into_libs=yes
  35849. - ;;
  35850. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  35851. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  35852. - shlibpath_overrides_runpath=no
  35853. - hardcode_into_libs=yes
  35854. - ;;
  35855. - freebsd*) # from 4.6 on
  35856. - shlibpath_overrides_runpath=yes
  35857. - hardcode_into_libs=yes
  35858. - ;;
  35859. - esac
  35860. - ;;
  35861. +done
  35862. + done
  35863. +IFS=$as_save_IFS
  35864. -gnu*)
  35865. - version_type=linux
  35866. - need_lib_prefix=no
  35867. - need_version=no
  35868. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  35869. - soname_spec='${libname}${release}${shared_ext}$major'
  35870. - shlibpath_var=LD_LIBRARY_PATH
  35871. - hardcode_into_libs=yes
  35872. - ;;
  35873. +fi
  35874. +fi
  35875. +CXX=$ac_cv_prog_CXX
  35876. +if test -n "$CXX"; then
  35877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  35878. +$as_echo "$CXX" >&6; }
  35879. +else
  35880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35881. +$as_echo "no" >&6; }
  35882. +fi
  35883. -hpux9* | hpux10* | hpux11*)
  35884. - # Give a soname corresponding to the major version so that dld.sl refuses to
  35885. - # link against other versions.
  35886. - version_type=sunos
  35887. - need_lib_prefix=no
  35888. - need_version=no
  35889. - case $host_cpu in
  35890. - ia64*)
  35891. - shrext_cmds='.so'
  35892. - hardcode_into_libs=yes
  35893. - dynamic_linker="$host_os dld.so"
  35894. - shlibpath_var=LD_LIBRARY_PATH
  35895. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35896. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35897. - soname_spec='${libname}${release}${shared_ext}$major'
  35898. - if test "X$HPUX_IA64_MODE" = X32; then
  35899. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  35900. - else
  35901. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  35902. - fi
  35903. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35904. - ;;
  35905. - hppa*64*)
  35906. - shrext_cmds='.sl'
  35907. - hardcode_into_libs=yes
  35908. - dynamic_linker="$host_os dld.sl"
  35909. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35910. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35912. - soname_spec='${libname}${release}${shared_ext}$major'
  35913. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35914. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35915. - ;;
  35916. - *)
  35917. - shrext_cmds='.sl'
  35918. - dynamic_linker="$host_os dld.sl"
  35919. - shlibpath_var=SHLIB_PATH
  35920. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  35921. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35922. - soname_spec='${libname}${release}${shared_ext}$major'
  35923. - ;;
  35924. - esac
  35925. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  35926. - postinstall_cmds='chmod 555 $lib'
  35927. - ;;
  35928. -interix3*)
  35929. - version_type=linux
  35930. - need_lib_prefix=no
  35931. - need_version=no
  35932. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35933. - soname_spec='${libname}${release}${shared_ext}$major'
  35934. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  35935. - shlibpath_var=LD_LIBRARY_PATH
  35936. - shlibpath_overrides_runpath=no
  35937. - hardcode_into_libs=yes
  35938. - ;;
  35939. + test -n "$CXX" && break
  35940. + done
  35941. +fi
  35942. +if test -z "$CXX"; then
  35943. + ac_ct_CXX=$CXX
  35944. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  35945. +do
  35946. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  35947. +set dummy $ac_prog; ac_word=$2
  35948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35949. +$as_echo_n "checking for $ac_word... " >&6; }
  35950. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  35951. + $as_echo_n "(cached) " >&6
  35952. +else
  35953. + if test -n "$ac_ct_CXX"; then
  35954. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  35955. +else
  35956. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35957. +for as_dir in $PATH
  35958. +do
  35959. + IFS=$as_save_IFS
  35960. + test -z "$as_dir" && as_dir=.
  35961. + for ac_exec_ext in '' $ac_executable_extensions; do
  35962. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35963. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  35964. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35965. + break 2
  35966. + fi
  35967. +done
  35968. + done
  35969. +IFS=$as_save_IFS
  35970. -irix5* | irix6* | nonstopux*)
  35971. - case $host_os in
  35972. - nonstopux*) version_type=nonstopux ;;
  35973. - *)
  35974. - if test "$lt_cv_prog_gnu_ld" = yes; then
  35975. - version_type=linux
  35976. - else
  35977. - version_type=irix
  35978. - fi ;;
  35979. - esac
  35980. - need_lib_prefix=no
  35981. - need_version=no
  35982. - soname_spec='${libname}${release}${shared_ext}$major'
  35983. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  35984. - case $host_os in
  35985. - irix5* | nonstopux*)
  35986. - libsuff= shlibsuff=
  35987. - ;;
  35988. - *)
  35989. - case $LD in # libtool.m4 will add one of these switches to LD
  35990. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  35991. - libsuff= shlibsuff= libmagic=32-bit;;
  35992. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  35993. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  35994. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  35995. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  35996. - *) libsuff= shlibsuff= libmagic=never-match;;
  35997. - esac
  35998. - ;;
  35999. - esac
  36000. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36001. - shlibpath_overrides_runpath=no
  36002. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36003. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36004. - hardcode_into_libs=yes
  36005. - ;;
  36006. +fi
  36007. +fi
  36008. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  36009. +if test -n "$ac_ct_CXX"; then
  36010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  36011. +$as_echo "$ac_ct_CXX" >&6; }
  36012. +else
  36013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36014. +$as_echo "no" >&6; }
  36015. +fi
  36016. -# No shared lib support for Linux oldld, aout, or coff.
  36017. -linux*oldld* | linux*aout* | linux*coff*)
  36018. - dynamic_linker=no
  36019. - ;;
  36020. -# This must be Linux ELF.
  36021. -linux* | k*bsd*-gnu)
  36022. - version_type=linux
  36023. - need_lib_prefix=no
  36024. - need_version=no
  36025. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36026. - soname_spec='${libname}${release}${shared_ext}$major'
  36027. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36028. - shlibpath_var=LD_LIBRARY_PATH
  36029. - shlibpath_overrides_runpath=no
  36030. - # This implies no fast_install, which is unacceptable.
  36031. - # Some rework will be needed to allow for fast_install
  36032. - # before this can be enabled.
  36033. - hardcode_into_libs=yes
  36034. + test -n "$ac_ct_CXX" && break
  36035. +done
  36036. - # Append ld.so.conf contents to the search path
  36037. - if test -f /etc/ld.so.conf; then
  36038. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  36039. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36040. + if test "x$ac_ct_CXX" = x; then
  36041. + CXX="g++"
  36042. + else
  36043. + case $cross_compiling:$ac_tool_warned in
  36044. +yes:)
  36045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36046. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36047. +ac_tool_warned=yes ;;
  36048. +esac
  36049. + CXX=$ac_ct_CXX
  36050. fi
  36051. +fi
  36052. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36053. - # powerpc, because MkLinux only supported shared libraries with the
  36054. - # GNU dynamic linker. Since this was broken with cross compilers,
  36055. - # most powerpc-linux boxes support dynamic linking these days and
  36056. - # people can always --disable-shared, the test was removed, and we
  36057. - # assume the GNU/Linux dynamic linker is in use.
  36058. - dynamic_linker='GNU/Linux ld.so'
  36059. - ;;
  36060. -
  36061. -netbsdelf*-gnu)
  36062. - version_type=linux
  36063. - need_lib_prefix=no
  36064. - need_version=no
  36065. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36066. - soname_spec='${libname}${release}${shared_ext}$major'
  36067. - shlibpath_var=LD_LIBRARY_PATH
  36068. - shlibpath_overrides_runpath=no
  36069. - hardcode_into_libs=yes
  36070. - dynamic_linker='NetBSD ld.elf_so'
  36071. - ;;
  36072. -
  36073. -netbsd*)
  36074. - version_type=sunos
  36075. - need_lib_prefix=no
  36076. - need_version=no
  36077. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36078. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36079. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36080. - dynamic_linker='NetBSD (a.out) ld.so'
  36081. - else
  36082. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36083. - soname_spec='${libname}${release}${shared_ext}$major'
  36084. - dynamic_linker='NetBSD ld.elf_so'
  36085. - fi
  36086. - shlibpath_var=LD_LIBRARY_PATH
  36087. - shlibpath_overrides_runpath=yes
  36088. - hardcode_into_libs=yes
  36089. - ;;
  36090. -
  36091. -newsos6)
  36092. - version_type=linux
  36093. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36094. - shlibpath_var=LD_LIBRARY_PATH
  36095. - shlibpath_overrides_runpath=yes
  36096. - ;;
  36097. -
  36098. -nto-qnx*)
  36099. - version_type=linux
  36100. - need_lib_prefix=no
  36101. - need_version=no
  36102. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36103. - soname_spec='${libname}${release}${shared_ext}$major'
  36104. - shlibpath_var=LD_LIBRARY_PATH
  36105. - shlibpath_overrides_runpath=yes
  36106. - ;;
  36107. -
  36108. -openbsd*)
  36109. - version_type=sunos
  36110. - sys_lib_dlsearch_path_spec="/usr/lib"
  36111. - need_lib_prefix=no
  36112. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36113. - case $host_os in
  36114. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36115. - *) need_version=no ;;
  36116. - esac
  36117. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36118. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36119. - shlibpath_var=LD_LIBRARY_PATH
  36120. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36121. - case $host_os in
  36122. - openbsd2.[89] | openbsd2.[89].*)
  36123. - shlibpath_overrides_runpath=no
  36124. - ;;
  36125. - *)
  36126. - shlibpath_overrides_runpath=yes
  36127. - ;;
  36128. - esac
  36129. - else
  36130. - shlibpath_overrides_runpath=yes
  36131. - fi
  36132. - ;;
  36133. -
  36134. -os2*)
  36135. - libname_spec='$name'
  36136. - shrext_cmds=".dll"
  36137. - need_lib_prefix=no
  36138. - library_names_spec='$libname${shared_ext} $libname.a'
  36139. - dynamic_linker='OS/2 ld.exe'
  36140. - shlibpath_var=LIBPATH
  36141. - ;;
  36142. -
  36143. -osf3* | osf4* | osf5*)
  36144. - version_type=osf
  36145. - need_lib_prefix=no
  36146. - need_version=no
  36147. - soname_spec='${libname}${release}${shared_ext}$major'
  36148. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36149. - shlibpath_var=LD_LIBRARY_PATH
  36150. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36151. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36152. - ;;
  36153. -
  36154. -solaris*)
  36155. - version_type=linux
  36156. - need_lib_prefix=no
  36157. - need_version=no
  36158. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36159. - soname_spec='${libname}${release}${shared_ext}$major'
  36160. - shlibpath_var=LD_LIBRARY_PATH
  36161. - shlibpath_overrides_runpath=yes
  36162. - hardcode_into_libs=yes
  36163. - # ldd complains unless libraries are executable
  36164. - postinstall_cmds='chmod +x $lib'
  36165. - ;;
  36166. -
  36167. -sunos4*)
  36168. - version_type=sunos
  36169. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36170. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36171. - shlibpath_var=LD_LIBRARY_PATH
  36172. - shlibpath_overrides_runpath=yes
  36173. - if test "$with_gnu_ld" = yes; then
  36174. - need_lib_prefix=no
  36175. - fi
  36176. - need_version=yes
  36177. - ;;
  36178. -
  36179. -sysv4 | sysv4.3*)
  36180. - version_type=linux
  36181. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36182. - soname_spec='${libname}${release}${shared_ext}$major'
  36183. - shlibpath_var=LD_LIBRARY_PATH
  36184. - case $host_vendor in
  36185. - sni)
  36186. - shlibpath_overrides_runpath=no
  36187. - need_lib_prefix=no
  36188. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36189. - runpath_var=LD_RUN_PATH
  36190. - ;;
  36191. - siemens)
  36192. - need_lib_prefix=no
  36193. - ;;
  36194. - motorola)
  36195. - need_lib_prefix=no
  36196. - need_version=no
  36197. - shlibpath_overrides_runpath=no
  36198. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36199. - ;;
  36200. - esac
  36201. - ;;
  36202. -
  36203. -sysv4*MP*)
  36204. - if test -d /usr/nec ;then
  36205. - version_type=linux
  36206. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36207. - soname_spec='$libname${shared_ext}.$major'
  36208. - shlibpath_var=LD_LIBRARY_PATH
  36209. fi
  36210. - ;;
  36211. -
  36212. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36213. - version_type=freebsd-elf
  36214. - need_lib_prefix=no
  36215. - need_version=no
  36216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36217. - soname_spec='${libname}${release}${shared_ext}$major'
  36218. - shlibpath_var=LD_LIBRARY_PATH
  36219. - hardcode_into_libs=yes
  36220. - if test "$with_gnu_ld" = yes; then
  36221. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36222. - shlibpath_overrides_runpath=no
  36223. - else
  36224. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36225. - shlibpath_overrides_runpath=yes
  36226. - case $host_os in
  36227. - sco3.2v5*)
  36228. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36229. - ;;
  36230. - esac
  36231. +fi
  36232. +# Provide some information about the compiler.
  36233. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  36234. +set X $ac_compile
  36235. +ac_compiler=$2
  36236. +for ac_option in --version -v -V -qversion; do
  36237. + { { ac_try="$ac_compiler $ac_option >&5"
  36238. +case "(($ac_try" in
  36239. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36240. + *) ac_try_echo=$ac_try;;
  36241. +esac
  36242. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  36243. +$as_echo "$ac_try_echo"; } >&5
  36244. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  36245. + ac_status=$?
  36246. + if test -s conftest.err; then
  36247. + sed '10a\
  36248. +... rest of stderr output deleted ...
  36249. + 10q' conftest.err >conftest.er1
  36250. + cat conftest.er1 >&5
  36251. fi
  36252. - sys_lib_dlsearch_path_spec='/usr/lib'
  36253. - ;;
  36254. + rm -f conftest.er1 conftest.err
  36255. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36256. + test $ac_status = 0; }
  36257. +done
  36258. -uts4*)
  36259. - version_type=linux
  36260. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36261. - soname_spec='${libname}${release}${shared_ext}$major'
  36262. - shlibpath_var=LD_LIBRARY_PATH
  36263. - ;;
  36264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  36265. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  36266. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  36267. + $as_echo_n "(cached) " >&6
  36268. +else
  36269. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36270. +/* end confdefs.h. */
  36271. -*)
  36272. - dynamic_linker=no
  36273. - ;;
  36274. -esac
  36275. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36276. -echo "${ECHO_T}$dynamic_linker" >&6; }
  36277. -test "$dynamic_linker" = no && can_build_shared=no
  36278. +int
  36279. +main ()
  36280. +{
  36281. +#ifndef __GNUC__
  36282. + choke me
  36283. +#endif
  36284. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36285. -if test "$GCC" = yes; then
  36286. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36287. + ;
  36288. + return 0;
  36289. +}
  36290. +_ACEOF
  36291. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36292. + ac_compiler_gnu=yes
  36293. +else
  36294. + ac_compiler_gnu=no
  36295. fi
  36296. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36297. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  36298. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36299. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  36300. -hardcode_action_F77=
  36301. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  36302. - test -n "$runpath_var_F77" || \
  36303. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  36304. -
  36305. - # We can hardcode non-existant directories.
  36306. - if test "$hardcode_direct_F77" != no &&
  36307. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36308. - # have to relink, otherwise we might link with an installed library
  36309. - # when we should be linking with a yet-to-be-installed one
  36310. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  36311. - test "$hardcode_minus_L_F77" != no; then
  36312. - # Linking always hardcodes the temporary library directory.
  36313. - hardcode_action_F77=relink
  36314. - else
  36315. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36316. - hardcode_action_F77=immediate
  36317. - fi
  36318. +fi
  36319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  36320. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  36321. +if test $ac_compiler_gnu = yes; then
  36322. + GXX=yes
  36323. else
  36324. - # We cannot hardcode anything, or else we can only hardcode existing
  36325. - # directories.
  36326. - hardcode_action_F77=unsupported
  36327. + GXX=
  36328. fi
  36329. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  36330. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  36331. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  36332. +ac_save_CXXFLAGS=$CXXFLAGS
  36333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  36334. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  36335. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  36336. + $as_echo_n "(cached) " >&6
  36337. +else
  36338. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  36339. + ac_cxx_werror_flag=yes
  36340. + ac_cv_prog_cxx_g=no
  36341. + CXXFLAGS="-g"
  36342. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36343. +/* end confdefs.h. */
  36344. -if test "$hardcode_action_F77" = relink; then
  36345. - # Fast installation is not supported
  36346. - enable_fast_install=no
  36347. -elif test "$shlibpath_overrides_runpath" = yes ||
  36348. - test "$enable_shared" = no; then
  36349. - # Fast installation is not necessary
  36350. - enable_fast_install=needless
  36351. -fi
  36352. +int
  36353. +main ()
  36354. +{
  36355. + ;
  36356. + return 0;
  36357. +}
  36358. +_ACEOF
  36359. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36360. + ac_cv_prog_cxx_g=yes
  36361. +else
  36362. + CXXFLAGS=""
  36363. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36364. +/* end confdefs.h. */
  36365. -# The else clause should only fire when bootstrapping the
  36366. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36367. -# with your package, and you will get complaints that there are
  36368. -# no rules to generate ltmain.sh.
  36369. -if test -f "$ltmain"; then
  36370. - # See if we are running on zsh, and set the options which allow our commands through
  36371. - # without removal of \ escapes.
  36372. - if test -n "${ZSH_VERSION+set}" ; then
  36373. - setopt NO_GLOB_SUBST
  36374. - fi
  36375. - # Now quote all the things that may contain metacharacters while being
  36376. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36377. - # variables and quote the copies for generation of the libtool script.
  36378. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36379. - SED SHELL STRIP \
  36380. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36381. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36382. - deplibs_check_method reload_flag reload_cmds need_locks \
  36383. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36384. - lt_cv_sys_global_symbol_to_c_name_address \
  36385. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36386. - old_postinstall_cmds old_postuninstall_cmds \
  36387. - compiler_F77 \
  36388. - CC_F77 \
  36389. - LD_F77 \
  36390. - lt_prog_compiler_wl_F77 \
  36391. - lt_prog_compiler_pic_F77 \
  36392. - lt_prog_compiler_static_F77 \
  36393. - lt_prog_compiler_no_builtin_flag_F77 \
  36394. - export_dynamic_flag_spec_F77 \
  36395. - thread_safe_flag_spec_F77 \
  36396. - whole_archive_flag_spec_F77 \
  36397. - enable_shared_with_static_runtimes_F77 \
  36398. - old_archive_cmds_F77 \
  36399. - old_archive_from_new_cmds_F77 \
  36400. - predep_objects_F77 \
  36401. - postdep_objects_F77 \
  36402. - predeps_F77 \
  36403. - postdeps_F77 \
  36404. - compiler_lib_search_path_F77 \
  36405. - archive_cmds_F77 \
  36406. - archive_expsym_cmds_F77 \
  36407. - postinstall_cmds_F77 \
  36408. - postuninstall_cmds_F77 \
  36409. - old_archive_from_expsyms_cmds_F77 \
  36410. - allow_undefined_flag_F77 \
  36411. - no_undefined_flag_F77 \
  36412. - export_symbols_cmds_F77 \
  36413. - hardcode_libdir_flag_spec_F77 \
  36414. - hardcode_libdir_flag_spec_ld_F77 \
  36415. - hardcode_libdir_separator_F77 \
  36416. - hardcode_automatic_F77 \
  36417. - module_cmds_F77 \
  36418. - module_expsym_cmds_F77 \
  36419. - lt_cv_prog_compiler_c_o_F77 \
  36420. - exclude_expsyms_F77 \
  36421. - include_expsyms_F77; do
  36422. -
  36423. - case $var in
  36424. - old_archive_cmds_F77 | \
  36425. - old_archive_from_new_cmds_F77 | \
  36426. - archive_cmds_F77 | \
  36427. - archive_expsym_cmds_F77 | \
  36428. - module_cmds_F77 | \
  36429. - module_expsym_cmds_F77 | \
  36430. - old_archive_from_expsyms_cmds_F77 | \
  36431. - export_symbols_cmds_F77 | \
  36432. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36433. - postinstall_cmds | postuninstall_cmds | \
  36434. - old_postinstall_cmds | old_postuninstall_cmds | \
  36435. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36436. - # Double-quote double-evaled strings.
  36437. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36438. - ;;
  36439. - *)
  36440. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36441. - ;;
  36442. - esac
  36443. - done
  36444. +int
  36445. +main ()
  36446. +{
  36447. - case $lt_echo in
  36448. - *'\$0 --fallback-echo"')
  36449. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36450. - ;;
  36451. - esac
  36452. + ;
  36453. + return 0;
  36454. +}
  36455. +_ACEOF
  36456. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36457. -cfgfile="$ofile"
  36458. +else
  36459. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  36460. + CXXFLAGS="-g"
  36461. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36462. +/* end confdefs.h. */
  36463. - cat <<__EOF__ >> "$cfgfile"
  36464. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36465. +int
  36466. +main ()
  36467. +{
  36468. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36469. -
  36470. -# Shell to use when invoking shell scripts.
  36471. -SHELL=$lt_SHELL
  36472. -
  36473. -# Whether or not to build shared libraries.
  36474. -build_libtool_libs=$enable_shared
  36475. + ;
  36476. + return 0;
  36477. +}
  36478. +_ACEOF
  36479. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36480. + ac_cv_prog_cxx_g=yes
  36481. +fi
  36482. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36483. +fi
  36484. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36485. +fi
  36486. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36487. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  36488. +fi
  36489. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  36490. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  36491. +if test "$ac_test_CXXFLAGS" = set; then
  36492. + CXXFLAGS=$ac_save_CXXFLAGS
  36493. +elif test $ac_cv_prog_cxx_g = yes; then
  36494. + if test "$GXX" = yes; then
  36495. + CXXFLAGS="-g -O2"
  36496. + else
  36497. + CXXFLAGS="-g"
  36498. + fi
  36499. +else
  36500. + if test "$GXX" = yes; then
  36501. + CXXFLAGS="-O2"
  36502. + else
  36503. + CXXFLAGS=
  36504. + fi
  36505. +fi
  36506. +ac_ext=c
  36507. +ac_cpp='$CPP $CPPFLAGS'
  36508. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36509. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36510. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36511. -# Whether or not to build static libraries.
  36512. -build_old_libs=$enable_static
  36513. +depcc="$CXX" am_compiler_list=
  36514. -# Whether or not to add -lc for building shared libraries.
  36515. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  36516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  36517. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  36518. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  36519. + $as_echo_n "(cached) " >&6
  36520. +else
  36521. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  36522. + # We make a subdir and do the tests there. Otherwise we can end up
  36523. + # making bogus files that we don't know about and never remove. For
  36524. + # instance it was reported that on HP-UX the gcc test will end up
  36525. + # making a dummy file named `D' -- because `-MD' means `put the output
  36526. + # in D'.
  36527. + mkdir conftest.dir
  36528. + # Copy depcomp to subdir because otherwise we won't find it if we're
  36529. + # using a relative directory.
  36530. + cp "$am_depcomp" conftest.dir
  36531. + cd conftest.dir
  36532. + # We will build objects and dependencies in a subdirectory because
  36533. + # it helps to detect inapplicable dependency modes. For instance
  36534. + # both Tru64's cc and ICC support -MD to output dependencies as a
  36535. + # side effect of compilation, but ICC will put the dependencies in
  36536. + # the current directory while Tru64 will put them in the object
  36537. + # directory.
  36538. + mkdir sub
  36539. -# Whether or not to disallow shared libs when runtime libs are static
  36540. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  36541. + am_cv_CXX_dependencies_compiler_type=none
  36542. + if test "$am_compiler_list" = ""; then
  36543. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  36544. + fi
  36545. + am__universal=false
  36546. + case " $depcc " in #(
  36547. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  36548. + esac
  36549. -# Whether or not to optimize for fast installation.
  36550. -fast_install=$enable_fast_install
  36551. + for depmode in $am_compiler_list; do
  36552. + # Setup a source with many dependencies, because some compilers
  36553. + # like to wrap large dependency lists on column 80 (with \), and
  36554. + # we should not choose a depcomp mode which is confused by this.
  36555. + #
  36556. + # We need to recreate these files for each test, as the compiler may
  36557. + # overwrite some of them when testing with obscure command lines.
  36558. + # This happens at least with the AIX C compiler.
  36559. + : > sub/conftest.c
  36560. + for i in 1 2 3 4 5 6; do
  36561. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  36562. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  36563. + # Solaris 8's {/usr,}/bin/sh.
  36564. + touch sub/conftst$i.h
  36565. + done
  36566. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  36567. -# The host system.
  36568. -host_alias=$host_alias
  36569. -host=$host
  36570. -host_os=$host_os
  36571. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  36572. + # mode. It turns out that the SunPro C++ compiler does not properly
  36573. + # handle `-M -o', and we need to detect this. Also, some Intel
  36574. + # versions had trouble with output in subdirs
  36575. + am__obj=sub/conftest.${OBJEXT-o}
  36576. + am__minus_obj="-o $am__obj"
  36577. + case $depmode in
  36578. + gcc)
  36579. + # This depmode causes a compiler race in universal mode.
  36580. + test "$am__universal" = false || continue
  36581. + ;;
  36582. + nosideeffect)
  36583. + # after this tag, mechanisms are not by side-effect, so they'll
  36584. + # only be used when explicitly requested
  36585. + if test "x$enable_dependency_tracking" = xyes; then
  36586. + continue
  36587. + else
  36588. + break
  36589. + fi
  36590. + ;;
  36591. + msvisualcpp | msvcmsys)
  36592. + # This compiler won't grok `-c -o', but also, the minuso test has
  36593. + # not run yet. These depmodes are late enough in the game, and
  36594. + # so weak that their functioning should not be impacted.
  36595. + am__obj=conftest.${OBJEXT-o}
  36596. + am__minus_obj=
  36597. + ;;
  36598. + none) break ;;
  36599. + esac
  36600. + if depmode=$depmode \
  36601. + source=sub/conftest.c object=$am__obj \
  36602. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  36603. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  36604. + >/dev/null 2>conftest.err &&
  36605. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  36606. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  36607. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  36608. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  36609. + # icc doesn't choke on unknown options, it will just issue warnings
  36610. + # or remarks (even with -Werror). So we grep stderr for any message
  36611. + # that says an option was ignored or not supported.
  36612. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  36613. + # icc: Command line warning: ignoring option '-M'; no argument required
  36614. + # The diagnosis changed in icc 8.0:
  36615. + # icc: Command line remark: option '-MP' not supported
  36616. + if (grep 'ignoring option' conftest.err ||
  36617. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  36618. + am_cv_CXX_dependencies_compiler_type=$depmode
  36619. + break
  36620. + fi
  36621. + fi
  36622. + done
  36623. -# The build system.
  36624. -build_alias=$build_alias
  36625. -build=$build
  36626. -build_os=$build_os
  36627. + cd ..
  36628. + rm -rf conftest.dir
  36629. +else
  36630. + am_cv_CXX_dependencies_compiler_type=none
  36631. +fi
  36632. -# An echo program that does not interpret backslashes.
  36633. -echo=$lt_echo
  36634. +fi
  36635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  36636. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  36637. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  36638. -# The archiver.
  36639. -AR=$lt_AR
  36640. -AR_FLAGS=$lt_AR_FLAGS
  36641. + if
  36642. + test "x$enable_dependency_tracking" != xno \
  36643. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  36644. + am__fastdepCXX_TRUE=
  36645. + am__fastdepCXX_FALSE='#'
  36646. +else
  36647. + am__fastdepCXX_TRUE='#'
  36648. + am__fastdepCXX_FALSE=
  36649. +fi
  36650. -# A C compiler.
  36651. -LTCC=$lt_LTCC
  36652. -# LTCC compiler flags.
  36653. -LTCFLAGS=$lt_LTCFLAGS
  36654. -# A language-specific compiler.
  36655. -CC=$lt_compiler_F77
  36656. +ac_ext=cpp
  36657. +ac_cpp='$CXXCPP $CPPFLAGS'
  36658. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36659. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36660. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36661. +if test -z "$CXX"; then
  36662. + if test -n "$CCC"; then
  36663. + CXX=$CCC
  36664. + else
  36665. + if test -n "$ac_tool_prefix"; then
  36666. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  36667. + do
  36668. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  36669. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  36670. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36671. +$as_echo_n "checking for $ac_word... " >&6; }
  36672. +if test "${ac_cv_prog_CXX+set}" = set; then :
  36673. + $as_echo_n "(cached) " >&6
  36674. +else
  36675. + if test -n "$CXX"; then
  36676. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  36677. +else
  36678. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36679. +for as_dir in $PATH
  36680. +do
  36681. + IFS=$as_save_IFS
  36682. + test -z "$as_dir" && as_dir=.
  36683. + for ac_exec_ext in '' $ac_executable_extensions; do
  36684. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36685. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  36686. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36687. + break 2
  36688. + fi
  36689. +done
  36690. + done
  36691. +IFS=$as_save_IFS
  36692. -# Is the compiler the GNU C compiler?
  36693. -with_gcc=$GCC_F77
  36694. +fi
  36695. +fi
  36696. +CXX=$ac_cv_prog_CXX
  36697. +if test -n "$CXX"; then
  36698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  36699. +$as_echo "$CXX" >&6; }
  36700. +else
  36701. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36702. +$as_echo "no" >&6; }
  36703. +fi
  36704. -# An ERE matcher.
  36705. -EGREP=$lt_EGREP
  36706. -# The linker used to build libraries.
  36707. -LD=$lt_LD_F77
  36708. + test -n "$CXX" && break
  36709. + done
  36710. +fi
  36711. +if test -z "$CXX"; then
  36712. + ac_ct_CXX=$CXX
  36713. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  36714. +do
  36715. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  36716. +set dummy $ac_prog; ac_word=$2
  36717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36718. +$as_echo_n "checking for $ac_word... " >&6; }
  36719. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  36720. + $as_echo_n "(cached) " >&6
  36721. +else
  36722. + if test -n "$ac_ct_CXX"; then
  36723. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  36724. +else
  36725. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36726. +for as_dir in $PATH
  36727. +do
  36728. + IFS=$as_save_IFS
  36729. + test -z "$as_dir" && as_dir=.
  36730. + for ac_exec_ext in '' $ac_executable_extensions; do
  36731. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36732. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  36733. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36734. + break 2
  36735. + fi
  36736. +done
  36737. + done
  36738. +IFS=$as_save_IFS
  36739. -# Whether we need hard or soft links.
  36740. -LN_S=$lt_LN_S
  36741. +fi
  36742. +fi
  36743. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  36744. +if test -n "$ac_ct_CXX"; then
  36745. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  36746. +$as_echo "$ac_ct_CXX" >&6; }
  36747. +else
  36748. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36749. +$as_echo "no" >&6; }
  36750. +fi
  36751. -# A BSD-compatible nm program.
  36752. -NM=$lt_NM
  36753. -# A symbol stripping program
  36754. -STRIP=$lt_STRIP
  36755. + test -n "$ac_ct_CXX" && break
  36756. +done
  36757. -# Used to examine libraries when file_magic_cmd begins "file"
  36758. -MAGIC_CMD=$MAGIC_CMD
  36759. + if test "x$ac_ct_CXX" = x; then
  36760. + CXX="g++"
  36761. + else
  36762. + case $cross_compiling:$ac_tool_warned in
  36763. +yes:)
  36764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36765. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36766. +ac_tool_warned=yes ;;
  36767. +esac
  36768. + CXX=$ac_ct_CXX
  36769. + fi
  36770. +fi
  36771. -# Used on cygwin: DLL creation program.
  36772. -DLLTOOL="$DLLTOOL"
  36773. + fi
  36774. +fi
  36775. +# Provide some information about the compiler.
  36776. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  36777. +set X $ac_compile
  36778. +ac_compiler=$2
  36779. +for ac_option in --version -v -V -qversion; do
  36780. + { { ac_try="$ac_compiler $ac_option >&5"
  36781. +case "(($ac_try" in
  36782. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36783. + *) ac_try_echo=$ac_try;;
  36784. +esac
  36785. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  36786. +$as_echo "$ac_try_echo"; } >&5
  36787. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  36788. + ac_status=$?
  36789. + if test -s conftest.err; then
  36790. + sed '10a\
  36791. +... rest of stderr output deleted ...
  36792. + 10q' conftest.err >conftest.er1
  36793. + cat conftest.er1 >&5
  36794. + fi
  36795. + rm -f conftest.er1 conftest.err
  36796. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36797. + test $ac_status = 0; }
  36798. +done
  36799. -# Used on cygwin: object dumper.
  36800. -OBJDUMP="$OBJDUMP"
  36801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  36802. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  36803. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  36804. + $as_echo_n "(cached) " >&6
  36805. +else
  36806. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36807. +/* end confdefs.h. */
  36808. -# Used on cygwin: assembler.
  36809. -AS="$AS"
  36810. +int
  36811. +main ()
  36812. +{
  36813. +#ifndef __GNUC__
  36814. + choke me
  36815. +#endif
  36816. -# The name of the directory that contains temporary libtool files.
  36817. -objdir=$objdir
  36818. + ;
  36819. + return 0;
  36820. +}
  36821. +_ACEOF
  36822. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36823. + ac_compiler_gnu=yes
  36824. +else
  36825. + ac_compiler_gnu=no
  36826. +fi
  36827. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36828. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  36829. -# How to create reloadable object files.
  36830. -reload_flag=$lt_reload_flag
  36831. -reload_cmds=$lt_reload_cmds
  36832. +fi
  36833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  36834. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  36835. +if test $ac_compiler_gnu = yes; then
  36836. + GXX=yes
  36837. +else
  36838. + GXX=
  36839. +fi
  36840. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  36841. +ac_save_CXXFLAGS=$CXXFLAGS
  36842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  36843. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  36844. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  36845. + $as_echo_n "(cached) " >&6
  36846. +else
  36847. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  36848. + ac_cxx_werror_flag=yes
  36849. + ac_cv_prog_cxx_g=no
  36850. + CXXFLAGS="-g"
  36851. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36852. +/* end confdefs.h. */
  36853. -# How to pass a linker flag through the compiler.
  36854. -wl=$lt_lt_prog_compiler_wl_F77
  36855. +int
  36856. +main ()
  36857. +{
  36858. -# Object file suffix (normally "o").
  36859. -objext="$ac_objext"
  36860. + ;
  36861. + return 0;
  36862. +}
  36863. +_ACEOF
  36864. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36865. + ac_cv_prog_cxx_g=yes
  36866. +else
  36867. + CXXFLAGS=""
  36868. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36869. +/* end confdefs.h. */
  36870. -# Old archive suffix (normally "a").
  36871. -libext="$libext"
  36872. +int
  36873. +main ()
  36874. +{
  36875. -# Shared library suffix (normally ".so").
  36876. -shrext_cmds='$shrext_cmds'
  36877. + ;
  36878. + return 0;
  36879. +}
  36880. +_ACEOF
  36881. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36882. -# Executable file suffix (normally "").
  36883. -exeext="$exeext"
  36884. +else
  36885. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  36886. + CXXFLAGS="-g"
  36887. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36888. +/* end confdefs.h. */
  36889. -# Additional compiler flags for building library objects.
  36890. -pic_flag=$lt_lt_prog_compiler_pic_F77
  36891. -pic_mode=$pic_mode
  36892. +int
  36893. +main ()
  36894. +{
  36895. -# What is the maximum length of a command?
  36896. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36897. + ;
  36898. + return 0;
  36899. +}
  36900. +_ACEOF
  36901. +if ac_fn_cxx_try_compile "$LINENO"; then :
  36902. + ac_cv_prog_cxx_g=yes
  36903. +fi
  36904. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36905. +fi
  36906. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36907. +fi
  36908. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36909. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  36910. +fi
  36911. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  36912. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  36913. +if test "$ac_test_CXXFLAGS" = set; then
  36914. + CXXFLAGS=$ac_save_CXXFLAGS
  36915. +elif test $ac_cv_prog_cxx_g = yes; then
  36916. + if test "$GXX" = yes; then
  36917. + CXXFLAGS="-g -O2"
  36918. + else
  36919. + CXXFLAGS="-g"
  36920. + fi
  36921. +else
  36922. + if test "$GXX" = yes; then
  36923. + CXXFLAGS="-O2"
  36924. + else
  36925. + CXXFLAGS=
  36926. + fi
  36927. +fi
  36928. +ac_ext=c
  36929. +ac_cpp='$CPP $CPPFLAGS'
  36930. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36931. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36932. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36933. -# Does compiler simultaneously support -c and -o options?
  36934. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  36935. +depcc="$CXX" am_compiler_list=
  36936. -# Must we lock files when doing compilation?
  36937. -need_locks=$lt_need_locks
  36938. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  36939. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  36940. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  36941. + $as_echo_n "(cached) " >&6
  36942. +else
  36943. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  36944. + # We make a subdir and do the tests there. Otherwise we can end up
  36945. + # making bogus files that we don't know about and never remove. For
  36946. + # instance it was reported that on HP-UX the gcc test will end up
  36947. + # making a dummy file named `D' -- because `-MD' means `put the output
  36948. + # in D'.
  36949. + mkdir conftest.dir
  36950. + # Copy depcomp to subdir because otherwise we won't find it if we're
  36951. + # using a relative directory.
  36952. + cp "$am_depcomp" conftest.dir
  36953. + cd conftest.dir
  36954. + # We will build objects and dependencies in a subdirectory because
  36955. + # it helps to detect inapplicable dependency modes. For instance
  36956. + # both Tru64's cc and ICC support -MD to output dependencies as a
  36957. + # side effect of compilation, but ICC will put the dependencies in
  36958. + # the current directory while Tru64 will put them in the object
  36959. + # directory.
  36960. + mkdir sub
  36961. -# Do we need the lib prefix for modules?
  36962. -need_lib_prefix=$need_lib_prefix
  36963. + am_cv_CXX_dependencies_compiler_type=none
  36964. + if test "$am_compiler_list" = ""; then
  36965. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  36966. + fi
  36967. + am__universal=false
  36968. + case " $depcc " in #(
  36969. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  36970. + esac
  36971. -# Do we need a version for libraries?
  36972. -need_version=$need_version
  36973. + for depmode in $am_compiler_list; do
  36974. + # Setup a source with many dependencies, because some compilers
  36975. + # like to wrap large dependency lists on column 80 (with \), and
  36976. + # we should not choose a depcomp mode which is confused by this.
  36977. + #
  36978. + # We need to recreate these files for each test, as the compiler may
  36979. + # overwrite some of them when testing with obscure command lines.
  36980. + # This happens at least with the AIX C compiler.
  36981. + : > sub/conftest.c
  36982. + for i in 1 2 3 4 5 6; do
  36983. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  36984. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  36985. + # Solaris 8's {/usr,}/bin/sh.
  36986. + touch sub/conftst$i.h
  36987. + done
  36988. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  36989. -# Whether dlopen is supported.
  36990. -dlopen_support=$enable_dlopen
  36991. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  36992. + # mode. It turns out that the SunPro C++ compiler does not properly
  36993. + # handle `-M -o', and we need to detect this. Also, some Intel
  36994. + # versions had trouble with output in subdirs
  36995. + am__obj=sub/conftest.${OBJEXT-o}
  36996. + am__minus_obj="-o $am__obj"
  36997. + case $depmode in
  36998. + gcc)
  36999. + # This depmode causes a compiler race in universal mode.
  37000. + test "$am__universal" = false || continue
  37001. + ;;
  37002. + nosideeffect)
  37003. + # after this tag, mechanisms are not by side-effect, so they'll
  37004. + # only be used when explicitly requested
  37005. + if test "x$enable_dependency_tracking" = xyes; then
  37006. + continue
  37007. + else
  37008. + break
  37009. + fi
  37010. + ;;
  37011. + msvisualcpp | msvcmsys)
  37012. + # This compiler won't grok `-c -o', but also, the minuso test has
  37013. + # not run yet. These depmodes are late enough in the game, and
  37014. + # so weak that their functioning should not be impacted.
  37015. + am__obj=conftest.${OBJEXT-o}
  37016. + am__minus_obj=
  37017. + ;;
  37018. + none) break ;;
  37019. + esac
  37020. + if depmode=$depmode \
  37021. + source=sub/conftest.c object=$am__obj \
  37022. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  37023. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  37024. + >/dev/null 2>conftest.err &&
  37025. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  37026. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  37027. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  37028. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  37029. + # icc doesn't choke on unknown options, it will just issue warnings
  37030. + # or remarks (even with -Werror). So we grep stderr for any message
  37031. + # that says an option was ignored or not supported.
  37032. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  37033. + # icc: Command line warning: ignoring option '-M'; no argument required
  37034. + # The diagnosis changed in icc 8.0:
  37035. + # icc: Command line remark: option '-MP' not supported
  37036. + if (grep 'ignoring option' conftest.err ||
  37037. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  37038. + am_cv_CXX_dependencies_compiler_type=$depmode
  37039. + break
  37040. + fi
  37041. + fi
  37042. + done
  37043. -# Whether dlopen of programs is supported.
  37044. -dlopen_self=$enable_dlopen_self
  37045. + cd ..
  37046. + rm -rf conftest.dir
  37047. +else
  37048. + am_cv_CXX_dependencies_compiler_type=none
  37049. +fi
  37050. -# Whether dlopen of statically linked programs is supported.
  37051. -dlopen_self_static=$enable_dlopen_self_static
  37052. +fi
  37053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  37054. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  37055. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  37056. -# Compiler flag to prevent dynamic linking.
  37057. -link_static_flag=$lt_lt_prog_compiler_static_F77
  37058. + if
  37059. + test "x$enable_dependency_tracking" != xno \
  37060. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  37061. + am__fastdepCXX_TRUE=
  37062. + am__fastdepCXX_FALSE='#'
  37063. +else
  37064. + am__fastdepCXX_TRUE='#'
  37065. + am__fastdepCXX_FALSE=
  37066. +fi
  37067. -# Compiler flag to turn off builtin functions.
  37068. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  37069. -# Compiler flag to allow reflexive dlopens.
  37070. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  37071. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  37072. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  37073. + (test "X$CXX" != "Xg++"))) ; then
  37074. + ac_ext=cpp
  37075. +ac_cpp='$CXXCPP $CPPFLAGS'
  37076. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37077. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37078. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  37080. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  37081. +if test -z "$CXXCPP"; then
  37082. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  37083. + $as_echo_n "(cached) " >&6
  37084. +else
  37085. + # Double quotes because CXXCPP needs to be expanded
  37086. + for CXXCPP in "$CXX -E" "/lib/cpp"
  37087. + do
  37088. + ac_preproc_ok=false
  37089. +for ac_cxx_preproc_warn_flag in '' yes
  37090. +do
  37091. + # Use a header file that comes with gcc, so configuring glibc
  37092. + # with a fresh cross-compiler works.
  37093. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37094. + # <limits.h> exists even on freestanding compilers.
  37095. + # On the NeXT, cc -E runs the code through the compiler's parser,
  37096. + # not just through cpp. "Syntax error" is here to catch this case.
  37097. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37098. +/* end confdefs.h. */
  37099. +#ifdef __STDC__
  37100. +# include <limits.h>
  37101. +#else
  37102. +# include <assert.h>
  37103. +#endif
  37104. + Syntax error
  37105. +_ACEOF
  37106. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  37107. -# Compiler flag to generate shared objects directly from archives.
  37108. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  37109. +else
  37110. + # Broken: fails on valid input.
  37111. +continue
  37112. +fi
  37113. +rm -f conftest.err conftest.$ac_ext
  37114. -# Compiler flag to generate thread-safe objects.
  37115. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  37116. + # OK, works on sane cases. Now check whether nonexistent headers
  37117. + # can be detected and how.
  37118. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37119. +/* end confdefs.h. */
  37120. +#include <ac_nonexistent.h>
  37121. +_ACEOF
  37122. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  37123. + # Broken: success on invalid input.
  37124. +continue
  37125. +else
  37126. + # Passes both tests.
  37127. +ac_preproc_ok=:
  37128. +break
  37129. +fi
  37130. +rm -f conftest.err conftest.$ac_ext
  37131. -# Library versioning type.
  37132. -version_type=$version_type
  37133. +done
  37134. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  37135. +rm -f conftest.err conftest.$ac_ext
  37136. +if $ac_preproc_ok; then :
  37137. + break
  37138. +fi
  37139. -# Format of library name prefix.
  37140. -libname_spec=$lt_libname_spec
  37141. + done
  37142. + ac_cv_prog_CXXCPP=$CXXCPP
  37143. -# List of archive names. First name is the real one, the rest are links.
  37144. -# The last name is the one that the linker finds with -lNAME.
  37145. -library_names_spec=$lt_library_names_spec
  37146. -
  37147. -# The coded name of the library, if different from the real name.
  37148. -soname_spec=$lt_soname_spec
  37149. -
  37150. -# Commands used to build and install an old-style archive.
  37151. -RANLIB=$lt_RANLIB
  37152. -old_archive_cmds=$lt_old_archive_cmds_F77
  37153. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37154. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37155. -
  37156. -# Create an old-style archive from a shared archive.
  37157. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  37158. -
  37159. -# Create a temporary old-style archive to link instead of a shared archive.
  37160. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  37161. -
  37162. -# Commands used to build and install a shared archive.
  37163. -archive_cmds=$lt_archive_cmds_F77
  37164. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  37165. -postinstall_cmds=$lt_postinstall_cmds
  37166. -postuninstall_cmds=$lt_postuninstall_cmds
  37167. -
  37168. -# Commands used to build a loadable module (assumed same as above if empty)
  37169. -module_cmds=$lt_module_cmds_F77
  37170. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  37171. -
  37172. -# Commands to strip libraries.
  37173. -old_striplib=$lt_old_striplib
  37174. -striplib=$lt_striplib
  37175. -
  37176. -# Dependencies to place before the objects being linked to create a
  37177. -# shared library.
  37178. -predep_objects=$lt_predep_objects_F77
  37179. -
  37180. -# Dependencies to place after the objects being linked to create a
  37181. -# shared library.
  37182. -postdep_objects=$lt_postdep_objects_F77
  37183. -
  37184. -# Dependencies to place before the objects being linked to create a
  37185. -# shared library.
  37186. -predeps=$lt_predeps_F77
  37187. -
  37188. -# Dependencies to place after the objects being linked to create a
  37189. -# shared library.
  37190. -postdeps=$lt_postdeps_F77
  37191. -
  37192. -# The library search path used internally by the compiler when linking
  37193. -# a shared library.
  37194. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  37195. -
  37196. -# Method to check whether dependent libraries are shared objects.
  37197. -deplibs_check_method=$lt_deplibs_check_method
  37198. -
  37199. -# Command to use when deplibs_check_method == file_magic.
  37200. -file_magic_cmd=$lt_file_magic_cmd
  37201. -
  37202. -# Flag that allows shared libraries with undefined symbols to be built.
  37203. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  37204. -
  37205. -# Flag that forces no undefined symbols.
  37206. -no_undefined_flag=$lt_no_undefined_flag_F77
  37207. -
  37208. -# Commands used to finish a libtool library installation in a directory.
  37209. -finish_cmds=$lt_finish_cmds
  37210. -
  37211. -# Same as above, but a single script fragment to be evaled but not shown.
  37212. -finish_eval=$lt_finish_eval
  37213. -
  37214. -# Take the output of nm and produce a listing of raw symbols and C names.
  37215. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37216. -
  37217. -# Transform the output of nm in a proper C declaration
  37218. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37219. -
  37220. -# Transform the output of nm in a C name address pair
  37221. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37222. -
  37223. -# This is the shared library runtime path variable.
  37224. -runpath_var=$runpath_var
  37225. -
  37226. -# This is the shared library path variable.
  37227. -shlibpath_var=$shlibpath_var
  37228. -
  37229. -# Is shlibpath searched before the hard-coded library search path?
  37230. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37231. -
  37232. -# How to hardcode a shared library path into an executable.
  37233. -hardcode_action=$hardcode_action_F77
  37234. -
  37235. -# Whether we should hardcode library paths into libraries.
  37236. -hardcode_into_libs=$hardcode_into_libs
  37237. -
  37238. -# Flag to hardcode \$libdir into a binary during linking.
  37239. -# This must work even if \$libdir does not exist.
  37240. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  37241. -
  37242. -# If ld is used when linking, flag to hardcode \$libdir into
  37243. -# a binary during linking. This must work even if \$libdir does
  37244. -# not exist.
  37245. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  37246. -
  37247. -# Whether we need a single -rpath flag with a separated argument.
  37248. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  37249. -
  37250. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37251. -# resulting binary.
  37252. -hardcode_direct=$hardcode_direct_F77
  37253. -
  37254. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37255. -# resulting binary.
  37256. -hardcode_minus_L=$hardcode_minus_L_F77
  37257. -
  37258. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37259. -# the resulting binary.
  37260. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  37261. -
  37262. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37263. -# and all subsequent libraries and executables linked against it.
  37264. -hardcode_automatic=$hardcode_automatic_F77
  37265. -
  37266. -# Variables whose values should be saved in libtool wrapper scripts and
  37267. -# restored at relink time.
  37268. -variables_saved_for_relink="$variables_saved_for_relink"
  37269. -
  37270. -# Whether libtool must link a program against all its dependency libraries.
  37271. -link_all_deplibs=$link_all_deplibs_F77
  37272. -
  37273. -# Compile-time system search path for libraries
  37274. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37275. -
  37276. -# Run-time system search path for libraries
  37277. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37278. -
  37279. -# Fix the shell variable \$srcfile for the compiler.
  37280. -fix_srcfile_path="$fix_srcfile_path_F77"
  37281. -
  37282. -# Set to yes if exported symbols are required.
  37283. -always_export_symbols=$always_export_symbols_F77
  37284. -
  37285. -# The commands to list exported symbols.
  37286. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  37287. -
  37288. -# The commands to extract the exported symbol list from a shared archive.
  37289. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37290. -
  37291. -# Symbols that should not be listed in the preloaded symbols.
  37292. -exclude_expsyms=$lt_exclude_expsyms_F77
  37293. -
  37294. -# Symbols that must always be exported.
  37295. -include_expsyms=$lt_include_expsyms_F77
  37296. +fi
  37297. + CXXCPP=$ac_cv_prog_CXXCPP
  37298. +else
  37299. + ac_cv_prog_CXXCPP=$CXXCPP
  37300. +fi
  37301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  37302. +$as_echo "$CXXCPP" >&6; }
  37303. +ac_preproc_ok=false
  37304. +for ac_cxx_preproc_warn_flag in '' yes
  37305. +do
  37306. + # Use a header file that comes with gcc, so configuring glibc
  37307. + # with a fresh cross-compiler works.
  37308. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37309. + # <limits.h> exists even on freestanding compilers.
  37310. + # On the NeXT, cc -E runs the code through the compiler's parser,
  37311. + # not just through cpp. "Syntax error" is here to catch this case.
  37312. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37313. +/* end confdefs.h. */
  37314. +#ifdef __STDC__
  37315. +# include <limits.h>
  37316. +#else
  37317. +# include <assert.h>
  37318. +#endif
  37319. + Syntax error
  37320. +_ACEOF
  37321. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  37322. -# ### END LIBTOOL TAG CONFIG: $tagname
  37323. +else
  37324. + # Broken: fails on valid input.
  37325. +continue
  37326. +fi
  37327. +rm -f conftest.err conftest.$ac_ext
  37328. -__EOF__
  37329. + # OK, works on sane cases. Now check whether nonexistent headers
  37330. + # can be detected and how.
  37331. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37332. +/* end confdefs.h. */
  37333. +#include <ac_nonexistent.h>
  37334. +_ACEOF
  37335. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  37336. + # Broken: success on invalid input.
  37337. +continue
  37338. +else
  37339. + # Passes both tests.
  37340. +ac_preproc_ok=:
  37341. +break
  37342. +fi
  37343. +rm -f conftest.err conftest.$ac_ext
  37344. +done
  37345. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  37346. +rm -f conftest.err conftest.$ac_ext
  37347. +if $ac_preproc_ok; then :
  37348. else
  37349. - # If there is no Makefile yet, we rely on a make rule to execute
  37350. - # `config.status --recheck' to rerun these tests and create the
  37351. - # libtool script then.
  37352. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37353. - if test -f "$ltmain_in"; then
  37354. - test -f Makefile && make "$ltmain"
  37355. - fi
  37356. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  37357. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  37358. +_lt_caught_CXX_error=yes; }
  37359. fi
  37360. -
  37361. ac_ext=c
  37362. ac_cpp='$CPP $CPPFLAGS'
  37363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37366. -CC="$lt_save_CC"
  37367. +else
  37368. + _lt_caught_CXX_error=yes
  37369. +fi
  37370. +
  37371. +
  37372. - else
  37373. - tagname=""
  37374. - fi
  37375. - ;;
  37376. - GCJ)
  37377. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  37378. +ac_ext=cpp
  37379. +ac_cpp='$CXXCPP $CPPFLAGS'
  37380. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37381. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37382. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37383. +archive_cmds_need_lc_CXX=no
  37384. +allow_undefined_flag_CXX=
  37385. +always_export_symbols_CXX=no
  37386. +archive_expsym_cmds_CXX=
  37387. +compiler_needs_object_CXX=no
  37388. +export_dynamic_flag_spec_CXX=
  37389. +hardcode_direct_CXX=no
  37390. +hardcode_direct_absolute_CXX=no
  37391. +hardcode_libdir_flag_spec_CXX=
  37392. +hardcode_libdir_flag_spec_ld_CXX=
  37393. +hardcode_libdir_separator_CXX=
  37394. +hardcode_minus_L_CXX=no
  37395. +hardcode_shlibpath_var_CXX=unsupported
  37396. +hardcode_automatic_CXX=no
  37397. +inherit_rpath_CXX=no
  37398. +module_cmds_CXX=
  37399. +module_expsym_cmds_CXX=
  37400. +link_all_deplibs_CXX=unknown
  37401. +old_archive_cmds_CXX=$old_archive_cmds
  37402. +no_undefined_flag_CXX=
  37403. +whole_archive_flag_spec_CXX=
  37404. +enable_shared_with_static_runtimes_CXX=no
  37405. -# Source file extension for Java test sources.
  37406. -ac_ext=java
  37407. +# Source file extension for C++ test sources.
  37408. +ac_ext=cpp
  37409. -# Object file extension for compiled Java test sources.
  37410. +# Object file extension for compiled C++ test sources.
  37411. objext=o
  37412. -objext_GCJ=$objext
  37413. +objext_CXX=$objext
  37414. +
  37415. +# No sense in running all these tests if we already determined that
  37416. +# the CXX compiler isn't working. Some variables (like enable_shared)
  37417. +# are currently assumed to apply to all compilers on this platform,
  37418. +# and will be corrupted by setting them based on a non-working compiler.
  37419. +if test "$_lt_caught_CXX_error" != yes; then
  37420. + # Code to be used in simple compile tests
  37421. + lt_simple_compile_test_code="int some_variable = 0;"
  37422. +
  37423. + # Code to be used in simple link tests
  37424. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  37425. +
  37426. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37427. +
  37428. +
  37429. -# Code to be used in simple compile tests
  37430. -lt_simple_compile_test_code="class foo {}\n"
  37431. -# Code to be used in simple link tests
  37432. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  37433. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37434. # If no C compiler was specified, use CC.
  37435. LTCC=${LTCC-"$CC"}
  37436. @@ -16008,26 +12506,42 @@
  37437. compiler=$CC
  37438. -# save warnings/boilerplate of simple test code
  37439. -ac_outfile=conftest.$ac_objext
  37440. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  37441. + # save warnings/boilerplate of simple test code
  37442. + ac_outfile=conftest.$ac_objext
  37443. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  37444. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37445. _lt_compiler_boilerplate=`cat conftest.err`
  37446. -$rm conftest*
  37447. +$RM conftest*
  37448. -ac_outfile=conftest.$ac_objext
  37449. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  37450. + ac_outfile=conftest.$ac_objext
  37451. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  37452. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37453. _lt_linker_boilerplate=`cat conftest.err`
  37454. -$rm conftest*
  37455. +$RM -r conftest*
  37456. -# Allow CC to be a program name with arguments.
  37457. -lt_save_CC="$CC"
  37458. -CC=${GCJ-"gcj"}
  37459. -compiler=$CC
  37460. -compiler_GCJ=$CC
  37461. -for cc_temp in $compiler""; do
  37462. + # Allow CC to be a program name with arguments.
  37463. + lt_save_CC=$CC
  37464. + lt_save_LD=$LD
  37465. + lt_save_GCC=$GCC
  37466. + GCC=$GXX
  37467. + lt_save_with_gnu_ld=$with_gnu_ld
  37468. + lt_save_path_LD=$lt_cv_path_LD
  37469. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  37470. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  37471. + else
  37472. + $as_unset lt_cv_prog_gnu_ld
  37473. + fi
  37474. + if test -n "${lt_cv_path_LDCXX+set}"; then
  37475. + lt_cv_path_LD=$lt_cv_path_LDCXX
  37476. + else
  37477. + $as_unset lt_cv_path_LD
  37478. + fi
  37479. + test -z "${LDCXX+set}" || LD=$LDCXX
  37480. + CC=${CXX-"c++"}
  37481. + compiler=$CC
  37482. + compiler_CXX=$CC
  37483. + for cc_temp in $compiler""; do
  37484. case $cc_temp in
  37485. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37486. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37487. @@ -16035,4773 +12549,2764 @@
  37488. *) break;;
  37489. esac
  37490. done
  37491. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37492. -
  37493. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37494. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  37495. -archive_cmds_need_lc_GCJ=no
  37496. -
  37497. -old_archive_cmds_GCJ=$old_archive_cmds
  37498. + if test -n "$compiler"; then
  37499. + # We don't want -fno-exception when compiling C++ code, so set the
  37500. + # no_builtin_flag separately
  37501. + if test "$GXX" = yes; then
  37502. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  37503. + else
  37504. + lt_prog_compiler_no_builtin_flag_CXX=
  37505. + fi
  37506. -lt_prog_compiler_no_builtin_flag_GCJ=
  37507. + if test "$GXX" = yes; then
  37508. + # Set up default GNU C++ configuration
  37509. -if test "$GCC" = yes; then
  37510. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  37511. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  37512. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  37513. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  37514. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37515. +# Check whether --with-gnu-ld was given.
  37516. +if test "${with_gnu_ld+set}" = set; then :
  37517. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  37518. else
  37519. - lt_cv_prog_compiler_rtti_exceptions=no
  37520. - ac_outfile=conftest.$ac_objext
  37521. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37522. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  37523. - # Insert the option either (1) after the last *FLAGS variable, or
  37524. - # (2) before a word containing "conftest.", or (3) at the end.
  37525. - # Note that $ac_compile itself does not contain backslashes and begins
  37526. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37527. - # The option is referenced via a variable to avoid confusing sed.
  37528. - lt_compile=`echo "$ac_compile" | $SED \
  37529. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37530. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37531. - -e 's:$: $lt_compiler_flag:'`
  37532. - (eval echo "\"\$as_me:16071: $lt_compile\"" >&5)
  37533. - (eval "$lt_compile" 2>conftest.err)
  37534. - ac_status=$?
  37535. - cat conftest.err >&5
  37536. - echo "$as_me:16075: \$? = $ac_status" >&5
  37537. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37538. - # The compiler can only warn and ignore the option if not recognized
  37539. - # So say no if there are warnings other than the usual output.
  37540. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  37541. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37542. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  37543. - lt_cv_prog_compiler_rtti_exceptions=yes
  37544. - fi
  37545. - fi
  37546. - $rm conftest*
  37547. -
  37548. + with_gnu_ld=no
  37549. fi
  37550. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  37551. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  37552. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  37553. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  37554. +ac_prog=ld
  37555. +if test "$GCC" = yes; then
  37556. + # Check if gcc -print-prog-name=ld gives a path.
  37557. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  37558. +$as_echo_n "checking for ld used by $CC... " >&6; }
  37559. + case $host in
  37560. + *-*-mingw*)
  37561. + # gcc leaves a trailing carriage return which upsets mingw
  37562. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  37563. + *)
  37564. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  37565. + esac
  37566. + case $ac_prog in
  37567. + # Accept absolute paths.
  37568. + [\\/]* | ?:[\\/]*)
  37569. + re_direlt='/[^/][^/]*/\.\./'
  37570. + # Canonicalize the pathname of ld
  37571. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  37572. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  37573. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  37574. + done
  37575. + test -z "$LD" && LD="$ac_prog"
  37576. + ;;
  37577. + "")
  37578. + # If it fails, then pretend we aren't using GCC.
  37579. + ac_prog=ld
  37580. + ;;
  37581. + *)
  37582. + # If it is relative, then search for the first ld in PATH.
  37583. + with_gnu_ld=unknown
  37584. + ;;
  37585. + esac
  37586. +elif test "$with_gnu_ld" = yes; then
  37587. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  37588. +$as_echo_n "checking for GNU ld... " >&6; }
  37589. else
  37590. - :
  37591. -fi
  37592. -
  37593. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  37594. +$as_echo_n "checking for non-GNU ld... " >&6; }
  37595. +fi
  37596. +if test "${lt_cv_path_LD+set}" = set; then :
  37597. + $as_echo_n "(cached) " >&6
  37598. +else
  37599. + if test -z "$LD"; then
  37600. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  37601. + for ac_dir in $PATH; do
  37602. + IFS="$lt_save_ifs"
  37603. + test -z "$ac_dir" && ac_dir=.
  37604. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  37605. + lt_cv_path_LD="$ac_dir/$ac_prog"
  37606. + # Check to see if the program is GNU ld. I'd rather use --version,
  37607. + # but apparently some variants of GNU ld only accept -v.
  37608. + # Break only if it was the GNU/non-GNU ld that we prefer.
  37609. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  37610. + *GNU* | *'with BFD'*)
  37611. + test "$with_gnu_ld" != no && break
  37612. + ;;
  37613. + *)
  37614. + test "$with_gnu_ld" != yes && break
  37615. + ;;
  37616. + esac
  37617. + fi
  37618. + done
  37619. + IFS="$lt_save_ifs"
  37620. +else
  37621. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  37622. +fi
  37623. fi
  37624. -lt_prog_compiler_wl_GCJ=
  37625. -lt_prog_compiler_pic_GCJ=
  37626. -lt_prog_compiler_static_GCJ=
  37627. -
  37628. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  37629. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  37630. -
  37631. - if test "$GCC" = yes; then
  37632. - lt_prog_compiler_wl_GCJ='-Wl,'
  37633. - lt_prog_compiler_static_GCJ='-static'
  37634. -
  37635. - case $host_os in
  37636. - aix*)
  37637. - # All AIX code is PIC.
  37638. - if test "$host_cpu" = ia64; then
  37639. - # AIX 5 now supports IA64 processor
  37640. - lt_prog_compiler_static_GCJ='-Bstatic'
  37641. - fi
  37642. - ;;
  37643. -
  37644. - amigaos*)
  37645. - # FIXME: we need at least 68020 code to build shared libraries, but
  37646. - # adding the `-m68020' flag to GCC prevents building anything better,
  37647. - # like `-m68040'.
  37648. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  37649. - ;;
  37650. -
  37651. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37652. - # PIC is the default for these OSes.
  37653. - ;;
  37654. +LD="$lt_cv_path_LD"
  37655. +if test -n "$LD"; then
  37656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  37657. +$as_echo "$LD" >&6; }
  37658. +else
  37659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37660. +$as_echo "no" >&6; }
  37661. +fi
  37662. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  37663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  37664. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  37665. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  37666. + $as_echo_n "(cached) " >&6
  37667. +else
  37668. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  37669. +case `$LD -v 2>&1 </dev/null` in
  37670. +*GNU* | *'with BFD'*)
  37671. + lt_cv_prog_gnu_ld=yes
  37672. + ;;
  37673. +*)
  37674. + lt_cv_prog_gnu_ld=no
  37675. + ;;
  37676. +esac
  37677. +fi
  37678. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  37679. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  37680. +with_gnu_ld=$lt_cv_prog_gnu_ld
  37681. - mingw* | pw32* | os2*)
  37682. - # This hack is so that the source file can tell whether it is being
  37683. - # built for inclusion in a dll (and should export symbols for example).
  37684. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  37685. - ;;
  37686. - darwin* | rhapsody*)
  37687. - # PIC is the default on this platform
  37688. - # Common symbols not allowed in MH_DYLIB files
  37689. - lt_prog_compiler_pic_GCJ='-fno-common'
  37690. - ;;
  37691. - interix3*)
  37692. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37693. - # Instead, we relocate shared libraries at runtime.
  37694. - ;;
  37695. - msdosdjgpp*)
  37696. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  37697. - # on systems that don't support them.
  37698. - lt_prog_compiler_can_build_shared_GCJ=no
  37699. - enable_shared=no
  37700. - ;;
  37701. - sysv4*MP*)
  37702. - if test -d /usr/nec; then
  37703. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  37704. - fi
  37705. - ;;
  37706. - hpux*)
  37707. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37708. - # not for PA HP-UX.
  37709. - case $host_cpu in
  37710. - hppa*64*|ia64*)
  37711. - # +Z the default
  37712. - ;;
  37713. - *)
  37714. - lt_prog_compiler_pic_GCJ='-fPIC'
  37715. - ;;
  37716. - esac
  37717. - ;;
  37718. - *)
  37719. - lt_prog_compiler_pic_GCJ='-fPIC'
  37720. - ;;
  37721. - esac
  37722. - else
  37723. - # PORTME Check for flag to pass linker flags through the system compiler.
  37724. - case $host_os in
  37725. - aix*)
  37726. - lt_prog_compiler_wl_GCJ='-Wl,'
  37727. - if test "$host_cpu" = ia64; then
  37728. - # AIX 5 now supports IA64 processor
  37729. - lt_prog_compiler_static_GCJ='-Bstatic'
  37730. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  37731. + # archiving commands below assume that GNU ld is being used.
  37732. + if test "$with_gnu_ld" = yes; then
  37733. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37734. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37735. +
  37736. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  37737. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  37738. +
  37739. + # If archive_cmds runs LD, not CC, wlarc should be empty
  37740. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  37741. + # investigate it a little bit more. (MM)
  37742. + wlarc='${wl}'
  37743. +
  37744. + # ancient GNU ld didn't support --whole-archive et. al.
  37745. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  37746. + $GREP 'no-whole-archive' > /dev/null; then
  37747. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  37748. + else
  37749. + whole_archive_flag_spec_CXX=
  37750. + fi
  37751. else
  37752. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  37753. - fi
  37754. - ;;
  37755. - darwin*)
  37756. - # PIC is the default on this platform
  37757. - # Common symbols not allowed in MH_DYLIB files
  37758. - case $cc_basename in
  37759. - xlc*)
  37760. - lt_prog_compiler_pic_GCJ='-qnocommon'
  37761. - lt_prog_compiler_wl_GCJ='-Wl,'
  37762. - ;;
  37763. - esac
  37764. - ;;
  37765. -
  37766. - mingw* | pw32* | os2*)
  37767. - # This hack is so that the source file can tell whether it is being
  37768. - # built for inclusion in a dll (and should export symbols for example).
  37769. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  37770. - ;;
  37771. + with_gnu_ld=no
  37772. + wlarc=
  37773. - hpux9* | hpux10* | hpux11*)
  37774. - lt_prog_compiler_wl_GCJ='-Wl,'
  37775. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37776. - # not for PA HP-UX.
  37777. - case $host_cpu in
  37778. - hppa*64*|ia64*)
  37779. - # +Z the default
  37780. - ;;
  37781. - *)
  37782. - lt_prog_compiler_pic_GCJ='+Z'
  37783. - ;;
  37784. - esac
  37785. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  37786. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  37787. - ;;
  37788. + # A generic and very simple default shared library creation
  37789. + # command for GNU C++ for the case where it uses the native
  37790. + # linker, instead of GNU ld. If possible, this setting should
  37791. + # overridden to take advantage of the native linker features on
  37792. + # the platform it is being used on.
  37793. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  37794. + fi
  37795. - irix5* | irix6* | nonstopux*)
  37796. - lt_prog_compiler_wl_GCJ='-Wl,'
  37797. - # PIC (with -KPIC) is the default.
  37798. - lt_prog_compiler_static_GCJ='-non_shared'
  37799. - ;;
  37800. + # Commands to make compiler produce verbose output that lists
  37801. + # what "hidden" libraries, object files and flags are used when
  37802. + # linking a shared library.
  37803. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  37804. - newsos6)
  37805. - lt_prog_compiler_pic_GCJ='-KPIC'
  37806. - lt_prog_compiler_static_GCJ='-Bstatic'
  37807. - ;;
  37808. + else
  37809. + GXX=no
  37810. + with_gnu_ld=no
  37811. + wlarc=
  37812. + fi
  37813. - linux* | k*bsd*-gnu)
  37814. - case $cc_basename in
  37815. - icc* | ecc*)
  37816. - lt_prog_compiler_wl_GCJ='-Wl,'
  37817. - lt_prog_compiler_pic_GCJ='-KPIC'
  37818. - lt_prog_compiler_static_GCJ='-static'
  37819. - ;;
  37820. - pgcc* | pgf77* | pgf90* | pgf95*)
  37821. - # Portland Group compilers (*not* the Pentium gcc compiler,
  37822. - # which looks to be a dead project)
  37823. - lt_prog_compiler_wl_GCJ='-Wl,'
  37824. - lt_prog_compiler_pic_GCJ='-fpic'
  37825. - lt_prog_compiler_static_GCJ='-Bstatic'
  37826. - ;;
  37827. - ccc*)
  37828. - lt_prog_compiler_wl_GCJ='-Wl,'
  37829. - # All Alpha code is PIC.
  37830. - lt_prog_compiler_static_GCJ='-non_shared'
  37831. + # PORTME: fill in a description of your system's C++ link characteristics
  37832. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  37833. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  37834. + ld_shlibs_CXX=yes
  37835. + case $host_os in
  37836. + aix3*)
  37837. + # FIXME: insert proper C++ library support
  37838. + ld_shlibs_CXX=no
  37839. ;;
  37840. - esac
  37841. - ;;
  37842. -
  37843. - osf3* | osf4* | osf5*)
  37844. - lt_prog_compiler_wl_GCJ='-Wl,'
  37845. - # All OSF/1 code is PIC.
  37846. - lt_prog_compiler_static_GCJ='-non_shared'
  37847. - ;;
  37848. + aix[4-9]*)
  37849. + if test "$host_cpu" = ia64; then
  37850. + # On IA64, the linker does run time linking by default, so we don't
  37851. + # have to do anything special.
  37852. + aix_use_runtimelinking=no
  37853. + exp_sym_flag='-Bexport'
  37854. + no_entry_flag=""
  37855. + else
  37856. + aix_use_runtimelinking=no
  37857. - solaris*)
  37858. - lt_prog_compiler_pic_GCJ='-KPIC'
  37859. - lt_prog_compiler_static_GCJ='-Bstatic'
  37860. - case $cc_basename in
  37861. - f77* | f90* | f95*)
  37862. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  37863. - *)
  37864. - lt_prog_compiler_wl_GCJ='-Wl,';;
  37865. - esac
  37866. - ;;
  37867. + # Test if we are trying to use run time linking or normal
  37868. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  37869. + # need to do runtime linking.
  37870. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  37871. + for ld_flag in $LDFLAGS; do
  37872. + case $ld_flag in
  37873. + *-brtl*)
  37874. + aix_use_runtimelinking=yes
  37875. + break
  37876. + ;;
  37877. + esac
  37878. + done
  37879. + ;;
  37880. + esac
  37881. - sunos4*)
  37882. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  37883. - lt_prog_compiler_pic_GCJ='-PIC'
  37884. - lt_prog_compiler_static_GCJ='-Bstatic'
  37885. - ;;
  37886. + exp_sym_flag='-bexport'
  37887. + no_entry_flag='-bnoentry'
  37888. + fi
  37889. - sysv4 | sysv4.2uw2* | sysv4.3*)
  37890. - lt_prog_compiler_wl_GCJ='-Wl,'
  37891. - lt_prog_compiler_pic_GCJ='-KPIC'
  37892. - lt_prog_compiler_static_GCJ='-Bstatic'
  37893. - ;;
  37894. + # When large executables or shared objects are built, AIX ld can
  37895. + # have problems creating the table of contents. If linking a library
  37896. + # or program results in "error TOC overflow" add -mminimal-toc to
  37897. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  37898. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  37899. +
  37900. + archive_cmds_CXX=''
  37901. + hardcode_direct_CXX=yes
  37902. + hardcode_direct_absolute_CXX=yes
  37903. + hardcode_libdir_separator_CXX=':'
  37904. + link_all_deplibs_CXX=yes
  37905. + file_list_spec_CXX='${wl}-f,'
  37906. +
  37907. + if test "$GXX" = yes; then
  37908. + case $host_os in aix4.[012]|aix4.[012].*)
  37909. + # We only want to do this on AIX 4.2 and lower, the check
  37910. + # below for broken collect2 doesn't work under 4.3+
  37911. + collect2name=`${CC} -print-prog-name=collect2`
  37912. + if test -f "$collect2name" &&
  37913. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  37914. + then
  37915. + # We have reworked collect2
  37916. + :
  37917. + else
  37918. + # We have old collect2
  37919. + hardcode_direct_CXX=unsupported
  37920. + # It fails to find uninstalled libraries when the uninstalled
  37921. + # path is not listed in the libpath. Setting hardcode_minus_L
  37922. + # to unsupported forces relinking
  37923. + hardcode_minus_L_CXX=yes
  37924. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  37925. + hardcode_libdir_separator_CXX=
  37926. + fi
  37927. + esac
  37928. + shared_flag='-shared'
  37929. + if test "$aix_use_runtimelinking" = yes; then
  37930. + shared_flag="$shared_flag "'${wl}-G'
  37931. + fi
  37932. + else
  37933. + # not using gcc
  37934. + if test "$host_cpu" = ia64; then
  37935. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  37936. + # chokes on -Wl,-G. The following line is correct:
  37937. + shared_flag='-G'
  37938. + else
  37939. + if test "$aix_use_runtimelinking" = yes; then
  37940. + shared_flag='${wl}-G'
  37941. + else
  37942. + shared_flag='${wl}-bM:SRE'
  37943. + fi
  37944. + fi
  37945. + fi
  37946. - sysv4*MP*)
  37947. - if test -d /usr/nec ;then
  37948. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  37949. - lt_prog_compiler_static_GCJ='-Bstatic'
  37950. - fi
  37951. - ;;
  37952. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  37953. + # It seems that -bexpall does not export symbols beginning with
  37954. + # underscore (_), so it is better to generate a list of symbols to
  37955. + # export.
  37956. + always_export_symbols_CXX=yes
  37957. + if test "$aix_use_runtimelinking" = yes; then
  37958. + # Warning - without using the other runtime loading flags (-brtl),
  37959. + # -berok will link without error, but may produce a broken library.
  37960. + allow_undefined_flag_CXX='-berok'
  37961. + # Determine the default libpath from the value encoded in an empty
  37962. + # executable.
  37963. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37964. +/* end confdefs.h. */
  37965. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  37966. - lt_prog_compiler_wl_GCJ='-Wl,'
  37967. - lt_prog_compiler_pic_GCJ='-KPIC'
  37968. - lt_prog_compiler_static_GCJ='-Bstatic'
  37969. - ;;
  37970. +int
  37971. +main ()
  37972. +{
  37973. - unicos*)
  37974. - lt_prog_compiler_wl_GCJ='-Wl,'
  37975. - lt_prog_compiler_can_build_shared_GCJ=no
  37976. - ;;
  37977. + ;
  37978. + return 0;
  37979. +}
  37980. +_ACEOF
  37981. +if ac_fn_cxx_try_link "$LINENO"; then :
  37982. - uts4*)
  37983. - lt_prog_compiler_pic_GCJ='-pic'
  37984. - lt_prog_compiler_static_GCJ='-Bstatic'
  37985. - ;;
  37986. +lt_aix_libpath_sed='
  37987. + /Import File Strings/,/^$/ {
  37988. + /^0/ {
  37989. + s/^0 *\(.*\)$/\1/
  37990. + p
  37991. + }
  37992. + }'
  37993. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  37994. +# Check for a 64-bit object if we didn't find anything.
  37995. +if test -z "$aix_libpath"; then
  37996. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  37997. +fi
  37998. +fi
  37999. +rm -f core conftest.err conftest.$ac_objext \
  38000. + conftest$ac_exeext conftest.$ac_ext
  38001. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38002. - *)
  38003. - lt_prog_compiler_can_build_shared_GCJ=no
  38004. - ;;
  38005. - esac
  38006. - fi
  38007. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  38008. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  38009. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  38010. + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  38011. + else
  38012. + if test "$host_cpu" = ia64; then
  38013. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  38014. + allow_undefined_flag_CXX="-z nodefs"
  38015. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  38016. + else
  38017. + # Determine the default libpath from the value encoded in an
  38018. + # empty executable.
  38019. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38020. +/* end confdefs.h. */
  38021. -#
  38022. -# Check to make sure the PIC flag actually works.
  38023. -#
  38024. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  38025. +int
  38026. +main ()
  38027. +{
  38028. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  38029. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  38030. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  38031. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38032. -else
  38033. - lt_prog_compiler_pic_works_GCJ=no
  38034. - ac_outfile=conftest.$ac_objext
  38035. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38036. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  38037. - # Insert the option either (1) after the last *FLAGS variable, or
  38038. - # (2) before a word containing "conftest.", or (3) at the end.
  38039. - # Note that $ac_compile itself does not contain backslashes and begins
  38040. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38041. - # The option is referenced via a variable to avoid confusing sed.
  38042. - lt_compile=`echo "$ac_compile" | $SED \
  38043. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38044. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38045. - -e 's:$: $lt_compiler_flag:'`
  38046. - (eval echo "\"\$as_me:16339: $lt_compile\"" >&5)
  38047. - (eval "$lt_compile" 2>conftest.err)
  38048. - ac_status=$?
  38049. - cat conftest.err >&5
  38050. - echo "$as_me:16343: \$? = $ac_status" >&5
  38051. - if (exit $ac_status) && test -s "$ac_outfile"; then
  38052. - # The compiler can only warn and ignore the option if not recognized
  38053. - # So say no if there are warnings other than the usual output.
  38054. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  38055. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38056. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  38057. - lt_prog_compiler_pic_works_GCJ=yes
  38058. - fi
  38059. - fi
  38060. - $rm conftest*
  38061. + ;
  38062. + return 0;
  38063. +}
  38064. +_ACEOF
  38065. +if ac_fn_cxx_try_link "$LINENO"; then :
  38066. +lt_aix_libpath_sed='
  38067. + /Import File Strings/,/^$/ {
  38068. + /^0/ {
  38069. + s/^0 *\(.*\)$/\1/
  38070. + p
  38071. + }
  38072. + }'
  38073. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  38074. +# Check for a 64-bit object if we didn't find anything.
  38075. +if test -z "$aix_libpath"; then
  38076. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  38077. fi
  38078. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  38079. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  38080. -
  38081. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  38082. - case $lt_prog_compiler_pic_GCJ in
  38083. - "" | " "*) ;;
  38084. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  38085. - esac
  38086. -else
  38087. - lt_prog_compiler_pic_GCJ=
  38088. - lt_prog_compiler_can_build_shared_GCJ=no
  38089. fi
  38090. +rm -f core conftest.err conftest.$ac_objext \
  38091. + conftest$ac_exeext conftest.$ac_ext
  38092. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38093. -fi
  38094. -case $host_os in
  38095. - # For platforms which do not support PIC, -DPIC is meaningless:
  38096. - *djgpp*)
  38097. - lt_prog_compiler_pic_GCJ=
  38098. - ;;
  38099. - *)
  38100. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  38101. - ;;
  38102. -esac
  38103. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  38104. + # Warning - without using the other run time loading flags,
  38105. + # -berok will link without error, but may produce a broken library.
  38106. + no_undefined_flag_CXX=' ${wl}-bernotok'
  38107. + allow_undefined_flag_CXX=' ${wl}-berok'
  38108. + # Exported symbols can be pulled into shared objects from archives
  38109. + whole_archive_flag_spec_CXX='$convenience'
  38110. + archive_cmds_need_lc_CXX=yes
  38111. + # This is similar to how AIX traditionally builds its shared
  38112. + # libraries.
  38113. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  38114. + fi
  38115. + fi
  38116. + ;;
  38117. -#
  38118. -# Check to make sure the static flag actually works.
  38119. -#
  38120. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  38121. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  38122. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  38123. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  38124. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38125. -else
  38126. - lt_prog_compiler_static_works_GCJ=no
  38127. - save_LDFLAGS="$LDFLAGS"
  38128. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  38129. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  38130. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  38131. - # The linker can only warn and ignore the option if not recognized
  38132. - # So say no if there are warnings
  38133. - if test -s conftest.err; then
  38134. - # Append any errors to the config.log.
  38135. - cat conftest.err 1>&5
  38136. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  38137. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38138. - if diff conftest.exp conftest.er2 >/dev/null; then
  38139. - lt_prog_compiler_static_works_GCJ=yes
  38140. - fi
  38141. - else
  38142. - lt_prog_compiler_static_works_GCJ=yes
  38143. - fi
  38144. - fi
  38145. - $rm conftest*
  38146. - LDFLAGS="$save_LDFLAGS"
  38147. + beos*)
  38148. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38149. + allow_undefined_flag_CXX=unsupported
  38150. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38151. + # support --undefined. This deserves some investigation. FIXME
  38152. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38153. + else
  38154. + ld_shlibs_CXX=no
  38155. + fi
  38156. + ;;
  38157. -fi
  38158. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  38159. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  38160. + chorus*)
  38161. + case $cc_basename in
  38162. + *)
  38163. + # FIXME: insert proper C++ library support
  38164. + ld_shlibs_CXX=no
  38165. + ;;
  38166. + esac
  38167. + ;;
  38168. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  38169. - :
  38170. -else
  38171. - lt_prog_compiler_static_GCJ=
  38172. -fi
  38173. + cygwin* | mingw* | pw32* | cegcc*)
  38174. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  38175. + # as there is no search path for DLLs.
  38176. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  38177. + allow_undefined_flag_CXX=unsupported
  38178. + always_export_symbols_CXX=no
  38179. + enable_shared_with_static_runtimes_CXX=yes
  38180. +
  38181. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  38182. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38183. + # If the export-symbols file already is a .def file (1st line
  38184. + # is EXPORTS), use it as is; otherwise, prepend...
  38185. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  38186. + cp $export_symbols $output_objdir/$soname.def;
  38187. + else
  38188. + echo EXPORTS > $output_objdir/$soname.def;
  38189. + cat $export_symbols >> $output_objdir/$soname.def;
  38190. + fi~
  38191. + $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'
  38192. + else
  38193. + ld_shlibs_CXX=no
  38194. + fi
  38195. + ;;
  38196. + darwin* | rhapsody*)
  38197. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  38198. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  38199. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  38200. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38201. -else
  38202. - lt_cv_prog_compiler_c_o_GCJ=no
  38203. - $rm -r conftest 2>/dev/null
  38204. - mkdir conftest
  38205. - cd conftest
  38206. - mkdir out
  38207. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38208. + archive_cmds_need_lc_CXX=no
  38209. + hardcode_direct_CXX=no
  38210. + hardcode_automatic_CXX=yes
  38211. + hardcode_shlibpath_var_CXX=unsupported
  38212. + whole_archive_flag_spec_CXX=''
  38213. + link_all_deplibs_CXX=yes
  38214. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  38215. + case $cc_basename in
  38216. + ifort*) _lt_dar_can_shared=yes ;;
  38217. + *) _lt_dar_can_shared=$GCC ;;
  38218. + esac
  38219. + if test "$_lt_dar_can_shared" = "yes"; then
  38220. + output_verbose_link_cmd=echo
  38221. + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  38222. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  38223. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  38224. + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  38225. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  38226. + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  38227. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  38228. + fi
  38229. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  38230. - # Insert the option either (1) after the last *FLAGS variable, or
  38231. - # (2) before a word containing "conftest.", or (3) at the end.
  38232. - # Note that $ac_compile itself does not contain backslashes and begins
  38233. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38234. - lt_compile=`echo "$ac_compile" | $SED \
  38235. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38236. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38237. - -e 's:$: $lt_compiler_flag:'`
  38238. - (eval echo "\"\$as_me:16443: $lt_compile\"" >&5)
  38239. - (eval "$lt_compile" 2>out/conftest.err)
  38240. - ac_status=$?
  38241. - cat out/conftest.err >&5
  38242. - echo "$as_me:16447: \$? = $ac_status" >&5
  38243. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  38244. - then
  38245. - # The compiler can only warn and ignore the option if not recognized
  38246. - # So say no if there are warnings
  38247. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  38248. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  38249. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  38250. - lt_cv_prog_compiler_c_o_GCJ=yes
  38251. - fi
  38252. - fi
  38253. - chmod u+w . 2>&5
  38254. - $rm conftest*
  38255. - # SGI C++ compiler will create directory out/ii_files/ for
  38256. - # template instantiation
  38257. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  38258. - $rm out/* && rmdir out
  38259. - cd ..
  38260. - rmdir conftest
  38261. - $rm conftest*
  38262. + else
  38263. + ld_shlibs_CXX=no
  38264. + fi
  38265. -fi
  38266. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  38267. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  38268. + ;;
  38269. + dgux*)
  38270. + case $cc_basename in
  38271. + ec++*)
  38272. + # FIXME: insert proper C++ library support
  38273. + ld_shlibs_CXX=no
  38274. + ;;
  38275. + ghcx*)
  38276. + # Green Hills C++ Compiler
  38277. + # FIXME: insert proper C++ library support
  38278. + ld_shlibs_CXX=no
  38279. + ;;
  38280. + *)
  38281. + # FIXME: insert proper C++ library support
  38282. + ld_shlibs_CXX=no
  38283. + ;;
  38284. + esac
  38285. + ;;
  38286. -hard_links="nottested"
  38287. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  38288. - # do not overwrite the value of need_locks provided by the user
  38289. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  38290. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  38291. - hard_links=yes
  38292. - $rm conftest*
  38293. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38294. - touch conftest.a
  38295. - ln conftest.a conftest.b 2>&5 || hard_links=no
  38296. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38297. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  38298. -echo "${ECHO_T}$hard_links" >&6; }
  38299. - if test "$hard_links" = no; then
  38300. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  38301. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  38302. - need_locks=warn
  38303. - fi
  38304. -else
  38305. - need_locks=no
  38306. -fi
  38307. + freebsd[12]*)
  38308. + # C++ shared libraries reported to be fairly broken before
  38309. + # switch to ELF
  38310. + ld_shlibs_CXX=no
  38311. + ;;
  38312. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  38313. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  38314. + freebsd-elf*)
  38315. + archive_cmds_need_lc_CXX=no
  38316. + ;;
  38317. - runpath_var=
  38318. - allow_undefined_flag_GCJ=
  38319. - enable_shared_with_static_runtimes_GCJ=no
  38320. - archive_cmds_GCJ=
  38321. - archive_expsym_cmds_GCJ=
  38322. - old_archive_From_new_cmds_GCJ=
  38323. - old_archive_from_expsyms_cmds_GCJ=
  38324. - export_dynamic_flag_spec_GCJ=
  38325. - whole_archive_flag_spec_GCJ=
  38326. - thread_safe_flag_spec_GCJ=
  38327. - hardcode_libdir_flag_spec_GCJ=
  38328. - hardcode_libdir_flag_spec_ld_GCJ=
  38329. - hardcode_libdir_separator_GCJ=
  38330. - hardcode_direct_GCJ=no
  38331. - hardcode_minus_L_GCJ=no
  38332. - hardcode_shlibpath_var_GCJ=unsupported
  38333. - link_all_deplibs_GCJ=unknown
  38334. - hardcode_automatic_GCJ=no
  38335. - module_cmds_GCJ=
  38336. - module_expsym_cmds_GCJ=
  38337. - always_export_symbols_GCJ=no
  38338. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38339. - # include_expsyms should be a list of space-separated symbols to be *always*
  38340. - # included in the symbol list
  38341. - include_expsyms_GCJ=
  38342. - # exclude_expsyms can be an extended regexp of symbols to exclude
  38343. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  38344. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  38345. - # as well as any symbol that contains `d'.
  38346. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  38347. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  38348. - # platforms (ab)use it in PIC code, but their linkers get confused if
  38349. - # the symbol is explicitly referenced. Since portable code cannot
  38350. - # rely on this symbol name, it's probably fine to never include it in
  38351. - # preloaded symbol tables.
  38352. - extract_expsyms_cmds=
  38353. - # Just being paranoid about ensuring that cc_basename is set.
  38354. - for cc_temp in $compiler""; do
  38355. - case $cc_temp in
  38356. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38357. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  38358. - \-*) ;;
  38359. - *) break;;
  38360. - esac
  38361. -done
  38362. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  38363. + freebsd* | dragonfly*)
  38364. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  38365. + # conventions
  38366. + ld_shlibs_CXX=yes
  38367. + ;;
  38368. - case $host_os in
  38369. - cygwin* | mingw* | pw32*)
  38370. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  38371. - # When not using gcc, we currently assume that we are using
  38372. - # Microsoft Visual C++.
  38373. - if test "$GCC" != yes; then
  38374. - with_gnu_ld=no
  38375. - fi
  38376. - ;;
  38377. - interix*)
  38378. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  38379. - with_gnu_ld=yes
  38380. - ;;
  38381. - openbsd*)
  38382. - with_gnu_ld=no
  38383. - ;;
  38384. - esac
  38385. + gnu*)
  38386. + ;;
  38387. - ld_shlibs_GCJ=yes
  38388. - if test "$with_gnu_ld" = yes; then
  38389. - # If archive_cmds runs LD, not CC, wlarc should be empty
  38390. - wlarc='${wl}'
  38391. + hpux9*)
  38392. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  38393. + hardcode_libdir_separator_CXX=:
  38394. + export_dynamic_flag_spec_CXX='${wl}-E'
  38395. + hardcode_direct_CXX=yes
  38396. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  38397. + # but as the default
  38398. + # location of the library.
  38399. +
  38400. + case $cc_basename in
  38401. + CC*)
  38402. + # FIXME: insert proper C++ library support
  38403. + ld_shlibs_CXX=no
  38404. + ;;
  38405. + aCC*)
  38406. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  38407. + # Commands to make compiler produce verbose output that lists
  38408. + # what "hidden" libraries, object files and flags are used when
  38409. + # linking a shared library.
  38410. + #
  38411. + # There doesn't appear to be a way to prevent this compiler from
  38412. + # explicitly linking system object files so we need to strip them
  38413. + # from the output so that they don't get included in the library
  38414. + # dependencies.
  38415. + 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'
  38416. + ;;
  38417. + *)
  38418. + if test "$GXX" = yes; then
  38419. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  38420. + else
  38421. + # FIXME: insert proper C++ library support
  38422. + ld_shlibs_CXX=no
  38423. + fi
  38424. + ;;
  38425. + esac
  38426. + ;;
  38427. - # Set some defaults for GNU ld with shared library support. These
  38428. - # are reset later if shared libraries are not supported. Putting them
  38429. - # here allows them to be overridden if necessary.
  38430. - runpath_var=LD_RUN_PATH
  38431. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  38432. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  38433. - # ancient GNU ld didn't support --whole-archive et. al.
  38434. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  38435. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38436. - else
  38437. - whole_archive_flag_spec_GCJ=
  38438. - fi
  38439. - supports_anon_versioning=no
  38440. - case `$LD -v 2>/dev/null` in
  38441. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  38442. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  38443. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  38444. - *\ 2.11.*) ;; # other 2.11 versions
  38445. - *) supports_anon_versioning=yes ;;
  38446. - esac
  38447. + hpux10*|hpux11*)
  38448. + if test $with_gnu_ld = no; then
  38449. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  38450. + hardcode_libdir_separator_CXX=:
  38451. - # See if GNU ld supports shared libraries.
  38452. - case $host_os in
  38453. - aix3* | aix4* | aix5*)
  38454. - # On AIX/PPC, the GNU linker is very broken
  38455. - if test "$host_cpu" != ia64; then
  38456. - ld_shlibs_GCJ=no
  38457. - cat <<EOF 1>&2
  38458. + case $host_cpu in
  38459. + hppa*64*|ia64*)
  38460. + ;;
  38461. + *)
  38462. + export_dynamic_flag_spec_CXX='${wl}-E'
  38463. + ;;
  38464. + esac
  38465. + fi
  38466. + case $host_cpu in
  38467. + hppa*64*|ia64*)
  38468. + hardcode_direct_CXX=no
  38469. + hardcode_shlibpath_var_CXX=no
  38470. + ;;
  38471. + *)
  38472. + hardcode_direct_CXX=yes
  38473. + hardcode_direct_absolute_CXX=yes
  38474. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  38475. + # but as the default
  38476. + # location of the library.
  38477. + ;;
  38478. + esac
  38479. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  38480. -*** to be unable to reliably create shared libraries on AIX.
  38481. -*** Therefore, libtool is disabling shared libraries support. If you
  38482. -*** really care for shared libraries, you may want to modify your PATH
  38483. -*** so that a non-GNU linker is found, and then restart.
  38484. + case $cc_basename in
  38485. + CC*)
  38486. + # FIXME: insert proper C++ library support
  38487. + ld_shlibs_CXX=no
  38488. + ;;
  38489. + aCC*)
  38490. + case $host_cpu in
  38491. + hppa*64*)
  38492. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38493. + ;;
  38494. + ia64*)
  38495. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38496. + ;;
  38497. + *)
  38498. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38499. + ;;
  38500. + esac
  38501. + # Commands to make compiler produce verbose output that lists
  38502. + # what "hidden" libraries, object files and flags are used when
  38503. + # linking a shared library.
  38504. + #
  38505. + # There doesn't appear to be a way to prevent this compiler from
  38506. + # explicitly linking system object files so we need to strip them
  38507. + # from the output so that they don't get included in the library
  38508. + # dependencies.
  38509. + 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'
  38510. + ;;
  38511. + *)
  38512. + if test "$GXX" = yes; then
  38513. + if test $with_gnu_ld = no; then
  38514. + case $host_cpu in
  38515. + hppa*64*)
  38516. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38517. + ;;
  38518. + ia64*)
  38519. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38520. + ;;
  38521. + *)
  38522. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38523. + ;;
  38524. + esac
  38525. + fi
  38526. + else
  38527. + # FIXME: insert proper C++ library support
  38528. + ld_shlibs_CXX=no
  38529. + fi
  38530. + ;;
  38531. + esac
  38532. + ;;
  38533. -EOF
  38534. - fi
  38535. - ;;
  38536. + interix[3-9]*)
  38537. + hardcode_direct_CXX=no
  38538. + hardcode_shlibpath_var_CXX=no
  38539. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  38540. + export_dynamic_flag_spec_CXX='${wl}-E'
  38541. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  38542. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  38543. + # default) and relocated if they conflict, which is a slow very memory
  38544. + # consuming and fragmenting process. To avoid this, we pick a random,
  38545. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  38546. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  38547. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38548. + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38549. + ;;
  38550. + irix5* | irix6*)
  38551. + case $cc_basename in
  38552. + CC*)
  38553. + # SGI C++
  38554. + archive_cmds_CXX='$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'
  38555. +
  38556. + # Archives containing C++ object files must be created using
  38557. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  38558. + # necessary to make sure instantiated templates are included
  38559. + # in the archive.
  38560. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  38561. + ;;
  38562. + *)
  38563. + if test "$GXX" = yes; then
  38564. + if test "$with_gnu_ld" = no; then
  38565. + archive_cmds_CXX='$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'
  38566. + else
  38567. + archive_cmds_CXX='$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'
  38568. + fi
  38569. + fi
  38570. + link_all_deplibs_CXX=yes
  38571. + ;;
  38572. + esac
  38573. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  38574. + hardcode_libdir_separator_CXX=:
  38575. + inherit_rpath_CXX=yes
  38576. + ;;
  38577. - amigaos*)
  38578. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  38579. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38580. - hardcode_minus_L_GCJ=yes
  38581. -
  38582. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  38583. - # that the semantics of dynamic libraries on AmigaOS, at least up
  38584. - # to version 4, is to share data among multiple programs linked
  38585. - # with the same dynamic library. Since this doesn't match the
  38586. - # behavior of shared libraries on other platforms, we can't use
  38587. - # them.
  38588. - ld_shlibs_GCJ=no
  38589. - ;;
  38590. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  38591. + case $cc_basename in
  38592. + KCC*)
  38593. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  38594. +
  38595. + # KCC will only create a shared library if the output file
  38596. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  38597. + # to its proper name (with version) after linking.
  38598. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  38599. + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  38600. + # Commands to make compiler produce verbose output that lists
  38601. + # what "hidden" libraries, object files and flags are used when
  38602. + # linking a shared library.
  38603. + #
  38604. + # There doesn't appear to be a way to prevent this compiler from
  38605. + # explicitly linking system object files so we need to strip them
  38606. + # from the output so that they don't get included in the library
  38607. + # dependencies.
  38608. + 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'
  38609. +
  38610. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  38611. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  38612. +
  38613. + # Archives containing C++ object files must be created using
  38614. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  38615. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  38616. + ;;
  38617. + icpc* | ecpc* )
  38618. + # Intel C++
  38619. + with_gnu_ld=yes
  38620. + # version 8.0 and above of icpc choke on multiply defined symbols
  38621. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  38622. + # earlier do not add the objects themselves.
  38623. + case `$CC -V 2>&1` in
  38624. + *"Version 7."*)
  38625. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38626. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38627. + ;;
  38628. + *) # Version 8.0 or newer
  38629. + tmp_idyn=
  38630. + case $host_cpu in
  38631. + ia64*) tmp_idyn=' -i_dynamic';;
  38632. + esac
  38633. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38634. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38635. + ;;
  38636. + esac
  38637. + archive_cmds_need_lc_CXX=no
  38638. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  38639. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  38640. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  38641. + ;;
  38642. + pgCC* | pgcpp*)
  38643. + # Portland Group C++ compiler
  38644. + case `$CC -V` in
  38645. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  38646. + prelink_cmds_CXX='tpldir=Template.dir~
  38647. + rm -rf $tpldir~
  38648. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  38649. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  38650. + old_archive_cmds_CXX='tpldir=Template.dir~
  38651. + rm -rf $tpldir~
  38652. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  38653. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  38654. + $RANLIB $oldlib'
  38655. + archive_cmds_CXX='tpldir=Template.dir~
  38656. + rm -rf $tpldir~
  38657. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  38658. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  38659. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  38660. + rm -rf $tpldir~
  38661. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  38662. + $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'
  38663. + ;;
  38664. + *) # Version 6 will use weak symbols
  38665. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  38666. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  38667. + ;;
  38668. + esac
  38669. - beos*)
  38670. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38671. - allow_undefined_flag_GCJ=unsupported
  38672. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38673. - # support --undefined. This deserves some investigation. FIXME
  38674. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38675. - else
  38676. - ld_shlibs_GCJ=no
  38677. - fi
  38678. - ;;
  38679. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  38680. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  38681. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  38682. + ;;
  38683. + cxx*)
  38684. + # Compaq C++
  38685. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38686. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  38687. - cygwin* | mingw* | pw32*)
  38688. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  38689. - # as there is no search path for DLLs.
  38690. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38691. - allow_undefined_flag_GCJ=unsupported
  38692. - always_export_symbols_GCJ=no
  38693. - enable_shared_with_static_runtimes_GCJ=yes
  38694. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  38695. + runpath_var=LD_RUN_PATH
  38696. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  38697. + hardcode_libdir_separator_CXX=:
  38698. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  38699. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38700. - # If the export-symbols file already is a .def file (1st line
  38701. - # is EXPORTS), use it as is; otherwise, prepend...
  38702. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  38703. - cp $export_symbols $output_objdir/$soname.def;
  38704. - else
  38705. - echo EXPORTS > $output_objdir/$soname.def;
  38706. - cat $export_symbols >> $output_objdir/$soname.def;
  38707. - fi~
  38708. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38709. - else
  38710. - ld_shlibs_GCJ=no
  38711. - fi
  38712. - ;;
  38713. + # Commands to make compiler produce verbose output that lists
  38714. + # what "hidden" libraries, object files and flags are used when
  38715. + # linking a shared library.
  38716. + #
  38717. + # There doesn't appear to be a way to prevent this compiler from
  38718. + # explicitly linking system object files so we need to strip them
  38719. + # from the output so that they don't get included in the library
  38720. + # dependencies.
  38721. + 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'
  38722. + ;;
  38723. + xl*)
  38724. + # IBM XL 8.0 on PPC, with GNU ld
  38725. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  38726. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  38727. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38728. + if test "x$supports_anon_versioning" = xyes; then
  38729. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  38730. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38731. + echo "local: *; };" >> $output_objdir/$libname.ver~
  38732. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38733. + fi
  38734. + ;;
  38735. + *)
  38736. + case `$CC -V 2>&1 | sed 5q` in
  38737. + *Sun\ C*)
  38738. + # Sun C++ 5.9
  38739. + no_undefined_flag_CXX=' -zdefs'
  38740. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  38741. + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  38742. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  38743. + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  38744. + compiler_needs_object_CXX=yes
  38745. +
  38746. + # Not sure whether something based on
  38747. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  38748. + # would be better.
  38749. + output_verbose_link_cmd='echo'
  38750. +
  38751. + # Archives containing C++ object files must be created using
  38752. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  38753. + # necessary to make sure instantiated templates are included
  38754. + # in the archive.
  38755. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  38756. + ;;
  38757. + esac
  38758. + ;;
  38759. + esac
  38760. + ;;
  38761. - interix3*)
  38762. - hardcode_direct_GCJ=no
  38763. - hardcode_shlibpath_var_GCJ=no
  38764. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38765. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38766. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  38767. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  38768. - # default) and relocated if they conflict, which is a slow very memory
  38769. - # consuming and fragmenting process. To avoid this, we pick a random,
  38770. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  38771. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  38772. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38773. - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38774. - ;;
  38775. + lynxos*)
  38776. + # FIXME: insert proper C++ library support
  38777. + ld_shlibs_CXX=no
  38778. + ;;
  38779. - linux* | k*bsd*-gnu)
  38780. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38781. - tmp_addflag=
  38782. - case $cc_basename,$host_cpu in
  38783. - pgcc*) # Portland Group C compiler
  38784. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  38785. - tmp_addflag=' $pic_flag'
  38786. - ;;
  38787. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  38788. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  38789. - tmp_addflag=' $pic_flag -Mnomain' ;;
  38790. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  38791. - tmp_addflag=' -i_dynamic' ;;
  38792. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  38793. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  38794. - ifc* | ifort*) # Intel Fortran compiler
  38795. - tmp_addflag=' -nofor_main' ;;
  38796. + m88k*)
  38797. + # FIXME: insert proper C++ library support
  38798. + ld_shlibs_CXX=no
  38799. + ;;
  38800. +
  38801. + mvs*)
  38802. + case $cc_basename in
  38803. + cxx*)
  38804. + # FIXME: insert proper C++ library support
  38805. + ld_shlibs_CXX=no
  38806. + ;;
  38807. + *)
  38808. + # FIXME: insert proper C++ library support
  38809. + ld_shlibs_CXX=no
  38810. + ;;
  38811. esac
  38812. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38813. + ;;
  38814. - if test $supports_anon_versioning = yes; then
  38815. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  38816. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38817. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  38818. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38819. + netbsd*)
  38820. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  38821. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  38822. + wlarc=
  38823. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  38824. + hardcode_direct_CXX=yes
  38825. + hardcode_shlibpath_var_CXX=no
  38826. fi
  38827. - link_all_deplibs_GCJ=no
  38828. - else
  38829. - ld_shlibs_GCJ=no
  38830. - fi
  38831. - ;;
  38832. + # Workaround some broken pre-1.5 toolchains
  38833. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  38834. + ;;
  38835. - netbsd* | netbsdelf*-gnu)
  38836. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38837. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  38838. - wlarc=
  38839. - else
  38840. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38841. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38842. - fi
  38843. - ;;
  38844. -
  38845. - solaris*)
  38846. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  38847. - ld_shlibs_GCJ=no
  38848. - cat <<EOF 1>&2
  38849. -
  38850. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  38851. -*** create shared libraries on Solaris systems. Therefore, libtool
  38852. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38853. -*** binutils to release 2.9.1 or newer. Another option is to modify
  38854. -*** your PATH or compiler configuration so that the native linker is
  38855. -*** used, and then restart.
  38856. -
  38857. -EOF
  38858. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38859. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38860. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38861. - else
  38862. - ld_shlibs_GCJ=no
  38863. - fi
  38864. - ;;
  38865. -
  38866. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  38867. - case `$LD -v 2>&1` in
  38868. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  38869. - ld_shlibs_GCJ=no
  38870. - cat <<_LT_EOF 1>&2
  38871. -
  38872. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  38873. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  38874. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38875. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  38876. -*** your PATH or compiler configuration so that the native linker is
  38877. -*** used, and then restart.
  38878. + *nto* | *qnx*)
  38879. + ld_shlibs_CXX=yes
  38880. + ;;
  38881. -_LT_EOF
  38882. + openbsd2*)
  38883. + # C++ shared libraries are fairly broken
  38884. + ld_shlibs_CXX=no
  38885. ;;
  38886. - *)
  38887. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38888. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  38889. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  38890. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  38891. - else
  38892. - ld_shlibs_GCJ=no
  38893. +
  38894. + openbsd*)
  38895. + if test -f /usr/libexec/ld.so; then
  38896. + hardcode_direct_CXX=yes
  38897. + hardcode_shlibpath_var_CXX=no
  38898. + hardcode_direct_absolute_CXX=yes
  38899. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  38900. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  38901. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38902. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  38903. + export_dynamic_flag_spec_CXX='${wl}-E'
  38904. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38905. fi
  38906. + output_verbose_link_cmd=echo
  38907. + else
  38908. + ld_shlibs_CXX=no
  38909. + fi
  38910. ;;
  38911. - esac
  38912. - ;;
  38913. - sunos4*)
  38914. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38915. - wlarc=
  38916. - hardcode_direct_GCJ=yes
  38917. - hardcode_shlibpath_var_GCJ=no
  38918. - ;;
  38919. + osf3* | osf4* | osf5*)
  38920. + case $cc_basename in
  38921. + KCC*)
  38922. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  38923. +
  38924. + # KCC will only create a shared library if the output file
  38925. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  38926. + # to its proper name (with version) after linking.
  38927. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  38928. +
  38929. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  38930. + hardcode_libdir_separator_CXX=:
  38931. +
  38932. + # Archives containing C++ object files must be created using
  38933. + # the KAI C++ compiler.
  38934. + case $host in
  38935. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  38936. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  38937. + esac
  38938. + ;;
  38939. + RCC*)
  38940. + # Rational C++ 2.4.1
  38941. + # FIXME: insert proper C++ library support
  38942. + ld_shlibs_CXX=no
  38943. + ;;
  38944. + cxx*)
  38945. + case $host in
  38946. + osf3*)
  38947. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  38948. + archive_cmds_CXX='$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'
  38949. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  38950. + ;;
  38951. + *)
  38952. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  38953. + archive_cmds_CXX='$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'
  38954. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  38955. + echo "-hidden">> $lib.exp~
  38956. + $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~
  38957. + $RM $lib.exp'
  38958. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  38959. + ;;
  38960. + esac
  38961. - *)
  38962. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38963. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38964. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38965. - else
  38966. - ld_shlibs_GCJ=no
  38967. - fi
  38968. - ;;
  38969. - esac
  38970. + hardcode_libdir_separator_CXX=:
  38971. - if test "$ld_shlibs_GCJ" = no; then
  38972. - runpath_var=
  38973. - hardcode_libdir_flag_spec_GCJ=
  38974. - export_dynamic_flag_spec_GCJ=
  38975. - whole_archive_flag_spec_GCJ=
  38976. - fi
  38977. - else
  38978. - # PORTME fill in a description of your system's linker (not GNU ld)
  38979. - case $host_os in
  38980. - aix3*)
  38981. - allow_undefined_flag_GCJ=unsupported
  38982. - always_export_symbols_GCJ=yes
  38983. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  38984. - # Note: this linker hardcodes the directories in LIBPATH if there
  38985. - # are no directories specified by -L.
  38986. - hardcode_minus_L_GCJ=yes
  38987. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  38988. - # Neither direct hardcoding nor static linking is supported with a
  38989. - # broken collect2.
  38990. - hardcode_direct_GCJ=unsupported
  38991. - fi
  38992. - ;;
  38993. + # Commands to make compiler produce verbose output that lists
  38994. + # what "hidden" libraries, object files and flags are used when
  38995. + # linking a shared library.
  38996. + #
  38997. + # There doesn't appear to be a way to prevent this compiler from
  38998. + # explicitly linking system object files so we need to strip them
  38999. + # from the output so that they don't get included in the library
  39000. + # dependencies.
  39001. + 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'
  39002. + ;;
  39003. + *)
  39004. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  39005. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  39006. + case $host in
  39007. + osf3*)
  39008. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  39009. + ;;
  39010. + *)
  39011. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  39012. + ;;
  39013. + esac
  39014. +
  39015. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  39016. + hardcode_libdir_separator_CXX=:
  39017. +
  39018. + # Commands to make compiler produce verbose output that lists
  39019. + # what "hidden" libraries, object files and flags are used when
  39020. + # linking a shared library.
  39021. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39022. +
  39023. + else
  39024. + # FIXME: insert proper C++ library support
  39025. + ld_shlibs_CXX=no
  39026. + fi
  39027. + ;;
  39028. + esac
  39029. + ;;
  39030. - aix4* | aix5*)
  39031. - if test "$host_cpu" = ia64; then
  39032. - # On IA64, the linker does run time linking by default, so we don't
  39033. - # have to do anything special.
  39034. - aix_use_runtimelinking=no
  39035. - exp_sym_flag='-Bexport'
  39036. - no_entry_flag=""
  39037. - else
  39038. - # If we're using GNU nm, then we don't want the "-C" option.
  39039. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  39040. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  39041. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  39042. - else
  39043. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  39044. - fi
  39045. - aix_use_runtimelinking=no
  39046. + psos*)
  39047. + # FIXME: insert proper C++ library support
  39048. + ld_shlibs_CXX=no
  39049. + ;;
  39050. - # Test if we are trying to use run time linking or normal
  39051. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  39052. - # need to do runtime linking.
  39053. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  39054. - for ld_flag in $LDFLAGS; do
  39055. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  39056. - aix_use_runtimelinking=yes
  39057. - break
  39058. - fi
  39059. - done
  39060. - ;;
  39061. - esac
  39062. + sunos4*)
  39063. + case $cc_basename in
  39064. + CC*)
  39065. + # Sun C++ 4.x
  39066. + # FIXME: insert proper C++ library support
  39067. + ld_shlibs_CXX=no
  39068. + ;;
  39069. + lcc*)
  39070. + # Lucid
  39071. + # FIXME: insert proper C++ library support
  39072. + ld_shlibs_CXX=no
  39073. + ;;
  39074. + *)
  39075. + # FIXME: insert proper C++ library support
  39076. + ld_shlibs_CXX=no
  39077. + ;;
  39078. + esac
  39079. + ;;
  39080. - exp_sym_flag='-bexport'
  39081. - no_entry_flag='-bnoentry'
  39082. - fi
  39083. + solaris*)
  39084. + case $cc_basename in
  39085. + CC*)
  39086. + # Sun C++ 4.2, 5.x and Centerline C++
  39087. + archive_cmds_need_lc_CXX=yes
  39088. + no_undefined_flag_CXX=' -zdefs'
  39089. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39090. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39091. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  39092. +
  39093. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  39094. + hardcode_shlibpath_var_CXX=no
  39095. + case $host_os in
  39096. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  39097. + *)
  39098. + # The compiler driver will combine and reorder linker options,
  39099. + # but understands `-z linker_flag'.
  39100. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  39101. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  39102. + ;;
  39103. + esac
  39104. + link_all_deplibs_CXX=yes
  39105. - # When large executables or shared objects are built, AIX ld can
  39106. - # have problems creating the table of contents. If linking a library
  39107. - # or program results in "error TOC overflow" add -mminimal-toc to
  39108. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  39109. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  39110. + output_verbose_link_cmd='echo'
  39111. - archive_cmds_GCJ=''
  39112. - hardcode_direct_GCJ=yes
  39113. - hardcode_libdir_separator_GCJ=':'
  39114. - link_all_deplibs_GCJ=yes
  39115. + # Archives containing C++ object files must be created using
  39116. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  39117. + # necessary to make sure instantiated templates are included
  39118. + # in the archive.
  39119. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  39120. + ;;
  39121. + gcx*)
  39122. + # Green Hills C++ Compiler
  39123. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39124. - if test "$GCC" = yes; then
  39125. - case $host_os in aix4.[012]|aix4.[012].*)
  39126. - # We only want to do this on AIX 4.2 and lower, the check
  39127. - # below for broken collect2 doesn't work under 4.3+
  39128. - collect2name=`${CC} -print-prog-name=collect2`
  39129. - if test -f "$collect2name" && \
  39130. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  39131. - then
  39132. - # We have reworked collect2
  39133. - hardcode_direct_GCJ=yes
  39134. - else
  39135. - # We have old collect2
  39136. - hardcode_direct_GCJ=unsupported
  39137. - # It fails to find uninstalled libraries when the uninstalled
  39138. - # path is not listed in the libpath. Setting hardcode_minus_L
  39139. - # to unsupported forces relinking
  39140. - hardcode_minus_L_GCJ=yes
  39141. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39142. - hardcode_libdir_separator_GCJ=
  39143. - fi
  39144. - ;;
  39145. - esac
  39146. - shared_flag='-shared'
  39147. - if test "$aix_use_runtimelinking" = yes; then
  39148. - shared_flag="$shared_flag "'${wl}-G'
  39149. - fi
  39150. - else
  39151. - # not using gcc
  39152. - if test "$host_cpu" = ia64; then
  39153. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  39154. - # chokes on -Wl,-G. The following line is correct:
  39155. - shared_flag='-G'
  39156. - else
  39157. - if test "$aix_use_runtimelinking" = yes; then
  39158. - shared_flag='${wl}-G'
  39159. - else
  39160. - shared_flag='${wl}-bM:SRE'
  39161. - fi
  39162. - fi
  39163. - fi
  39164. + # The C++ compiler must be used to create the archive.
  39165. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  39166. + ;;
  39167. + *)
  39168. + # GNU C++ compiler with Solaris linker
  39169. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  39170. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  39171. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  39172. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39173. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39174. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  39175. +
  39176. + # Commands to make compiler produce verbose output that lists
  39177. + # what "hidden" libraries, object files and flags are used when
  39178. + # linking a shared library.
  39179. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39180. + else
  39181. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  39182. + # platform.
  39183. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  39184. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39185. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  39186. +
  39187. + # Commands to make compiler produce verbose output that lists
  39188. + # what "hidden" libraries, object files and flags are used when
  39189. + # linking a shared library.
  39190. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39191. + fi
  39192. +
  39193. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  39194. + case $host_os in
  39195. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  39196. + *)
  39197. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  39198. + ;;
  39199. + esac
  39200. + fi
  39201. + ;;
  39202. + esac
  39203. + ;;
  39204. - # It seems that -bexpall does not export symbols beginning with
  39205. - # underscore (_), so it is better to generate a list of symbols to export.
  39206. - always_export_symbols_GCJ=yes
  39207. - if test "$aix_use_runtimelinking" = yes; then
  39208. - # Warning - without using the other runtime loading flags (-brtl),
  39209. - # -berok will link without error, but may produce a broken library.
  39210. - allow_undefined_flag_GCJ='-berok'
  39211. - # Determine the default libpath from the value encoded in an empty executable.
  39212. - cat >conftest.$ac_ext <<_ACEOF
  39213. -/* confdefs.h. */
  39214. -_ACEOF
  39215. -cat confdefs.h >>conftest.$ac_ext
  39216. -cat >>conftest.$ac_ext <<_ACEOF
  39217. -/* end confdefs.h. */
  39218. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  39219. + no_undefined_flag_CXX='${wl}-z,text'
  39220. + archive_cmds_need_lc_CXX=no
  39221. + hardcode_shlibpath_var_CXX=no
  39222. + runpath_var='LD_RUN_PATH'
  39223. -int
  39224. -main ()
  39225. -{
  39226. + case $cc_basename in
  39227. + CC*)
  39228. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39229. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39230. + ;;
  39231. + *)
  39232. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39233. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39234. + ;;
  39235. + esac
  39236. + ;;
  39237. - ;
  39238. - return 0;
  39239. -}
  39240. -_ACEOF
  39241. -rm -f conftest.$ac_objext conftest$ac_exeext
  39242. -if { (ac_try="$ac_link"
  39243. -case "(($ac_try" in
  39244. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39245. - *) ac_try_echo=$ac_try;;
  39246. -esac
  39247. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39248. - (eval "$ac_link") 2>conftest.er1
  39249. - ac_status=$?
  39250. - grep -v '^ *+' conftest.er1 >conftest.err
  39251. - rm -f conftest.er1
  39252. - cat conftest.err >&5
  39253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39254. - (exit $ac_status); } && {
  39255. - test -z "$ac_c_werror_flag" ||
  39256. - test ! -s conftest.err
  39257. - } && test -s conftest$ac_exeext &&
  39258. - $as_test_x conftest$ac_exeext; then
  39259. + sysv5* | sco3.2v5* | sco5v6*)
  39260. + # Note: We can NOT use -z defs as we might desire, because we do not
  39261. + # link with -lc, and that would cause any symbols used from libc to
  39262. + # always be unresolved, which means just about no library would
  39263. + # ever link correctly. If we're not using GNU ld we use -z text
  39264. + # though, which does catch some bad symbols but isn't as heavy-handed
  39265. + # as -z defs.
  39266. + no_undefined_flag_CXX='${wl}-z,text'
  39267. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  39268. + archive_cmds_need_lc_CXX=no
  39269. + hardcode_shlibpath_var_CXX=no
  39270. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  39271. + hardcode_libdir_separator_CXX=':'
  39272. + link_all_deplibs_CXX=yes
  39273. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  39274. + runpath_var='LD_RUN_PATH'
  39275. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  39276. -}'`
  39277. -# Check for a 64-bit object if we didn't find anything.
  39278. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  39279. -}'`; fi
  39280. -else
  39281. - echo "$as_me: failed program was:" >&5
  39282. -sed 's/^/| /' conftest.$ac_ext >&5
  39283. + case $cc_basename in
  39284. + CC*)
  39285. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39286. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39287. + ;;
  39288. + *)
  39289. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39290. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39291. + ;;
  39292. + esac
  39293. + ;;
  39294. + tandem*)
  39295. + case $cc_basename in
  39296. + NCC*)
  39297. + # NonStop-UX NCC 3.20
  39298. + # FIXME: insert proper C++ library support
  39299. + ld_shlibs_CXX=no
  39300. + ;;
  39301. + *)
  39302. + # FIXME: insert proper C++ library support
  39303. + ld_shlibs_CXX=no
  39304. + ;;
  39305. + esac
  39306. + ;;
  39307. -fi
  39308. + vxworks*)
  39309. + # FIXME: insert proper C++ library support
  39310. + ld_shlibs_CXX=no
  39311. + ;;
  39312. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39313. - conftest$ac_exeext conftest.$ac_ext
  39314. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  39315. + *)
  39316. + # FIXME: insert proper C++ library support
  39317. + ld_shlibs_CXX=no
  39318. + ;;
  39319. + esac
  39320. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  39321. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  39322. - else
  39323. - if test "$host_cpu" = ia64; then
  39324. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  39325. - allow_undefined_flag_GCJ="-z nodefs"
  39326. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  39327. - else
  39328. - # Determine the default libpath from the value encoded in an empty executable.
  39329. - cat >conftest.$ac_ext <<_ACEOF
  39330. -/* confdefs.h. */
  39331. -_ACEOF
  39332. -cat confdefs.h >>conftest.$ac_ext
  39333. -cat >>conftest.$ac_ext <<_ACEOF
  39334. -/* end confdefs.h. */
  39335. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  39336. +$as_echo "$ld_shlibs_CXX" >&6; }
  39337. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  39338. +
  39339. + GCC_CXX="$GXX"
  39340. + LD_CXX="$LD"
  39341. +
  39342. + ## CAVEAT EMPTOR:
  39343. + ## There is no encapsulation within the following macros, do not change
  39344. + ## the running order or otherwise move them around unless you know exactly
  39345. + ## what you are doing...
  39346. + # Dependencies to place before and after the object being linked:
  39347. +predep_objects_CXX=
  39348. +postdep_objects_CXX=
  39349. +predeps_CXX=
  39350. +postdeps_CXX=
  39351. +compiler_lib_search_path_CXX=
  39352. -int
  39353. -main ()
  39354. +cat > conftest.$ac_ext <<_LT_EOF
  39355. +class Foo
  39356. {
  39357. +public:
  39358. + Foo (void) { a = 0; }
  39359. +private:
  39360. + int a;
  39361. +};
  39362. +_LT_EOF
  39363. - ;
  39364. - return 0;
  39365. -}
  39366. -_ACEOF
  39367. -rm -f conftest.$ac_objext conftest$ac_exeext
  39368. -if { (ac_try="$ac_link"
  39369. -case "(($ac_try" in
  39370. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39371. - *) ac_try_echo=$ac_try;;
  39372. -esac
  39373. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39374. - (eval "$ac_link") 2>conftest.er1
  39375. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  39376. + (eval $ac_compile) 2>&5
  39377. ac_status=$?
  39378. - grep -v '^ *+' conftest.er1 >conftest.err
  39379. - rm -f conftest.er1
  39380. - cat conftest.err >&5
  39381. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39382. - (exit $ac_status); } && {
  39383. - test -z "$ac_c_werror_flag" ||
  39384. - test ! -s conftest.err
  39385. - } && test -s conftest$ac_exeext &&
  39386. - $as_test_x conftest$ac_exeext; then
  39387. -
  39388. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  39389. -}'`
  39390. -# Check for a 64-bit object if we didn't find anything.
  39391. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  39392. -}'`; fi
  39393. -else
  39394. - echo "$as_me: failed program was:" >&5
  39395. -sed 's/^/| /' conftest.$ac_ext >&5
  39396. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39397. + test $ac_status = 0; }; then
  39398. + # Parse the compiler output and extract the necessary
  39399. + # objects, libraries and library flags.
  39400. + # Sentinel used to keep track of whether or not we are before
  39401. + # the conftest object file.
  39402. + pre_test_object_deps_done=no
  39403. -fi
  39404. + for p in `eval "$output_verbose_link_cmd"`; do
  39405. + case $p in
  39406. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39407. - conftest$ac_exeext conftest.$ac_ext
  39408. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  39409. + -L* | -R* | -l*)
  39410. + # Some compilers place space between "-{L,R}" and the path.
  39411. + # Remove the space.
  39412. + if test $p = "-L" ||
  39413. + test $p = "-R"; then
  39414. + prev=$p
  39415. + continue
  39416. + else
  39417. + prev=
  39418. + fi
  39419. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  39420. - # Warning - without using the other run time loading flags,
  39421. - # -berok will link without error, but may produce a broken library.
  39422. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  39423. - allow_undefined_flag_GCJ=' ${wl}-berok'
  39424. - # Exported symbols can be pulled into shared objects from archives
  39425. - whole_archive_flag_spec_GCJ='$convenience'
  39426. - archive_cmds_need_lc_GCJ=yes
  39427. - # This is similar to how AIX traditionally builds its shared libraries.
  39428. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  39429. - fi
  39430. - fi
  39431. - ;;
  39432. + if test "$pre_test_object_deps_done" = no; then
  39433. + case $p in
  39434. + -L* | -R*)
  39435. + # Internal compiler library paths should come after those
  39436. + # provided the user. The postdeps already come after the
  39437. + # user supplied libs so there is no need to process them.
  39438. + if test -z "$compiler_lib_search_path_CXX"; then
  39439. + compiler_lib_search_path_CXX="${prev}${p}"
  39440. + else
  39441. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  39442. + fi
  39443. + ;;
  39444. + # The "-l" case would never come before the object being
  39445. + # linked, so don't bother handling this case.
  39446. + esac
  39447. + else
  39448. + if test -z "$postdeps_CXX"; then
  39449. + postdeps_CXX="${prev}${p}"
  39450. + else
  39451. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  39452. + fi
  39453. + fi
  39454. + ;;
  39455. - amigaos*)
  39456. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  39457. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39458. - hardcode_minus_L_GCJ=yes
  39459. - # see comment about different semantics on the GNU ld section
  39460. - ld_shlibs_GCJ=no
  39461. - ;;
  39462. + *.$objext)
  39463. + # This assumes that the test object file only shows up
  39464. + # once in the compiler output.
  39465. + if test "$p" = "conftest.$objext"; then
  39466. + pre_test_object_deps_done=yes
  39467. + continue
  39468. + fi
  39469. - bsdi[45]*)
  39470. - export_dynamic_flag_spec_GCJ=-rdynamic
  39471. - ;;
  39472. + if test "$pre_test_object_deps_done" = no; then
  39473. + if test -z "$predep_objects_CXX"; then
  39474. + predep_objects_CXX="$p"
  39475. + else
  39476. + predep_objects_CXX="$predep_objects_CXX $p"
  39477. + fi
  39478. + else
  39479. + if test -z "$postdep_objects_CXX"; then
  39480. + postdep_objects_CXX="$p"
  39481. + else
  39482. + postdep_objects_CXX="$postdep_objects_CXX $p"
  39483. + fi
  39484. + fi
  39485. + ;;
  39486. - cygwin* | mingw* | pw32*)
  39487. - # When not using gcc, we currently assume that we are using
  39488. - # Microsoft Visual C++.
  39489. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  39490. - # no search path for DLLs.
  39491. - hardcode_libdir_flag_spec_GCJ=' '
  39492. - allow_undefined_flag_GCJ=unsupported
  39493. - # Tell ltmain to make .lib files, not .a files.
  39494. - libext=lib
  39495. - # Tell ltmain to make .dll files, not .so files.
  39496. - shrext_cmds=".dll"
  39497. - # FIXME: Setting linknames here is a bad hack.
  39498. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  39499. - # The linker will automatically build a .lib file if we build a DLL.
  39500. - old_archive_From_new_cmds_GCJ='true'
  39501. - # FIXME: Should let the user specify the lib program.
  39502. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  39503. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  39504. - enable_shared_with_static_runtimes_GCJ=yes
  39505. - ;;
  39506. + *) ;; # Ignore the rest.
  39507. - darwin* | rhapsody*)
  39508. - case $host_os in
  39509. - rhapsody* | darwin1.[012])
  39510. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  39511. - ;;
  39512. - *) # Darwin 1.3 on
  39513. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  39514. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  39515. - else
  39516. - case ${MACOSX_DEPLOYMENT_TARGET} in
  39517. - 10.[012])
  39518. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  39519. - ;;
  39520. - 10.*)
  39521. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  39522. - ;;
  39523. - esac
  39524. - fi
  39525. - ;;
  39526. - esac
  39527. - archive_cmds_need_lc_GCJ=no
  39528. - hardcode_direct_GCJ=no
  39529. - hardcode_automatic_GCJ=yes
  39530. - hardcode_shlibpath_var_GCJ=unsupported
  39531. - whole_archive_flag_spec_GCJ=''
  39532. - link_all_deplibs_GCJ=yes
  39533. - if test "$GCC" = yes ; then
  39534. - output_verbose_link_cmd='echo'
  39535. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  39536. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  39537. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  39538. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39539. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39540. - else
  39541. - case $cc_basename in
  39542. - xlc*)
  39543. - output_verbose_link_cmd='echo'
  39544. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  39545. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  39546. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  39547. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39548. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39549. - ;;
  39550. - *)
  39551. - ld_shlibs_GCJ=no
  39552. - ;;
  39553. - esac
  39554. - fi
  39555. - ;;
  39556. + esac
  39557. + done
  39558. - dgux*)
  39559. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39560. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39561. - hardcode_shlibpath_var_GCJ=no
  39562. - ;;
  39563. + # Clean up.
  39564. + rm -f a.out a.exe
  39565. +else
  39566. + echo "libtool.m4: error: problem compiling CXX test program"
  39567. +fi
  39568. - freebsd1*)
  39569. - ld_shlibs_GCJ=no
  39570. - ;;
  39571. +$RM -f confest.$objext
  39572. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  39573. - # support. Future versions do this automatically, but an explicit c++rt0.o
  39574. - # does not break anything, and helps significantly (at the cost of a little
  39575. - # extra space).
  39576. - freebsd2.2*)
  39577. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  39578. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39579. - hardcode_direct_GCJ=yes
  39580. - hardcode_shlibpath_var_GCJ=no
  39581. - ;;
  39582. +# PORTME: override above test on systems where it is broken
  39583. +case $host_os in
  39584. +interix[3-9]*)
  39585. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  39586. + # hack all around it, let's just trust "g++" to DTRT.
  39587. + predep_objects_CXX=
  39588. + postdep_objects_CXX=
  39589. + postdeps_CXX=
  39590. + ;;
  39591. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  39592. - freebsd2*)
  39593. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39594. - hardcode_direct_GCJ=yes
  39595. - hardcode_minus_L_GCJ=yes
  39596. - hardcode_shlibpath_var_GCJ=no
  39597. +linux*)
  39598. + case `$CC -V 2>&1 | sed 5q` in
  39599. + *Sun\ C*)
  39600. + # Sun C++ 5.9
  39601. +
  39602. + # The more standards-conforming stlport4 library is
  39603. + # incompatible with the Cstd library. Avoid specifying
  39604. + # it if it's in CXXFLAGS. Ignore libCrun as
  39605. + # -library=stlport4 depends on it.
  39606. + case " $CXX $CXXFLAGS " in
  39607. + *" -library=stlport4 "*)
  39608. + solaris_use_stlport4=yes
  39609. ;;
  39610. + esac
  39611. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  39612. - freebsd* | dragonfly*)
  39613. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  39614. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39615. - hardcode_direct_GCJ=yes
  39616. - hardcode_shlibpath_var_GCJ=no
  39617. + if test "$solaris_use_stlport4" != yes; then
  39618. + postdeps_CXX='-library=Cstd -library=Crun'
  39619. + fi
  39620. + ;;
  39621. + esac
  39622. + ;;
  39623. +
  39624. +solaris*)
  39625. + case $cc_basename in
  39626. + CC*)
  39627. + # The more standards-conforming stlport4 library is
  39628. + # incompatible with the Cstd library. Avoid specifying
  39629. + # it if it's in CXXFLAGS. Ignore libCrun as
  39630. + # -library=stlport4 depends on it.
  39631. + case " $CXX $CXXFLAGS " in
  39632. + *" -library=stlport4 "*)
  39633. + solaris_use_stlport4=yes
  39634. ;;
  39635. + esac
  39636. - hpux9*)
  39637. - if test "$GCC" = yes; then
  39638. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  39639. - else
  39640. - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  39641. - fi
  39642. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39643. - hardcode_libdir_separator_GCJ=:
  39644. - hardcode_direct_GCJ=yes
  39645. + # Adding this requires a known-good setup of shared libraries for
  39646. + # Sun compiler versions before 5.6, else PIC objects from an old
  39647. + # archive will be linked into the output, leading to subtle bugs.
  39648. + if test "$solaris_use_stlport4" != yes; then
  39649. + postdeps_CXX='-library=Cstd -library=Crun'
  39650. + fi
  39651. + ;;
  39652. + esac
  39653. + ;;
  39654. +esac
  39655. - # hardcode_minus_L: Not really in the search PATH,
  39656. - # but as the default location of the library.
  39657. - hardcode_minus_L_GCJ=yes
  39658. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39659. - ;;
  39660. - hpux10*)
  39661. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  39662. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39663. - else
  39664. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  39665. - fi
  39666. - if test "$with_gnu_ld" = no; then
  39667. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39668. - hardcode_libdir_separator_GCJ=:
  39669. +case " $postdeps_CXX " in
  39670. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  39671. +esac
  39672. + compiler_lib_search_dirs_CXX=
  39673. +if test -n "${compiler_lib_search_path_CXX}"; then
  39674. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  39675. +fi
  39676. - hardcode_direct_GCJ=yes
  39677. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39678. - # hardcode_minus_L: Not really in the search PATH,
  39679. - # but as the default location of the library.
  39680. - hardcode_minus_L_GCJ=yes
  39681. - fi
  39682. - ;;
  39683. - hpux11*)
  39684. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  39685. - case $host_cpu in
  39686. - hppa*64*)
  39687. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39688. - ;;
  39689. - ia64*)
  39690. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  39691. - ;;
  39692. - *)
  39693. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39694. - ;;
  39695. - esac
  39696. - else
  39697. - case $host_cpu in
  39698. - hppa*64*)
  39699. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39700. - ;;
  39701. - ia64*)
  39702. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  39703. - ;;
  39704. - *)
  39705. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39706. - ;;
  39707. - esac
  39708. - fi
  39709. - if test "$with_gnu_ld" = no; then
  39710. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39711. - hardcode_libdir_separator_GCJ=:
  39712. - case $host_cpu in
  39713. - hppa*64*|ia64*)
  39714. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  39715. - hardcode_direct_GCJ=no
  39716. - hardcode_shlibpath_var_GCJ=no
  39717. - ;;
  39718. - *)
  39719. - hardcode_direct_GCJ=yes
  39720. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39721. - # hardcode_minus_L: Not really in the search PATH,
  39722. - # but as the default location of the library.
  39723. - hardcode_minus_L_GCJ=yes
  39724. - ;;
  39725. - esac
  39726. - fi
  39727. - ;;
  39728. - irix5* | irix6* | nonstopux*)
  39729. - if test "$GCC" = yes; then
  39730. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  39731. - else
  39732. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  39733. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  39734. - fi
  39735. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39736. - hardcode_libdir_separator_GCJ=:
  39737. - link_all_deplibs_GCJ=yes
  39738. - ;;
  39739. - netbsd* | netbsdelf*-gnu)
  39740. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  39741. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  39742. - else
  39743. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  39744. - fi
  39745. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39746. - hardcode_direct_GCJ=yes
  39747. - hardcode_shlibpath_var_GCJ=no
  39748. - ;;
  39749. - newsos6)
  39750. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39751. - hardcode_direct_GCJ=yes
  39752. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39753. - hardcode_libdir_separator_GCJ=:
  39754. - hardcode_shlibpath_var_GCJ=no
  39755. - ;;
  39756. - openbsd*)
  39757. - hardcode_direct_GCJ=yes
  39758. - hardcode_shlibpath_var_GCJ=no
  39759. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39760. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39761. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  39762. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  39763. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39764. - else
  39765. - case $host_os in
  39766. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  39767. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39768. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39769. - ;;
  39770. - *)
  39771. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39772. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  39773. - ;;
  39774. - esac
  39775. - fi
  39776. - ;;
  39777. - os2*)
  39778. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39779. - hardcode_minus_L_GCJ=yes
  39780. - allow_undefined_flag_GCJ=unsupported
  39781. - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  39782. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  39783. - ;;
  39784. - osf3*)
  39785. - if test "$GCC" = yes; then
  39786. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  39787. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  39788. - else
  39789. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  39790. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  39791. - fi
  39792. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39793. - hardcode_libdir_separator_GCJ=:
  39794. - ;;
  39795. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  39796. - if test "$GCC" = yes; then
  39797. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  39798. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  39799. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39800. - else
  39801. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  39802. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  39803. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  39804. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  39805. - # Both c and cxx compiler support -rpath directly
  39806. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  39807. - fi
  39808. - hardcode_libdir_separator_GCJ=:
  39809. - ;;
  39810. - solaris*)
  39811. - no_undefined_flag_GCJ=' -z text'
  39812. - if test "$GCC" = yes; then
  39813. - wlarc='${wl}'
  39814. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39815. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39816. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  39817. - else
  39818. - wlarc=''
  39819. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39820. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39821. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  39822. - fi
  39823. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39824. - hardcode_shlibpath_var_GCJ=no
  39825. - case $host_os in
  39826. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  39827. - *)
  39828. - # The compiler driver will combine linker options so we
  39829. - # cannot just pass the convience library names through
  39830. - # without $wl, iff we do not link with $LD.
  39831. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  39832. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  39833. - case $wlarc in
  39834. - '')
  39835. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  39836. - *)
  39837. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  39838. - esac ;;
  39839. - esac
  39840. - link_all_deplibs_GCJ=yes
  39841. - ;;
  39842. - sunos4*)
  39843. - if test "x$host_vendor" = xsequent; then
  39844. - # Use $CC to link under sequent, because it throws in some extra .o
  39845. - # files that make .init and .fini sections work.
  39846. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  39847. - else
  39848. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  39849. - fi
  39850. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39851. - hardcode_direct_GCJ=yes
  39852. - hardcode_minus_L_GCJ=yes
  39853. - hardcode_shlibpath_var_GCJ=no
  39854. - ;;
  39855. - sysv4)
  39856. - case $host_vendor in
  39857. - sni)
  39858. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39859. - hardcode_direct_GCJ=yes # is this really true???
  39860. - ;;
  39861. - siemens)
  39862. - ## LD is ld it makes a PLAMLIB
  39863. - ## CC just makes a GrossModule.
  39864. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  39865. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  39866. - hardcode_direct_GCJ=no
  39867. - ;;
  39868. - motorola)
  39869. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39870. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  39871. - ;;
  39872. - esac
  39873. - runpath_var='LD_RUN_PATH'
  39874. - hardcode_shlibpath_var_GCJ=no
  39875. - ;;
  39876. - sysv4.3*)
  39877. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39878. - hardcode_shlibpath_var_GCJ=no
  39879. - export_dynamic_flag_spec_GCJ='-Bexport'
  39880. - ;;
  39881. - sysv4*MP*)
  39882. - if test -d /usr/nec; then
  39883. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39884. - hardcode_shlibpath_var_GCJ=no
  39885. - runpath_var=LD_RUN_PATH
  39886. - hardcode_runpath_var=yes
  39887. - ld_shlibs_GCJ=yes
  39888. - fi
  39889. - ;;
  39890. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  39891. - no_undefined_flag_GCJ='${wl}-z,text'
  39892. - archive_cmds_need_lc_GCJ=no
  39893. - hardcode_shlibpath_var_GCJ=no
  39894. - runpath_var='LD_RUN_PATH'
  39895. - if test "$GCC" = yes; then
  39896. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39897. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39898. - else
  39899. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39900. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39901. - fi
  39902. - ;;
  39903. - sysv5* | sco3.2v5* | sco5v6*)
  39904. - # Note: We can NOT use -z defs as we might desire, because we do not
  39905. - # link with -lc, and that would cause any symbols used from libc to
  39906. - # always be unresolved, which means just about no library would
  39907. - # ever link correctly. If we're not using GNU ld we use -z text
  39908. - # though, which does catch some bad symbols but isn't as heavy-handed
  39909. - # as -z defs.
  39910. - no_undefined_flag_GCJ='${wl}-z,text'
  39911. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  39912. - archive_cmds_need_lc_GCJ=no
  39913. - hardcode_shlibpath_var_GCJ=no
  39914. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  39915. - hardcode_libdir_separator_GCJ=':'
  39916. - link_all_deplibs_GCJ=yes
  39917. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  39918. - runpath_var='LD_RUN_PATH'
  39919. - if test "$GCC" = yes; then
  39920. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39921. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39922. - else
  39923. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39924. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39925. - fi
  39926. - ;;
  39927. - uts4*)
  39928. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39929. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39930. - hardcode_shlibpath_var_GCJ=no
  39931. - ;;
  39932. - *)
  39933. - ld_shlibs_GCJ=no
  39934. - ;;
  39935. - esac
  39936. - fi
  39937. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  39938. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  39939. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  39940. -#
  39941. -# Do we need to explicitly link libc?
  39942. -#
  39943. -case "x$archive_cmds_need_lc_GCJ" in
  39944. -x|xyes)
  39945. - # Assume -lc should be added
  39946. - archive_cmds_need_lc_GCJ=yes
  39947. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  39948. - case $archive_cmds_GCJ in
  39949. - *'~'*)
  39950. - # FIXME: we may have to deal with multi-command sequences.
  39951. - ;;
  39952. - '$CC '*)
  39953. - # Test whether the compiler implicitly links with -lc since on some
  39954. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  39955. - # to ld, don't add -lc before -lgcc.
  39956. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  39957. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  39958. - $rm conftest*
  39959. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  39960. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39961. - (eval $ac_compile) 2>&5
  39962. - ac_status=$?
  39963. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39964. - (exit $ac_status); } 2>conftest.err; then
  39965. - soname=conftest
  39966. - lib=conftest
  39967. - libobjs=conftest.$ac_objext
  39968. - deplibs=
  39969. - wl=$lt_prog_compiler_wl_GCJ
  39970. - pic_flag=$lt_prog_compiler_pic_GCJ
  39971. - compiler_flags=-v
  39972. - linker_flags=-v
  39973. - verstring=
  39974. - output_objdir=.
  39975. - libname=conftest
  39976. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  39977. - allow_undefined_flag_GCJ=
  39978. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  39979. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  39980. - ac_status=$?
  39981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39982. - (exit $ac_status); }
  39983. - then
  39984. - archive_cmds_need_lc_GCJ=no
  39985. - else
  39986. - archive_cmds_need_lc_GCJ=yes
  39987. - fi
  39988. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  39989. - else
  39990. - cat conftest.err 1>&5
  39991. - fi
  39992. - $rm conftest*
  39993. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  39994. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  39995. - ;;
  39996. - esac
  39997. - fi
  39998. - ;;
  39999. -esac
  40000. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  40001. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  40002. -library_names_spec=
  40003. -libname_spec='lib$name'
  40004. -soname_spec=
  40005. -shrext_cmds=".so"
  40006. -postinstall_cmds=
  40007. -postuninstall_cmds=
  40008. -finish_cmds=
  40009. -finish_eval=
  40010. -shlibpath_var=
  40011. -shlibpath_overrides_runpath=unknown
  40012. -version_type=none
  40013. -dynamic_linker="$host_os ld.so"
  40014. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  40015. -if test "$GCC" = yes; then
  40016. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  40017. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  40018. - # if the path contains ";" then we assume it to be the separator
  40019. - # otherwise default to the standard path separator (i.e. ":") - it is
  40020. - # assumed that no part of a normal pathname contains ";" but that should
  40021. - # okay in the real world where ";" in dirpaths is itself problematic.
  40022. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  40023. - else
  40024. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  40025. - fi
  40026. -else
  40027. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  40028. -fi
  40029. -need_lib_prefix=unknown
  40030. -hardcode_into_libs=no
  40031. -# when you set need_version to no, make sure it does not cause -set_version
  40032. -# flags to be left without arguments
  40033. -need_version=unknown
  40034. -case $host_os in
  40035. -aix3*)
  40036. - version_type=linux
  40037. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  40038. - shlibpath_var=LIBPATH
  40039. + lt_prog_compiler_wl_CXX=
  40040. +lt_prog_compiler_pic_CXX=
  40041. +lt_prog_compiler_static_CXX=
  40042. - # AIX 3 has no versioning support, so we append a major version to the name.
  40043. - soname_spec='${libname}${release}${shared_ext}$major'
  40044. - ;;
  40045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  40046. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  40047. +
  40048. + # C++ specific cases for pic, static, wl, etc.
  40049. + if test "$GXX" = yes; then
  40050. + lt_prog_compiler_wl_CXX='-Wl,'
  40051. + lt_prog_compiler_static_CXX='-static'
  40052. -aix4* | aix5*)
  40053. - version_type=linux
  40054. - need_lib_prefix=no
  40055. - need_version=no
  40056. - hardcode_into_libs=yes
  40057. - if test "$host_cpu" = ia64; then
  40058. - # AIX 5 supports IA64
  40059. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  40060. - shlibpath_var=LD_LIBRARY_PATH
  40061. - else
  40062. - # With GCC up to 2.95.x, collect2 would create an import file
  40063. - # for dependence libraries. The import file would start with
  40064. - # the line `#! .'. This would cause the generated library to
  40065. - # depend on `.', always an invalid library. This was fixed in
  40066. - # development snapshots of GCC prior to 3.0.
  40067. case $host_os in
  40068. - aix4 | aix4.[01] | aix4.[01].*)
  40069. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  40070. - echo ' yes '
  40071. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  40072. - :
  40073. - else
  40074. - can_build_shared=no
  40075. + aix*)
  40076. + # All AIX code is PIC.
  40077. + if test "$host_cpu" = ia64; then
  40078. + # AIX 5 now supports IA64 processor
  40079. + lt_prog_compiler_static_CXX='-Bstatic'
  40080. fi
  40081. ;;
  40082. - esac
  40083. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  40084. - # soname into executable. Probably we can add versioning support to
  40085. - # collect2, so additional links can be useful in future.
  40086. - if test "$aix_use_runtimelinking" = yes; then
  40087. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  40088. - # instead of lib<name>.a to let people know that these are not
  40089. - # typical AIX shared libraries.
  40090. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40091. - else
  40092. - # We preserve .a as extension for shared libraries through AIX4.2
  40093. - # and later when we are not doing run time linking.
  40094. - library_names_spec='${libname}${release}.a $libname.a'
  40095. - soname_spec='${libname}${release}${shared_ext}$major'
  40096. - fi
  40097. - shlibpath_var=LIBPATH
  40098. - fi
  40099. - ;;
  40100. -
  40101. -amigaos*)
  40102. - library_names_spec='$libname.ixlibrary $libname.a'
  40103. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  40104. - 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'
  40105. - ;;
  40106. -
  40107. -beos*)
  40108. - library_names_spec='${libname}${shared_ext}'
  40109. - dynamic_linker="$host_os ld.so"
  40110. - shlibpath_var=LIBRARY_PATH
  40111. - ;;
  40112. -
  40113. -bsdi[45]*)
  40114. - version_type=linux
  40115. - need_version=no
  40116. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40117. - soname_spec='${libname}${release}${shared_ext}$major'
  40118. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  40119. - shlibpath_var=LD_LIBRARY_PATH
  40120. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  40121. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  40122. - # the default ld.so.conf also contains /usr/contrib/lib and
  40123. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  40124. - # libtool to hard-code these into programs
  40125. - ;;
  40126. -
  40127. -cygwin* | mingw* | pw32*)
  40128. - version_type=windows
  40129. - shrext_cmds=".dll"
  40130. - need_version=no
  40131. - need_lib_prefix=no
  40132. - case $GCC,$host_os in
  40133. - yes,cygwin* | yes,mingw* | yes,pw32*)
  40134. - library_names_spec='$libname.dll.a'
  40135. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  40136. - postinstall_cmds='base_file=`basename \${file}`~
  40137. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  40138. - dldir=$destdir/`dirname \$dlpath`~
  40139. - test -d \$dldir || mkdir -p \$dldir~
  40140. - $install_prog $dir/$dlname \$dldir/$dlname~
  40141. - chmod a+x \$dldir/$dlname'
  40142. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  40143. - dlpath=$dir/\$dldll~
  40144. - $rm \$dlpath'
  40145. - shlibpath_overrides_runpath=yes
  40146. + amigaos*)
  40147. + case $host_cpu in
  40148. + powerpc)
  40149. + # see comment about AmigaOS4 .so support
  40150. + lt_prog_compiler_pic_CXX='-fPIC'
  40151. + ;;
  40152. + m68k)
  40153. + # FIXME: we need at least 68020 code to build shared libraries, but
  40154. + # adding the `-m68020' flag to GCC prevents building anything better,
  40155. + # like `-m68040'.
  40156. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  40157. + ;;
  40158. + esac
  40159. + ;;
  40160. - case $host_os in
  40161. - cygwin*)
  40162. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  40163. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40164. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  40165. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  40166. + # PIC is the default for these OSes.
  40167. ;;
  40168. - mingw*)
  40169. - # MinGW DLLs use traditional 'lib' prefix
  40170. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40171. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  40172. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  40173. - # It is most probably a Windows format PATH printed by
  40174. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  40175. - # path with ; separators, and with drive letters. We can handle the
  40176. - # drive letters (cygwin fileutils understands them), so leave them,
  40177. - # especially as we might pass files found there to a mingw objdump,
  40178. - # which wouldn't understand a cygwinified path. Ahh.
  40179. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  40180. - else
  40181. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  40182. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  40183. + # This hack is so that the source file can tell whether it is being
  40184. + # built for inclusion in a dll (and should export symbols for example).
  40185. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  40186. + # (--disable-auto-import) libraries
  40187. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  40188. + ;;
  40189. + darwin* | rhapsody*)
  40190. + # PIC is the default on this platform
  40191. + # Common symbols not allowed in MH_DYLIB files
  40192. + lt_prog_compiler_pic_CXX='-fno-common'
  40193. + ;;
  40194. + *djgpp*)
  40195. + # DJGPP does not support shared libraries at all
  40196. + lt_prog_compiler_pic_CXX=
  40197. + ;;
  40198. + interix[3-9]*)
  40199. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  40200. + # Instead, we relocate shared libraries at runtime.
  40201. + ;;
  40202. + sysv4*MP*)
  40203. + if test -d /usr/nec; then
  40204. + lt_prog_compiler_pic_CXX=-Kconform_pic
  40205. fi
  40206. ;;
  40207. - pw32*)
  40208. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  40209. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40210. + hpux*)
  40211. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  40212. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  40213. + # sets the default TLS model and affects inlining.
  40214. + case $host_cpu in
  40215. + hppa*64*)
  40216. + ;;
  40217. + *)
  40218. + lt_prog_compiler_pic_CXX='-fPIC'
  40219. + ;;
  40220. + esac
  40221. + ;;
  40222. + *qnx* | *nto*)
  40223. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  40224. + # it will coredump.
  40225. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  40226. + ;;
  40227. + *)
  40228. + lt_prog_compiler_pic_CXX='-fPIC'
  40229. ;;
  40230. esac
  40231. - ;;
  40232. -
  40233. - *)
  40234. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  40235. - ;;
  40236. - esac
  40237. - dynamic_linker='Win32 ld.exe'
  40238. - # FIXME: first we should search . and the directory the executable is in
  40239. - shlibpath_var=PATH
  40240. - ;;
  40241. -
  40242. -darwin* | rhapsody*)
  40243. - dynamic_linker="$host_os dyld"
  40244. - version_type=darwin
  40245. - need_lib_prefix=no
  40246. - need_version=no
  40247. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  40248. - soname_spec='${libname}${release}${major}$shared_ext'
  40249. - shlibpath_overrides_runpath=yes
  40250. - shlibpath_var=DYLD_LIBRARY_PATH
  40251. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  40252. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  40253. - if test "$GCC" = yes; then
  40254. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  40255. - else
  40256. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  40257. - fi
  40258. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  40259. - ;;
  40260. -
  40261. -dgux*)
  40262. - version_type=linux
  40263. - need_lib_prefix=no
  40264. - need_version=no
  40265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  40266. - soname_spec='${libname}${release}${shared_ext}$major'
  40267. - shlibpath_var=LD_LIBRARY_PATH
  40268. - ;;
  40269. -
  40270. -freebsd1*)
  40271. - dynamic_linker=no
  40272. - ;;
  40273. -
  40274. -freebsd* | dragonfly*)
  40275. - # DragonFly does not have aout. When/if they implement a new
  40276. - # versioning mechanism, adjust this.
  40277. - if test -x /usr/bin/objformat; then
  40278. - objformat=`/usr/bin/objformat`
  40279. else
  40280. case $host_os in
  40281. - freebsd[123]*) objformat=aout ;;
  40282. - *) objformat=elf ;;
  40283. - esac
  40284. - fi
  40285. - version_type=freebsd-$objformat
  40286. - case $version_type in
  40287. - freebsd-elf*)
  40288. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  40289. - need_version=no
  40290. - need_lib_prefix=no
  40291. - ;;
  40292. - freebsd-*)
  40293. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  40294. - need_version=yes
  40295. - ;;
  40296. - esac
  40297. - shlibpath_var=LD_LIBRARY_PATH
  40298. - case $host_os in
  40299. - freebsd2*)
  40300. - shlibpath_overrides_runpath=yes
  40301. - ;;
  40302. - freebsd3.[01]* | freebsdelf3.[01]*)
  40303. - shlibpath_overrides_runpath=yes
  40304. - hardcode_into_libs=yes
  40305. - ;;
  40306. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  40307. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  40308. - shlibpath_overrides_runpath=no
  40309. - hardcode_into_libs=yes
  40310. - ;;
  40311. - freebsd*) # from 4.6 on
  40312. - shlibpath_overrides_runpath=yes
  40313. - hardcode_into_libs=yes
  40314. - ;;
  40315. - esac
  40316. - ;;
  40317. -
  40318. -gnu*)
  40319. - version_type=linux
  40320. - need_lib_prefix=no
  40321. - need_version=no
  40322. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  40323. - soname_spec='${libname}${release}${shared_ext}$major'
  40324. - shlibpath_var=LD_LIBRARY_PATH
  40325. - hardcode_into_libs=yes
  40326. - ;;
  40327. -
  40328. -hpux9* | hpux10* | hpux11*)
  40329. - # Give a soname corresponding to the major version so that dld.sl refuses to
  40330. - # link against other versions.
  40331. - version_type=sunos
  40332. - need_lib_prefix=no
  40333. - need_version=no
  40334. - case $host_cpu in
  40335. - ia64*)
  40336. - shrext_cmds='.so'
  40337. - hardcode_into_libs=yes
  40338. - dynamic_linker="$host_os dld.so"
  40339. - shlibpath_var=LD_LIBRARY_PATH
  40340. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  40341. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40342. - soname_spec='${libname}${release}${shared_ext}$major'
  40343. - if test "X$HPUX_IA64_MODE" = X32; then
  40344. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  40345. - else
  40346. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  40347. - fi
  40348. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  40349. - ;;
  40350. - hppa*64*)
  40351. - shrext_cmds='.sl'
  40352. - hardcode_into_libs=yes
  40353. - dynamic_linker="$host_os dld.sl"
  40354. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  40355. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  40356. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40357. - soname_spec='${libname}${release}${shared_ext}$major'
  40358. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  40359. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  40360. - ;;
  40361. - *)
  40362. - shrext_cmds='.sl'
  40363. - dynamic_linker="$host_os dld.sl"
  40364. - shlibpath_var=SHLIB_PATH
  40365. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  40366. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40367. - soname_spec='${libname}${release}${shared_ext}$major'
  40368. - ;;
  40369. - esac
  40370. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  40371. - postinstall_cmds='chmod 555 $lib'
  40372. - ;;
  40373. -
  40374. -interix3*)
  40375. - version_type=linux
  40376. - need_lib_prefix=no
  40377. - need_version=no
  40378. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40379. - soname_spec='${libname}${release}${shared_ext}$major'
  40380. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  40381. - shlibpath_var=LD_LIBRARY_PATH
  40382. - shlibpath_overrides_runpath=no
  40383. - hardcode_into_libs=yes
  40384. - ;;
  40385. -
  40386. -irix5* | irix6* | nonstopux*)
  40387. - case $host_os in
  40388. - nonstopux*) version_type=nonstopux ;;
  40389. - *)
  40390. - if test "$lt_cv_prog_gnu_ld" = yes; then
  40391. - version_type=linux
  40392. + aix[4-9]*)
  40393. + # All AIX code is PIC.
  40394. + if test "$host_cpu" = ia64; then
  40395. + # AIX 5 now supports IA64 processor
  40396. + lt_prog_compiler_static_CXX='-Bstatic'
  40397. else
  40398. - version_type=irix
  40399. - fi ;;
  40400. - esac
  40401. - need_lib_prefix=no
  40402. - need_version=no
  40403. - soname_spec='${libname}${release}${shared_ext}$major'
  40404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  40405. - case $host_os in
  40406. - irix5* | nonstopux*)
  40407. - libsuff= shlibsuff=
  40408. - ;;
  40409. - *)
  40410. - case $LD in # libtool.m4 will add one of these switches to LD
  40411. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  40412. - libsuff= shlibsuff= libmagic=32-bit;;
  40413. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  40414. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  40415. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  40416. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  40417. - *) libsuff= shlibsuff= libmagic=never-match;;
  40418. - esac
  40419. - ;;
  40420. - esac
  40421. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  40422. - shlibpath_overrides_runpath=no
  40423. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  40424. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  40425. - hardcode_into_libs=yes
  40426. - ;;
  40427. -
  40428. -# No shared lib support for Linux oldld, aout, or coff.
  40429. -linux*oldld* | linux*aout* | linux*coff*)
  40430. - dynamic_linker=no
  40431. - ;;
  40432. -
  40433. -# This must be Linux ELF.
  40434. -linux* | k*bsd*-gnu)
  40435. - version_type=linux
  40436. - need_lib_prefix=no
  40437. - need_version=no
  40438. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40439. - soname_spec='${libname}${release}${shared_ext}$major'
  40440. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  40441. - shlibpath_var=LD_LIBRARY_PATH
  40442. - shlibpath_overrides_runpath=no
  40443. - # This implies no fast_install, which is unacceptable.
  40444. - # Some rework will be needed to allow for fast_install
  40445. - # before this can be enabled.
  40446. - hardcode_into_libs=yes
  40447. -
  40448. - # Append ld.so.conf contents to the search path
  40449. - if test -f /etc/ld.so.conf; then
  40450. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  40451. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  40452. - fi
  40453. -
  40454. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  40455. - # powerpc, because MkLinux only supported shared libraries with the
  40456. - # GNU dynamic linker. Since this was broken with cross compilers,
  40457. - # most powerpc-linux boxes support dynamic linking these days and
  40458. - # people can always --disable-shared, the test was removed, and we
  40459. - # assume the GNU/Linux dynamic linker is in use.
  40460. - dynamic_linker='GNU/Linux ld.so'
  40461. - ;;
  40462. -
  40463. -netbsdelf*-gnu)
  40464. - version_type=linux
  40465. - need_lib_prefix=no
  40466. - need_version=no
  40467. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40468. - soname_spec='${libname}${release}${shared_ext}$major'
  40469. - shlibpath_var=LD_LIBRARY_PATH
  40470. - shlibpath_overrides_runpath=no
  40471. - hardcode_into_libs=yes
  40472. - dynamic_linker='NetBSD ld.elf_so'
  40473. - ;;
  40474. -
  40475. -netbsd*)
  40476. - version_type=sunos
  40477. - need_lib_prefix=no
  40478. - need_version=no
  40479. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  40480. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40481. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40482. - dynamic_linker='NetBSD (a.out) ld.so'
  40483. - else
  40484. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40485. - soname_spec='${libname}${release}${shared_ext}$major'
  40486. - dynamic_linker='NetBSD ld.elf_so'
  40487. - fi
  40488. - shlibpath_var=LD_LIBRARY_PATH
  40489. - shlibpath_overrides_runpath=yes
  40490. - hardcode_into_libs=yes
  40491. - ;;
  40492. -
  40493. -newsos6)
  40494. - version_type=linux
  40495. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40496. - shlibpath_var=LD_LIBRARY_PATH
  40497. - shlibpath_overrides_runpath=yes
  40498. - ;;
  40499. -
  40500. -nto-qnx*)
  40501. - version_type=linux
  40502. - need_lib_prefix=no
  40503. - need_version=no
  40504. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40505. - soname_spec='${libname}${release}${shared_ext}$major'
  40506. - shlibpath_var=LD_LIBRARY_PATH
  40507. - shlibpath_overrides_runpath=yes
  40508. - ;;
  40509. -
  40510. -openbsd*)
  40511. - version_type=sunos
  40512. - sys_lib_dlsearch_path_spec="/usr/lib"
  40513. - need_lib_prefix=no
  40514. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  40515. - case $host_os in
  40516. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  40517. - *) need_version=no ;;
  40518. - esac
  40519. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40520. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40521. - shlibpath_var=LD_LIBRARY_PATH
  40522. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  40523. - case $host_os in
  40524. - openbsd2.[89] | openbsd2.[89].*)
  40525. - shlibpath_overrides_runpath=no
  40526. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  40527. + fi
  40528. ;;
  40529. - *)
  40530. - shlibpath_overrides_runpath=yes
  40531. + chorus*)
  40532. + case $cc_basename in
  40533. + cxch68*)
  40534. + # Green Hills C++ Compiler
  40535. + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  40536. + ;;
  40537. + esac
  40538. ;;
  40539. - esac
  40540. - else
  40541. - shlibpath_overrides_runpath=yes
  40542. - fi
  40543. - ;;
  40544. -
  40545. -os2*)
  40546. - libname_spec='$name'
  40547. - shrext_cmds=".dll"
  40548. - need_lib_prefix=no
  40549. - library_names_spec='$libname${shared_ext} $libname.a'
  40550. - dynamic_linker='OS/2 ld.exe'
  40551. - shlibpath_var=LIBPATH
  40552. - ;;
  40553. -
  40554. -osf3* | osf4* | osf5*)
  40555. - version_type=osf
  40556. - need_lib_prefix=no
  40557. - need_version=no
  40558. - soname_spec='${libname}${release}${shared_ext}$major'
  40559. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40560. - shlibpath_var=LD_LIBRARY_PATH
  40561. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  40562. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  40563. - ;;
  40564. -
  40565. -solaris*)
  40566. - version_type=linux
  40567. - need_lib_prefix=no
  40568. - need_version=no
  40569. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40570. - soname_spec='${libname}${release}${shared_ext}$major'
  40571. - shlibpath_var=LD_LIBRARY_PATH
  40572. - shlibpath_overrides_runpath=yes
  40573. - hardcode_into_libs=yes
  40574. - # ldd complains unless libraries are executable
  40575. - postinstall_cmds='chmod +x $lib'
  40576. - ;;
  40577. -
  40578. -sunos4*)
  40579. - version_type=sunos
  40580. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40581. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  40582. - shlibpath_var=LD_LIBRARY_PATH
  40583. - shlibpath_overrides_runpath=yes
  40584. - if test "$with_gnu_ld" = yes; then
  40585. - need_lib_prefix=no
  40586. - fi
  40587. - need_version=yes
  40588. - ;;
  40589. -
  40590. -sysv4 | sysv4.3*)
  40591. - version_type=linux
  40592. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40593. - soname_spec='${libname}${release}${shared_ext}$major'
  40594. - shlibpath_var=LD_LIBRARY_PATH
  40595. - case $host_vendor in
  40596. - sni)
  40597. - shlibpath_overrides_runpath=no
  40598. - need_lib_prefix=no
  40599. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  40600. - runpath_var=LD_RUN_PATH
  40601. - ;;
  40602. - siemens)
  40603. - need_lib_prefix=no
  40604. - ;;
  40605. - motorola)
  40606. - need_lib_prefix=no
  40607. - need_version=no
  40608. - shlibpath_overrides_runpath=no
  40609. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  40610. - ;;
  40611. - esac
  40612. - ;;
  40613. -
  40614. -sysv4*MP*)
  40615. - if test -d /usr/nec ;then
  40616. - version_type=linux
  40617. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  40618. - soname_spec='$libname${shared_ext}.$major'
  40619. - shlibpath_var=LD_LIBRARY_PATH
  40620. - fi
  40621. - ;;
  40622. -
  40623. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  40624. - version_type=freebsd-elf
  40625. - need_lib_prefix=no
  40626. - need_version=no
  40627. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  40628. - soname_spec='${libname}${release}${shared_ext}$major'
  40629. - shlibpath_var=LD_LIBRARY_PATH
  40630. - hardcode_into_libs=yes
  40631. - if test "$with_gnu_ld" = yes; then
  40632. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  40633. - shlibpath_overrides_runpath=no
  40634. - else
  40635. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  40636. - shlibpath_overrides_runpath=yes
  40637. - case $host_os in
  40638. - sco3.2v5*)
  40639. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  40640. - ;;
  40641. - esac
  40642. - fi
  40643. - sys_lib_dlsearch_path_spec='/usr/lib'
  40644. - ;;
  40645. -
  40646. -uts4*)
  40647. - version_type=linux
  40648. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40649. - soname_spec='${libname}${release}${shared_ext}$major'
  40650. - shlibpath_var=LD_LIBRARY_PATH
  40651. - ;;
  40652. -
  40653. -*)
  40654. - dynamic_linker=no
  40655. - ;;
  40656. -esac
  40657. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  40658. -echo "${ECHO_T}$dynamic_linker" >&6; }
  40659. -test "$dynamic_linker" = no && can_build_shared=no
  40660. -
  40661. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  40662. -if test "$GCC" = yes; then
  40663. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  40664. -fi
  40665. -
  40666. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  40667. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  40668. -hardcode_action_GCJ=
  40669. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  40670. - test -n "$runpath_var_GCJ" || \
  40671. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  40672. -
  40673. - # We can hardcode non-existant directories.
  40674. - if test "$hardcode_direct_GCJ" != no &&
  40675. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  40676. - # have to relink, otherwise we might link with an installed library
  40677. - # when we should be linking with a yet-to-be-installed one
  40678. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  40679. - test "$hardcode_minus_L_GCJ" != no; then
  40680. - # Linking always hardcodes the temporary library directory.
  40681. - hardcode_action_GCJ=relink
  40682. - else
  40683. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  40684. - hardcode_action_GCJ=immediate
  40685. - fi
  40686. -else
  40687. - # We cannot hardcode anything, or else we can only hardcode existing
  40688. - # directories.
  40689. - hardcode_action_GCJ=unsupported
  40690. -fi
  40691. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  40692. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  40693. -
  40694. -if test "$hardcode_action_GCJ" = relink; then
  40695. - # Fast installation is not supported
  40696. - enable_fast_install=no
  40697. -elif test "$shlibpath_overrides_runpath" = yes ||
  40698. - test "$enable_shared" = no; then
  40699. - # Fast installation is not necessary
  40700. - enable_fast_install=needless
  40701. -fi
  40702. -
  40703. -
  40704. -# The else clause should only fire when bootstrapping the
  40705. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  40706. -# with your package, and you will get complaints that there are
  40707. -# no rules to generate ltmain.sh.
  40708. -if test -f "$ltmain"; then
  40709. - # See if we are running on zsh, and set the options which allow our commands through
  40710. - # without removal of \ escapes.
  40711. - if test -n "${ZSH_VERSION+set}" ; then
  40712. - setopt NO_GLOB_SUBST
  40713. - fi
  40714. - # Now quote all the things that may contain metacharacters while being
  40715. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  40716. - # variables and quote the copies for generation of the libtool script.
  40717. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  40718. - SED SHELL STRIP \
  40719. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  40720. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  40721. - deplibs_check_method reload_flag reload_cmds need_locks \
  40722. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  40723. - lt_cv_sys_global_symbol_to_c_name_address \
  40724. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  40725. - old_postinstall_cmds old_postuninstall_cmds \
  40726. - compiler_GCJ \
  40727. - CC_GCJ \
  40728. - LD_GCJ \
  40729. - lt_prog_compiler_wl_GCJ \
  40730. - lt_prog_compiler_pic_GCJ \
  40731. - lt_prog_compiler_static_GCJ \
  40732. - lt_prog_compiler_no_builtin_flag_GCJ \
  40733. - export_dynamic_flag_spec_GCJ \
  40734. - thread_safe_flag_spec_GCJ \
  40735. - whole_archive_flag_spec_GCJ \
  40736. - enable_shared_with_static_runtimes_GCJ \
  40737. - old_archive_cmds_GCJ \
  40738. - old_archive_from_new_cmds_GCJ \
  40739. - predep_objects_GCJ \
  40740. - postdep_objects_GCJ \
  40741. - predeps_GCJ \
  40742. - postdeps_GCJ \
  40743. - compiler_lib_search_path_GCJ \
  40744. - archive_cmds_GCJ \
  40745. - archive_expsym_cmds_GCJ \
  40746. - postinstall_cmds_GCJ \
  40747. - postuninstall_cmds_GCJ \
  40748. - old_archive_from_expsyms_cmds_GCJ \
  40749. - allow_undefined_flag_GCJ \
  40750. - no_undefined_flag_GCJ \
  40751. - export_symbols_cmds_GCJ \
  40752. - hardcode_libdir_flag_spec_GCJ \
  40753. - hardcode_libdir_flag_spec_ld_GCJ \
  40754. - hardcode_libdir_separator_GCJ \
  40755. - hardcode_automatic_GCJ \
  40756. - module_cmds_GCJ \
  40757. - module_expsym_cmds_GCJ \
  40758. - lt_cv_prog_compiler_c_o_GCJ \
  40759. - exclude_expsyms_GCJ \
  40760. - include_expsyms_GCJ; do
  40761. -
  40762. - case $var in
  40763. - old_archive_cmds_GCJ | \
  40764. - old_archive_from_new_cmds_GCJ | \
  40765. - archive_cmds_GCJ | \
  40766. - archive_expsym_cmds_GCJ | \
  40767. - module_cmds_GCJ | \
  40768. - module_expsym_cmds_GCJ | \
  40769. - old_archive_from_expsyms_cmds_GCJ | \
  40770. - export_symbols_cmds_GCJ | \
  40771. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  40772. - postinstall_cmds | postuninstall_cmds | \
  40773. - old_postinstall_cmds | old_postuninstall_cmds | \
  40774. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  40775. - # Double-quote double-evaled strings.
  40776. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  40777. - ;;
  40778. - *)
  40779. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  40780. - ;;
  40781. - esac
  40782. - done
  40783. -
  40784. - case $lt_echo in
  40785. - *'\$0 --fallback-echo"')
  40786. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  40787. - ;;
  40788. - esac
  40789. -
  40790. -cfgfile="$ofile"
  40791. -
  40792. - cat <<__EOF__ >> "$cfgfile"
  40793. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  40794. -
  40795. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40796. -
  40797. -# Shell to use when invoking shell scripts.
  40798. -SHELL=$lt_SHELL
  40799. -
  40800. -# Whether or not to build shared libraries.
  40801. -build_libtool_libs=$enable_shared
  40802. -
  40803. -# Whether or not to build static libraries.
  40804. -build_old_libs=$enable_static
  40805. -
  40806. -# Whether or not to add -lc for building shared libraries.
  40807. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  40808. -
  40809. -# Whether or not to disallow shared libs when runtime libs are static
  40810. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  40811. -
  40812. -# Whether or not to optimize for fast installation.
  40813. -fast_install=$enable_fast_install
  40814. -
  40815. -# The host system.
  40816. -host_alias=$host_alias
  40817. -host=$host
  40818. -host_os=$host_os
  40819. -
  40820. -# The build system.
  40821. -build_alias=$build_alias
  40822. -build=$build
  40823. -build_os=$build_os
  40824. -
  40825. -# An echo program that does not interpret backslashes.
  40826. -echo=$lt_echo
  40827. -
  40828. -# The archiver.
  40829. -AR=$lt_AR
  40830. -AR_FLAGS=$lt_AR_FLAGS
  40831. -
  40832. -# A C compiler.
  40833. -LTCC=$lt_LTCC
  40834. -
  40835. -# LTCC compiler flags.
  40836. -LTCFLAGS=$lt_LTCFLAGS
  40837. -
  40838. -# A language-specific compiler.
  40839. -CC=$lt_compiler_GCJ
  40840. -
  40841. -# Is the compiler the GNU C compiler?
  40842. -with_gcc=$GCC_GCJ
  40843. -
  40844. -# An ERE matcher.
  40845. -EGREP=$lt_EGREP
  40846. -
  40847. -# The linker used to build libraries.
  40848. -LD=$lt_LD_GCJ
  40849. -
  40850. -# Whether we need hard or soft links.
  40851. -LN_S=$lt_LN_S
  40852. -
  40853. -# A BSD-compatible nm program.
  40854. -NM=$lt_NM
  40855. -
  40856. -# A symbol stripping program
  40857. -STRIP=$lt_STRIP
  40858. -
  40859. -# Used to examine libraries when file_magic_cmd begins "file"
  40860. -MAGIC_CMD=$MAGIC_CMD
  40861. -
  40862. -# Used on cygwin: DLL creation program.
  40863. -DLLTOOL="$DLLTOOL"
  40864. -
  40865. -# Used on cygwin: object dumper.
  40866. -OBJDUMP="$OBJDUMP"
  40867. -
  40868. -# Used on cygwin: assembler.
  40869. -AS="$AS"
  40870. -
  40871. -# The name of the directory that contains temporary libtool files.
  40872. -objdir=$objdir
  40873. -
  40874. -# How to create reloadable object files.
  40875. -reload_flag=$lt_reload_flag
  40876. -reload_cmds=$lt_reload_cmds
  40877. -
  40878. -# How to pass a linker flag through the compiler.
  40879. -wl=$lt_lt_prog_compiler_wl_GCJ
  40880. -
  40881. -# Object file suffix (normally "o").
  40882. -objext="$ac_objext"
  40883. -
  40884. -# Old archive suffix (normally "a").
  40885. -libext="$libext"
  40886. -
  40887. -# Shared library suffix (normally ".so").
  40888. -shrext_cmds='$shrext_cmds'
  40889. -
  40890. -# Executable file suffix (normally "").
  40891. -exeext="$exeext"
  40892. -
  40893. -# Additional compiler flags for building library objects.
  40894. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  40895. -pic_mode=$pic_mode
  40896. -
  40897. -# What is the maximum length of a command?
  40898. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40899. -
  40900. -# Does compiler simultaneously support -c and -o options?
  40901. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  40902. -
  40903. -# Must we lock files when doing compilation?
  40904. -need_locks=$lt_need_locks
  40905. -
  40906. -# Do we need the lib prefix for modules?
  40907. -need_lib_prefix=$need_lib_prefix
  40908. -
  40909. -# Do we need a version for libraries?
  40910. -need_version=$need_version
  40911. -
  40912. -# Whether dlopen is supported.
  40913. -dlopen_support=$enable_dlopen
  40914. -
  40915. -# Whether dlopen of programs is supported.
  40916. -dlopen_self=$enable_dlopen_self
  40917. -
  40918. -# Whether dlopen of statically linked programs is supported.
  40919. -dlopen_self_static=$enable_dlopen_self_static
  40920. -
  40921. -# Compiler flag to prevent dynamic linking.
  40922. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  40923. -
  40924. -# Compiler flag to turn off builtin functions.
  40925. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  40926. -
  40927. -# Compiler flag to allow reflexive dlopens.
  40928. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  40929. -
  40930. -# Compiler flag to generate shared objects directly from archives.
  40931. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  40932. -
  40933. -# Compiler flag to generate thread-safe objects.
  40934. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  40935. -
  40936. -# Library versioning type.
  40937. -version_type=$version_type
  40938. -
  40939. -# Format of library name prefix.
  40940. -libname_spec=$lt_libname_spec
  40941. -
  40942. -# List of archive names. First name is the real one, the rest are links.
  40943. -# The last name is the one that the linker finds with -lNAME.
  40944. -library_names_spec=$lt_library_names_spec
  40945. -
  40946. -# The coded name of the library, if different from the real name.
  40947. -soname_spec=$lt_soname_spec
  40948. -
  40949. -# Commands used to build and install an old-style archive.
  40950. -RANLIB=$lt_RANLIB
  40951. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  40952. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40953. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40954. -
  40955. -# Create an old-style archive from a shared archive.
  40956. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  40957. -
  40958. -# Create a temporary old-style archive to link instead of a shared archive.
  40959. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  40960. -
  40961. -# Commands used to build and install a shared archive.
  40962. -archive_cmds=$lt_archive_cmds_GCJ
  40963. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  40964. -postinstall_cmds=$lt_postinstall_cmds
  40965. -postuninstall_cmds=$lt_postuninstall_cmds
  40966. -
  40967. -# Commands used to build a loadable module (assumed same as above if empty)
  40968. -module_cmds=$lt_module_cmds_GCJ
  40969. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  40970. -
  40971. -# Commands to strip libraries.
  40972. -old_striplib=$lt_old_striplib
  40973. -striplib=$lt_striplib
  40974. -
  40975. -# Dependencies to place before the objects being linked to create a
  40976. -# shared library.
  40977. -predep_objects=$lt_predep_objects_GCJ
  40978. -
  40979. -# Dependencies to place after the objects being linked to create a
  40980. -# shared library.
  40981. -postdep_objects=$lt_postdep_objects_GCJ
  40982. -
  40983. -# Dependencies to place before the objects being linked to create a
  40984. -# shared library.
  40985. -predeps=$lt_predeps_GCJ
  40986. -
  40987. -# Dependencies to place after the objects being linked to create a
  40988. -# shared library.
  40989. -postdeps=$lt_postdeps_GCJ
  40990. -
  40991. -# The library search path used internally by the compiler when linking
  40992. -# a shared library.
  40993. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  40994. -
  40995. -# Method to check whether dependent libraries are shared objects.
  40996. -deplibs_check_method=$lt_deplibs_check_method
  40997. -
  40998. -# Command to use when deplibs_check_method == file_magic.
  40999. -file_magic_cmd=$lt_file_magic_cmd
  41000. -
  41001. -# Flag that allows shared libraries with undefined symbols to be built.
  41002. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  41003. -
  41004. -# Flag that forces no undefined symbols.
  41005. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  41006. -
  41007. -# Commands used to finish a libtool library installation in a directory.
  41008. -finish_cmds=$lt_finish_cmds
  41009. -
  41010. -# Same as above, but a single script fragment to be evaled but not shown.
  41011. -finish_eval=$lt_finish_eval
  41012. -
  41013. -# Take the output of nm and produce a listing of raw symbols and C names.
  41014. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  41015. -
  41016. -# Transform the output of nm in a proper C declaration
  41017. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  41018. -
  41019. -# Transform the output of nm in a C name address pair
  41020. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  41021. -
  41022. -# This is the shared library runtime path variable.
  41023. -runpath_var=$runpath_var
  41024. -
  41025. -# This is the shared library path variable.
  41026. -shlibpath_var=$shlibpath_var
  41027. -
  41028. -# Is shlibpath searched before the hard-coded library search path?
  41029. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41030. -
  41031. -# How to hardcode a shared library path into an executable.
  41032. -hardcode_action=$hardcode_action_GCJ
  41033. -
  41034. -# Whether we should hardcode library paths into libraries.
  41035. -hardcode_into_libs=$hardcode_into_libs
  41036. -
  41037. -# Flag to hardcode \$libdir into a binary during linking.
  41038. -# This must work even if \$libdir does not exist.
  41039. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  41040. -
  41041. -# If ld is used when linking, flag to hardcode \$libdir into
  41042. -# a binary during linking. This must work even if \$libdir does
  41043. -# not exist.
  41044. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  41045. -
  41046. -# Whether we need a single -rpath flag with a separated argument.
  41047. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  41048. -
  41049. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  41050. -# resulting binary.
  41051. -hardcode_direct=$hardcode_direct_GCJ
  41052. -
  41053. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  41054. -# resulting binary.
  41055. -hardcode_minus_L=$hardcode_minus_L_GCJ
  41056. -
  41057. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  41058. -# the resulting binary.
  41059. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  41060. -
  41061. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  41062. -# and all subsequent libraries and executables linked against it.
  41063. -hardcode_automatic=$hardcode_automatic_GCJ
  41064. -
  41065. -# Variables whose values should be saved in libtool wrapper scripts and
  41066. -# restored at relink time.
  41067. -variables_saved_for_relink="$variables_saved_for_relink"
  41068. -
  41069. -# Whether libtool must link a program against all its dependency libraries.
  41070. -link_all_deplibs=$link_all_deplibs_GCJ
  41071. -
  41072. -# Compile-time system search path for libraries
  41073. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41074. -
  41075. -# Run-time system search path for libraries
  41076. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41077. -
  41078. -# Fix the shell variable \$srcfile for the compiler.
  41079. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  41080. -
  41081. -# Set to yes if exported symbols are required.
  41082. -always_export_symbols=$always_export_symbols_GCJ
  41083. -
  41084. -# The commands to list exported symbols.
  41085. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  41086. -
  41087. -# The commands to extract the exported symbol list from a shared archive.
  41088. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41089. -
  41090. -# Symbols that should not be listed in the preloaded symbols.
  41091. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  41092. -
  41093. -# Symbols that must always be exported.
  41094. -include_expsyms=$lt_include_expsyms_GCJ
  41095. -
  41096. -# ### END LIBTOOL TAG CONFIG: $tagname
  41097. -
  41098. -__EOF__
  41099. -
  41100. -
  41101. -else
  41102. - # If there is no Makefile yet, we rely on a make rule to execute
  41103. - # `config.status --recheck' to rerun these tests and create the
  41104. - # libtool script then.
  41105. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  41106. - if test -f "$ltmain_in"; then
  41107. - test -f Makefile && make "$ltmain"
  41108. - fi
  41109. -fi
  41110. -
  41111. -
  41112. -ac_ext=c
  41113. -ac_cpp='$CPP $CPPFLAGS'
  41114. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41115. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41116. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41117. -
  41118. -CC="$lt_save_CC"
  41119. -
  41120. - else
  41121. - tagname=""
  41122. - fi
  41123. - ;;
  41124. -
  41125. - RC)
  41126. -
  41127. -
  41128. -# Source file extension for RC test sources.
  41129. -ac_ext=rc
  41130. -
  41131. -# Object file extension for compiled RC test sources.
  41132. -objext=o
  41133. -objext_RC=$objext
  41134. -
  41135. -# Code to be used in simple compile tests
  41136. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  41137. -
  41138. -# Code to be used in simple link tests
  41139. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  41140. -
  41141. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  41142. -
  41143. -# If no C compiler was specified, use CC.
  41144. -LTCC=${LTCC-"$CC"}
  41145. -
  41146. -# If no C compiler flags were specified, use CFLAGS.
  41147. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  41148. -
  41149. -# Allow CC to be a program name with arguments.
  41150. -compiler=$CC
  41151. -
  41152. -
  41153. -# save warnings/boilerplate of simple test code
  41154. -ac_outfile=conftest.$ac_objext
  41155. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  41156. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  41157. -_lt_compiler_boilerplate=`cat conftest.err`
  41158. -$rm conftest*
  41159. -
  41160. -ac_outfile=conftest.$ac_objext
  41161. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  41162. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  41163. -_lt_linker_boilerplate=`cat conftest.err`
  41164. -$rm conftest*
  41165. -
  41166. -
  41167. -# Allow CC to be a program name with arguments.
  41168. -lt_save_CC="$CC"
  41169. -CC=${RC-"windres"}
  41170. -compiler=$CC
  41171. -compiler_RC=$CC
  41172. -for cc_temp in $compiler""; do
  41173. - case $cc_temp in
  41174. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  41175. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  41176. - \-*) ;;
  41177. - *) break;;
  41178. - esac
  41179. -done
  41180. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  41181. -
  41182. -lt_cv_prog_compiler_c_o_RC=yes
  41183. -
  41184. -# The else clause should only fire when bootstrapping the
  41185. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  41186. -# with your package, and you will get complaints that there are
  41187. -# no rules to generate ltmain.sh.
  41188. -if test -f "$ltmain"; then
  41189. - # See if we are running on zsh, and set the options which allow our commands through
  41190. - # without removal of \ escapes.
  41191. - if test -n "${ZSH_VERSION+set}" ; then
  41192. - setopt NO_GLOB_SUBST
  41193. - fi
  41194. - # Now quote all the things that may contain metacharacters while being
  41195. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  41196. - # variables and quote the copies for generation of the libtool script.
  41197. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  41198. - SED SHELL STRIP \
  41199. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  41200. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  41201. - deplibs_check_method reload_flag reload_cmds need_locks \
  41202. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  41203. - lt_cv_sys_global_symbol_to_c_name_address \
  41204. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  41205. - old_postinstall_cmds old_postuninstall_cmds \
  41206. - compiler_RC \
  41207. - CC_RC \
  41208. - LD_RC \
  41209. - lt_prog_compiler_wl_RC \
  41210. - lt_prog_compiler_pic_RC \
  41211. - lt_prog_compiler_static_RC \
  41212. - lt_prog_compiler_no_builtin_flag_RC \
  41213. - export_dynamic_flag_spec_RC \
  41214. - thread_safe_flag_spec_RC \
  41215. - whole_archive_flag_spec_RC \
  41216. - enable_shared_with_static_runtimes_RC \
  41217. - old_archive_cmds_RC \
  41218. - old_archive_from_new_cmds_RC \
  41219. - predep_objects_RC \
  41220. - postdep_objects_RC \
  41221. - predeps_RC \
  41222. - postdeps_RC \
  41223. - compiler_lib_search_path_RC \
  41224. - archive_cmds_RC \
  41225. - archive_expsym_cmds_RC \
  41226. - postinstall_cmds_RC \
  41227. - postuninstall_cmds_RC \
  41228. - old_archive_from_expsyms_cmds_RC \
  41229. - allow_undefined_flag_RC \
  41230. - no_undefined_flag_RC \
  41231. - export_symbols_cmds_RC \
  41232. - hardcode_libdir_flag_spec_RC \
  41233. - hardcode_libdir_flag_spec_ld_RC \
  41234. - hardcode_libdir_separator_RC \
  41235. - hardcode_automatic_RC \
  41236. - module_cmds_RC \
  41237. - module_expsym_cmds_RC \
  41238. - lt_cv_prog_compiler_c_o_RC \
  41239. - exclude_expsyms_RC \
  41240. - include_expsyms_RC; do
  41241. -
  41242. - case $var in
  41243. - old_archive_cmds_RC | \
  41244. - old_archive_from_new_cmds_RC | \
  41245. - archive_cmds_RC | \
  41246. - archive_expsym_cmds_RC | \
  41247. - module_cmds_RC | \
  41248. - module_expsym_cmds_RC | \
  41249. - old_archive_from_expsyms_cmds_RC | \
  41250. - export_symbols_cmds_RC | \
  41251. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  41252. - postinstall_cmds | postuninstall_cmds | \
  41253. - old_postinstall_cmds | old_postuninstall_cmds | \
  41254. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  41255. - # Double-quote double-evaled strings.
  41256. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  41257. - ;;
  41258. - *)
  41259. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  41260. - ;;
  41261. - esac
  41262. - done
  41263. -
  41264. - case $lt_echo in
  41265. - *'\$0 --fallback-echo"')
  41266. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  41267. - ;;
  41268. - esac
  41269. -
  41270. -cfgfile="$ofile"
  41271. -
  41272. - cat <<__EOF__ >> "$cfgfile"
  41273. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  41274. -
  41275. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  41276. -
  41277. -# Shell to use when invoking shell scripts.
  41278. -SHELL=$lt_SHELL
  41279. -
  41280. -# Whether or not to build shared libraries.
  41281. -build_libtool_libs=$enable_shared
  41282. -
  41283. -# Whether or not to build static libraries.
  41284. -build_old_libs=$enable_static
  41285. -
  41286. -# Whether or not to add -lc for building shared libraries.
  41287. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  41288. -
  41289. -# Whether or not to disallow shared libs when runtime libs are static
  41290. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  41291. -
  41292. -# Whether or not to optimize for fast installation.
  41293. -fast_install=$enable_fast_install
  41294. -
  41295. -# The host system.
  41296. -host_alias=$host_alias
  41297. -host=$host
  41298. -host_os=$host_os
  41299. -
  41300. -# The build system.
  41301. -build_alias=$build_alias
  41302. -build=$build
  41303. -build_os=$build_os
  41304. -
  41305. -# An echo program that does not interpret backslashes.
  41306. -echo=$lt_echo
  41307. -
  41308. -# The archiver.
  41309. -AR=$lt_AR
  41310. -AR_FLAGS=$lt_AR_FLAGS
  41311. -
  41312. -# A C compiler.
  41313. -LTCC=$lt_LTCC
  41314. -
  41315. -# LTCC compiler flags.
  41316. -LTCFLAGS=$lt_LTCFLAGS
  41317. -
  41318. -# A language-specific compiler.
  41319. -CC=$lt_compiler_RC
  41320. -
  41321. -# Is the compiler the GNU C compiler?
  41322. -with_gcc=$GCC_RC
  41323. -
  41324. -# An ERE matcher.
  41325. -EGREP=$lt_EGREP
  41326. -
  41327. -# The linker used to build libraries.
  41328. -LD=$lt_LD_RC
  41329. -
  41330. -# Whether we need hard or soft links.
  41331. -LN_S=$lt_LN_S
  41332. -
  41333. -# A BSD-compatible nm program.
  41334. -NM=$lt_NM
  41335. -
  41336. -# A symbol stripping program
  41337. -STRIP=$lt_STRIP
  41338. -
  41339. -# Used to examine libraries when file_magic_cmd begins "file"
  41340. -MAGIC_CMD=$MAGIC_CMD
  41341. -
  41342. -# Used on cygwin: DLL creation program.
  41343. -DLLTOOL="$DLLTOOL"
  41344. -
  41345. -# Used on cygwin: object dumper.
  41346. -OBJDUMP="$OBJDUMP"
  41347. -
  41348. -# Used on cygwin: assembler.
  41349. -AS="$AS"
  41350. -
  41351. -# The name of the directory that contains temporary libtool files.
  41352. -objdir=$objdir
  41353. -
  41354. -# How to create reloadable object files.
  41355. -reload_flag=$lt_reload_flag
  41356. -reload_cmds=$lt_reload_cmds
  41357. -
  41358. -# How to pass a linker flag through the compiler.
  41359. -wl=$lt_lt_prog_compiler_wl_RC
  41360. -
  41361. -# Object file suffix (normally "o").
  41362. -objext="$ac_objext"
  41363. -
  41364. -# Old archive suffix (normally "a").
  41365. -libext="$libext"
  41366. -
  41367. -# Shared library suffix (normally ".so").
  41368. -shrext_cmds='$shrext_cmds'
  41369. -
  41370. -# Executable file suffix (normally "").
  41371. -exeext="$exeext"
  41372. -
  41373. -# Additional compiler flags for building library objects.
  41374. -pic_flag=$lt_lt_prog_compiler_pic_RC
  41375. -pic_mode=$pic_mode
  41376. -
  41377. -# What is the maximum length of a command?
  41378. -max_cmd_len=$lt_cv_sys_max_cmd_len
  41379. -
  41380. -# Does compiler simultaneously support -c and -o options?
  41381. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  41382. -
  41383. -# Must we lock files when doing compilation?
  41384. -need_locks=$lt_need_locks
  41385. -
  41386. -# Do we need the lib prefix for modules?
  41387. -need_lib_prefix=$need_lib_prefix
  41388. -
  41389. -# Do we need a version for libraries?
  41390. -need_version=$need_version
  41391. -
  41392. -# Whether dlopen is supported.
  41393. -dlopen_support=$enable_dlopen
  41394. -
  41395. -# Whether dlopen of programs is supported.
  41396. -dlopen_self=$enable_dlopen_self
  41397. -
  41398. -# Whether dlopen of statically linked programs is supported.
  41399. -dlopen_self_static=$enable_dlopen_self_static
  41400. -
  41401. -# Compiler flag to prevent dynamic linking.
  41402. -link_static_flag=$lt_lt_prog_compiler_static_RC
  41403. -
  41404. -# Compiler flag to turn off builtin functions.
  41405. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  41406. -
  41407. -# Compiler flag to allow reflexive dlopens.
  41408. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  41409. -
  41410. -# Compiler flag to generate shared objects directly from archives.
  41411. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  41412. -
  41413. -# Compiler flag to generate thread-safe objects.
  41414. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  41415. -
  41416. -# Library versioning type.
  41417. -version_type=$version_type
  41418. -
  41419. -# Format of library name prefix.
  41420. -libname_spec=$lt_libname_spec
  41421. -
  41422. -# List of archive names. First name is the real one, the rest are links.
  41423. -# The last name is the one that the linker finds with -lNAME.
  41424. -library_names_spec=$lt_library_names_spec
  41425. -
  41426. -# The coded name of the library, if different from the real name.
  41427. -soname_spec=$lt_soname_spec
  41428. -
  41429. -# Commands used to build and install an old-style archive.
  41430. -RANLIB=$lt_RANLIB
  41431. -old_archive_cmds=$lt_old_archive_cmds_RC
  41432. -old_postinstall_cmds=$lt_old_postinstall_cmds
  41433. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  41434. -
  41435. -# Create an old-style archive from a shared archive.
  41436. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  41437. -
  41438. -# Create a temporary old-style archive to link instead of a shared archive.
  41439. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  41440. -
  41441. -# Commands used to build and install a shared archive.
  41442. -archive_cmds=$lt_archive_cmds_RC
  41443. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  41444. -postinstall_cmds=$lt_postinstall_cmds
  41445. -postuninstall_cmds=$lt_postuninstall_cmds
  41446. -
  41447. -# Commands used to build a loadable module (assumed same as above if empty)
  41448. -module_cmds=$lt_module_cmds_RC
  41449. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  41450. -
  41451. -# Commands to strip libraries.
  41452. -old_striplib=$lt_old_striplib
  41453. -striplib=$lt_striplib
  41454. -
  41455. -# Dependencies to place before the objects being linked to create a
  41456. -# shared library.
  41457. -predep_objects=$lt_predep_objects_RC
  41458. -
  41459. -# Dependencies to place after the objects being linked to create a
  41460. -# shared library.
  41461. -postdep_objects=$lt_postdep_objects_RC
  41462. -
  41463. -# Dependencies to place before the objects being linked to create a
  41464. -# shared library.
  41465. -predeps=$lt_predeps_RC
  41466. -
  41467. -# Dependencies to place after the objects being linked to create a
  41468. -# shared library.
  41469. -postdeps=$lt_postdeps_RC
  41470. -
  41471. -# The library search path used internally by the compiler when linking
  41472. -# a shared library.
  41473. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  41474. -
  41475. -# Method to check whether dependent libraries are shared objects.
  41476. -deplibs_check_method=$lt_deplibs_check_method
  41477. -
  41478. -# Command to use when deplibs_check_method == file_magic.
  41479. -file_magic_cmd=$lt_file_magic_cmd
  41480. -
  41481. -# Flag that allows shared libraries with undefined symbols to be built.
  41482. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  41483. -
  41484. -# Flag that forces no undefined symbols.
  41485. -no_undefined_flag=$lt_no_undefined_flag_RC
  41486. -
  41487. -# Commands used to finish a libtool library installation in a directory.
  41488. -finish_cmds=$lt_finish_cmds
  41489. -
  41490. -# Same as above, but a single script fragment to be evaled but not shown.
  41491. -finish_eval=$lt_finish_eval
  41492. -
  41493. -# Take the output of nm and produce a listing of raw symbols and C names.
  41494. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  41495. -
  41496. -# Transform the output of nm in a proper C declaration
  41497. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  41498. -
  41499. -# Transform the output of nm in a C name address pair
  41500. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  41501. -
  41502. -# This is the shared library runtime path variable.
  41503. -runpath_var=$runpath_var
  41504. -
  41505. -# This is the shared library path variable.
  41506. -shlibpath_var=$shlibpath_var
  41507. -
  41508. -# Is shlibpath searched before the hard-coded library search path?
  41509. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41510. -
  41511. -# How to hardcode a shared library path into an executable.
  41512. -hardcode_action=$hardcode_action_RC
  41513. -
  41514. -# Whether we should hardcode library paths into libraries.
  41515. -hardcode_into_libs=$hardcode_into_libs
  41516. -
  41517. -# Flag to hardcode \$libdir into a binary during linking.
  41518. -# This must work even if \$libdir does not exist.
  41519. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  41520. -
  41521. -# If ld is used when linking, flag to hardcode \$libdir into
  41522. -# a binary during linking. This must work even if \$libdir does
  41523. -# not exist.
  41524. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  41525. -
  41526. -# Whether we need a single -rpath flag with a separated argument.
  41527. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  41528. -
  41529. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  41530. -# resulting binary.
  41531. -hardcode_direct=$hardcode_direct_RC
  41532. -
  41533. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  41534. -# resulting binary.
  41535. -hardcode_minus_L=$hardcode_minus_L_RC
  41536. -
  41537. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  41538. -# the resulting binary.
  41539. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  41540. -
  41541. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  41542. -# and all subsequent libraries and executables linked against it.
  41543. -hardcode_automatic=$hardcode_automatic_RC
  41544. -
  41545. -# Variables whose values should be saved in libtool wrapper scripts and
  41546. -# restored at relink time.
  41547. -variables_saved_for_relink="$variables_saved_for_relink"
  41548. -
  41549. -# Whether libtool must link a program against all its dependency libraries.
  41550. -link_all_deplibs=$link_all_deplibs_RC
  41551. -
  41552. -# Compile-time system search path for libraries
  41553. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41554. -
  41555. -# Run-time system search path for libraries
  41556. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41557. -
  41558. -# Fix the shell variable \$srcfile for the compiler.
  41559. -fix_srcfile_path="$fix_srcfile_path_RC"
  41560. -
  41561. -# Set to yes if exported symbols are required.
  41562. -always_export_symbols=$always_export_symbols_RC
  41563. -
  41564. -# The commands to list exported symbols.
  41565. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  41566. -
  41567. -# The commands to extract the exported symbol list from a shared archive.
  41568. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41569. -
  41570. -# Symbols that should not be listed in the preloaded symbols.
  41571. -exclude_expsyms=$lt_exclude_expsyms_RC
  41572. -
  41573. -# Symbols that must always be exported.
  41574. -include_expsyms=$lt_include_expsyms_RC
  41575. -
  41576. -# ### END LIBTOOL TAG CONFIG: $tagname
  41577. -
  41578. -__EOF__
  41579. -
  41580. -
  41581. -else
  41582. - # If there is no Makefile yet, we rely on a make rule to execute
  41583. - # `config.status --recheck' to rerun these tests and create the
  41584. - # libtool script then.
  41585. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  41586. - if test -f "$ltmain_in"; then
  41587. - test -f Makefile && make "$ltmain"
  41588. - fi
  41589. -fi
  41590. -
  41591. -
  41592. -ac_ext=c
  41593. -ac_cpp='$CPP $CPPFLAGS'
  41594. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41595. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41596. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41597. -
  41598. -CC="$lt_save_CC"
  41599. -
  41600. + dgux*)
  41601. + case $cc_basename in
  41602. + ec++*)
  41603. + lt_prog_compiler_pic_CXX='-KPIC'
  41604. + ;;
  41605. + ghcx*)
  41606. + # Green Hills C++ Compiler
  41607. + lt_prog_compiler_pic_CXX='-pic'
  41608. + ;;
  41609. + *)
  41610. + ;;
  41611. + esac
  41612. ;;
  41613. -
  41614. - *)
  41615. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  41616. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  41617. - { (exit 1); exit 1; }; }
  41618. + freebsd* | dragonfly*)
  41619. + # FreeBSD uses GNU C++
  41620. ;;
  41621. - esac
  41622. -
  41623. - # Append the new tag name to the list of available tags.
  41624. - if test -n "$tagname" ; then
  41625. - available_tags="$available_tags $tagname"
  41626. - fi
  41627. - fi
  41628. - done
  41629. - IFS="$lt_save_ifs"
  41630. -
  41631. - # Now substitute the updated list of available tags.
  41632. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  41633. - mv "${ofile}T" "$ofile"
  41634. - chmod +x "$ofile"
  41635. - else
  41636. - rm -f "${ofile}T"
  41637. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  41638. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  41639. - { (exit 1); exit 1; }; }
  41640. + hpux9* | hpux10* | hpux11*)
  41641. + case $cc_basename in
  41642. + CC*)
  41643. + lt_prog_compiler_wl_CXX='-Wl,'
  41644. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  41645. + if test "$host_cpu" != ia64; then
  41646. + lt_prog_compiler_pic_CXX='+Z'
  41647. + fi
  41648. + ;;
  41649. + aCC*)
  41650. + lt_prog_compiler_wl_CXX='-Wl,'
  41651. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  41652. + case $host_cpu in
  41653. + hppa*64*|ia64*)
  41654. + # +Z the default
  41655. + ;;
  41656. + *)
  41657. + lt_prog_compiler_pic_CXX='+Z'
  41658. + ;;
  41659. + esac
  41660. + ;;
  41661. + *)
  41662. + ;;
  41663. + esac
  41664. + ;;
  41665. + interix*)
  41666. + # This is c89, which is MS Visual C++ (no shared libs)
  41667. + # Anyone wants to do a port?
  41668. + ;;
  41669. + irix5* | irix6* | nonstopux*)
  41670. + case $cc_basename in
  41671. + CC*)
  41672. + lt_prog_compiler_wl_CXX='-Wl,'
  41673. + lt_prog_compiler_static_CXX='-non_shared'
  41674. + # CC pic flag -KPIC is the default.
  41675. + ;;
  41676. + *)
  41677. + ;;
  41678. + esac
  41679. + ;;
  41680. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  41681. + case $cc_basename in
  41682. + KCC*)
  41683. + # KAI C++ Compiler
  41684. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  41685. + lt_prog_compiler_pic_CXX='-fPIC'
  41686. + ;;
  41687. + ecpc* )
  41688. + # old Intel C++ for x86_64 which still supported -KPIC.
  41689. + lt_prog_compiler_wl_CXX='-Wl,'
  41690. + lt_prog_compiler_pic_CXX='-KPIC'
  41691. + lt_prog_compiler_static_CXX='-static'
  41692. + ;;
  41693. + icpc* )
  41694. + # Intel C++, used to be incompatible with GCC.
  41695. + # ICC 10 doesn't accept -KPIC any more.
  41696. + lt_prog_compiler_wl_CXX='-Wl,'
  41697. + lt_prog_compiler_pic_CXX='-fPIC'
  41698. + lt_prog_compiler_static_CXX='-static'
  41699. + ;;
  41700. + pgCC* | pgcpp*)
  41701. + # Portland Group C++ compiler
  41702. + lt_prog_compiler_wl_CXX='-Wl,'
  41703. + lt_prog_compiler_pic_CXX='-fpic'
  41704. + lt_prog_compiler_static_CXX='-Bstatic'
  41705. + ;;
  41706. + cxx*)
  41707. + # Compaq C++
  41708. + # Make sure the PIC flag is empty. It appears that all Alpha
  41709. + # Linux and Compaq Tru64 Unix objects are PIC.
  41710. + lt_prog_compiler_pic_CXX=
  41711. + lt_prog_compiler_static_CXX='-non_shared'
  41712. + ;;
  41713. + xlc* | xlC*)
  41714. + # IBM XL 8.0 on PPC
  41715. + lt_prog_compiler_wl_CXX='-Wl,'
  41716. + lt_prog_compiler_pic_CXX='-qpic'
  41717. + lt_prog_compiler_static_CXX='-qstaticlink'
  41718. + ;;
  41719. + *)
  41720. + case `$CC -V 2>&1 | sed 5q` in
  41721. + *Sun\ C*)
  41722. + # Sun C++ 5.9
  41723. + lt_prog_compiler_pic_CXX='-KPIC'
  41724. + lt_prog_compiler_static_CXX='-Bstatic'
  41725. + lt_prog_compiler_wl_CXX='-Qoption ld '
  41726. + ;;
  41727. + esac
  41728. + ;;
  41729. + esac
  41730. + ;;
  41731. + lynxos*)
  41732. + ;;
  41733. + m88k*)
  41734. + ;;
  41735. + mvs*)
  41736. + case $cc_basename in
  41737. + cxx*)
  41738. + lt_prog_compiler_pic_CXX='-W c,exportall'
  41739. + ;;
  41740. + *)
  41741. + ;;
  41742. + esac
  41743. + ;;
  41744. + netbsd* | netbsdelf*-gnu)
  41745. + ;;
  41746. + *qnx* | *nto*)
  41747. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  41748. + # it will coredump.
  41749. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  41750. + ;;
  41751. + osf3* | osf4* | osf5*)
  41752. + case $cc_basename in
  41753. + KCC*)
  41754. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  41755. + ;;
  41756. + RCC*)
  41757. + # Rational C++ 2.4.1
  41758. + lt_prog_compiler_pic_CXX='-pic'
  41759. + ;;
  41760. + cxx*)
  41761. + # Digital/Compaq C++
  41762. + lt_prog_compiler_wl_CXX='-Wl,'
  41763. + # Make sure the PIC flag is empty. It appears that all Alpha
  41764. + # Linux and Compaq Tru64 Unix objects are PIC.
  41765. + lt_prog_compiler_pic_CXX=
  41766. + lt_prog_compiler_static_CXX='-non_shared'
  41767. + ;;
  41768. + *)
  41769. + ;;
  41770. + esac
  41771. + ;;
  41772. + psos*)
  41773. + ;;
  41774. + solaris*)
  41775. + case $cc_basename in
  41776. + CC*)
  41777. + # Sun C++ 4.2, 5.x and Centerline C++
  41778. + lt_prog_compiler_pic_CXX='-KPIC'
  41779. + lt_prog_compiler_static_CXX='-Bstatic'
  41780. + lt_prog_compiler_wl_CXX='-Qoption ld '
  41781. + ;;
  41782. + gcx*)
  41783. + # Green Hills C++ Compiler
  41784. + lt_prog_compiler_pic_CXX='-PIC'
  41785. + ;;
  41786. + *)
  41787. + ;;
  41788. + esac
  41789. + ;;
  41790. + sunos4*)
  41791. + case $cc_basename in
  41792. + CC*)
  41793. + # Sun C++ 4.x
  41794. + lt_prog_compiler_pic_CXX='-pic'
  41795. + lt_prog_compiler_static_CXX='-Bstatic'
  41796. + ;;
  41797. + lcc*)
  41798. + # Lucid
  41799. + lt_prog_compiler_pic_CXX='-pic'
  41800. + ;;
  41801. + *)
  41802. + ;;
  41803. + esac
  41804. + ;;
  41805. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  41806. + case $cc_basename in
  41807. + CC*)
  41808. + lt_prog_compiler_wl_CXX='-Wl,'
  41809. + lt_prog_compiler_pic_CXX='-KPIC'
  41810. + lt_prog_compiler_static_CXX='-Bstatic'
  41811. + ;;
  41812. + esac
  41813. + ;;
  41814. + tandem*)
  41815. + case $cc_basename in
  41816. + NCC*)
  41817. + # NonStop-UX NCC 3.20
  41818. + lt_prog_compiler_pic_CXX='-KPIC'
  41819. + ;;
  41820. + *)
  41821. + ;;
  41822. + esac
  41823. + ;;
  41824. + vxworks*)
  41825. + ;;
  41826. + *)
  41827. + lt_prog_compiler_can_build_shared_CXX=no
  41828. + ;;
  41829. + esac
  41830. fi
  41831. -fi
  41832. -
  41833. -
  41834. -
  41835. -# This can be used to rebuild libtool when needed
  41836. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  41837. -
  41838. -# Always use our own libtool.
  41839. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  41840. -
  41841. -# Prevent multiple expansion
  41842. -
  41843. -
  41844. -
  41845. -
  41846. -
  41847. -
  41848. -
  41849. -
  41850. -
  41851. -
  41852. -
  41853. -
  41854. +case $host_os in
  41855. + # For platforms which do not support PIC, -DPIC is meaningless:
  41856. + *djgpp*)
  41857. + lt_prog_compiler_pic_CXX=
  41858. + ;;
  41859. + *)
  41860. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  41861. + ;;
  41862. +esac
  41863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  41864. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  41865. +#
  41866. +# Check to make sure the PIC flag actually works.
  41867. +#
  41868. +if test -n "$lt_prog_compiler_pic_CXX"; then
  41869. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  41870. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  41871. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  41872. + $as_echo_n "(cached) " >&6
  41873. +else
  41874. + lt_cv_prog_compiler_pic_works_CXX=no
  41875. + ac_outfile=conftest.$ac_objext
  41876. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41877. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  41878. + # Insert the option either (1) after the last *FLAGS variable, or
  41879. + # (2) before a word containing "conftest.", or (3) at the end.
  41880. + # Note that $ac_compile itself does not contain backslashes and begins
  41881. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  41882. + # The option is referenced via a variable to avoid confusing sed.
  41883. + lt_compile=`echo "$ac_compile" | $SED \
  41884. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41885. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41886. + -e 's:$: $lt_compiler_flag:'`
  41887. + (eval echo "\"\$as_me:14193: $lt_compile\"" >&5)
  41888. + (eval "$lt_compile" 2>conftest.err)
  41889. + ac_status=$?
  41890. + cat conftest.err >&5
  41891. + echo "$as_me:14197: \$? = $ac_status" >&5
  41892. + if (exit $ac_status) && test -s "$ac_outfile"; then
  41893. + # The compiler can only warn and ignore the option if not recognized
  41894. + # So say no if there are warnings other than the usual output.
  41895. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  41896. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  41897. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  41898. + lt_cv_prog_compiler_pic_works_CXX=yes
  41899. + fi
  41900. + fi
  41901. + $RM conftest*
  41902. +fi
  41903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  41904. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  41905. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  41906. + case $lt_prog_compiler_pic_CXX in
  41907. + "" | " "*) ;;
  41908. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  41909. + esac
  41910. +else
  41911. + lt_prog_compiler_pic_CXX=
  41912. + lt_prog_compiler_can_build_shared_CXX=no
  41913. +fi
  41914. +fi
  41915. -ac_ext=c
  41916. -ac_cpp='$CPP $CPPFLAGS'
  41917. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41918. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41919. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41920. -if test -n "$ac_tool_prefix"; then
  41921. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  41922. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  41923. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  41924. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  41925. -if test "${ac_cv_prog_CC+set}" = set; then
  41926. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41927. -else
  41928. - if test -n "$CC"; then
  41929. - ac_cv_prog_CC="$CC" # Let the user override the test.
  41930. +#
  41931. +# Check to make sure the static flag actually works.
  41932. +#
  41933. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  41934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  41935. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  41936. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  41937. + $as_echo_n "(cached) " >&6
  41938. else
  41939. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41940. -for as_dir in $PATH
  41941. -do
  41942. - IFS=$as_save_IFS
  41943. - test -z "$as_dir" && as_dir=.
  41944. - for ac_exec_ext in '' $ac_executable_extensions; do
  41945. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41946. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  41947. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41948. - break 2
  41949. - fi
  41950. -done
  41951. -done
  41952. -IFS=$as_save_IFS
  41953. + lt_cv_prog_compiler_static_works_CXX=no
  41954. + save_LDFLAGS="$LDFLAGS"
  41955. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  41956. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  41957. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  41958. + # The linker can only warn and ignore the option if not recognized
  41959. + # So say no if there are warnings
  41960. + if test -s conftest.err; then
  41961. + # Append any errors to the config.log.
  41962. + cat conftest.err 1>&5
  41963. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  41964. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  41965. + if diff conftest.exp conftest.er2 >/dev/null; then
  41966. + lt_cv_prog_compiler_static_works_CXX=yes
  41967. + fi
  41968. + else
  41969. + lt_cv_prog_compiler_static_works_CXX=yes
  41970. + fi
  41971. + fi
  41972. + $RM -r conftest*
  41973. + LDFLAGS="$save_LDFLAGS"
  41974. fi
  41975. -fi
  41976. -CC=$ac_cv_prog_CC
  41977. -if test -n "$CC"; then
  41978. - { echo "$as_me:$LINENO: result: $CC" >&5
  41979. -echo "${ECHO_T}$CC" >&6; }
  41980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  41981. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  41982. +
  41983. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  41984. + :
  41985. else
  41986. - { echo "$as_me:$LINENO: result: no" >&5
  41987. -echo "${ECHO_T}no" >&6; }
  41988. + lt_prog_compiler_static_CXX=
  41989. fi
  41990. -fi
  41991. -if test -z "$ac_cv_prog_CC"; then
  41992. - ac_ct_CC=$CC
  41993. - # Extract the first word of "gcc", so it can be a program name with args.
  41994. -set dummy gcc; ac_word=$2
  41995. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  41996. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  41997. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  41998. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41999. -else
  42000. - if test -n "$ac_ct_CC"; then
  42001. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  42002. -else
  42003. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42004. -for as_dir in $PATH
  42005. -do
  42006. - IFS=$as_save_IFS
  42007. - test -z "$as_dir" && as_dir=.
  42008. - for ac_exec_ext in '' $ac_executable_extensions; do
  42009. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42010. - ac_cv_prog_ac_ct_CC="gcc"
  42011. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42012. - break 2
  42013. - fi
  42014. -done
  42015. -done
  42016. -IFS=$as_save_IFS
  42017. -fi
  42018. -fi
  42019. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  42020. -if test -n "$ac_ct_CC"; then
  42021. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  42022. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  42023. -else
  42024. - { echo "$as_me:$LINENO: result: no" >&5
  42025. -echo "${ECHO_T}no" >&6; }
  42026. -fi
  42027. - if test "x$ac_ct_CC" = x; then
  42028. - CC=""
  42029. - else
  42030. - case $cross_compiling:$ac_tool_warned in
  42031. -yes:)
  42032. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  42033. -whose name does not start with the host triplet. If you think this
  42034. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  42035. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  42036. -whose name does not start with the host triplet. If you think this
  42037. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  42038. -ac_tool_warned=yes ;;
  42039. -esac
  42040. - CC=$ac_ct_CC
  42041. - fi
  42042. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  42043. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  42044. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  42045. + $as_echo_n "(cached) " >&6
  42046. else
  42047. - CC="$ac_cv_prog_CC"
  42048. -fi
  42049. + lt_cv_prog_compiler_c_o_CXX=no
  42050. + $RM -r conftest 2>/dev/null
  42051. + mkdir conftest
  42052. + cd conftest
  42053. + mkdir out
  42054. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42055. -if test -z "$CC"; then
  42056. - if test -n "$ac_tool_prefix"; then
  42057. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  42058. -set dummy ${ac_tool_prefix}cc; ac_word=$2
  42059. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42060. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42061. -if test "${ac_cv_prog_CC+set}" = set; then
  42062. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42063. -else
  42064. - if test -n "$CC"; then
  42065. - ac_cv_prog_CC="$CC" # Let the user override the test.
  42066. -else
  42067. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42068. -for as_dir in $PATH
  42069. -do
  42070. - IFS=$as_save_IFS
  42071. - test -z "$as_dir" && as_dir=.
  42072. - for ac_exec_ext in '' $ac_executable_extensions; do
  42073. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42074. - ac_cv_prog_CC="${ac_tool_prefix}cc"
  42075. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42076. - break 2
  42077. - fi
  42078. -done
  42079. -done
  42080. -IFS=$as_save_IFS
  42081. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  42082. + # Insert the option either (1) after the last *FLAGS variable, or
  42083. + # (2) before a word containing "conftest.", or (3) at the end.
  42084. + # Note that $ac_compile itself does not contain backslashes and begins
  42085. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  42086. + lt_compile=`echo "$ac_compile" | $SED \
  42087. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  42088. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  42089. + -e 's:$: $lt_compiler_flag:'`
  42090. + (eval echo "\"\$as_me:14292: $lt_compile\"" >&5)
  42091. + (eval "$lt_compile" 2>out/conftest.err)
  42092. + ac_status=$?
  42093. + cat out/conftest.err >&5
  42094. + echo "$as_me:14296: \$? = $ac_status" >&5
  42095. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  42096. + then
  42097. + # The compiler can only warn and ignore the option if not recognized
  42098. + # So say no if there are warnings
  42099. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  42100. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  42101. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  42102. + lt_cv_prog_compiler_c_o_CXX=yes
  42103. + fi
  42104. + fi
  42105. + chmod u+w . 2>&5
  42106. + $RM conftest*
  42107. + # SGI C++ compiler will create directory out/ii_files/ for
  42108. + # template instantiation
  42109. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  42110. + $RM out/* && rmdir out
  42111. + cd ..
  42112. + $RM -r conftest
  42113. + $RM conftest*
  42114. fi
  42115. -fi
  42116. -CC=$ac_cv_prog_CC
  42117. -if test -n "$CC"; then
  42118. - { echo "$as_me:$LINENO: result: $CC" >&5
  42119. -echo "${ECHO_T}$CC" >&6; }
  42120. -else
  42121. - { echo "$as_me:$LINENO: result: no" >&5
  42122. -echo "${ECHO_T}no" >&6; }
  42123. -fi
  42124. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  42125. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  42126. - fi
  42127. -fi
  42128. -if test -z "$CC"; then
  42129. - # Extract the first word of "cc", so it can be a program name with args.
  42130. -set dummy cc; ac_word=$2
  42131. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42132. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42133. -if test "${ac_cv_prog_CC+set}" = set; then
  42134. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42135. -else
  42136. - if test -n "$CC"; then
  42137. - ac_cv_prog_CC="$CC" # Let the user override the test.
  42138. +
  42139. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  42140. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  42141. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  42142. + $as_echo_n "(cached) " >&6
  42143. else
  42144. - ac_prog_rejected=no
  42145. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42146. -for as_dir in $PATH
  42147. -do
  42148. - IFS=$as_save_IFS
  42149. - test -z "$as_dir" && as_dir=.
  42150. - for ac_exec_ext in '' $ac_executable_extensions; do
  42151. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42152. - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  42153. - ac_prog_rejected=yes
  42154. - continue
  42155. - fi
  42156. - ac_cv_prog_CC="cc"
  42157. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42158. - break 2
  42159. - fi
  42160. -done
  42161. -done
  42162. -IFS=$as_save_IFS
  42163. + lt_cv_prog_compiler_c_o_CXX=no
  42164. + $RM -r conftest 2>/dev/null
  42165. + mkdir conftest
  42166. + cd conftest
  42167. + mkdir out
  42168. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42169. +
  42170. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  42171. + # Insert the option either (1) after the last *FLAGS variable, or
  42172. + # (2) before a word containing "conftest.", or (3) at the end.
  42173. + # Note that $ac_compile itself does not contain backslashes and begins
  42174. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  42175. + lt_compile=`echo "$ac_compile" | $SED \
  42176. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  42177. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  42178. + -e 's:$: $lt_compiler_flag:'`
  42179. + (eval echo "\"\$as_me:14344: $lt_compile\"" >&5)
  42180. + (eval "$lt_compile" 2>out/conftest.err)
  42181. + ac_status=$?
  42182. + cat out/conftest.err >&5
  42183. + echo "$as_me:14348: \$? = $ac_status" >&5
  42184. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  42185. + then
  42186. + # The compiler can only warn and ignore the option if not recognized
  42187. + # So say no if there are warnings
  42188. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  42189. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  42190. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  42191. + lt_cv_prog_compiler_c_o_CXX=yes
  42192. + fi
  42193. + fi
  42194. + chmod u+w . 2>&5
  42195. + $RM conftest*
  42196. + # SGI C++ compiler will create directory out/ii_files/ for
  42197. + # template instantiation
  42198. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  42199. + $RM out/* && rmdir out
  42200. + cd ..
  42201. + $RM -r conftest
  42202. + $RM conftest*
  42203. -if test $ac_prog_rejected = yes; then
  42204. - # We found a bogon in the path, so make sure we never use it.
  42205. - set dummy $ac_cv_prog_CC
  42206. - shift
  42207. - if test $# != 0; then
  42208. - # We chose a different compiler from the bogus one.
  42209. - # However, it has the same basename, so the bogon will be chosen
  42210. - # first if we set CC to just the basename; use the full file name.
  42211. - shift
  42212. - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  42213. - fi
  42214. -fi
  42215. -fi
  42216. -fi
  42217. -CC=$ac_cv_prog_CC
  42218. -if test -n "$CC"; then
  42219. - { echo "$as_me:$LINENO: result: $CC" >&5
  42220. -echo "${ECHO_T}$CC" >&6; }
  42221. -else
  42222. - { echo "$as_me:$LINENO: result: no" >&5
  42223. -echo "${ECHO_T}no" >&6; }
  42224. fi
  42225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  42226. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  42227. -fi
  42228. -if test -z "$CC"; then
  42229. - if test -n "$ac_tool_prefix"; then
  42230. - for ac_prog in cl.exe
  42231. - do
  42232. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  42233. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  42234. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42235. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42236. -if test "${ac_cv_prog_CC+set}" = set; then
  42237. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42238. -else
  42239. - if test -n "$CC"; then
  42240. - ac_cv_prog_CC="$CC" # Let the user override the test.
  42241. -else
  42242. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42243. -for as_dir in $PATH
  42244. -do
  42245. - IFS=$as_save_IFS
  42246. - test -z "$as_dir" && as_dir=.
  42247. - for ac_exec_ext in '' $ac_executable_extensions; do
  42248. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42249. - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  42250. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42251. - break 2
  42252. - fi
  42253. -done
  42254. -done
  42255. -IFS=$as_save_IFS
  42256. -fi
  42257. -fi
  42258. -CC=$ac_cv_prog_CC
  42259. -if test -n "$CC"; then
  42260. - { echo "$as_me:$LINENO: result: $CC" >&5
  42261. -echo "${ECHO_T}$CC" >&6; }
  42262. +
  42263. +hard_links="nottested"
  42264. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  42265. + # do not overwrite the value of need_locks provided by the user
  42266. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  42267. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  42268. + hard_links=yes
  42269. + $RM conftest*
  42270. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  42271. + touch conftest.a
  42272. + ln conftest.a conftest.b 2>&5 || hard_links=no
  42273. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  42274. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  42275. +$as_echo "$hard_links" >&6; }
  42276. + if test "$hard_links" = no; then
  42277. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  42278. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  42279. + need_locks=warn
  42280. + fi
  42281. else
  42282. - { echo "$as_me:$LINENO: result: no" >&5
  42283. -echo "${ECHO_T}no" >&6; }
  42284. + need_locks=no
  42285. fi
  42286. - test -n "$CC" && break
  42287. - done
  42288. -fi
  42289. -if test -z "$CC"; then
  42290. - ac_ct_CC=$CC
  42291. - for ac_prog in cl.exe
  42292. -do
  42293. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  42294. -set dummy $ac_prog; ac_word=$2
  42295. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42296. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42297. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  42298. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42299. -else
  42300. - if test -n "$ac_ct_CC"; then
  42301. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  42302. -else
  42303. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42304. -for as_dir in $PATH
  42305. -do
  42306. - IFS=$as_save_IFS
  42307. - test -z "$as_dir" && as_dir=.
  42308. - for ac_exec_ext in '' $ac_executable_extensions; do
  42309. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42310. - ac_cv_prog_ac_ct_CC="$ac_prog"
  42311. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42312. - break 2
  42313. - fi
  42314. -done
  42315. -done
  42316. -IFS=$as_save_IFS
  42317. -fi
  42318. -fi
  42319. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  42320. -if test -n "$ac_ct_CC"; then
  42321. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  42322. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  42323. -else
  42324. - { echo "$as_me:$LINENO: result: no" >&5
  42325. -echo "${ECHO_T}no" >&6; }
  42326. -fi
  42327. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  42328. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  42329. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  42330. + case $host_os in
  42331. + aix[4-9]*)
  42332. + # If we're using GNU nm, then we don't want the "-C" option.
  42333. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  42334. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  42335. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  42336. + else
  42337. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  42338. + fi
  42339. + ;;
  42340. + pw32*)
  42341. + export_symbols_cmds_CXX="$ltdll_cmds"
  42342. + ;;
  42343. + cygwin* | mingw* | cegcc*)
  42344. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  42345. + ;;
  42346. + linux* | k*bsd*-gnu)
  42347. + link_all_deplibs_CXX=no
  42348. + ;;
  42349. + *)
  42350. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  42351. + ;;
  42352. + esac
  42353. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  42354. - test -n "$ac_ct_CC" && break
  42355. -done
  42356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  42357. +$as_echo "$ld_shlibs_CXX" >&6; }
  42358. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  42359. - if test "x$ac_ct_CC" = x; then
  42360. - CC=""
  42361. - else
  42362. - case $cross_compiling:$ac_tool_warned in
  42363. -yes:)
  42364. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  42365. -whose name does not start with the host triplet. If you think this
  42366. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  42367. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  42368. -whose name does not start with the host triplet. If you think this
  42369. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  42370. -ac_tool_warned=yes ;;
  42371. -esac
  42372. - CC=$ac_ct_CC
  42373. - fi
  42374. -fi
  42375. +with_gnu_ld_CXX=$with_gnu_ld
  42376. -fi
  42377. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  42378. -See \`config.log' for more details." >&5
  42379. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  42380. -See \`config.log' for more details." >&2;}
  42381. - { (exit 1); exit 1; }; }
  42382. -# Provide some information about the compiler.
  42383. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  42384. -ac_compiler=`set X $ac_compile; echo $2`
  42385. -{ (ac_try="$ac_compiler --version >&5"
  42386. -case "(($ac_try" in
  42387. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42388. - *) ac_try_echo=$ac_try;;
  42389. -esac
  42390. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42391. - (eval "$ac_compiler --version >&5") 2>&5
  42392. +
  42393. +
  42394. +#
  42395. +# Do we need to explicitly link libc?
  42396. +#
  42397. +case "x$archive_cmds_need_lc_CXX" in
  42398. +x|xyes)
  42399. + # Assume -lc should be added
  42400. + archive_cmds_need_lc_CXX=yes
  42401. +
  42402. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  42403. + case $archive_cmds_CXX in
  42404. + *'~'*)
  42405. + # FIXME: we may have to deal with multi-command sequences.
  42406. + ;;
  42407. + '$CC '*)
  42408. + # Test whether the compiler implicitly links with -lc since on some
  42409. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  42410. + # to ld, don't add -lc before -lgcc.
  42411. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  42412. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  42413. + $RM conftest*
  42414. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42415. +
  42416. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  42417. + (eval $ac_compile) 2>&5
  42418. ac_status=$?
  42419. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42420. - (exit $ac_status); }
  42421. -{ (ac_try="$ac_compiler -v >&5"
  42422. -case "(($ac_try" in
  42423. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42424. - *) ac_try_echo=$ac_try;;
  42425. -esac
  42426. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42427. - (eval "$ac_compiler -v >&5") 2>&5
  42428. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42429. + test $ac_status = 0; } 2>conftest.err; then
  42430. + soname=conftest
  42431. + lib=conftest
  42432. + libobjs=conftest.$ac_objext
  42433. + deplibs=
  42434. + wl=$lt_prog_compiler_wl_CXX
  42435. + pic_flag=$lt_prog_compiler_pic_CXX
  42436. + compiler_flags=-v
  42437. + linker_flags=-v
  42438. + verstring=
  42439. + output_objdir=.
  42440. + libname=conftest
  42441. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  42442. + allow_undefined_flag_CXX=
  42443. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  42444. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  42445. ac_status=$?
  42446. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42447. - (exit $ac_status); }
  42448. -{ (ac_try="$ac_compiler -V >&5"
  42449. -case "(($ac_try" in
  42450. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42451. - *) ac_try_echo=$ac_try;;
  42452. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42453. + test $ac_status = 0; }
  42454. + then
  42455. + archive_cmds_need_lc_CXX=no
  42456. + else
  42457. + archive_cmds_need_lc_CXX=yes
  42458. + fi
  42459. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  42460. + else
  42461. + cat conftest.err 1>&5
  42462. + fi
  42463. + $RM conftest*
  42464. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  42465. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  42466. + ;;
  42467. + esac
  42468. + fi
  42469. + ;;
  42470. esac
  42471. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42472. - (eval "$ac_compiler -V >&5") 2>&5
  42473. - ac_status=$?
  42474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42475. - (exit $ac_status); }
  42476. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  42477. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  42478. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  42479. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42480. -else
  42481. - cat >conftest.$ac_ext <<_ACEOF
  42482. -/* confdefs.h. */
  42483. -_ACEOF
  42484. -cat confdefs.h >>conftest.$ac_ext
  42485. -cat >>conftest.$ac_ext <<_ACEOF
  42486. -/* end confdefs.h. */
  42487. -int
  42488. -main ()
  42489. -{
  42490. -#ifndef __GNUC__
  42491. - choke me
  42492. -#endif
  42493. - ;
  42494. - return 0;
  42495. -}
  42496. -_ACEOF
  42497. -rm -f conftest.$ac_objext
  42498. -if { (ac_try="$ac_compile"
  42499. -case "(($ac_try" in
  42500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42501. - *) ac_try_echo=$ac_try;;
  42502. -esac
  42503. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42504. - (eval "$ac_compile") 2>conftest.er1
  42505. - ac_status=$?
  42506. - grep -v '^ *+' conftest.er1 >conftest.err
  42507. - rm -f conftest.er1
  42508. - cat conftest.err >&5
  42509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42510. - (exit $ac_status); } && {
  42511. - test -z "$ac_c_werror_flag" ||
  42512. - test ! -s conftest.err
  42513. - } && test -s conftest.$ac_objext; then
  42514. - ac_compiler_gnu=yes
  42515. -else
  42516. - echo "$as_me: failed program was:" >&5
  42517. -sed 's/^/| /' conftest.$ac_ext >&5
  42518. - ac_compiler_gnu=no
  42519. -fi
  42520. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42521. -ac_cv_c_compiler_gnu=$ac_compiler_gnu
  42522. -fi
  42523. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  42524. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  42525. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  42526. -ac_test_CFLAGS=${CFLAGS+set}
  42527. -ac_save_CFLAGS=$CFLAGS
  42528. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  42529. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  42530. -if test "${ac_cv_prog_cc_g+set}" = set; then
  42531. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42532. -else
  42533. - ac_save_c_werror_flag=$ac_c_werror_flag
  42534. - ac_c_werror_flag=yes
  42535. - ac_cv_prog_cc_g=no
  42536. - CFLAGS="-g"
  42537. - cat >conftest.$ac_ext <<_ACEOF
  42538. -/* confdefs.h. */
  42539. -_ACEOF
  42540. -cat confdefs.h >>conftest.$ac_ext
  42541. -cat >>conftest.$ac_ext <<_ACEOF
  42542. -/* end confdefs.h. */
  42543. -int
  42544. -main ()
  42545. -{
  42546. - ;
  42547. - return 0;
  42548. -}
  42549. -_ACEOF
  42550. -rm -f conftest.$ac_objext
  42551. -if { (ac_try="$ac_compile"
  42552. -case "(($ac_try" in
  42553. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42554. - *) ac_try_echo=$ac_try;;
  42555. -esac
  42556. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42557. - (eval "$ac_compile") 2>conftest.er1
  42558. - ac_status=$?
  42559. - grep -v '^ *+' conftest.er1 >conftest.err
  42560. - rm -f conftest.er1
  42561. - cat conftest.err >&5
  42562. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42563. - (exit $ac_status); } && {
  42564. - test -z "$ac_c_werror_flag" ||
  42565. - test ! -s conftest.err
  42566. - } && test -s conftest.$ac_objext; then
  42567. - ac_cv_prog_cc_g=yes
  42568. -else
  42569. - echo "$as_me: failed program was:" >&5
  42570. -sed 's/^/| /' conftest.$ac_ext >&5
  42571. - CFLAGS=""
  42572. - cat >conftest.$ac_ext <<_ACEOF
  42573. -/* confdefs.h. */
  42574. -_ACEOF
  42575. -cat confdefs.h >>conftest.$ac_ext
  42576. -cat >>conftest.$ac_ext <<_ACEOF
  42577. -/* end confdefs.h. */
  42578. -int
  42579. -main ()
  42580. -{
  42581. - ;
  42582. - return 0;
  42583. -}
  42584. -_ACEOF
  42585. -rm -f conftest.$ac_objext
  42586. -if { (ac_try="$ac_compile"
  42587. -case "(($ac_try" in
  42588. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42589. - *) ac_try_echo=$ac_try;;
  42590. -esac
  42591. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42592. - (eval "$ac_compile") 2>conftest.er1
  42593. - ac_status=$?
  42594. - grep -v '^ *+' conftest.er1 >conftest.err
  42595. - rm -f conftest.er1
  42596. - cat conftest.err >&5
  42597. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42598. - (exit $ac_status); } && {
  42599. - test -z "$ac_c_werror_flag" ||
  42600. - test ! -s conftest.err
  42601. - } && test -s conftest.$ac_objext; then
  42602. - :
  42603. -else
  42604. - echo "$as_me: failed program was:" >&5
  42605. -sed 's/^/| /' conftest.$ac_ext >&5
  42606. - ac_c_werror_flag=$ac_save_c_werror_flag
  42607. - CFLAGS="-g"
  42608. - cat >conftest.$ac_ext <<_ACEOF
  42609. -/* confdefs.h. */
  42610. -_ACEOF
  42611. -cat confdefs.h >>conftest.$ac_ext
  42612. -cat >>conftest.$ac_ext <<_ACEOF
  42613. -/* end confdefs.h. */
  42614. -int
  42615. -main ()
  42616. -{
  42617. - ;
  42618. - return 0;
  42619. -}
  42620. -_ACEOF
  42621. -rm -f conftest.$ac_objext
  42622. -if { (ac_try="$ac_compile"
  42623. -case "(($ac_try" in
  42624. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42625. - *) ac_try_echo=$ac_try;;
  42626. -esac
  42627. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42628. - (eval "$ac_compile") 2>conftest.er1
  42629. - ac_status=$?
  42630. - grep -v '^ *+' conftest.er1 >conftest.err
  42631. - rm -f conftest.er1
  42632. - cat conftest.err >&5
  42633. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42634. - (exit $ac_status); } && {
  42635. - test -z "$ac_c_werror_flag" ||
  42636. - test ! -s conftest.err
  42637. - } && test -s conftest.$ac_objext; then
  42638. - ac_cv_prog_cc_g=yes
  42639. -else
  42640. - echo "$as_me: failed program was:" >&5
  42641. -sed 's/^/| /' conftest.$ac_ext >&5
  42642. -fi
  42643. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42644. -fi
  42645. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42646. -fi
  42647. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42648. - ac_c_werror_flag=$ac_save_c_werror_flag
  42649. -fi
  42650. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  42651. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  42652. -if test "$ac_test_CFLAGS" = set; then
  42653. - CFLAGS=$ac_save_CFLAGS
  42654. -elif test $ac_cv_prog_cc_g = yes; then
  42655. - if test "$GCC" = yes; then
  42656. - CFLAGS="-g -O2"
  42657. - else
  42658. - CFLAGS="-g"
  42659. - fi
  42660. -else
  42661. - if test "$GCC" = yes; then
  42662. - CFLAGS="-O2"
  42663. - else
  42664. - CFLAGS=
  42665. - fi
  42666. -fi
  42667. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  42668. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  42669. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  42670. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42671. -else
  42672. - ac_cv_prog_cc_c89=no
  42673. -ac_save_CC=$CC
  42674. -cat >conftest.$ac_ext <<_ACEOF
  42675. -/* confdefs.h. */
  42676. -_ACEOF
  42677. -cat confdefs.h >>conftest.$ac_ext
  42678. -cat >>conftest.$ac_ext <<_ACEOF
  42679. -/* end confdefs.h. */
  42680. -#include <stdarg.h>
  42681. -#include <stdio.h>
  42682. -#include <sys/types.h>
  42683. -#include <sys/stat.h>
  42684. -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  42685. -struct buf { int x; };
  42686. -FILE * (*rcsopen) (struct buf *, struct stat *, int);
  42687. -static char *e (p, i)
  42688. - char **p;
  42689. - int i;
  42690. -{
  42691. - return p[i];
  42692. -}
  42693. -static char *f (char * (*g) (char **, int), char **p, ...)
  42694. -{
  42695. - char *s;
  42696. - va_list v;
  42697. - va_start (v,p);
  42698. - s = g (p, va_arg (v,int));
  42699. - va_end (v);
  42700. - return s;
  42701. -}
  42702. -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  42703. - function prototypes and stuff, but not '\xHH' hex character constants.
  42704. - These don't provoke an error unfortunately, instead are silently treated
  42705. - as 'x'. The following induces an error, until -std is added to get
  42706. - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  42707. - array size at least. It's necessary to write '\x00'==0 to get something
  42708. - that's true only with -std. */
  42709. -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  42710. -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  42711. - inside strings and character constants. */
  42712. -#define FOO(x) 'x'
  42713. -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  42714. -int test (int i, double x);
  42715. -struct s1 {int (*f) (int a);};
  42716. -struct s2 {int (*f) (double a);};
  42717. -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  42718. -int argc;
  42719. -char **argv;
  42720. -int
  42721. -main ()
  42722. -{
  42723. -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  42724. - ;
  42725. - return 0;
  42726. -}
  42727. -_ACEOF
  42728. -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  42729. - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  42730. -do
  42731. - CC="$ac_save_CC $ac_arg"
  42732. - rm -f conftest.$ac_objext
  42733. -if { (ac_try="$ac_compile"
  42734. -case "(($ac_try" in
  42735. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42736. - *) ac_try_echo=$ac_try;;
  42737. -esac
  42738. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42739. - (eval "$ac_compile") 2>conftest.er1
  42740. - ac_status=$?
  42741. - grep -v '^ *+' conftest.er1 >conftest.err
  42742. - rm -f conftest.er1
  42743. - cat conftest.err >&5
  42744. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42745. - (exit $ac_status); } && {
  42746. - test -z "$ac_c_werror_flag" ||
  42747. - test ! -s conftest.err
  42748. - } && test -s conftest.$ac_objext; then
  42749. - ac_cv_prog_cc_c89=$ac_arg
  42750. -else
  42751. - echo "$as_me: failed program was:" >&5
  42752. -sed 's/^/| /' conftest.$ac_ext >&5
  42753. -fi
  42754. -rm -f core conftest.err conftest.$ac_objext
  42755. - test "x$ac_cv_prog_cc_c89" != "xno" && break
  42756. -done
  42757. -rm -f conftest.$ac_ext
  42758. -CC=$ac_save_CC
  42759. -fi
  42760. -# AC_CACHE_VAL
  42761. -case "x$ac_cv_prog_cc_c89" in
  42762. - x)
  42763. - { echo "$as_me:$LINENO: result: none needed" >&5
  42764. -echo "${ECHO_T}none needed" >&6; } ;;
  42765. - xno)
  42766. - { echo "$as_me:$LINENO: result: unsupported" >&5
  42767. -echo "${ECHO_T}unsupported" >&6; } ;;
  42768. - *)
  42769. - CC="$CC $ac_cv_prog_cc_c89"
  42770. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  42771. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  42772. -esac
  42773. -ac_ext=c
  42774. -ac_cpp='$CPP $CPPFLAGS'
  42775. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42776. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42777. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42778. -depcc="$CC" am_compiler_list=
  42779. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  42780. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  42781. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  42782. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42783. -else
  42784. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  42785. - # We make a subdir and do the tests there. Otherwise we can end up
  42786. - # making bogus files that we don't know about and never remove. For
  42787. - # instance it was reported that on HP-UX the gcc test will end up
  42788. - # making a dummy file named `D' -- because `-MD' means `put the output
  42789. - # in D'.
  42790. - mkdir conftest.dir
  42791. - # Copy depcomp to subdir because otherwise we won't find it if we're
  42792. - # using a relative directory.
  42793. - cp "$am_depcomp" conftest.dir
  42794. - cd conftest.dir
  42795. - # We will build objects and dependencies in a subdirectory because
  42796. - # it helps to detect inapplicable dependency modes. For instance
  42797. - # both Tru64's cc and ICC support -MD to output dependencies as a
  42798. - # side effect of compilation, but ICC will put the dependencies in
  42799. - # the current directory while Tru64 will put them in the object
  42800. - # directory.
  42801. - mkdir sub
  42802. - am_cv_CC_dependencies_compiler_type=none
  42803. - if test "$am_compiler_list" = ""; then
  42804. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  42805. - fi
  42806. - for depmode in $am_compiler_list; do
  42807. - # Setup a source with many dependencies, because some compilers
  42808. - # like to wrap large dependency lists on column 80 (with \), and
  42809. - # we should not choose a depcomp mode which is confused by this.
  42810. - #
  42811. - # We need to recreate these files for each test, as the compiler may
  42812. - # overwrite some of them when testing with obscure command lines.
  42813. - # This happens at least with the AIX C compiler.
  42814. - : > sub/conftest.c
  42815. - for i in 1 2 3 4 5 6; do
  42816. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  42817. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  42818. - # Solaris 8's {/usr,}/bin/sh.
  42819. - touch sub/conftst$i.h
  42820. - done
  42821. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  42822. - case $depmode in
  42823. - nosideeffect)
  42824. - # after this tag, mechanisms are not by side-effect, so they'll
  42825. - # only be used when explicitly requested
  42826. - if test "x$enable_dependency_tracking" = xyes; then
  42827. - continue
  42828. - else
  42829. - break
  42830. - fi
  42831. - ;;
  42832. - none) break ;;
  42833. - esac
  42834. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  42835. - # mode. It turns out that the SunPro C++ compiler does not properly
  42836. - # handle `-M -o', and we need to detect this.
  42837. - if depmode=$depmode \
  42838. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  42839. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  42840. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  42841. - >/dev/null 2>conftest.err &&
  42842. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  42843. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  42844. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  42845. - # icc doesn't choke on unknown options, it will just issue warnings
  42846. - # or remarks (even with -Werror). So we grep stderr for any message
  42847. - # that says an option was ignored or not supported.
  42848. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  42849. - # icc: Command line warning: ignoring option '-M'; no argument required
  42850. - # The diagnosis changed in icc 8.0:
  42851. - # icc: Command line remark: option '-MP' not supported
  42852. - if (grep 'ignoring option' conftest.err ||
  42853. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  42854. - am_cv_CC_dependencies_compiler_type=$depmode
  42855. - break
  42856. - fi
  42857. - fi
  42858. - done
  42859. - cd ..
  42860. - rm -rf conftest.dir
  42861. -else
  42862. - am_cv_CC_dependencies_compiler_type=none
  42863. -fi
  42864. -fi
  42865. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  42866. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  42867. -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  42868. -if
  42869. - test "x$enable_dependency_tracking" != xno \
  42870. - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  42871. - am__fastdepCC_TRUE=
  42872. - am__fastdepCC_FALSE='#'
  42873. -else
  42874. - am__fastdepCC_TRUE='#'
  42875. - am__fastdepCC_FALSE=
  42876. -fi
  42877. -if test "x$CC" != xcc; then
  42878. - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  42879. -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  42880. -else
  42881. - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  42882. -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  42883. -fi
  42884. -set dummy $CC; ac_cc=`echo $2 |
  42885. - sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  42886. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  42887. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42888. -else
  42889. - cat >conftest.$ac_ext <<_ACEOF
  42890. -/* confdefs.h. */
  42891. -_ACEOF
  42892. -cat confdefs.h >>conftest.$ac_ext
  42893. -cat >>conftest.$ac_ext <<_ACEOF
  42894. -/* end confdefs.h. */
  42895. -int
  42896. -main ()
  42897. -{
  42898. - ;
  42899. - return 0;
  42900. -}
  42901. -_ACEOF
  42902. -# Make sure it works both with $CC and with simple cc.
  42903. -# We do the test twice because some compilers refuse to overwrite an
  42904. -# existing .o file with -o, though they will create one.
  42905. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  42906. -rm -f conftest2.*
  42907. -if { (case "(($ac_try" in
  42908. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42909. - *) ac_try_echo=$ac_try;;
  42910. -esac
  42911. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42912. - (eval "$ac_try") 2>&5
  42913. - ac_status=$?
  42914. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42915. - (exit $ac_status); } &&
  42916. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  42917. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42918. - *) ac_try_echo=$ac_try;;
  42919. -esac
  42920. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42921. - (eval "$ac_try") 2>&5
  42922. - ac_status=$?
  42923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42924. - (exit $ac_status); };
  42925. -then
  42926. - eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  42927. - if test "x$CC" != xcc; then
  42928. - # Test first that cc exists at all.
  42929. - if { ac_try='cc -c conftest.$ac_ext >&5'
  42930. - { (case "(($ac_try" in
  42931. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42932. - *) ac_try_echo=$ac_try;;
  42933. -esac
  42934. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42935. - (eval "$ac_try") 2>&5
  42936. - ac_status=$?
  42937. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42938. - (exit $ac_status); }; }; then
  42939. - ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  42940. - rm -f conftest2.*
  42941. - if { (case "(($ac_try" in
  42942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42943. - *) ac_try_echo=$ac_try;;
  42944. -esac
  42945. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42946. - (eval "$ac_try") 2>&5
  42947. - ac_status=$?
  42948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42949. - (exit $ac_status); } &&
  42950. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  42951. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42952. - *) ac_try_echo=$ac_try;;
  42953. -esac
  42954. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42955. - (eval "$ac_try") 2>&5
  42956. - ac_status=$?
  42957. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42958. - (exit $ac_status); };
  42959. - then
  42960. - # cc works too.
  42961. +
  42962. +
  42963. +
  42964. +
  42965. +
  42966. +
  42967. +
  42968. +
  42969. +
  42970. +
  42971. +
  42972. +
  42973. +
  42974. +
  42975. +
  42976. +
  42977. +
  42978. +
  42979. +
  42980. +
  42981. +
  42982. +
  42983. +
  42984. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  42985. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  42986. +
  42987. +library_names_spec=
  42988. +libname_spec='lib$name'
  42989. +soname_spec=
  42990. +shrext_cmds=".so"
  42991. +postinstall_cmds=
  42992. +postuninstall_cmds=
  42993. +finish_cmds=
  42994. +finish_eval=
  42995. +shlibpath_var=
  42996. +shlibpath_overrides_runpath=unknown
  42997. +version_type=none
  42998. +dynamic_linker="$host_os ld.so"
  42999. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  43000. +need_lib_prefix=unknown
  43001. +hardcode_into_libs=no
  43002. +
  43003. +# when you set need_version to no, make sure it does not cause -set_version
  43004. +# flags to be left without arguments
  43005. +need_version=unknown
  43006. +
  43007. +case $host_os in
  43008. +aix3*)
  43009. + version_type=linux
  43010. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  43011. + shlibpath_var=LIBPATH
  43012. +
  43013. + # AIX 3 has no versioning support, so we append a major version to the name.
  43014. + soname_spec='${libname}${release}${shared_ext}$major'
  43015. + ;;
  43016. +
  43017. +aix[4-9]*)
  43018. + version_type=linux
  43019. + need_lib_prefix=no
  43020. + need_version=no
  43021. + hardcode_into_libs=yes
  43022. + if test "$host_cpu" = ia64; then
  43023. + # AIX 5 supports IA64
  43024. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  43025. + shlibpath_var=LD_LIBRARY_PATH
  43026. + else
  43027. + # With GCC up to 2.95.x, collect2 would create an import file
  43028. + # for dependence libraries. The import file would start with
  43029. + # the line `#! .'. This would cause the generated library to
  43030. + # depend on `.', always an invalid library. This was fixed in
  43031. + # development snapshots of GCC prior to 3.0.
  43032. + case $host_os in
  43033. + aix4 | aix4.[01] | aix4.[01].*)
  43034. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  43035. + echo ' yes '
  43036. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  43037. :
  43038. else
  43039. - # cc exists but doesn't like -o.
  43040. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  43041. + can_build_shared=no
  43042. fi
  43043. + ;;
  43044. + esac
  43045. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  43046. + # soname into executable. Probably we can add versioning support to
  43047. + # collect2, so additional links can be useful in future.
  43048. + if test "$aix_use_runtimelinking" = yes; then
  43049. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  43050. + # instead of lib<name>.a to let people know that these are not
  43051. + # typical AIX shared libraries.
  43052. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43053. + else
  43054. + # We preserve .a as extension for shared libraries through AIX4.2
  43055. + # and later when we are not doing run time linking.
  43056. + library_names_spec='${libname}${release}.a $libname.a'
  43057. + soname_spec='${libname}${release}${shared_ext}$major'
  43058. fi
  43059. + shlibpath_var=LIBPATH
  43060. fi
  43061. -else
  43062. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  43063. -fi
  43064. -rm -f core conftest*
  43065. + ;;
  43066. -fi
  43067. -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  43068. - { echo "$as_me:$LINENO: result: yes" >&5
  43069. -echo "${ECHO_T}yes" >&6; }
  43070. -else
  43071. - { echo "$as_me:$LINENO: result: no" >&5
  43072. -echo "${ECHO_T}no" >&6; }
  43073. +amigaos*)
  43074. + case $host_cpu in
  43075. + powerpc)
  43076. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  43077. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  43078. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43079. + ;;
  43080. + m68k)
  43081. + library_names_spec='$libname.ixlibrary $libname.a'
  43082. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  43083. + 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'
  43084. + ;;
  43085. + esac
  43086. + ;;
  43087. -cat >>confdefs.h <<\_ACEOF
  43088. -#define NO_MINUS_C_MINUS_O 1
  43089. -_ACEOF
  43090. +beos*)
  43091. + library_names_spec='${libname}${shared_ext}'
  43092. + dynamic_linker="$host_os ld.so"
  43093. + shlibpath_var=LIBRARY_PATH
  43094. + ;;
  43095. -fi
  43096. +bsdi[45]*)
  43097. + version_type=linux
  43098. + need_version=no
  43099. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43100. + soname_spec='${libname}${release}${shared_ext}$major'
  43101. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  43102. + shlibpath_var=LD_LIBRARY_PATH
  43103. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  43104. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  43105. + # the default ld.so.conf also contains /usr/contrib/lib and
  43106. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  43107. + # libtool to hard-code these into programs
  43108. + ;;
  43109. -# FIXME: we rely on the cache variable name because
  43110. -# there is no other way.
  43111. -set dummy $CC
  43112. -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  43113. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  43114. - # Losing compiler, so override with the script.
  43115. - # FIXME: It is wrong to rewrite CC.
  43116. - # But if we don't then we get into trouble of one sort or another.
  43117. - # A longer-term fix would be to have automake use am__CC in this case,
  43118. - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  43119. - CC="$am_aux_dir/compile $CC"
  43120. -fi
  43121. +cygwin* | mingw* | pw32* | cegcc*)
  43122. + version_type=windows
  43123. + shrext_cmds=".dll"
  43124. + need_version=no
  43125. + need_lib_prefix=no
  43126. -ac_ext=c
  43127. -ac_cpp='$CPP $CPPFLAGS'
  43128. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43129. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43130. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43131. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  43132. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  43133. -# On Suns, sometimes $CPP names a directory.
  43134. -if test -n "$CPP" && test -d "$CPP"; then
  43135. - CPP=
  43136. -fi
  43137. -if test -z "$CPP"; then
  43138. - if test "${ac_cv_prog_CPP+set}" = set; then
  43139. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43140. -else
  43141. - # Double quotes because CPP needs to be expanded
  43142. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  43143. - do
  43144. - ac_preproc_ok=false
  43145. -for ac_c_preproc_warn_flag in '' yes
  43146. -do
  43147. - # Use a header file that comes with gcc, so configuring glibc
  43148. - # with a fresh cross-compiler works.
  43149. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43150. - # <limits.h> exists even on freestanding compilers.
  43151. - # On the NeXT, cc -E runs the code through the compiler's parser,
  43152. - # not just through cpp. "Syntax error" is here to catch this case.
  43153. - cat >conftest.$ac_ext <<_ACEOF
  43154. -/* confdefs.h. */
  43155. -_ACEOF
  43156. -cat confdefs.h >>conftest.$ac_ext
  43157. -cat >>conftest.$ac_ext <<_ACEOF
  43158. -/* end confdefs.h. */
  43159. -#ifdef __STDC__
  43160. -# include <limits.h>
  43161. -#else
  43162. -# include <assert.h>
  43163. -#endif
  43164. - Syntax error
  43165. -_ACEOF
  43166. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  43167. -case "(($ac_try" in
  43168. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43169. - *) ac_try_echo=$ac_try;;
  43170. -esac
  43171. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43172. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43173. - ac_status=$?
  43174. - grep -v '^ *+' conftest.er1 >conftest.err
  43175. - rm -f conftest.er1
  43176. - cat conftest.err >&5
  43177. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43178. - (exit $ac_status); } >/dev/null && {
  43179. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43180. - test ! -s conftest.err
  43181. - }; then
  43182. - :
  43183. -else
  43184. - echo "$as_me: failed program was:" >&5
  43185. -sed 's/^/| /' conftest.$ac_ext >&5
  43186. + case $GCC,$host_os in
  43187. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  43188. + library_names_spec='$libname.dll.a'
  43189. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  43190. + postinstall_cmds='base_file=`basename \${file}`~
  43191. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  43192. + dldir=$destdir/`dirname \$dlpath`~
  43193. + test -d \$dldir || mkdir -p \$dldir~
  43194. + $install_prog $dir/$dlname \$dldir/$dlname~
  43195. + chmod a+x \$dldir/$dlname~
  43196. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  43197. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  43198. + fi'
  43199. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  43200. + dlpath=$dir/\$dldll~
  43201. + $RM \$dlpath'
  43202. + shlibpath_overrides_runpath=yes
  43203. - # Broken: fails on valid input.
  43204. -continue
  43205. -fi
  43206. + case $host_os in
  43207. + cygwin*)
  43208. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  43209. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43210. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  43211. + ;;
  43212. + mingw* | cegcc*)
  43213. + # MinGW DLLs use traditional 'lib' prefix
  43214. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43215. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43216. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  43217. + # It is most probably a Windows format PATH printed by
  43218. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  43219. + # path with ; separators, and with drive letters. We can handle the
  43220. + # drive letters (cygwin fileutils understands them), so leave them,
  43221. + # especially as we might pass files found there to a mingw objdump,
  43222. + # which wouldn't understand a cygwinified path. Ahh.
  43223. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  43224. + else
  43225. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43226. + fi
  43227. + ;;
  43228. + pw32*)
  43229. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  43230. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43231. + ;;
  43232. + esac
  43233. + ;;
  43234. +
  43235. + *)
  43236. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  43237. + ;;
  43238. + esac
  43239. + dynamic_linker='Win32 ld.exe'
  43240. + # FIXME: first we should search . and the directory the executable is in
  43241. + shlibpath_var=PATH
  43242. + ;;
  43243. +
  43244. +darwin* | rhapsody*)
  43245. + dynamic_linker="$host_os dyld"
  43246. + version_type=darwin
  43247. + need_lib_prefix=no
  43248. + need_version=no
  43249. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  43250. + soname_spec='${libname}${release}${major}$shared_ext'
  43251. + shlibpath_overrides_runpath=yes
  43252. + shlibpath_var=DYLD_LIBRARY_PATH
  43253. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  43254. -rm -f conftest.err conftest.$ac_ext
  43255. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  43256. + ;;
  43257. - # OK, works on sane cases. Now check whether nonexistent headers
  43258. - # can be detected and how.
  43259. - cat >conftest.$ac_ext <<_ACEOF
  43260. -/* confdefs.h. */
  43261. -_ACEOF
  43262. -cat confdefs.h >>conftest.$ac_ext
  43263. -cat >>conftest.$ac_ext <<_ACEOF
  43264. -/* end confdefs.h. */
  43265. -#include <ac_nonexistent.h>
  43266. -_ACEOF
  43267. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  43268. -case "(($ac_try" in
  43269. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43270. - *) ac_try_echo=$ac_try;;
  43271. -esac
  43272. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43273. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43274. - ac_status=$?
  43275. - grep -v '^ *+' conftest.er1 >conftest.err
  43276. - rm -f conftest.er1
  43277. - cat conftest.err >&5
  43278. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43279. - (exit $ac_status); } >/dev/null && {
  43280. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43281. - test ! -s conftest.err
  43282. - }; then
  43283. - # Broken: success on invalid input.
  43284. -continue
  43285. -else
  43286. - echo "$as_me: failed program was:" >&5
  43287. -sed 's/^/| /' conftest.$ac_ext >&5
  43288. +dgux*)
  43289. + version_type=linux
  43290. + need_lib_prefix=no
  43291. + need_version=no
  43292. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  43293. + soname_spec='${libname}${release}${shared_ext}$major'
  43294. + shlibpath_var=LD_LIBRARY_PATH
  43295. + ;;
  43296. - # Passes both tests.
  43297. -ac_preproc_ok=:
  43298. -break
  43299. -fi
  43300. +freebsd1*)
  43301. + dynamic_linker=no
  43302. + ;;
  43303. -rm -f conftest.err conftest.$ac_ext
  43304. +freebsd* | dragonfly*)
  43305. + # DragonFly does not have aout. When/if they implement a new
  43306. + # versioning mechanism, adjust this.
  43307. + if test -x /usr/bin/objformat; then
  43308. + objformat=`/usr/bin/objformat`
  43309. + else
  43310. + case $host_os in
  43311. + freebsd[123]*) objformat=aout ;;
  43312. + *) objformat=elf ;;
  43313. + esac
  43314. + fi
  43315. + version_type=freebsd-$objformat
  43316. + case $version_type in
  43317. + freebsd-elf*)
  43318. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  43319. + need_version=no
  43320. + need_lib_prefix=no
  43321. + ;;
  43322. + freebsd-*)
  43323. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  43324. + need_version=yes
  43325. + ;;
  43326. + esac
  43327. + shlibpath_var=LD_LIBRARY_PATH
  43328. + case $host_os in
  43329. + freebsd2*)
  43330. + shlibpath_overrides_runpath=yes
  43331. + ;;
  43332. + freebsd3.[01]* | freebsdelf3.[01]*)
  43333. + shlibpath_overrides_runpath=yes
  43334. + hardcode_into_libs=yes
  43335. + ;;
  43336. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  43337. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  43338. + shlibpath_overrides_runpath=no
  43339. + hardcode_into_libs=yes
  43340. + ;;
  43341. + *) # from 4.6 on, and DragonFly
  43342. + shlibpath_overrides_runpath=yes
  43343. + hardcode_into_libs=yes
  43344. + ;;
  43345. + esac
  43346. + ;;
  43347. -done
  43348. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  43349. -rm -f conftest.err conftest.$ac_ext
  43350. -if $ac_preproc_ok; then
  43351. - break
  43352. -fi
  43353. +gnu*)
  43354. + version_type=linux
  43355. + need_lib_prefix=no
  43356. + need_version=no
  43357. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  43358. + soname_spec='${libname}${release}${shared_ext}$major'
  43359. + shlibpath_var=LD_LIBRARY_PATH
  43360. + hardcode_into_libs=yes
  43361. + ;;
  43362. - done
  43363. - ac_cv_prog_CPP=$CPP
  43364. +hpux9* | hpux10* | hpux11*)
  43365. + # Give a soname corresponding to the major version so that dld.sl refuses to
  43366. + # link against other versions.
  43367. + version_type=sunos
  43368. + need_lib_prefix=no
  43369. + need_version=no
  43370. + case $host_cpu in
  43371. + ia64*)
  43372. + shrext_cmds='.so'
  43373. + hardcode_into_libs=yes
  43374. + dynamic_linker="$host_os dld.so"
  43375. + shlibpath_var=LD_LIBRARY_PATH
  43376. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43377. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43378. + soname_spec='${libname}${release}${shared_ext}$major'
  43379. + if test "X$HPUX_IA64_MODE" = X32; then
  43380. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  43381. + else
  43382. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  43383. + fi
  43384. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43385. + ;;
  43386. + hppa*64*)
  43387. + shrext_cmds='.sl'
  43388. + hardcode_into_libs=yes
  43389. + dynamic_linker="$host_os dld.sl"
  43390. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  43391. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43392. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43393. + soname_spec='${libname}${release}${shared_ext}$major'
  43394. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  43395. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43396. + ;;
  43397. + *)
  43398. + shrext_cmds='.sl'
  43399. + dynamic_linker="$host_os dld.sl"
  43400. + shlibpath_var=SHLIB_PATH
  43401. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  43402. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43403. + soname_spec='${libname}${release}${shared_ext}$major'
  43404. + ;;
  43405. + esac
  43406. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  43407. + postinstall_cmds='chmod 555 $lib'
  43408. + ;;
  43409. -fi
  43410. - CPP=$ac_cv_prog_CPP
  43411. -else
  43412. - ac_cv_prog_CPP=$CPP
  43413. -fi
  43414. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  43415. -echo "${ECHO_T}$CPP" >&6; }
  43416. -ac_preproc_ok=false
  43417. -for ac_c_preproc_warn_flag in '' yes
  43418. -do
  43419. - # Use a header file that comes with gcc, so configuring glibc
  43420. - # with a fresh cross-compiler works.
  43421. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43422. - # <limits.h> exists even on freestanding compilers.
  43423. - # On the NeXT, cc -E runs the code through the compiler's parser,
  43424. - # not just through cpp. "Syntax error" is here to catch this case.
  43425. - cat >conftest.$ac_ext <<_ACEOF
  43426. -/* confdefs.h. */
  43427. -_ACEOF
  43428. -cat confdefs.h >>conftest.$ac_ext
  43429. -cat >>conftest.$ac_ext <<_ACEOF
  43430. -/* end confdefs.h. */
  43431. -#ifdef __STDC__
  43432. -# include <limits.h>
  43433. -#else
  43434. -# include <assert.h>
  43435. -#endif
  43436. - Syntax error
  43437. -_ACEOF
  43438. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  43439. -case "(($ac_try" in
  43440. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43441. - *) ac_try_echo=$ac_try;;
  43442. -esac
  43443. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43444. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43445. - ac_status=$?
  43446. - grep -v '^ *+' conftest.er1 >conftest.err
  43447. - rm -f conftest.er1
  43448. - cat conftest.err >&5
  43449. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43450. - (exit $ac_status); } >/dev/null && {
  43451. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43452. - test ! -s conftest.err
  43453. - }; then
  43454. - :
  43455. -else
  43456. - echo "$as_me: failed program was:" >&5
  43457. -sed 's/^/| /' conftest.$ac_ext >&5
  43458. +interix[3-9]*)
  43459. + version_type=linux
  43460. + need_lib_prefix=no
  43461. + need_version=no
  43462. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43463. + soname_spec='${libname}${release}${shared_ext}$major'
  43464. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  43465. + shlibpath_var=LD_LIBRARY_PATH
  43466. + shlibpath_overrides_runpath=no
  43467. + hardcode_into_libs=yes
  43468. + ;;
  43469. - # Broken: fails on valid input.
  43470. -continue
  43471. -fi
  43472. +irix5* | irix6* | nonstopux*)
  43473. + case $host_os in
  43474. + nonstopux*) version_type=nonstopux ;;
  43475. + *)
  43476. + if test "$lt_cv_prog_gnu_ld" = yes; then
  43477. + version_type=linux
  43478. + else
  43479. + version_type=irix
  43480. + fi ;;
  43481. + esac
  43482. + need_lib_prefix=no
  43483. + need_version=no
  43484. + soname_spec='${libname}${release}${shared_ext}$major'
  43485. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  43486. + case $host_os in
  43487. + irix5* | nonstopux*)
  43488. + libsuff= shlibsuff=
  43489. + ;;
  43490. + *)
  43491. + case $LD in # libtool.m4 will add one of these switches to LD
  43492. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  43493. + libsuff= shlibsuff= libmagic=32-bit;;
  43494. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  43495. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  43496. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  43497. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  43498. + *) libsuff= shlibsuff= libmagic=never-match;;
  43499. + esac
  43500. + ;;
  43501. + esac
  43502. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  43503. + shlibpath_overrides_runpath=no
  43504. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  43505. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  43506. + hardcode_into_libs=yes
  43507. + ;;
  43508. -rm -f conftest.err conftest.$ac_ext
  43509. +# No shared lib support for Linux oldld, aout, or coff.
  43510. +linux*oldld* | linux*aout* | linux*coff*)
  43511. + dynamic_linker=no
  43512. + ;;
  43513. - # OK, works on sane cases. Now check whether nonexistent headers
  43514. - # can be detected and how.
  43515. - cat >conftest.$ac_ext <<_ACEOF
  43516. -/* confdefs.h. */
  43517. -_ACEOF
  43518. -cat confdefs.h >>conftest.$ac_ext
  43519. -cat >>conftest.$ac_ext <<_ACEOF
  43520. +# This must be Linux ELF.
  43521. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  43522. + version_type=linux
  43523. + need_lib_prefix=no
  43524. + need_version=no
  43525. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43526. + soname_spec='${libname}${release}${shared_ext}$major'
  43527. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  43528. + shlibpath_var=LD_LIBRARY_PATH
  43529. + shlibpath_overrides_runpath=no
  43530. + # Some binutils ld are patched to set DT_RUNPATH
  43531. + save_LDFLAGS=$LDFLAGS
  43532. + save_libdir=$libdir
  43533. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  43534. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  43535. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43536. /* end confdefs.h. */
  43537. -#include <ac_nonexistent.h>
  43538. -_ACEOF
  43539. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  43540. -case "(($ac_try" in
  43541. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43542. - *) ac_try_echo=$ac_try;;
  43543. -esac
  43544. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43545. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43546. - ac_status=$?
  43547. - grep -v '^ *+' conftest.er1 >conftest.err
  43548. - rm -f conftest.er1
  43549. - cat conftest.err >&5
  43550. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43551. - (exit $ac_status); } >/dev/null && {
  43552. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43553. - test ! -s conftest.err
  43554. - }; then
  43555. - # Broken: success on invalid input.
  43556. -continue
  43557. -else
  43558. - echo "$as_me: failed program was:" >&5
  43559. -sed 's/^/| /' conftest.$ac_ext >&5
  43560. - # Passes both tests.
  43561. -ac_preproc_ok=:
  43562. -break
  43563. +int
  43564. +main ()
  43565. +{
  43566. +
  43567. + ;
  43568. + return 0;
  43569. +}
  43570. +_ACEOF
  43571. +if ac_fn_cxx_try_link "$LINENO"; then :
  43572. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  43573. + shlibpath_overrides_runpath=yes
  43574. fi
  43575. +fi
  43576. +rm -f core conftest.err conftest.$ac_objext \
  43577. + conftest$ac_exeext conftest.$ac_ext
  43578. + LDFLAGS=$save_LDFLAGS
  43579. + libdir=$save_libdir
  43580. -rm -f conftest.err conftest.$ac_ext
  43581. + # This implies no fast_install, which is unacceptable.
  43582. + # Some rework will be needed to allow for fast_install
  43583. + # before this can be enabled.
  43584. + hardcode_into_libs=yes
  43585. -done
  43586. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  43587. -rm -f conftest.err conftest.$ac_ext
  43588. -if $ac_preproc_ok; then
  43589. - :
  43590. -else
  43591. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  43592. -See \`config.log' for more details." >&5
  43593. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  43594. -See \`config.log' for more details." >&2;}
  43595. - { (exit 1); exit 1; }; }
  43596. -fi
  43597. + # Append ld.so.conf contents to the search path
  43598. + if test -f /etc/ld.so.conf; then
  43599. + 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' ' '`
  43600. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  43601. + fi
  43602. -ac_ext=c
  43603. -ac_cpp='$CPP $CPPFLAGS'
  43604. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43605. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43606. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43607. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  43608. + # powerpc, because MkLinux only supported shared libraries with the
  43609. + # GNU dynamic linker. Since this was broken with cross compilers,
  43610. + # most powerpc-linux boxes support dynamic linking these days and
  43611. + # people can always --disable-shared, the test was removed, and we
  43612. + # assume the GNU/Linux dynamic linker is in use.
  43613. + dynamic_linker='GNU/Linux ld.so'
  43614. + ;;
  43615. -ac_ext=cpp
  43616. -ac_cpp='$CXXCPP $CPPFLAGS'
  43617. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43618. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43619. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43620. -if test -z "$CXX"; then
  43621. - if test -n "$CCC"; then
  43622. - CXX=$CCC
  43623. +netbsdelf*-gnu)
  43624. + version_type=linux
  43625. + need_lib_prefix=no
  43626. + need_version=no
  43627. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43628. + soname_spec='${libname}${release}${shared_ext}$major'
  43629. + shlibpath_var=LD_LIBRARY_PATH
  43630. + shlibpath_overrides_runpath=no
  43631. + hardcode_into_libs=yes
  43632. + dynamic_linker='NetBSD ld.elf_so'
  43633. + ;;
  43634. +
  43635. +netbsd*)
  43636. + version_type=sunos
  43637. + need_lib_prefix=no
  43638. + need_version=no
  43639. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  43640. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43641. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43642. + dynamic_linker='NetBSD (a.out) ld.so'
  43643. else
  43644. - if test -n "$ac_tool_prefix"; then
  43645. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  43646. - do
  43647. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  43648. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  43649. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  43650. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  43651. -if test "${ac_cv_prog_CXX+set}" = set; then
  43652. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43653. -else
  43654. - if test -n "$CXX"; then
  43655. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  43656. -else
  43657. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43658. -for as_dir in $PATH
  43659. -do
  43660. - IFS=$as_save_IFS
  43661. - test -z "$as_dir" && as_dir=.
  43662. - for ac_exec_ext in '' $ac_executable_extensions; do
  43663. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  43664. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  43665. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  43666. - break 2
  43667. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43668. + soname_spec='${libname}${release}${shared_ext}$major'
  43669. + dynamic_linker='NetBSD ld.elf_so'
  43670. fi
  43671. -done
  43672. -done
  43673. -IFS=$as_save_IFS
  43674. + shlibpath_var=LD_LIBRARY_PATH
  43675. + shlibpath_overrides_runpath=yes
  43676. + hardcode_into_libs=yes
  43677. + ;;
  43678. -fi
  43679. -fi
  43680. -CXX=$ac_cv_prog_CXX
  43681. -if test -n "$CXX"; then
  43682. - { echo "$as_me:$LINENO: result: $CXX" >&5
  43683. -echo "${ECHO_T}$CXX" >&6; }
  43684. -else
  43685. - { echo "$as_me:$LINENO: result: no" >&5
  43686. -echo "${ECHO_T}no" >&6; }
  43687. -fi
  43688. +newsos6)
  43689. + version_type=linux
  43690. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43691. + shlibpath_var=LD_LIBRARY_PATH
  43692. + shlibpath_overrides_runpath=yes
  43693. + ;;
  43694. +*nto* | *qnx*)
  43695. + version_type=qnx
  43696. + need_lib_prefix=no
  43697. + need_version=no
  43698. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43699. + soname_spec='${libname}${release}${shared_ext}$major'
  43700. + shlibpath_var=LD_LIBRARY_PATH
  43701. + shlibpath_overrides_runpath=no
  43702. + hardcode_into_libs=yes
  43703. + dynamic_linker='ldqnx.so'
  43704. + ;;
  43705. - test -n "$CXX" && break
  43706. - done
  43707. -fi
  43708. -if test -z "$CXX"; then
  43709. - ac_ct_CXX=$CXX
  43710. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  43711. -do
  43712. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  43713. -set dummy $ac_prog; ac_word=$2
  43714. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  43715. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  43716. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  43717. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43718. -else
  43719. - if test -n "$ac_ct_CXX"; then
  43720. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  43721. -else
  43722. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43723. -for as_dir in $PATH
  43724. -do
  43725. - IFS=$as_save_IFS
  43726. - test -z "$as_dir" && as_dir=.
  43727. - for ac_exec_ext in '' $ac_executable_extensions; do
  43728. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  43729. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  43730. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  43731. - break 2
  43732. +openbsd*)
  43733. + version_type=sunos
  43734. + sys_lib_dlsearch_path_spec="/usr/lib"
  43735. + need_lib_prefix=no
  43736. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  43737. + case $host_os in
  43738. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  43739. + *) need_version=no ;;
  43740. + esac
  43741. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43742. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43743. + shlibpath_var=LD_LIBRARY_PATH
  43744. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  43745. + case $host_os in
  43746. + openbsd2.[89] | openbsd2.[89].*)
  43747. + shlibpath_overrides_runpath=no
  43748. + ;;
  43749. + *)
  43750. + shlibpath_overrides_runpath=yes
  43751. + ;;
  43752. + esac
  43753. + else
  43754. + shlibpath_overrides_runpath=yes
  43755. fi
  43756. -done
  43757. -done
  43758. -IFS=$as_save_IFS
  43759. + ;;
  43760. -fi
  43761. -fi
  43762. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  43763. -if test -n "$ac_ct_CXX"; then
  43764. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  43765. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  43766. -else
  43767. - { echo "$as_me:$LINENO: result: no" >&5
  43768. -echo "${ECHO_T}no" >&6; }
  43769. -fi
  43770. +os2*)
  43771. + libname_spec='$name'
  43772. + shrext_cmds=".dll"
  43773. + need_lib_prefix=no
  43774. + library_names_spec='$libname${shared_ext} $libname.a'
  43775. + dynamic_linker='OS/2 ld.exe'
  43776. + shlibpath_var=LIBPATH
  43777. + ;;
  43778. +osf3* | osf4* | osf5*)
  43779. + version_type=osf
  43780. + need_lib_prefix=no
  43781. + need_version=no
  43782. + soname_spec='${libname}${release}${shared_ext}$major'
  43783. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43784. + shlibpath_var=LD_LIBRARY_PATH
  43785. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  43786. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  43787. + ;;
  43788. - test -n "$ac_ct_CXX" && break
  43789. -done
  43790. +rdos*)
  43791. + dynamic_linker=no
  43792. + ;;
  43793. - if test "x$ac_ct_CXX" = x; then
  43794. - CXX="g++"
  43795. +solaris*)
  43796. + version_type=linux
  43797. + need_lib_prefix=no
  43798. + need_version=no
  43799. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43800. + soname_spec='${libname}${release}${shared_ext}$major'
  43801. + shlibpath_var=LD_LIBRARY_PATH
  43802. + shlibpath_overrides_runpath=yes
  43803. + hardcode_into_libs=yes
  43804. + # ldd complains unless libraries are executable
  43805. + postinstall_cmds='chmod +x $lib'
  43806. + ;;
  43807. +
  43808. +sunos4*)
  43809. + version_type=sunos
  43810. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43811. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  43812. + shlibpath_var=LD_LIBRARY_PATH
  43813. + shlibpath_overrides_runpath=yes
  43814. + if test "$with_gnu_ld" = yes; then
  43815. + need_lib_prefix=no
  43816. + fi
  43817. + need_version=yes
  43818. + ;;
  43819. +
  43820. +sysv4 | sysv4.3*)
  43821. + version_type=linux
  43822. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43823. + soname_spec='${libname}${release}${shared_ext}$major'
  43824. + shlibpath_var=LD_LIBRARY_PATH
  43825. + case $host_vendor in
  43826. + sni)
  43827. + shlibpath_overrides_runpath=no
  43828. + need_lib_prefix=no
  43829. + runpath_var=LD_RUN_PATH
  43830. + ;;
  43831. + siemens)
  43832. + need_lib_prefix=no
  43833. + ;;
  43834. + motorola)
  43835. + need_lib_prefix=no
  43836. + need_version=no
  43837. + shlibpath_overrides_runpath=no
  43838. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  43839. + ;;
  43840. + esac
  43841. + ;;
  43842. +
  43843. +sysv4*MP*)
  43844. + if test -d /usr/nec ;then
  43845. + version_type=linux
  43846. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  43847. + soname_spec='$libname${shared_ext}.$major'
  43848. + shlibpath_var=LD_LIBRARY_PATH
  43849. + fi
  43850. + ;;
  43851. +
  43852. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  43853. + version_type=freebsd-elf
  43854. + need_lib_prefix=no
  43855. + need_version=no
  43856. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  43857. + soname_spec='${libname}${release}${shared_ext}$major'
  43858. + shlibpath_var=LD_LIBRARY_PATH
  43859. + shlibpath_overrides_runpath=yes
  43860. + hardcode_into_libs=yes
  43861. + if test "$with_gnu_ld" = yes; then
  43862. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  43863. else
  43864. - case $cross_compiling:$ac_tool_warned in
  43865. -yes:)
  43866. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  43867. -whose name does not start with the host triplet. If you think this
  43868. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  43869. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  43870. -whose name does not start with the host triplet. If you think this
  43871. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  43872. -ac_tool_warned=yes ;;
  43873. -esac
  43874. - CXX=$ac_ct_CXX
  43875. - fi
  43876. -fi
  43877. -
  43878. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  43879. + case $host_os in
  43880. + sco3.2v5*)
  43881. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  43882. + ;;
  43883. + esac
  43884. fi
  43885. -fi
  43886. -# Provide some information about the compiler.
  43887. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  43888. -ac_compiler=`set X $ac_compile; echo $2`
  43889. -{ (ac_try="$ac_compiler --version >&5"
  43890. -case "(($ac_try" in
  43891. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43892. - *) ac_try_echo=$ac_try;;
  43893. -esac
  43894. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43895. - (eval "$ac_compiler --version >&5") 2>&5
  43896. - ac_status=$?
  43897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43898. - (exit $ac_status); }
  43899. -{ (ac_try="$ac_compiler -v >&5"
  43900. -case "(($ac_try" in
  43901. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43902. - *) ac_try_echo=$ac_try;;
  43903. -esac
  43904. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43905. - (eval "$ac_compiler -v >&5") 2>&5
  43906. - ac_status=$?
  43907. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43908. - (exit $ac_status); }
  43909. -{ (ac_try="$ac_compiler -V >&5"
  43910. -case "(($ac_try" in
  43911. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43912. - *) ac_try_echo=$ac_try;;
  43913. -esac
  43914. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43915. - (eval "$ac_compiler -V >&5") 2>&5
  43916. - ac_status=$?
  43917. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43918. - (exit $ac_status); }
  43919. + sys_lib_dlsearch_path_spec='/usr/lib'
  43920. + ;;
  43921. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  43922. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  43923. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  43924. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43925. -else
  43926. - cat >conftest.$ac_ext <<_ACEOF
  43927. -/* confdefs.h. */
  43928. -_ACEOF
  43929. -cat confdefs.h >>conftest.$ac_ext
  43930. -cat >>conftest.$ac_ext <<_ACEOF
  43931. -/* end confdefs.h. */
  43932. +tpf*)
  43933. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  43934. + version_type=linux
  43935. + need_lib_prefix=no
  43936. + need_version=no
  43937. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43938. + shlibpath_var=LD_LIBRARY_PATH
  43939. + shlibpath_overrides_runpath=no
  43940. + hardcode_into_libs=yes
  43941. + ;;
  43942. -int
  43943. -main ()
  43944. -{
  43945. -#ifndef __GNUC__
  43946. - choke me
  43947. -#endif
  43948. +uts4*)
  43949. + version_type=linux
  43950. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43951. + soname_spec='${libname}${release}${shared_ext}$major'
  43952. + shlibpath_var=LD_LIBRARY_PATH
  43953. + ;;
  43954. - ;
  43955. - return 0;
  43956. -}
  43957. -_ACEOF
  43958. -rm -f conftest.$ac_objext
  43959. -if { (ac_try="$ac_compile"
  43960. -case "(($ac_try" in
  43961. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43962. - *) ac_try_echo=$ac_try;;
  43963. +*)
  43964. + dynamic_linker=no
  43965. + ;;
  43966. esac
  43967. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43968. - (eval "$ac_compile") 2>conftest.er1
  43969. - ac_status=$?
  43970. - grep -v '^ *+' conftest.er1 >conftest.err
  43971. - rm -f conftest.er1
  43972. - cat conftest.err >&5
  43973. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43974. - (exit $ac_status); } && {
  43975. - test -z "$ac_cxx_werror_flag" ||
  43976. - test ! -s conftest.err
  43977. - } && test -s conftest.$ac_objext; then
  43978. - ac_compiler_gnu=yes
  43979. -else
  43980. - echo "$as_me: failed program was:" >&5
  43981. -sed 's/^/| /' conftest.$ac_ext >&5
  43982. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  43983. +$as_echo "$dynamic_linker" >&6; }
  43984. +test "$dynamic_linker" = no && can_build_shared=no
  43985. - ac_compiler_gnu=no
  43986. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  43987. +if test "$GCC" = yes; then
  43988. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  43989. fi
  43990. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43991. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  43992. -
  43993. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  43994. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  43995. +fi
  43996. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  43997. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  43998. fi
  43999. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  44000. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  44001. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  44002. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  44003. -ac_save_CXXFLAGS=$CXXFLAGS
  44004. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  44005. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  44006. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  44007. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44008. -else
  44009. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  44010. - ac_cxx_werror_flag=yes
  44011. - ac_cv_prog_cxx_g=no
  44012. - CXXFLAGS="-g"
  44013. - cat >conftest.$ac_ext <<_ACEOF
  44014. -/* confdefs.h. */
  44015. -_ACEOF
  44016. -cat confdefs.h >>conftest.$ac_ext
  44017. -cat >>conftest.$ac_ext <<_ACEOF
  44018. -/* end confdefs.h. */
  44019. -
  44020. -int
  44021. -main ()
  44022. -{
  44023. -
  44024. - ;
  44025. - return 0;
  44026. -}
  44027. -_ACEOF
  44028. -rm -f conftest.$ac_objext
  44029. -if { (ac_try="$ac_compile"
  44030. -case "(($ac_try" in
  44031. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44032. - *) ac_try_echo=$ac_try;;
  44033. -esac
  44034. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44035. - (eval "$ac_compile") 2>conftest.er1
  44036. - ac_status=$?
  44037. - grep -v '^ *+' conftest.er1 >conftest.err
  44038. - rm -f conftest.er1
  44039. - cat conftest.err >&5
  44040. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44041. - (exit $ac_status); } && {
  44042. - test -z "$ac_cxx_werror_flag" ||
  44043. - test ! -s conftest.err
  44044. - } && test -s conftest.$ac_objext; then
  44045. - ac_cv_prog_cxx_g=yes
  44046. -else
  44047. - echo "$as_me: failed program was:" >&5
  44048. -sed 's/^/| /' conftest.$ac_ext >&5
  44049. -
  44050. - CXXFLAGS=""
  44051. - cat >conftest.$ac_ext <<_ACEOF
  44052. -/* confdefs.h. */
  44053. -_ACEOF
  44054. -cat confdefs.h >>conftest.$ac_ext
  44055. -cat >>conftest.$ac_ext <<_ACEOF
  44056. -/* end confdefs.h. */
  44057. -
  44058. -int
  44059. -main ()
  44060. -{
  44061. - ;
  44062. - return 0;
  44063. -}
  44064. -_ACEOF
  44065. -rm -f conftest.$ac_objext
  44066. -if { (ac_try="$ac_compile"
  44067. -case "(($ac_try" in
  44068. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44069. - *) ac_try_echo=$ac_try;;
  44070. -esac
  44071. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44072. - (eval "$ac_compile") 2>conftest.er1
  44073. - ac_status=$?
  44074. - grep -v '^ *+' conftest.er1 >conftest.err
  44075. - rm -f conftest.er1
  44076. - cat conftest.err >&5
  44077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44078. - (exit $ac_status); } && {
  44079. - test -z "$ac_cxx_werror_flag" ||
  44080. - test ! -s conftest.err
  44081. - } && test -s conftest.$ac_objext; then
  44082. - :
  44083. -else
  44084. - echo "$as_me: failed program was:" >&5
  44085. -sed 's/^/| /' conftest.$ac_ext >&5
  44086. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  44087. - CXXFLAGS="-g"
  44088. - cat >conftest.$ac_ext <<_ACEOF
  44089. -/* confdefs.h. */
  44090. -_ACEOF
  44091. -cat confdefs.h >>conftest.$ac_ext
  44092. -cat >>conftest.$ac_ext <<_ACEOF
  44093. -/* end confdefs.h. */
  44094. -int
  44095. -main ()
  44096. -{
  44097. - ;
  44098. - return 0;
  44099. -}
  44100. -_ACEOF
  44101. -rm -f conftest.$ac_objext
  44102. -if { (ac_try="$ac_compile"
  44103. -case "(($ac_try" in
  44104. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44105. - *) ac_try_echo=$ac_try;;
  44106. -esac
  44107. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44108. - (eval "$ac_compile") 2>conftest.er1
  44109. - ac_status=$?
  44110. - grep -v '^ *+' conftest.er1 >conftest.err
  44111. - rm -f conftest.er1
  44112. - cat conftest.err >&5
  44113. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44114. - (exit $ac_status); } && {
  44115. - test -z "$ac_cxx_werror_flag" ||
  44116. - test ! -s conftest.err
  44117. - } && test -s conftest.$ac_objext; then
  44118. - ac_cv_prog_cxx_g=yes
  44119. -else
  44120. - echo "$as_me: failed program was:" >&5
  44121. -sed 's/^/| /' conftest.$ac_ext >&5
  44122. -fi
  44123. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44124. -fi
  44125. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44126. -fi
  44127. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44128. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  44129. -fi
  44130. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  44131. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  44132. -if test "$ac_test_CXXFLAGS" = set; then
  44133. - CXXFLAGS=$ac_save_CXXFLAGS
  44134. -elif test $ac_cv_prog_cxx_g = yes; then
  44135. - if test "$GXX" = yes; then
  44136. - CXXFLAGS="-g -O2"
  44137. - else
  44138. - CXXFLAGS="-g"
  44139. - fi
  44140. -else
  44141. - if test "$GXX" = yes; then
  44142. - CXXFLAGS="-O2"
  44143. - else
  44144. - CXXFLAGS=
  44145. - fi
  44146. -fi
  44147. -ac_ext=c
  44148. -ac_cpp='$CPP $CPPFLAGS'
  44149. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44150. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44151. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44152. -depcc="$CXX" am_compiler_list=
  44153. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  44154. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  44155. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  44156. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44157. -else
  44158. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  44159. - # We make a subdir and do the tests there. Otherwise we can end up
  44160. - # making bogus files that we don't know about and never remove. For
  44161. - # instance it was reported that on HP-UX the gcc test will end up
  44162. - # making a dummy file named `D' -- because `-MD' means `put the output
  44163. - # in D'.
  44164. - mkdir conftest.dir
  44165. - # Copy depcomp to subdir because otherwise we won't find it if we're
  44166. - # using a relative directory.
  44167. - cp "$am_depcomp" conftest.dir
  44168. - cd conftest.dir
  44169. - # We will build objects and dependencies in a subdirectory because
  44170. - # it helps to detect inapplicable dependency modes. For instance
  44171. - # both Tru64's cc and ICC support -MD to output dependencies as a
  44172. - # side effect of compilation, but ICC will put the dependencies in
  44173. - # the current directory while Tru64 will put them in the object
  44174. - # directory.
  44175. - mkdir sub
  44176. - am_cv_CXX_dependencies_compiler_type=none
  44177. - if test "$am_compiler_list" = ""; then
  44178. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  44179. - fi
  44180. - for depmode in $am_compiler_list; do
  44181. - # Setup a source with many dependencies, because some compilers
  44182. - # like to wrap large dependency lists on column 80 (with \), and
  44183. - # we should not choose a depcomp mode which is confused by this.
  44184. - #
  44185. - # We need to recreate these files for each test, as the compiler may
  44186. - # overwrite some of them when testing with obscure command lines.
  44187. - # This happens at least with the AIX C compiler.
  44188. - : > sub/conftest.c
  44189. - for i in 1 2 3 4 5 6; do
  44190. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  44191. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  44192. - # Solaris 8's {/usr,}/bin/sh.
  44193. - touch sub/conftst$i.h
  44194. - done
  44195. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  44196. - case $depmode in
  44197. - nosideeffect)
  44198. - # after this tag, mechanisms are not by side-effect, so they'll
  44199. - # only be used when explicitly requested
  44200. - if test "x$enable_dependency_tracking" = xyes; then
  44201. - continue
  44202. - else
  44203. - break
  44204. - fi
  44205. - ;;
  44206. - none) break ;;
  44207. - esac
  44208. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  44209. - # mode. It turns out that the SunPro C++ compiler does not properly
  44210. - # handle `-M -o', and we need to detect this.
  44211. - if depmode=$depmode \
  44212. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  44213. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  44214. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  44215. - >/dev/null 2>conftest.err &&
  44216. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  44217. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  44218. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  44219. - # icc doesn't choke on unknown options, it will just issue warnings
  44220. - # or remarks (even with -Werror). So we grep stderr for any message
  44221. - # that says an option was ignored or not supported.
  44222. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  44223. - # icc: Command line warning: ignoring option '-M'; no argument required
  44224. - # The diagnosis changed in icc 8.0:
  44225. - # icc: Command line remark: option '-MP' not supported
  44226. - if (grep 'ignoring option' conftest.err ||
  44227. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  44228. - am_cv_CXX_dependencies_compiler_type=$depmode
  44229. - break
  44230. - fi
  44231. - fi
  44232. - done
  44233. - cd ..
  44234. - rm -rf conftest.dir
  44235. -else
  44236. - am_cv_CXX_dependencies_compiler_type=none
  44237. -fi
  44238. -fi
  44239. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  44240. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  44241. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  44242. -if
  44243. - test "x$enable_dependency_tracking" != xno \
  44244. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  44245. - am__fastdepCXX_TRUE=
  44246. - am__fastdepCXX_FALSE='#'
  44247. -else
  44248. - am__fastdepCXX_TRUE='#'
  44249. - am__fastdepCXX_FALSE=
  44250. -fi
  44251. -# Find a good install program. We prefer a C program (faster),
  44252. -# so one script is as good as another. But avoid the broken or
  44253. -# incompatible versions:
  44254. -# SysV /etc/install, /usr/sbin/install
  44255. -# SunOS /usr/etc/install
  44256. -# IRIX /sbin/install
  44257. -# AIX /bin/install
  44258. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  44259. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  44260. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  44261. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  44262. -# OS/2's system install, which has a completely different semantic
  44263. -# ./install, which can be erroneously created by make from ./install.sh.
  44264. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  44265. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  44266. -if test -z "$INSTALL"; then
  44267. -if test "${ac_cv_path_install+set}" = set; then
  44268. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44269. -else
  44270. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44271. -for as_dir in $PATH
  44272. -do
  44273. - IFS=$as_save_IFS
  44274. - test -z "$as_dir" && as_dir=.
  44275. - # Account for people who put trailing slashes in PATH elements.
  44276. -case $as_dir/ in
  44277. - ./ | .// | /cC/* | \
  44278. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  44279. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  44280. - /usr/ucb/* ) ;;
  44281. - *)
  44282. - # OSF1 and SCO ODT 3.0 have their own names for install.
  44283. - # Don't use installbsd from OSF since it installs stuff as root
  44284. - # by default.
  44285. - for ac_prog in ginstall scoinst install; do
  44286. - for ac_exec_ext in '' $ac_executable_extensions; do
  44287. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  44288. - if test $ac_prog = install &&
  44289. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  44290. - # AIX install. It has an incompatible calling convention.
  44291. - :
  44292. - elif test $ac_prog = install &&
  44293. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  44294. - # program-specific install script used by HP pwplus--don't use.
  44295. - :
  44296. - else
  44297. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  44298. - break 3
  44299. - fi
  44300. - fi
  44301. - done
  44302. - done
  44303. - ;;
  44304. -esac
  44305. -done
  44306. -IFS=$as_save_IFS
  44307. -fi
  44308. - if test "${ac_cv_path_install+set}" = set; then
  44309. - INSTALL=$ac_cv_path_install
  44310. +
  44311. +
  44312. +
  44313. +
  44314. +
  44315. +
  44316. +
  44317. +
  44318. +
  44319. +
  44320. +
  44321. +
  44322. +
  44323. +
  44324. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  44325. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  44326. +hardcode_action_CXX=
  44327. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  44328. + test -n "$runpath_var_CXX" ||
  44329. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  44330. +
  44331. + # We can hardcode non-existent directories.
  44332. + if test "$hardcode_direct_CXX" != no &&
  44333. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  44334. + # have to relink, otherwise we might link with an installed library
  44335. + # when we should be linking with a yet-to-be-installed one
  44336. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  44337. + test "$hardcode_minus_L_CXX" != no; then
  44338. + # Linking always hardcodes the temporary library directory.
  44339. + hardcode_action_CXX=relink
  44340. else
  44341. - # As a last resort, use the slow shell script. Don't cache a
  44342. - # value for INSTALL within a source directory, because that will
  44343. - # break other packages using the cache if that directory is
  44344. - # removed, or if the value is a relative name.
  44345. - INSTALL=$ac_install_sh
  44346. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  44347. + hardcode_action_CXX=immediate
  44348. fi
  44349. +else
  44350. + # We cannot hardcode anything, or else we can only hardcode existing
  44351. + # directories.
  44352. + hardcode_action_CXX=unsupported
  44353. +fi
  44354. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  44355. +$as_echo "$hardcode_action_CXX" >&6; }
  44356. +
  44357. +if test "$hardcode_action_CXX" = relink ||
  44358. + test "$inherit_rpath_CXX" = yes; then
  44359. + # Fast installation is not supported
  44360. + enable_fast_install=no
  44361. +elif test "$shlibpath_overrides_runpath" = yes ||
  44362. + test "$enable_shared" = no; then
  44363. + # Fast installation is not necessary
  44364. + enable_fast_install=needless
  44365. fi
  44366. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  44367. -echo "${ECHO_T}$INSTALL" >&6; }
  44368. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  44369. -# It thinks the first close brace ends the variable substitution.
  44370. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  44371. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  44372. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  44373. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  44374. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  44375. +
  44376. +
  44377. +
  44378. + fi # test -n "$compiler"
  44379. +
  44380. + CC=$lt_save_CC
  44381. + LDCXX=$LD
  44382. + LD=$lt_save_LD
  44383. + GCC=$lt_save_GCC
  44384. + with_gnu_ld=$lt_save_with_gnu_ld
  44385. + lt_cv_path_LDCXX=$lt_cv_path_LD
  44386. + lt_cv_path_LD=$lt_save_path_LD
  44387. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  44388. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  44389. +fi # test "$_lt_caught_CXX_error" != yes
  44390. +
  44391. +ac_ext=c
  44392. +ac_cpp='$CPP $CPPFLAGS'
  44393. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44394. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44395. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44396. +
  44397. +
  44398. +
  44399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  44400. +$as_echo_n "checking whether ln -s works... " >&6; }
  44401. LN_S=$as_ln_s
  44402. if test "$LN_S" = "ln -s"; then
  44403. - { echo "$as_me:$LINENO: result: yes" >&5
  44404. -echo "${ECHO_T}yes" >&6; }
  44405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  44406. +$as_echo "yes" >&6; }
  44407. else
  44408. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  44409. -echo "${ECHO_T}no, using $LN_S" >&6; }
  44410. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  44411. +$as_echo "no, using $LN_S" >&6; }
  44412. fi
  44413. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  44414. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  44415. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  44416. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  44417. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  44419. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  44420. +set x ${MAKE-make}
  44421. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  44422. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  44423. + $as_echo_n "(cached) " >&6
  44424. else
  44425. cat >conftest.make <<\_ACEOF
  44426. SHELL = /bin/sh
  44427. @@ -20818,12 +15323,12 @@
  44428. rm -f conftest.make
  44429. fi
  44430. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  44431. - { echo "$as_me:$LINENO: result: yes" >&5
  44432. -echo "${ECHO_T}yes" >&6; }
  44433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  44434. +$as_echo "yes" >&6; }
  44435. SET_MAKE=
  44436. else
  44437. - { echo "$as_me:$LINENO: result: no" >&5
  44438. -echo "${ECHO_T}no" >&6; }
  44439. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44440. +$as_echo "no" >&6; }
  44441. SET_MAKE="MAKE=${MAKE-make}"
  44442. fi
  44443. @@ -20831,10 +15336,10 @@
  44444. do
  44445. # Extract the first word of "$ac_prog", so it can be a program name with args.
  44446. set dummy $ac_prog; ac_word=$2
  44447. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  44448. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  44449. -if test "${ac_cv_prog_RPMBUILD+set}" = set; then
  44450. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44451. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  44452. +$as_echo_n "checking for $ac_word... " >&6; }
  44453. +if test "${ac_cv_prog_RPMBUILD+set}" = set; then :
  44454. + $as_echo_n "(cached) " >&6
  44455. else
  44456. if test -n "$RPMBUILD"; then
  44457. ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
  44458. @@ -20844,25 +15349,25 @@
  44459. do
  44460. IFS=$as_save_IFS
  44461. test -z "$as_dir" && as_dir=.
  44462. - for ac_exec_ext in '' $ac_executable_extensions; do
  44463. + for ac_exec_ext in '' $ac_executable_extensions; do
  44464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  44465. ac_cv_prog_RPMBUILD="$ac_prog"
  44466. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  44467. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  44468. break 2
  44469. fi
  44470. done
  44471. -done
  44472. + done
  44473. IFS=$as_save_IFS
  44474. fi
  44475. fi
  44476. RPMBUILD=$ac_cv_prog_RPMBUILD
  44477. if test -n "$RPMBUILD"; then
  44478. - { echo "$as_me:$LINENO: result: $RPMBUILD" >&5
  44479. -echo "${ECHO_T}$RPMBUILD" >&6; }
  44480. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
  44481. +$as_echo "$RPMBUILD" >&6; }
  44482. else
  44483. - { echo "$as_me:$LINENO: result: no" >&5
  44484. -echo "${ECHO_T}no" >&6; }
  44485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44486. +$as_echo "no" >&6; }
  44487. fi
  44488. @@ -20876,7 +15381,7 @@
  44489. # Check whether --with-xmms was given.
  44490. -if test "${with_xmms+set}" = set; then
  44491. +if test "${with_xmms+set}" = set; then :
  44492. withval=$with_xmms; WITHXMMS=$withval
  44493. else
  44494. WITHXMMS=no
  44495. @@ -20885,7 +15390,7 @@
  44496. # Check whether --with-drm was given.
  44497. -if test "${with_drm+set}" = set; then
  44498. +if test "${with_drm+set}" = set; then :
  44499. withval=$with_drm; WITHDRM=$withval
  44500. else
  44501. WITHDRM=no
  44502. @@ -20894,23 +15399,19 @@
  44503. # Check whether --with-mpeg4ip was given.
  44504. -if test "${with_mpeg4ip+set}" = set; then
  44505. +if test "${with_mpeg4ip+set}" = set; then :
  44506. withval=$with_mpeg4ip; WITHMPEG4IP=$withval
  44507. else
  44508. WITHMPEG4IP=no
  44509. fi
  44510. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  44511. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  44512. -if test "${ac_cv_header_stdc+set}" = set; then
  44513. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  44515. +$as_echo_n "checking for ANSI C header files... " >&6; }
  44516. +if test "${ac_cv_header_stdc+set}" = set; then :
  44517. + $as_echo_n "(cached) " >&6
  44518. else
  44519. - cat >conftest.$ac_ext <<_ACEOF
  44520. -/* confdefs.h. */
  44521. -_ACEOF
  44522. -cat confdefs.h >>conftest.$ac_ext
  44523. -cat >>conftest.$ac_ext <<_ACEOF
  44524. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44525. /* end confdefs.h. */
  44526. #include <stdlib.h>
  44527. #include <stdarg.h>
  44528. @@ -20925,47 +15426,23 @@
  44529. return 0;
  44530. }
  44531. _ACEOF
  44532. -rm -f conftest.$ac_objext
  44533. -if { (ac_try="$ac_compile"
  44534. -case "(($ac_try" in
  44535. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44536. - *) ac_try_echo=$ac_try;;
  44537. -esac
  44538. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44539. - (eval "$ac_compile") 2>conftest.er1
  44540. - ac_status=$?
  44541. - grep -v '^ *+' conftest.er1 >conftest.err
  44542. - rm -f conftest.er1
  44543. - cat conftest.err >&5
  44544. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44545. - (exit $ac_status); } && {
  44546. - test -z "$ac_c_werror_flag" ||
  44547. - test ! -s conftest.err
  44548. - } && test -s conftest.$ac_objext; then
  44549. +if ac_fn_c_try_compile "$LINENO"; then :
  44550. ac_cv_header_stdc=yes
  44551. else
  44552. - echo "$as_me: failed program was:" >&5
  44553. -sed 's/^/| /' conftest.$ac_ext >&5
  44554. -
  44555. - ac_cv_header_stdc=no
  44556. + ac_cv_header_stdc=no
  44557. fi
  44558. -
  44559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44560. if test $ac_cv_header_stdc = yes; then
  44561. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  44562. - cat >conftest.$ac_ext <<_ACEOF
  44563. -/* confdefs.h. */
  44564. -_ACEOF
  44565. -cat confdefs.h >>conftest.$ac_ext
  44566. -cat >>conftest.$ac_ext <<_ACEOF
  44567. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44568. /* end confdefs.h. */
  44569. #include <string.h>
  44570. _ACEOF
  44571. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44572. - $EGREP "memchr" >/dev/null 2>&1; then
  44573. - :
  44574. + $EGREP "memchr" >/dev/null 2>&1; then :
  44575. +
  44576. else
  44577. ac_cv_header_stdc=no
  44578. fi
  44579. @@ -20975,18 +15452,14 @@
  44580. if test $ac_cv_header_stdc = yes; then
  44581. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  44582. - cat >conftest.$ac_ext <<_ACEOF
  44583. -/* confdefs.h. */
  44584. -_ACEOF
  44585. -cat confdefs.h >>conftest.$ac_ext
  44586. -cat >>conftest.$ac_ext <<_ACEOF
  44587. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44588. /* end confdefs.h. */
  44589. #include <stdlib.h>
  44590. _ACEOF
  44591. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44592. - $EGREP "free" >/dev/null 2>&1; then
  44593. - :
  44594. + $EGREP "free" >/dev/null 2>&1; then :
  44595. +
  44596. else
  44597. ac_cv_header_stdc=no
  44598. fi
  44599. @@ -20996,14 +15469,10 @@
  44600. if test $ac_cv_header_stdc = yes; then
  44601. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  44602. - if test "$cross_compiling" = yes; then
  44603. + if test "$cross_compiling" = yes; then :
  44604. :
  44605. else
  44606. - cat >conftest.$ac_ext <<_ACEOF
  44607. -/* confdefs.h. */
  44608. -_ACEOF
  44609. -cat confdefs.h >>conftest.$ac_ext
  44610. -cat >>conftest.$ac_ext <<_ACEOF
  44611. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44612. /* end confdefs.h. */
  44613. #include <ctype.h>
  44614. #include <stdlib.h>
  44615. @@ -21030,3869 +15499,3407 @@
  44616. return 0;
  44617. }
  44618. _ACEOF
  44619. -rm -f conftest$ac_exeext
  44620. -if { (ac_try="$ac_link"
  44621. -case "(($ac_try" in
  44622. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44623. - *) ac_try_echo=$ac_try;;
  44624. -esac
  44625. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44626. - (eval "$ac_link") 2>&5
  44627. - ac_status=$?
  44628. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44629. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44630. - { (case "(($ac_try" in
  44631. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44632. - *) ac_try_echo=$ac_try;;
  44633. -esac
  44634. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44635. - (eval "$ac_try") 2>&5
  44636. - ac_status=$?
  44637. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44638. - (exit $ac_status); }; }; then
  44639. - :
  44640. +if ac_fn_c_try_run "$LINENO"; then :
  44641. +
  44642. else
  44643. - echo "$as_me: program exited with status $ac_status" >&5
  44644. -echo "$as_me: failed program was:" >&5
  44645. -sed 's/^/| /' conftest.$ac_ext >&5
  44646. + ac_cv_header_stdc=no
  44647. +fi
  44648. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44649. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  44650. +fi
  44651. -( exit $ac_status )
  44652. -ac_cv_header_stdc=no
  44653. fi
  44654. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44655. fi
  44656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  44657. +$as_echo "$ac_cv_header_stdc" >&6; }
  44658. +if test $ac_cv_header_stdc = yes; then
  44659. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  44660. fi
  44661. +
  44662. +for ac_header in stdint.h inttypes.h
  44663. +do :
  44664. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44665. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  44666. +eval as_val=\$$as_ac_Header
  44667. + if test "x$as_val" = x""yes; then :
  44668. + cat >>confdefs.h <<_ACEOF
  44669. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44670. +_ACEOF
  44671. +
  44672. +fi
  44673. +
  44674. +done
  44675. +
  44676. +for ac_header in mathf.h
  44677. +do :
  44678. + ac_fn_c_check_header_mongrel "$LINENO" "mathf.h" "ac_cv_header_mathf_h" "$ac_includes_default"
  44679. +if test "x$ac_cv_header_mathf_h" = x""yes; then :
  44680. + cat >>confdefs.h <<_ACEOF
  44681. +#define HAVE_MATHF_H 1
  44682. +_ACEOF
  44683. +
  44684. fi
  44685. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  44686. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  44687. -if test $ac_cv_header_stdc = yes; then
  44688. -cat >>confdefs.h <<\_ACEOF
  44689. -#define STDC_HEADERS 1
  44690. +done
  44691. +
  44692. +for ac_header in float.h
  44693. +do :
  44694. + ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  44695. +if test "x$ac_cv_header_float_h" = x""yes; then :
  44696. + cat >>confdefs.h <<_ACEOF
  44697. +#define HAVE_FLOAT_H 1
  44698. _ACEOF
  44699. fi
  44700. +done
  44701. +for ac_func in strchr memcpy
  44702. +do :
  44703. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44704. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  44705. +eval as_val=\$$as_ac_var
  44706. + if test "x$as_val" = x""yes; then :
  44707. + cat >>confdefs.h <<_ACEOF
  44708. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44709. +_ACEOF
  44710. -for ac_header in stdint.h inttypes.h
  44711. -do
  44712. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44713. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44714. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  44715. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  44716. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44717. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44718. -fi
  44719. -ac_res=`eval echo '${'$as_ac_Header'}'`
  44720. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  44721. -echo "${ECHO_T}$ac_res" >&6; }
  44722. -else
  44723. - # Is the header compilable?
  44724. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  44725. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  44726. -cat >conftest.$ac_ext <<_ACEOF
  44727. -/* confdefs.h. */
  44728. +fi
  44729. +done
  44730. +
  44731. +for ac_header in sys/time.h
  44732. +do :
  44733. + ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  44734. +if test "x$ac_cv_header_sys_time_h" = x""yes; then :
  44735. + cat >>confdefs.h <<_ACEOF
  44736. +#define HAVE_SYS_TIME_H 1
  44737. _ACEOF
  44738. -cat confdefs.h >>conftest.$ac_ext
  44739. -cat >>conftest.$ac_ext <<_ACEOF
  44740. +
  44741. +fi
  44742. +
  44743. +done
  44744. +
  44745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  44746. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  44747. +if test "${ac_cv_header_time+set}" = set; then :
  44748. + $as_echo_n "(cached) " >&6
  44749. +else
  44750. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44751. /* end confdefs.h. */
  44752. -$ac_includes_default
  44753. -#include <$ac_header>
  44754. +#include <sys/types.h>
  44755. +#include <sys/time.h>
  44756. +#include <time.h>
  44757. +
  44758. +int
  44759. +main ()
  44760. +{
  44761. +if ((struct tm *) 0)
  44762. +return 0;
  44763. + ;
  44764. + return 0;
  44765. +}
  44766. _ACEOF
  44767. -rm -f conftest.$ac_objext
  44768. -if { (ac_try="$ac_compile"
  44769. -case "(($ac_try" in
  44770. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44771. - *) ac_try_echo=$ac_try;;
  44772. -esac
  44773. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44774. - (eval "$ac_compile") 2>conftest.er1
  44775. - ac_status=$?
  44776. - grep -v '^ *+' conftest.er1 >conftest.err
  44777. - rm -f conftest.er1
  44778. - cat conftest.err >&5
  44779. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44780. - (exit $ac_status); } && {
  44781. - test -z "$ac_c_werror_flag" ||
  44782. - test ! -s conftest.err
  44783. - } && test -s conftest.$ac_objext; then
  44784. - ac_header_compiler=yes
  44785. +if ac_fn_c_try_compile "$LINENO"; then :
  44786. + ac_cv_header_time=yes
  44787. else
  44788. - echo "$as_me: failed program was:" >&5
  44789. -sed 's/^/| /' conftest.$ac_ext >&5
  44790. + ac_cv_header_time=no
  44791. +fi
  44792. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44793. +fi
  44794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  44795. +$as_echo "$ac_cv_header_time" >&6; }
  44796. +if test $ac_cv_header_time = yes; then
  44797. +
  44798. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  44799. - ac_header_compiler=no
  44800. fi
  44801. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44802. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44803. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  44804. -# Is the header present?
  44805. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  44806. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  44807. -cat >conftest.$ac_ext <<_ACEOF
  44808. -/* confdefs.h. */
  44809. +for ac_header in errno.h sys/stat.h sys/types.h limits.h
  44810. +do :
  44811. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44812. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  44813. +eval as_val=\$$as_ac_Header
  44814. + if test "x$as_val" = x""yes; then :
  44815. + cat >>confdefs.h <<_ACEOF
  44816. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44817. +_ACEOF
  44818. +
  44819. +fi
  44820. +
  44821. +done
  44822. +
  44823. +for ac_header in sysfs/libsysfs.h
  44824. +do :
  44825. + ac_fn_c_check_header_mongrel "$LINENO" "sysfs/libsysfs.h" "ac_cv_header_sysfs_libsysfs_h" "$ac_includes_default"
  44826. +if test "x$ac_cv_header_sysfs_libsysfs_h" = x""yes; then :
  44827. + cat >>confdefs.h <<_ACEOF
  44828. +#define HAVE_SYSFS_LIBSYSFS_H 1
  44829. +_ACEOF
  44830. +
  44831. +fi
  44832. +
  44833. +done
  44834. +
  44835. +for ac_header in IOKit/IOKitLib.h
  44836. +do :
  44837. + ac_fn_c_check_header_mongrel "$LINENO" "IOKit/IOKitLib.h" "ac_cv_header_IOKit_IOKitLib_h" "$ac_includes_default"
  44838. +if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then :
  44839. + cat >>confdefs.h <<_ACEOF
  44840. +#define HAVE_IOKIT_IOKITLIB_H 1
  44841. _ACEOF
  44842. -cat confdefs.h >>conftest.$ac_ext
  44843. -cat >>conftest.$ac_ext <<_ACEOF
  44844. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lIOKit" >&5
  44845. +$as_echo_n "checking for main in -lIOKit... " >&6; }
  44846. +if test "${ac_cv_lib_IOKit_main+set}" = set; then :
  44847. + $as_echo_n "(cached) " >&6
  44848. +else
  44849. + ac_check_lib_save_LIBS=$LIBS
  44850. +LIBS="-lIOKit $LIBS"
  44851. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44852. /* end confdefs.h. */
  44853. -#include <$ac_header>
  44854. +
  44855. +
  44856. +int
  44857. +main ()
  44858. +{
  44859. +return main ();
  44860. + ;
  44861. + return 0;
  44862. +}
  44863. _ACEOF
  44864. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  44865. -case "(($ac_try" in
  44866. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44867. - *) ac_try_echo=$ac_try;;
  44868. -esac
  44869. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44870. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44871. - ac_status=$?
  44872. - grep -v '^ *+' conftest.er1 >conftest.err
  44873. - rm -f conftest.er1
  44874. - cat conftest.err >&5
  44875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44876. - (exit $ac_status); } >/dev/null && {
  44877. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44878. - test ! -s conftest.err
  44879. - }; then
  44880. - ac_header_preproc=yes
  44881. +if ac_fn_c_try_link "$LINENO"; then :
  44882. + ac_cv_lib_IOKit_main=yes
  44883. else
  44884. - echo "$as_me: failed program was:" >&5
  44885. -sed 's/^/| /' conftest.$ac_ext >&5
  44886. -
  44887. - ac_header_preproc=no
  44888. + ac_cv_lib_IOKit_main=no
  44889. +fi
  44890. +rm -f core conftest.err conftest.$ac_objext \
  44891. + conftest$ac_exeext conftest.$ac_ext
  44892. +LIBS=$ac_check_lib_save_LIBS
  44893. fi
  44894. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IOKit_main" >&5
  44895. +$as_echo "$ac_cv_lib_IOKit_main" >&6; }
  44896. +if test "x$ac_cv_lib_IOKit_main" = x""yes; then :
  44897. -rm -f conftest.err conftest.$ac_ext
  44898. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44899. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  44900. +$as_echo "#define HAVE_IOKIT_IOKITLIB_H 1" >>confdefs.h
  44901. -# So? What about this header?
  44902. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44903. - yes:no: )
  44904. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  44905. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44906. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  44907. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  44908. - ac_header_preproc=yes
  44909. - ;;
  44910. - no:yes:* )
  44911. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  44912. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  44913. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  44914. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  44915. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  44916. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  44917. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  44918. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  44919. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  44920. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  44921. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  44922. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  44923. + MP4FF_LIBS="-lIOKit"
  44924. - ;;
  44925. -esac
  44926. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  44927. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  44928. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44929. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44930. -else
  44931. - eval "$as_ac_Header=\$ac_header_preproc"
  44932. -fi
  44933. -ac_res=`eval echo '${'$as_ac_Header'}'`
  44934. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  44935. -echo "${ECHO_T}$ac_res" >&6; }
  44936. +fi
  44937. fi
  44938. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  44939. +
  44940. +done
  44941. +
  44942. +for ac_func in getpwuid
  44943. +do :
  44944. + ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
  44945. +if test "x$ac_cv_func_getpwuid" = x""yes; then :
  44946. cat >>confdefs.h <<_ACEOF
  44947. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44948. +#define HAVE_GETPWUID 1
  44949. _ACEOF
  44950. fi
  44951. -
  44952. done
  44953. -for ac_header in mathf.h
  44954. -do
  44955. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44956. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44957. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  44958. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  44959. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44960. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44961. -fi
  44962. -ac_res=`eval echo '${'$as_ac_Header'}'`
  44963. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  44964. -echo "${ECHO_T}$ac_res" >&6; }
  44965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  44966. +$as_echo_n "checking for inline... " >&6; }
  44967. +if test "${ac_cv_c_inline+set}" = set; then :
  44968. + $as_echo_n "(cached) " >&6
  44969. else
  44970. - # Is the header compilable?
  44971. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  44972. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  44973. -cat >conftest.$ac_ext <<_ACEOF
  44974. -/* confdefs.h. */
  44975. -_ACEOF
  44976. -cat confdefs.h >>conftest.$ac_ext
  44977. -cat >>conftest.$ac_ext <<_ACEOF
  44978. + ac_cv_c_inline=no
  44979. +for ac_kw in inline __inline__ __inline; do
  44980. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44981. /* end confdefs.h. */
  44982. -$ac_includes_default
  44983. -#include <$ac_header>
  44984. -_ACEOF
  44985. -rm -f conftest.$ac_objext
  44986. -if { (ac_try="$ac_compile"
  44987. -case "(($ac_try" in
  44988. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44989. - *) ac_try_echo=$ac_try;;
  44990. -esac
  44991. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44992. - (eval "$ac_compile") 2>conftest.er1
  44993. - ac_status=$?
  44994. - grep -v '^ *+' conftest.er1 >conftest.err
  44995. - rm -f conftest.er1
  44996. - cat conftest.err >&5
  44997. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44998. - (exit $ac_status); } && {
  44999. - test -z "$ac_c_werror_flag" ||
  45000. - test ! -s conftest.err
  45001. - } && test -s conftest.$ac_objext; then
  45002. - ac_header_compiler=yes
  45003. -else
  45004. - echo "$as_me: failed program was:" >&5
  45005. -sed 's/^/| /' conftest.$ac_ext >&5
  45006. +#ifndef __cplusplus
  45007. +typedef int foo_t;
  45008. +static $ac_kw foo_t static_foo () {return 0; }
  45009. +$ac_kw foo_t foo () {return 0; }
  45010. +#endif
  45011. - ac_header_compiler=no
  45012. +_ACEOF
  45013. +if ac_fn_c_try_compile "$LINENO"; then :
  45014. + ac_cv_c_inline=$ac_kw
  45015. fi
  45016. -
  45017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45018. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45019. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  45020. + test "$ac_cv_c_inline" != no && break
  45021. +done
  45022. -# Is the header present?
  45023. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  45024. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  45025. -cat >conftest.$ac_ext <<_ACEOF
  45026. -/* confdefs.h. */
  45027. -_ACEOF
  45028. -cat confdefs.h >>conftest.$ac_ext
  45029. -cat >>conftest.$ac_ext <<_ACEOF
  45030. -/* end confdefs.h. */
  45031. -#include <$ac_header>
  45032. +fi
  45033. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  45034. +$as_echo "$ac_cv_c_inline" >&6; }
  45035. +
  45036. +case $ac_cv_c_inline in
  45037. + inline | yes) ;;
  45038. + *)
  45039. + case $ac_cv_c_inline in
  45040. + no) ac_val=;;
  45041. + *) ac_val=$ac_cv_c_inline;;
  45042. + esac
  45043. + cat >>confdefs.h <<_ACEOF
  45044. +#ifndef __cplusplus
  45045. +#define inline $ac_val
  45046. +#endif
  45047. _ACEOF
  45048. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  45049. -case "(($ac_try" in
  45050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45051. - *) ac_try_echo=$ac_try;;
  45052. + ;;
  45053. esac
  45054. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45055. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45056. - ac_status=$?
  45057. - grep -v '^ *+' conftest.er1 >conftest.err
  45058. - rm -f conftest.er1
  45059. - cat conftest.err >&5
  45060. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45061. - (exit $ac_status); } >/dev/null && {
  45062. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45063. - test ! -s conftest.err
  45064. - }; then
  45065. - ac_header_preproc=yes
  45066. -else
  45067. - echo "$as_me: failed program was:" >&5
  45068. -sed 's/^/| /' conftest.$ac_ext >&5
  45069. - ac_header_preproc=no
  45070. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  45071. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  45072. +if test "${ac_cv_c_bigendian+set}" = set; then :
  45073. + $as_echo_n "(cached) " >&6
  45074. +else
  45075. + ac_cv_c_bigendian=unknown
  45076. + # See if we're dealing with a universal compiler.
  45077. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45078. +/* end confdefs.h. */
  45079. +#ifndef __APPLE_CC__
  45080. + not a universal capable compiler
  45081. + #endif
  45082. + typedef int dummy;
  45083. +
  45084. +_ACEOF
  45085. +if ac_fn_c_try_compile "$LINENO"; then :
  45086. +
  45087. + # Check for potential -arch flags. It is not universal unless
  45088. + # there are at least two -arch flags with different values.
  45089. + ac_arch=
  45090. + ac_prev=
  45091. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  45092. + if test -n "$ac_prev"; then
  45093. + case $ac_word in
  45094. + i?86 | x86_64 | ppc | ppc64)
  45095. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  45096. + ac_arch=$ac_word
  45097. + else
  45098. + ac_cv_c_bigendian=universal
  45099. + break
  45100. + fi
  45101. + ;;
  45102. + esac
  45103. + ac_prev=
  45104. + elif test "x$ac_word" = "x-arch"; then
  45105. + ac_prev=arch
  45106. + fi
  45107. + done
  45108. fi
  45109. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45110. + if test $ac_cv_c_bigendian = unknown; then
  45111. + # See if sys/param.h defines the BYTE_ORDER macro.
  45112. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45113. +/* end confdefs.h. */
  45114. +#include <sys/types.h>
  45115. + #include <sys/param.h>
  45116. -rm -f conftest.err conftest.$ac_ext
  45117. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45118. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  45119. +int
  45120. +main ()
  45121. +{
  45122. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  45123. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  45124. + && LITTLE_ENDIAN)
  45125. + bogus endian macros
  45126. + #endif
  45127. -# So? What about this header?
  45128. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45129. - yes:no: )
  45130. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  45131. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45132. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  45133. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  45134. - ac_header_preproc=yes
  45135. - ;;
  45136. - no:yes:* )
  45137. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  45138. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  45139. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  45140. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  45141. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  45142. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  45143. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  45144. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  45145. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  45146. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  45147. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  45148. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  45149. + ;
  45150. + return 0;
  45151. +}
  45152. +_ACEOF
  45153. +if ac_fn_c_try_compile "$LINENO"; then :
  45154. + # It does; now see whether it defined to BIG_ENDIAN or not.
  45155. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45156. +/* end confdefs.h. */
  45157. +#include <sys/types.h>
  45158. + #include <sys/param.h>
  45159. - ;;
  45160. -esac
  45161. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  45162. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  45163. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45164. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45165. -else
  45166. - eval "$as_ac_Header=\$ac_header_preproc"
  45167. -fi
  45168. -ac_res=`eval echo '${'$as_ac_Header'}'`
  45169. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45170. -echo "${ECHO_T}$ac_res" >&6; }
  45171. +int
  45172. +main ()
  45173. +{
  45174. +#if BYTE_ORDER != BIG_ENDIAN
  45175. + not big endian
  45176. + #endif
  45177. -fi
  45178. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  45179. - cat >>confdefs.h <<_ACEOF
  45180. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45181. + ;
  45182. + return 0;
  45183. +}
  45184. _ACEOF
  45185. -
  45186. +if ac_fn_c_try_compile "$LINENO"; then :
  45187. + ac_cv_c_bigendian=yes
  45188. +else
  45189. + ac_cv_c_bigendian=no
  45190. fi
  45191. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45192. +fi
  45193. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45194. + fi
  45195. + if test $ac_cv_c_bigendian = unknown; then
  45196. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  45197. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45198. +/* end confdefs.h. */
  45199. +#include <limits.h>
  45200. -done
  45201. -
  45202. +int
  45203. +main ()
  45204. +{
  45205. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  45206. + bogus endian macros
  45207. + #endif
  45208. -for ac_header in float.h
  45209. -do
  45210. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  45211. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45212. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  45213. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  45214. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45215. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45216. -fi
  45217. -ac_res=`eval echo '${'$as_ac_Header'}'`
  45218. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45219. -echo "${ECHO_T}$ac_res" >&6; }
  45220. -else
  45221. - # Is the header compilable?
  45222. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  45223. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  45224. -cat >conftest.$ac_ext <<_ACEOF
  45225. -/* confdefs.h. */
  45226. + ;
  45227. + return 0;
  45228. +}
  45229. _ACEOF
  45230. -cat confdefs.h >>conftest.$ac_ext
  45231. -cat >>conftest.$ac_ext <<_ACEOF
  45232. +if ac_fn_c_try_compile "$LINENO"; then :
  45233. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  45234. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45235. /* end confdefs.h. */
  45236. -$ac_includes_default
  45237. -#include <$ac_header>
  45238. +#include <limits.h>
  45239. +
  45240. +int
  45241. +main ()
  45242. +{
  45243. +#ifndef _BIG_ENDIAN
  45244. + not big endian
  45245. + #endif
  45246. +
  45247. + ;
  45248. + return 0;
  45249. +}
  45250. _ACEOF
  45251. -rm -f conftest.$ac_objext
  45252. -if { (ac_try="$ac_compile"
  45253. -case "(($ac_try" in
  45254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45255. - *) ac_try_echo=$ac_try;;
  45256. -esac
  45257. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45258. - (eval "$ac_compile") 2>conftest.er1
  45259. - ac_status=$?
  45260. - grep -v '^ *+' conftest.er1 >conftest.err
  45261. - rm -f conftest.er1
  45262. - cat conftest.err >&5
  45263. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45264. - (exit $ac_status); } && {
  45265. - test -z "$ac_c_werror_flag" ||
  45266. - test ! -s conftest.err
  45267. - } && test -s conftest.$ac_objext; then
  45268. - ac_header_compiler=yes
  45269. +if ac_fn_c_try_compile "$LINENO"; then :
  45270. + ac_cv_c_bigendian=yes
  45271. else
  45272. - echo "$as_me: failed program was:" >&5
  45273. -sed 's/^/| /' conftest.$ac_ext >&5
  45274. -
  45275. - ac_header_compiler=no
  45276. + ac_cv_c_bigendian=no
  45277. fi
  45278. -
  45279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45280. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45281. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  45282. +fi
  45283. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45284. + fi
  45285. + if test $ac_cv_c_bigendian = unknown; then
  45286. + # Compile a test program.
  45287. + if test "$cross_compiling" = yes; then :
  45288. + # Try to guess by grepping values from an object file.
  45289. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45290. +/* end confdefs.h. */
  45291. +short int ascii_mm[] =
  45292. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  45293. + short int ascii_ii[] =
  45294. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  45295. + int use_ascii (int i) {
  45296. + return ascii_mm[i] + ascii_ii[i];
  45297. + }
  45298. + short int ebcdic_ii[] =
  45299. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  45300. + short int ebcdic_mm[] =
  45301. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  45302. + int use_ebcdic (int i) {
  45303. + return ebcdic_mm[i] + ebcdic_ii[i];
  45304. + }
  45305. + extern int foo;
  45306. -# Is the header present?
  45307. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  45308. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  45309. -cat >conftest.$ac_ext <<_ACEOF
  45310. -/* confdefs.h. */
  45311. +int
  45312. +main ()
  45313. +{
  45314. +return use_ascii (foo) == use_ebcdic (foo);
  45315. + ;
  45316. + return 0;
  45317. +}
  45318. _ACEOF
  45319. -cat confdefs.h >>conftest.$ac_ext
  45320. -cat >>conftest.$ac_ext <<_ACEOF
  45321. +if ac_fn_c_try_compile "$LINENO"; then :
  45322. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  45323. + ac_cv_c_bigendian=yes
  45324. + fi
  45325. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  45326. + if test "$ac_cv_c_bigendian" = unknown; then
  45327. + ac_cv_c_bigendian=no
  45328. + else
  45329. + # finding both strings is unlikely to happen, but who knows?
  45330. + ac_cv_c_bigendian=unknown
  45331. + fi
  45332. + fi
  45333. +fi
  45334. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45335. +else
  45336. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45337. /* end confdefs.h. */
  45338. -#include <$ac_header>
  45339. +$ac_includes_default
  45340. +int
  45341. +main ()
  45342. +{
  45343. +
  45344. + /* Are we little or big endian? From Harbison&Steele. */
  45345. + union
  45346. + {
  45347. + long int l;
  45348. + char c[sizeof (long int)];
  45349. + } u;
  45350. + u.l = 1;
  45351. + return u.c[sizeof (long int) - 1] == 1;
  45352. +
  45353. + ;
  45354. + return 0;
  45355. +}
  45356. _ACEOF
  45357. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  45358. -case "(($ac_try" in
  45359. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45360. - *) ac_try_echo=$ac_try;;
  45361. -esac
  45362. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45363. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45364. - ac_status=$?
  45365. - grep -v '^ *+' conftest.er1 >conftest.err
  45366. - rm -f conftest.er1
  45367. - cat conftest.err >&5
  45368. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45369. - (exit $ac_status); } >/dev/null && {
  45370. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45371. - test ! -s conftest.err
  45372. - }; then
  45373. - ac_header_preproc=yes
  45374. +if ac_fn_c_try_run "$LINENO"; then :
  45375. + ac_cv_c_bigendian=no
  45376. else
  45377. - echo "$as_me: failed program was:" >&5
  45378. -sed 's/^/| /' conftest.$ac_ext >&5
  45379. + ac_cv_c_bigendian=yes
  45380. +fi
  45381. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  45382. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  45383. +fi
  45384. - ac_header_preproc=no
  45385. + fi
  45386. fi
  45387. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  45388. +$as_echo "$ac_cv_c_bigendian" >&6; }
  45389. + case $ac_cv_c_bigendian in #(
  45390. + yes)
  45391. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  45392. +;; #(
  45393. + no)
  45394. + ;; #(
  45395. + universal)
  45396. -rm -f conftest.err conftest.$ac_ext
  45397. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45398. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  45399. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  45400. -# So? What about this header?
  45401. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45402. - yes:no: )
  45403. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  45404. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45405. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  45406. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  45407. - ac_header_preproc=yes
  45408. - ;;
  45409. - no:yes:* )
  45410. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  45411. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  45412. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  45413. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  45414. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  45415. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  45416. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  45417. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  45418. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  45419. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  45420. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  45421. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  45422. + ;; #(
  45423. + *)
  45424. + as_fn_error "unknown endianness
  45425. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  45426. + esac
  45427. - ;;
  45428. -esac
  45429. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  45430. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  45431. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45432. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45433. -else
  45434. - eval "$as_ac_Header=\$ac_header_preproc"
  45435. -fi
  45436. -ac_res=`eval echo '${'$as_ac_Header'}'`
  45437. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45438. -echo "${ECHO_T}$ac_res" >&6; }
  45439. -fi
  45440. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  45441. - cat >>confdefs.h <<_ACEOF
  45442. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45443. +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  45444. +if test "x$ac_cv_type_off_t" = x""yes; then :
  45445. +
  45446. +else
  45447. +
  45448. +cat >>confdefs.h <<_ACEOF
  45449. +#define off_t long int
  45450. _ACEOF
  45451. fi
  45452. -done
  45453. -for ac_func in strchr memcpy
  45454. -do
  45455. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  45456. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  45457. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  45458. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  45459. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45460. -else
  45461. - cat >conftest.$ac_ext <<_ACEOF
  45462. -/* confdefs.h. */
  45463. -_ACEOF
  45464. -cat confdefs.h >>conftest.$ac_ext
  45465. -cat >>conftest.$ac_ext <<_ACEOF
  45466. -/* end confdefs.h. */
  45467. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  45468. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  45469. -#define $ac_func innocuous_$ac_func
  45470. +# AC_C99_FUNC_LRINTF
  45471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
  45472. +$as_echo_n "checking for lrintf... " >&6; }
  45473. +if test "${ac_cv_c99_lrintf+set}" = set; then :
  45474. + $as_echo_n "(cached) " >&6
  45475. +else
  45476. +
  45477. +lrintf_save_CFLAGS=$CFLAGS
  45478. +CFLAGS="-O -lm"
  45479. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45480. +/* end confdefs.h. */
  45481. +
  45482. +#define _ISOC9X_SOURCE 1
  45483. +#define _ISOC99_SOURCE 1
  45484. +#define __USE_ISOC99 1
  45485. +#define __USE_ISOC9X 1
  45486. +
  45487. +#include <math.h>
  45488. +
  45489. +int
  45490. +main ()
  45491. +{
  45492. +if (!lrintf(3.14159)) lrintf(2.7183);
  45493. + ;
  45494. + return 0;
  45495. +}
  45496. +_ACEOF
  45497. +if ac_fn_c_try_link "$LINENO"; then :
  45498. + ac_cv_c99_lrintf=yes
  45499. +else
  45500. + ac_cv_c99_lrintf=no
  45501. +fi
  45502. +rm -f core conftest.err conftest.$ac_objext \
  45503. + conftest$ac_exeext conftest.$ac_ext
  45504. +
  45505. +CFLAGS=$lrintf_save_CFLAGS
  45506. +
  45507. +
  45508. +fi
  45509. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
  45510. +$as_echo "$ac_cv_c99_lrintf" >&6; }
  45511. +
  45512. +if test "$ac_cv_c99_lrintf" = yes; then
  45513. -/* System header to define __stub macros and hopefully few prototypes,
  45514. - which can conflict with char $ac_func (); below.
  45515. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  45516. - <limits.h> exists even on freestanding compilers. */
  45517. +$as_echo "#define HAVE_LRINTF 1" >>confdefs.h
  45518. -#ifdef __STDC__
  45519. -# include <limits.h>
  45520. -#else
  45521. -# include <assert.h>
  45522. -#endif
  45523. +fi
  45524. -#undef $ac_func
  45525. -/* Override any GCC internal prototype to avoid an error.
  45526. - Use char because int might match the return type of a GCC
  45527. - builtin and then its argument prototype would still apply. */
  45528. -#ifdef __cplusplus
  45529. -extern "C"
  45530. -#endif
  45531. -char $ac_func ();
  45532. -/* The GNU C library defines this for functions which it implements
  45533. - to always fail with ENOSYS. Some functions are actually named
  45534. - something starting with __ and the normal name is an alias. */
  45535. -#if defined __stub_$ac_func || defined __stub___$ac_func
  45536. -choke me
  45537. -#endif
  45538. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float32_t temp" >&5
  45539. +$as_echo_n "checking for float32_t temp... " >&6; }
  45540. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45541. +/* end confdefs.h. */
  45542. +#include <sys/types.h>,
  45543. + #include <sys/float.h>
  45544. int
  45545. main ()
  45546. {
  45547. -return $ac_func ();
  45548. +float32_t temp;
  45549. ;
  45550. return 0;
  45551. }
  45552. _ACEOF
  45553. -rm -f conftest.$ac_objext conftest$ac_exeext
  45554. -if { (ac_try="$ac_link"
  45555. -case "(($ac_try" in
  45556. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45557. - *) ac_try_echo=$ac_try;;
  45558. -esac
  45559. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45560. - (eval "$ac_link") 2>conftest.er1
  45561. - ac_status=$?
  45562. - grep -v '^ *+' conftest.er1 >conftest.err
  45563. - rm -f conftest.er1
  45564. - cat conftest.err >&5
  45565. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45566. - (exit $ac_status); } && {
  45567. - test -z "$ac_c_werror_flag" ||
  45568. - test ! -s conftest.err
  45569. - } && test -s conftest$ac_exeext &&
  45570. - $as_test_x conftest$ac_exeext; then
  45571. - eval "$as_ac_var=yes"
  45572. +if ac_fn_c_try_compile "$LINENO"; then :
  45573. + libfaad_ok=yes
  45574. else
  45575. - echo "$as_me: failed program was:" >&5
  45576. -sed 's/^/| /' conftest.$ac_ext >&5
  45577. -
  45578. - eval "$as_ac_var=no"
  45579. + libfaad_ok=no
  45580. fi
  45581. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45582. + if test $libfaad_ok = yes; then
  45583. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45584. - conftest$ac_exeext conftest.$ac_ext
  45585. +$as_echo "#define HAVE_FLOAT32_T 1" >>confdefs.h
  45586. +
  45587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45588. +$as_echo "yes" >&6; }
  45589. + else
  45590. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45591. +$as_echo "no" >&6; }
  45592. fi
  45593. -ac_res=`eval echo '${'$as_ac_var'}'`
  45594. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45595. -echo "${ECHO_T}$ac_res" >&6; }
  45596. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  45597. +
  45598. +
  45599. +for ac_func in strsep
  45600. +do :
  45601. + ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
  45602. +if test "x$ac_cv_func_strsep" = x""yes; then :
  45603. cat >>confdefs.h <<_ACEOF
  45604. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  45605. +#define HAVE_STRSEP 1
  45606. _ACEOF
  45607. fi
  45608. done
  45609. -for ac_header in sys/time.h
  45610. +# Extract the first word of "mpeg4ip-config", so it can be a program name with args.
  45611. +set dummy mpeg4ip-config; ac_word=$2
  45612. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  45613. +$as_echo_n "checking for $ac_word... " >&6; }
  45614. +if test "${ac_cv_prog_external_mp4v2+set}" = set; then :
  45615. + $as_echo_n "(cached) " >&6
  45616. +else
  45617. + if test -n "$external_mp4v2"; then
  45618. + ac_cv_prog_external_mp4v2="$external_mp4v2" # Let the user override the test.
  45619. +else
  45620. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45621. +for as_dir in $PATH
  45622. do
  45623. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  45624. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45625. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  45626. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  45627. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45629. -fi
  45630. -ac_res=`eval echo '${'$as_ac_Header'}'`
  45631. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45632. -echo "${ECHO_T}$ac_res" >&6; }
  45633. + IFS=$as_save_IFS
  45634. + test -z "$as_dir" && as_dir=.
  45635. + for ac_exec_ext in '' $ac_executable_extensions; do
  45636. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  45637. + ac_cv_prog_external_mp4v2="yes"
  45638. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  45639. + break 2
  45640. + fi
  45641. +done
  45642. + done
  45643. +IFS=$as_save_IFS
  45644. +
  45645. + test -z "$ac_cv_prog_external_mp4v2" && ac_cv_prog_external_mp4v2="no"
  45646. +fi
  45647. +fi
  45648. +external_mp4v2=$ac_cv_prog_external_mp4v2
  45649. +if test -n "$external_mp4v2"; then
  45650. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $external_mp4v2" >&5
  45651. +$as_echo "$external_mp4v2" >&6; }
  45652. else
  45653. - # Is the header compilable?
  45654. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  45655. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  45656. -cat >conftest.$ac_ext <<_ACEOF
  45657. -/* confdefs.h. */
  45658. -_ACEOF
  45659. -cat confdefs.h >>conftest.$ac_ext
  45660. -cat >>conftest.$ac_ext <<_ACEOF
  45661. -/* end confdefs.h. */
  45662. -$ac_includes_default
  45663. -#include <$ac_header>
  45664. -_ACEOF
  45665. -rm -f conftest.$ac_objext
  45666. -if { (ac_try="$ac_compile"
  45667. -case "(($ac_try" in
  45668. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45669. - *) ac_try_echo=$ac_try;;
  45670. -esac
  45671. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45672. - (eval "$ac_compile") 2>conftest.er1
  45673. - ac_status=$?
  45674. - grep -v '^ *+' conftest.er1 >conftest.err
  45675. - rm -f conftest.er1
  45676. - cat conftest.err >&5
  45677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45678. - (exit $ac_status); } && {
  45679. - test -z "$ac_c_werror_flag" ||
  45680. - test ! -s conftest.err
  45681. - } && test -s conftest.$ac_objext; then
  45682. - ac_header_compiler=yes
  45683. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45684. +$as_echo "no" >&6; }
  45685. +fi
  45686. +
  45687. +
  45688. + if false; then
  45689. + HAVE_MPEG4IP_PLUG_TRUE=
  45690. + HAVE_MPEG4IP_PLUG_FALSE='#'
  45691. else
  45692. - echo "$as_me: failed program was:" >&5
  45693. -sed 's/^/| /' conftest.$ac_ext >&5
  45694. + HAVE_MPEG4IP_PLUG_TRUE='#'
  45695. + HAVE_MPEG4IP_PLUG_FALSE=
  45696. +fi
  45697. - ac_header_compiler=no
  45698. +if test x$WITHMPEG4IP = xyes; then
  45699. + if test x$external_mp4v2 = xyes; then
  45700. + if true; then
  45701. + HAVE_MPEG4IP_PLUG_TRUE=
  45702. + HAVE_MPEG4IP_PLUG_FALSE='#'
  45703. +else
  45704. + HAVE_MPEG4IP_PLUG_TRUE='#'
  45705. + HAVE_MPEG4IP_PLUG_FALSE=
  45706. fi
  45707. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45708. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45709. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  45710. + { $as_echo "$as_me:${as_lineno-$LINENO}: \"Building MPEG4IP plugin\"" >&5
  45711. +$as_echo "$as_me: \"Building MPEG4IP plugin\"" >&6;}
  45712. + else
  45713. + { $as_echo "$as_me:${as_lineno-$LINENO}: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&5
  45714. +$as_echo "$as_me: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&6;}
  45715. + fi
  45716. +fi
  45717. -# Is the header present?
  45718. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  45719. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  45720. -cat >conftest.$ac_ext <<_ACEOF
  45721. -/* confdefs.h. */
  45722. -_ACEOF
  45723. -cat confdefs.h >>conftest.$ac_ext
  45724. -cat >>conftest.$ac_ext <<_ACEOF
  45725. -/* end confdefs.h. */
  45726. -#include <$ac_header>
  45727. -_ACEOF
  45728. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  45729. -case "(($ac_try" in
  45730. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45731. - *) ac_try_echo=$ac_try;;
  45732. -esac
  45733. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45734. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45735. - ac_status=$?
  45736. - grep -v '^ *+' conftest.er1 >conftest.err
  45737. - rm -f conftest.er1
  45738. - cat conftest.err >&5
  45739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45740. - (exit $ac_status); } >/dev/null && {
  45741. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45742. - test ! -s conftest.err
  45743. - }; then
  45744. - ac_header_preproc=yes
  45745. +if test x$WITHXMMS = xyes; then
  45746. + for ac_prog in xmms-config
  45747. +do
  45748. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  45749. +set dummy $ac_prog; ac_word=$2
  45750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  45751. +$as_echo_n "checking for $ac_word... " >&6; }
  45752. +if test "${ac_cv_prog_XMMS_CONFIG+set}" = set; then :
  45753. + $as_echo_n "(cached) " >&6
  45754. else
  45755. - echo "$as_me: failed program was:" >&5
  45756. -sed 's/^/| /' conftest.$ac_ext >&5
  45757. + if test -n "$XMMS_CONFIG"; then
  45758. + ac_cv_prog_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test.
  45759. +else
  45760. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45761. +for as_dir in $PATH
  45762. +do
  45763. + IFS=$as_save_IFS
  45764. + test -z "$as_dir" && as_dir=.
  45765. + for ac_exec_ext in '' $ac_executable_extensions; do
  45766. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  45767. + ac_cv_prog_XMMS_CONFIG="$ac_prog"
  45768. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  45769. + break 2
  45770. + fi
  45771. +done
  45772. + done
  45773. +IFS=$as_save_IFS
  45774. - ac_header_preproc=no
  45775. +fi
  45776. +fi
  45777. +XMMS_CONFIG=$ac_cv_prog_XMMS_CONFIG
  45778. +if test -n "$XMMS_CONFIG"; then
  45779. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMMS_CONFIG" >&5
  45780. +$as_echo "$XMMS_CONFIG" >&6; }
  45781. +else
  45782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45783. +$as_echo "no" >&6; }
  45784. fi
  45785. -rm -f conftest.err conftest.$ac_ext
  45786. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45787. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  45788. -# So? What about this header?
  45789. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45790. - yes:no: )
  45791. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  45792. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45793. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  45794. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  45795. - ac_header_preproc=yes
  45796. - ;;
  45797. - no:yes:* )
  45798. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  45799. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  45800. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  45801. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  45802. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  45803. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  45804. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  45805. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  45806. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  45807. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  45808. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  45809. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  45810. + test -n "$XMMS_CONFIG" && break
  45811. +done
  45812. +test -n "$XMMS_CONFIG" || XMMS_CONFIG=""not_found""
  45813. - ;;
  45814. -esac
  45815. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  45816. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  45817. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45818. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45819. -else
  45820. - eval "$as_ac_Header=\$ac_header_preproc"
  45821. -fi
  45822. -ac_res=`eval echo '${'$as_ac_Header'}'`
  45823. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  45824. -echo "${ECHO_T}$ac_res" >&6; }
  45825. + if test "$XMMS_CONFIG" = "not_found"; then
  45826. + as_fn_error "\"*** xmms-config not found - xmms plugin can't be build\"" "$LINENO" 5
  45827. + fi
  45828. + ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  45829. +if test "x$ac_cv_header_pthread_h" = x""yes; then :
  45830. +else
  45831. + as_fn_error "*** pthread headers support not installed or not found" "$LINENO" 5
  45832. fi
  45833. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  45834. - cat >>confdefs.h <<_ACEOF
  45835. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45836. -_ACEOF
  45837. +
  45838. + ac_fn_c_check_header_mongrel "$LINENO" "id3.h" "ac_cv_header_id3_h" "$ac_includes_default"
  45839. +if test "x$ac_cv_header_id3_h" = x""yes; then :
  45840. +
  45841. +else
  45842. + as_fn_error "*** id3lib headers support not installed or not found" "$LINENO" 5
  45843. +fi
  45844. +
  45845. +
  45846. + for ac_prog in gtk-config
  45847. +do
  45848. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  45849. +set dummy $ac_prog; ac_word=$2
  45850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  45851. +$as_echo_n "checking for $ac_word... " >&6; }
  45852. +if test "${ac_cv_prog_GTK_CONFIG+set}" = set; then :
  45853. + $as_echo_n "(cached) " >&6
  45854. +else
  45855. + if test -n "$GTK_CONFIG"; then
  45856. + ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
  45857. +else
  45858. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45859. +for as_dir in $PATH
  45860. +do
  45861. + IFS=$as_save_IFS
  45862. + test -z "$as_dir" && as_dir=.
  45863. + for ac_exec_ext in '' $ac_executable_extensions; do
  45864. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  45865. + ac_cv_prog_GTK_CONFIG="$ac_prog"
  45866. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  45867. + break 2
  45868. + fi
  45869. +done
  45870. + done
  45871. +IFS=$as_save_IFS
  45872. +
  45873. +fi
  45874. +fi
  45875. +GTK_CONFIG=$ac_cv_prog_GTK_CONFIG
  45876. +if test -n "$GTK_CONFIG"; then
  45877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
  45878. +$as_echo "$GTK_CONFIG" >&6; }
  45879. +else
  45880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45881. +$as_echo "no" >&6; }
  45882. fi
  45883. +
  45884. + test -n "$GTK_CONFIG" && break
  45885. done
  45886. +test -n "$GTK_CONFIG" || GTK_CONFIG=""not_found""
  45887. -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  45888. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  45889. -if test "${ac_cv_header_time+set}" = set; then
  45890. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45891. + if test "$XGTK_CONFIG" = "not_found"; then
  45892. + as_fn_error "\"*** gtk-config not found - xmms plugin can't be build without\"" "$LINENO" 5
  45893. + fi
  45894. +
  45895. + if true; then
  45896. + HAVE_XMMS_TRUE=
  45897. + HAVE_XMMS_FALSE='#'
  45898. else
  45899. - cat >conftest.$ac_ext <<_ACEOF
  45900. -/* confdefs.h. */
  45901. -_ACEOF
  45902. -cat confdefs.h >>conftest.$ac_ext
  45903. -cat >>conftest.$ac_ext <<_ACEOF
  45904. -/* end confdefs.h. */
  45905. -#include <sys/types.h>
  45906. -#include <sys/time.h>
  45907. -#include <time.h>
  45908. + HAVE_XMMS_TRUE='#'
  45909. + HAVE_XMMS_FALSE=
  45910. +fi
  45911. -int
  45912. -main ()
  45913. -{
  45914. -if ((struct tm *) 0)
  45915. -return 0;
  45916. - ;
  45917. - return 0;
  45918. -}
  45919. -_ACEOF
  45920. -rm -f conftest.$ac_objext
  45921. -if { (ac_try="$ac_compile"
  45922. -case "(($ac_try" in
  45923. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45924. - *) ac_try_echo=$ac_try;;
  45925. -esac
  45926. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45927. - (eval "$ac_compile") 2>conftest.er1
  45928. - ac_status=$?
  45929. - grep -v '^ *+' conftest.er1 >conftest.err
  45930. - rm -f conftest.er1
  45931. - cat conftest.err >&5
  45932. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45933. - (exit $ac_status); } && {
  45934. - test -z "$ac_c_werror_flag" ||
  45935. - test ! -s conftest.err
  45936. - } && test -s conftest.$ac_objext; then
  45937. - ac_cv_header_time=yes
  45938. else
  45939. - echo "$as_me: failed program was:" >&5
  45940. -sed 's/^/| /' conftest.$ac_ext >&5
  45941. + { $as_echo "$as_me:${as_lineno-$LINENO}: no xmms build configured" >&5
  45942. +$as_echo "$as_me: no xmms build configured" >&6;}
  45943. + if false; then
  45944. + HAVE_XMMS_TRUE=
  45945. + HAVE_XMMS_FALSE='#'
  45946. +else
  45947. + HAVE_XMMS_TRUE='#'
  45948. + HAVE_XMMS_FALSE=
  45949. +fi
  45950. +
  45951. +fi
  45952. +
  45953. +if test x$WITHDRM = xyes; then
  45954. +
  45955. +$as_echo "#define DRM 1" >>confdefs.h
  45956. +
  45957. +
  45958. +$as_echo "#define DRM_PS 1" >>confdefs.h
  45959. - ac_cv_header_time=no
  45960. fi
  45961. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45962. -fi
  45963. -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  45964. -echo "${ECHO_T}$ac_cv_header_time" >&6; }
  45965. -if test $ac_cv_header_time = yes; then
  45966. +ac_config_files="$ac_config_files libfaad/Makefile"
  45967. +
  45968. +ac_config_files="$ac_config_files common/Makefile"
  45969. +
  45970. +ac_config_files="$ac_config_files common/mp4ff/Makefile"
  45971. +
  45972. +ac_config_files="$ac_config_files plugins/Makefile"
  45973. +
  45974. +ac_config_files="$ac_config_files plugins/xmms/Makefile"
  45975. -cat >>confdefs.h <<\_ACEOF
  45976. -#define TIME_WITH_SYS_TIME 1
  45977. -_ACEOF
  45978. +ac_config_files="$ac_config_files plugins/xmms/src/Makefile"
  45979. -fi
  45980. +ac_config_files="$ac_config_files plugins/mpeg4ip/Makefile"
  45981. +ac_config_files="$ac_config_files faad2.spec"
  45982. +ac_config_files="$ac_config_files frontend/Makefile"
  45983. +ac_config_files="$ac_config_files Makefile"
  45984. +cat >confcache <<\_ACEOF
  45985. +# This file is a shell script that caches the results of configure
  45986. +# tests run on this system so they can be shared between configure
  45987. +# scripts and configure runs, see configure's option --config-cache.
  45988. +# It is not useful on other systems. If it contains results you don't
  45989. +# want to keep, you may remove or edit it.
  45990. +#
  45991. +# config.status only pays attention to the cache file if you give it
  45992. +# the --recheck option to rerun configure.
  45993. +#
  45994. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  45995. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  45996. +# following values.
  45997. -for ac_header in errno.h sys/stat.h sys/types.h limits.h
  45998. -do
  45999. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46000. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46001. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46002. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46003. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46004. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46005. -fi
  46006. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46007. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46008. -echo "${ECHO_T}$ac_res" >&6; }
  46009. -else
  46010. - # Is the header compilable?
  46011. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46012. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46013. -cat >conftest.$ac_ext <<_ACEOF
  46014. -/* confdefs.h. */
  46015. -_ACEOF
  46016. -cat confdefs.h >>conftest.$ac_ext
  46017. -cat >>conftest.$ac_ext <<_ACEOF
  46018. -/* end confdefs.h. */
  46019. -$ac_includes_default
  46020. -#include <$ac_header>
  46021. _ACEOF
  46022. -rm -f conftest.$ac_objext
  46023. -if { (ac_try="$ac_compile"
  46024. -case "(($ac_try" in
  46025. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46026. - *) ac_try_echo=$ac_try;;
  46027. -esac
  46028. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46029. - (eval "$ac_compile") 2>conftest.er1
  46030. - ac_status=$?
  46031. - grep -v '^ *+' conftest.er1 >conftest.err
  46032. - rm -f conftest.er1
  46033. - cat conftest.err >&5
  46034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46035. - (exit $ac_status); } && {
  46036. - test -z "$ac_c_werror_flag" ||
  46037. - test ! -s conftest.err
  46038. - } && test -s conftest.$ac_objext; then
  46039. - ac_header_compiler=yes
  46040. -else
  46041. - echo "$as_me: failed program was:" >&5
  46042. -sed 's/^/| /' conftest.$ac_ext >&5
  46043. - ac_header_compiler=no
  46044. +# The following way of writing the cache mishandles newlines in values,
  46045. +# but we know of no workaround that is simple, portable, and efficient.
  46046. +# So, we kill variables containing newlines.
  46047. +# Ultrix sh set writes to stderr and can't be redirected directly,
  46048. +# and sets the high bit in the cache file unless we assign to the vars.
  46049. +(
  46050. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  46051. + eval ac_val=\$$ac_var
  46052. + case $ac_val in #(
  46053. + *${as_nl}*)
  46054. + case $ac_var in #(
  46055. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  46056. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  46057. + esac
  46058. + case $ac_var in #(
  46059. + _ | IFS | as_nl) ;; #(
  46060. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  46061. + *) { eval $ac_var=; unset $ac_var;} ;;
  46062. + esac ;;
  46063. + esac
  46064. + done
  46065. +
  46066. + (set) 2>&1 |
  46067. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  46068. + *${as_nl}ac_space=\ *)
  46069. + # `set' does not quote correctly, so add quotes: double-quote
  46070. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  46071. + sed -n \
  46072. + "s/'/'\\\\''/g;
  46073. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  46074. + ;; #(
  46075. + *)
  46076. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  46077. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  46078. + ;;
  46079. + esac |
  46080. + sort
  46081. +) |
  46082. + sed '
  46083. + /^ac_cv_env_/b end
  46084. + t clear
  46085. + :clear
  46086. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  46087. + t end
  46088. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  46089. + :end' >>confcache
  46090. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  46091. + if test -w "$cache_file"; then
  46092. + test "x$cache_file" != "x/dev/null" &&
  46093. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  46094. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  46095. + cat confcache >$cache_file
  46096. + else
  46097. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  46098. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  46099. + fi
  46100. fi
  46101. +rm -f confcache
  46102. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46103. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46104. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  46105. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  46106. +# Let make expand exec_prefix.
  46107. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  46108. -# Is the header present?
  46109. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  46110. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  46111. -cat >conftest.$ac_ext <<_ACEOF
  46112. -/* confdefs.h. */
  46113. -_ACEOF
  46114. -cat confdefs.h >>conftest.$ac_ext
  46115. -cat >>conftest.$ac_ext <<_ACEOF
  46116. -/* end confdefs.h. */
  46117. -#include <$ac_header>
  46118. -_ACEOF
  46119. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46120. -case "(($ac_try" in
  46121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46122. - *) ac_try_echo=$ac_try;;
  46123. -esac
  46124. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46125. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46126. - ac_status=$?
  46127. - grep -v '^ *+' conftest.er1 >conftest.err
  46128. - rm -f conftest.er1
  46129. - cat conftest.err >&5
  46130. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46131. - (exit $ac_status); } >/dev/null && {
  46132. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46133. - test ! -s conftest.err
  46134. - }; then
  46135. - ac_header_preproc=yes
  46136. -else
  46137. - echo "$as_me: failed program was:" >&5
  46138. -sed 's/^/| /' conftest.$ac_ext >&5
  46139. +DEFS=-DHAVE_CONFIG_H
  46140. - ac_header_preproc=no
  46141. -fi
  46142. +ac_libobjs=
  46143. +ac_ltlibobjs=
  46144. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  46145. + # 1. Remove the extension, and $U if already installed.
  46146. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  46147. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  46148. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  46149. + # will be set to the directory where LIBOBJS objects are built.
  46150. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  46151. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  46152. +done
  46153. +LIBOBJS=$ac_libobjs
  46154. -rm -f conftest.err conftest.$ac_ext
  46155. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46156. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  46157. +LTLIBOBJS=$ac_ltlibobjs
  46158. -# So? What about this header?
  46159. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46160. - yes:no: )
  46161. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  46162. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46163. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  46164. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  46165. - ac_header_preproc=yes
  46166. - ;;
  46167. - no:yes:* )
  46168. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  46169. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  46170. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  46171. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  46172. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  46173. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  46174. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  46175. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  46176. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  46177. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  46178. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  46179. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  46180. - ;;
  46181. -esac
  46182. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  46183. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46184. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46185. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46186. -else
  46187. - eval "$as_ac_Header=\$ac_header_preproc"
  46188. -fi
  46189. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46190. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46191. -echo "${ECHO_T}$ac_res" >&6; }
  46192. + if test -n "$EXEEXT"; then
  46193. + am__EXEEXT_TRUE=
  46194. + am__EXEEXT_FALSE='#'
  46195. +else
  46196. + am__EXEEXT_TRUE='#'
  46197. + am__EXEEXT_FALSE=
  46198. +fi
  46199. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  46200. + as_fn_error "conditional \"AMDEP\" was never defined.
  46201. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46202. +fi
  46203. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  46204. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  46205. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46206. +fi
  46207. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  46208. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  46209. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46210. +fi
  46211. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  46212. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  46213. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46214. +fi
  46215. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  46216. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  46217. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46218. fi
  46219. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  46220. - cat >>confdefs.h <<_ACEOF
  46221. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  46222. -_ACEOF
  46223. +if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
  46224. + as_fn_error "conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  46225. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46226. +fi
  46227. +if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
  46228. + as_fn_error "conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  46229. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46230. +fi
  46231. +if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
  46232. + as_fn_error "conditional \"HAVE_XMMS\" was never defined.
  46233. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46234. +fi
  46235. +if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
  46236. + as_fn_error "conditional \"HAVE_XMMS\" was never defined.
  46237. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46238. fi
  46239. -done
  46240. +: ${CONFIG_STATUS=./config.status}
  46241. +ac_write_fail=0
  46242. +ac_clean_files_save=$ac_clean_files
  46243. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  46244. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  46245. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  46246. +as_write_fail=0
  46247. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  46248. +#! $SHELL
  46249. +# Generated by $as_me.
  46250. +# Run this file to recreate the current configuration.
  46251. +# Compiler output produced by configure, useful for debugging
  46252. +# configure, is in config.log if it exists.
  46253. +
  46254. +debug=false
  46255. +ac_cs_recheck=false
  46256. +ac_cs_silent=false
  46257. +SHELL=\${CONFIG_SHELL-$SHELL}
  46258. +export SHELL
  46259. +_ASEOF
  46260. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  46261. +## -------------------- ##
  46262. +## M4sh Initialization. ##
  46263. +## -------------------- ##
  46264. -for ac_header in sysfs/libsysfs.h
  46265. -do
  46266. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46267. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46268. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46269. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46270. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46271. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46272. -fi
  46273. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46274. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46275. -echo "${ECHO_T}$ac_res" >&6; }
  46276. +# Be more Bourne compatible
  46277. +DUALCASE=1; export DUALCASE # for MKS sh
  46278. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  46279. + emulate sh
  46280. + NULLCMD=:
  46281. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  46282. + # is contrary to our usage. Disable this feature.
  46283. + alias -g '${1+"$@"}'='"$@"'
  46284. + setopt NO_GLOB_SUBST
  46285. else
  46286. - # Is the header compilable?
  46287. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46288. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46289. -cat >conftest.$ac_ext <<_ACEOF
  46290. -/* confdefs.h. */
  46291. -_ACEOF
  46292. -cat confdefs.h >>conftest.$ac_ext
  46293. -cat >>conftest.$ac_ext <<_ACEOF
  46294. -/* end confdefs.h. */
  46295. -$ac_includes_default
  46296. -#include <$ac_header>
  46297. -_ACEOF
  46298. -rm -f conftest.$ac_objext
  46299. -if { (ac_try="$ac_compile"
  46300. -case "(($ac_try" in
  46301. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46302. - *) ac_try_echo=$ac_try;;
  46303. + case `(set -o) 2>/dev/null` in #(
  46304. + *posix*) :
  46305. + set -o posix ;; #(
  46306. + *) :
  46307. + ;;
  46308. esac
  46309. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46310. - (eval "$ac_compile") 2>conftest.er1
  46311. - ac_status=$?
  46312. - grep -v '^ *+' conftest.er1 >conftest.err
  46313. - rm -f conftest.er1
  46314. - cat conftest.err >&5
  46315. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46316. - (exit $ac_status); } && {
  46317. - test -z "$ac_c_werror_flag" ||
  46318. - test ! -s conftest.err
  46319. - } && test -s conftest.$ac_objext; then
  46320. - ac_header_compiler=yes
  46321. -else
  46322. - echo "$as_me: failed program was:" >&5
  46323. -sed 's/^/| /' conftest.$ac_ext >&5
  46324. -
  46325. - ac_header_compiler=no
  46326. fi
  46327. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46328. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46329. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  46330. -# Is the header present?
  46331. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  46332. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  46333. -cat >conftest.$ac_ext <<_ACEOF
  46334. -/* confdefs.h. */
  46335. -_ACEOF
  46336. -cat confdefs.h >>conftest.$ac_ext
  46337. -cat >>conftest.$ac_ext <<_ACEOF
  46338. -/* end confdefs.h. */
  46339. -#include <$ac_header>
  46340. -_ACEOF
  46341. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46342. -case "(($ac_try" in
  46343. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46344. - *) ac_try_echo=$ac_try;;
  46345. -esac
  46346. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46347. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46348. - ac_status=$?
  46349. - grep -v '^ *+' conftest.er1 >conftest.err
  46350. - rm -f conftest.er1
  46351. - cat conftest.err >&5
  46352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46353. - (exit $ac_status); } >/dev/null && {
  46354. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46355. - test ! -s conftest.err
  46356. - }; then
  46357. - ac_header_preproc=yes
  46358. -else
  46359. - echo "$as_me: failed program was:" >&5
  46360. -sed 's/^/| /' conftest.$ac_ext >&5
  46361. +as_nl='
  46362. +'
  46363. +export as_nl
  46364. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  46365. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  46366. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  46367. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  46368. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  46369. +# but without wasting forks for bash or zsh.
  46370. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  46371. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46372. + as_echo='print -r --'
  46373. + as_echo_n='print -rn --'
  46374. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  46375. + as_echo='printf %s\n'
  46376. + as_echo_n='printf %s'
  46377. +else
  46378. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  46379. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46380. + as_echo_n='/usr/ucb/echo -n'
  46381. + else
  46382. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  46383. + as_echo_n_body='eval
  46384. + arg=$1;
  46385. + case $arg in #(
  46386. + *"$as_nl"*)
  46387. + expr "X$arg" : "X\\(.*\\)$as_nl";
  46388. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  46389. + esac;
  46390. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  46391. + '
  46392. + export as_echo_n_body
  46393. + as_echo_n='sh -c $as_echo_n_body as_echo'
  46394. + fi
  46395. + export as_echo_body
  46396. + as_echo='sh -c $as_echo_body as_echo'
  46397. +fi
  46398. - ac_header_preproc=no
  46399. +# The user is always right.
  46400. +if test "${PATH_SEPARATOR+set}" != set; then
  46401. + PATH_SEPARATOR=:
  46402. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  46403. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  46404. + PATH_SEPARATOR=';'
  46405. + }
  46406. fi
  46407. -rm -f conftest.err conftest.$ac_ext
  46408. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46409. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  46410. -# So? What about this header?
  46411. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46412. - yes:no: )
  46413. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  46414. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46415. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  46416. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  46417. - ac_header_preproc=yes
  46418. - ;;
  46419. - no:yes:* )
  46420. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  46421. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  46422. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  46423. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  46424. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  46425. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  46426. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  46427. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  46428. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  46429. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  46430. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  46431. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  46432. +# IFS
  46433. +# We need space, tab and new line, in precisely that order. Quoting is
  46434. +# there to prevent editors from complaining about space-tab.
  46435. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  46436. +# splitting by setting IFS to empty value.)
  46437. +IFS=" "" $as_nl"
  46438. - ;;
  46439. -esac
  46440. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  46441. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46442. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46443. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46444. -else
  46445. - eval "$as_ac_Header=\$ac_header_preproc"
  46446. -fi
  46447. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46448. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46449. -echo "${ECHO_T}$ac_res" >&6; }
  46450. +# Find who we are. Look in the path if we contain no directory separator.
  46451. +case $0 in #((
  46452. + *[\\/]* ) as_myself=$0 ;;
  46453. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46454. +for as_dir in $PATH
  46455. +do
  46456. + IFS=$as_save_IFS
  46457. + test -z "$as_dir" && as_dir=.
  46458. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  46459. + done
  46460. +IFS=$as_save_IFS
  46461. + ;;
  46462. +esac
  46463. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  46464. +# in which case we are not to be found in the path.
  46465. +if test "x$as_myself" = x; then
  46466. + as_myself=$0
  46467. fi
  46468. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  46469. - cat >>confdefs.h <<_ACEOF
  46470. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  46471. -_ACEOF
  46472. +if test ! -f "$as_myself"; then
  46473. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  46474. + exit 1
  46475. +fi
  46476. +
  46477. +# Unset variables that we do not need and which cause bugs (e.g. in
  46478. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  46479. +# suppresses any "Segmentation fault" message there. '((' could
  46480. +# trigger a bug in pdksh 5.2.14.
  46481. +for as_var in BASH_ENV ENV MAIL MAILPATH
  46482. +do eval test x\${$as_var+set} = xset \
  46483. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  46484. +done
  46485. +PS1='$ '
  46486. +PS2='> '
  46487. +PS4='+ '
  46488. +
  46489. +# NLS nuisances.
  46490. +LC_ALL=C
  46491. +export LC_ALL
  46492. +LANGUAGE=C
  46493. +export LANGUAGE
  46494. +
  46495. +# CDPATH.
  46496. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  46497. +
  46498. -fi
  46499. +# as_fn_error ERROR [LINENO LOG_FD]
  46500. +# ---------------------------------
  46501. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  46502. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  46503. +# script with status $?, using 1 if that was 0.
  46504. +as_fn_error ()
  46505. +{
  46506. + as_status=$?; test $as_status -eq 0 && as_status=1
  46507. + if test "$3"; then
  46508. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  46509. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  46510. + fi
  46511. + $as_echo "$as_me: error: $1" >&2
  46512. + as_fn_exit $as_status
  46513. +} # as_fn_error
  46514. -done
  46515. +# as_fn_set_status STATUS
  46516. +# -----------------------
  46517. +# Set $? to STATUS, without forking.
  46518. +as_fn_set_status ()
  46519. +{
  46520. + return $1
  46521. +} # as_fn_set_status
  46522. -for ac_header in IOKit/IOKitLib.h
  46523. -do
  46524. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46525. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46526. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46527. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46528. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46529. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46530. -fi
  46531. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46532. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46533. -echo "${ECHO_T}$ac_res" >&6; }
  46534. +# as_fn_exit STATUS
  46535. +# -----------------
  46536. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  46537. +as_fn_exit ()
  46538. +{
  46539. + set +e
  46540. + as_fn_set_status $1
  46541. + exit $1
  46542. +} # as_fn_exit
  46543. +
  46544. +# as_fn_unset VAR
  46545. +# ---------------
  46546. +# Portably unset VAR.
  46547. +as_fn_unset ()
  46548. +{
  46549. + { eval $1=; unset $1;}
  46550. +}
  46551. +as_unset=as_fn_unset
  46552. +# as_fn_append VAR VALUE
  46553. +# ----------------------
  46554. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  46555. +# advantage of any shell optimizations that allow amortized linear growth over
  46556. +# repeated appends, instead of the typical quadratic growth present in naive
  46557. +# implementations.
  46558. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  46559. + eval 'as_fn_append ()
  46560. + {
  46561. + eval $1+=\$2
  46562. + }'
  46563. else
  46564. - # Is the header compilable?
  46565. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46566. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46567. -cat >conftest.$ac_ext <<_ACEOF
  46568. -/* confdefs.h. */
  46569. -_ACEOF
  46570. -cat confdefs.h >>conftest.$ac_ext
  46571. -cat >>conftest.$ac_ext <<_ACEOF
  46572. -/* end confdefs.h. */
  46573. -$ac_includes_default
  46574. -#include <$ac_header>
  46575. -_ACEOF
  46576. -rm -f conftest.$ac_objext
  46577. -if { (ac_try="$ac_compile"
  46578. -case "(($ac_try" in
  46579. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46580. - *) ac_try_echo=$ac_try;;
  46581. -esac
  46582. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46583. - (eval "$ac_compile") 2>conftest.er1
  46584. - ac_status=$?
  46585. - grep -v '^ *+' conftest.er1 >conftest.err
  46586. - rm -f conftest.er1
  46587. - cat conftest.err >&5
  46588. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46589. - (exit $ac_status); } && {
  46590. - test -z "$ac_c_werror_flag" ||
  46591. - test ! -s conftest.err
  46592. - } && test -s conftest.$ac_objext; then
  46593. - ac_header_compiler=yes
  46594. + as_fn_append ()
  46595. + {
  46596. + eval $1=\$$1\$2
  46597. + }
  46598. +fi # as_fn_append
  46599. +
  46600. +# as_fn_arith ARG...
  46601. +# ------------------
  46602. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  46603. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  46604. +# must be portable across $(()) and expr.
  46605. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  46606. + eval 'as_fn_arith ()
  46607. + {
  46608. + as_val=$(( $* ))
  46609. + }'
  46610. else
  46611. - echo "$as_me: failed program was:" >&5
  46612. -sed 's/^/| /' conftest.$ac_ext >&5
  46613. + as_fn_arith ()
  46614. + {
  46615. + as_val=`expr "$@" || test $? -eq 1`
  46616. + }
  46617. +fi # as_fn_arith
  46618. - ac_header_compiler=no
  46619. -fi
  46620. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46621. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46622. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  46623. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  46624. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  46625. + as_expr=expr
  46626. +else
  46627. + as_expr=false
  46628. +fi
  46629. -# Is the header present?
  46630. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  46631. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  46632. -cat >conftest.$ac_ext <<_ACEOF
  46633. -/* confdefs.h. */
  46634. -_ACEOF
  46635. -cat confdefs.h >>conftest.$ac_ext
  46636. -cat >>conftest.$ac_ext <<_ACEOF
  46637. -/* end confdefs.h. */
  46638. -#include <$ac_header>
  46639. -_ACEOF
  46640. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46641. -case "(($ac_try" in
  46642. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46643. - *) ac_try_echo=$ac_try;;
  46644. -esac
  46645. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46646. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46647. - ac_status=$?
  46648. - grep -v '^ *+' conftest.er1 >conftest.err
  46649. - rm -f conftest.er1
  46650. - cat conftest.err >&5
  46651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46652. - (exit $ac_status); } >/dev/null && {
  46653. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46654. - test ! -s conftest.err
  46655. - }; then
  46656. - ac_header_preproc=yes
  46657. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  46658. + as_basename=basename
  46659. else
  46660. - echo "$as_me: failed program was:" >&5
  46661. -sed 's/^/| /' conftest.$ac_ext >&5
  46662. + as_basename=false
  46663. +fi
  46664. - ac_header_preproc=no
  46665. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  46666. + as_dirname=dirname
  46667. +else
  46668. + as_dirname=false
  46669. fi
  46670. -rm -f conftest.err conftest.$ac_ext
  46671. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46672. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  46673. +as_me=`$as_basename -- "$0" ||
  46674. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  46675. + X"$0" : 'X\(//\)$' \| \
  46676. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  46677. +$as_echo X/"$0" |
  46678. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  46679. + s//\1/
  46680. + q
  46681. + }
  46682. + /^X\/\(\/\/\)$/{
  46683. + s//\1/
  46684. + q
  46685. + }
  46686. + /^X\/\(\/\).*/{
  46687. + s//\1/
  46688. + q
  46689. + }
  46690. + s/.*/./; q'`
  46691. -# So? What about this header?
  46692. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46693. - yes:no: )
  46694. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  46695. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46696. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  46697. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  46698. - ac_header_preproc=yes
  46699. - ;;
  46700. - no:yes:* )
  46701. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  46702. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  46703. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  46704. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  46705. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  46706. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  46707. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  46708. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  46709. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  46710. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  46711. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  46712. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  46713. +# Avoid depending upon Character Ranges.
  46714. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  46715. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  46716. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  46717. +as_cr_digits='0123456789'
  46718. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  46719. - ;;
  46720. +ECHO_C= ECHO_N= ECHO_T=
  46721. +case `echo -n x` in #(((((
  46722. +-n*)
  46723. + case `echo 'xy\c'` in
  46724. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  46725. + xy) ECHO_C='\c';;
  46726. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  46727. + ECHO_T=' ';;
  46728. + esac;;
  46729. +*)
  46730. + ECHO_N='-n';;
  46731. esac
  46732. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  46733. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46734. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46735. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46736. -else
  46737. - eval "$as_ac_Header=\$ac_header_preproc"
  46738. -fi
  46739. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46740. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46741. -echo "${ECHO_T}$ac_res" >&6; }
  46742. +rm -f conf$$ conf$$.exe conf$$.file
  46743. +if test -d conf$$.dir; then
  46744. + rm -f conf$$.dir/conf$$.file
  46745. +else
  46746. + rm -f conf$$.dir
  46747. + mkdir conf$$.dir 2>/dev/null
  46748. fi
  46749. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  46750. - cat >>confdefs.h <<_ACEOF
  46751. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  46752. -_ACEOF
  46753. - { echo "$as_me:$LINENO: checking for main in -lIOKit" >&5
  46754. -echo $ECHO_N "checking for main in -lIOKit... $ECHO_C" >&6; }
  46755. -if test "${ac_cv_lib_IOKit_main+set}" = set; then
  46756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46757. +if (echo >conf$$.file) 2>/dev/null; then
  46758. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  46759. + as_ln_s='ln -s'
  46760. + # ... but there are two gotchas:
  46761. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  46762. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  46763. + # In both cases, we have to default to `cp -p'.
  46764. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  46765. + as_ln_s='cp -p'
  46766. + elif ln conf$$.file conf$$ 2>/dev/null; then
  46767. + as_ln_s=ln
  46768. + else
  46769. + as_ln_s='cp -p'
  46770. + fi
  46771. else
  46772. - ac_check_lib_save_LIBS=$LIBS
  46773. -LIBS="-lIOKit $LIBS"
  46774. -cat >conftest.$ac_ext <<_ACEOF
  46775. -/* confdefs.h. */
  46776. -_ACEOF
  46777. -cat confdefs.h >>conftest.$ac_ext
  46778. -cat >>conftest.$ac_ext <<_ACEOF
  46779. -/* end confdefs.h. */
  46780. + as_ln_s='cp -p'
  46781. +fi
  46782. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  46783. +rmdir conf$$.dir 2>/dev/null
  46784. -int
  46785. -main ()
  46786. +# as_fn_mkdir_p
  46787. +# -------------
  46788. +# Create "$as_dir" as a directory, including parents if necessary.
  46789. +as_fn_mkdir_p ()
  46790. {
  46791. -return main ();
  46792. - ;
  46793. - return 0;
  46794. -}
  46795. -_ACEOF
  46796. -rm -f conftest.$ac_objext conftest$ac_exeext
  46797. -if { (ac_try="$ac_link"
  46798. -case "(($ac_try" in
  46799. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46800. - *) ac_try_echo=$ac_try;;
  46801. -esac
  46802. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46803. - (eval "$ac_link") 2>conftest.er1
  46804. - ac_status=$?
  46805. - grep -v '^ *+' conftest.er1 >conftest.err
  46806. - rm -f conftest.er1
  46807. - cat conftest.err >&5
  46808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46809. - (exit $ac_status); } && {
  46810. - test -z "$ac_c_werror_flag" ||
  46811. - test ! -s conftest.err
  46812. - } && test -s conftest$ac_exeext &&
  46813. - $as_test_x conftest$ac_exeext; then
  46814. - ac_cv_lib_IOKit_main=yes
  46815. -else
  46816. - echo "$as_me: failed program was:" >&5
  46817. -sed 's/^/| /' conftest.$ac_ext >&5
  46818. -
  46819. - ac_cv_lib_IOKit_main=no
  46820. -fi
  46821. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46822. - conftest$ac_exeext conftest.$ac_ext
  46823. -LIBS=$ac_check_lib_save_LIBS
  46824. -fi
  46825. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_IOKit_main" >&5
  46826. -echo "${ECHO_T}$ac_cv_lib_IOKit_main" >&6; }
  46827. -if test $ac_cv_lib_IOKit_main = yes; then
  46828. -
  46829. -cat >>confdefs.h <<\_ACEOF
  46830. -#define HAVE_IOKIT_IOKITLIB_H 1
  46831. -_ACEOF
  46832. + case $as_dir in #(
  46833. + -*) as_dir=./$as_dir;;
  46834. + esac
  46835. + test -d "$as_dir" || eval $as_mkdir_p || {
  46836. + as_dirs=
  46837. + while :; do
  46838. + case $as_dir in #(
  46839. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  46840. + *) as_qdir=$as_dir;;
  46841. + esac
  46842. + as_dirs="'$as_qdir' $as_dirs"
  46843. + as_dir=`$as_dirname -- "$as_dir" ||
  46844. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46845. + X"$as_dir" : 'X\(//\)[^/]' \| \
  46846. + X"$as_dir" : 'X\(//\)$' \| \
  46847. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  46848. +$as_echo X"$as_dir" |
  46849. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  46850. + s//\1/
  46851. + q
  46852. + }
  46853. + /^X\(\/\/\)[^/].*/{
  46854. + s//\1/
  46855. + q
  46856. + }
  46857. + /^X\(\/\/\)$/{
  46858. + s//\1/
  46859. + q
  46860. + }
  46861. + /^X\(\/\).*/{
  46862. + s//\1/
  46863. + q
  46864. + }
  46865. + s/.*/./; q'`
  46866. + test -d "$as_dir" && break
  46867. + done
  46868. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  46869. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  46870. - MP4FF_LIBS="-lIOKit"
  46871. +} # as_fn_mkdir_p
  46872. +if mkdir -p . 2>/dev/null; then
  46873. + as_mkdir_p='mkdir -p "$as_dir"'
  46874. +else
  46875. + test -d ./-p && rmdir ./-p
  46876. + as_mkdir_p=false
  46877. fi
  46878. +if test -x / >/dev/null 2>&1; then
  46879. + as_test_x='test -x'
  46880. +else
  46881. + if ls -dL / >/dev/null 2>&1; then
  46882. + as_ls_L_option=L
  46883. + else
  46884. + as_ls_L_option=
  46885. + fi
  46886. + as_test_x='
  46887. + eval sh -c '\''
  46888. + if test -d "$1"; then
  46889. + test -d "$1/.";
  46890. + else
  46891. + case $1 in #(
  46892. + -*)set "./$1";;
  46893. + esac;
  46894. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  46895. + ???[sx]*):;;*)false;;esac;fi
  46896. + '\'' sh
  46897. + '
  46898. fi
  46899. +as_executable_p=$as_test_x
  46900. -done
  46901. -
  46902. -
  46903. -for ac_func in getpwuid
  46904. -do
  46905. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46906. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  46907. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  46908. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  46909. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46910. -else
  46911. - cat >conftest.$ac_ext <<_ACEOF
  46912. -/* confdefs.h. */
  46913. -_ACEOF
  46914. -cat confdefs.h >>conftest.$ac_ext
  46915. -cat >>conftest.$ac_ext <<_ACEOF
  46916. -/* end confdefs.h. */
  46917. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  46918. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  46919. -#define $ac_func innocuous_$ac_func
  46920. +# Sed expression to map a string onto a valid CPP name.
  46921. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  46922. -/* System header to define __stub macros and hopefully few prototypes,
  46923. - which can conflict with char $ac_func (); below.
  46924. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  46925. - <limits.h> exists even on freestanding compilers. */
  46926. +# Sed expression to map a string onto a valid variable name.
  46927. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  46928. -#ifdef __STDC__
  46929. -# include <limits.h>
  46930. -#else
  46931. -# include <assert.h>
  46932. -#endif
  46933. -#undef $ac_func
  46934. +exec 6>&1
  46935. +## ----------------------------------- ##
  46936. +## Main body of $CONFIG_STATUS script. ##
  46937. +## ----------------------------------- ##
  46938. +_ASEOF
  46939. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  46940. -/* Override any GCC internal prototype to avoid an error.
  46941. - Use char because int might match the return type of a GCC
  46942. - builtin and then its argument prototype would still apply. */
  46943. -#ifdef __cplusplus
  46944. -extern "C"
  46945. -#endif
  46946. -char $ac_func ();
  46947. -/* The GNU C library defines this for functions which it implements
  46948. - to always fail with ENOSYS. Some functions are actually named
  46949. - something starting with __ and the normal name is an alias. */
  46950. -#if defined __stub_$ac_func || defined __stub___$ac_func
  46951. -choke me
  46952. -#endif
  46953. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46954. +# Save the log message, to keep $0 and so on meaningful, and to
  46955. +# report actual input values of CONFIG_FILES etc. instead of their
  46956. +# values after options handling.
  46957. +ac_log="
  46958. +This file was extended by $as_me, which was
  46959. +generated by GNU Autoconf 2.65. Invocation command line was
  46960. -int
  46961. -main ()
  46962. -{
  46963. -return $ac_func ();
  46964. - ;
  46965. - return 0;
  46966. -}
  46967. -_ACEOF
  46968. -rm -f conftest.$ac_objext conftest$ac_exeext
  46969. -if { (ac_try="$ac_link"
  46970. -case "(($ac_try" in
  46971. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46972. - *) ac_try_echo=$ac_try;;
  46973. -esac
  46974. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46975. - (eval "$ac_link") 2>conftest.er1
  46976. - ac_status=$?
  46977. - grep -v '^ *+' conftest.er1 >conftest.err
  46978. - rm -f conftest.er1
  46979. - cat conftest.err >&5
  46980. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46981. - (exit $ac_status); } && {
  46982. - test -z "$ac_c_werror_flag" ||
  46983. - test ! -s conftest.err
  46984. - } && test -s conftest$ac_exeext &&
  46985. - $as_test_x conftest$ac_exeext; then
  46986. - eval "$as_ac_var=yes"
  46987. -else
  46988. - echo "$as_me: failed program was:" >&5
  46989. -sed 's/^/| /' conftest.$ac_ext >&5
  46990. + CONFIG_FILES = $CONFIG_FILES
  46991. + CONFIG_HEADERS = $CONFIG_HEADERS
  46992. + CONFIG_LINKS = $CONFIG_LINKS
  46993. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  46994. + $ $0 $@
  46995. - eval "$as_ac_var=no"
  46996. -fi
  46997. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  46998. +"
  46999. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47000. - conftest$ac_exeext conftest.$ac_ext
  47001. -fi
  47002. -ac_res=`eval echo '${'$as_ac_var'}'`
  47003. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47004. -echo "${ECHO_T}$ac_res" >&6; }
  47005. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  47006. - cat >>confdefs.h <<_ACEOF
  47007. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47008. _ACEOF
  47009. -fi
  47010. -done
  47011. +case $ac_config_files in *"
  47012. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  47013. +esac
  47014. +case $ac_config_headers in *"
  47015. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  47016. +esac
  47017. -{ echo "$as_me:$LINENO: checking for inline" >&5
  47018. -echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  47019. -if test "${ac_cv_c_inline+set}" = set; then
  47020. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47021. -else
  47022. - ac_cv_c_inline=no
  47023. -for ac_kw in inline __inline__ __inline; do
  47024. - cat >conftest.$ac_ext <<_ACEOF
  47025. -/* confdefs.h. */
  47026. -_ACEOF
  47027. -cat confdefs.h >>conftest.$ac_ext
  47028. -cat >>conftest.$ac_ext <<_ACEOF
  47029. -/* end confdefs.h. */
  47030. -#ifndef __cplusplus
  47031. -typedef int foo_t;
  47032. -static $ac_kw foo_t static_foo () {return 0; }
  47033. -$ac_kw foo_t foo () {return 0; }
  47034. -#endif
  47035. +
  47036. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47037. +# Files that config.status was made for.
  47038. +config_files="$ac_config_files"
  47039. +config_headers="$ac_config_headers"
  47040. +config_commands="$ac_config_commands"
  47041. _ACEOF
  47042. -rm -f conftest.$ac_objext
  47043. -if { (ac_try="$ac_compile"
  47044. -case "(($ac_try" in
  47045. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47046. - *) ac_try_echo=$ac_try;;
  47047. -esac
  47048. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47049. - (eval "$ac_compile") 2>conftest.er1
  47050. - ac_status=$?
  47051. - grep -v '^ *+' conftest.er1 >conftest.err
  47052. - rm -f conftest.er1
  47053. - cat conftest.err >&5
  47054. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47055. - (exit $ac_status); } && {
  47056. - test -z "$ac_c_werror_flag" ||
  47057. - test ! -s conftest.err
  47058. - } && test -s conftest.$ac_objext; then
  47059. - ac_cv_c_inline=$ac_kw
  47060. -else
  47061. - echo "$as_me: failed program was:" >&5
  47062. -sed 's/^/| /' conftest.$ac_ext >&5
  47063. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47064. +ac_cs_usage="\
  47065. +\`$as_me' instantiates files and other configuration actions
  47066. +from templates according to the current configuration. Unless the files
  47067. +and actions are specified as TAGs, all are instantiated by default.
  47068. -fi
  47069. +Usage: $0 [OPTION]... [TAG]...
  47070. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47071. - test "$ac_cv_c_inline" != no && break
  47072. -done
  47073. + -h, --help print this help, then exit
  47074. + -V, --version print version number and configuration settings, then exit
  47075. + --config print configuration, then exit
  47076. + -q, --quiet, --silent
  47077. + do not print progress messages
  47078. + -d, --debug don't remove temporary files
  47079. + --recheck update $as_me by reconfiguring in the same conditions
  47080. + --file=FILE[:TEMPLATE]
  47081. + instantiate the configuration file FILE
  47082. + --header=FILE[:TEMPLATE]
  47083. + instantiate the configuration header FILE
  47084. -fi
  47085. -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  47086. -echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  47087. +Configuration files:
  47088. +$config_files
  47089. +Configuration headers:
  47090. +$config_headers
  47091. -case $ac_cv_c_inline in
  47092. - inline | yes) ;;
  47093. - *)
  47094. - case $ac_cv_c_inline in
  47095. - no) ac_val=;;
  47096. - *) ac_val=$ac_cv_c_inline;;
  47097. - esac
  47098. - cat >>confdefs.h <<_ACEOF
  47099. -#ifndef __cplusplus
  47100. -#define inline $ac_val
  47101. -#endif
  47102. -_ACEOF
  47103. - ;;
  47104. -esac
  47105. +Configuration commands:
  47106. +$config_commands
  47107. +
  47108. +Report bugs to the package provider."
  47109. -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  47110. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  47111. -if test "${ac_cv_c_bigendian+set}" = set; then
  47112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47113. -else
  47114. - # See if sys/param.h defines the BYTE_ORDER macro.
  47115. -cat >conftest.$ac_ext <<_ACEOF
  47116. -/* confdefs.h. */
  47117. _ACEOF
  47118. -cat confdefs.h >>conftest.$ac_ext
  47119. -cat >>conftest.$ac_ext <<_ACEOF
  47120. -/* end confdefs.h. */
  47121. -#include <sys/types.h>
  47122. -#include <sys/param.h>
  47123. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47124. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  47125. +ac_cs_version="\\
  47126. +config.status
  47127. +configured by $0, generated by GNU Autoconf 2.65,
  47128. + with options \\"\$ac_cs_config\\"
  47129. -int
  47130. -main ()
  47131. -{
  47132. -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  47133. - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  47134. - bogus endian macros
  47135. -#endif
  47136. +Copyright (C) 2009 Free Software Foundation, Inc.
  47137. +This config.status script is free software; the Free Software Foundation
  47138. +gives unlimited permission to copy, distribute and modify it."
  47139. - ;
  47140. - return 0;
  47141. -}
  47142. -_ACEOF
  47143. -rm -f conftest.$ac_objext
  47144. -if { (ac_try="$ac_compile"
  47145. -case "(($ac_try" in
  47146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47147. - *) ac_try_echo=$ac_try;;
  47148. -esac
  47149. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47150. - (eval "$ac_compile") 2>conftest.er1
  47151. - ac_status=$?
  47152. - grep -v '^ *+' conftest.er1 >conftest.err
  47153. - rm -f conftest.er1
  47154. - cat conftest.err >&5
  47155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47156. - (exit $ac_status); } && {
  47157. - test -z "$ac_c_werror_flag" ||
  47158. - test ! -s conftest.err
  47159. - } && test -s conftest.$ac_objext; then
  47160. - # It does; now see whether it defined to BIG_ENDIAN or not.
  47161. -cat >conftest.$ac_ext <<_ACEOF
  47162. -/* confdefs.h. */
  47163. +ac_pwd='$ac_pwd'
  47164. +srcdir='$srcdir'
  47165. +INSTALL='$INSTALL'
  47166. +MKDIR_P='$MKDIR_P'
  47167. +AWK='$AWK'
  47168. +test -n "\$AWK" || AWK=awk
  47169. _ACEOF
  47170. -cat confdefs.h >>conftest.$ac_ext
  47171. -cat >>conftest.$ac_ext <<_ACEOF
  47172. -/* end confdefs.h. */
  47173. -#include <sys/types.h>
  47174. -#include <sys/param.h>
  47175. -int
  47176. -main ()
  47177. -{
  47178. -#if BYTE_ORDER != BIG_ENDIAN
  47179. - not big endian
  47180. -#endif
  47181. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47182. +# The default lists apply if the user does not specify any file.
  47183. +ac_need_defaults=:
  47184. +while test $# != 0
  47185. +do
  47186. + case $1 in
  47187. + --*=*)
  47188. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  47189. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  47190. + ac_shift=:
  47191. + ;;
  47192. + *)
  47193. + ac_option=$1
  47194. + ac_optarg=$2
  47195. + ac_shift=shift
  47196. + ;;
  47197. + esac
  47198. - ;
  47199. - return 0;
  47200. -}
  47201. -_ACEOF
  47202. -rm -f conftest.$ac_objext
  47203. -if { (ac_try="$ac_compile"
  47204. -case "(($ac_try" in
  47205. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47206. - *) ac_try_echo=$ac_try;;
  47207. -esac
  47208. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47209. - (eval "$ac_compile") 2>conftest.er1
  47210. - ac_status=$?
  47211. - grep -v '^ *+' conftest.er1 >conftest.err
  47212. - rm -f conftest.er1
  47213. - cat conftest.err >&5
  47214. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47215. - (exit $ac_status); } && {
  47216. - test -z "$ac_c_werror_flag" ||
  47217. - test ! -s conftest.err
  47218. - } && test -s conftest.$ac_objext; then
  47219. - ac_cv_c_bigendian=yes
  47220. -else
  47221. - echo "$as_me: failed program was:" >&5
  47222. -sed 's/^/| /' conftest.$ac_ext >&5
  47223. + case $ac_option in
  47224. + # Handling of the options.
  47225. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  47226. + ac_cs_recheck=: ;;
  47227. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  47228. + $as_echo "$ac_cs_version"; exit ;;
  47229. + --config | --confi | --conf | --con | --co | --c )
  47230. + $as_echo "$ac_cs_config"; exit ;;
  47231. + --debug | --debu | --deb | --de | --d | -d )
  47232. + debug=: ;;
  47233. + --file | --fil | --fi | --f )
  47234. + $ac_shift
  47235. + case $ac_optarg in
  47236. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  47237. + esac
  47238. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  47239. + ac_need_defaults=false;;
  47240. + --header | --heade | --head | --hea )
  47241. + $ac_shift
  47242. + case $ac_optarg in
  47243. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  47244. + esac
  47245. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  47246. + ac_need_defaults=false;;
  47247. + --he | --h)
  47248. + # Conflict between --help and --header
  47249. + as_fn_error "ambiguous option: \`$1'
  47250. +Try \`$0 --help' for more information.";;
  47251. + --help | --hel | -h )
  47252. + $as_echo "$ac_cs_usage"; exit ;;
  47253. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  47254. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  47255. + ac_cs_silent=: ;;
  47256. +
  47257. + # This is an error.
  47258. + -*) as_fn_error "unrecognized option: \`$1'
  47259. +Try \`$0 --help' for more information." ;;
  47260. +
  47261. + *) as_fn_append ac_config_targets " $1"
  47262. + ac_need_defaults=false ;;
  47263. +
  47264. + esac
  47265. + shift
  47266. +done
  47267. +
  47268. +ac_configure_extra_args=
  47269. - ac_cv_c_bigendian=no
  47270. +if $ac_cs_silent; then
  47271. + exec 6>/dev/null
  47272. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  47273. fi
  47274. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47275. -else
  47276. - echo "$as_me: failed program was:" >&5
  47277. -sed 's/^/| /' conftest.$ac_ext >&5
  47278. +_ACEOF
  47279. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47280. +if \$ac_cs_recheck; then
  47281. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  47282. + shift
  47283. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  47284. + CONFIG_SHELL='$SHELL'
  47285. + export CONFIG_SHELL
  47286. + exec "\$@"
  47287. +fi
  47288. - # It does not; compile a test program.
  47289. -if test "$cross_compiling" = yes; then
  47290. - # try to guess the endianness by grepping values into an object file
  47291. - ac_cv_c_bigendian=unknown
  47292. - cat >conftest.$ac_ext <<_ACEOF
  47293. -/* confdefs.h. */
  47294. _ACEOF
  47295. -cat confdefs.h >>conftest.$ac_ext
  47296. -cat >>conftest.$ac_ext <<_ACEOF
  47297. -/* end confdefs.h. */
  47298. -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  47299. -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  47300. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  47301. -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  47302. -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  47303. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  47304. -int
  47305. -main ()
  47306. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47307. +exec 5>>config.log
  47308. {
  47309. - _ascii (); _ebcdic ();
  47310. - ;
  47311. - return 0;
  47312. -}
  47313. + echo
  47314. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  47315. +## Running $as_me. ##
  47316. +_ASBOX
  47317. + $as_echo "$ac_log"
  47318. +} >&5
  47319. +
  47320. _ACEOF
  47321. -rm -f conftest.$ac_objext
  47322. -if { (ac_try="$ac_compile"
  47323. -case "(($ac_try" in
  47324. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47325. - *) ac_try_echo=$ac_try;;
  47326. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47327. +#
  47328. +# INIT-COMMANDS
  47329. +#
  47330. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  47331. +
  47332. +
  47333. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  47334. +# if CDPATH is set.
  47335. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  47336. +
  47337. +sed_quote_subst='$sed_quote_subst'
  47338. +double_quote_subst='$double_quote_subst'
  47339. +delay_variable_subst='$delay_variable_subst'
  47340. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  47341. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  47342. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  47343. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  47344. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  47345. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  47346. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  47347. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  47348. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  47349. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  47350. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  47351. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  47352. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  47353. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  47354. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  47355. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  47356. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  47357. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  47358. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  47359. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  47360. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  47361. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  47362. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  47363. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  47364. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  47365. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  47366. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  47367. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47368. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  47369. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  47370. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  47371. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  47372. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  47373. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  47374. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  47375. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47376. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47377. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47378. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  47379. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  47380. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  47381. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  47382. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  47383. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  47384. +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"`'
  47385. +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"`'
  47386. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  47387. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  47388. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  47389. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  47390. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  47391. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  47392. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  47393. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  47394. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  47395. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  47396. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  47397. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  47398. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  47399. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  47400. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  47401. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  47402. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47403. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47404. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  47405. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  47406. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47407. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47408. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  47409. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47410. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47411. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47412. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47413. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47414. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47415. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  47416. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  47417. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  47418. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47419. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  47420. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  47421. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  47422. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  47423. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  47424. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  47425. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  47426. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  47427. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  47428. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  47429. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  47430. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47431. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  47432. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  47433. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47434. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47435. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  47436. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  47437. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  47438. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  47439. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  47440. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  47441. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  47442. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47443. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47444. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47445. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47446. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47447. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  47448. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  47449. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  47450. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47451. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  47452. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  47453. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  47454. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  47455. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  47456. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  47457. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  47458. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  47459. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  47460. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  47461. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  47462. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  47463. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  47464. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47465. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47466. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47467. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47468. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47469. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47470. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47471. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47472. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47473. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47474. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47475. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47476. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47477. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47478. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47479. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47480. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47481. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47482. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47483. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47484. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47485. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47486. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47487. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47488. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47489. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47490. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47491. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47492. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47493. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47494. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47495. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47496. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47497. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47498. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47499. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47500. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47501. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47502. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47503. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47504. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47505. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47506. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47507. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47508. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47509. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47510. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  47511. +
  47512. +LTCC='$LTCC'
  47513. +LTCFLAGS='$LTCFLAGS'
  47514. +compiler='$compiler_DEFAULT'
  47515. +
  47516. +# Quote evaled strings.
  47517. +for var in SED \
  47518. +GREP \
  47519. +EGREP \
  47520. +FGREP \
  47521. +LD \
  47522. +NM \
  47523. +LN_S \
  47524. +lt_SP2NL \
  47525. +lt_NL2SP \
  47526. +reload_flag \
  47527. +OBJDUMP \
  47528. +deplibs_check_method \
  47529. +file_magic_cmd \
  47530. +AR \
  47531. +AR_FLAGS \
  47532. +STRIP \
  47533. +RANLIB \
  47534. +CC \
  47535. +CFLAGS \
  47536. +compiler \
  47537. +lt_cv_sys_global_symbol_pipe \
  47538. +lt_cv_sys_global_symbol_to_cdecl \
  47539. +lt_cv_sys_global_symbol_to_c_name_address \
  47540. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  47541. +SHELL \
  47542. +ECHO \
  47543. +lt_prog_compiler_no_builtin_flag \
  47544. +lt_prog_compiler_wl \
  47545. +lt_prog_compiler_pic \
  47546. +lt_prog_compiler_static \
  47547. +lt_cv_prog_compiler_c_o \
  47548. +need_locks \
  47549. +DSYMUTIL \
  47550. +NMEDIT \
  47551. +LIPO \
  47552. +OTOOL \
  47553. +OTOOL64 \
  47554. +shrext_cmds \
  47555. +export_dynamic_flag_spec \
  47556. +whole_archive_flag_spec \
  47557. +compiler_needs_object \
  47558. +with_gnu_ld \
  47559. +allow_undefined_flag \
  47560. +no_undefined_flag \
  47561. +hardcode_libdir_flag_spec \
  47562. +hardcode_libdir_flag_spec_ld \
  47563. +hardcode_libdir_separator \
  47564. +fix_srcfile_path \
  47565. +exclude_expsyms \
  47566. +include_expsyms \
  47567. +file_list_spec \
  47568. +variables_saved_for_relink \
  47569. +libname_spec \
  47570. +library_names_spec \
  47571. +soname_spec \
  47572. +finish_eval \
  47573. +old_striplib \
  47574. +striplib \
  47575. +compiler_lib_search_dirs \
  47576. +predep_objects \
  47577. +postdep_objects \
  47578. +predeps \
  47579. +postdeps \
  47580. +compiler_lib_search_path \
  47581. +LD_CXX \
  47582. +compiler_CXX \
  47583. +lt_prog_compiler_no_builtin_flag_CXX \
  47584. +lt_prog_compiler_wl_CXX \
  47585. +lt_prog_compiler_pic_CXX \
  47586. +lt_prog_compiler_static_CXX \
  47587. +lt_cv_prog_compiler_c_o_CXX \
  47588. +export_dynamic_flag_spec_CXX \
  47589. +whole_archive_flag_spec_CXX \
  47590. +compiler_needs_object_CXX \
  47591. +with_gnu_ld_CXX \
  47592. +allow_undefined_flag_CXX \
  47593. +no_undefined_flag_CXX \
  47594. +hardcode_libdir_flag_spec_CXX \
  47595. +hardcode_libdir_flag_spec_ld_CXX \
  47596. +hardcode_libdir_separator_CXX \
  47597. +fix_srcfile_path_CXX \
  47598. +exclude_expsyms_CXX \
  47599. +include_expsyms_CXX \
  47600. +file_list_spec_CXX \
  47601. +compiler_lib_search_dirs_CXX \
  47602. +predep_objects_CXX \
  47603. +postdep_objects_CXX \
  47604. +predeps_CXX \
  47605. +postdeps_CXX \
  47606. +compiler_lib_search_path_CXX; do
  47607. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  47608. + *[\\\\\\\`\\"\\\$]*)
  47609. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  47610. + ;;
  47611. + *)
  47612. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  47613. + ;;
  47614. + esac
  47615. +done
  47616. +
  47617. +# Double-quote double-evaled strings.
  47618. +for var in reload_cmds \
  47619. +old_postinstall_cmds \
  47620. +old_postuninstall_cmds \
  47621. +old_archive_cmds \
  47622. +extract_expsyms_cmds \
  47623. +old_archive_from_new_cmds \
  47624. +old_archive_from_expsyms_cmds \
  47625. +archive_cmds \
  47626. +archive_expsym_cmds \
  47627. +module_cmds \
  47628. +module_expsym_cmds \
  47629. +export_symbols_cmds \
  47630. +prelink_cmds \
  47631. +postinstall_cmds \
  47632. +postuninstall_cmds \
  47633. +finish_cmds \
  47634. +sys_lib_search_path_spec \
  47635. +sys_lib_dlsearch_path_spec \
  47636. +old_archive_cmds_CXX \
  47637. +old_archive_from_new_cmds_CXX \
  47638. +old_archive_from_expsyms_cmds_CXX \
  47639. +archive_cmds_CXX \
  47640. +archive_expsym_cmds_CXX \
  47641. +module_cmds_CXX \
  47642. +module_expsym_cmds_CXX \
  47643. +export_symbols_cmds_CXX \
  47644. +prelink_cmds_CXX; do
  47645. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  47646. + *[\\\\\\\`\\"\\\$]*)
  47647. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  47648. + ;;
  47649. + *)
  47650. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  47651. + ;;
  47652. + esac
  47653. +done
  47654. +
  47655. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  47656. +case \$lt_ECHO in
  47657. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  47658. + ;;
  47659. esac
  47660. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47661. - (eval "$ac_compile") 2>conftest.er1
  47662. - ac_status=$?
  47663. - grep -v '^ *+' conftest.er1 >conftest.err
  47664. - rm -f conftest.er1
  47665. - cat conftest.err >&5
  47666. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47667. - (exit $ac_status); } && {
  47668. - test -z "$ac_c_werror_flag" ||
  47669. - test ! -s conftest.err
  47670. - } && test -s conftest.$ac_objext; then
  47671. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  47672. - ac_cv_c_bigendian=yes
  47673. -fi
  47674. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  47675. - if test "$ac_cv_c_bigendian" = unknown; then
  47676. - ac_cv_c_bigendian=no
  47677. - else
  47678. - # finding both strings is unlikely to happen, but who knows?
  47679. - ac_cv_c_bigendian=unknown
  47680. - fi
  47681. -fi
  47682. -else
  47683. - echo "$as_me: failed program was:" >&5
  47684. -sed 's/^/| /' conftest.$ac_ext >&5
  47685. +ac_aux_dir='$ac_aux_dir'
  47686. +xsi_shell='$xsi_shell'
  47687. +lt_shell_append='$lt_shell_append'
  47688. +# See if we are running on zsh, and set the options which allow our
  47689. +# commands through without removal of \ escapes INIT.
  47690. +if test -n "\${ZSH_VERSION+set}" ; then
  47691. + setopt NO_GLOB_SUBST
  47692. fi
  47693. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47694. -else
  47695. - cat >conftest.$ac_ext <<_ACEOF
  47696. -/* confdefs.h. */
  47697. -_ACEOF
  47698. -cat confdefs.h >>conftest.$ac_ext
  47699. -cat >>conftest.$ac_ext <<_ACEOF
  47700. -/* end confdefs.h. */
  47701. -$ac_includes_default
  47702. -int
  47703. -main ()
  47704. -{
  47705. - /* Are we little or big endian? From Harbison&Steele. */
  47706. - union
  47707. - {
  47708. - long int l;
  47709. - char c[sizeof (long int)];
  47710. - } u;
  47711. - u.l = 1;
  47712. - return u.c[sizeof (long int) - 1] == 1;
  47713. + PACKAGE='$PACKAGE'
  47714. + VERSION='$VERSION'
  47715. + TIMESTAMP='$TIMESTAMP'
  47716. + RM='$RM'
  47717. + ofile='$ofile'
  47718. +
  47719. +
  47720. +
  47721. +
  47722. +
  47723. - ;
  47724. - return 0;
  47725. -}
  47726. _ACEOF
  47727. -rm -f conftest$ac_exeext
  47728. -if { (ac_try="$ac_link"
  47729. -case "(($ac_try" in
  47730. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47731. - *) ac_try_echo=$ac_try;;
  47732. -esac
  47733. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47734. - (eval "$ac_link") 2>&5
  47735. - ac_status=$?
  47736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47737. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  47738. - { (case "(($ac_try" in
  47739. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47740. - *) ac_try_echo=$ac_try;;
  47741. -esac
  47742. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47743. - (eval "$ac_try") 2>&5
  47744. - ac_status=$?
  47745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47746. - (exit $ac_status); }; }; then
  47747. - ac_cv_c_bigendian=no
  47748. -else
  47749. - echo "$as_me: program exited with status $ac_status" >&5
  47750. -echo "$as_me: failed program was:" >&5
  47751. -sed 's/^/| /' conftest.$ac_ext >&5
  47752. -( exit $ac_status )
  47753. -ac_cv_c_bigendian=yes
  47754. -fi
  47755. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  47756. -fi
  47757. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47758. +
  47759. +# Handling of arguments.
  47760. +for ac_config_target in $ac_config_targets
  47761. +do
  47762. + case $ac_config_target in
  47763. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  47764. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  47765. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  47766. + "libfaad/Makefile") CONFIG_FILES="$CONFIG_FILES libfaad/Makefile" ;;
  47767. + "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
  47768. + "common/mp4ff/Makefile") CONFIG_FILES="$CONFIG_FILES common/mp4ff/Makefile" ;;
  47769. + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  47770. + "plugins/xmms/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/Makefile" ;;
  47771. + "plugins/xmms/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/src/Makefile" ;;
  47772. + "plugins/mpeg4ip/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mpeg4ip/Makefile" ;;
  47773. + "faad2.spec") CONFIG_FILES="$CONFIG_FILES faad2.spec" ;;
  47774. + "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
  47775. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  47776. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  47777. + esac
  47778. +done
  47779. -fi
  47780. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47781. +# If the user did not use the arguments to specify the items to instantiate,
  47782. +# then the envvar interface is used. Set only those that are not.
  47783. +# We use the long form for the default assignment because of an extremely
  47784. +# bizarre bug on SunOS 4.1.3.
  47785. +if $ac_need_defaults; then
  47786. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  47787. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  47788. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  47789. fi
  47790. -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  47791. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  47792. -case $ac_cv_c_bigendian in
  47793. - yes)
  47794. -
  47795. -cat >>confdefs.h <<\_ACEOF
  47796. -#define WORDS_BIGENDIAN 1
  47797. -_ACEOF
  47798. - ;;
  47799. - no)
  47800. - ;;
  47801. - *)
  47802. - { { echo "$as_me:$LINENO: error: unknown endianness
  47803. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  47804. -echo "$as_me: error: unknown endianness
  47805. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  47806. - { (exit 1); exit 1; }; } ;;
  47807. -esac
  47808. -
  47809. -{ echo "$as_me:$LINENO: checking for off_t" >&5
  47810. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  47811. -if test "${ac_cv_type_off_t+set}" = set; then
  47812. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47813. -else
  47814. - cat >conftest.$ac_ext <<_ACEOF
  47815. -/* confdefs.h. */
  47816. -_ACEOF
  47817. -cat confdefs.h >>conftest.$ac_ext
  47818. -cat >>conftest.$ac_ext <<_ACEOF
  47819. -/* end confdefs.h. */
  47820. -$ac_includes_default
  47821. -typedef off_t ac__type_new_;
  47822. -int
  47823. -main ()
  47824. +# Have a temporary directory for convenience. Make it in the build tree
  47825. +# simply because there is no reason against having it here, and in addition,
  47826. +# creating and moving files from /tmp can sometimes cause problems.
  47827. +# Hook for its removal unless debugging.
  47828. +# Note that there is a small window in which the directory will not be cleaned:
  47829. +# after its creation but before its name has been assigned to `$tmp'.
  47830. +$debug ||
  47831. {
  47832. -if ((ac__type_new_ *) 0)
  47833. - return 0;
  47834. -if (sizeof (ac__type_new_))
  47835. - return 0;
  47836. - ;
  47837. - return 0;
  47838. + tmp=
  47839. + trap 'exit_status=$?
  47840. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  47841. +' 0
  47842. + trap 'as_fn_exit 1' 1 2 13 15
  47843. }
  47844. -_ACEOF
  47845. -rm -f conftest.$ac_objext
  47846. -if { (ac_try="$ac_compile"
  47847. -case "(($ac_try" in
  47848. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47849. - *) ac_try_echo=$ac_try;;
  47850. -esac
  47851. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47852. - (eval "$ac_compile") 2>conftest.er1
  47853. - ac_status=$?
  47854. - grep -v '^ *+' conftest.er1 >conftest.err
  47855. - rm -f conftest.er1
  47856. - cat conftest.err >&5
  47857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47858. - (exit $ac_status); } && {
  47859. - test -z "$ac_c_werror_flag" ||
  47860. - test ! -s conftest.err
  47861. - } && test -s conftest.$ac_objext; then
  47862. - ac_cv_type_off_t=yes
  47863. -else
  47864. - echo "$as_me: failed program was:" >&5
  47865. -sed 's/^/| /' conftest.$ac_ext >&5
  47866. +# Create a (secure) tmp directory for tmp files.
  47867. - ac_cv_type_off_t=no
  47868. -fi
  47869. +{
  47870. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  47871. + test -n "$tmp" && test -d "$tmp"
  47872. +} ||
  47873. +{
  47874. + tmp=./conf$$-$RANDOM
  47875. + (umask 077 && mkdir "$tmp")
  47876. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  47877. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47878. -fi
  47879. -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  47880. -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  47881. -if test $ac_cv_type_off_t = yes; then
  47882. - :
  47883. -else
  47884. +# Set up the scripts for CONFIG_FILES section.
  47885. +# No need to generate them if there are no CONFIG_FILES.
  47886. +# This happens for instance with `./config.status config.h'.
  47887. +if test -n "$CONFIG_FILES"; then
  47888. -cat >>confdefs.h <<_ACEOF
  47889. -#define off_t long int
  47890. -_ACEOF
  47891. +ac_cr=`echo X | tr X '\015'`
  47892. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  47893. +# But we know of no other shell where ac_cr would be empty at this
  47894. +# point, so we can use a bashism as a fallback.
  47895. +if test "x$ac_cr" = x; then
  47896. + eval ac_cr=\$\'\\r\'
  47897. +fi
  47898. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  47899. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  47900. + ac_cs_awk_cr='\r'
  47901. +else
  47902. + ac_cs_awk_cr=$ac_cr
  47903. fi
  47904. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  47905. +_ACEOF
  47906. +{
  47907. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  47908. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  47909. + echo "_ACEOF"
  47910. +} >conf$$subs.sh ||
  47911. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  47912. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  47913. +ac_delim='%!_!# '
  47914. +for ac_last_try in false false false false false :; do
  47915. + . ./conf$$subs.sh ||
  47916. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  47917. -# AC_C99_FUNC_LRINTF
  47918. -{ echo "$as_me:$LINENO: checking for lrintf" >&5
  47919. -echo $ECHO_N "checking for lrintf... $ECHO_C" >&6; }
  47920. -if test "${ac_cv_c99_lrintf+set}" = set; then
  47921. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47922. -else
  47923. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  47924. + if test $ac_delim_n = $ac_delim_num; then
  47925. + break
  47926. + elif $ac_last_try; then
  47927. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  47928. + else
  47929. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  47930. + fi
  47931. +done
  47932. +rm -f conf$$subs.sh
  47933. -lrintf_save_CFLAGS=$CFLAGS
  47934. -CFLAGS="-O -lm"
  47935. -cat >conftest.$ac_ext <<_ACEOF
  47936. -/* confdefs.h. */
  47937. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47938. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  47939. _ACEOF
  47940. -cat confdefs.h >>conftest.$ac_ext
  47941. -cat >>conftest.$ac_ext <<_ACEOF
  47942. -/* end confdefs.h. */
  47943. -
  47944. -#define _ISOC9X_SOURCE 1
  47945. -#define _ISOC99_SOURCE 1
  47946. -#define __USE_ISOC99 1
  47947. -#define __USE_ISOC9X 1
  47948. -
  47949. -#include <math.h>
  47950. +sed -n '
  47951. +h
  47952. +s/^/S["/; s/!.*/"]=/
  47953. +p
  47954. +g
  47955. +s/^[^!]*!//
  47956. +:repl
  47957. +t repl
  47958. +s/'"$ac_delim"'$//
  47959. +t delim
  47960. +:nl
  47961. +h
  47962. +s/\(.\{148\}\)..*/\1/
  47963. +t more1
  47964. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  47965. +p
  47966. +n
  47967. +b repl
  47968. +:more1
  47969. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  47970. +p
  47971. +g
  47972. +s/.\{148\}//
  47973. +t nl
  47974. +:delim
  47975. +h
  47976. +s/\(.\{148\}\)..*/\1/
  47977. +t more2
  47978. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  47979. +p
  47980. +b
  47981. +:more2
  47982. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  47983. +p
  47984. +g
  47985. +s/.\{148\}//
  47986. +t delim
  47987. +' <conf$$subs.awk | sed '
  47988. +/^[^""]/{
  47989. + N
  47990. + s/\n//
  47991. +}
  47992. +' >>$CONFIG_STATUS || ac_write_fail=1
  47993. +rm -f conf$$subs.awk
  47994. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47995. +_ACAWK
  47996. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  47997. + for (key in S) S_is_set[key] = 1
  47998. + FS = ""
  47999. -int
  48000. -main ()
  48001. -{
  48002. -if (!lrintf(3.14159)) lrintf(2.7183);
  48003. - ;
  48004. - return 0;
  48005. }
  48006. +{
  48007. + line = $ 0
  48008. + nfields = split(line, field, "@")
  48009. + substed = 0
  48010. + len = length(field[1])
  48011. + for (i = 2; i < nfields; i++) {
  48012. + key = field[i]
  48013. + keylen = length(key)
  48014. + if (S_is_set[key]) {
  48015. + value = S[key]
  48016. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  48017. + len += length(value) + length(field[++i])
  48018. + substed = 1
  48019. + } else
  48020. + len += 1 + keylen
  48021. + }
  48022. +
  48023. + print line
  48024. +}
  48025. +
  48026. +_ACAWK
  48027. +_ACEOF
  48028. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48029. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  48030. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  48031. +else
  48032. + cat
  48033. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  48034. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  48035. _ACEOF
  48036. -rm -f conftest.$ac_objext conftest$ac_exeext
  48037. -if { (ac_try="$ac_link"
  48038. -case "(($ac_try" in
  48039. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48040. - *) ac_try_echo=$ac_try;;
  48041. -esac
  48042. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48043. - (eval "$ac_link") 2>conftest.er1
  48044. - ac_status=$?
  48045. - grep -v '^ *+' conftest.er1 >conftest.err
  48046. - rm -f conftest.er1
  48047. - cat conftest.err >&5
  48048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48049. - (exit $ac_status); } && {
  48050. - test -z "$ac_c_werror_flag" ||
  48051. - test ! -s conftest.err
  48052. - } && test -s conftest$ac_exeext &&
  48053. - $as_test_x conftest$ac_exeext; then
  48054. - ac_cv_c99_lrintf=yes
  48055. -else
  48056. - echo "$as_me: failed program was:" >&5
  48057. -sed 's/^/| /' conftest.$ac_ext >&5
  48058. - ac_cv_c99_lrintf=no
  48059. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  48060. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  48061. +# trailing colons and then remove the whole line if VPATH becomes empty
  48062. +# (actually we leave an empty line to preserve line numbers).
  48063. +if test "x$srcdir" = x.; then
  48064. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  48065. +s/:*\$(srcdir):*/:/
  48066. +s/:*\${srcdir}:*/:/
  48067. +s/:*@srcdir@:*/:/
  48068. +s/^\([^=]*=[ ]*\):*/\1/
  48069. +s/:*$//
  48070. +s/^[^=]*=[ ]*$//
  48071. +}'
  48072. fi
  48073. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48074. - conftest$ac_exeext conftest.$ac_ext
  48075. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48076. +fi # test -n "$CONFIG_FILES"
  48077. -CFLAGS=$lrintf_save_CFLAGS
  48078. +# Set up the scripts for CONFIG_HEADERS section.
  48079. +# No need to generate them if there are no CONFIG_HEADERS.
  48080. +# This happens for instance with `./config.status Makefile'.
  48081. +if test -n "$CONFIG_HEADERS"; then
  48082. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  48083. +BEGIN {
  48084. +_ACEOF
  48085. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  48086. +# here-document in config.status, that substitutes the proper values into
  48087. +# config.h.in to produce config.h.
  48088. -fi
  48089. -{ echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
  48090. -echo "${ECHO_T}$ac_cv_c99_lrintf" >&6; }
  48091. +# Create a delimiter string that does not exist in confdefs.h, to ease
  48092. +# handling of long lines.
  48093. +ac_delim='%!_!# '
  48094. +for ac_last_try in false false :; do
  48095. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  48096. + if test -z "$ac_t"; then
  48097. + break
  48098. + elif $ac_last_try; then
  48099. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  48100. + else
  48101. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48102. + fi
  48103. +done
  48104. -if test "$ac_cv_c99_lrintf" = yes; then
  48105. +# For the awk script, D is an array of macro values keyed by name,
  48106. +# likewise P contains macro parameters if any. Preserve backslash
  48107. +# newline sequences.
  48108. -cat >>confdefs.h <<\_ACEOF
  48109. -#define HAVE_LRINTF 1
  48110. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  48111. +sed -n '
  48112. +s/.\{148\}/&'"$ac_delim"'/g
  48113. +t rset
  48114. +:rset
  48115. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  48116. +t def
  48117. +d
  48118. +:def
  48119. +s/\\$//
  48120. +t bsnl
  48121. +s/["\\]/\\&/g
  48122. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  48123. +D["\1"]=" \3"/p
  48124. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  48125. +d
  48126. +:bsnl
  48127. +s/["\\]/\\&/g
  48128. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  48129. +D["\1"]=" \3\\\\\\n"\\/p
  48130. +t cont
  48131. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  48132. +t cont
  48133. +d
  48134. +:cont
  48135. +n
  48136. +s/.\{148\}/&'"$ac_delim"'/g
  48137. +t clear
  48138. +:clear
  48139. +s/\\$//
  48140. +t bsnlc
  48141. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  48142. +d
  48143. +:bsnlc
  48144. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  48145. +b cont
  48146. +' <confdefs.h | sed '
  48147. +s/'"$ac_delim"'/"\\\
  48148. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  48149. +
  48150. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48151. + for (key in D) D_is_set[key] = 1
  48152. + FS = ""
  48153. +}
  48154. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  48155. + line = \$ 0
  48156. + split(line, arg, " ")
  48157. + if (arg[1] == "#") {
  48158. + defundef = arg[2]
  48159. + mac1 = arg[3]
  48160. + } else {
  48161. + defundef = substr(arg[1], 2)
  48162. + mac1 = arg[2]
  48163. + }
  48164. + split(mac1, mac2, "(") #)
  48165. + macro = mac2[1]
  48166. + prefix = substr(line, 1, index(line, defundef) - 1)
  48167. + if (D_is_set[macro]) {
  48168. + # Preserve the white space surrounding the "#".
  48169. + print prefix "define", macro P[macro] D[macro]
  48170. + next
  48171. + } else {
  48172. + # Replace #undef with comments. This is necessary, for example,
  48173. + # in the case of _POSIX_SOURCE, which is predefined and required
  48174. + # on some systems where configure will not decide to define it.
  48175. + if (defundef == "undef") {
  48176. + print "/*", prefix defundef, macro, "*/"
  48177. + next
  48178. + }
  48179. + }
  48180. +}
  48181. +{ print }
  48182. +_ACAWK
  48183. _ACEOF
  48184. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48185. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  48186. +fi # test -n "$CONFIG_HEADERS"
  48187. -fi
  48188. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  48189. +shift
  48190. +for ac_tag
  48191. +do
  48192. + case $ac_tag in
  48193. + :[FHLC]) ac_mode=$ac_tag; continue;;
  48194. + esac
  48195. + case $ac_mode$ac_tag in
  48196. + :[FHL]*:*);;
  48197. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  48198. + :[FH]-) ac_tag=-:-;;
  48199. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  48200. + esac
  48201. + ac_save_IFS=$IFS
  48202. + IFS=:
  48203. + set x $ac_tag
  48204. + IFS=$ac_save_IFS
  48205. + shift
  48206. + ac_file=$1
  48207. + shift
  48208. + case $ac_mode in
  48209. + :L) ac_source=$1;;
  48210. + :[FH])
  48211. + ac_file_inputs=
  48212. + for ac_f
  48213. + do
  48214. + case $ac_f in
  48215. + -) ac_f="$tmp/stdin";;
  48216. + *) # Look for the file first in the build tree, then in the source tree
  48217. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  48218. + # because $ac_f cannot contain `:'.
  48219. + test -f "$ac_f" ||
  48220. + case $ac_f in
  48221. + [\\/$]*) false;;
  48222. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  48223. + esac ||
  48224. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  48225. + esac
  48226. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  48227. + as_fn_append ac_file_inputs " '$ac_f'"
  48228. + done
  48229. - { echo "$as_me:$LINENO: checking for float32_t temp" >&5
  48230. -echo $ECHO_N "checking for float32_t temp... $ECHO_C" >&6; }
  48231. - cat >conftest.$ac_ext <<_ACEOF
  48232. -/* confdefs.h. */
  48233. -_ACEOF
  48234. -cat confdefs.h >>conftest.$ac_ext
  48235. -cat >>conftest.$ac_ext <<_ACEOF
  48236. -/* end confdefs.h. */
  48237. -#include <sys/types.h>,
  48238. - #include <sys/float.h>
  48239. -int
  48240. -main ()
  48241. -{
  48242. -float32_t temp;
  48243. - ;
  48244. - return 0;
  48245. -}
  48246. -_ACEOF
  48247. -rm -f conftest.$ac_objext
  48248. -if { (ac_try="$ac_compile"
  48249. -case "(($ac_try" in
  48250. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48251. - *) ac_try_echo=$ac_try;;
  48252. -esac
  48253. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48254. - (eval "$ac_compile") 2>conftest.er1
  48255. - ac_status=$?
  48256. - grep -v '^ *+' conftest.er1 >conftest.err
  48257. - rm -f conftest.er1
  48258. - cat conftest.err >&5
  48259. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48260. - (exit $ac_status); } && {
  48261. - test -z "$ac_c_werror_flag" ||
  48262. - test ! -s conftest.err
  48263. - } && test -s conftest.$ac_objext; then
  48264. - libfaad_ok=yes
  48265. -else
  48266. - echo "$as_me: failed program was:" >&5
  48267. -sed 's/^/| /' conftest.$ac_ext >&5
  48268. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  48269. + # use $as_me), people would be surprised to read:
  48270. + # /* config.h. Generated by config.status. */
  48271. + configure_input='Generated from '`
  48272. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  48273. + `' by configure.'
  48274. + if test x"$ac_file" != x-; then
  48275. + configure_input="$ac_file. $configure_input"
  48276. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  48277. +$as_echo "$as_me: creating $ac_file" >&6;}
  48278. + fi
  48279. + # Neutralize special characters interpreted by sed in replacement strings.
  48280. + case $configure_input in #(
  48281. + *\&* | *\|* | *\\* )
  48282. + ac_sed_conf_input=`$as_echo "$configure_input" |
  48283. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  48284. + *) ac_sed_conf_input=$configure_input;;
  48285. + esac
  48286. - libfaad_ok=no
  48287. -fi
  48288. + case $ac_tag in
  48289. + *:-:* | *:-) cat >"$tmp/stdin" \
  48290. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  48291. + esac
  48292. + ;;
  48293. + esac
  48294. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48295. - if test $libfaad_ok = yes; then
  48296. + ac_dir=`$as_dirname -- "$ac_file" ||
  48297. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48298. + X"$ac_file" : 'X\(//\)[^/]' \| \
  48299. + X"$ac_file" : 'X\(//\)$' \| \
  48300. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  48301. +$as_echo X"$ac_file" |
  48302. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48303. + s//\1/
  48304. + q
  48305. + }
  48306. + /^X\(\/\/\)[^/].*/{
  48307. + s//\1/
  48308. + q
  48309. + }
  48310. + /^X\(\/\/\)$/{
  48311. + s//\1/
  48312. + q
  48313. + }
  48314. + /^X\(\/\).*/{
  48315. + s//\1/
  48316. + q
  48317. + }
  48318. + s/.*/./; q'`
  48319. + as_dir="$ac_dir"; as_fn_mkdir_p
  48320. + ac_builddir=.
  48321. -cat >>confdefs.h <<\_ACEOF
  48322. -#define HAVE_FLOAT32_T 1
  48323. -_ACEOF
  48324. +case "$ac_dir" in
  48325. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48326. +*)
  48327. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  48328. + # A ".." for each directory in $ac_dir_suffix.
  48329. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  48330. + case $ac_top_builddir_sub in
  48331. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48332. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  48333. + esac ;;
  48334. +esac
  48335. +ac_abs_top_builddir=$ac_pwd
  48336. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  48337. +# for backward compatibility:
  48338. +ac_top_builddir=$ac_top_build_prefix
  48339. - { echo "$as_me:$LINENO: result: yes" >&5
  48340. -echo "${ECHO_T}yes" >&6; }
  48341. - else
  48342. - { echo "$as_me:$LINENO: result: no" >&5
  48343. -echo "${ECHO_T}no" >&6; }
  48344. -fi
  48345. +case $srcdir in
  48346. + .) # We are building in place.
  48347. + ac_srcdir=.
  48348. + ac_top_srcdir=$ac_top_builddir_sub
  48349. + ac_abs_top_srcdir=$ac_pwd ;;
  48350. + [\\/]* | ?:[\\/]* ) # Absolute name.
  48351. + ac_srcdir=$srcdir$ac_dir_suffix;
  48352. + ac_top_srcdir=$srcdir
  48353. + ac_abs_top_srcdir=$srcdir ;;
  48354. + *) # Relative name.
  48355. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  48356. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  48357. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  48358. +esac
  48359. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  48360. + case $ac_mode in
  48361. + :F)
  48362. + #
  48363. + # CONFIG_FILE
  48364. + #
  48365. -for ac_func in strsep
  48366. -do
  48367. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  48368. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  48369. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  48370. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  48371. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48372. -else
  48373. - cat >conftest.$ac_ext <<_ACEOF
  48374. -/* confdefs.h. */
  48375. + case $INSTALL in
  48376. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  48377. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  48378. + esac
  48379. + ac_MKDIR_P=$MKDIR_P
  48380. + case $MKDIR_P in
  48381. + [\\/$]* | ?:[\\/]* ) ;;
  48382. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  48383. + esac
  48384. _ACEOF
  48385. -cat confdefs.h >>conftest.$ac_ext
  48386. -cat >>conftest.$ac_ext <<_ACEOF
  48387. -/* end confdefs.h. */
  48388. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  48389. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  48390. -#define $ac_func innocuous_$ac_func
  48391. -
  48392. -/* System header to define __stub macros and hopefully few prototypes,
  48393. - which can conflict with char $ac_func (); below.
  48394. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  48395. - <limits.h> exists even on freestanding compilers. */
  48396. -
  48397. -#ifdef __STDC__
  48398. -# include <limits.h>
  48399. -#else
  48400. -# include <assert.h>
  48401. -#endif
  48402. -
  48403. -#undef $ac_func
  48404. -
  48405. -/* Override any GCC internal prototype to avoid an error.
  48406. - Use char because int might match the return type of a GCC
  48407. - builtin and then its argument prototype would still apply. */
  48408. -#ifdef __cplusplus
  48409. -extern "C"
  48410. -#endif
  48411. -char $ac_func ();
  48412. -/* The GNU C library defines this for functions which it implements
  48413. - to always fail with ENOSYS. Some functions are actually named
  48414. - something starting with __ and the normal name is an alias. */
  48415. -#if defined __stub_$ac_func || defined __stub___$ac_func
  48416. -choke me
  48417. -#endif
  48418. -int
  48419. -main ()
  48420. -{
  48421. -return $ac_func ();
  48422. - ;
  48423. - return 0;
  48424. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48425. +# If the template does not know about datarootdir, expand it.
  48426. +# FIXME: This hack should be removed a few years after 2.60.
  48427. +ac_datarootdir_hack=; ac_datarootdir_seen=
  48428. +ac_sed_dataroot='
  48429. +/datarootdir/ {
  48430. + p
  48431. + q
  48432. }
  48433. +/@datadir@/p
  48434. +/@docdir@/p
  48435. +/@infodir@/p
  48436. +/@localedir@/p
  48437. +/@mandir@/p'
  48438. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  48439. +*datarootdir*) ac_datarootdir_seen=yes;;
  48440. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  48441. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  48442. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  48443. _ACEOF
  48444. -rm -f conftest.$ac_objext conftest$ac_exeext
  48445. -if { (ac_try="$ac_link"
  48446. -case "(($ac_try" in
  48447. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48448. - *) ac_try_echo=$ac_try;;
  48449. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48450. + ac_datarootdir_hack='
  48451. + s&@datadir@&$datadir&g
  48452. + s&@docdir@&$docdir&g
  48453. + s&@infodir@&$infodir&g
  48454. + s&@localedir@&$localedir&g
  48455. + s&@mandir@&$mandir&g
  48456. + s&\\\${datarootdir}&$datarootdir&g' ;;
  48457. esac
  48458. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48459. - (eval "$ac_link") 2>conftest.er1
  48460. - ac_status=$?
  48461. - grep -v '^ *+' conftest.er1 >conftest.err
  48462. - rm -f conftest.er1
  48463. - cat conftest.err >&5
  48464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48465. - (exit $ac_status); } && {
  48466. - test -z "$ac_c_werror_flag" ||
  48467. - test ! -s conftest.err
  48468. - } && test -s conftest$ac_exeext &&
  48469. - $as_test_x conftest$ac_exeext; then
  48470. - eval "$as_ac_var=yes"
  48471. -else
  48472. - echo "$as_me: failed program was:" >&5
  48473. -sed 's/^/| /' conftest.$ac_ext >&5
  48474. -
  48475. - eval "$as_ac_var=no"
  48476. -fi
  48477. -
  48478. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48479. - conftest$ac_exeext conftest.$ac_ext
  48480. -fi
  48481. -ac_res=`eval echo '${'$as_ac_var'}'`
  48482. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  48483. -echo "${ECHO_T}$ac_res" >&6; }
  48484. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  48485. - cat >>confdefs.h <<_ACEOF
  48486. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  48487. _ACEOF
  48488. -fi
  48489. -done
  48490. +# Neutralize VPATH when `$srcdir' = `.'.
  48491. +# Shell code in configure.ac might set extrasub.
  48492. +# FIXME: do we really want to maintain this feature?
  48493. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48494. +ac_sed_extra="$ac_vpsub
  48495. +$extrasub
  48496. +_ACEOF
  48497. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48498. +:t
  48499. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  48500. +s|@configure_input@|$ac_sed_conf_input|;t t
  48501. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  48502. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  48503. +s&@srcdir@&$ac_srcdir&;t t
  48504. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  48505. +s&@top_srcdir@&$ac_top_srcdir&;t t
  48506. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  48507. +s&@builddir@&$ac_builddir&;t t
  48508. +s&@abs_builddir@&$ac_abs_builddir&;t t
  48509. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  48510. +s&@INSTALL@&$ac_INSTALL&;t t
  48511. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  48512. +$ac_datarootdir_hack
  48513. +"
  48514. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  48515. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  48516. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  48517. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  48518. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  48519. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  48520. +which seems to be undefined. Please make sure it is defined." >&5
  48521. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  48522. +which seems to be undefined. Please make sure it is defined." >&2;}
  48523. -# Extract the first word of "mpeg4ip-config", so it can be a program name with args.
  48524. -set dummy mpeg4ip-config; ac_word=$2
  48525. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  48526. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  48527. -if test "${ac_cv_prog_external_mp4v2+set}" = set; then
  48528. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48529. -else
  48530. - if test -n "$external_mp4v2"; then
  48531. - ac_cv_prog_external_mp4v2="$external_mp4v2" # Let the user override the test.
  48532. -else
  48533. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48534. -for as_dir in $PATH
  48535. -do
  48536. - IFS=$as_save_IFS
  48537. - test -z "$as_dir" && as_dir=.
  48538. - for ac_exec_ext in '' $ac_executable_extensions; do
  48539. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48540. - ac_cv_prog_external_mp4v2="yes"
  48541. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48542. - break 2
  48543. + rm -f "$tmp/stdin"
  48544. + case $ac_file in
  48545. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  48546. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  48547. + esac \
  48548. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  48549. + ;;
  48550. + :H)
  48551. + #
  48552. + # CONFIG_HEADER
  48553. + #
  48554. + if test x"$ac_file" != x-; then
  48555. + {
  48556. + $as_echo "/* $configure_input */" \
  48557. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  48558. + } >"$tmp/config.h" \
  48559. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  48560. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  48561. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  48562. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  48563. + else
  48564. + rm -f "$ac_file"
  48565. + mv "$tmp/config.h" "$ac_file" \
  48566. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  48567. + fi
  48568. + else
  48569. + $as_echo "/* $configure_input */" \
  48570. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  48571. + || as_fn_error "could not create -" "$LINENO" 5
  48572. fi
  48573. +# Compute "$ac_file"'s index in $config_headers.
  48574. +_am_arg="$ac_file"
  48575. +_am_stamp_count=1
  48576. +for _am_header in $config_headers :; do
  48577. + case $_am_header in
  48578. + $_am_arg | $_am_arg:* )
  48579. + break ;;
  48580. + * )
  48581. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  48582. + esac
  48583. done
  48584. -done
  48585. -IFS=$as_save_IFS
  48586. -
  48587. - test -z "$ac_cv_prog_external_mp4v2" && ac_cv_prog_external_mp4v2="no"
  48588. -fi
  48589. -fi
  48590. -external_mp4v2=$ac_cv_prog_external_mp4v2
  48591. -if test -n "$external_mp4v2"; then
  48592. - { echo "$as_me:$LINENO: result: $external_mp4v2" >&5
  48593. -echo "${ECHO_T}$external_mp4v2" >&6; }
  48594. -else
  48595. - { echo "$as_me:$LINENO: result: no" >&5
  48596. -echo "${ECHO_T}no" >&6; }
  48597. -fi
  48598. -
  48599. -
  48600. -
  48601. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  48602. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48603. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  48604. + X"$_am_arg" : 'X\(//\)$' \| \
  48605. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  48606. +$as_echo X"$_am_arg" |
  48607. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48608. + s//\1/
  48609. + q
  48610. + }
  48611. + /^X\(\/\/\)[^/].*/{
  48612. + s//\1/
  48613. + q
  48614. + }
  48615. + /^X\(\/\/\)$/{
  48616. + s//\1/
  48617. + q
  48618. + }
  48619. + /^X\(\/\).*/{
  48620. + s//\1/
  48621. + q
  48622. + }
  48623. + s/.*/./; q'`/stamp-h$_am_stamp_count
  48624. + ;;
  48625. -if false; then
  48626. - HAVE_MPEG4IP_PLUG_TRUE=
  48627. - HAVE_MPEG4IP_PLUG_FALSE='#'
  48628. -else
  48629. - HAVE_MPEG4IP_PLUG_TRUE='#'
  48630. - HAVE_MPEG4IP_PLUG_FALSE=
  48631. -fi
  48632. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  48633. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  48634. + ;;
  48635. + esac
  48636. -if test x$WITHMPEG4IP = xyes; then
  48637. - if test x$external_mp4v2 = xyes; then
  48638. + case $ac_file$ac_mode in
  48639. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  48640. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  48641. + # are listed without --file. Let's play safe and only enable the eval
  48642. + # if we detect the quoting.
  48643. + case $CONFIG_FILES in
  48644. + *\'*) eval set x "$CONFIG_FILES" ;;
  48645. + *) set x $CONFIG_FILES ;;
  48646. + esac
  48647. + shift
  48648. + for mf
  48649. + do
  48650. + # Strip MF so we end up with the name of the file.
  48651. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  48652. + # Check whether this is an Automake generated Makefile or not.
  48653. + # We used to match only the files named `Makefile.in', but
  48654. + # some people rename them; so instead we look at the file content.
  48655. + # Grep'ing the first line is not enough: some people post-process
  48656. + # each Makefile.in and add a new line on top of each file to say so.
  48657. + # Grep'ing the whole file is not good either: AIX grep has a line
  48658. + # limit of 2048, but all sed's we know have understand at least 4000.
  48659. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  48660. + dirpart=`$as_dirname -- "$mf" ||
  48661. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48662. + X"$mf" : 'X\(//\)[^/]' \| \
  48663. + X"$mf" : 'X\(//\)$' \| \
  48664. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  48665. +$as_echo X"$mf" |
  48666. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48667. + s//\1/
  48668. + q
  48669. + }
  48670. + /^X\(\/\/\)[^/].*/{
  48671. + s//\1/
  48672. + q
  48673. + }
  48674. + /^X\(\/\/\)$/{
  48675. + s//\1/
  48676. + q
  48677. + }
  48678. + /^X\(\/\).*/{
  48679. + s//\1/
  48680. + q
  48681. + }
  48682. + s/.*/./; q'`
  48683. + else
  48684. + continue
  48685. + fi
  48686. + # Extract the definition of DEPDIR, am__include, and am__quote
  48687. + # from the Makefile without running `make'.
  48688. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  48689. + test -z "$DEPDIR" && continue
  48690. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  48691. + test -z "am__include" && continue
  48692. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  48693. + # When using ansi2knr, U may be empty or an underscore; expand it
  48694. + U=`sed -n 's/^U = //p' < "$mf"`
  48695. + # Find all dependency output files, they are included files with
  48696. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  48697. + # simplest approach to changing $(DEPDIR) to its actual value in the
  48698. + # expansion.
  48699. + for file in `sed -n "
  48700. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  48701. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  48702. + # Make sure the directory exists.
  48703. + test -f "$dirpart/$file" && continue
  48704. + fdir=`$as_dirname -- "$file" ||
  48705. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48706. + X"$file" : 'X\(//\)[^/]' \| \
  48707. + X"$file" : 'X\(//\)$' \| \
  48708. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  48709. +$as_echo X"$file" |
  48710. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48711. + s//\1/
  48712. + q
  48713. + }
  48714. + /^X\(\/\/\)[^/].*/{
  48715. + s//\1/
  48716. + q
  48717. + }
  48718. + /^X\(\/\/\)$/{
  48719. + s//\1/
  48720. + q
  48721. + }
  48722. + /^X\(\/\).*/{
  48723. + s//\1/
  48724. + q
  48725. + }
  48726. + s/.*/./; q'`
  48727. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  48728. + # echo "creating $dirpart/$file"
  48729. + echo '# dummy' > "$dirpart/$file"
  48730. + done
  48731. + done
  48732. +}
  48733. + ;;
  48734. + "libtool":C)
  48735. -if true; then
  48736. - HAVE_MPEG4IP_PLUG_TRUE=
  48737. - HAVE_MPEG4IP_PLUG_FALSE='#'
  48738. -else
  48739. - HAVE_MPEG4IP_PLUG_TRUE='#'
  48740. - HAVE_MPEG4IP_PLUG_FALSE=
  48741. -fi
  48742. + # See if we are running on zsh, and set the options which allow our
  48743. + # commands through without removal of \ escapes.
  48744. + if test -n "${ZSH_VERSION+set}" ; then
  48745. + setopt NO_GLOB_SUBST
  48746. + fi
  48747. - { echo "$as_me:$LINENO: \"Building MPEG4IP plugin\"" >&5
  48748. -echo "$as_me: \"Building MPEG4IP plugin\"" >&6;}
  48749. - else
  48750. - { echo "$as_me:$LINENO: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&5
  48751. -echo "$as_me: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&6;}
  48752. - fi
  48753. -fi
  48754. + cfgfile="${ofile}T"
  48755. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  48756. + $RM "$cfgfile"
  48757. -if test x$WITHXMMS = xyes; then
  48758. - for ac_prog in xmms-config
  48759. -do
  48760. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  48761. -set dummy $ac_prog; ac_word=$2
  48762. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  48763. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  48764. -if test "${ac_cv_prog_XMMS_CONFIG+set}" = set; then
  48765. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48766. -else
  48767. - if test -n "$XMMS_CONFIG"; then
  48768. - ac_cv_prog_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test.
  48769. -else
  48770. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48771. -for as_dir in $PATH
  48772. -do
  48773. - IFS=$as_save_IFS
  48774. - test -z "$as_dir" && as_dir=.
  48775. - for ac_exec_ext in '' $ac_executable_extensions; do
  48776. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48777. - ac_cv_prog_XMMS_CONFIG="$ac_prog"
  48778. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48779. - break 2
  48780. - fi
  48781. -done
  48782. -done
  48783. -IFS=$as_save_IFS
  48784. + cat <<_LT_EOF >> "$cfgfile"
  48785. +#! $SHELL
  48786. -fi
  48787. -fi
  48788. -XMMS_CONFIG=$ac_cv_prog_XMMS_CONFIG
  48789. -if test -n "$XMMS_CONFIG"; then
  48790. - { echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
  48791. -echo "${ECHO_T}$XMMS_CONFIG" >&6; }
  48792. -else
  48793. - { echo "$as_me:$LINENO: result: no" >&5
  48794. -echo "${ECHO_T}no" >&6; }
  48795. -fi
  48796. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  48797. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  48798. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  48799. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  48800. +#
  48801. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  48802. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  48803. +# Written by Gordon Matzigkeit, 1996
  48804. +#
  48805. +# This file is part of GNU Libtool.
  48806. +#
  48807. +# GNU Libtool is free software; you can redistribute it and/or
  48808. +# modify it under the terms of the GNU General Public License as
  48809. +# published by the Free Software Foundation; either version 2 of
  48810. +# the License, or (at your option) any later version.
  48811. +#
  48812. +# As a special exception to the GNU General Public License,
  48813. +# if you distribute this file as part of a program or library that
  48814. +# is built using GNU Libtool, you may include this file under the
  48815. +# same distribution terms that you use for the rest of that program.
  48816. +#
  48817. +# GNU Libtool is distributed in the hope that it will be useful,
  48818. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  48819. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  48820. +# GNU General Public License for more details.
  48821. +#
  48822. +# You should have received a copy of the GNU General Public License
  48823. +# along with GNU Libtool; see the file COPYING. If not, a copy
  48824. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  48825. +# obtained by writing to the Free Software Foundation, Inc.,
  48826. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  48827. - test -n "$XMMS_CONFIG" && break
  48828. -done
  48829. -test -n "$XMMS_CONFIG" || XMMS_CONFIG=""not_found""
  48830. +# The names of the tagged configurations supported by this script.
  48831. +available_tags="CXX "
  48832. - if test "$XMMS_CONFIG" = "not_found"; then
  48833. - { { echo "$as_me:$LINENO: error: \"*** xmms-config not found - xmms plugin can't be build\"" >&5
  48834. -echo "$as_me: error: \"*** xmms-config not found - xmms plugin can't be build\"" >&2;}
  48835. - { (exit 1); exit 1; }; }
  48836. - fi
  48837. - if test "${ac_cv_header_pthread_h+set}" = set; then
  48838. - { echo "$as_me:$LINENO: checking for pthread.h" >&5
  48839. -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  48840. -if test "${ac_cv_header_pthread_h+set}" = set; then
  48841. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48842. -fi
  48843. -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  48844. -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  48845. -else
  48846. - # Is the header compilable?
  48847. -{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
  48848. -echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  48849. -cat >conftest.$ac_ext <<_ACEOF
  48850. -/* confdefs.h. */
  48851. -_ACEOF
  48852. -cat confdefs.h >>conftest.$ac_ext
  48853. -cat >>conftest.$ac_ext <<_ACEOF
  48854. -/* end confdefs.h. */
  48855. -$ac_includes_default
  48856. -#include <pthread.h>
  48857. -_ACEOF
  48858. -rm -f conftest.$ac_objext
  48859. -if { (ac_try="$ac_compile"
  48860. -case "(($ac_try" in
  48861. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48862. - *) ac_try_echo=$ac_try;;
  48863. -esac
  48864. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48865. - (eval "$ac_compile") 2>conftest.er1
  48866. - ac_status=$?
  48867. - grep -v '^ *+' conftest.er1 >conftest.err
  48868. - rm -f conftest.er1
  48869. - cat conftest.err >&5
  48870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48871. - (exit $ac_status); } && {
  48872. - test -z "$ac_c_werror_flag" ||
  48873. - test ! -s conftest.err
  48874. - } && test -s conftest.$ac_objext; then
  48875. - ac_header_compiler=yes
  48876. -else
  48877. - echo "$as_me: failed program was:" >&5
  48878. -sed 's/^/| /' conftest.$ac_ext >&5
  48879. +# ### BEGIN LIBTOOL CONFIG
  48880. - ac_header_compiler=no
  48881. -fi
  48882. +# Which release of libtool.m4 was used?
  48883. +macro_version=$macro_version
  48884. +macro_revision=$macro_revision
  48885. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48886. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48887. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  48888. +# Whether or not to build shared libraries.
  48889. +build_libtool_libs=$enable_shared
  48890. -# Is the header present?
  48891. -{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
  48892. -echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  48893. -cat >conftest.$ac_ext <<_ACEOF
  48894. -/* confdefs.h. */
  48895. -_ACEOF
  48896. -cat confdefs.h >>conftest.$ac_ext
  48897. -cat >>conftest.$ac_ext <<_ACEOF
  48898. -/* end confdefs.h. */
  48899. -#include <pthread.h>
  48900. -_ACEOF
  48901. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  48902. -case "(($ac_try" in
  48903. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48904. - *) ac_try_echo=$ac_try;;
  48905. -esac
  48906. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48907. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48908. - ac_status=$?
  48909. - grep -v '^ *+' conftest.er1 >conftest.err
  48910. - rm -f conftest.er1
  48911. - cat conftest.err >&5
  48912. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48913. - (exit $ac_status); } >/dev/null && {
  48914. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48915. - test ! -s conftest.err
  48916. - }; then
  48917. - ac_header_preproc=yes
  48918. -else
  48919. - echo "$as_me: failed program was:" >&5
  48920. -sed 's/^/| /' conftest.$ac_ext >&5
  48921. +# Whether or not to build static libraries.
  48922. +build_old_libs=$enable_static
  48923. - ac_header_preproc=no
  48924. -fi
  48925. +# What type of objects to build.
  48926. +pic_mode=$pic_mode
  48927. -rm -f conftest.err conftest.$ac_ext
  48928. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48929. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  48930. +# Whether or not to optimize for fast installation.
  48931. +fast_install=$enable_fast_install
  48932. -# So? What about this header?
  48933. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48934. - yes:no: )
  48935. - { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48936. -echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48937. - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  48938. -echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  48939. - ac_header_preproc=yes
  48940. - ;;
  48941. - no:yes:* )
  48942. - { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  48943. -echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  48944. - { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  48945. -echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  48946. - { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  48947. -echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  48948. - { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  48949. -echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48950. - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  48951. -echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  48952. - { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  48953. -echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  48954. +# The host system.
  48955. +host_alias=$host_alias
  48956. +host=$host
  48957. +host_os=$host_os
  48958. - ;;
  48959. -esac
  48960. -{ echo "$as_me:$LINENO: checking for pthread.h" >&5
  48961. -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  48962. -if test "${ac_cv_header_pthread_h+set}" = set; then
  48963. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48964. -else
  48965. - ac_cv_header_pthread_h=$ac_header_preproc
  48966. -fi
  48967. -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  48968. -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  48969. +# The build system.
  48970. +build_alias=$build_alias
  48971. +build=$build
  48972. +build_os=$build_os
  48973. -fi
  48974. -if test $ac_cv_header_pthread_h = yes; then
  48975. - :
  48976. -else
  48977. - { { echo "$as_me:$LINENO: error: *** pthread headers support not installed or not found" >&5
  48978. -echo "$as_me: error: *** pthread headers support not installed or not found" >&2;}
  48979. - { (exit 1); exit 1; }; }
  48980. -fi
  48981. +# A sed program that does not truncate output.
  48982. +SED=$lt_SED
  48983. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  48984. +Xsed="\$SED -e 1s/^X//"
  48985. - if test "${ac_cv_header_id3_h+set}" = set; then
  48986. - { echo "$as_me:$LINENO: checking for id3.h" >&5
  48987. -echo $ECHO_N "checking for id3.h... $ECHO_C" >&6; }
  48988. -if test "${ac_cv_header_id3_h+set}" = set; then
  48989. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48990. -fi
  48991. -{ echo "$as_me:$LINENO: result: $ac_cv_header_id3_h" >&5
  48992. -echo "${ECHO_T}$ac_cv_header_id3_h" >&6; }
  48993. -else
  48994. - # Is the header compilable?
  48995. -{ echo "$as_me:$LINENO: checking id3.h usability" >&5
  48996. -echo $ECHO_N "checking id3.h usability... $ECHO_C" >&6; }
  48997. -cat >conftest.$ac_ext <<_ACEOF
  48998. -/* confdefs.h. */
  48999. -_ACEOF
  49000. -cat confdefs.h >>conftest.$ac_ext
  49001. -cat >>conftest.$ac_ext <<_ACEOF
  49002. -/* end confdefs.h. */
  49003. -$ac_includes_default
  49004. -#include <id3.h>
  49005. -_ACEOF
  49006. -rm -f conftest.$ac_objext
  49007. -if { (ac_try="$ac_compile"
  49008. -case "(($ac_try" in
  49009. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49010. - *) ac_try_echo=$ac_try;;
  49011. -esac
  49012. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49013. - (eval "$ac_compile") 2>conftest.er1
  49014. - ac_status=$?
  49015. - grep -v '^ *+' conftest.er1 >conftest.err
  49016. - rm -f conftest.er1
  49017. - cat conftest.err >&5
  49018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49019. - (exit $ac_status); } && {
  49020. - test -z "$ac_c_werror_flag" ||
  49021. - test ! -s conftest.err
  49022. - } && test -s conftest.$ac_objext; then
  49023. - ac_header_compiler=yes
  49024. -else
  49025. - echo "$as_me: failed program was:" >&5
  49026. -sed 's/^/| /' conftest.$ac_ext >&5
  49027. +# A grep program that handles long lines.
  49028. +GREP=$lt_GREP
  49029. - ac_header_compiler=no
  49030. -fi
  49031. +# An ERE matcher.
  49032. +EGREP=$lt_EGREP
  49033. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49034. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49035. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  49036. +# A literal string matcher.
  49037. +FGREP=$lt_FGREP
  49038. -# Is the header present?
  49039. -{ echo "$as_me:$LINENO: checking id3.h presence" >&5
  49040. -echo $ECHO_N "checking id3.h presence... $ECHO_C" >&6; }
  49041. -cat >conftest.$ac_ext <<_ACEOF
  49042. -/* confdefs.h. */
  49043. -_ACEOF
  49044. -cat confdefs.h >>conftest.$ac_ext
  49045. -cat >>conftest.$ac_ext <<_ACEOF
  49046. -/* end confdefs.h. */
  49047. -#include <id3.h>
  49048. -_ACEOF
  49049. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  49050. -case "(($ac_try" in
  49051. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49052. - *) ac_try_echo=$ac_try;;
  49053. -esac
  49054. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49055. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49056. - ac_status=$?
  49057. - grep -v '^ *+' conftest.er1 >conftest.err
  49058. - rm -f conftest.er1
  49059. - cat conftest.err >&5
  49060. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49061. - (exit $ac_status); } >/dev/null && {
  49062. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49063. - test ! -s conftest.err
  49064. - }; then
  49065. - ac_header_preproc=yes
  49066. -else
  49067. - echo "$as_me: failed program was:" >&5
  49068. -sed 's/^/| /' conftest.$ac_ext >&5
  49069. +# A BSD- or MS-compatible name lister.
  49070. +NM=$lt_NM
  49071. - ac_header_preproc=no
  49072. -fi
  49073. +# Whether we need soft or hard links.
  49074. +LN_S=$lt_LN_S
  49075. -rm -f conftest.err conftest.$ac_ext
  49076. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49077. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  49078. +# What is the maximum length of a command?
  49079. +max_cmd_len=$max_cmd_len
  49080. -# So? What about this header?
  49081. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49082. - yes:no: )
  49083. - { echo "$as_me:$LINENO: WARNING: id3.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49084. -echo "$as_me: WARNING: id3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49085. - { echo "$as_me:$LINENO: WARNING: id3.h: proceeding with the compiler's result" >&5
  49086. -echo "$as_me: WARNING: id3.h: proceeding with the compiler's result" >&2;}
  49087. - ac_header_preproc=yes
  49088. - ;;
  49089. - no:yes:* )
  49090. - { echo "$as_me:$LINENO: WARNING: id3.h: present but cannot be compiled" >&5
  49091. -echo "$as_me: WARNING: id3.h: present but cannot be compiled" >&2;}
  49092. - { echo "$as_me:$LINENO: WARNING: id3.h: check for missing prerequisite headers?" >&5
  49093. -echo "$as_me: WARNING: id3.h: check for missing prerequisite headers?" >&2;}
  49094. - { echo "$as_me:$LINENO: WARNING: id3.h: see the Autoconf documentation" >&5
  49095. -echo "$as_me: WARNING: id3.h: see the Autoconf documentation" >&2;}
  49096. - { echo "$as_me:$LINENO: WARNING: id3.h: section \"Present But Cannot Be Compiled\"" >&5
  49097. -echo "$as_me: WARNING: id3.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49098. - { echo "$as_me:$LINENO: WARNING: id3.h: proceeding with the preprocessor's result" >&5
  49099. -echo "$as_me: WARNING: id3.h: proceeding with the preprocessor's result" >&2;}
  49100. - { echo "$as_me:$LINENO: WARNING: id3.h: in the future, the compiler will take precedence" >&5
  49101. -echo "$as_me: WARNING: id3.h: in the future, the compiler will take precedence" >&2;}
  49102. +# Object file suffix (normally "o").
  49103. +objext=$ac_objext
  49104. - ;;
  49105. -esac
  49106. -{ echo "$as_me:$LINENO: checking for id3.h" >&5
  49107. -echo $ECHO_N "checking for id3.h... $ECHO_C" >&6; }
  49108. -if test "${ac_cv_header_id3_h+set}" = set; then
  49109. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49110. -else
  49111. - ac_cv_header_id3_h=$ac_header_preproc
  49112. -fi
  49113. -{ echo "$as_me:$LINENO: result: $ac_cv_header_id3_h" >&5
  49114. -echo "${ECHO_T}$ac_cv_header_id3_h" >&6; }
  49115. +# Executable file suffix (normally "").
  49116. +exeext=$exeext
  49117. -fi
  49118. -if test $ac_cv_header_id3_h = yes; then
  49119. - :
  49120. -else
  49121. - { { echo "$as_me:$LINENO: error: *** id3lib headers support not installed or not found" >&5
  49122. -echo "$as_me: error: *** id3lib headers support not installed or not found" >&2;}
  49123. - { (exit 1); exit 1; }; }
  49124. -fi
  49125. +# whether the shell understands "unset".
  49126. +lt_unset=$lt_unset
  49127. +# turn spaces into newlines.
  49128. +SP2NL=$lt_lt_SP2NL
  49129. - for ac_prog in gtk-config
  49130. -do
  49131. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  49132. -set dummy $ac_prog; ac_word=$2
  49133. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  49134. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  49135. -if test "${ac_cv_prog_GTK_CONFIG+set}" = set; then
  49136. - echo $ECHO_N "(cached) $ECHO_C" >&6
  49137. -else
  49138. - if test -n "$GTK_CONFIG"; then
  49139. - ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
  49140. -else
  49141. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  49142. -for as_dir in $PATH
  49143. -do
  49144. - IFS=$as_save_IFS
  49145. - test -z "$as_dir" && as_dir=.
  49146. - for ac_exec_ext in '' $ac_executable_extensions; do
  49147. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  49148. - ac_cv_prog_GTK_CONFIG="$ac_prog"
  49149. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  49150. - break 2
  49151. - fi
  49152. -done
  49153. -done
  49154. -IFS=$as_save_IFS
  49155. +# turn newlines into spaces.
  49156. +NL2SP=$lt_lt_NL2SP
  49157. -fi
  49158. -fi
  49159. -GTK_CONFIG=$ac_cv_prog_GTK_CONFIG
  49160. -if test -n "$GTK_CONFIG"; then
  49161. - { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
  49162. -echo "${ECHO_T}$GTK_CONFIG" >&6; }
  49163. -else
  49164. - { echo "$as_me:$LINENO: result: no" >&5
  49165. -echo "${ECHO_T}no" >&6; }
  49166. -fi
  49167. +# How to create reloadable object files.
  49168. +reload_flag=$lt_reload_flag
  49169. +reload_cmds=$lt_reload_cmds
  49170. +# An object symbol dumper.
  49171. +OBJDUMP=$lt_OBJDUMP
  49172. - test -n "$GTK_CONFIG" && break
  49173. -done
  49174. -test -n "$GTK_CONFIG" || GTK_CONFIG=""not_found""
  49175. +# Method to check whether dependent libraries are shared objects.
  49176. +deplibs_check_method=$lt_deplibs_check_method
  49177. - if test "$XGTK_CONFIG" = "not_found"; then
  49178. - { { echo "$as_me:$LINENO: error: \"*** gtk-config not found - xmms plugin can't be build without\"" >&5
  49179. -echo "$as_me: error: \"*** gtk-config not found - xmms plugin can't be build without\"" >&2;}
  49180. - { (exit 1); exit 1; }; }
  49181. - fi
  49182. +# Command to use when deplibs_check_method == "file_magic".
  49183. +file_magic_cmd=$lt_file_magic_cmd
  49184. +# The archiver.
  49185. +AR=$lt_AR
  49186. +AR_FLAGS=$lt_AR_FLAGS
  49187. +# A symbol stripping program.
  49188. +STRIP=$lt_STRIP
  49189. -if true; then
  49190. - HAVE_XMMS_TRUE=
  49191. - HAVE_XMMS_FALSE='#'
  49192. -else
  49193. - HAVE_XMMS_TRUE='#'
  49194. - HAVE_XMMS_FALSE=
  49195. -fi
  49196. +# Commands used to install an old-style archive.
  49197. +RANLIB=$lt_RANLIB
  49198. +old_postinstall_cmds=$lt_old_postinstall_cmds
  49199. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  49200. -else
  49201. - { echo "$as_me:$LINENO: no xmms build configured" >&5
  49202. -echo "$as_me: no xmms build configured" >&6;}
  49203. +# A C compiler.
  49204. +LTCC=$lt_CC
  49205. +# LTCC compiler flags.
  49206. +LTCFLAGS=$lt_CFLAGS
  49207. -if false; then
  49208. - HAVE_XMMS_TRUE=
  49209. - HAVE_XMMS_FALSE='#'
  49210. -else
  49211. - HAVE_XMMS_TRUE='#'
  49212. - HAVE_XMMS_FALSE=
  49213. -fi
  49214. +# Take the output of nm and produce a listing of raw symbols and C names.
  49215. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  49216. -fi
  49217. +# Transform the output of nm in a proper C declaration.
  49218. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  49219. -if test x$WITHDRM = xyes; then
  49220. +# Transform the output of nm in a C name address pair.
  49221. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  49222. -cat >>confdefs.h <<\_ACEOF
  49223. -#define DRM 1
  49224. -_ACEOF
  49225. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  49226. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  49227. +
  49228. +# The name of the directory that contains temporary libtool files.
  49229. +objdir=$objdir
  49230. +# Shell to use when invoking shell scripts.
  49231. +SHELL=$lt_SHELL
  49232. -cat >>confdefs.h <<\_ACEOF
  49233. -#define DRM_PS 1
  49234. -_ACEOF
  49235. +# An echo program that does not interpret backslashes.
  49236. +ECHO=$lt_ECHO
  49237. -fi
  49238. +# Used to examine libraries when file_magic_cmd begins with "file".
  49239. +MAGIC_CMD=$MAGIC_CMD
  49240. -ac_config_files="$ac_config_files libfaad/Makefile"
  49241. +# Must we lock files when doing compilation?
  49242. +need_locks=$lt_need_locks
  49243. -ac_config_files="$ac_config_files common/Makefile"
  49244. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  49245. +DSYMUTIL=$lt_DSYMUTIL
  49246. -ac_config_files="$ac_config_files common/mp4ff/Makefile"
  49247. +# Tool to change global to local symbols on Mac OS X.
  49248. +NMEDIT=$lt_NMEDIT
  49249. -ac_config_files="$ac_config_files plugins/Makefile"
  49250. +# Tool to manipulate fat objects and archives on Mac OS X.
  49251. +LIPO=$lt_LIPO
  49252. -ac_config_files="$ac_config_files plugins/xmms/Makefile"
  49253. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  49254. +OTOOL=$lt_OTOOL
  49255. -ac_config_files="$ac_config_files plugins/xmms/src/Makefile"
  49256. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  49257. +OTOOL64=$lt_OTOOL64
  49258. +
  49259. +# Old archive suffix (normally "a").
  49260. +libext=$libext
  49261. -ac_config_files="$ac_config_files plugins/mpeg4ip/Makefile"
  49262. +# Shared library suffix (normally ".so").
  49263. +shrext_cmds=$lt_shrext_cmds
  49264. -ac_config_files="$ac_config_files faad2.spec"
  49265. +# The commands to extract the exported symbol list from a shared archive.
  49266. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  49267. -ac_config_files="$ac_config_files frontend/Makefile"
  49268. +# Variables whose values should be saved in libtool wrapper scripts and
  49269. +# restored at link time.
  49270. +variables_saved_for_relink=$lt_variables_saved_for_relink
  49271. -ac_config_files="$ac_config_files Makefile"
  49272. +# Do we need the "lib" prefix for modules?
  49273. +need_lib_prefix=$need_lib_prefix
  49274. +# Do we need a version for libraries?
  49275. +need_version=$need_version
  49276. -cat >confcache <<\_ACEOF
  49277. -# This file is a shell script that caches the results of configure
  49278. -# tests run on this system so they can be shared between configure
  49279. -# scripts and configure runs, see configure's option --config-cache.
  49280. -# It is not useful on other systems. If it contains results you don't
  49281. -# want to keep, you may remove or edit it.
  49282. -#
  49283. -# config.status only pays attention to the cache file if you give it
  49284. -# the --recheck option to rerun configure.
  49285. -#
  49286. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  49287. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  49288. -# following values.
  49289. +# Library versioning type.
  49290. +version_type=$version_type
  49291. -_ACEOF
  49292. +# Shared library runtime path variable.
  49293. +runpath_var=$runpath_var
  49294. -# The following way of writing the cache mishandles newlines in values,
  49295. -# but we know of no workaround that is simple, portable, and efficient.
  49296. -# So, we kill variables containing newlines.
  49297. -# Ultrix sh set writes to stderr and can't be redirected directly,
  49298. -# and sets the high bit in the cache file unless we assign to the vars.
  49299. -(
  49300. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  49301. - eval ac_val=\$$ac_var
  49302. - case $ac_val in #(
  49303. - *${as_nl}*)
  49304. - case $ac_var in #(
  49305. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  49306. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  49307. - esac
  49308. - case $ac_var in #(
  49309. - _ | IFS | as_nl) ;; #(
  49310. - *) $as_unset $ac_var ;;
  49311. - esac ;;
  49312. - esac
  49313. - done
  49314. +# Shared library path variable.
  49315. +shlibpath_var=$shlibpath_var
  49316. - (set) 2>&1 |
  49317. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  49318. - *${as_nl}ac_space=\ *)
  49319. - # `set' does not quote correctly, so add quotes (double-quote
  49320. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  49321. - sed -n \
  49322. - "s/'/'\\\\''/g;
  49323. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  49324. - ;; #(
  49325. - *)
  49326. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  49327. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  49328. - ;;
  49329. - esac |
  49330. - sort
  49331. -) |
  49332. - sed '
  49333. - /^ac_cv_env_/b end
  49334. - t clear
  49335. - :clear
  49336. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  49337. - t end
  49338. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  49339. - :end' >>confcache
  49340. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  49341. - if test -w "$cache_file"; then
  49342. - test "x$cache_file" != "x/dev/null" &&
  49343. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  49344. -echo "$as_me: updating cache $cache_file" >&6;}
  49345. - cat confcache >$cache_file
  49346. - else
  49347. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  49348. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  49349. - fi
  49350. -fi
  49351. -rm -f confcache
  49352. +# Is shlibpath searched before the hard-coded library search path?
  49353. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  49354. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  49355. -# Let make expand exec_prefix.
  49356. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  49357. +# Format of library name prefix.
  49358. +libname_spec=$lt_libname_spec
  49359. -DEFS=-DHAVE_CONFIG_H
  49360. +# List of archive names. First name is the real one, the rest are links.
  49361. +# The last name is the one that the linker finds with -lNAME
  49362. +library_names_spec=$lt_library_names_spec
  49363. -ac_libobjs=
  49364. -ac_ltlibobjs=
  49365. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  49366. - # 1. Remove the extension, and $U if already installed.
  49367. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  49368. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  49369. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  49370. - # will be set to the directory where LIBOBJS objects are built.
  49371. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  49372. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  49373. -done
  49374. -LIBOBJS=$ac_libobjs
  49375. +# The coded name of the library, if different from the real name.
  49376. +soname_spec=$lt_soname_spec
  49377. -LTLIBOBJS=$ac_ltlibobjs
  49378. +# Command to use after installation of a shared archive.
  49379. +postinstall_cmds=$lt_postinstall_cmds
  49380. +# Command to use after uninstallation of a shared archive.
  49381. +postuninstall_cmds=$lt_postuninstall_cmds
  49382. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  49383. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  49384. -Usually this means the macro was only invoked conditionally." >&5
  49385. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  49386. -Usually this means the macro was only invoked conditionally." >&2;}
  49387. - { (exit 1); exit 1; }; }
  49388. -fi
  49389. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  49390. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  49391. -Usually this means the macro was only invoked conditionally." >&5
  49392. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  49393. -Usually this means the macro was only invoked conditionally." >&2;}
  49394. - { (exit 1); exit 1; }; }
  49395. -fi
  49396. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  49397. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  49398. -Usually this means the macro was only invoked conditionally." >&5
  49399. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  49400. -Usually this means the macro was only invoked conditionally." >&2;}
  49401. - { (exit 1); exit 1; }; }
  49402. -fi
  49403. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  49404. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  49405. -Usually this means the macro was only invoked conditionally." >&5
  49406. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  49407. -Usually this means the macro was only invoked conditionally." >&2;}
  49408. - { (exit 1); exit 1; }; }
  49409. -fi
  49410. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  49411. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  49412. -Usually this means the macro was only invoked conditionally." >&5
  49413. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  49414. -Usually this means the macro was only invoked conditionally." >&2;}
  49415. - { (exit 1); exit 1; }; }
  49416. -fi
  49417. -if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
  49418. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  49419. -Usually this means the macro was only invoked conditionally." >&5
  49420. -echo "$as_me: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  49421. -Usually this means the macro was only invoked conditionally." >&2;}
  49422. - { (exit 1); exit 1; }; }
  49423. -fi
  49424. -if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
  49425. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  49426. -Usually this means the macro was only invoked conditionally." >&5
  49427. -echo "$as_me: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
  49428. -Usually this means the macro was only invoked conditionally." >&2;}
  49429. - { (exit 1); exit 1; }; }
  49430. -fi
  49431. -if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
  49432. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMMS\" was never defined.
  49433. -Usually this means the macro was only invoked conditionally." >&5
  49434. -echo "$as_me: error: conditional \"HAVE_XMMS\" was never defined.
  49435. -Usually this means the macro was only invoked conditionally." >&2;}
  49436. - { (exit 1); exit 1; }; }
  49437. -fi
  49438. -if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
  49439. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMMS\" was never defined.
  49440. -Usually this means the macro was only invoked conditionally." >&5
  49441. -echo "$as_me: error: conditional \"HAVE_XMMS\" was never defined.
  49442. -Usually this means the macro was only invoked conditionally." >&2;}
  49443. - { (exit 1); exit 1; }; }
  49444. -fi
  49445. +# Commands used to finish a libtool library installation in a directory.
  49446. +finish_cmds=$lt_finish_cmds
  49447. -: ${CONFIG_STATUS=./config.status}
  49448. -ac_clean_files_save=$ac_clean_files
  49449. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  49450. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  49451. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  49452. -cat >$CONFIG_STATUS <<_ACEOF
  49453. -#! $SHELL
  49454. -# Generated by $as_me.
  49455. -# Run this file to recreate the current configuration.
  49456. -# Compiler output produced by configure, useful for debugging
  49457. -# configure, is in config.log if it exists.
  49458. +# As "finish_cmds", except a single script fragment to be evaled but
  49459. +# not shown.
  49460. +finish_eval=$lt_finish_eval
  49461. -debug=false
  49462. -ac_cs_recheck=false
  49463. -ac_cs_silent=false
  49464. -SHELL=\${CONFIG_SHELL-$SHELL}
  49465. -_ACEOF
  49466. +# Whether we should hardcode library paths into libraries.
  49467. +hardcode_into_libs=$hardcode_into_libs
  49468. -cat >>$CONFIG_STATUS <<\_ACEOF
  49469. -## --------------------- ##
  49470. -## M4sh Initialization. ##
  49471. -## --------------------- ##
  49472. +# Compile-time system search path for libraries.
  49473. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  49474. -# Be more Bourne compatible
  49475. -DUALCASE=1; export DUALCASE # for MKS sh
  49476. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  49477. - emulate sh
  49478. - NULLCMD=:
  49479. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  49480. - # is contrary to our usage. Disable this feature.
  49481. - alias -g '${1+"$@"}'='"$@"'
  49482. - setopt NO_GLOB_SUBST
  49483. -else
  49484. - case `(set -o) 2>/dev/null` in
  49485. - *posix*) set -o posix ;;
  49486. -esac
  49487. +# Run-time system search path for libraries.
  49488. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  49489. -fi
  49490. +# Whether dlopen is supported.
  49491. +dlopen_support=$enable_dlopen
  49492. +# Whether dlopen of programs is supported.
  49493. +dlopen_self=$enable_dlopen_self
  49494. +# Whether dlopen of statically linked programs is supported.
  49495. +dlopen_self_static=$enable_dlopen_self_static
  49496. +# Commands to strip libraries.
  49497. +old_striplib=$lt_old_striplib
  49498. +striplib=$lt_striplib
  49499. -# PATH needs CR
  49500. -# Avoid depending upon Character Ranges.
  49501. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  49502. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  49503. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  49504. -as_cr_digits='0123456789'
  49505. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  49506. -# The user is always right.
  49507. -if test "${PATH_SEPARATOR+set}" != set; then
  49508. - echo "#! /bin/sh" >conf$$.sh
  49509. - echo "exit 0" >>conf$$.sh
  49510. - chmod +x conf$$.sh
  49511. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  49512. - PATH_SEPARATOR=';'
  49513. - else
  49514. - PATH_SEPARATOR=:
  49515. - fi
  49516. - rm -f conf$$.sh
  49517. -fi
  49518. +# The linker used to build libraries.
  49519. +LD=$lt_LD
  49520. -# Support unset when possible.
  49521. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49522. - as_unset=unset
  49523. -else
  49524. - as_unset=false
  49525. -fi
  49526. +# Commands used to build an old-style archive.
  49527. +old_archive_cmds=$lt_old_archive_cmds
  49528. +# A language specific compiler.
  49529. +CC=$lt_compiler
  49530. -# IFS
  49531. -# We need space, tab and new line, in precisely that order. Quoting is
  49532. -# there to prevent editors from complaining about space-tab.
  49533. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  49534. -# splitting by setting IFS to empty value.)
  49535. -as_nl='
  49536. -'
  49537. -IFS=" "" $as_nl"
  49538. +# Is the compiler the GNU compiler?
  49539. +with_gcc=$GCC
  49540. -# Find who we are. Look in the path if we contain no directory separator.
  49541. -case $0 in
  49542. - *[\\/]* ) as_myself=$0 ;;
  49543. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  49544. -for as_dir in $PATH
  49545. -do
  49546. - IFS=$as_save_IFS
  49547. - test -z "$as_dir" && as_dir=.
  49548. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  49549. -done
  49550. -IFS=$as_save_IFS
  49551. +# Compiler flag to turn off builtin functions.
  49552. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  49553. - ;;
  49554. -esac
  49555. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  49556. -# in which case we are not to be found in the path.
  49557. -if test "x$as_myself" = x; then
  49558. - as_myself=$0
  49559. -fi
  49560. -if test ! -f "$as_myself"; then
  49561. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  49562. - { (exit 1); exit 1; }
  49563. -fi
  49564. +# How to pass a linker flag through the compiler.
  49565. +wl=$lt_lt_prog_compiler_wl
  49566. -# Work around bugs in pre-3.0 UWIN ksh.
  49567. -for as_var in ENV MAIL MAILPATH
  49568. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  49569. -done
  49570. -PS1='$ '
  49571. -PS2='> '
  49572. -PS4='+ '
  49573. +# Additional compiler flags for building library objects.
  49574. +pic_flag=$lt_lt_prog_compiler_pic
  49575. -# NLS nuisances.
  49576. -for as_var in \
  49577. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  49578. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  49579. - LC_TELEPHONE LC_TIME
  49580. -do
  49581. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  49582. - eval $as_var=C; export $as_var
  49583. - else
  49584. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  49585. - fi
  49586. -done
  49587. +# Compiler flag to prevent dynamic linking.
  49588. +link_static_flag=$lt_lt_prog_compiler_static
  49589. -# Required to use basename.
  49590. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  49591. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  49592. - as_expr=expr
  49593. -else
  49594. - as_expr=false
  49595. -fi
  49596. +# Does compiler simultaneously support -c and -o options?
  49597. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  49598. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  49599. - as_basename=basename
  49600. -else
  49601. - as_basename=false
  49602. -fi
  49603. +# Whether or not to add -lc for building shared libraries.
  49604. +build_libtool_need_lc=$archive_cmds_need_lc
  49605. +# Whether or not to disallow shared libs when runtime libs are static.
  49606. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  49607. -# Name of the executable.
  49608. -as_me=`$as_basename -- "$0" ||
  49609. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  49610. - X"$0" : 'X\(//\)$' \| \
  49611. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  49612. -echo X/"$0" |
  49613. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  49614. - s//\1/
  49615. - q
  49616. - }
  49617. - /^X\/\(\/\/\)$/{
  49618. - s//\1/
  49619. - q
  49620. - }
  49621. - /^X\/\(\/\).*/{
  49622. - s//\1/
  49623. - q
  49624. - }
  49625. - s/.*/./; q'`
  49626. +# Compiler flag to allow reflexive dlopens.
  49627. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  49628. -# CDPATH.
  49629. -$as_unset CDPATH
  49630. +# Compiler flag to generate shared objects directly from archives.
  49631. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  49632. +# Whether the compiler copes with passing no objects directly.
  49633. +compiler_needs_object=$lt_compiler_needs_object
  49634. +# Create an old-style archive from a shared archive.
  49635. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  49636. - as_lineno_1=$LINENO
  49637. - as_lineno_2=$LINENO
  49638. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  49639. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  49640. -
  49641. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  49642. - # uniformly replaced by the line number. The first 'sed' inserts a
  49643. - # line-number line after each line using $LINENO; the second 'sed'
  49644. - # does the real work. The second script uses 'N' to pair each
  49645. - # line-number line with the line containing $LINENO, and appends
  49646. - # trailing '-' during substitution so that $LINENO is not a special
  49647. - # case at line end.
  49648. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  49649. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  49650. - # E. McMahon (1931-1989) for sed's syntax. :-)
  49651. - sed -n '
  49652. - p
  49653. - /[$]LINENO/=
  49654. - ' <$as_myself |
  49655. - sed '
  49656. - s/[$]LINENO.*/&-/
  49657. - t lineno
  49658. - b
  49659. - :lineno
  49660. - N
  49661. - :loop
  49662. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  49663. - t loop
  49664. - s/-\n.*//
  49665. - ' >$as_me.lineno &&
  49666. - chmod +x "$as_me.lineno" ||
  49667. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  49668. - { (exit 1); exit 1; }; }
  49669. +# Create a temporary old-style archive to link instead of a shared archive.
  49670. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  49671. - # Don't try to exec as it changes $[0], causing all sort of problems
  49672. - # (the dirname of $[0] is not the place where we might find the
  49673. - # original and so on. Autoconf is especially sensitive to this).
  49674. - . "./$as_me.lineno"
  49675. - # Exit status is that of the last command.
  49676. - exit
  49677. -}
  49678. +# Commands used to build a shared archive.
  49679. +archive_cmds=$lt_archive_cmds
  49680. +archive_expsym_cmds=$lt_archive_expsym_cmds
  49681. +# Commands used to build a loadable module if different from building
  49682. +# a shared archive.
  49683. +module_cmds=$lt_module_cmds
  49684. +module_expsym_cmds=$lt_module_expsym_cmds
  49685. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  49686. - as_dirname=dirname
  49687. -else
  49688. - as_dirname=false
  49689. -fi
  49690. +# Whether we are building with GNU ld or not.
  49691. +with_gnu_ld=$lt_with_gnu_ld
  49692. -ECHO_C= ECHO_N= ECHO_T=
  49693. -case `echo -n x` in
  49694. --n*)
  49695. - case `echo 'x\c'` in
  49696. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  49697. - *) ECHO_C='\c';;
  49698. - esac;;
  49699. -*)
  49700. - ECHO_N='-n';;
  49701. -esac
  49702. +# Flag that allows shared libraries with undefined symbols to be built.
  49703. +allow_undefined_flag=$lt_allow_undefined_flag
  49704. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  49705. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  49706. - as_expr=expr
  49707. -else
  49708. - as_expr=false
  49709. -fi
  49710. +# Flag that enforces no undefined symbols.
  49711. +no_undefined_flag=$lt_no_undefined_flag
  49712. -rm -f conf$$ conf$$.exe conf$$.file
  49713. -if test -d conf$$.dir; then
  49714. - rm -f conf$$.dir/conf$$.file
  49715. -else
  49716. - rm -f conf$$.dir
  49717. - mkdir conf$$.dir
  49718. -fi
  49719. -echo >conf$$.file
  49720. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  49721. - as_ln_s='ln -s'
  49722. - # ... but there are two gotchas:
  49723. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  49724. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  49725. - # In both cases, we have to default to `cp -p'.
  49726. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  49727. - as_ln_s='cp -p'
  49728. -elif ln conf$$.file conf$$ 2>/dev/null; then
  49729. - as_ln_s=ln
  49730. -else
  49731. - as_ln_s='cp -p'
  49732. -fi
  49733. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  49734. -rmdir conf$$.dir 2>/dev/null
  49735. +# Flag to hardcode \$libdir into a binary during linking.
  49736. +# This must work even if \$libdir does not exist
  49737. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  49738. -if mkdir -p . 2>/dev/null; then
  49739. - as_mkdir_p=:
  49740. -else
  49741. - test -d ./-p && rmdir ./-p
  49742. - as_mkdir_p=false
  49743. -fi
  49744. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  49745. +# during linking. This must work even if \$libdir does not exist.
  49746. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  49747. -if test -x / >/dev/null 2>&1; then
  49748. - as_test_x='test -x'
  49749. -else
  49750. - if ls -dL / >/dev/null 2>&1; then
  49751. - as_ls_L_option=L
  49752. - else
  49753. - as_ls_L_option=
  49754. - fi
  49755. - as_test_x='
  49756. - eval sh -c '\''
  49757. - if test -d "$1"; then
  49758. - test -d "$1/.";
  49759. - else
  49760. - case $1 in
  49761. - -*)set "./$1";;
  49762. - esac;
  49763. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  49764. - ???[sx]*):;;*)false;;esac;fi
  49765. - '\'' sh
  49766. - '
  49767. -fi
  49768. -as_executable_p=$as_test_x
  49769. +# Whether we need a single "-rpath" flag with a separated argument.
  49770. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  49771. -# Sed expression to map a string onto a valid CPP name.
  49772. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  49773. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  49774. +# DIR into the resulting binary.
  49775. +hardcode_direct=$hardcode_direct
  49776. -# Sed expression to map a string onto a valid variable name.
  49777. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  49778. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  49779. +# DIR into the resulting binary and the resulting library dependency is
  49780. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  49781. +# library is relocated.
  49782. +hardcode_direct_absolute=$hardcode_direct_absolute
  49783. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  49784. +# into the resulting binary.
  49785. +hardcode_minus_L=$hardcode_minus_L
  49786. -exec 6>&1
  49787. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  49788. +# into the resulting binary.
  49789. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  49790. -# Save the log message, to keep $[0] and so on meaningful, and to
  49791. -# report actual input values of CONFIG_FILES etc. instead of their
  49792. -# values after options handling.
  49793. -ac_log="
  49794. -This file was extended by $as_me, which was
  49795. -generated by GNU Autoconf 2.61. Invocation command line was
  49796. +# Set to "yes" if building a shared library automatically hardcodes DIR
  49797. +# into the library and all subsequent libraries and executables linked
  49798. +# against it.
  49799. +hardcode_automatic=$hardcode_automatic
  49800. - CONFIG_FILES = $CONFIG_FILES
  49801. - CONFIG_HEADERS = $CONFIG_HEADERS
  49802. - CONFIG_LINKS = $CONFIG_LINKS
  49803. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  49804. - $ $0 $@
  49805. +# Set to yes if linker adds runtime paths of dependent libraries
  49806. +# to runtime path list.
  49807. +inherit_rpath=$inherit_rpath
  49808. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  49809. -"
  49810. +# Whether libtool must link a program against all its dependency libraries.
  49811. +link_all_deplibs=$link_all_deplibs
  49812. -_ACEOF
  49813. +# Fix the shell variable \$srcfile for the compiler.
  49814. +fix_srcfile_path=$lt_fix_srcfile_path
  49815. -cat >>$CONFIG_STATUS <<_ACEOF
  49816. -# Files that config.status was made for.
  49817. -config_files="$ac_config_files"
  49818. -config_headers="$ac_config_headers"
  49819. -config_commands="$ac_config_commands"
  49820. +# Set to "yes" if exported symbols are required.
  49821. +always_export_symbols=$always_export_symbols
  49822. -_ACEOF
  49823. +# The commands to list exported symbols.
  49824. +export_symbols_cmds=$lt_export_symbols_cmds
  49825. -cat >>$CONFIG_STATUS <<\_ACEOF
  49826. -ac_cs_usage="\
  49827. -\`$as_me' instantiates files from templates according to the
  49828. -current configuration.
  49829. +# Symbols that should not be listed in the preloaded symbols.
  49830. +exclude_expsyms=$lt_exclude_expsyms
  49831. -Usage: $0 [OPTIONS] [FILE]...
  49832. +# Symbols that must always be exported.
  49833. +include_expsyms=$lt_include_expsyms
  49834. - -h, --help print this help, then exit
  49835. - -V, --version print version number and configuration settings, then exit
  49836. - -q, --quiet do not print progress messages
  49837. - -d, --debug don't remove temporary files
  49838. - --recheck update $as_me by reconfiguring in the same conditions
  49839. - --file=FILE[:TEMPLATE]
  49840. - instantiate the configuration file FILE
  49841. - --header=FILE[:TEMPLATE]
  49842. - instantiate the configuration header FILE
  49843. +# Commands necessary for linking programs (against libraries) with templates.
  49844. +prelink_cmds=$lt_prelink_cmds
  49845. -Configuration files:
  49846. -$config_files
  49847. +# Specify filename containing input files.
  49848. +file_list_spec=$lt_file_list_spec
  49849. -Configuration headers:
  49850. -$config_headers
  49851. +# How to hardcode a shared library path into an executable.
  49852. +hardcode_action=$hardcode_action
  49853. -Configuration commands:
  49854. -$config_commands
  49855. +# The directories searched by this compiler when creating a shared library.
  49856. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  49857. -Report bugs to <bug-autoconf@gnu.org>."
  49858. +# Dependencies to place before and after the objects being linked to
  49859. +# create a shared library.
  49860. +predep_objects=$lt_predep_objects
  49861. +postdep_objects=$lt_postdep_objects
  49862. +predeps=$lt_predeps
  49863. +postdeps=$lt_postdeps
  49864. -_ACEOF
  49865. -cat >>$CONFIG_STATUS <<_ACEOF
  49866. -ac_cs_version="\\
  49867. -config.status
  49868. -configured by $0, generated by GNU Autoconf 2.61,
  49869. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  49870. +# The library search path used internally by the compiler when linking
  49871. +# a shared library.
  49872. +compiler_lib_search_path=$lt_compiler_lib_search_path
  49873. -Copyright (C) 2006 Free Software Foundation, Inc.
  49874. -This config.status script is free software; the Free Software Foundation
  49875. -gives unlimited permission to copy, distribute and modify it."
  49876. +# ### END LIBTOOL CONFIG
  49877. -ac_pwd='$ac_pwd'
  49878. -srcdir='$srcdir'
  49879. -INSTALL='$INSTALL'
  49880. -_ACEOF
  49881. +_LT_EOF
  49882. -cat >>$CONFIG_STATUS <<\_ACEOF
  49883. -# If no file are specified by the user, then we need to provide default
  49884. -# value. By we need to know if files were specified by the user.
  49885. -ac_need_defaults=:
  49886. -while test $# != 0
  49887. -do
  49888. - case $1 in
  49889. - --*=*)
  49890. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  49891. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  49892. - ac_shift=:
  49893. - ;;
  49894. - *)
  49895. - ac_option=$1
  49896. - ac_optarg=$2
  49897. - ac_shift=shift
  49898. + case $host_os in
  49899. + aix3*)
  49900. + cat <<\_LT_EOF >> "$cfgfile"
  49901. +# AIX sometimes has problems with the GCC collect2 program. For some
  49902. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  49903. +# vanish in a puff of smoke.
  49904. +if test "X${COLLECT_NAMES+set}" != Xset; then
  49905. + COLLECT_NAMES=
  49906. + export COLLECT_NAMES
  49907. +fi
  49908. +_LT_EOF
  49909. ;;
  49910. esac
  49911. - case $ac_option in
  49912. - # Handling of the options.
  49913. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  49914. - ac_cs_recheck=: ;;
  49915. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  49916. - echo "$ac_cs_version"; exit ;;
  49917. - --debug | --debu | --deb | --de | --d | -d )
  49918. - debug=: ;;
  49919. - --file | --fil | --fi | --f )
  49920. - $ac_shift
  49921. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  49922. - ac_need_defaults=false;;
  49923. - --header | --heade | --head | --hea )
  49924. - $ac_shift
  49925. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  49926. - ac_need_defaults=false;;
  49927. - --he | --h)
  49928. - # Conflict between --help and --header
  49929. - { echo "$as_me: error: ambiguous option: $1
  49930. -Try \`$0 --help' for more information." >&2
  49931. - { (exit 1); exit 1; }; };;
  49932. - --help | --hel | -h )
  49933. - echo "$ac_cs_usage"; exit ;;
  49934. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  49935. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  49936. - ac_cs_silent=: ;;
  49937. - # This is an error.
  49938. - -*) { echo "$as_me: error: unrecognized option: $1
  49939. -Try \`$0 --help' for more information." >&2
  49940. - { (exit 1); exit 1; }; } ;;
  49941. +ltmain="$ac_aux_dir/ltmain.sh"
  49942. - *) ac_config_targets="$ac_config_targets $1"
  49943. - ac_need_defaults=false ;;
  49944. + # We use sed instead of cat because bash on DJGPP gets confused if
  49945. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  49946. + # text mode, it properly converts lines to CR/LF. This bash problem
  49947. + # is reportedly fixed, but why not run on old versions too?
  49948. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  49949. + || (rm -f "$cfgfile"; exit 1)
  49950. +
  49951. + case $xsi_shell in
  49952. + yes)
  49953. + cat << \_LT_EOF >> "$cfgfile"
  49954. +
  49955. +# func_dirname file append nondir_replacement
  49956. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  49957. +# otherwise set result to NONDIR_REPLACEMENT.
  49958. +func_dirname ()
  49959. +{
  49960. + case ${1} in
  49961. + */*) func_dirname_result="${1%/*}${2}" ;;
  49962. + * ) func_dirname_result="${3}" ;;
  49963. esac
  49964. - shift
  49965. -done
  49966. +}
  49967. -ac_configure_extra_args=
  49968. +# func_basename file
  49969. +func_basename ()
  49970. +{
  49971. + func_basename_result="${1##*/}"
  49972. +}
  49973. -if $ac_cs_silent; then
  49974. - exec 6>/dev/null
  49975. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  49976. -fi
  49977. +# func_dirname_and_basename file append nondir_replacement
  49978. +# perform func_basename and func_dirname in a single function
  49979. +# call:
  49980. +# dirname: Compute the dirname of FILE. If nonempty,
  49981. +# add APPEND to the result, otherwise set result
  49982. +# to NONDIR_REPLACEMENT.
  49983. +# value returned in "$func_dirname_result"
  49984. +# basename: Compute filename of FILE.
  49985. +# value retuned in "$func_basename_result"
  49986. +# Implementation must be kept synchronized with func_dirname
  49987. +# and func_basename. For efficiency, we do not delegate to
  49988. +# those functions but instead duplicate the functionality here.
  49989. +func_dirname_and_basename ()
  49990. +{
  49991. + case ${1} in
  49992. + */*) func_dirname_result="${1%/*}${2}" ;;
  49993. + * ) func_dirname_result="${3}" ;;
  49994. + esac
  49995. + func_basename_result="${1##*/}"
  49996. +}
  49997. -_ACEOF
  49998. -cat >>$CONFIG_STATUS <<_ACEOF
  49999. -if \$ac_cs_recheck; then
  50000. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  50001. - CONFIG_SHELL=$SHELL
  50002. - export CONFIG_SHELL
  50003. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  50004. -fi
  50005. +# func_stripname prefix suffix name
  50006. +# strip PREFIX and SUFFIX off of NAME.
  50007. +# PREFIX and SUFFIX must not contain globbing or regex special
  50008. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  50009. +# dot (in which case that matches only a dot).
  50010. +func_stripname ()
  50011. +{
  50012. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  50013. + # positional parameters, so assign one to ordinary parameter first.
  50014. + func_stripname_result=${3}
  50015. + func_stripname_result=${func_stripname_result#"${1}"}
  50016. + func_stripname_result=${func_stripname_result%"${2}"}
  50017. +}
  50018. -_ACEOF
  50019. -cat >>$CONFIG_STATUS <<\_ACEOF
  50020. -exec 5>>config.log
  50021. +# func_opt_split
  50022. +func_opt_split ()
  50023. {
  50024. - echo
  50025. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  50026. -## Running $as_me. ##
  50027. -_ASBOX
  50028. - echo "$ac_log"
  50029. -} >&5
  50030. + func_opt_split_opt=${1%%=*}
  50031. + func_opt_split_arg=${1#*=}
  50032. +}
  50033. -_ACEOF
  50034. -cat >>$CONFIG_STATUS <<_ACEOF
  50035. -#
  50036. -# INIT-COMMANDS
  50037. -#
  50038. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  50039. +# func_lo2o object
  50040. +func_lo2o ()
  50041. +{
  50042. + case ${1} in
  50043. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  50044. + *) func_lo2o_result=${1} ;;
  50045. + esac
  50046. +}
  50047. +
  50048. +# func_xform libobj-or-source
  50049. +func_xform ()
  50050. +{
  50051. + func_xform_result=${1%.*}.lo
  50052. +}
  50053. +
  50054. +# func_arith arithmetic-term...
  50055. +func_arith ()
  50056. +{
  50057. + func_arith_result=$(( $* ))
  50058. +}
  50059. +
  50060. +# func_len string
  50061. +# STRING may not start with a hyphen.
  50062. +func_len ()
  50063. +{
  50064. + func_len_result=${#1}
  50065. +}
  50066. -_ACEOF
  50067. +_LT_EOF
  50068. + ;;
  50069. + *) # Bourne compatible functions.
  50070. + cat << \_LT_EOF >> "$cfgfile"
  50071. -cat >>$CONFIG_STATUS <<\_ACEOF
  50072. +# func_dirname file append nondir_replacement
  50073. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  50074. +# otherwise set result to NONDIR_REPLACEMENT.
  50075. +func_dirname ()
  50076. +{
  50077. + # Extract subdirectory from the argument.
  50078. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  50079. + if test "X$func_dirname_result" = "X${1}"; then
  50080. + func_dirname_result="${3}"
  50081. + else
  50082. + func_dirname_result="$func_dirname_result${2}"
  50083. + fi
  50084. +}
  50085. +
  50086. +# func_basename file
  50087. +func_basename ()
  50088. +{
  50089. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  50090. +}
  50091. -# Handling of arguments.
  50092. -for ac_config_target in $ac_config_targets
  50093. -do
  50094. - case $ac_config_target in
  50095. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  50096. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  50097. - "libfaad/Makefile") CONFIG_FILES="$CONFIG_FILES libfaad/Makefile" ;;
  50098. - "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
  50099. - "common/mp4ff/Makefile") CONFIG_FILES="$CONFIG_FILES common/mp4ff/Makefile" ;;
  50100. - "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  50101. - "plugins/xmms/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/Makefile" ;;
  50102. - "plugins/xmms/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/src/Makefile" ;;
  50103. - "plugins/mpeg4ip/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mpeg4ip/Makefile" ;;
  50104. - "faad2.spec") CONFIG_FILES="$CONFIG_FILES faad2.spec" ;;
  50105. - "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
  50106. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  50107. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  50108. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  50109. - { (exit 1); exit 1; }; };;
  50110. +# func_stripname prefix suffix name
  50111. +# strip PREFIX and SUFFIX off of NAME.
  50112. +# PREFIX and SUFFIX must not contain globbing or regex special
  50113. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  50114. +# dot (in which case that matches only a dot).
  50115. +# func_strip_suffix prefix name
  50116. +func_stripname ()
  50117. +{
  50118. + case ${2} in
  50119. + .*) func_stripname_result=`$ECHO "X${3}" \
  50120. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  50121. + *) func_stripname_result=`$ECHO "X${3}" \
  50122. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  50123. esac
  50124. -done
  50125. +}
  50126. +# sed scripts:
  50127. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  50128. +my_sed_long_arg='1s/^-[^=]*=//'
  50129. -# If the user did not use the arguments to specify the items to instantiate,
  50130. -# then the envvar interface is used. Set only those that are not.
  50131. -# We use the long form for the default assignment because of an extremely
  50132. -# bizarre bug on SunOS 4.1.3.
  50133. -if $ac_need_defaults; then
  50134. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  50135. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  50136. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  50137. -fi
  50138. +# func_opt_split
  50139. +func_opt_split ()
  50140. +{
  50141. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  50142. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  50143. +}
  50144. -# Have a temporary directory for convenience. Make it in the build tree
  50145. -# simply because there is no reason against having it here, and in addition,
  50146. -# creating and moving files from /tmp can sometimes cause problems.
  50147. -# Hook for its removal unless debugging.
  50148. -# Note that there is a small window in which the directory will not be cleaned:
  50149. -# after its creation but before its name has been assigned to `$tmp'.
  50150. -$debug ||
  50151. +# func_lo2o object
  50152. +func_lo2o ()
  50153. {
  50154. - tmp=
  50155. - trap 'exit_status=$?
  50156. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  50157. -' 0
  50158. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  50159. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  50160. }
  50161. -# Create a (secure) tmp directory for tmp files.
  50162. +# func_xform libobj-or-source
  50163. +func_xform ()
  50164. {
  50165. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  50166. - test -n "$tmp" && test -d "$tmp"
  50167. -} ||
  50168. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  50169. +}
  50170. +
  50171. +# func_arith arithmetic-term...
  50172. +func_arith ()
  50173. {
  50174. - tmp=./conf$$-$RANDOM
  50175. - (umask 077 && mkdir "$tmp")
  50176. -} ||
  50177. + func_arith_result=`expr "$@"`
  50178. +}
  50179. +
  50180. +# func_len string
  50181. +# STRING may not start with a hyphen.
  50182. +func_len ()
  50183. {
  50184. - echo "$me: cannot create a temporary directory in ." >&2
  50185. - { (exit 1); exit 1; }
  50186. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  50187. }
  50188. -#
  50189. -# Set up the sed scripts for CONFIG_FILES section.
  50190. -#
  50191. +_LT_EOF
  50192. +esac
  50193. -# No need to generate the scripts if there are no CONFIG_FILES.
  50194. -# This happens for instance when ./config.status config.h
  50195. -if test -n "$CONFIG_FILES"; then
  50196. +case $lt_shell_append in
  50197. + yes)
  50198. + cat << \_LT_EOF >> "$cfgfile"
  50199. -_ACEOF
  50200. +# func_append var value
  50201. +# Append VALUE to the end of shell variable VAR.
  50202. +func_append ()
  50203. +{
  50204. + eval "$1+=\$2"
  50205. +}
  50206. +_LT_EOF
  50207. + ;;
  50208. + *)
  50209. + cat << \_LT_EOF >> "$cfgfile"
  50210. +# func_append var value
  50211. +# Append VALUE to the end of shell variable VAR.
  50212. +func_append ()
  50213. +{
  50214. + eval "$1=\$$1\$2"
  50215. +}
  50216. +_LT_EOF
  50217. + ;;
  50218. + esac
  50219. -ac_delim='%!_!# '
  50220. -for ac_last_try in false false false false false :; do
  50221. - cat >conf$$subs.sed <<_ACEOF
  50222. -SHELL!$SHELL$ac_delim
  50223. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  50224. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  50225. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  50226. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  50227. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  50228. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  50229. -exec_prefix!$exec_prefix$ac_delim
  50230. -prefix!$prefix$ac_delim
  50231. -program_transform_name!$program_transform_name$ac_delim
  50232. -bindir!$bindir$ac_delim
  50233. -sbindir!$sbindir$ac_delim
  50234. -libexecdir!$libexecdir$ac_delim
  50235. -datarootdir!$datarootdir$ac_delim
  50236. -datadir!$datadir$ac_delim
  50237. -sysconfdir!$sysconfdir$ac_delim
  50238. -sharedstatedir!$sharedstatedir$ac_delim
  50239. -localstatedir!$localstatedir$ac_delim
  50240. -includedir!$includedir$ac_delim
  50241. -oldincludedir!$oldincludedir$ac_delim
  50242. -docdir!$docdir$ac_delim
  50243. -infodir!$infodir$ac_delim
  50244. -htmldir!$htmldir$ac_delim
  50245. -dvidir!$dvidir$ac_delim
  50246. -pdfdir!$pdfdir$ac_delim
  50247. -psdir!$psdir$ac_delim
  50248. -libdir!$libdir$ac_delim
  50249. -localedir!$localedir$ac_delim
  50250. -mandir!$mandir$ac_delim
  50251. -DEFS!$DEFS$ac_delim
  50252. -ECHO_C!$ECHO_C$ac_delim
  50253. -ECHO_N!$ECHO_N$ac_delim
  50254. -ECHO_T!$ECHO_T$ac_delim
  50255. -LIBS!$LIBS$ac_delim
  50256. -build_alias!$build_alias$ac_delim
  50257. -host_alias!$host_alias$ac_delim
  50258. -target_alias!$target_alias$ac_delim
  50259. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  50260. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  50261. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  50262. -CYGPATH_W!$CYGPATH_W$ac_delim
  50263. -PACKAGE!$PACKAGE$ac_delim
  50264. -VERSION!$VERSION$ac_delim
  50265. -ACLOCAL!$ACLOCAL$ac_delim
  50266. -AUTOCONF!$AUTOCONF$ac_delim
  50267. -AUTOMAKE!$AUTOMAKE$ac_delim
  50268. -AUTOHEADER!$AUTOHEADER$ac_delim
  50269. -MAKEINFO!$MAKEINFO$ac_delim
  50270. -install_sh!$install_sh$ac_delim
  50271. -STRIP!$STRIP$ac_delim
  50272. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  50273. -mkdir_p!$mkdir_p$ac_delim
  50274. -AWK!$AWK$ac_delim
  50275. -SET_MAKE!$SET_MAKE$ac_delim
  50276. -am__leading_dot!$am__leading_dot$ac_delim
  50277. -AMTAR!$AMTAR$ac_delim
  50278. -am__tar!$am__tar$ac_delim
  50279. -am__untar!$am__untar$ac_delim
  50280. -build!$build$ac_delim
  50281. -build_cpu!$build_cpu$ac_delim
  50282. -build_vendor!$build_vendor$ac_delim
  50283. -build_os!$build_os$ac_delim
  50284. -host!$host$ac_delim
  50285. -host_cpu!$host_cpu$ac_delim
  50286. -host_vendor!$host_vendor$ac_delim
  50287. -host_os!$host_os$ac_delim
  50288. -CC!$CC$ac_delim
  50289. -CFLAGS!$CFLAGS$ac_delim
  50290. -LDFLAGS!$LDFLAGS$ac_delim
  50291. -CPPFLAGS!$CPPFLAGS$ac_delim
  50292. -ac_ct_CC!$ac_ct_CC$ac_delim
  50293. -EXEEXT!$EXEEXT$ac_delim
  50294. -OBJEXT!$OBJEXT$ac_delim
  50295. -DEPDIR!$DEPDIR$ac_delim
  50296. -am__include!$am__include$ac_delim
  50297. -am__quote!$am__quote$ac_delim
  50298. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  50299. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  50300. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  50301. -CCDEPMODE!$CCDEPMODE$ac_delim
  50302. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  50303. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  50304. -GREP!$GREP$ac_delim
  50305. -EGREP!$EGREP$ac_delim
  50306. -LN_S!$LN_S$ac_delim
  50307. -ECHO!$ECHO$ac_delim
  50308. -AR!$AR$ac_delim
  50309. -RANLIB!$RANLIB$ac_delim
  50310. -CPP!$CPP$ac_delim
  50311. -CXX!$CXX$ac_delim
  50312. -CXXFLAGS!$CXXFLAGS$ac_delim
  50313. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  50314. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  50315. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  50316. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  50317. -CXXCPP!$CXXCPP$ac_delim
  50318. -F77!$F77$ac_delim
  50319. -_ACEOF
  50320. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  50321. - break
  50322. - elif $ac_last_try; then
  50323. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  50324. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  50325. - { (exit 1); exit 1; }; }
  50326. - else
  50327. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  50328. - fi
  50329. -done
  50330. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  50331. + || (rm -f "$cfgfile"; exit 1)
  50332. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  50333. -if test -n "$ac_eof"; then
  50334. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  50335. - ac_eof=`expr $ac_eof + 1`
  50336. -fi
  50337. + mv -f "$cfgfile" "$ofile" ||
  50338. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  50339. + chmod +x "$ofile"
  50340. -cat >>$CONFIG_STATUS <<_ACEOF
  50341. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  50342. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  50343. -_ACEOF
  50344. -sed '
  50345. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  50346. -s/^/s,@/; s/!/@,|#_!!_#|/
  50347. -:n
  50348. -t n
  50349. -s/'"$ac_delim"'$/,g/; t
  50350. -s/$/\\/; p
  50351. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  50352. -' >>$CONFIG_STATUS <conf$$subs.sed
  50353. -rm -f conf$$subs.sed
  50354. -cat >>$CONFIG_STATUS <<_ACEOF
  50355. -CEOF$ac_eof
  50356. -_ACEOF
  50357. + cat <<_LT_EOF >> "$ofile"
  50358. -ac_delim='%!_!# '
  50359. -for ac_last_try in false false false false false :; do
  50360. - cat >conf$$subs.sed <<_ACEOF
  50361. -FFLAGS!$FFLAGS$ac_delim
  50362. -ac_ct_F77!$ac_ct_F77$ac_delim
  50363. -LIBTOOL!$LIBTOOL$ac_delim
  50364. -LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
  50365. -RPMBUILD!$RPMBUILD$ac_delim
  50366. -MP4FF_LIBS!$MP4FF_LIBS$ac_delim
  50367. -external_mp4v2!$external_mp4v2$ac_delim
  50368. -HAVE_MPEG4IP_PLUG_TRUE!$HAVE_MPEG4IP_PLUG_TRUE$ac_delim
  50369. -HAVE_MPEG4IP_PLUG_FALSE!$HAVE_MPEG4IP_PLUG_FALSE$ac_delim
  50370. -XMMS_CONFIG!$XMMS_CONFIG$ac_delim
  50371. -GTK_CONFIG!$GTK_CONFIG$ac_delim
  50372. -HAVE_XMMS_TRUE!$HAVE_XMMS_TRUE$ac_delim
  50373. -HAVE_XMMS_FALSE!$HAVE_XMMS_FALSE$ac_delim
  50374. -LIBOBJS!$LIBOBJS$ac_delim
  50375. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  50376. -_ACEOF
  50377. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  50378. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
  50379. - break
  50380. - elif $ac_last_try; then
  50381. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  50382. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  50383. - { (exit 1); exit 1; }; }
  50384. - else
  50385. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  50386. - fi
  50387. -done
  50388. +# The linker used to build libraries.
  50389. +LD=$lt_LD_CXX
  50390. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  50391. -if test -n "$ac_eof"; then
  50392. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  50393. - ac_eof=`expr $ac_eof + 1`
  50394. -fi
  50395. -
  50396. -cat >>$CONFIG_STATUS <<_ACEOF
  50397. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  50398. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  50399. -_ACEOF
  50400. -sed '
  50401. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  50402. -s/^/s,@/; s/!/@,|#_!!_#|/
  50403. -:n
  50404. -t n
  50405. -s/'"$ac_delim"'$/,g/; t
  50406. -s/$/\\/; p
  50407. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  50408. -' >>$CONFIG_STATUS <conf$$subs.sed
  50409. -rm -f conf$$subs.sed
  50410. -cat >>$CONFIG_STATUS <<_ACEOF
  50411. -:end
  50412. -s/|#_!!_#|//g
  50413. -CEOF$ac_eof
  50414. -_ACEOF
  50415. +# Commands used to build an old-style archive.
  50416. +old_archive_cmds=$lt_old_archive_cmds_CXX
  50417. +# A language specific compiler.
  50418. +CC=$lt_compiler_CXX
  50419. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  50420. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  50421. -# trailing colons and then remove the whole line if VPATH becomes empty
  50422. -# (actually we leave an empty line to preserve line numbers).
  50423. -if test "x$srcdir" = x.; then
  50424. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  50425. -s/:*\$(srcdir):*/:/
  50426. -s/:*\${srcdir}:*/:/
  50427. -s/:*@srcdir@:*/:/
  50428. -s/^\([^=]*=[ ]*\):*/\1/
  50429. -s/:*$//
  50430. -s/^[^=]*=[ ]*$//
  50431. -}'
  50432. -fi
  50433. +# Is the compiler the GNU compiler?
  50434. +with_gcc=$GCC_CXX
  50435. -cat >>$CONFIG_STATUS <<\_ACEOF
  50436. -fi # test -n "$CONFIG_FILES"
  50437. +# Compiler flag to turn off builtin functions.
  50438. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  50439. +
  50440. +# How to pass a linker flag through the compiler.
  50441. +wl=$lt_lt_prog_compiler_wl_CXX
  50442. +# Additional compiler flags for building library objects.
  50443. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  50444. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  50445. -do
  50446. - case $ac_tag in
  50447. - :[FHLC]) ac_mode=$ac_tag; continue;;
  50448. - esac
  50449. - case $ac_mode$ac_tag in
  50450. - :[FHL]*:*);;
  50451. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  50452. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  50453. - { (exit 1); exit 1; }; };;
  50454. - :[FH]-) ac_tag=-:-;;
  50455. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  50456. - esac
  50457. - ac_save_IFS=$IFS
  50458. - IFS=:
  50459. - set x $ac_tag
  50460. - IFS=$ac_save_IFS
  50461. - shift
  50462. - ac_file=$1
  50463. - shift
  50464. +# Compiler flag to prevent dynamic linking.
  50465. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  50466. - case $ac_mode in
  50467. - :L) ac_source=$1;;
  50468. - :[FH])
  50469. - ac_file_inputs=
  50470. - for ac_f
  50471. - do
  50472. - case $ac_f in
  50473. - -) ac_f="$tmp/stdin";;
  50474. - *) # Look for the file first in the build tree, then in the source tree
  50475. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  50476. - # because $ac_f cannot contain `:'.
  50477. - test -f "$ac_f" ||
  50478. - case $ac_f in
  50479. - [\\/$]*) false;;
  50480. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  50481. - esac ||
  50482. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  50483. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  50484. - { (exit 1); exit 1; }; };;
  50485. - esac
  50486. - ac_file_inputs="$ac_file_inputs $ac_f"
  50487. - done
  50488. +# Does compiler simultaneously support -c and -o options?
  50489. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  50490. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  50491. - # use $as_me), people would be surprised to read:
  50492. - # /* config.h. Generated by config.status. */
  50493. - configure_input="Generated from "`IFS=:
  50494. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  50495. - if test x"$ac_file" != x-; then
  50496. - configure_input="$ac_file. $configure_input"
  50497. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  50498. -echo "$as_me: creating $ac_file" >&6;}
  50499. - fi
  50500. +# Whether or not to add -lc for building shared libraries.
  50501. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  50502. - case $ac_tag in
  50503. - *:-:* | *:-) cat >"$tmp/stdin";;
  50504. - esac
  50505. - ;;
  50506. - esac
  50507. +# Whether or not to disallow shared libs when runtime libs are static.
  50508. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  50509. - ac_dir=`$as_dirname -- "$ac_file" ||
  50510. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50511. - X"$ac_file" : 'X\(//\)[^/]' \| \
  50512. - X"$ac_file" : 'X\(//\)$' \| \
  50513. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  50514. -echo X"$ac_file" |
  50515. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50516. - s//\1/
  50517. - q
  50518. - }
  50519. - /^X\(\/\/\)[^/].*/{
  50520. - s//\1/
  50521. - q
  50522. - }
  50523. - /^X\(\/\/\)$/{
  50524. - s//\1/
  50525. - q
  50526. - }
  50527. - /^X\(\/\).*/{
  50528. - s//\1/
  50529. - q
  50530. - }
  50531. - s/.*/./; q'`
  50532. - { as_dir="$ac_dir"
  50533. - case $as_dir in #(
  50534. - -*) as_dir=./$as_dir;;
  50535. - esac
  50536. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  50537. - as_dirs=
  50538. - while :; do
  50539. - case $as_dir in #(
  50540. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  50541. - *) as_qdir=$as_dir;;
  50542. - esac
  50543. - as_dirs="'$as_qdir' $as_dirs"
  50544. - as_dir=`$as_dirname -- "$as_dir" ||
  50545. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50546. - X"$as_dir" : 'X\(//\)[^/]' \| \
  50547. - X"$as_dir" : 'X\(//\)$' \| \
  50548. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  50549. -echo X"$as_dir" |
  50550. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50551. - s//\1/
  50552. - q
  50553. - }
  50554. - /^X\(\/\/\)[^/].*/{
  50555. - s//\1/
  50556. - q
  50557. - }
  50558. - /^X\(\/\/\)$/{
  50559. - s//\1/
  50560. - q
  50561. - }
  50562. - /^X\(\/\).*/{
  50563. - s//\1/
  50564. - q
  50565. - }
  50566. - s/.*/./; q'`
  50567. - test -d "$as_dir" && break
  50568. - done
  50569. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  50570. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  50571. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  50572. - { (exit 1); exit 1; }; }; }
  50573. - ac_builddir=.
  50574. +# Compiler flag to allow reflexive dlopens.
  50575. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  50576. +
  50577. +# Compiler flag to generate shared objects directly from archives.
  50578. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  50579. +
  50580. +# Whether the compiler copes with passing no objects directly.
  50581. +compiler_needs_object=$lt_compiler_needs_object_CXX
  50582. +
  50583. +# Create an old-style archive from a shared archive.
  50584. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  50585. +
  50586. +# Create a temporary old-style archive to link instead of a shared archive.
  50587. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  50588. +
  50589. +# Commands used to build a shared archive.
  50590. +archive_cmds=$lt_archive_cmds_CXX
  50591. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  50592. +
  50593. +# Commands used to build a loadable module if different from building
  50594. +# a shared archive.
  50595. +module_cmds=$lt_module_cmds_CXX
  50596. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  50597. -case "$ac_dir" in
  50598. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  50599. -*)
  50600. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  50601. - # A ".." for each directory in $ac_dir_suffix.
  50602. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  50603. - case $ac_top_builddir_sub in
  50604. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  50605. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  50606. - esac ;;
  50607. -esac
  50608. -ac_abs_top_builddir=$ac_pwd
  50609. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  50610. -# for backward compatibility:
  50611. -ac_top_builddir=$ac_top_build_prefix
  50612. +# Whether we are building with GNU ld or not.
  50613. +with_gnu_ld=$lt_with_gnu_ld_CXX
  50614. -case $srcdir in
  50615. - .) # We are building in place.
  50616. - ac_srcdir=.
  50617. - ac_top_srcdir=$ac_top_builddir_sub
  50618. - ac_abs_top_srcdir=$ac_pwd ;;
  50619. - [\\/]* | ?:[\\/]* ) # Absolute name.
  50620. - ac_srcdir=$srcdir$ac_dir_suffix;
  50621. - ac_top_srcdir=$srcdir
  50622. - ac_abs_top_srcdir=$srcdir ;;
  50623. - *) # Relative name.
  50624. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  50625. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  50626. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  50627. -esac
  50628. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  50629. +# Flag that allows shared libraries with undefined symbols to be built.
  50630. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  50631. +# Flag that enforces no undefined symbols.
  50632. +no_undefined_flag=$lt_no_undefined_flag_CXX
  50633. - case $ac_mode in
  50634. - :F)
  50635. - #
  50636. - # CONFIG_FILE
  50637. - #
  50638. +# Flag to hardcode \$libdir into a binary during linking.
  50639. +# This must work even if \$libdir does not exist
  50640. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  50641. - case $INSTALL in
  50642. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  50643. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  50644. - esac
  50645. -_ACEOF
  50646. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  50647. +# during linking. This must work even if \$libdir does not exist.
  50648. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  50649. -cat >>$CONFIG_STATUS <<\_ACEOF
  50650. -# If the template does not know about datarootdir, expand it.
  50651. -# FIXME: This hack should be removed a few years after 2.60.
  50652. -ac_datarootdir_hack=; ac_datarootdir_seen=
  50653. +# Whether we need a single "-rpath" flag with a separated argument.
  50654. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  50655. -case `sed -n '/datarootdir/ {
  50656. - p
  50657. - q
  50658. -}
  50659. -/@datadir@/p
  50660. -/@docdir@/p
  50661. -/@infodir@/p
  50662. -/@localedir@/p
  50663. -/@mandir@/p
  50664. -' $ac_file_inputs` in
  50665. -*datarootdir*) ac_datarootdir_seen=yes;;
  50666. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  50667. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  50668. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  50669. -_ACEOF
  50670. -cat >>$CONFIG_STATUS <<_ACEOF
  50671. - ac_datarootdir_hack='
  50672. - s&@datadir@&$datadir&g
  50673. - s&@docdir@&$docdir&g
  50674. - s&@infodir@&$infodir&g
  50675. - s&@localedir@&$localedir&g
  50676. - s&@mandir@&$mandir&g
  50677. - s&\\\${datarootdir}&$datarootdir&g' ;;
  50678. -esac
  50679. -_ACEOF
  50680. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  50681. +# DIR into the resulting binary.
  50682. +hardcode_direct=$hardcode_direct_CXX
  50683. -# Neutralize VPATH when `$srcdir' = `.'.
  50684. -# Shell code in configure.ac might set extrasub.
  50685. -# FIXME: do we really want to maintain this feature?
  50686. -cat >>$CONFIG_STATUS <<_ACEOF
  50687. - sed "$ac_vpsub
  50688. -$extrasub
  50689. -_ACEOF
  50690. -cat >>$CONFIG_STATUS <<\_ACEOF
  50691. -:t
  50692. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  50693. -s&@configure_input@&$configure_input&;t t
  50694. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  50695. -s&@srcdir@&$ac_srcdir&;t t
  50696. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  50697. -s&@top_srcdir@&$ac_top_srcdir&;t t
  50698. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  50699. -s&@builddir@&$ac_builddir&;t t
  50700. -s&@abs_builddir@&$ac_abs_builddir&;t t
  50701. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  50702. -s&@INSTALL@&$ac_INSTALL&;t t
  50703. -$ac_datarootdir_hack
  50704. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  50705. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  50706. +# DIR into the resulting binary and the resulting library dependency is
  50707. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  50708. +# library is relocated.
  50709. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  50710. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  50711. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  50712. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  50713. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  50714. -which seems to be undefined. Please make sure it is defined." >&5
  50715. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  50716. -which seems to be undefined. Please make sure it is defined." >&2;}
  50717. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  50718. +# into the resulting binary.
  50719. +hardcode_minus_L=$hardcode_minus_L_CXX
  50720. - rm -f "$tmp/stdin"
  50721. - case $ac_file in
  50722. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  50723. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  50724. - esac
  50725. - ;;
  50726. - :H)
  50727. - #
  50728. - # CONFIG_HEADER
  50729. - #
  50730. -_ACEOF
  50731. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  50732. +# into the resulting binary.
  50733. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  50734. -# Transform confdefs.h into a sed script `conftest.defines', that
  50735. -# substitutes the proper values into config.h.in to produce config.h.
  50736. -rm -f conftest.defines conftest.tail
  50737. -# First, append a space to every undef/define line, to ease matching.
  50738. -echo 's/$/ /' >conftest.defines
  50739. -# Then, protect against being on the right side of a sed subst, or in
  50740. -# an unquoted here document, in config.status. If some macros were
  50741. -# called several times there might be several #defines for the same
  50742. -# symbol, which is useless. But do not sort them, since the last
  50743. -# AC_DEFINE must be honored.
  50744. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  50745. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  50746. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  50747. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  50748. -# just an empty string.
  50749. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  50750. -ac_dB='\\)[ (].*,\\1define\\2'
  50751. -ac_dC=' '
  50752. -ac_dD=' ,'
  50753. +# Set to "yes" if building a shared library automatically hardcodes DIR
  50754. +# into the library and all subsequent libraries and executables linked
  50755. +# against it.
  50756. +hardcode_automatic=$hardcode_automatic_CXX
  50757. -uniq confdefs.h |
  50758. - sed -n '
  50759. - t rset
  50760. - :rset
  50761. - s/^[ ]*#[ ]*define[ ][ ]*//
  50762. - t ok
  50763. - d
  50764. - :ok
  50765. - s/[\\&,]/\\&/g
  50766. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  50767. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  50768. - ' >>conftest.defines
  50769. -
  50770. -# Remove the space that was appended to ease matching.
  50771. -# Then replace #undef with comments. This is necessary, for
  50772. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  50773. -# on some systems where configure will not decide to define it.
  50774. -# (The regexp can be short, since the line contains either #define or #undef.)
  50775. -echo 's/ $//
  50776. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  50777. -
  50778. -# Break up conftest.defines:
  50779. -ac_max_sed_lines=50
  50780. -
  50781. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  50782. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  50783. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  50784. -# et cetera.
  50785. -ac_in='$ac_file_inputs'
  50786. -ac_out='"$tmp/out1"'
  50787. -ac_nxt='"$tmp/out2"'
  50788. +# Set to yes if linker adds runtime paths of dependent libraries
  50789. +# to runtime path list.
  50790. +inherit_rpath=$inherit_rpath_CXX
  50791. -while :
  50792. -do
  50793. - # Write a here document:
  50794. - cat >>$CONFIG_STATUS <<_ACEOF
  50795. - # First, check the format of the line:
  50796. - cat >"\$tmp/defines.sed" <<\\CEOF
  50797. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  50798. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  50799. -b
  50800. -:def
  50801. -_ACEOF
  50802. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  50803. - echo 'CEOF
  50804. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  50805. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  50806. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  50807. - grep . conftest.tail >/dev/null || break
  50808. - rm -f conftest.defines
  50809. - mv conftest.tail conftest.defines
  50810. -done
  50811. -rm -f conftest.defines conftest.tail
  50812. +# Whether libtool must link a program against all its dependency libraries.
  50813. +link_all_deplibs=$link_all_deplibs_CXX
  50814. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  50815. -cat >>$CONFIG_STATUS <<\_ACEOF
  50816. - if test x"$ac_file" != x-; then
  50817. - echo "/* $configure_input */" >"$tmp/config.h"
  50818. - cat "$ac_result" >>"$tmp/config.h"
  50819. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  50820. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  50821. -echo "$as_me: $ac_file is unchanged" >&6;}
  50822. - else
  50823. - rm -f $ac_file
  50824. - mv "$tmp/config.h" $ac_file
  50825. - fi
  50826. - else
  50827. - echo "/* $configure_input */"
  50828. - cat "$ac_result"
  50829. - fi
  50830. - rm -f "$tmp/out12"
  50831. -# Compute $ac_file's index in $config_headers.
  50832. -_am_stamp_count=1
  50833. -for _am_header in $config_headers :; do
  50834. - case $_am_header in
  50835. - $ac_file | $ac_file:* )
  50836. - break ;;
  50837. - * )
  50838. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  50839. - esac
  50840. -done
  50841. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  50842. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50843. - X$ac_file : 'X\(//\)[^/]' \| \
  50844. - X$ac_file : 'X\(//\)$' \| \
  50845. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  50846. -echo X$ac_file |
  50847. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50848. - s//\1/
  50849. - q
  50850. - }
  50851. - /^X\(\/\/\)[^/].*/{
  50852. - s//\1/
  50853. - q
  50854. - }
  50855. - /^X\(\/\/\)$/{
  50856. - s//\1/
  50857. - q
  50858. - }
  50859. - /^X\(\/\).*/{
  50860. - s//\1/
  50861. - q
  50862. - }
  50863. - s/.*/./; q'`/stamp-h$_am_stamp_count
  50864. - ;;
  50865. +# Fix the shell variable \$srcfile for the compiler.
  50866. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  50867. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  50868. -echo "$as_me: executing $ac_file commands" >&6;}
  50869. - ;;
  50870. - esac
  50871. +# Set to "yes" if exported symbols are required.
  50872. +always_export_symbols=$always_export_symbols_CXX
  50873. +# The commands to list exported symbols.
  50874. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  50875. +
  50876. +# Symbols that should not be listed in the preloaded symbols.
  50877. +exclude_expsyms=$lt_exclude_expsyms_CXX
  50878. +
  50879. +# Symbols that must always be exported.
  50880. +include_expsyms=$lt_include_expsyms_CXX
  50881. +
  50882. +# Commands necessary for linking programs (against libraries) with templates.
  50883. +prelink_cmds=$lt_prelink_cmds_CXX
  50884. +
  50885. +# Specify filename containing input files.
  50886. +file_list_spec=$lt_file_list_spec_CXX
  50887. +
  50888. +# How to hardcode a shared library path into an executable.
  50889. +hardcode_action=$hardcode_action_CXX
  50890. +
  50891. +# The directories searched by this compiler when creating a shared library.
  50892. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  50893. +
  50894. +# Dependencies to place before and after the objects being linked to
  50895. +# create a shared library.
  50896. +predep_objects=$lt_predep_objects_CXX
  50897. +postdep_objects=$lt_postdep_objects_CXX
  50898. +predeps=$lt_predeps_CXX
  50899. +postdeps=$lt_postdeps_CXX
  50900. +
  50901. +# The library search path used internally by the compiler when linking
  50902. +# a shared library.
  50903. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  50904. +
  50905. +# ### END LIBTOOL TAG CONFIG: CXX
  50906. +_LT_EOF
  50907. - case $ac_file$ac_mode in
  50908. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  50909. - # Strip MF so we end up with the name of the file.
  50910. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  50911. - # Check whether this is an Automake generated Makefile or not.
  50912. - # We used to match only the files named `Makefile.in', but
  50913. - # some people rename them; so instead we look at the file content.
  50914. - # Grep'ing the first line is not enough: some people post-process
  50915. - # each Makefile.in and add a new line on top of each file to say so.
  50916. - # So let's grep whole file.
  50917. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  50918. - dirpart=`$as_dirname -- "$mf" ||
  50919. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50920. - X"$mf" : 'X\(//\)[^/]' \| \
  50921. - X"$mf" : 'X\(//\)$' \| \
  50922. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  50923. -echo X"$mf" |
  50924. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50925. - s//\1/
  50926. - q
  50927. - }
  50928. - /^X\(\/\/\)[^/].*/{
  50929. - s//\1/
  50930. - q
  50931. - }
  50932. - /^X\(\/\/\)$/{
  50933. - s//\1/
  50934. - q
  50935. - }
  50936. - /^X\(\/\).*/{
  50937. - s//\1/
  50938. - q
  50939. - }
  50940. - s/.*/./; q'`
  50941. - else
  50942. - continue
  50943. - fi
  50944. - # Extract the definition of DEPDIR, am__include, and am__quote
  50945. - # from the Makefile without running `make'.
  50946. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  50947. - test -z "$DEPDIR" && continue
  50948. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  50949. - test -z "am__include" && continue
  50950. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  50951. - # When using ansi2knr, U may be empty or an underscore; expand it
  50952. - U=`sed -n 's/^U = //p' < "$mf"`
  50953. - # Find all dependency output files, they are included files with
  50954. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  50955. - # simplest approach to changing $(DEPDIR) to its actual value in the
  50956. - # expansion.
  50957. - for file in `sed -n "
  50958. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  50959. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  50960. - # Make sure the directory exists.
  50961. - test -f "$dirpart/$file" && continue
  50962. - fdir=`$as_dirname -- "$file" ||
  50963. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50964. - X"$file" : 'X\(//\)[^/]' \| \
  50965. - X"$file" : 'X\(//\)$' \| \
  50966. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  50967. -echo X"$file" |
  50968. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50969. - s//\1/
  50970. - q
  50971. - }
  50972. - /^X\(\/\/\)[^/].*/{
  50973. - s//\1/
  50974. - q
  50975. - }
  50976. - /^X\(\/\/\)$/{
  50977. - s//\1/
  50978. - q
  50979. - }
  50980. - /^X\(\/\).*/{
  50981. - s//\1/
  50982. - q
  50983. - }
  50984. - s/.*/./; q'`
  50985. - { as_dir=$dirpart/$fdir
  50986. - case $as_dir in #(
  50987. - -*) as_dir=./$as_dir;;
  50988. - esac
  50989. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  50990. - as_dirs=
  50991. - while :; do
  50992. - case $as_dir in #(
  50993. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  50994. - *) as_qdir=$as_dir;;
  50995. - esac
  50996. - as_dirs="'$as_qdir' $as_dirs"
  50997. - as_dir=`$as_dirname -- "$as_dir" ||
  50998. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50999. - X"$as_dir" : 'X\(//\)[^/]' \| \
  51000. - X"$as_dir" : 'X\(//\)$' \| \
  51001. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  51002. -echo X"$as_dir" |
  51003. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51004. - s//\1/
  51005. - q
  51006. - }
  51007. - /^X\(\/\/\)[^/].*/{
  51008. - s//\1/
  51009. - q
  51010. - }
  51011. - /^X\(\/\/\)$/{
  51012. - s//\1/
  51013. - q
  51014. - }
  51015. - /^X\(\/\).*/{
  51016. - s//\1/
  51017. - q
  51018. - }
  51019. - s/.*/./; q'`
  51020. - test -d "$as_dir" && break
  51021. - done
  51022. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  51023. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  51024. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  51025. - { (exit 1); exit 1; }; }; }
  51026. - # echo "creating $dirpart/$file"
  51027. - echo '# dummy' > "$dirpart/$file"
  51028. - done
  51029. -done
  51030. ;;
  51031. esac
  51032. done # for ac_tag
  51033. -{ (exit 0); exit 0; }
  51034. +as_fn_exit 0
  51035. _ACEOF
  51036. -chmod +x $CONFIG_STATUS
  51037. ac_clean_files=$ac_clean_files_save
  51038. +test $ac_write_fail = 0 ||
  51039. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  51040. +
  51041. # configure is writing to config.log, and then calls config.status.
  51042. # config.status does its own redirection, appending to config.log.
  51043. @@ -24912,6 +18919,10 @@
  51044. exec 5>>config.log
  51045. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  51046. # would make configure fail if this is the last instruction.
  51047. - $ac_cs_success || { (exit 1); exit 1; }
  51048. + $ac_cs_success || as_fn_exit $?
  51049. +fi
  51050. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  51051. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  51052. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  51053. fi
  51054. diff -Nur faad2-2.7.orig/depcomp faad2-2.7/depcomp
  51055. --- faad2-2.7.orig/depcomp 2009-02-10 09:36:11.000000000 +0100
  51056. +++ faad2-2.7/depcomp 2011-02-16 17:55:08.064807391 +0100
  51057. @@ -1,9 +1,10 @@
  51058. #! /bin/sh
  51059. # depcomp - compile a program generating dependencies as side-effects
  51060. -scriptversion=2005-07-09.11
  51061. +scriptversion=2009-04-28.21; # UTC
  51062. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  51063. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  51064. +# Software Foundation, Inc.
  51065. # This program is free software; you can redistribute it and/or modify
  51066. # it under the terms of the GNU General Public License as published by
  51067. @@ -16,9 +17,7 @@
  51068. # GNU General Public License for more details.
  51069. # You should have received a copy of the GNU General Public License
  51070. -# along with this program; if not, write to the Free Software
  51071. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  51072. -# 02110-1301, USA.
  51073. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  51074. # As a special exception to the GNU General Public License, if you
  51075. # distribute this file as part of a program that contains a
  51076. @@ -86,12 +85,34 @@
  51077. depmode=dashmstdout
  51078. fi
  51079. +cygpath_u="cygpath -u -f -"
  51080. +if test "$depmode" = msvcmsys; then
  51081. + # This is just like msvisualcpp but w/o cygpath translation.
  51082. + # Just convert the backslash-escaped backslashes to single forward
  51083. + # slashes to satisfy depend.m4
  51084. + cygpath_u="sed s,\\\\\\\\,/,g"
  51085. + depmode=msvisualcpp
  51086. +fi
  51087. +
  51088. case "$depmode" in
  51089. gcc3)
  51090. ## gcc 3 implements dependency tracking that does exactly what
  51091. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  51092. ## it if -MD -MP comes after the -MF stuff. Hmm.
  51093. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  51094. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  51095. +## the command line argument order; so add the flags where they
  51096. +## appear in depend2.am. Note that the slowdown incurred here
  51097. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  51098. + for arg
  51099. + do
  51100. + case $arg in
  51101. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  51102. + *) set fnord "$@" "$arg" ;;
  51103. + esac
  51104. + shift # fnord
  51105. + shift # $arg
  51106. + done
  51107. + "$@"
  51108. stat=$?
  51109. if test $stat -eq 0; then :
  51110. else
  51111. @@ -178,14 +199,14 @@
  51112. ' < "$tmpdepfile" \
  51113. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  51114. tr '
  51115. -' ' ' >> $depfile
  51116. - echo >> $depfile
  51117. +' ' ' >> "$depfile"
  51118. + echo >> "$depfile"
  51119. # The second pass generates a dummy entry for each header file.
  51120. tr ' ' '
  51121. ' < "$tmpdepfile" \
  51122. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  51123. - >> $depfile
  51124. + >> "$depfile"
  51125. else
  51126. # The sourcefile does not contain any dependencies, so just
  51127. # store a dummy comment line, to avoid errors with the Makefile
  51128. @@ -201,34 +222,39 @@
  51129. # current directory. Also, the AIX compiler puts `$object:' at the
  51130. # start of each line; $object doesn't have directory information.
  51131. # Version 6 uses the directory in both cases.
  51132. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  51133. - tmpdepfile="$stripped.u"
  51134. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  51135. + test "x$dir" = "x$object" && dir=
  51136. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  51137. if test "$libtool" = yes; then
  51138. + tmpdepfile1=$dir$base.u
  51139. + tmpdepfile2=$base.u
  51140. + tmpdepfile3=$dir.libs/$base.u
  51141. "$@" -Wc,-M
  51142. else
  51143. + tmpdepfile1=$dir$base.u
  51144. + tmpdepfile2=$dir$base.u
  51145. + tmpdepfile3=$dir$base.u
  51146. "$@" -M
  51147. fi
  51148. stat=$?
  51149. - if test -f "$tmpdepfile"; then :
  51150. - else
  51151. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  51152. - tmpdepfile="$stripped.u"
  51153. - fi
  51154. -
  51155. if test $stat -eq 0; then :
  51156. else
  51157. - rm -f "$tmpdepfile"
  51158. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  51159. exit $stat
  51160. fi
  51161. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  51162. + do
  51163. + test -f "$tmpdepfile" && break
  51164. + done
  51165. if test -f "$tmpdepfile"; then
  51166. - outname="$stripped.o"
  51167. # Each line is of the form `foo.o: dependent.h'.
  51168. # Do two passes, one to just change these to
  51169. # `$object: dependent.h' and one to simply `dependent.h:'.
  51170. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  51171. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  51172. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  51173. + # That's a tab and a space in the [].
  51174. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  51175. else
  51176. # The sourcefile does not contain any dependencies, so just
  51177. # store a dummy comment line, to avoid errors with the Makefile
  51178. @@ -276,6 +302,51 @@
  51179. rm -f "$tmpdepfile"
  51180. ;;
  51181. +hp2)
  51182. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  51183. + # compilers, which have integrated preprocessors. The correct option
  51184. + # to use with these is +Maked; it writes dependencies to a file named
  51185. + # 'foo.d', which lands next to the object file, wherever that
  51186. + # happens to be.
  51187. + # Much of this is similar to the tru64 case; see comments there.
  51188. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  51189. + test "x$dir" = "x$object" && dir=
  51190. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  51191. + if test "$libtool" = yes; then
  51192. + tmpdepfile1=$dir$base.d
  51193. + tmpdepfile2=$dir.libs/$base.d
  51194. + "$@" -Wc,+Maked
  51195. + else
  51196. + tmpdepfile1=$dir$base.d
  51197. + tmpdepfile2=$dir$base.d
  51198. + "$@" +Maked
  51199. + fi
  51200. + stat=$?
  51201. + if test $stat -eq 0; then :
  51202. + else
  51203. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  51204. + exit $stat
  51205. + fi
  51206. +
  51207. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  51208. + do
  51209. + test -f "$tmpdepfile" && break
  51210. + done
  51211. + if test -f "$tmpdepfile"; then
  51212. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  51213. + # Add `dependent.h:' lines.
  51214. + sed -ne '2,${
  51215. + s/^ *//
  51216. + s/ \\*$//
  51217. + s/$/:/
  51218. + p
  51219. + }' "$tmpdepfile" >> "$depfile"
  51220. + else
  51221. + echo "#dummy" > "$depfile"
  51222. + fi
  51223. + rm -f "$tmpdepfile" "$tmpdepfile2"
  51224. + ;;
  51225. +
  51226. tru64)
  51227. # The Tru64 compiler uses -MD to generate dependencies as a side
  51228. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  51229. @@ -288,13 +359,13 @@
  51230. if test "$libtool" = yes; then
  51231. # With Tru64 cc, shared objects can also be used to make a
  51232. - # static library. This mecanism is used in libtool 1.4 series to
  51233. + # static library. This mechanism is used in libtool 1.4 series to
  51234. # handle both shared and static libraries in a single compilation.
  51235. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  51236. #
  51237. # With libtool 1.5 this exception was removed, and libtool now
  51238. # generates 2 separate objects for the 2 libraries. These two
  51239. - # compilations output dependencies in in $dir.libs/$base.o.d and
  51240. + # compilations output dependencies in $dir.libs/$base.o.d and
  51241. # in $dir$base.o.d. We have to check for both files, because
  51242. # one of the two compilations can be disabled. We should prefer
  51243. # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  51244. @@ -345,7 +416,7 @@
  51245. # Remove the call to Libtool.
  51246. if test "$libtool" = yes; then
  51247. - while test $1 != '--mode=compile'; do
  51248. + while test "X$1" != 'X--mode=compile'; do
  51249. shift
  51250. done
  51251. shift
  51252. @@ -396,32 +467,39 @@
  51253. "$@" || exit $?
  51254. # Remove any Libtool call
  51255. if test "$libtool" = yes; then
  51256. - while test $1 != '--mode=compile'; do
  51257. + while test "X$1" != 'X--mode=compile'; do
  51258. shift
  51259. done
  51260. shift
  51261. fi
  51262. # X makedepend
  51263. shift
  51264. - cleared=no
  51265. - for arg in "$@"; do
  51266. + cleared=no eat=no
  51267. + for arg
  51268. + do
  51269. case $cleared in
  51270. no)
  51271. set ""; shift
  51272. cleared=yes ;;
  51273. esac
  51274. + if test $eat = yes; then
  51275. + eat=no
  51276. + continue
  51277. + fi
  51278. case "$arg" in
  51279. -D*|-I*)
  51280. set fnord "$@" "$arg"; shift ;;
  51281. # Strip any option that makedepend may not understand. Remove
  51282. # the object too, otherwise makedepend will parse it as a source file.
  51283. + -arch)
  51284. + eat=yes ;;
  51285. -*|$object)
  51286. ;;
  51287. *)
  51288. set fnord "$@" "$arg"; shift ;;
  51289. esac
  51290. done
  51291. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  51292. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  51293. touch "$tmpdepfile"
  51294. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  51295. rm -f "$depfile"
  51296. @@ -441,7 +519,7 @@
  51297. # Remove the call to Libtool.
  51298. if test "$libtool" = yes; then
  51299. - while test $1 != '--mode=compile'; do
  51300. + while test "X$1" != 'X--mode=compile'; do
  51301. shift
  51302. done
  51303. shift
  51304. @@ -479,13 +557,27 @@
  51305. msvisualcpp)
  51306. # Important note: in order to support this mode, a compiler *must*
  51307. - # always write the preprocessed file to stdout, regardless of -o,
  51308. - # because we must use -o when running libtool.
  51309. + # always write the preprocessed file to stdout.
  51310. "$@" || exit $?
  51311. +
  51312. + # Remove the call to Libtool.
  51313. + if test "$libtool" = yes; then
  51314. + while test "X$1" != 'X--mode=compile'; do
  51315. + shift
  51316. + done
  51317. + shift
  51318. + fi
  51319. +
  51320. IFS=" "
  51321. for arg
  51322. do
  51323. case "$arg" in
  51324. + -o)
  51325. + shift
  51326. + ;;
  51327. + $object)
  51328. + shift
  51329. + ;;
  51330. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  51331. set fnord "$@"
  51332. shift
  51333. @@ -498,16 +590,23 @@
  51334. ;;
  51335. esac
  51336. done
  51337. - "$@" -E |
  51338. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  51339. + "$@" -E 2>/dev/null |
  51340. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  51341. rm -f "$depfile"
  51342. echo "$object : \\" > "$depfile"
  51343. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  51344. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  51345. echo " " >> "$depfile"
  51346. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  51347. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  51348. rm -f "$tmpdepfile"
  51349. ;;
  51350. +msvcmsys)
  51351. + # This case exists only to let depend.m4 do its work. It works by
  51352. + # looking at the text of this script. This case will never be run,
  51353. + # since it is checked for above.
  51354. + exit 1
  51355. + ;;
  51356. +
  51357. none)
  51358. exec "$@"
  51359. ;;
  51360. @@ -526,5 +625,6 @@
  51361. # eval: (add-hook 'write-file-hooks 'time-stamp)
  51362. # time-stamp-start: "scriptversion="
  51363. # time-stamp-format: "%:y-%02m-%02d.%02H"
  51364. -# time-stamp-end: "$"
  51365. +# time-stamp-time-zone: "UTC"
  51366. +# time-stamp-end: "; # UTC"
  51367. # End:
  51368. diff -Nur faad2-2.7.orig/frontend/Makefile.in faad2-2.7/frontend/Makefile.in
  51369. --- faad2-2.7.orig/frontend/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  51370. +++ faad2-2.7/frontend/Makefile.in 2011-02-16 17:55:07.876052260 +0100
  51371. @@ -1,8 +1,9 @@
  51372. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  51373. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  51374. # @configure_input@
  51375. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  51376. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  51377. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  51378. +# Inc.
  51379. # This Makefile.in is free software; the Free Software Foundation
  51380. # gives unlimited permission to copy and/or distribute it,
  51381. # with or without modifications, as long as this notice is preserved.
  51382. @@ -14,15 +15,12 @@
  51383. @SET_MAKE@
  51384. -srcdir = @srcdir@
  51385. -top_srcdir = @top_srcdir@
  51386. VPATH = @srcdir@
  51387. pkgdatadir = $(datadir)/@PACKAGE@
  51388. -pkglibdir = $(libdir)/@PACKAGE@
  51389. pkgincludedir = $(includedir)/@PACKAGE@
  51390. -top_builddir = ..
  51391. +pkglibdir = $(libdir)/@PACKAGE@
  51392. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  51393. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  51394. -INSTALL = @INSTALL@
  51395. install_sh_DATA = $(install_sh) -c -m 644
  51396. install_sh_PROGRAM = $(install_sh) -c
  51397. install_sh_SCRIPT = $(install_sh) -c
  51398. @@ -46,26 +44,49 @@
  51399. mkinstalldirs = $(install_sh) -d
  51400. CONFIG_HEADER = $(top_builddir)/config.h
  51401. CONFIG_CLEAN_FILES =
  51402. +CONFIG_CLEAN_VPATH_FILES =
  51403. am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(manmdir)"
  51404. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  51405. PROGRAMS = $(bin_PROGRAMS)
  51406. am_faad_OBJECTS = main.$(OBJEXT) audio.$(OBJEXT) getopt.$(OBJEXT)
  51407. faad_OBJECTS = $(am_faad_OBJECTS)
  51408. faad_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la \
  51409. $(top_builddir)/common/mp4ff/libmp4ff.a
  51410. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  51411. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  51412. depcomp = $(SHELL) $(top_srcdir)/depcomp
  51413. am__depfiles_maybe = depfiles
  51414. +am__mv = mv -f
  51415. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  51416. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  51417. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  51418. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  51419. - $(AM_CFLAGS) $(CFLAGS)
  51420. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  51421. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  51422. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  51423. CCLD = $(CC)
  51424. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  51425. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  51426. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  51427. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  51428. + $(LDFLAGS) -o $@
  51429. SOURCES = $(faad_SOURCES)
  51430. DIST_SOURCES = $(faad_SOURCES)
  51431. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  51432. +am__vpath_adj = case $$p in \
  51433. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  51434. + *) f=$$p;; \
  51435. + esac;
  51436. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  51437. +am__install_max = 40
  51438. +am__nobase_strip_setup = \
  51439. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  51440. +am__nobase_strip = \
  51441. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  51442. +am__nobase_list = $(am__nobase_strip_setup); \
  51443. + for p in $$list; do echo "$$p $$p"; done | \
  51444. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  51445. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  51446. + if (++n[$$2] == $(am__install_max)) \
  51447. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  51448. + END { for (dir in files) print dir, files[dir] }'
  51449. +am__base_list = \
  51450. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  51451. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  51452. manmdir = $(mandir)/manm
  51453. NROFF = nroff
  51454. MANS = $(man_MANS)
  51455. @@ -73,8 +94,6 @@
  51456. CTAGS = ctags
  51457. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  51458. ACLOCAL = @ACLOCAL@
  51459. -AMDEP_FALSE = @AMDEP_FALSE@
  51460. -AMDEP_TRUE = @AMDEP_TRUE@
  51461. AMTAR = @AMTAR@
  51462. AR = @AR@
  51463. AUTOCONF = @AUTOCONF@
  51464. @@ -93,55 +112,62 @@
  51465. CYGPATH_W = @CYGPATH_W@
  51466. DEFS = @DEFS@
  51467. DEPDIR = @DEPDIR@
  51468. -ECHO = @ECHO@
  51469. +DSYMUTIL = @DSYMUTIL@
  51470. +DUMPBIN = @DUMPBIN@
  51471. ECHO_C = @ECHO_C@
  51472. ECHO_N = @ECHO_N@
  51473. ECHO_T = @ECHO_T@
  51474. EGREP = @EGREP@
  51475. EXEEXT = @EXEEXT@
  51476. -F77 = @F77@
  51477. -FFLAGS = @FFLAGS@
  51478. +FGREP = @FGREP@
  51479. GREP = @GREP@
  51480. GTK_CONFIG = @GTK_CONFIG@
  51481. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  51482. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  51483. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  51484. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  51485. +INSTALL = @INSTALL@
  51486. INSTALL_DATA = @INSTALL_DATA@
  51487. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  51488. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  51489. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  51490. +LD = @LD@
  51491. LDFLAGS = @LDFLAGS@
  51492. LIBOBJS = @LIBOBJS@
  51493. LIBS = @LIBS@
  51494. LIBTOOL = @LIBTOOL@
  51495. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  51496. +LIPO = @LIPO@
  51497. LN_S = @LN_S@
  51498. LTLIBOBJS = @LTLIBOBJS@
  51499. MAKEINFO = @MAKEINFO@
  51500. +MKDIR_P = @MKDIR_P@
  51501. MP4FF_LIBS = @MP4FF_LIBS@
  51502. +NM = @NM@
  51503. +NMEDIT = @NMEDIT@
  51504. +OBJDUMP = @OBJDUMP@
  51505. OBJEXT = @OBJEXT@
  51506. +OTOOL = @OTOOL@
  51507. +OTOOL64 = @OTOOL64@
  51508. PACKAGE = @PACKAGE@
  51509. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  51510. PACKAGE_NAME = @PACKAGE_NAME@
  51511. PACKAGE_STRING = @PACKAGE_STRING@
  51512. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  51513. +PACKAGE_URL = @PACKAGE_URL@
  51514. PACKAGE_VERSION = @PACKAGE_VERSION@
  51515. PATH_SEPARATOR = @PATH_SEPARATOR@
  51516. RANLIB = @RANLIB@
  51517. RPMBUILD = @RPMBUILD@
  51518. +SED = @SED@
  51519. SET_MAKE = @SET_MAKE@
  51520. SHELL = @SHELL@
  51521. STRIP = @STRIP@
  51522. VERSION = @VERSION@
  51523. XMMS_CONFIG = @XMMS_CONFIG@
  51524. +abs_builddir = @abs_builddir@
  51525. +abs_srcdir = @abs_srcdir@
  51526. +abs_top_builddir = @abs_top_builddir@
  51527. +abs_top_srcdir = @abs_top_srcdir@
  51528. ac_ct_CC = @ac_ct_CC@
  51529. ac_ct_CXX = @ac_ct_CXX@
  51530. -ac_ct_F77 = @ac_ct_F77@
  51531. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  51532. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  51533. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  51534. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  51535. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  51536. am__include = @am__include@
  51537. am__leading_dot = @am__leading_dot@
  51538. am__quote = @am__quote@
  51539. @@ -153,6 +179,7 @@
  51540. build_cpu = @build_cpu@
  51541. build_os = @build_os@
  51542. build_vendor = @build_vendor@
  51543. +builddir = @builddir@
  51544. datadir = @datadir@
  51545. datarootdir = @datarootdir@
  51546. docdir = @docdir@
  51547. @@ -172,6 +199,7 @@
  51548. libexecdir = @libexecdir@
  51549. localedir = @localedir@
  51550. localstatedir = @localstatedir@
  51551. +lt_ECHO = @lt_ECHO@
  51552. mandir = @mandir@
  51553. mkdir_p = @mkdir_p@
  51554. oldincludedir = @oldincludedir@
  51555. @@ -181,8 +209,12 @@
  51556. psdir = @psdir@
  51557. sbindir = @sbindir@
  51558. sharedstatedir = @sharedstatedir@
  51559. +srcdir = @srcdir@
  51560. sysconfdir = @sysconfdir@
  51561. target_alias = @target_alias@
  51562. +top_build_prefix = @top_build_prefix@
  51563. +top_builddir = @top_builddir@
  51564. +top_srcdir = @top_srcdir@
  51565. man_MANS = faad.man
  51566. INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/faad \
  51567. -I$(top_srcdir)/common/mp4ff
  51568. @@ -202,14 +234,14 @@
  51569. @for dep in $?; do \
  51570. case '$(am__configure_deps)' in \
  51571. *$$dep*) \
  51572. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  51573. - && exit 0; \
  51574. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  51575. + && { if test -f $@; then exit 0; else break; fi; }; \
  51576. exit 1;; \
  51577. esac; \
  51578. done; \
  51579. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu frontend/Makefile'; \
  51580. - cd $(top_srcdir) && \
  51581. - $(AUTOMAKE) --gnu frontend/Makefile
  51582. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu frontend/Makefile'; \
  51583. + $(am__cd) $(top_srcdir) && \
  51584. + $(AUTOMAKE) --gnu frontend/Makefile
  51585. .PRECIOUS: Makefile
  51586. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  51587. @case '$?' in \
  51588. @@ -227,37 +259,53 @@
  51589. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51590. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  51591. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51592. +$(am__aclocal_m4_deps):
  51593. install-binPROGRAMS: $(bin_PROGRAMS)
  51594. @$(NORMAL_INSTALL)
  51595. - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  51596. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  51597. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  51598. - if test -f $$p \
  51599. - || test -f $$p1 \
  51600. - ; then \
  51601. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  51602. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  51603. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  51604. - else :; fi; \
  51605. - done
  51606. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  51607. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  51608. + for p in $$list; do echo "$$p $$p"; done | \
  51609. + sed 's/$(EXEEXT)$$//' | \
  51610. + while read p p1; do if test -f $$p || test -f $$p1; \
  51611. + then echo "$$p"; echo "$$p"; else :; fi; \
  51612. + done | \
  51613. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  51614. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  51615. + sed 'N;N;N;s,\n, ,g' | \
  51616. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  51617. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  51618. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  51619. + else { print "f", $$3 "/" $$4, $$1; } } \
  51620. + END { for (d in files) print "f", d, files[d] }' | \
  51621. + while read type dir files; do \
  51622. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  51623. + test -z "$$files" || { \
  51624. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  51625. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  51626. + } \
  51627. + ; done
  51628. uninstall-binPROGRAMS:
  51629. @$(NORMAL_UNINSTALL)
  51630. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  51631. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  51632. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  51633. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  51634. - done
  51635. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  51636. + files=`for p in $$list; do echo "$$p"; done | \
  51637. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  51638. + -e 's/$$/$(EXEEXT)/' `; \
  51639. + test -n "$$list" || exit 0; \
  51640. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  51641. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  51642. clean-binPROGRAMS:
  51643. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  51644. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  51645. - echo " rm -f $$p $$f"; \
  51646. - rm -f $$p $$f ; \
  51647. - done
  51648. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  51649. + echo " rm -f" $$list; \
  51650. + rm -f $$list || exit $$?; \
  51651. + test -n "$(EXEEXT)" || exit 0; \
  51652. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  51653. + echo " rm -f" $$list; \
  51654. + rm -f $$list
  51655. faad$(EXEEXT): $(faad_OBJECTS) $(faad_DEPENDENCIES)
  51656. @rm -f faad$(EXEEXT)
  51657. - $(LINK) $(faad_LDFLAGS) $(faad_OBJECTS) $(faad_LDADD) $(LIBS)
  51658. + $(LINK) $(faad_OBJECTS) $(faad_LDADD) $(LIBS)
  51659. mostlyclean-compile:
  51660. -rm -f *.$(OBJEXT)
  51661. @@ -270,36 +318,36 @@
  51662. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
  51663. .c.o:
  51664. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  51665. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  51666. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  51667. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  51668. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  51669. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  51670. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  51671. .c.obj:
  51672. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  51673. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  51674. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  51675. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  51676. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  51677. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  51678. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  51679. .c.lo:
  51680. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  51681. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  51682. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  51683. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  51684. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  51685. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  51686. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  51687. getopt.o: $(top_srcdir)/common/faad/getopt.c
  51688. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/common/faad/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/common/faad/getopt.c; \
  51689. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
  51690. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/common/faad/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/common/faad/getopt.c
  51691. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
  51692. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/common/faad/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
  51693. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  51694. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/common/faad/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/common/faad/getopt.c
  51695. getopt.obj: $(top_srcdir)/common/faad/getopt.c
  51696. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/common/faad/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/common/faad/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/common/faad/getopt.c'; fi`; \
  51697. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
  51698. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/common/faad/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/common/faad/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/common/faad/getopt.c'; fi`
  51699. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
  51700. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/common/faad/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
  51701. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  51702. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/common/faad/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/common/faad/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/common/faad/getopt.c'; fi`
  51703. @@ -309,128 +357,137 @@
  51704. clean-libtool:
  51705. -rm -rf .libs _libs
  51706. -
  51707. -distclean-libtool:
  51708. - -rm -f libtool
  51709. -uninstall-info-am:
  51710. -install-manm: $(manm_MANS) $(man_MANS)
  51711. +install-manm: $(man_MANS)
  51712. @$(NORMAL_INSTALL)
  51713. - test -z "$(manmdir)" || $(mkdir_p) "$(DESTDIR)$(manmdir)"
  51714. - @list='$(manm_MANS) $(dist_manm_MANS) $(nodist_manm_MANS)'; \
  51715. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  51716. - for i in $$l2; do \
  51717. - case "$$i" in \
  51718. - *.m*) list="$$list $$i" ;; \
  51719. - esac; \
  51720. + test -z "$(manmdir)" || $(MKDIR_P) "$(DESTDIR)$(manmdir)"
  51721. + @list=''; test -n "$(manmdir)" || exit 0; \
  51722. + { for i in $$list; do echo "$$i"; done; \
  51723. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  51724. + sed -n '/\.m[a-z]*$$/p'; \
  51725. + } | while read p; do \
  51726. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  51727. + echo "$$d$$p"; echo "$$p"; \
  51728. + done | \
  51729. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^m][0-9a-z]*$$,m,;x' \
  51730. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  51731. + sed 'N;N;s,\n, ,g' | { \
  51732. + list=; while read file base inst; do \
  51733. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  51734. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(manmdir)/$$inst'"; \
  51735. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(manmdir)/$$inst" || exit $$?; \
  51736. + fi; \
  51737. done; \
  51738. - for i in $$list; do \
  51739. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  51740. - else file=$$i; fi; \
  51741. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  51742. - case "$$ext" in \
  51743. - m*) ;; \
  51744. - *) ext='m' ;; \
  51745. - esac; \
  51746. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  51747. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  51748. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  51749. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(manmdir)/$$inst'"; \
  51750. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(manmdir)/$$inst"; \
  51751. - done
  51752. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  51753. + while read files; do \
  51754. + test -z "$$files" || { \
  51755. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(manmdir)'"; \
  51756. + $(INSTALL_DATA) $$files "$(DESTDIR)$(manmdir)" || exit $$?; }; \
  51757. + done; }
  51758. +
  51759. uninstall-manm:
  51760. @$(NORMAL_UNINSTALL)
  51761. - @list='$(manm_MANS) $(dist_manm_MANS) $(nodist_manm_MANS)'; \
  51762. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  51763. - for i in $$l2; do \
  51764. - case "$$i" in \
  51765. - *.m*) list="$$list $$i" ;; \
  51766. - esac; \
  51767. - done; \
  51768. - for i in $$list; do \
  51769. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  51770. - case "$$ext" in \
  51771. - m*) ;; \
  51772. - *) ext='m' ;; \
  51773. - esac; \
  51774. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  51775. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  51776. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  51777. - echo " rm -f '$(DESTDIR)$(manmdir)/$$inst'"; \
  51778. - rm -f "$(DESTDIR)$(manmdir)/$$inst"; \
  51779. - done
  51780. + @list=''; test -n "$(manmdir)" || exit 0; \
  51781. + files=`{ for i in $$list; do echo "$$i"; done; \
  51782. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  51783. + sed -n '/\.m[a-z]*$$/p'; \
  51784. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^m][0-9a-z]*$$,m,;x' \
  51785. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  51786. + test -z "$$files" || { \
  51787. + echo " ( cd '$(DESTDIR)$(manmdir)' && rm -f" $$files ")"; \
  51788. + cd "$(DESTDIR)$(manmdir)" && rm -f $$files; }
  51789. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  51790. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51791. unique=`for i in $$list; do \
  51792. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  51793. done | \
  51794. - $(AWK) ' { files[$$0] = 1; } \
  51795. - END { for (i in files) print i; }'`; \
  51796. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51797. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  51798. mkid -fID $$unique
  51799. tags: TAGS
  51800. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  51801. $(TAGS_FILES) $(LISP)
  51802. - tags=; \
  51803. + set x; \
  51804. here=`pwd`; \
  51805. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51806. unique=`for i in $$list; do \
  51807. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  51808. done | \
  51809. - $(AWK) ' { files[$$0] = 1; } \
  51810. - END { for (i in files) print i; }'`; \
  51811. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  51812. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51813. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  51814. + shift; \
  51815. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  51816. test -n "$$unique" || unique=$$empty_fix; \
  51817. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51818. - $$tags $$unique; \
  51819. + if test $$# -gt 0; then \
  51820. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51821. + "$$@" $$unique; \
  51822. + else \
  51823. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51824. + $$unique; \
  51825. + fi; \
  51826. fi
  51827. ctags: CTAGS
  51828. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  51829. $(TAGS_FILES) $(LISP)
  51830. - tags=; \
  51831. - here=`pwd`; \
  51832. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51833. unique=`for i in $$list; do \
  51834. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  51835. done | \
  51836. - $(AWK) ' { files[$$0] = 1; } \
  51837. - END { for (i in files) print i; }'`; \
  51838. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  51839. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51840. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  51841. + test -z "$(CTAGS_ARGS)$$unique" \
  51842. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  51843. - $$tags $$unique
  51844. + $$unique
  51845. GTAGS:
  51846. here=`$(am__cd) $(top_builddir) && pwd` \
  51847. - && cd $(top_srcdir) \
  51848. - && gtags -i $(GTAGS_ARGS) $$here
  51849. + && $(am__cd) $(top_srcdir) \
  51850. + && gtags -i $(GTAGS_ARGS) "$$here"
  51851. distclean-tags:
  51852. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  51853. distdir: $(DISTFILES)
  51854. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  51855. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  51856. - list='$(DISTFILES)'; for file in $$list; do \
  51857. - case $$file in \
  51858. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  51859. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  51860. - esac; \
  51861. + @list='$(MANS)'; if test -n "$$list"; then \
  51862. + list=`for p in $$list; do \
  51863. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  51864. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  51865. + if test -n "$$list" && \
  51866. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  51867. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  51868. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  51869. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  51870. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  51871. + exit 1; \
  51872. + else :; fi; \
  51873. + else :; fi
  51874. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51875. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51876. + list='$(DISTFILES)'; \
  51877. + dist_files=`for file in $$list; do echo $$file; done | \
  51878. + sed -e "s|^$$srcdirstrip/||;t" \
  51879. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  51880. + case $$dist_files in \
  51881. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  51882. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  51883. + sort -u` ;; \
  51884. + esac; \
  51885. + for file in $$dist_files; do \
  51886. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  51887. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  51888. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  51889. - dir="/$$dir"; \
  51890. - $(mkdir_p) "$(distdir)$$dir"; \
  51891. - else \
  51892. - dir=''; \
  51893. - fi; \
  51894. if test -d $$d/$$file; then \
  51895. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  51896. + if test -d "$(distdir)/$$file"; then \
  51897. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51898. + fi; \
  51899. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  51900. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  51901. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  51902. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51903. fi; \
  51904. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  51905. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  51906. else \
  51907. - test -f $(distdir)/$$file \
  51908. - || cp -p $$d/$$file $(distdir)/$$file \
  51909. + test -f "$(distdir)/$$file" \
  51910. + || cp -p $$d/$$file "$(distdir)/$$file" \
  51911. || exit 1; \
  51912. fi; \
  51913. done
  51914. @@ -439,7 +496,7 @@
  51915. all-am: Makefile $(PROGRAMS) $(MANS)
  51916. installdirs:
  51917. for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(manmdir)"; do \
  51918. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  51919. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  51920. done
  51921. install: install-am
  51922. install-exec: install-exec-am
  51923. @@ -461,6 +518,7 @@
  51924. distclean-generic:
  51925. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  51926. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  51927. maintainer-clean-generic:
  51928. @echo "This command is intended for maintainers to use"
  51929. @@ -473,7 +531,7 @@
  51930. -rm -rf ./$(DEPDIR)
  51931. -rm -f Makefile
  51932. distclean-am: clean-am distclean-compile distclean-generic \
  51933. - distclean-libtool distclean-tags
  51934. + distclean-tags
  51935. dvi: dvi-am
  51936. @@ -481,18 +539,38 @@
  51937. html: html-am
  51938. +html-am:
  51939. +
  51940. info: info-am
  51941. info-am:
  51942. install-data-am: install-man
  51943. +install-dvi: install-dvi-am
  51944. +
  51945. +install-dvi-am:
  51946. +
  51947. install-exec-am: install-binPROGRAMS
  51948. +install-html: install-html-am
  51949. +
  51950. +install-html-am:
  51951. +
  51952. install-info: install-info-am
  51953. +install-info-am:
  51954. +
  51955. install-man: install-manm
  51956. +install-pdf: install-pdf-am
  51957. +
  51958. +install-pdf-am:
  51959. +
  51960. +install-ps: install-ps-am
  51961. +
  51962. +install-ps-am:
  51963. +
  51964. installcheck-am:
  51965. maintainer-clean: maintainer-clean-am
  51966. @@ -513,22 +591,27 @@
  51967. ps-am:
  51968. -uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man
  51969. +uninstall-am: uninstall-binPROGRAMS uninstall-man
  51970. uninstall-man: uninstall-manm
  51971. +.MAKE: install-am install-strip
  51972. +
  51973. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
  51974. clean-generic clean-libtool ctags distclean distclean-compile \
  51975. distclean-generic distclean-libtool distclean-tags distdir dvi \
  51976. dvi-am html html-am info info-am install install-am \
  51977. - install-binPROGRAMS install-data install-data-am install-exec \
  51978. - install-exec-am install-info install-info-am install-man \
  51979. - install-manm install-strip installcheck installcheck-am \
  51980. + install-binPROGRAMS install-data install-data-am install-dvi \
  51981. + install-dvi-am install-exec install-exec-am install-html \
  51982. + install-html-am install-info install-info-am install-man \
  51983. + install-manm install-pdf install-pdf-am install-ps \
  51984. + install-ps-am install-strip installcheck installcheck-am \
  51985. installdirs maintainer-clean maintainer-clean-generic \
  51986. mostlyclean mostlyclean-compile mostlyclean-generic \
  51987. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  51988. - uninstall-am uninstall-binPROGRAMS uninstall-info-am \
  51989. - uninstall-man uninstall-manm
  51990. + uninstall-am uninstall-binPROGRAMS uninstall-man \
  51991. + uninstall-manm
  51992. +
  51993. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  51994. # Otherwise a system limit (for SysV at least) may be exceeded.
  51995. diff -Nur faad2-2.7.orig/INSTALL faad2-2.7/INSTALL
  51996. --- faad2-2.7.orig/INSTALL 2009-02-10 09:36:11.000000000 +0100
  51997. +++ faad2-2.7/INSTALL 2011-02-16 17:55:08.103792857 +0100
  51998. @@ -1,16 +1,25 @@
  51999. Installation Instructions
  52000. *************************
  52001. -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
  52002. -Software Foundation, Inc.
  52003. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  52004. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  52005. -This file is free documentation; the Free Software Foundation gives
  52006. -unlimited permission to copy, distribute and modify it.
  52007. + Copying and distribution of this file, with or without modification,
  52008. +are permitted in any medium without royalty provided the copyright
  52009. +notice and this notice are preserved. This file is offered as-is,
  52010. +without warranty of any kind.
  52011. Basic Installation
  52012. ==================
  52013. -These are generic installation instructions.
  52014. + Briefly, the shell commands `./configure; make; make install' should
  52015. +configure, build, and install this package. The following
  52016. +more-detailed instructions are generic; see the `README' file for
  52017. +instructions specific to this package. Some packages provide this
  52018. +`INSTALL' file but do not implement all of the features documented
  52019. +below. The lack of an optional feature in a given package is not
  52020. +necessarily a bug. More recommendations for GNU packages can be found
  52021. +in *note Makefile Conventions: (standards)Makefile Conventions.
  52022. The `configure' shell script attempts to guess correct values for
  52023. various system-dependent variables used during compilation. It uses
  52024. @@ -23,9 +32,9 @@
  52025. It can also use an optional file (typically called `config.cache'
  52026. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  52027. -the results of its tests to speed up reconfiguring. (Caching is
  52028. +the results of its tests to speed up reconfiguring. Caching is
  52029. disabled by default to prevent problems with accidental use of stale
  52030. -cache files.)
  52031. +cache files.
  52032. If you need to do unusual things to compile the package, please try
  52033. to figure out how `configure' could check whether to do them, and mail
  52034. @@ -35,30 +44,37 @@
  52035. may remove or edit it.
  52036. The file `configure.ac' (or `configure.in') is used to create
  52037. -`configure' by a program called `autoconf'. You only need
  52038. -`configure.ac' if you want to change it or regenerate `configure' using
  52039. -a newer version of `autoconf'.
  52040. +`configure' by a program called `autoconf'. You need `configure.ac' if
  52041. +you want to change it or regenerate `configure' using a newer version
  52042. +of `autoconf'.
  52043. -The simplest way to compile this package is:
  52044. + The simplest way to compile this package is:
  52045. 1. `cd' to the directory containing the package's source code and type
  52046. - `./configure' to configure the package for your system. If you're
  52047. - using `csh' on an old version of System V, you might need to type
  52048. - `sh ./configure' instead to prevent `csh' from trying to execute
  52049. - `configure' itself.
  52050. + `./configure' to configure the package for your system.
  52051. - Running `configure' takes awhile. While running, it prints some
  52052. - messages telling which features it is checking for.
  52053. + Running `configure' might take a while. While running, it prints
  52054. + some messages telling which features it is checking for.
  52055. 2. Type `make' to compile the package.
  52056. 3. Optionally, type `make check' to run any self-tests that come with
  52057. - the package.
  52058. + the package, generally using the just-built uninstalled binaries.
  52059. 4. Type `make install' to install the programs and any data files and
  52060. - documentation.
  52061. + documentation. When installing into a prefix owned by root, it is
  52062. + recommended that the package be configured and built as a regular
  52063. + user, and only the `make install' phase executed with root
  52064. + privileges.
  52065. +
  52066. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  52067. + this time using the binaries in their final installed location.
  52068. + This target does not install anything. Running this target as a
  52069. + regular user, particularly if the prior `make install' required
  52070. + root privileges, verifies that the installation completed
  52071. + correctly.
  52072. - 5. You can remove the program binaries and object files from the
  52073. + 6. You can remove the program binaries and object files from the
  52074. source code directory by typing `make clean'. To also remove the
  52075. files that `configure' created (so you can compile the package for
  52076. a different kind of computer), type `make distclean'. There is
  52077. @@ -67,45 +83,69 @@
  52078. all sorts of other programs in order to regenerate files that came
  52079. with the distribution.
  52080. + 7. Often, you can also type `make uninstall' to remove the installed
  52081. + files again. In practice, not all packages have tested that
  52082. + uninstallation works correctly, even though it is required by the
  52083. + GNU Coding Standards.
  52084. +
  52085. + 8. Some packages, particularly those that use Automake, provide `make
  52086. + distcheck', which can by used by developers to test that all other
  52087. + targets like `make install' and `make uninstall' work correctly.
  52088. + This target is generally not run by end users.
  52089. +
  52090. Compilers and Options
  52091. =====================
  52092. -Some systems require unusual options for compilation or linking that the
  52093. -`configure' script does not know about. Run `./configure --help' for
  52094. -details on some of the pertinent environment variables.
  52095. + Some systems require unusual options for compilation or linking that
  52096. +the `configure' script does not know about. Run `./configure --help'
  52097. +for details on some of the pertinent environment variables.
  52098. You can give `configure' initial values for configuration parameters
  52099. by setting variables in the command line or in the environment. Here
  52100. is an example:
  52101. - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  52102. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  52103. *Note Defining Variables::, for more details.
  52104. Compiling For Multiple Architectures
  52105. ====================================
  52106. -You can compile the package for more than one kind of computer at the
  52107. + You can compile the package for more than one kind of computer at the
  52108. same time, by placing the object files for each architecture in their
  52109. -own directory. To do this, you must use a version of `make' that
  52110. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  52111. +own directory. To do this, you can use GNU `make'. `cd' to the
  52112. directory where you want the object files and executables to go and run
  52113. the `configure' script. `configure' automatically checks for the
  52114. -source code in the directory that `configure' is in and in `..'.
  52115. +source code in the directory that `configure' is in and in `..'. This
  52116. +is known as a "VPATH" build.
  52117. - If you have to use a `make' that does not support the `VPATH'
  52118. -variable, you have to compile the package for one architecture at a
  52119. -time in the source code directory. After you have installed the
  52120. -package for one architecture, use `make distclean' before reconfiguring
  52121. -for another architecture.
  52122. + With a non-GNU `make', it is safer to compile the package for one
  52123. +architecture at a time in the source code directory. After you have
  52124. +installed the package for one architecture, use `make distclean' before
  52125. +reconfiguring for another architecture.
  52126. +
  52127. + On MacOS X 10.5 and later systems, you can create libraries and
  52128. +executables that work on multiple system types--known as "fat" or
  52129. +"universal" binaries--by specifying multiple `-arch' options to the
  52130. +compiler but only a single `-arch' option to the preprocessor. Like
  52131. +this:
  52132. +
  52133. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  52134. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  52135. + CPP="gcc -E" CXXCPP="g++ -E"
  52136. +
  52137. + This is not guaranteed to produce working output in all cases, you
  52138. +may have to build one architecture at a time and combine the results
  52139. +using the `lipo' tool if you have problems.
  52140. Installation Names
  52141. ==================
  52142. -By default, `make install' installs the package's commands under
  52143. + By default, `make install' installs the package's commands under
  52144. `/usr/local/bin', include files under `/usr/local/include', etc. You
  52145. can specify an installation prefix other than `/usr/local' by giving
  52146. -`configure' the option `--prefix=PREFIX'.
  52147. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  52148. +absolute file name.
  52149. You can specify separate installation prefixes for
  52150. architecture-specific files and architecture-independent files. If you
  52151. @@ -116,16 +156,47 @@
  52152. In addition, if you use an unusual directory layout you can give
  52153. options like `--bindir=DIR' to specify different values for particular
  52154. kinds of files. Run `configure --help' for a list of the directories
  52155. -you can set and what kinds of files go in them.
  52156. +you can set and what kinds of files go in them. In general, the
  52157. +default for these options is expressed in terms of `${prefix}', so that
  52158. +specifying just `--prefix' will affect all of the other directory
  52159. +specifications that were not explicitly provided.
  52160. +
  52161. + The most portable way to affect installation locations is to pass the
  52162. +correct locations to `configure'; however, many packages provide one or
  52163. +both of the following shortcuts of passing variable assignments to the
  52164. +`make install' command line to change installation locations without
  52165. +having to reconfigure or recompile.
  52166. +
  52167. + The first method involves providing an override variable for each
  52168. +affected directory. For example, `make install
  52169. +prefix=/alternate/directory' will choose an alternate location for all
  52170. +directory configuration variables that were expressed in terms of
  52171. +`${prefix}'. Any directories that were specified during `configure',
  52172. +but not in terms of `${prefix}', must each be overridden at install
  52173. +time for the entire installation to be relocated. The approach of
  52174. +makefile variable overrides for each directory variable is required by
  52175. +the GNU Coding Standards, and ideally causes no recompilation.
  52176. +However, some platforms have known limitations with the semantics of
  52177. +shared libraries that end up requiring recompilation when using this
  52178. +method, particularly noticeable in packages that use GNU Libtool.
  52179. +
  52180. + The second method involves providing the `DESTDIR' variable. For
  52181. +example, `make install DESTDIR=/alternate/directory' will prepend
  52182. +`/alternate/directory' before all installation names. The approach of
  52183. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  52184. +does not work on platforms that have drive letters. On the other hand,
  52185. +it does better at avoiding recompilation issues, and works well even
  52186. +when some directory options were not specified in terms of `${prefix}'
  52187. +at `configure' time.
  52188. +
  52189. +Optional Features
  52190. +=================
  52191. If the package supports it, you can cause programs to be installed
  52192. with an extra prefix or suffix on their names by giving `configure' the
  52193. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  52194. -Optional Features
  52195. -=================
  52196. -
  52197. -Some packages pay attention to `--enable-FEATURE' options to
  52198. + Some packages pay attention to `--enable-FEATURE' options to
  52199. `configure', where FEATURE indicates an optional part of the package.
  52200. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  52201. is something like `gnu-as' or `x' (for the X Window System). The
  52202. @@ -137,14 +208,53 @@
  52203. you can use the `configure' options `--x-includes=DIR' and
  52204. `--x-libraries=DIR' to specify their locations.
  52205. + Some packages offer the ability to configure how verbose the
  52206. +execution of `make' will be. For these packages, running `./configure
  52207. +--enable-silent-rules' sets the default to minimal output, which can be
  52208. +overridden with `make V=1'; while running `./configure
  52209. +--disable-silent-rules' sets the default to verbose, which can be
  52210. +overridden with `make V=0'.
  52211. +
  52212. +Particular systems
  52213. +==================
  52214. +
  52215. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  52216. +CC is not installed, it is recommended to use the following options in
  52217. +order to use an ANSI C compiler:
  52218. +
  52219. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  52220. +
  52221. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  52222. +
  52223. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  52224. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  52225. +a workaround. If GNU CC is not installed, it is therefore recommended
  52226. +to try
  52227. +
  52228. + ./configure CC="cc"
  52229. +
  52230. +and if that doesn't work, try
  52231. +
  52232. + ./configure CC="cc -nodtk"
  52233. +
  52234. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  52235. +directory contains several dysfunctional programs; working variants of
  52236. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  52237. +in your `PATH', put it _after_ `/usr/bin'.
  52238. +
  52239. + On Haiku, software installed for all users goes in `/boot/common',
  52240. +not `/usr/local'. It is recommended to use the following options:
  52241. +
  52242. + ./configure --prefix=/boot/common
  52243. +
  52244. Specifying the System Type
  52245. ==========================
  52246. -There may be some features `configure' cannot figure out automatically,
  52247. -but needs to determine by the type of machine the package will run on.
  52248. -Usually, assuming the package is built to be run on the _same_
  52249. -architectures, `configure' can figure that out, but if it prints a
  52250. -message saying it cannot guess the machine type, give it the
  52251. + There may be some features `configure' cannot figure out
  52252. +automatically, but needs to determine by the type of machine the package
  52253. +will run on. Usually, assuming the package is built to be run on the
  52254. +_same_ architectures, `configure' can figure that out, but if it prints
  52255. +a message saying it cannot guess the machine type, give it the
  52256. `--build=TYPE' option. TYPE can either be a short name for the system
  52257. type, such as `sun4', or a canonical name which has the form:
  52258. @@ -152,7 +262,8 @@
  52259. where SYSTEM can have one of these forms:
  52260. - OS KERNEL-OS
  52261. + OS
  52262. + KERNEL-OS
  52263. See the file `config.sub' for the possible values of each field. If
  52264. `config.sub' isn't included in this package, then this package doesn't
  52265. @@ -170,9 +281,9 @@
  52266. Sharing Defaults
  52267. ================
  52268. -If you want to set default values for `configure' scripts to share, you
  52269. -can create a site shell script called `config.site' that gives default
  52270. -values for variables like `CC', `cache_file', and `prefix'.
  52271. + If you want to set default values for `configure' scripts to share,
  52272. +you can create a site shell script called `config.site' that gives
  52273. +default values for variables like `CC', `cache_file', and `prefix'.
  52274. `configure' looks for `PREFIX/share/config.site' if it exists, then
  52275. `PREFIX/etc/config.site' if it exists. Or, you can set the
  52276. `CONFIG_SITE' environment variable to the location of the site script.
  52277. @@ -181,7 +292,7 @@
  52278. Defining Variables
  52279. ==================
  52280. -Variables not defined in a site shell script can be set in the
  52281. + Variables not defined in a site shell script can be set in the
  52282. environment passed to `configure'. However, some packages may run
  52283. configure again during the build, and the customized values of these
  52284. variables may be lost. In order to avoid this problem, you should set
  52285. @@ -190,21 +301,29 @@
  52286. ./configure CC=/usr/local2/bin/gcc
  52287. causes the specified `gcc' to be used as the C compiler (unless it is
  52288. -overridden in the site shell script). Here is a another example:
  52289. +overridden in the site shell script).
  52290. - /bin/bash ./configure CONFIG_SHELL=/bin/bash
  52291. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  52292. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  52293. -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
  52294. -configuration-related scripts to be executed by `/bin/bash'.
  52295. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  52296. `configure' Invocation
  52297. ======================
  52298. -`configure' recognizes the following options to control how it operates.
  52299. + `configure' recognizes the following options to control how it
  52300. +operates.
  52301. `--help'
  52302. `-h'
  52303. - Print a summary of the options to `configure', and exit.
  52304. + Print a summary of all of the options to `configure', and exit.
  52305. +
  52306. +`--help=short'
  52307. +`--help=recursive'
  52308. + Print a summary of the options unique to this package's
  52309. + `configure', and exit. The `short' variant lists options used
  52310. + only in the top level, while the `recursive' variant lists options
  52311. + also present in any nested packages.
  52312. `--version'
  52313. `-V'
  52314. @@ -231,6 +350,16 @@
  52315. Look for the package's source code in directory DIR. Usually
  52316. `configure' can determine that directory automatically.
  52317. +`--prefix=DIR'
  52318. + Use DIR as the installation prefix. *note Installation Names::
  52319. + for more details, including other options available for fine-tuning
  52320. + the installation locations.
  52321. +
  52322. +`--no-create'
  52323. +`-n'
  52324. + Run the configure checks, but stop before creating any output
  52325. + files.
  52326. +
  52327. `configure' also accepts some other, not widely useful, options. Run
  52328. `configure --help' for more details.
  52329. diff -Nur faad2-2.7.orig/install-sh faad2-2.7/install-sh
  52330. --- faad2-2.7.orig/install-sh 2009-02-10 09:36:10.000000000 +0100
  52331. +++ faad2-2.7/install-sh 2011-02-16 17:55:07.623555269 +0100
  52332. @@ -1,7 +1,7 @@
  52333. #!/bin/sh
  52334. # install - install a program, script, or datafile
  52335. -scriptversion=2005-05-14.22
  52336. +scriptversion=2009-04-28.21; # UTC
  52337. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  52338. # later released in X11R6 (xc/config/util/install.sh) with the
  52339. @@ -39,38 +39,68 @@
  52340. # when there is no Makefile.
  52341. #
  52342. # This script is compatible with the BSD install script, but was written
  52343. -# from scratch. It can only install one file at a time, a restriction
  52344. -# shared with many OS's install programs.
  52345. +# from scratch.
  52346. +
  52347. +nl='
  52348. +'
  52349. +IFS=" "" $nl"
  52350. # set DOITPROG to echo to test this script
  52351. # Don't use :- since 4.3BSD and earlier shells don't like it.
  52352. -doit="${DOITPROG-}"
  52353. +doit=${DOITPROG-}
  52354. +if test -z "$doit"; then
  52355. + doit_exec=exec
  52356. +else
  52357. + doit_exec=$doit
  52358. +fi
  52359. -# put in absolute paths if you don't have them in your path; or use env. vars.
  52360. +# Put in absolute file names if you don't have them in your path;
  52361. +# or use environment vars.
  52362. -mvprog="${MVPROG-mv}"
  52363. -cpprog="${CPPROG-cp}"
  52364. -chmodprog="${CHMODPROG-chmod}"
  52365. -chownprog="${CHOWNPROG-chown}"
  52366. -chgrpprog="${CHGRPPROG-chgrp}"
  52367. -stripprog="${STRIPPROG-strip}"
  52368. -rmprog="${RMPROG-rm}"
  52369. -mkdirprog="${MKDIRPROG-mkdir}"
  52370. +chgrpprog=${CHGRPPROG-chgrp}
  52371. +chmodprog=${CHMODPROG-chmod}
  52372. +chownprog=${CHOWNPROG-chown}
  52373. +cmpprog=${CMPPROG-cmp}
  52374. +cpprog=${CPPROG-cp}
  52375. +mkdirprog=${MKDIRPROG-mkdir}
  52376. +mvprog=${MVPROG-mv}
  52377. +rmprog=${RMPROG-rm}
  52378. +stripprog=${STRIPPROG-strip}
  52379. +
  52380. +posix_glob='?'
  52381. +initialize_posix_glob='
  52382. + test "$posix_glob" != "?" || {
  52383. + if (set -f) 2>/dev/null; then
  52384. + posix_glob=
  52385. + else
  52386. + posix_glob=:
  52387. + fi
  52388. + }
  52389. +'
  52390. +
  52391. +posix_mkdir=
  52392. +
  52393. +# Desired mode of installed file.
  52394. +mode=0755
  52395. -chmodcmd="$chmodprog 0755"
  52396. -chowncmd=
  52397. chgrpcmd=
  52398. -stripcmd=
  52399. +chmodcmd=$chmodprog
  52400. +chowncmd=
  52401. +mvcmd=$mvprog
  52402. rmcmd="$rmprog -f"
  52403. -mvcmd="$mvprog"
  52404. +stripcmd=
  52405. +
  52406. src=
  52407. dst=
  52408. dir_arg=
  52409. -dstarg=
  52410. +dst_arg=
  52411. +
  52412. +copy_on_change=false
  52413. no_target_directory=
  52414. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  52415. +usage="\
  52416. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  52417. or: $0 [OPTION]... SRCFILES... DIRECTORY
  52418. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  52419. or: $0 [OPTION]... -d DIRECTORIES...
  52420. @@ -80,81 +110,86 @@
  52421. In the 4th, create DIRECTORIES.
  52422. Options:
  52423. --c (ignored)
  52424. --d create directories instead of installing files.
  52425. --g GROUP $chgrpprog installed files to GROUP.
  52426. --m MODE $chmodprog installed files to MODE.
  52427. --o USER $chownprog installed files to USER.
  52428. --s $stripprog installed files.
  52429. --t DIRECTORY install into DIRECTORY.
  52430. --T report an error if DSTFILE is a directory.
  52431. ---help display this help and exit.
  52432. ---version display version info and exit.
  52433. + --help display this help and exit.
  52434. + --version display version info and exit.
  52435. +
  52436. + -c (ignored)
  52437. + -C install only if different (preserve the last data modification time)
  52438. + -d create directories instead of installing files.
  52439. + -g GROUP $chgrpprog installed files to GROUP.
  52440. + -m MODE $chmodprog installed files to MODE.
  52441. + -o USER $chownprog installed files to USER.
  52442. + -s $stripprog installed files.
  52443. + -t DIRECTORY install into DIRECTORY.
  52444. + -T report an error if DSTFILE is a directory.
  52445. Environment variables override the default commands:
  52446. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  52447. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  52448. + RMPROG STRIPPROG
  52449. "
  52450. -while test -n "$1"; do
  52451. +while test $# -ne 0; do
  52452. case $1 in
  52453. - -c) shift
  52454. - continue;;
  52455. + -c) ;;
  52456. - -d) dir_arg=true
  52457. - shift
  52458. - continue;;
  52459. + -C) copy_on_change=true;;
  52460. +
  52461. + -d) dir_arg=true;;
  52462. -g) chgrpcmd="$chgrpprog $2"
  52463. - shift
  52464. - shift
  52465. - continue;;
  52466. + shift;;
  52467. --help) echo "$usage"; exit $?;;
  52468. - -m) chmodcmd="$chmodprog $2"
  52469. - shift
  52470. - shift
  52471. - continue;;
  52472. + -m) mode=$2
  52473. + case $mode in
  52474. + *' '* | *' '* | *'
  52475. +'* | *'*'* | *'?'* | *'['*)
  52476. + echo "$0: invalid mode: $mode" >&2
  52477. + exit 1;;
  52478. + esac
  52479. + shift;;
  52480. -o) chowncmd="$chownprog $2"
  52481. - shift
  52482. - shift
  52483. - continue;;
  52484. -
  52485. - -s) stripcmd=$stripprog
  52486. - shift
  52487. - continue;;
  52488. -
  52489. - -t) dstarg=$2
  52490. - shift
  52491. - shift
  52492. - continue;;
  52493. -
  52494. - -T) no_target_directory=true
  52495. - shift
  52496. - continue;;
  52497. + shift;;
  52498. +
  52499. + -s) stripcmd=$stripprog;;
  52500. +
  52501. + -t) dst_arg=$2
  52502. + shift;;
  52503. +
  52504. + -T) no_target_directory=true;;
  52505. --version) echo "$0 $scriptversion"; exit $?;;
  52506. - *) # When -d is used, all remaining arguments are directories to create.
  52507. - # When -t is used, the destination is already specified.
  52508. - test -n "$dir_arg$dstarg" && break
  52509. - # Otherwise, the last argument is the destination. Remove it from $@.
  52510. - for arg
  52511. - do
  52512. - if test -n "$dstarg"; then
  52513. - # $@ is not empty: it contains at least $arg.
  52514. - set fnord "$@" "$dstarg"
  52515. - shift # fnord
  52516. - fi
  52517. - shift # arg
  52518. - dstarg=$arg
  52519. - done
  52520. + --) shift
  52521. break;;
  52522. +
  52523. + -*) echo "$0: invalid option: $1" >&2
  52524. + exit 1;;
  52525. +
  52526. + *) break;;
  52527. esac
  52528. + shift
  52529. done
  52530. -if test -z "$1"; then
  52531. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  52532. + # When -d is used, all remaining arguments are directories to create.
  52533. + # When -t is used, the destination is already specified.
  52534. + # Otherwise, the last argument is the destination. Remove it from $@.
  52535. + for arg
  52536. + do
  52537. + if test -n "$dst_arg"; then
  52538. + # $@ is not empty: it contains at least $arg.
  52539. + set fnord "$@" "$dst_arg"
  52540. + shift # fnord
  52541. + fi
  52542. + shift # arg
  52543. + dst_arg=$arg
  52544. + done
  52545. +fi
  52546. +
  52547. +if test $# -eq 0; then
  52548. if test -z "$dir_arg"; then
  52549. echo "$0: no input file specified." >&2
  52550. exit 1
  52551. @@ -164,24 +199,47 @@
  52552. exit 0
  52553. fi
  52554. +if test -z "$dir_arg"; then
  52555. + trap '(exit $?); exit' 1 2 13 15
  52556. +
  52557. + # Set umask so as not to create temps with too-generous modes.
  52558. + # However, 'strip' requires both read and write access to temps.
  52559. + case $mode in
  52560. + # Optimize common cases.
  52561. + *644) cp_umask=133;;
  52562. + *755) cp_umask=22;;
  52563. +
  52564. + *[0-7])
  52565. + if test -z "$stripcmd"; then
  52566. + u_plus_rw=
  52567. + else
  52568. + u_plus_rw='% 200'
  52569. + fi
  52570. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  52571. + *)
  52572. + if test -z "$stripcmd"; then
  52573. + u_plus_rw=
  52574. + else
  52575. + u_plus_rw=,u+rw
  52576. + fi
  52577. + cp_umask=$mode$u_plus_rw;;
  52578. + esac
  52579. +fi
  52580. +
  52581. for src
  52582. do
  52583. # Protect names starting with `-'.
  52584. case $src in
  52585. - -*) src=./$src ;;
  52586. + -*) src=./$src;;
  52587. esac
  52588. if test -n "$dir_arg"; then
  52589. dst=$src
  52590. - src=
  52591. -
  52592. - if test -d "$dst"; then
  52593. - mkdircmd=:
  52594. - chmodcmd=
  52595. - else
  52596. - mkdircmd=$mkdirprog
  52597. - fi
  52598. + dstdir=$dst
  52599. + test -d "$dstdir"
  52600. + dstdir_status=$?
  52601. else
  52602. +
  52603. # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  52604. # might cause directories to be created, which would be especially bad
  52605. # if $src (and thus $dsttmp) contains '*'.
  52606. @@ -190,71 +248,199 @@
  52607. exit 1
  52608. fi
  52609. - if test -z "$dstarg"; then
  52610. + if test -z "$dst_arg"; then
  52611. echo "$0: no destination specified." >&2
  52612. exit 1
  52613. fi
  52614. - dst=$dstarg
  52615. + dst=$dst_arg
  52616. # Protect names starting with `-'.
  52617. case $dst in
  52618. - -*) dst=./$dst ;;
  52619. + -*) dst=./$dst;;
  52620. esac
  52621. # If destination is a directory, append the input filename; won't work
  52622. # if double slashes aren't ignored.
  52623. if test -d "$dst"; then
  52624. if test -n "$no_target_directory"; then
  52625. - echo "$0: $dstarg: Is a directory" >&2
  52626. + echo "$0: $dst_arg: Is a directory" >&2
  52627. exit 1
  52628. fi
  52629. - dst=$dst/`basename "$src"`
  52630. + dstdir=$dst
  52631. + dst=$dstdir/`basename "$src"`
  52632. + dstdir_status=0
  52633. + else
  52634. + # Prefer dirname, but fall back on a substitute if dirname fails.
  52635. + dstdir=`
  52636. + (dirname "$dst") 2>/dev/null ||
  52637. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  52638. + X"$dst" : 'X\(//\)[^/]' \| \
  52639. + X"$dst" : 'X\(//\)$' \| \
  52640. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  52641. + echo X"$dst" |
  52642. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  52643. + s//\1/
  52644. + q
  52645. + }
  52646. + /^X\(\/\/\)[^/].*/{
  52647. + s//\1/
  52648. + q
  52649. + }
  52650. + /^X\(\/\/\)$/{
  52651. + s//\1/
  52652. + q
  52653. + }
  52654. + /^X\(\/\).*/{
  52655. + s//\1/
  52656. + q
  52657. + }
  52658. + s/.*/./; q'
  52659. + `
  52660. +
  52661. + test -d "$dstdir"
  52662. + dstdir_status=$?
  52663. fi
  52664. fi
  52665. - # This sed command emulates the dirname command.
  52666. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  52667. -
  52668. - # Make sure that the destination directory exists.
  52669. + obsolete_mkdir_used=false
  52670. - # Skip lots of stat calls in the usual case.
  52671. - if test ! -d "$dstdir"; then
  52672. - defaultIFS='
  52673. - '
  52674. - IFS="${IFS-$defaultIFS}"
  52675. -
  52676. - oIFS=$IFS
  52677. - # Some sh's can't handle IFS=/ for some reason.
  52678. - IFS='%'
  52679. - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  52680. - shift
  52681. - IFS=$oIFS
  52682. + if test $dstdir_status != 0; then
  52683. + case $posix_mkdir in
  52684. + '')
  52685. + # Create intermediate dirs using mode 755 as modified by the umask.
  52686. + # This is like FreeBSD 'install' as of 1997-10-28.
  52687. + umask=`umask`
  52688. + case $stripcmd.$umask in
  52689. + # Optimize common cases.
  52690. + *[2367][2367]) mkdir_umask=$umask;;
  52691. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  52692. +
  52693. + *[0-7])
  52694. + mkdir_umask=`expr $umask + 22 \
  52695. + - $umask % 100 % 40 + $umask % 20 \
  52696. + - $umask % 10 % 4 + $umask % 2
  52697. + `;;
  52698. + *) mkdir_umask=$umask,go-w;;
  52699. + esac
  52700. +
  52701. + # With -d, create the new directory with the user-specified mode.
  52702. + # Otherwise, rely on $mkdir_umask.
  52703. + if test -n "$dir_arg"; then
  52704. + mkdir_mode=-m$mode
  52705. + else
  52706. + mkdir_mode=
  52707. + fi
  52708. +
  52709. + posix_mkdir=false
  52710. + case $umask in
  52711. + *[123567][0-7][0-7])
  52712. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  52713. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  52714. + ;;
  52715. + *)
  52716. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  52717. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  52718. +
  52719. + if (umask $mkdir_umask &&
  52720. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  52721. + then
  52722. + if test -z "$dir_arg" || {
  52723. + # Check for POSIX incompatibilities with -m.
  52724. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  52725. + # other-writeable bit of parent directory when it shouldn't.
  52726. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  52727. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  52728. + case $ls_ld_tmpdir in
  52729. + d????-?r-*) different_mode=700;;
  52730. + d????-?--*) different_mode=755;;
  52731. + *) false;;
  52732. + esac &&
  52733. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  52734. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  52735. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  52736. + }
  52737. + }
  52738. + then posix_mkdir=:
  52739. + fi
  52740. + rmdir "$tmpdir/d" "$tmpdir"
  52741. + else
  52742. + # Remove any dirs left behind by ancient mkdir implementations.
  52743. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  52744. + fi
  52745. + trap '' 0;;
  52746. + esac;;
  52747. + esac
  52748. - pathcomp=
  52749. + if
  52750. + $posix_mkdir && (
  52751. + umask $mkdir_umask &&
  52752. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  52753. + )
  52754. + then :
  52755. + else
  52756. - while test $# -ne 0 ; do
  52757. - pathcomp=$pathcomp$1
  52758. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  52759. + # or it failed possibly due to a race condition. Create the
  52760. + # directory the slow way, step by step, checking for races as we go.
  52761. +
  52762. + case $dstdir in
  52763. + /*) prefix='/';;
  52764. + -*) prefix='./';;
  52765. + *) prefix='';;
  52766. + esac
  52767. +
  52768. + eval "$initialize_posix_glob"
  52769. +
  52770. + oIFS=$IFS
  52771. + IFS=/
  52772. + $posix_glob set -f
  52773. + set fnord $dstdir
  52774. shift
  52775. - if test ! -d "$pathcomp"; then
  52776. - $mkdirprog "$pathcomp"
  52777. - # mkdir can fail with a `File exist' error in case several
  52778. - # install-sh are creating the directory concurrently. This
  52779. - # is OK.
  52780. - test -d "$pathcomp" || exit
  52781. + $posix_glob set +f
  52782. + IFS=$oIFS
  52783. +
  52784. + prefixes=
  52785. +
  52786. + for d
  52787. + do
  52788. + test -z "$d" && continue
  52789. +
  52790. + prefix=$prefix$d
  52791. + if test -d "$prefix"; then
  52792. + prefixes=
  52793. + else
  52794. + if $posix_mkdir; then
  52795. + (umask=$mkdir_umask &&
  52796. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  52797. + # Don't fail if two instances are running concurrently.
  52798. + test -d "$prefix" || exit 1
  52799. + else
  52800. + case $prefix in
  52801. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  52802. + *) qprefix=$prefix;;
  52803. + esac
  52804. + prefixes="$prefixes '$qprefix'"
  52805. + fi
  52806. + fi
  52807. + prefix=$prefix/
  52808. + done
  52809. +
  52810. + if test -n "$prefixes"; then
  52811. + # Don't fail if two instances are running concurrently.
  52812. + (umask $mkdir_umask &&
  52813. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  52814. + test -d "$dstdir" || exit 1
  52815. + obsolete_mkdir_used=true
  52816. fi
  52817. - pathcomp=$pathcomp/
  52818. - done
  52819. + fi
  52820. fi
  52821. if test -n "$dir_arg"; then
  52822. - $doit $mkdircmd "$dst" \
  52823. - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  52824. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  52825. - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  52826. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  52827. -
  52828. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  52829. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  52830. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  52831. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  52832. else
  52833. - dstfile=`basename "$dst"`
  52834. # Make a couple of temp file names in the proper directory.
  52835. dsttmp=$dstdir/_inst.$$_
  52836. @@ -262,10 +448,9 @@
  52837. # Trap to clean up those temp files at exit.
  52838. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  52839. - trap '(exit $?); exit' 1 2 13 15
  52840. # Copy the file name to the temp name.
  52841. - $doit $cpprog "$src" "$dsttmp" &&
  52842. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  52843. # and set any options; do chmod last to preserve setuid bits.
  52844. #
  52845. @@ -273,51 +458,63 @@
  52846. # ignore errors from any of these, just make sure not to ignore
  52847. # errors from the above "$doit $cpprog $src $dsttmp" command.
  52848. #
  52849. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  52850. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  52851. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  52852. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  52853. -
  52854. - # Now rename the file to the real destination.
  52855. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  52856. - || {
  52857. - # The rename failed, perhaps because mv can't rename something else
  52858. - # to itself, or perhaps because mv is so ancient that it does not
  52859. - # support -f.
  52860. -
  52861. - # Now remove or move aside any old file at destination location.
  52862. - # We try this two ways since rm can't unlink itself on some
  52863. - # systems and the destination file might be busy for other
  52864. - # reasons. In this case, the final cleanup might fail but the new
  52865. - # file should still install successfully.
  52866. - {
  52867. - if test -f "$dstdir/$dstfile"; then
  52868. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  52869. - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  52870. - || {
  52871. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  52872. - (exit 1); exit 1
  52873. - }
  52874. - else
  52875. - :
  52876. - fi
  52877. - } &&
  52878. -
  52879. - # Now rename the file to the real destination.
  52880. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  52881. - }
  52882. - }
  52883. - fi || { (exit 1); exit 1; }
  52884. -done
  52885. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  52886. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  52887. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  52888. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  52889. +
  52890. + # If -C, don't bother to copy if it wouldn't change the file.
  52891. + if $copy_on_change &&
  52892. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  52893. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  52894. +
  52895. + eval "$initialize_posix_glob" &&
  52896. + $posix_glob set -f &&
  52897. + set X $old && old=:$2:$4:$5:$6 &&
  52898. + set X $new && new=:$2:$4:$5:$6 &&
  52899. + $posix_glob set +f &&
  52900. +
  52901. + test "$old" = "$new" &&
  52902. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  52903. + then
  52904. + rm -f "$dsttmp"
  52905. + else
  52906. + # Rename the file to the real destination.
  52907. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  52908. -# The final little trick to "correctly" pass the exit status to the exit trap.
  52909. -{
  52910. - (exit 0); exit 0
  52911. -}
  52912. + # The rename failed, perhaps because mv can't rename something else
  52913. + # to itself, or perhaps because mv is so ancient that it does not
  52914. + # support -f.
  52915. + {
  52916. + # Now remove or move aside any old file at destination location.
  52917. + # We try this two ways since rm can't unlink itself on some
  52918. + # systems and the destination file might be busy for other
  52919. + # reasons. In this case, the final cleanup might fail but the new
  52920. + # file should still install successfully.
  52921. + {
  52922. + test ! -f "$dst" ||
  52923. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  52924. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  52925. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  52926. + } ||
  52927. + { echo "$0: cannot unlink or rename $dst" >&2
  52928. + (exit 1); exit 1
  52929. + }
  52930. + } &&
  52931. +
  52932. + # Now rename the file to the real destination.
  52933. + $doit $mvcmd "$dsttmp" "$dst"
  52934. + }
  52935. + fi || exit 1
  52936. +
  52937. + trap '' 0
  52938. + fi
  52939. +done
  52940. # Local variables:
  52941. # eval: (add-hook 'write-file-hooks 'time-stamp)
  52942. # time-stamp-start: "scriptversion="
  52943. # time-stamp-format: "%:y-%02m-%02d.%02H"
  52944. -# time-stamp-end: "$"
  52945. +# time-stamp-time-zone: "UTC"
  52946. +# time-stamp-end: "; # UTC"
  52947. # End:
  52948. diff -Nur faad2-2.7.orig/libfaad/Makefile.in faad2-2.7/libfaad/Makefile.in
  52949. --- faad2-2.7.orig/libfaad/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  52950. +++ faad2-2.7/libfaad/Makefile.in 2011-02-16 17:55:07.933552304 +0100
  52951. @@ -1,8 +1,9 @@
  52952. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  52953. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  52954. # @configure_input@
  52955. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  52956. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  52957. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  52958. +# Inc.
  52959. # This Makefile.in is free software; the Free Software Foundation
  52960. # gives unlimited permission to copy and/or distribute it,
  52961. # with or without modifications, as long as this notice is preserved.
  52962. @@ -15,15 +16,12 @@
  52963. @SET_MAKE@
  52964. -srcdir = @srcdir@
  52965. -top_srcdir = @top_srcdir@
  52966. VPATH = @srcdir@
  52967. pkgdatadir = $(datadir)/@PACKAGE@
  52968. -pkglibdir = $(libdir)/@PACKAGE@
  52969. pkgincludedir = $(includedir)/@PACKAGE@
  52970. -top_builddir = ..
  52971. +pkglibdir = $(libdir)/@PACKAGE@
  52972. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  52973. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  52974. -INSTALL = @INSTALL@
  52975. install_sh_DATA = $(install_sh) -c -m 644
  52976. install_sh_PROGRAM = $(install_sh) -c
  52977. install_sh_SCRIPT = $(install_sh) -c
  52978. @@ -47,14 +45,29 @@
  52979. mkinstalldirs = $(install_sh) -d
  52980. CONFIG_HEADER = $(top_builddir)/config.h
  52981. CONFIG_CLEAN_FILES =
  52982. +CONFIG_CLEAN_VPATH_FILES =
  52983. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  52984. am__vpath_adj = case $$p in \
  52985. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  52986. *) f=$$p;; \
  52987. esac;
  52988. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  52989. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  52990. +am__install_max = 40
  52991. +am__nobase_strip_setup = \
  52992. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  52993. +am__nobase_strip = \
  52994. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  52995. +am__nobase_list = $(am__nobase_strip_setup); \
  52996. + for p in $$list; do echo "$$p $$p"; done | \
  52997. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  52998. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  52999. + if (++n[$$2] == $(am__install_max)) \
  53000. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  53001. + END { for (dir in files) print dir, files[dir] }'
  53002. +am__base_list = \
  53003. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  53004. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  53005. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  53006. -libLTLIBRARIES_INSTALL = $(INSTALL)
  53007. LTLIBRARIES = $(lib_LTLIBRARIES)
  53008. libfaad_la_DEPENDENCIES =
  53009. am_libfaad_la_OBJECTS = bits.lo cfft.lo decoder.lo drc.lo drm_dec.lo \
  53010. @@ -65,27 +78,29 @@
  53011. sbr_fbt.lo sbr_hfadj.lo sbr_hfgen.lo sbr_huff.lo sbr_qmf.lo \
  53012. sbr_syntax.lo sbr_tf_grid.lo sbr_dec.lo
  53013. libfaad_la_OBJECTS = $(am_libfaad_la_OBJECTS)
  53014. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  53015. +libfaad_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  53016. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  53017. + $(libfaad_la_LDFLAGS) $(LDFLAGS) -o $@
  53018. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  53019. depcomp = $(SHELL) $(top_srcdir)/depcomp
  53020. am__depfiles_maybe = depfiles
  53021. +am__mv = mv -f
  53022. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  53023. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  53024. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  53025. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  53026. - $(AM_CFLAGS) $(CFLAGS)
  53027. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  53028. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  53029. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  53030. CCLD = $(CC)
  53031. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  53032. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  53033. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  53034. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  53035. + $(LDFLAGS) -o $@
  53036. SOURCES = $(libfaad_la_SOURCES)
  53037. DIST_SOURCES = $(libfaad_la_SOURCES)
  53038. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  53039. HEADERS = $(include_HEADERS)
  53040. ETAGS = etags
  53041. CTAGS = ctags
  53042. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  53043. ACLOCAL = @ACLOCAL@
  53044. -AMDEP_FALSE = @AMDEP_FALSE@
  53045. -AMDEP_TRUE = @AMDEP_TRUE@
  53046. AMTAR = @AMTAR@
  53047. AR = @AR@
  53048. AUTOCONF = @AUTOCONF@
  53049. @@ -104,55 +119,62 @@
  53050. CYGPATH_W = @CYGPATH_W@
  53051. DEFS = @DEFS@
  53052. DEPDIR = @DEPDIR@
  53053. -ECHO = @ECHO@
  53054. +DSYMUTIL = @DSYMUTIL@
  53055. +DUMPBIN = @DUMPBIN@
  53056. ECHO_C = @ECHO_C@
  53057. ECHO_N = @ECHO_N@
  53058. ECHO_T = @ECHO_T@
  53059. EGREP = @EGREP@
  53060. EXEEXT = @EXEEXT@
  53061. -F77 = @F77@
  53062. -FFLAGS = @FFLAGS@
  53063. +FGREP = @FGREP@
  53064. GREP = @GREP@
  53065. GTK_CONFIG = @GTK_CONFIG@
  53066. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  53067. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  53068. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  53069. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  53070. +INSTALL = @INSTALL@
  53071. INSTALL_DATA = @INSTALL_DATA@
  53072. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  53073. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  53074. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  53075. +LD = @LD@
  53076. LDFLAGS = @LDFLAGS@
  53077. LIBOBJS = @LIBOBJS@
  53078. LIBS = @LIBS@
  53079. LIBTOOL = @LIBTOOL@
  53080. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  53081. +LIPO = @LIPO@
  53082. LN_S = @LN_S@
  53083. LTLIBOBJS = @LTLIBOBJS@
  53084. MAKEINFO = @MAKEINFO@
  53085. +MKDIR_P = @MKDIR_P@
  53086. MP4FF_LIBS = @MP4FF_LIBS@
  53087. +NM = @NM@
  53088. +NMEDIT = @NMEDIT@
  53089. +OBJDUMP = @OBJDUMP@
  53090. OBJEXT = @OBJEXT@
  53091. +OTOOL = @OTOOL@
  53092. +OTOOL64 = @OTOOL64@
  53093. PACKAGE = @PACKAGE@
  53094. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  53095. PACKAGE_NAME = @PACKAGE_NAME@
  53096. PACKAGE_STRING = @PACKAGE_STRING@
  53097. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  53098. +PACKAGE_URL = @PACKAGE_URL@
  53099. PACKAGE_VERSION = @PACKAGE_VERSION@
  53100. PATH_SEPARATOR = @PATH_SEPARATOR@
  53101. RANLIB = @RANLIB@
  53102. RPMBUILD = @RPMBUILD@
  53103. +SED = @SED@
  53104. SET_MAKE = @SET_MAKE@
  53105. SHELL = @SHELL@
  53106. STRIP = @STRIP@
  53107. VERSION = @VERSION@
  53108. XMMS_CONFIG = @XMMS_CONFIG@
  53109. +abs_builddir = @abs_builddir@
  53110. +abs_srcdir = @abs_srcdir@
  53111. +abs_top_builddir = @abs_top_builddir@
  53112. +abs_top_srcdir = @abs_top_srcdir@
  53113. ac_ct_CC = @ac_ct_CC@
  53114. ac_ct_CXX = @ac_ct_CXX@
  53115. -ac_ct_F77 = @ac_ct_F77@
  53116. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  53117. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  53118. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  53119. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  53120. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  53121. am__include = @am__include@
  53122. am__leading_dot = @am__leading_dot@
  53123. am__quote = @am__quote@
  53124. @@ -164,6 +186,7 @@
  53125. build_cpu = @build_cpu@
  53126. build_os = @build_os@
  53127. build_vendor = @build_vendor@
  53128. +builddir = @builddir@
  53129. datadir = @datadir@
  53130. datarootdir = @datarootdir@
  53131. docdir = @docdir@
  53132. @@ -183,6 +206,7 @@
  53133. libexecdir = @libexecdir@
  53134. localedir = @localedir@
  53135. localstatedir = @localstatedir@
  53136. +lt_ECHO = @lt_ECHO@
  53137. mandir = @mandir@
  53138. mkdir_p = @mkdir_p@
  53139. oldincludedir = @oldincludedir@
  53140. @@ -192,8 +216,12 @@
  53141. psdir = @psdir@
  53142. sbindir = @sbindir@
  53143. sharedstatedir = @sharedstatedir@
  53144. +srcdir = @srcdir@
  53145. sysconfdir = @sysconfdir@
  53146. target_alias = @target_alias@
  53147. +top_build_prefix = @top_build_prefix@
  53148. +top_builddir = @top_builddir@
  53149. +top_srcdir = @top_srcdir@
  53150. lib_LTLIBRARIES = libfaad.la
  53151. AM_CFLAGS = -iquote $(top_srcdir)/include
  53152. include_HEADERS = $(top_srcdir)/include/faad.h \
  53153. @@ -231,14 +259,14 @@
  53154. @for dep in $?; do \
  53155. case '$(am__configure_deps)' in \
  53156. *$$dep*) \
  53157. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  53158. - && exit 0; \
  53159. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  53160. + && { if test -f $@; then exit 0; else break; fi; }; \
  53161. exit 1;; \
  53162. esac; \
  53163. done; \
  53164. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfaad/Makefile'; \
  53165. - cd $(top_srcdir) && \
  53166. - $(AUTOMAKE) --gnu libfaad/Makefile
  53167. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfaad/Makefile'; \
  53168. + $(am__cd) $(top_srcdir) && \
  53169. + $(AUTOMAKE) --gnu libfaad/Makefile
  53170. .PRECIOUS: Makefile
  53171. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  53172. @case '$?' in \
  53173. @@ -256,23 +284,28 @@
  53174. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53175. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  53176. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  53177. +$(am__aclocal_m4_deps):
  53178. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  53179. @$(NORMAL_INSTALL)
  53180. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  53181. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  53182. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  53183. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  53184. + list2=; for p in $$list; do \
  53185. if test -f $$p; then \
  53186. - f=$(am__strip_dir) \
  53187. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  53188. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  53189. + list2="$$list2 $$p"; \
  53190. else :; fi; \
  53191. - done
  53192. + done; \
  53193. + test -z "$$list2" || { \
  53194. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  53195. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  53196. + }
  53197. uninstall-libLTLIBRARIES:
  53198. @$(NORMAL_UNINSTALL)
  53199. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  53200. - p=$(am__strip_dir) \
  53201. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  53202. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  53203. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  53204. + for p in $$list; do \
  53205. + $(am__strip_dir) \
  53206. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  53207. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  53208. done
  53209. clean-libLTLIBRARIES:
  53210. @@ -284,7 +317,7 @@
  53211. rm -f "$${dir}/so_locations"; \
  53212. done
  53213. libfaad.la: $(libfaad_la_OBJECTS) $(libfaad_la_DEPENDENCIES)
  53214. - $(LINK) -rpath $(libdir) $(libfaad_la_LDFLAGS) $(libfaad_la_OBJECTS) $(libfaad_la_LIBADD) $(LIBS)
  53215. + $(libfaad_la_LINK) -rpath $(libdir) $(libfaad_la_OBJECTS) $(libfaad_la_LIBADD) $(LIBS)
  53216. mostlyclean-compile:
  53217. -rm -f *.$(OBJEXT)
  53218. @@ -332,22 +365,22 @@
  53219. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tns.Plo@am__quote@
  53220. .c.o:
  53221. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  53222. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  53223. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53224. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53225. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53226. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53227. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  53228. .c.obj:
  53229. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  53230. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  53231. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  53232. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  53233. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  53234. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53235. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  53236. .c.lo:
  53237. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  53238. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  53239. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  53240. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  53241. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  53242. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  53243. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  53244. @@ -357,101 +390,106 @@
  53245. clean-libtool:
  53246. -rm -rf .libs _libs
  53247. -
  53248. -distclean-libtool:
  53249. - -rm -f libtool
  53250. -uninstall-info-am:
  53251. install-includeHEADERS: $(include_HEADERS)
  53252. @$(NORMAL_INSTALL)
  53253. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  53254. - @list='$(include_HEADERS)'; for p in $$list; do \
  53255. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  53256. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  53257. + for p in $$list; do \
  53258. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  53259. - f=$(am__strip_dir) \
  53260. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  53261. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  53262. + echo "$$d$$p"; \
  53263. + done | $(am__base_list) | \
  53264. + while read files; do \
  53265. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  53266. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  53267. done
  53268. uninstall-includeHEADERS:
  53269. @$(NORMAL_UNINSTALL)
  53270. - @list='$(include_HEADERS)'; for p in $$list; do \
  53271. - f=$(am__strip_dir) \
  53272. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  53273. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  53274. - done
  53275. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  53276. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  53277. + test -n "$$files" || exit 0; \
  53278. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  53279. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  53280. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  53281. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53282. unique=`for i in $$list; do \
  53283. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53284. done | \
  53285. - $(AWK) ' { files[$$0] = 1; } \
  53286. - END { for (i in files) print i; }'`; \
  53287. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53288. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  53289. mkid -fID $$unique
  53290. tags: TAGS
  53291. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53292. $(TAGS_FILES) $(LISP)
  53293. - tags=; \
  53294. + set x; \
  53295. here=`pwd`; \
  53296. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53297. unique=`for i in $$list; do \
  53298. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53299. done | \
  53300. - $(AWK) ' { files[$$0] = 1; } \
  53301. - END { for (i in files) print i; }'`; \
  53302. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  53303. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53304. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  53305. + shift; \
  53306. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  53307. test -n "$$unique" || unique=$$empty_fix; \
  53308. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53309. - $$tags $$unique; \
  53310. + if test $$# -gt 0; then \
  53311. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53312. + "$$@" $$unique; \
  53313. + else \
  53314. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53315. + $$unique; \
  53316. + fi; \
  53317. fi
  53318. ctags: CTAGS
  53319. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  53320. $(TAGS_FILES) $(LISP)
  53321. - tags=; \
  53322. - here=`pwd`; \
  53323. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  53324. unique=`for i in $$list; do \
  53325. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53326. done | \
  53327. - $(AWK) ' { files[$$0] = 1; } \
  53328. - END { for (i in files) print i; }'`; \
  53329. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  53330. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53331. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  53332. + test -z "$(CTAGS_ARGS)$$unique" \
  53333. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  53334. - $$tags $$unique
  53335. + $$unique
  53336. GTAGS:
  53337. here=`$(am__cd) $(top_builddir) && pwd` \
  53338. - && cd $(top_srcdir) \
  53339. - && gtags -i $(GTAGS_ARGS) $$here
  53340. + && $(am__cd) $(top_srcdir) \
  53341. + && gtags -i $(GTAGS_ARGS) "$$here"
  53342. distclean-tags:
  53343. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  53344. distdir: $(DISTFILES)
  53345. - $(mkdir_p) $(distdir)/../include
  53346. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  53347. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  53348. - list='$(DISTFILES)'; for file in $$list; do \
  53349. - case $$file in \
  53350. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  53351. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  53352. - esac; \
  53353. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53354. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53355. + list='$(DISTFILES)'; \
  53356. + dist_files=`for file in $$list; do echo $$file; done | \
  53357. + sed -e "s|^$$srcdirstrip/||;t" \
  53358. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  53359. + case $$dist_files in \
  53360. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  53361. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  53362. + sort -u` ;; \
  53363. + esac; \
  53364. + for file in $$dist_files; do \
  53365. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  53366. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  53367. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  53368. - dir="/$$dir"; \
  53369. - $(mkdir_p) "$(distdir)$$dir"; \
  53370. - else \
  53371. - dir=''; \
  53372. - fi; \
  53373. if test -d $$d/$$file; then \
  53374. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  53375. + if test -d "$(distdir)/$$file"; then \
  53376. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53377. + fi; \
  53378. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  53379. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  53380. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  53381. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53382. fi; \
  53383. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  53384. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  53385. else \
  53386. - test -f $(distdir)/$$file \
  53387. - || cp -p $$d/$$file $(distdir)/$$file \
  53388. + test -f "$(distdir)/$$file" \
  53389. + || cp -p $$d/$$file "$(distdir)/$$file" \
  53390. || exit 1; \
  53391. fi; \
  53392. done
  53393. @@ -460,7 +498,7 @@
  53394. all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  53395. installdirs:
  53396. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  53397. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  53398. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  53399. done
  53400. install: install-am
  53401. install-exec: install-exec-am
  53402. @@ -482,6 +520,7 @@
  53403. distclean-generic:
  53404. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  53405. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  53406. maintainer-clean-generic:
  53407. @echo "This command is intended for maintainers to use"
  53408. @@ -495,7 +534,7 @@
  53409. -rm -rf ./$(DEPDIR)
  53410. -rm -f Makefile
  53411. distclean-am: clean-am distclean-compile distclean-generic \
  53412. - distclean-libtool distclean-tags
  53413. + distclean-tags
  53414. dvi: dvi-am
  53415. @@ -503,18 +542,38 @@
  53416. html: html-am
  53417. +html-am:
  53418. +
  53419. info: info-am
  53420. info-am:
  53421. install-data-am: install-includeHEADERS
  53422. +install-dvi: install-dvi-am
  53423. +
  53424. +install-dvi-am:
  53425. +
  53426. install-exec-am: install-libLTLIBRARIES
  53427. +install-html: install-html-am
  53428. +
  53429. +install-html-am:
  53430. +
  53431. install-info: install-info-am
  53432. +install-info-am:
  53433. +
  53434. install-man:
  53435. +install-pdf: install-pdf-am
  53436. +
  53437. +install-pdf-am:
  53438. +
  53439. +install-ps: install-ps-am
  53440. +
  53441. +install-ps-am:
  53442. +
  53443. installcheck-am:
  53444. maintainer-clean: maintainer-clean-am
  53445. @@ -535,23 +594,26 @@
  53446. ps-am:
  53447. -uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  53448. - uninstall-libLTLIBRARIES
  53449. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  53450. +
  53451. +.MAKE: install-am install-strip
  53452. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  53453. clean-libLTLIBRARIES clean-libtool ctags distclean \
  53454. distclean-compile distclean-generic distclean-libtool \
  53455. distclean-tags distdir dvi dvi-am html html-am info info-am \
  53456. - install install-am install-data install-data-am install-exec \
  53457. - install-exec-am install-includeHEADERS install-info \
  53458. - install-info-am install-libLTLIBRARIES install-man \
  53459. - install-strip installcheck installcheck-am installdirs \
  53460. - maintainer-clean maintainer-clean-generic mostlyclean \
  53461. - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  53462. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  53463. - uninstall-includeHEADERS uninstall-info-am \
  53464. + install install-am install-data install-data-am install-dvi \
  53465. + install-dvi-am install-exec install-exec-am install-html \
  53466. + install-html-am install-includeHEADERS install-info \
  53467. + install-info-am install-libLTLIBRARIES install-man install-pdf \
  53468. + install-pdf-am install-ps install-ps-am install-strip \
  53469. + installcheck installcheck-am installdirs maintainer-clean \
  53470. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  53471. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  53472. + tags uninstall uninstall-am uninstall-includeHEADERS \
  53473. uninstall-libLTLIBRARIES
  53474. +
  53475. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  53476. # Otherwise a system limit (for SysV at least) may be exceeded.
  53477. .NOEXPORT:
  53478. diff -Nur faad2-2.7.orig/ltmain.sh faad2-2.7/ltmain.sh
  53479. --- faad2-2.7.orig/ltmain.sh 2006-03-22 01:06:55.000000000 +0100
  53480. +++ faad2-2.7/ltmain.sh 2011-02-16 17:55:04.004802920 +0100
  53481. @@ -1,30 +1,174 @@
  53482. -# ltmain.sh - Provide generalized library-building support services.
  53483. -# NOTE: Changing this file will not affect anything until you rerun configure.
  53484. -#
  53485. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  53486. -# Free Software Foundation, Inc.
  53487. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  53488. -#
  53489. -# This program is free software; you can redistribute it and/or modify
  53490. +# Generated from ltmain.m4sh.
  53491. +
  53492. +# ltmain.sh (GNU libtool) 2.2.6b
  53493. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  53494. +
  53495. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  53496. +# This is free software; see the source for copying conditions. There is NO
  53497. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  53498. +
  53499. +# GNU Libtool is free software; you can redistribute it and/or modify
  53500. # it under the terms of the GNU General Public License as published by
  53501. # the Free Software Foundation; either version 2 of the License, or
  53502. # (at your option) any later version.
  53503. #
  53504. -# This program is distributed in the hope that it will be useful, but
  53505. +# As a special exception to the GNU General Public License,
  53506. +# if you distribute this file as part of a program or library that
  53507. +# is built using GNU Libtool, you may include this file under the
  53508. +# same distribution terms that you use for the rest of that program.
  53509. +#
  53510. +# GNU Libtool is distributed in the hope that it will be useful, but
  53511. # WITHOUT ANY WARRANTY; without even the implied warranty of
  53512. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  53513. # General Public License for more details.
  53514. #
  53515. # You should have received a copy of the GNU General Public License
  53516. -# along with this program; if not, write to the Free Software
  53517. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  53518. +# along with GNU Libtool; see the file COPYING. If not, a copy
  53519. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  53520. +# or obtained by writing to the Free Software Foundation, Inc.,
  53521. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  53522. +
  53523. +# Usage: $progname [OPTION]... [MODE-ARG]...
  53524. +#
  53525. +# Provide generalized library-building support services.
  53526. #
  53527. -# As a special exception to the GNU General Public License, if you
  53528. -# distribute this file as part of a program that contains a
  53529. -# configuration script generated by Autoconf, you may include it under
  53530. -# the same distribution terms that you use for the rest of that program.
  53531. +# --config show all configuration variables
  53532. +# --debug enable verbose shell tracing
  53533. +# -n, --dry-run display commands without modifying any files
  53534. +# --features display basic configuration information and exit
  53535. +# --mode=MODE use operation mode MODE
  53536. +# --preserve-dup-deps don't remove duplicate dependency libraries
  53537. +# --quiet, --silent don't print informational messages
  53538. +# --tag=TAG use configuration variables from tag TAG
  53539. +# -v, --verbose print informational messages (default)
  53540. +# --version print version information
  53541. +# -h, --help print short or long help message
  53542. +#
  53543. +# MODE must be one of the following:
  53544. +#
  53545. +# clean remove files from the build directory
  53546. +# compile compile a source file into a libtool object
  53547. +# execute automatically set library path, then run a program
  53548. +# finish complete the installation of libtool libraries
  53549. +# install install libraries or executables
  53550. +# link create a library or an executable
  53551. +# uninstall remove libraries from an installed directory
  53552. +#
  53553. +# MODE-ARGS vary depending on the MODE.
  53554. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  53555. +#
  53556. +# When reporting a bug, please describe a test case to reproduce it and
  53557. +# include the following information:
  53558. +#
  53559. +# host-triplet: $host
  53560. +# shell: $SHELL
  53561. +# compiler: $LTCC
  53562. +# compiler flags: $LTCFLAGS
  53563. +# linker: $LD (gnu? $with_gnu_ld)
  53564. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  53565. +# automake: $automake_version
  53566. +# autoconf: $autoconf_version
  53567. +#
  53568. +# Report bugs to <bug-libtool@gnu.org>.
  53569. +
  53570. +PROGRAM=ltmain.sh
  53571. +PACKAGE=libtool
  53572. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  53573. +TIMESTAMP=""
  53574. +package_revision=1.3017
  53575. +
  53576. +# Be Bourne compatible
  53577. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  53578. + emulate sh
  53579. + NULLCMD=:
  53580. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  53581. + # is contrary to our usage. Disable this feature.
  53582. + alias -g '${1+"$@"}'='"$@"'
  53583. + setopt NO_GLOB_SUBST
  53584. +else
  53585. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  53586. +fi
  53587. +BIN_SH=xpg4; export BIN_SH # for Tru64
  53588. +DUALCASE=1; export DUALCASE # for MKS sh
  53589. +
  53590. +# NLS nuisances: We save the old values to restore during execute mode.
  53591. +# Only set LANG and LC_ALL to C if already set.
  53592. +# These must not be set unconditionally because not all systems understand
  53593. +# e.g. LANG=C (notably SCO).
  53594. +lt_user_locale=
  53595. +lt_safe_locale=
  53596. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  53597. +do
  53598. + eval "if test \"\${$lt_var+set}\" = set; then
  53599. + save_$lt_var=\$$lt_var
  53600. + $lt_var=C
  53601. + export $lt_var
  53602. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  53603. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  53604. + fi"
  53605. +done
  53606. +
  53607. +$lt_unset CDPATH
  53608. +
  53609. +
  53610. +
  53611. +
  53612. +
  53613. +: ${CP="cp -f"}
  53614. +: ${ECHO="echo"}
  53615. +: ${EGREP="/bin/grep -E"}
  53616. +: ${FGREP="/bin/grep -F"}
  53617. +: ${GREP="/bin/grep"}
  53618. +: ${LN_S="ln -s"}
  53619. +: ${MAKE="make"}
  53620. +: ${MKDIR="mkdir"}
  53621. +: ${MV="mv -f"}
  53622. +: ${RM="rm -f"}
  53623. +: ${SED="/bin/sed"}
  53624. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  53625. +: ${Xsed="$SED -e 1s/^X//"}
  53626. -basename="s,^.*/,,g"
  53627. +# Global variables:
  53628. +EXIT_SUCCESS=0
  53629. +EXIT_FAILURE=1
  53630. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  53631. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  53632. +
  53633. +exit_status=$EXIT_SUCCESS
  53634. +
  53635. +# Make sure IFS has a sensible default
  53636. +lt_nl='
  53637. +'
  53638. +IFS=" $lt_nl"
  53639. +
  53640. +dirname="s,/[^/]*$,,"
  53641. +basename="s,^.*/,,"
  53642. +
  53643. +# func_dirname_and_basename file append nondir_replacement
  53644. +# perform func_basename and func_dirname in a single function
  53645. +# call:
  53646. +# dirname: Compute the dirname of FILE. If nonempty,
  53647. +# add APPEND to the result, otherwise set result
  53648. +# to NONDIR_REPLACEMENT.
  53649. +# value returned in "$func_dirname_result"
  53650. +# basename: Compute filename of FILE.
  53651. +# value retuned in "$func_basename_result"
  53652. +# Implementation must be kept synchronized with func_dirname
  53653. +# and func_basename. For efficiency, we do not delegate to
  53654. +# those functions but instead duplicate the functionality here.
  53655. +func_dirname_and_basename ()
  53656. +{
  53657. + # Extract subdirectory from the argument.
  53658. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  53659. + if test "X$func_dirname_result" = "X${1}"; then
  53660. + func_dirname_result="${3}"
  53661. + else
  53662. + func_dirname_result="$func_dirname_result${2}"
  53663. + fi
  53664. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  53665. +}
  53666. +
  53667. +# Generated shell functions inserted here.
  53668. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  53669. # is ksh but when the shell is invoked as "sh" and the current value of
  53670. @@ -34,112 +178,174 @@
  53671. progpath="$0"
  53672. # The name of this program:
  53673. -progname=`echo "$progpath" | $SED $basename`
  53674. -modename="$progname"
  53675. +# In the unlikely event $progname began with a '-', it would play havoc with
  53676. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  53677. +func_dirname_and_basename "$progpath"
  53678. +progname=$func_basename_result
  53679. +case $progname in
  53680. + -*) progname=./$progname ;;
  53681. +esac
  53682. -# Global variables:
  53683. -EXIT_SUCCESS=0
  53684. -EXIT_FAILURE=1
  53685. +# Make sure we have an absolute path for reexecution:
  53686. +case $progpath in
  53687. + [\\/]*|[A-Za-z]:\\*) ;;
  53688. + *[\\/]*)
  53689. + progdir=$func_dirname_result
  53690. + progdir=`cd "$progdir" && pwd`
  53691. + progpath="$progdir/$progname"
  53692. + ;;
  53693. + *)
  53694. + save_IFS="$IFS"
  53695. + IFS=:
  53696. + for progdir in $PATH; do
  53697. + IFS="$save_IFS"
  53698. + test -x "$progdir/$progname" && break
  53699. + done
  53700. + IFS="$save_IFS"
  53701. + test -n "$progdir" || progdir=`pwd`
  53702. + progpath="$progdir/$progname"
  53703. + ;;
  53704. +esac
  53705. -PROGRAM=ltmain.sh
  53706. -PACKAGE=libtool
  53707. -VERSION="1.5.22 Debian 1.5.22-4"
  53708. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  53709. +# Sed substitution that helps us do robust quoting. It backslashifies
  53710. +# metacharacters that are still active within double-quoted strings.
  53711. +Xsed="${SED}"' -e 1s/^X//'
  53712. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  53713. -# See if we are running on zsh, and set the options which allow our
  53714. -# commands through without removal of \ escapes.
  53715. -if test -n "${ZSH_VERSION+set}" ; then
  53716. - setopt NO_GLOB_SUBST
  53717. -fi
  53718. +# Same as above, but do not quote variable references.
  53719. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  53720. -# Check that we have a working $echo.
  53721. -if test "X$1" = X--no-reexec; then
  53722. - # Discard the --no-reexec flag, and continue.
  53723. - shift
  53724. -elif test "X$1" = X--fallback-echo; then
  53725. - # Avoid inline document here, it may be left over
  53726. - :
  53727. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  53728. - # Yippee, $echo works!
  53729. - :
  53730. -else
  53731. - # Restart under the correct shell, and then maybe $echo will work.
  53732. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  53733. -fi
  53734. +# Re-`\' parameter expansions in output of double_quote_subst that were
  53735. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  53736. +# in input to double_quote_subst, that '$' was protected from expansion.
  53737. +# Since each input `\' is now two `\'s, look for any number of runs of
  53738. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  53739. +bs='\\'
  53740. +bs2='\\\\'
  53741. +bs4='\\\\\\\\'
  53742. +dollar='\$'
  53743. +sed_double_backslash="\
  53744. + s/$bs4/&\\
  53745. +/g
  53746. + s/^$bs2$dollar/$bs&/
  53747. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  53748. + s/\n//g"
  53749. +
  53750. +# Standard options:
  53751. +opt_dry_run=false
  53752. +opt_help=false
  53753. +opt_quiet=false
  53754. +opt_verbose=false
  53755. +opt_warning=:
  53756. +
  53757. +# func_echo arg...
  53758. +# Echo program name prefixed message, along with the current mode
  53759. +# name if it has been set yet.
  53760. +func_echo ()
  53761. +{
  53762. + $ECHO "$progname${mode+: }$mode: $*"
  53763. +}
  53764. -if test "X$1" = X--fallback-echo; then
  53765. - # used as fallback echo
  53766. - shift
  53767. - cat <<EOF
  53768. -$*
  53769. -EOF
  53770. - exit $EXIT_SUCCESS
  53771. -fi
  53772. +# func_verbose arg...
  53773. +# Echo program name prefixed message in verbose mode only.
  53774. +func_verbose ()
  53775. +{
  53776. + $opt_verbose && func_echo ${1+"$@"}
  53777. -default_mode=
  53778. -help="Try \`$progname --help' for more information."
  53779. -magic="%%%MAGIC variable%%%"
  53780. -mkdir="mkdir"
  53781. -mv="mv -f"
  53782. -rm="rm -f"
  53783. + # A bug in bash halts the script if the last line of a function
  53784. + # fails when set -e is in force, so we need another command to
  53785. + # work around that:
  53786. + :
  53787. +}
  53788. -# Sed substitution that helps us do robust quoting. It backslashifies
  53789. -# metacharacters that are still active within double-quoted strings.
  53790. -Xsed="${SED}"' -e 1s/^X//'
  53791. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  53792. -# test EBCDIC or ASCII
  53793. -case `echo X|tr X '\101'` in
  53794. - A) # ASCII based system
  53795. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  53796. - SP2NL='tr \040 \012'
  53797. - NL2SP='tr \015\012 \040\040'
  53798. - ;;
  53799. - *) # EBCDIC based system
  53800. - SP2NL='tr \100 \n'
  53801. - NL2SP='tr \r\n \100\100'
  53802. - ;;
  53803. -esac
  53804. +# func_error arg...
  53805. +# Echo program name prefixed message to standard error.
  53806. +func_error ()
  53807. +{
  53808. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  53809. +}
  53810. -# NLS nuisances.
  53811. -# Only set LANG and LC_ALL to C if already set.
  53812. -# These must not be set unconditionally because not all systems understand
  53813. -# e.g. LANG=C (notably SCO).
  53814. -# We save the old values to restore during execute mode.
  53815. -if test "${LC_ALL+set}" = set; then
  53816. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  53817. -fi
  53818. -if test "${LANG+set}" = set; then
  53819. - save_LANG="$LANG"; LANG=C; export LANG
  53820. -fi
  53821. +# func_warning arg...
  53822. +# Echo program name prefixed warning message to standard error.
  53823. +func_warning ()
  53824. +{
  53825. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  53826. -# Make sure IFS has a sensible default
  53827. -lt_nl='
  53828. -'
  53829. -IFS=" $lt_nl"
  53830. + # bash bug again:
  53831. + :
  53832. +}
  53833. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  53834. - $echo "$modename: not configured to build any kind of library" 1>&2
  53835. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  53836. - exit $EXIT_FAILURE
  53837. -fi
  53838. +# func_fatal_error arg...
  53839. +# Echo program name prefixed message to standard error, and exit.
  53840. +func_fatal_error ()
  53841. +{
  53842. + func_error ${1+"$@"}
  53843. + exit $EXIT_FAILURE
  53844. +}
  53845. -# Global variables.
  53846. -mode=$default_mode
  53847. -nonopt=
  53848. -prev=
  53849. -prevopt=
  53850. -run=
  53851. -show="$echo"
  53852. -show_help=
  53853. -execute_dlfiles=
  53854. -duplicate_deps=no
  53855. -preserve_args=
  53856. -lo2o="s/\\.lo\$/.${objext}/"
  53857. -o2lo="s/\\.${objext}\$/.lo/"
  53858. +# func_fatal_help arg...
  53859. +# Echo program name prefixed message to standard error, followed by
  53860. +# a help hint, and exit.
  53861. +func_fatal_help ()
  53862. +{
  53863. + func_error ${1+"$@"}
  53864. + func_fatal_error "$help"
  53865. +}
  53866. +help="Try \`$progname --help' for more information." ## default
  53867. +
  53868. +
  53869. +# func_grep expression filename
  53870. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  53871. +func_grep ()
  53872. +{
  53873. + $GREP "$1" "$2" >/dev/null 2>&1
  53874. +}
  53875. +
  53876. +
  53877. +# func_mkdir_p directory-path
  53878. +# Make sure the entire path to DIRECTORY-PATH is available.
  53879. +func_mkdir_p ()
  53880. +{
  53881. + my_directory_path="$1"
  53882. + my_dir_list=
  53883. +
  53884. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  53885. +
  53886. + # Protect directory names starting with `-'
  53887. + case $my_directory_path in
  53888. + -*) my_directory_path="./$my_directory_path" ;;
  53889. + esac
  53890. +
  53891. + # While some portion of DIR does not yet exist...
  53892. + while test ! -d "$my_directory_path"; do
  53893. + # ...make a list in topmost first order. Use a colon delimited
  53894. + # list incase some portion of path contains whitespace.
  53895. + my_dir_list="$my_directory_path:$my_dir_list"
  53896. +
  53897. + # If the last portion added has no slash in it, the list is done
  53898. + case $my_directory_path in */*) ;; *) break ;; esac
  53899. +
  53900. + # ...otherwise throw away the child directory and loop
  53901. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  53902. + done
  53903. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  53904. +
  53905. + save_mkdir_p_IFS="$IFS"; IFS=':'
  53906. + for my_dir in $my_dir_list; do
  53907. + IFS="$save_mkdir_p_IFS"
  53908. + # mkdir can fail with a `File exist' error if two processes
  53909. + # try to create one of the directories concurrently. Don't
  53910. + # stop in that case!
  53911. + $MKDIR "$my_dir" 2>/dev/null || :
  53912. + done
  53913. + IFS="$save_mkdir_p_IFS"
  53914. +
  53915. + # Bail out if we (or some other process) failed to create a directory.
  53916. + test -d "$my_directory_path" || \
  53917. + func_fatal_error "Failed to create \`$1'"
  53918. + fi
  53919. +}
  53920. -#####################################
  53921. -# Shell function definitions:
  53922. -# This seems to be the best place for them
  53923. # func_mktempdir [string]
  53924. # Make a temporary directory that won't clash with other running
  53925. @@ -149,7 +355,7 @@
  53926. {
  53927. my_template="${TMPDIR-/tmp}/${1-$progname}"
  53928. - if test "$run" = ":"; then
  53929. + if test "$opt_dry_run" = ":"; then
  53930. # Return a directory name, but don't create it in dry-run mode
  53931. my_tmpdir="${my_template}-$$"
  53932. else
  53933. @@ -158,546 +364,818 @@
  53934. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  53935. if test ! -d "$my_tmpdir"; then
  53936. - # Failing that, at least try and use $RANDOM to avoid a race
  53937. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  53938. + # Failing that, at least try and use $RANDOM to avoid a race
  53939. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  53940. - save_mktempdir_umask=`umask`
  53941. - umask 0077
  53942. - $mkdir "$my_tmpdir"
  53943. - umask $save_mktempdir_umask
  53944. + save_mktempdir_umask=`umask`
  53945. + umask 0077
  53946. + $MKDIR "$my_tmpdir"
  53947. + umask $save_mktempdir_umask
  53948. fi
  53949. # If we're not in dry-run mode, bomb out on failure
  53950. - test -d "$my_tmpdir" || {
  53951. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  53952. - exit $EXIT_FAILURE
  53953. - }
  53954. + test -d "$my_tmpdir" || \
  53955. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  53956. fi
  53957. - $echo "X$my_tmpdir" | $Xsed
  53958. + $ECHO "X$my_tmpdir" | $Xsed
  53959. }
  53960. -# func_win32_libid arg
  53961. -# return the library type of file 'arg'
  53962. -#
  53963. -# Need a lot of goo to handle *both* DLLs and import libs
  53964. -# Has to be a shell function in order to 'eat' the argument
  53965. -# that is supplied when $file_magic_command is called.
  53966. -func_win32_libid ()
  53967. +# func_quote_for_eval arg
  53968. +# Aesthetically quote ARG to be evaled later.
  53969. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  53970. +# is double-quoted, suitable for a subsequent eval, whereas
  53971. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  53972. +# which are still active within double quotes backslashified.
  53973. +func_quote_for_eval ()
  53974. {
  53975. - win32_libid_type="unknown"
  53976. - win32_fileres=`file -L $1 2>/dev/null`
  53977. - case $win32_fileres in
  53978. - *ar\ archive\ import\ library*) # definitely import
  53979. - win32_libid_type="x86 archive import"
  53980. - ;;
  53981. - *ar\ archive*) # could be an import, or static
  53982. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  53983. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  53984. - win32_nmres=`eval $NM -f posix -A $1 | \
  53985. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  53986. - case $win32_nmres in
  53987. - import*) win32_libid_type="x86 archive import";;
  53988. - *) win32_libid_type="x86 archive static";;
  53989. - esac
  53990. - fi
  53991. - ;;
  53992. - *DLL*)
  53993. - win32_libid_type="x86 DLL"
  53994. - ;;
  53995. - *executable*) # but shell scripts are "executable" too...
  53996. - case $win32_fileres in
  53997. - *MS\ Windows\ PE\ Intel*)
  53998. - win32_libid_type="x86 DLL"
  53999. - ;;
  54000. + case $1 in
  54001. + *[\\\`\"\$]*)
  54002. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  54003. + *)
  54004. + func_quote_for_eval_unquoted_result="$1" ;;
  54005. + esac
  54006. +
  54007. + case $func_quote_for_eval_unquoted_result in
  54008. + # Double-quote args containing shell metacharacters to delay
  54009. + # word splitting, command substitution and and variable
  54010. + # expansion for a subsequent eval.
  54011. + # Many Bourne shells cannot handle close brackets correctly
  54012. + # in scan sets, so we specify it separately.
  54013. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54014. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  54015. + ;;
  54016. + *)
  54017. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  54018. esac
  54019. - ;;
  54020. - esac
  54021. - $echo $win32_libid_type
  54022. }
  54023. -# func_infer_tag arg
  54024. -# Infer tagged configuration to use if any are available and
  54025. -# if one wasn't chosen via the "--tag" command line option.
  54026. -# Only attempt this if the compiler in the base compile
  54027. -# command doesn't match the default compiler.
  54028. -# arg is usually of the form 'gcc ...'
  54029. -func_infer_tag ()
  54030. +# func_quote_for_expand arg
  54031. +# Aesthetically quote ARG to be evaled later; same as above,
  54032. +# but do not quote variable references.
  54033. +func_quote_for_expand ()
  54034. {
  54035. - if test -n "$available_tags" && test -z "$tagname"; then
  54036. - CC_quoted=
  54037. - for arg in $CC; do
  54038. - case $arg in
  54039. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54040. - arg="\"$arg\""
  54041. - ;;
  54042. - esac
  54043. - CC_quoted="$CC_quoted $arg"
  54044. - done
  54045. - case $@ in
  54046. - # Blanks in the command may have been stripped by the calling shell,
  54047. - # but not from the CC environment variable when configure was run.
  54048. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  54049. - # Blanks at the start of $base_compile will cause this to fail
  54050. - # if we don't check for them as well.
  54051. + case $1 in
  54052. + *[\\\`\"]*)
  54053. + my_arg=`$ECHO "X$1" | $Xsed \
  54054. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  54055. *)
  54056. - for z in $available_tags; do
  54057. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  54058. - # Evaluate the configuration.
  54059. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  54060. - CC_quoted=
  54061. - for arg in $CC; do
  54062. - # Double-quote args containing other shell metacharacters.
  54063. - case $arg in
  54064. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54065. - arg="\"$arg\""
  54066. - ;;
  54067. - esac
  54068. - CC_quoted="$CC_quoted $arg"
  54069. - done
  54070. - case "$@ " in
  54071. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  54072. - # The compiler in the base compile command matches
  54073. - # the one in the tagged configuration.
  54074. - # Assume this is the tagged configuration we want.
  54075. - tagname=$z
  54076. - break
  54077. - ;;
  54078. - esac
  54079. - fi
  54080. - done
  54081. - # If $tagname still isn't set, then no tagged configuration
  54082. - # was found and let the user know that the "--tag" command
  54083. - # line option must be used.
  54084. - if test -z "$tagname"; then
  54085. - $echo "$modename: unable to infer tagged configuration"
  54086. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  54087. - exit $EXIT_FAILURE
  54088. -# else
  54089. -# $echo "$modename: using $tagname tagged configuration"
  54090. - fi
  54091. - ;;
  54092. - esac
  54093. - fi
  54094. + my_arg="$1" ;;
  54095. + esac
  54096. +
  54097. + case $my_arg in
  54098. + # Double-quote args containing shell metacharacters to delay
  54099. + # word splitting and command substitution for a subsequent eval.
  54100. + # Many Bourne shells cannot handle close brackets correctly
  54101. + # in scan sets, so we specify it separately.
  54102. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54103. + my_arg="\"$my_arg\""
  54104. + ;;
  54105. + esac
  54106. +
  54107. + func_quote_for_expand_result="$my_arg"
  54108. }
  54109. -# func_extract_an_archive dir oldlib
  54110. -func_extract_an_archive ()
  54111. +# func_show_eval cmd [fail_exp]
  54112. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  54113. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  54114. +# is given, then evaluate it.
  54115. +func_show_eval ()
  54116. {
  54117. - f_ex_an_ar_dir="$1"; shift
  54118. - f_ex_an_ar_oldlib="$1"
  54119. + my_cmd="$1"
  54120. + my_fail_exp="${2-:}"
  54121. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  54122. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  54123. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  54124. - :
  54125. - else
  54126. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  54127. - exit $EXIT_FAILURE
  54128. + ${opt_silent-false} || {
  54129. + func_quote_for_expand "$my_cmd"
  54130. + eval "func_echo $func_quote_for_expand_result"
  54131. + }
  54132. +
  54133. + if ${opt_dry_run-false}; then :; else
  54134. + eval "$my_cmd"
  54135. + my_status=$?
  54136. + if test "$my_status" -eq 0; then :; else
  54137. + eval "(exit $my_status); $my_fail_exp"
  54138. + fi
  54139. fi
  54140. }
  54141. -# func_extract_archives gentop oldlib ...
  54142. -func_extract_archives ()
  54143. +
  54144. +# func_show_eval_locale cmd [fail_exp]
  54145. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  54146. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  54147. +# is given, then evaluate it. Use the saved locale for evaluation.
  54148. +func_show_eval_locale ()
  54149. {
  54150. - my_gentop="$1"; shift
  54151. - my_oldlibs=${1+"$@"}
  54152. - my_oldobjs=""
  54153. - my_xlib=""
  54154. - my_xabs=""
  54155. - my_xdir=""
  54156. - my_status=""
  54157. + my_cmd="$1"
  54158. + my_fail_exp="${2-:}"
  54159. +
  54160. + ${opt_silent-false} || {
  54161. + func_quote_for_expand "$my_cmd"
  54162. + eval "func_echo $func_quote_for_expand_result"
  54163. + }
  54164. - $show "${rm}r $my_gentop"
  54165. - $run ${rm}r "$my_gentop"
  54166. - $show "$mkdir $my_gentop"
  54167. - $run $mkdir "$my_gentop"
  54168. - my_status=$?
  54169. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  54170. - exit $my_status
  54171. + if ${opt_dry_run-false}; then :; else
  54172. + eval "$lt_user_locale
  54173. + $my_cmd"
  54174. + my_status=$?
  54175. + eval "$lt_safe_locale"
  54176. + if test "$my_status" -eq 0; then :; else
  54177. + eval "(exit $my_status); $my_fail_exp"
  54178. + fi
  54179. fi
  54180. +}
  54181. - for my_xlib in $my_oldlibs; do
  54182. - # Extract the objects.
  54183. - case $my_xlib in
  54184. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  54185. - *) my_xabs=`pwd`"/$my_xlib" ;;
  54186. - esac
  54187. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  54188. - my_xdir="$my_gentop/$my_xlib"
  54189. - $show "${rm}r $my_xdir"
  54190. - $run ${rm}r "$my_xdir"
  54191. - $show "$mkdir $my_xdir"
  54192. - $run $mkdir "$my_xdir"
  54193. - exit_status=$?
  54194. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  54195. - exit $exit_status
  54196. - fi
  54197. - case $host in
  54198. - *-darwin*)
  54199. - $show "Extracting $my_xabs"
  54200. - # Do not bother doing anything if just a dry run
  54201. - if test -z "$run"; then
  54202. - darwin_orig_dir=`pwd`
  54203. - cd $my_xdir || exit $?
  54204. - darwin_archive=$my_xabs
  54205. - darwin_curdir=`pwd`
  54206. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  54207. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  54208. - if test -n "$darwin_arches"; then
  54209. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  54210. - darwin_arch=
  54211. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  54212. - for darwin_arch in $darwin_arches ; do
  54213. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  54214. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  54215. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  54216. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  54217. - cd "$darwin_curdir"
  54218. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  54219. - done # $darwin_arches
  54220. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  54221. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  54222. - darwin_file=
  54223. - darwin_files=
  54224. - for darwin_file in $darwin_filelist; do
  54225. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  54226. - lipo -create -output "$darwin_file" $darwin_files
  54227. - done # $darwin_filelist
  54228. - ${rm}r unfat-$$
  54229. - cd "$darwin_orig_dir"
  54230. - else
  54231. - cd "$darwin_orig_dir"
  54232. - func_extract_an_archive "$my_xdir" "$my_xabs"
  54233. - fi # $darwin_arches
  54234. - fi # $run
  54235. - ;;
  54236. - *)
  54237. - func_extract_an_archive "$my_xdir" "$my_xabs"
  54238. - ;;
  54239. - esac
  54240. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  54241. - done
  54242. - func_extract_archives_result="$my_oldobjs"
  54243. +
  54244. +
  54245. +
  54246. +# func_version
  54247. +# Echo version message to standard output and exit.
  54248. +func_version ()
  54249. +{
  54250. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  54251. + s/^# //
  54252. + s/^# *$//
  54253. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  54254. + p
  54255. + }' < "$progpath"
  54256. + exit $?
  54257. }
  54258. -# End of Shell function definitions
  54259. -#####################################
  54260. -# Darwin sucks
  54261. -eval std_shrext=\"$shrext_cmds\"
  54262. +# func_usage
  54263. +# Echo short help message to standard output and exit.
  54264. +func_usage ()
  54265. +{
  54266. + $SED -n '/^# Usage:/,/# -h/ {
  54267. + s/^# //
  54268. + s/^# *$//
  54269. + s/\$progname/'$progname'/
  54270. + p
  54271. + }' < "$progpath"
  54272. + $ECHO
  54273. + $ECHO "run \`$progname --help | more' for full usage"
  54274. + exit $?
  54275. +}
  54276. -disable_libs=no
  54277. +# func_help
  54278. +# Echo long help message to standard output and exit.
  54279. +func_help ()
  54280. +{
  54281. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  54282. + s/^# //
  54283. + s/^# *$//
  54284. + s*\$progname*'$progname'*
  54285. + s*\$host*'"$host"'*
  54286. + s*\$SHELL*'"$SHELL"'*
  54287. + s*\$LTCC*'"$LTCC"'*
  54288. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  54289. + s*\$LD*'"$LD"'*
  54290. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  54291. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  54292. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  54293. + p
  54294. + }' < "$progpath"
  54295. + exit $?
  54296. +}
  54297. -# Parse our command line options once, thoroughly.
  54298. -while test "$#" -gt 0
  54299. -do
  54300. - arg="$1"
  54301. +# func_missing_arg argname
  54302. +# Echo program name prefixed message to standard error and set global
  54303. +# exit_cmd.
  54304. +func_missing_arg ()
  54305. +{
  54306. + func_error "missing argument for $1"
  54307. + exit_cmd=exit
  54308. +}
  54309. +
  54310. +exit_cmd=:
  54311. +
  54312. +
  54313. +
  54314. +
  54315. +
  54316. +# Check that we have a working $ECHO.
  54317. +if test "X$1" = X--no-reexec; then
  54318. + # Discard the --no-reexec flag, and continue.
  54319. shift
  54320. +elif test "X$1" = X--fallback-echo; then
  54321. + # Avoid inline document here, it may be left over
  54322. + :
  54323. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  54324. + # Yippee, $ECHO works!
  54325. + :
  54326. +else
  54327. + # Restart under the correct shell, and then maybe $ECHO will work.
  54328. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  54329. +fi
  54330. - case $arg in
  54331. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  54332. - *) optarg= ;;
  54333. - esac
  54334. +if test "X$1" = X--fallback-echo; then
  54335. + # used as fallback echo
  54336. + shift
  54337. + cat <<EOF
  54338. +$*
  54339. +EOF
  54340. + exit $EXIT_SUCCESS
  54341. +fi
  54342. - # If the previous option needs an argument, assign it.
  54343. - if test -n "$prev"; then
  54344. - case $prev in
  54345. - execute_dlfiles)
  54346. - execute_dlfiles="$execute_dlfiles $arg"
  54347. - ;;
  54348. - tag)
  54349. - tagname="$arg"
  54350. - preserve_args="${preserve_args}=$arg"
  54351. -
  54352. - # Check whether tagname contains only valid characters
  54353. - case $tagname in
  54354. - *[!-_A-Za-z0-9,/]*)
  54355. - $echo "$progname: invalid tag name: $tagname" 1>&2
  54356. - exit $EXIT_FAILURE
  54357. - ;;
  54358. - esac
  54359. +magic="%%%MAGIC variable%%%"
  54360. +magic_exe="%%%MAGIC EXE variable%%%"
  54361. - case $tagname in
  54362. - CC)
  54363. - # Don't test for the "default" C tag, as we know, it's there, but
  54364. - # not specially marked.
  54365. - ;;
  54366. - *)
  54367. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  54368. - taglist="$taglist $tagname"
  54369. - # Evaluate the configuration.
  54370. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  54371. - else
  54372. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  54373. - fi
  54374. - ;;
  54375. - esac
  54376. - ;;
  54377. - *)
  54378. - eval "$prev=\$arg"
  54379. - ;;
  54380. - esac
  54381. +# Global variables.
  54382. +# $mode is unset
  54383. +nonopt=
  54384. +execute_dlfiles=
  54385. +preserve_args=
  54386. +lo2o="s/\\.lo\$/.${objext}/"
  54387. +o2lo="s/\\.${objext}\$/.lo/"
  54388. +extracted_archives=
  54389. +extracted_serial=0
  54390. - prev=
  54391. - prevopt=
  54392. - continue
  54393. - fi
  54394. +opt_dry_run=false
  54395. +opt_duplicate_deps=false
  54396. +opt_silent=false
  54397. +opt_debug=:
  54398. - # Have we seen a non-optional argument yet?
  54399. - case $arg in
  54400. - --help)
  54401. - show_help=yes
  54402. - ;;
  54403. +# If this variable is set in any of the actions, the command in it
  54404. +# will be execed at the end. This prevents here-documents from being
  54405. +# left over by shells.
  54406. +exec_cmd=
  54407. - --version)
  54408. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  54409. - $echo
  54410. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  54411. - $echo "This is free software; see the source for copying conditions. There is NO"
  54412. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  54413. - exit $?
  54414. - ;;
  54415. +# func_fatal_configuration arg...
  54416. +# Echo program name prefixed message to standard error, followed by
  54417. +# a configuration failure hint, and exit.
  54418. +func_fatal_configuration ()
  54419. +{
  54420. + func_error ${1+"$@"}
  54421. + func_error "See the $PACKAGE documentation for more information."
  54422. + func_fatal_error "Fatal configuration error."
  54423. +}
  54424. +
  54425. +
  54426. +# func_config
  54427. +# Display the configuration for all the tags in this script.
  54428. +func_config ()
  54429. +{
  54430. + re_begincf='^# ### BEGIN LIBTOOL'
  54431. + re_endcf='^# ### END LIBTOOL'
  54432. +
  54433. + # Default configuration.
  54434. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  54435. - --config)
  54436. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  54437. # Now print the configurations for the tags.
  54438. for tagname in $taglist; do
  54439. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  54440. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  54441. done
  54442. - exit $?
  54443. - ;;
  54444. - --debug)
  54445. - $echo "$progname: enabling shell trace mode"
  54446. - set -x
  54447. - preserve_args="$preserve_args $arg"
  54448. - ;;
  54449. -
  54450. - --dry-run | -n)
  54451. - run=:
  54452. - ;;
  54453. + exit $?
  54454. +}
  54455. - --features)
  54456. - $echo "host: $host"
  54457. +# func_features
  54458. +# Display the features supported by this script.
  54459. +func_features ()
  54460. +{
  54461. + $ECHO "host: $host"
  54462. if test "$build_libtool_libs" = yes; then
  54463. - $echo "enable shared libraries"
  54464. + $ECHO "enable shared libraries"
  54465. else
  54466. - $echo "disable shared libraries"
  54467. + $ECHO "disable shared libraries"
  54468. fi
  54469. if test "$build_old_libs" = yes; then
  54470. - $echo "enable static libraries"
  54471. + $ECHO "enable static libraries"
  54472. else
  54473. - $echo "disable static libraries"
  54474. + $ECHO "disable static libraries"
  54475. fi
  54476. +
  54477. exit $?
  54478. - ;;
  54479. +}
  54480. - --finish) mode="finish" ;;
  54481. +# func_enable_tag tagname
  54482. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  54483. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  54484. +# variable here.
  54485. +func_enable_tag ()
  54486. +{
  54487. + # Global variable:
  54488. + tagname="$1"
  54489. - --mode) prevopt="--mode" prev=mode ;;
  54490. - --mode=*) mode="$optarg" ;;
  54491. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  54492. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  54493. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  54494. +
  54495. + # Validate tagname.
  54496. + case $tagname in
  54497. + *[!-_A-Za-z0-9,/]*)
  54498. + func_fatal_error "invalid tag name: $tagname"
  54499. + ;;
  54500. + esac
  54501. - --preserve-dup-deps) duplicate_deps="yes" ;;
  54502. + # Don't test for the "default" C tag, as we know it's
  54503. + # there but not specially marked.
  54504. + case $tagname in
  54505. + CC) ;;
  54506. + *)
  54507. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  54508. + taglist="$taglist $tagname"
  54509. - --quiet | --silent)
  54510. - show=:
  54511. - preserve_args="$preserve_args $arg"
  54512. - ;;
  54513. + # Evaluate the configuration. Be careful to quote the path
  54514. + # and the sed script, to avoid splitting on whitespace, but
  54515. + # also don't use non-portable quotes within backquotes within
  54516. + # quotes we have to do it in 2 steps:
  54517. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  54518. + eval "$extractedcf"
  54519. + else
  54520. + func_error "ignoring unknown tag $tagname"
  54521. + fi
  54522. + ;;
  54523. + esac
  54524. +}
  54525. +
  54526. +# Parse options once, thoroughly. This comes as soon as possible in
  54527. +# the script to make things like `libtool --version' happen quickly.
  54528. +{
  54529. - --tag)
  54530. - prevopt="--tag"
  54531. - prev=tag
  54532. - preserve_args="$preserve_args --tag"
  54533. + # Shorthand for --mode=foo, only valid as the first argument
  54534. + case $1 in
  54535. + clean|clea|cle|cl)
  54536. + shift; set dummy --mode clean ${1+"$@"}; shift
  54537. ;;
  54538. - --tag=*)
  54539. - set tag "$optarg" ${1+"$@"}
  54540. - shift
  54541. - prev=tag
  54542. - preserve_args="$preserve_args --tag"
  54543. + compile|compil|compi|comp|com|co|c)
  54544. + shift; set dummy --mode compile ${1+"$@"}; shift
  54545. ;;
  54546. -
  54547. - -dlopen)
  54548. - prevopt="-dlopen"
  54549. - prev=execute_dlfiles
  54550. + execute|execut|execu|exec|exe|ex|e)
  54551. + shift; set dummy --mode execute ${1+"$@"}; shift
  54552. ;;
  54553. -
  54554. - -*)
  54555. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  54556. - $echo "$help" 1>&2
  54557. - exit $EXIT_FAILURE
  54558. + finish|finis|fini|fin|fi|f)
  54559. + shift; set dummy --mode finish ${1+"$@"}; shift
  54560. ;;
  54561. -
  54562. - *)
  54563. - nonopt="$arg"
  54564. - break
  54565. + install|instal|insta|inst|ins|in|i)
  54566. + shift; set dummy --mode install ${1+"$@"}; shift
  54567. + ;;
  54568. + link|lin|li|l)
  54569. + shift; set dummy --mode link ${1+"$@"}; shift
  54570. + ;;
  54571. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  54572. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  54573. ;;
  54574. esac
  54575. -done
  54576. -if test -n "$prevopt"; then
  54577. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  54578. - $echo "$help" 1>&2
  54579. - exit $EXIT_FAILURE
  54580. -fi
  54581. + # Parse non-mode specific arguments:
  54582. + while test "$#" -gt 0; do
  54583. + opt="$1"
  54584. + shift
  54585. -case $disable_libs in
  54586. -no)
  54587. - ;;
  54588. -shared)
  54589. - build_libtool_libs=no
  54590. - build_old_libs=yes
  54591. - ;;
  54592. -static)
  54593. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  54594. - ;;
  54595. -esac
  54596. + case $opt in
  54597. + --config) func_config ;;
  54598. -# If this variable is set in any of the actions, the command in it
  54599. -# will be execed at the end. This prevents here-documents from being
  54600. -# left over by shells.
  54601. -exec_cmd=
  54602. + --debug) preserve_args="$preserve_args $opt"
  54603. + func_echo "enabling shell trace mode"
  54604. + opt_debug='set -x'
  54605. + $opt_debug
  54606. + ;;
  54607. +
  54608. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  54609. + execute_dlfiles="$execute_dlfiles $1"
  54610. + shift
  54611. + ;;
  54612. -if test -z "$show_help"; then
  54613. + --dry-run | -n) opt_dry_run=: ;;
  54614. + --features) func_features ;;
  54615. + --finish) mode="finish" ;;
  54616. +
  54617. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  54618. + case $1 in
  54619. + # Valid mode arguments:
  54620. + clean) ;;
  54621. + compile) ;;
  54622. + execute) ;;
  54623. + finish) ;;
  54624. + install) ;;
  54625. + link) ;;
  54626. + relink) ;;
  54627. + uninstall) ;;
  54628. +
  54629. + # Catch anything else as an error
  54630. + *) func_error "invalid argument for $opt"
  54631. + exit_cmd=exit
  54632. + break
  54633. + ;;
  54634. + esac
  54635. - # Infer the operation mode.
  54636. - if test -z "$mode"; then
  54637. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  54638. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  54639. - case $nonopt in
  54640. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  54641. - mode=link
  54642. - for arg
  54643. - do
  54644. - case $arg in
  54645. - -c)
  54646. - mode=compile
  54647. - break
  54648. - ;;
  54649. - esac
  54650. - done
  54651. - ;;
  54652. - *db | *dbx | *strace | *truss)
  54653. - mode=execute
  54654. - ;;
  54655. - *install*|cp|mv)
  54656. - mode=install
  54657. - ;;
  54658. - *rm)
  54659. - mode=uninstall
  54660. + mode="$1"
  54661. + shift
  54662. + ;;
  54663. +
  54664. + --preserve-dup-deps)
  54665. + opt_duplicate_deps=: ;;
  54666. +
  54667. + --quiet|--silent) preserve_args="$preserve_args $opt"
  54668. + opt_silent=:
  54669. + ;;
  54670. +
  54671. + --verbose| -v) preserve_args="$preserve_args $opt"
  54672. + opt_silent=false
  54673. + ;;
  54674. +
  54675. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  54676. + preserve_args="$preserve_args $opt $1"
  54677. + func_enable_tag "$1" # tagname is set here
  54678. + shift
  54679. + ;;
  54680. +
  54681. + # Separate optargs to long options:
  54682. + -dlopen=*|--mode=*|--tag=*)
  54683. + func_opt_split "$opt"
  54684. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  54685. + shift
  54686. + ;;
  54687. +
  54688. + -\?|-h) func_usage ;;
  54689. + --help) opt_help=: ;;
  54690. + --version) func_version ;;
  54691. +
  54692. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  54693. +
  54694. + *) nonopt="$opt"
  54695. + break
  54696. + ;;
  54697. + esac
  54698. + done
  54699. +
  54700. +
  54701. + case $host in
  54702. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  54703. + # don't eliminate duplications in $postdeps and $predeps
  54704. + opt_duplicate_compiler_generated_deps=:
  54705. ;;
  54706. *)
  54707. - # If we have no mode, but dlfiles were specified, then do execute mode.
  54708. - test -n "$execute_dlfiles" && mode=execute
  54709. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  54710. + ;;
  54711. + esac
  54712. - # Just use the default operation mode.
  54713. - if test -z "$mode"; then
  54714. - if test -n "$nonopt"; then
  54715. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  54716. - else
  54717. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  54718. - fi
  54719. + # Having warned about all mis-specified options, bail out if
  54720. + # anything was wrong.
  54721. + $exit_cmd $EXIT_FAILURE
  54722. +}
  54723. +
  54724. +# func_check_version_match
  54725. +# Ensure that we are using m4 macros, and libtool script from the same
  54726. +# release of libtool.
  54727. +func_check_version_match ()
  54728. +{
  54729. + if test "$package_revision" != "$macro_revision"; then
  54730. + if test "$VERSION" != "$macro_version"; then
  54731. + if test -z "$macro_version"; then
  54732. + cat >&2 <<_LT_EOF
  54733. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  54734. +$progname: definition of this LT_INIT comes from an older release.
  54735. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  54736. +$progname: and run autoconf again.
  54737. +_LT_EOF
  54738. + else
  54739. + cat >&2 <<_LT_EOF
  54740. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  54741. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  54742. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  54743. +$progname: and run autoconf again.
  54744. +_LT_EOF
  54745. fi
  54746. - ;;
  54747. - esac
  54748. + else
  54749. + cat >&2 <<_LT_EOF
  54750. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  54751. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  54752. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  54753. +$progname: of $PACKAGE $VERSION and run autoconf again.
  54754. +_LT_EOF
  54755. + fi
  54756. +
  54757. + exit $EXIT_MISMATCH
  54758. + fi
  54759. +}
  54760. +
  54761. +
  54762. +## ----------- ##
  54763. +## Main. ##
  54764. +## ----------- ##
  54765. +
  54766. +$opt_help || {
  54767. + # Sanity checks first:
  54768. + func_check_version_match
  54769. +
  54770. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  54771. + func_fatal_configuration "not configured to build any kind of library"
  54772. fi
  54773. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  54774. +
  54775. +
  54776. + # Darwin sucks
  54777. + eval std_shrext=\"$shrext_cmds\"
  54778. +
  54779. +
  54780. # Only execute mode is allowed to have -dlopen flags.
  54781. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  54782. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  54783. - $echo "$help" 1>&2
  54784. + func_error "unrecognized option \`-dlopen'"
  54785. + $ECHO "$help" 1>&2
  54786. exit $EXIT_FAILURE
  54787. fi
  54788. # Change the help message to a mode-specific one.
  54789. generic_help="$help"
  54790. - help="Try \`$modename --help --mode=$mode' for more information."
  54791. + help="Try \`$progname --help --mode=$mode' for more information."
  54792. +}
  54793. - # These modes are in order of execution frequency so that they run quickly.
  54794. - case $mode in
  54795. - # libtool compile mode
  54796. - compile)
  54797. - modename="$modename: compile"
  54798. - # Get the compilation command and the source file.
  54799. - base_compile=
  54800. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  54801. - suppress_opt=yes
  54802. - suppress_output=
  54803. - arg_mode=normal
  54804. - libobj=
  54805. - later=
  54806. - for arg
  54807. - do
  54808. - case $arg_mode in
  54809. - arg )
  54810. - # do not "continue". Instead, add this to base_compile
  54811. - lastarg="$arg"
  54812. - arg_mode=normal
  54813. - ;;
  54814. +# func_lalib_p file
  54815. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  54816. +# This function is only a basic sanity check; it will hardly flush out
  54817. +# determined imposters.
  54818. +func_lalib_p ()
  54819. +{
  54820. + test -f "$1" &&
  54821. + $SED -e 4q "$1" 2>/dev/null \
  54822. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  54823. +}
  54824. - target )
  54825. - libobj="$arg"
  54826. - arg_mode=normal
  54827. - continue
  54828. - ;;
  54829. +# func_lalib_unsafe_p file
  54830. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  54831. +# This function implements the same check as func_lalib_p without
  54832. +# resorting to external programs. To this end, it redirects stdin and
  54833. +# closes it afterwards, without saving the original file descriptor.
  54834. +# As a safety measure, use it only where a negative result would be
  54835. +# fatal anyway. Works if `file' does not exist.
  54836. +func_lalib_unsafe_p ()
  54837. +{
  54838. + lalib_p=no
  54839. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  54840. + for lalib_p_l in 1 2 3 4
  54841. + do
  54842. + read lalib_p_line
  54843. + case "$lalib_p_line" in
  54844. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  54845. + esac
  54846. + done
  54847. + exec 0<&5 5<&-
  54848. + fi
  54849. + test "$lalib_p" = yes
  54850. +}
  54851. - normal )
  54852. - # Accept any command-line options.
  54853. - case $arg in
  54854. - -o)
  54855. - if test -n "$libobj" ; then
  54856. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  54857. - exit $EXIT_FAILURE
  54858. - fi
  54859. - arg_mode=target
  54860. - continue
  54861. - ;;
  54862. +# func_ltwrapper_script_p file
  54863. +# True iff FILE is a libtool wrapper script
  54864. +# This function is only a basic sanity check; it will hardly flush out
  54865. +# determined imposters.
  54866. +func_ltwrapper_script_p ()
  54867. +{
  54868. + func_lalib_p "$1"
  54869. +}
  54870. - -static | -prefer-pic | -prefer-non-pic)
  54871. - later="$later $arg"
  54872. - continue
  54873. - ;;
  54874. +# func_ltwrapper_executable_p file
  54875. +# True iff FILE is a libtool wrapper executable
  54876. +# This function is only a basic sanity check; it will hardly flush out
  54877. +# determined imposters.
  54878. +func_ltwrapper_executable_p ()
  54879. +{
  54880. + func_ltwrapper_exec_suffix=
  54881. + case $1 in
  54882. + *.exe) ;;
  54883. + *) func_ltwrapper_exec_suffix=.exe ;;
  54884. + esac
  54885. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  54886. +}
  54887. - -no-suppress)
  54888. - suppress_opt=no
  54889. - continue
  54890. - ;;
  54891. +# func_ltwrapper_scriptname file
  54892. +# Assumes file is an ltwrapper_executable
  54893. +# uses $file to determine the appropriate filename for a
  54894. +# temporary ltwrapper_script.
  54895. +func_ltwrapper_scriptname ()
  54896. +{
  54897. + func_ltwrapper_scriptname_result=""
  54898. + if func_ltwrapper_executable_p "$1"; then
  54899. + func_dirname_and_basename "$1" "" "."
  54900. + func_stripname '' '.exe' "$func_basename_result"
  54901. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  54902. + fi
  54903. +}
  54904. - -Xcompiler)
  54905. - arg_mode=arg # the next one goes into the "base_compile" arg list
  54906. - continue # The current "srcfile" will either be retained or
  54907. - ;; # replaced later. I would guess that would be a bug.
  54908. +# func_ltwrapper_p file
  54909. +# True iff FILE is a libtool wrapper script or wrapper executable
  54910. +# This function is only a basic sanity check; it will hardly flush out
  54911. +# determined imposters.
  54912. +func_ltwrapper_p ()
  54913. +{
  54914. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  54915. +}
  54916. - -Wc,*)
  54917. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  54918. - lastarg=
  54919. - save_ifs="$IFS"; IFS=','
  54920. - for arg in $args; do
  54921. - IFS="$save_ifs"
  54922. - # Double-quote args containing other shell metacharacters.
  54923. - # Many Bourne shells cannot handle close brackets correctly
  54924. - # in scan sets, so we specify it separately.
  54925. - case $arg in
  54926. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  54927. - arg="\"$arg\""
  54928. +# func_execute_cmds commands fail_cmd
  54929. +# Execute tilde-delimited COMMANDS.
  54930. +# If FAIL_CMD is given, eval that upon failure.
  54931. +# FAIL_CMD may read-access the current command in variable CMD!
  54932. +func_execute_cmds ()
  54933. +{
  54934. + $opt_debug
  54935. + save_ifs=$IFS; IFS='~'
  54936. + for cmd in $1; do
  54937. + IFS=$save_ifs
  54938. + eval cmd=\"$cmd\"
  54939. + func_show_eval "$cmd" "${2-:}"
  54940. + done
  54941. + IFS=$save_ifs
  54942. +}
  54943. +
  54944. +
  54945. +# func_source file
  54946. +# Source FILE, adding directory component if necessary.
  54947. +# Note that it is not necessary on cygwin/mingw to append a dot to
  54948. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  54949. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  54950. +# `FILE.' does not work on cygwin managed mounts.
  54951. +func_source ()
  54952. +{
  54953. + $opt_debug
  54954. + case $1 in
  54955. + */* | *\\*) . "$1" ;;
  54956. + *) . "./$1" ;;
  54957. + esac
  54958. +}
  54959. +
  54960. +
  54961. +# func_infer_tag arg
  54962. +# Infer tagged configuration to use if any are available and
  54963. +# if one wasn't chosen via the "--tag" command line option.
  54964. +# Only attempt this if the compiler in the base compile
  54965. +# command doesn't match the default compiler.
  54966. +# arg is usually of the form 'gcc ...'
  54967. +func_infer_tag ()
  54968. +{
  54969. + $opt_debug
  54970. + if test -n "$available_tags" && test -z "$tagname"; then
  54971. + CC_quoted=
  54972. + for arg in $CC; do
  54973. + func_quote_for_eval "$arg"
  54974. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  54975. + done
  54976. + case $@ in
  54977. + # Blanks in the command may have been stripped by the calling shell,
  54978. + # but not from the CC environment variable when configure was run.
  54979. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  54980. + # Blanks at the start of $base_compile will cause this to fail
  54981. + # if we don't check for them as well.
  54982. + *)
  54983. + for z in $available_tags; do
  54984. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  54985. + # Evaluate the configuration.
  54986. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  54987. + CC_quoted=
  54988. + for arg in $CC; do
  54989. + # Double-quote args containing other shell metacharacters.
  54990. + func_quote_for_eval "$arg"
  54991. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  54992. + done
  54993. + case "$@ " in
  54994. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  54995. + # The compiler in the base compile command matches
  54996. + # the one in the tagged configuration.
  54997. + # Assume this is the tagged configuration we want.
  54998. + tagname=$z
  54999. + break
  55000. ;;
  55001. esac
  55002. - lastarg="$lastarg $arg"
  55003. + fi
  55004. + done
  55005. + # If $tagname still isn't set, then no tagged configuration
  55006. + # was found and let the user know that the "--tag" command
  55007. + # line option must be used.
  55008. + if test -z "$tagname"; then
  55009. + func_echo "unable to infer tagged configuration"
  55010. + func_fatal_error "specify a tag with \`--tag'"
  55011. +# else
  55012. +# func_verbose "using $tagname tagged configuration"
  55013. + fi
  55014. + ;;
  55015. + esac
  55016. + fi
  55017. +}
  55018. +
  55019. +
  55020. +
  55021. +# func_write_libtool_object output_name pic_name nonpic_name
  55022. +# Create a libtool object file (analogous to a ".la" file),
  55023. +# but don't create it if we're doing a dry run.
  55024. +func_write_libtool_object ()
  55025. +{
  55026. + write_libobj=${1}
  55027. + if test "$build_libtool_libs" = yes; then
  55028. + write_lobj=\'${2}\'
  55029. + else
  55030. + write_lobj=none
  55031. + fi
  55032. +
  55033. + if test "$build_old_libs" = yes; then
  55034. + write_oldobj=\'${3}\'
  55035. + else
  55036. + write_oldobj=none
  55037. + fi
  55038. +
  55039. + $opt_dry_run || {
  55040. + cat >${write_libobj}T <<EOF
  55041. +# $write_libobj - a libtool object file
  55042. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  55043. +#
  55044. +# Please DO NOT delete this file!
  55045. +# It is necessary for linking the library.
  55046. +
  55047. +# Name of the PIC object.
  55048. +pic_object=$write_lobj
  55049. +
  55050. +# Name of the non-PIC object
  55051. +non_pic_object=$write_oldobj
  55052. +
  55053. +EOF
  55054. + $MV "${write_libobj}T" "${write_libobj}"
  55055. + }
  55056. +}
  55057. +
  55058. +# func_mode_compile arg...
  55059. +func_mode_compile ()
  55060. +{
  55061. + $opt_debug
  55062. + # Get the compilation command and the source file.
  55063. + base_compile=
  55064. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  55065. + suppress_opt=yes
  55066. + suppress_output=
  55067. + arg_mode=normal
  55068. + libobj=
  55069. + later=
  55070. + pie_flag=
  55071. +
  55072. + for arg
  55073. + do
  55074. + case $arg_mode in
  55075. + arg )
  55076. + # do not "continue". Instead, add this to base_compile
  55077. + lastarg="$arg"
  55078. + arg_mode=normal
  55079. + ;;
  55080. +
  55081. + target )
  55082. + libobj="$arg"
  55083. + arg_mode=normal
  55084. + continue
  55085. + ;;
  55086. +
  55087. + normal )
  55088. + # Accept any command-line options.
  55089. + case $arg in
  55090. + -o)
  55091. + test -n "$libobj" && \
  55092. + func_fatal_error "you cannot specify \`-o' more than once"
  55093. + arg_mode=target
  55094. + continue
  55095. + ;;
  55096. +
  55097. + -pie | -fpie | -fPIE)
  55098. + pie_flag="$pie_flag $arg"
  55099. + continue
  55100. + ;;
  55101. +
  55102. + -shared | -static | -prefer-pic | -prefer-non-pic)
  55103. + later="$later $arg"
  55104. + continue
  55105. + ;;
  55106. +
  55107. + -no-suppress)
  55108. + suppress_opt=no
  55109. + continue
  55110. + ;;
  55111. +
  55112. + -Xcompiler)
  55113. + arg_mode=arg # the next one goes into the "base_compile" arg list
  55114. + continue # The current "srcfile" will either be retained or
  55115. + ;; # replaced later. I would guess that would be a bug.
  55116. +
  55117. + -Wc,*)
  55118. + func_stripname '-Wc,' '' "$arg"
  55119. + args=$func_stripname_result
  55120. + lastarg=
  55121. + save_ifs="$IFS"; IFS=','
  55122. + for arg in $args; do
  55123. + IFS="$save_ifs"
  55124. + func_quote_for_eval "$arg"
  55125. + lastarg="$lastarg $func_quote_for_eval_result"
  55126. done
  55127. IFS="$save_ifs"
  55128. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  55129. + func_stripname ' ' '' "$lastarg"
  55130. + lastarg=$func_stripname_result
  55131. # Add the arguments to base_compile.
  55132. base_compile="$base_compile $lastarg"
  55133. continue
  55134. ;;
  55135. - * )
  55136. + *)
  55137. # Accept the current argument as the source file.
  55138. # The previous "srcfile" becomes the current argument.
  55139. #
  55140. @@ -709,64 +1187,42 @@
  55141. esac # case $arg_mode
  55142. # Aesthetically quote the previous argument.
  55143. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  55144. -
  55145. - case $lastarg in
  55146. - # Double-quote args containing other shell metacharacters.
  55147. - # Many Bourne shells cannot handle close brackets correctly
  55148. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  55149. - # in scan sets (worked around with variable expansion),
  55150. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  55151. - # at all, so we specify them separately.
  55152. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55153. - lastarg="\"$lastarg\""
  55154. - ;;
  55155. - esac
  55156. -
  55157. - base_compile="$base_compile $lastarg"
  55158. + func_quote_for_eval "$lastarg"
  55159. + base_compile="$base_compile $func_quote_for_eval_result"
  55160. done # for arg
  55161. case $arg_mode in
  55162. arg)
  55163. - $echo "$modename: you must specify an argument for -Xcompile"
  55164. - exit $EXIT_FAILURE
  55165. + func_fatal_error "you must specify an argument for -Xcompile"
  55166. ;;
  55167. target)
  55168. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  55169. - exit $EXIT_FAILURE
  55170. + func_fatal_error "you must specify a target with \`-o'"
  55171. ;;
  55172. *)
  55173. # Get the name of the library object.
  55174. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  55175. + test -z "$libobj" && {
  55176. + func_basename "$srcfile"
  55177. + libobj="$func_basename_result"
  55178. + }
  55179. ;;
  55180. esac
  55181. # Recognize several different file suffixes.
  55182. # If the user specifies -o file.o, it is replaced with file.lo
  55183. - xform='[cCFSifmso]'
  55184. case $libobj in
  55185. - *.ada) xform=ada ;;
  55186. - *.adb) xform=adb ;;
  55187. - *.ads) xform=ads ;;
  55188. - *.asm) xform=asm ;;
  55189. - *.c++) xform=c++ ;;
  55190. - *.cc) xform=cc ;;
  55191. - *.ii) xform=ii ;;
  55192. - *.class) xform=class ;;
  55193. - *.cpp) xform=cpp ;;
  55194. - *.cxx) xform=cxx ;;
  55195. - *.f90) xform=f90 ;;
  55196. - *.for) xform=for ;;
  55197. - *.java) xform=java ;;
  55198. + *.[cCFSifmso] | \
  55199. + *.ada | *.adb | *.ads | *.asm | \
  55200. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  55201. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  55202. + func_xform "$libobj"
  55203. + libobj=$func_xform_result
  55204. + ;;
  55205. esac
  55206. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  55207. -
  55208. case $libobj in
  55209. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  55210. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  55211. *)
  55212. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  55213. - exit $EXIT_FAILURE
  55214. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  55215. ;;
  55216. esac
  55217. @@ -774,7 +1230,15 @@
  55218. for arg in $later; do
  55219. case $arg in
  55220. + -shared)
  55221. + test "$build_libtool_libs" != yes && \
  55222. + func_fatal_configuration "can not build a shared library"
  55223. + build_old_libs=no
  55224. + continue
  55225. + ;;
  55226. +
  55227. -static)
  55228. + build_libtool_libs=no
  55229. build_old_libs=yes
  55230. continue
  55231. ;;
  55232. @@ -791,28 +1255,17 @@
  55233. esac
  55234. done
  55235. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  55236. - case $qlibobj in
  55237. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55238. - qlibobj="\"$qlibobj\"" ;;
  55239. - esac
  55240. - test "X$libobj" != "X$qlibobj" \
  55241. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  55242. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  55243. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  55244. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  55245. - if test "X$xdir" = "X$obj"; then
  55246. - xdir=
  55247. - else
  55248. - xdir=$xdir/
  55249. - fi
  55250. + func_quote_for_eval "$libobj"
  55251. + test "X$libobj" != "X$func_quote_for_eval_result" \
  55252. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  55253. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  55254. + func_dirname_and_basename "$obj" "/" ""
  55255. + objname="$func_basename_result"
  55256. + xdir="$func_dirname_result"
  55257. lobj=${xdir}$objdir/$objname
  55258. - if test -z "$base_compile"; then
  55259. - $echo "$modename: you must specify a compilation command" 1>&2
  55260. - $echo "$help" 1>&2
  55261. - exit $EXIT_FAILURE
  55262. - fi
  55263. + test -z "$base_compile" && \
  55264. + func_fatal_help "you must specify a compilation command"
  55265. # Delete any leftover library objects.
  55266. if test "$build_old_libs" = yes; then
  55267. @@ -821,12 +1274,9 @@
  55268. removelist="$lobj $libobj ${libobj}T"
  55269. fi
  55270. - $run $rm $removelist
  55271. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  55272. -
  55273. # On Cygwin there's no "real" PIC flag so we must build both object types
  55274. case $host_os in
  55275. - cygwin* | mingw* | pw32* | os2*)
  55276. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  55277. pic_mode=default
  55278. ;;
  55279. esac
  55280. @@ -838,10 +1288,8 @@
  55281. # Calculate the filename of the output object if compiler does
  55282. # not support -o with -c
  55283. if test "$compiler_c_o" = no; then
  55284. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  55285. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  55286. lockfile="$output_obj.lock"
  55287. - removelist="$removelist $output_obj $lockfile"
  55288. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  55289. else
  55290. output_obj=
  55291. need_locks=no
  55292. @@ -851,13 +1299,13 @@
  55293. # Lock this critical section if it is needed
  55294. # We use this script file to make the link, it avoids creating a new file
  55295. if test "$need_locks" = yes; then
  55296. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  55297. - $show "Waiting for $lockfile to be removed"
  55298. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  55299. + func_echo "Waiting for $lockfile to be removed"
  55300. sleep 2
  55301. done
  55302. elif test "$need_locks" = warn; then
  55303. if test -f "$lockfile"; then
  55304. - $echo "\
  55305. + $ECHO "\
  55306. *** ERROR, $lockfile exists and contains:
  55307. `cat $lockfile 2>/dev/null`
  55308. @@ -868,34 +1316,22 @@
  55309. avoid parallel builds (make -j) in this platform, or get a better
  55310. compiler."
  55311. - $run $rm $removelist
  55312. + $opt_dry_run || $RM $removelist
  55313. exit $EXIT_FAILURE
  55314. fi
  55315. - $echo "$srcfile" > "$lockfile"
  55316. + removelist="$removelist $output_obj"
  55317. + $ECHO "$srcfile" > "$lockfile"
  55318. fi
  55319. + $opt_dry_run || $RM $removelist
  55320. + removelist="$removelist $lockfile"
  55321. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  55322. +
  55323. if test -n "$fix_srcfile_path"; then
  55324. eval srcfile=\"$fix_srcfile_path\"
  55325. fi
  55326. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  55327. - case $qsrcfile in
  55328. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55329. - qsrcfile="\"$qsrcfile\"" ;;
  55330. - esac
  55331. -
  55332. - $run $rm "$libobj" "${libobj}T"
  55333. -
  55334. - # Create a libtool object file (analogous to a ".la" file),
  55335. - # but don't create it if we're doing a dry run.
  55336. - test -z "$run" && cat > ${libobj}T <<EOF
  55337. -# $libobj - a libtool object file
  55338. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  55339. -#
  55340. -# Please DO NOT delete this file!
  55341. -# It is necessary for linking the library.
  55342. -
  55343. -# Name of the PIC object.
  55344. -EOF
  55345. + func_quote_for_eval "$srcfile"
  55346. + qsrcfile=$func_quote_for_eval_result
  55347. # Only build a PIC object if we are building libtool libraries.
  55348. if test "$build_libtool_libs" = yes; then
  55349. @@ -909,32 +1345,19 @@
  55350. command="$base_compile $qsrcfile"
  55351. fi
  55352. - if test ! -d "${xdir}$objdir"; then
  55353. - $show "$mkdir ${xdir}$objdir"
  55354. - $run $mkdir ${xdir}$objdir
  55355. - exit_status=$?
  55356. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  55357. - exit $exit_status
  55358. - fi
  55359. - fi
  55360. + func_mkdir_p "$xdir$objdir"
  55361. if test -z "$output_obj"; then
  55362. # Place PIC objects in $objdir
  55363. command="$command -o $lobj"
  55364. fi
  55365. - $run $rm "$lobj" "$output_obj"
  55366. -
  55367. - $show "$command"
  55368. - if $run eval "$command"; then :
  55369. - else
  55370. - test -n "$output_obj" && $run $rm $removelist
  55371. - exit $EXIT_FAILURE
  55372. - fi
  55373. + func_show_eval_locale "$command" \
  55374. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  55375. if test "$need_locks" = warn &&
  55376. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  55377. - $echo "\
  55378. + $ECHO "\
  55379. *** ERROR, $lockfile contains:
  55380. `cat $lockfile 2>/dev/null`
  55381. @@ -948,45 +1371,27 @@
  55382. avoid parallel builds (make -j) in this platform, or get a better
  55383. compiler."
  55384. - $run $rm $removelist
  55385. + $opt_dry_run || $RM $removelist
  55386. exit $EXIT_FAILURE
  55387. fi
  55388. # Just move the object if needed, then go on to compile the next one
  55389. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  55390. - $show "$mv $output_obj $lobj"
  55391. - if $run $mv $output_obj $lobj; then :
  55392. - else
  55393. - error=$?
  55394. - $run $rm $removelist
  55395. - exit $error
  55396. - fi
  55397. + func_show_eval '$MV "$output_obj" "$lobj"' \
  55398. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  55399. fi
  55400. - # Append the name of the PIC object to the libtool object file.
  55401. - test -z "$run" && cat >> ${libobj}T <<EOF
  55402. -pic_object='$objdir/$objname'
  55403. -
  55404. -EOF
  55405. -
  55406. # Allow error messages only from the first compilation.
  55407. if test "$suppress_opt" = yes; then
  55408. - suppress_output=' >/dev/null 2>&1'
  55409. + suppress_output=' >/dev/null 2>&1'
  55410. fi
  55411. - else
  55412. - # No PIC object so indicate it doesn't exist in the libtool
  55413. - # object file.
  55414. - test -z "$run" && cat >> ${libobj}T <<EOF
  55415. -pic_object=none
  55416. -
  55417. -EOF
  55418. fi
  55419. # Only build a position-dependent object if we build old libraries.
  55420. if test "$build_old_libs" = yes; then
  55421. if test "$pic_mode" != yes; then
  55422. # Don't build PIC code
  55423. - command="$base_compile $qsrcfile"
  55424. + command="$base_compile $qsrcfile$pie_flag"
  55425. else
  55426. command="$base_compile $qsrcfile $pic_flag"
  55427. fi
  55428. @@ -996,17 +1401,12 @@
  55429. # Suppress compiler output if we already did a PIC compilation.
  55430. command="$command$suppress_output"
  55431. - $run $rm "$obj" "$output_obj"
  55432. - $show "$command"
  55433. - if $run eval "$command"; then :
  55434. - else
  55435. - $run $rm $removelist
  55436. - exit $EXIT_FAILURE
  55437. - fi
  55438. + func_show_eval_locale "$command" \
  55439. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  55440. if test "$need_locks" = warn &&
  55441. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  55442. - $echo "\
  55443. + $ECHO "\
  55444. *** ERROR, $lockfile contains:
  55445. `cat $lockfile 2>/dev/null`
  55446. @@ -1020,5431 +1420,6784 @@
  55447. avoid parallel builds (make -j) in this platform, or get a better
  55448. compiler."
  55449. - $run $rm $removelist
  55450. + $opt_dry_run || $RM $removelist
  55451. exit $EXIT_FAILURE
  55452. fi
  55453. # Just move the object if needed
  55454. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  55455. - $show "$mv $output_obj $obj"
  55456. - if $run $mv $output_obj $obj; then :
  55457. - else
  55458. - error=$?
  55459. - $run $rm $removelist
  55460. - exit $error
  55461. - fi
  55462. + func_show_eval '$MV "$output_obj" "$obj"' \
  55463. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  55464. fi
  55465. -
  55466. - # Append the name of the non-PIC object the libtool object file.
  55467. - # Only append if the libtool object file exists.
  55468. - test -z "$run" && cat >> ${libobj}T <<EOF
  55469. -# Name of the non-PIC object.
  55470. -non_pic_object='$objname'
  55471. -
  55472. -EOF
  55473. - else
  55474. - # Append the name of the non-PIC object the libtool object file.
  55475. - # Only append if the libtool object file exists.
  55476. - test -z "$run" && cat >> ${libobj}T <<EOF
  55477. -# Name of the non-PIC object.
  55478. -non_pic_object=none
  55479. -
  55480. -EOF
  55481. fi
  55482. - $run $mv "${libobj}T" "${libobj}"
  55483. + $opt_dry_run || {
  55484. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  55485. - # Unlock the critical section if it was locked
  55486. - if test "$need_locks" != no; then
  55487. - $run $rm "$lockfile"
  55488. - fi
  55489. + # Unlock the critical section if it was locked
  55490. + if test "$need_locks" != no; then
  55491. + removelist=$lockfile
  55492. + $RM "$lockfile"
  55493. + fi
  55494. + }
  55495. exit $EXIT_SUCCESS
  55496. - ;;
  55497. -
  55498. - # libtool link mode
  55499. - link | relink)
  55500. - modename="$modename: link"
  55501. - case $host in
  55502. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  55503. - # It is impossible to link a dll without this setting, and
  55504. - # we shouldn't force the makefile maintainer to figure out
  55505. - # which system we are compiling for in order to pass an extra
  55506. - # flag for every libtool invocation.
  55507. - # allow_undefined=no
  55508. +}
  55509. - # FIXME: Unfortunately, there are problems with the above when trying
  55510. - # to make a dll which has undefined symbols, in which case not
  55511. - # even a static library is built. For now, we need to specify
  55512. - # -no-undefined on the libtool link line when we can be certain
  55513. - # that all symbols are satisfied, otherwise we get a static library.
  55514. - allow_undefined=yes
  55515. - ;;
  55516. - *)
  55517. - allow_undefined=yes
  55518. - ;;
  55519. - esac
  55520. - libtool_args="$nonopt"
  55521. - base_compile="$nonopt $@"
  55522. - compile_command="$nonopt"
  55523. - finalize_command="$nonopt"
  55524. +$opt_help || {
  55525. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  55526. +}
  55527. - compile_rpath=
  55528. - finalize_rpath=
  55529. - compile_shlibpath=
  55530. - finalize_shlibpath=
  55531. - convenience=
  55532. - old_convenience=
  55533. - deplibs=
  55534. - old_deplibs=
  55535. - compiler_flags=
  55536. - linker_flags=
  55537. - dllsearchpath=
  55538. - lib_search_path=`pwd`
  55539. - inst_prefix_dir=
  55540. +func_mode_help ()
  55541. +{
  55542. + # We need to display help for each of the modes.
  55543. + case $mode in
  55544. + "")
  55545. + # Generic help is extracted from the usage comments
  55546. + # at the start of this file.
  55547. + func_help
  55548. + ;;
  55549. - avoid_version=no
  55550. - dlfiles=
  55551. - dlprefiles=
  55552. - dlself=no
  55553. - export_dynamic=no
  55554. - export_symbols=
  55555. - export_symbols_regex=
  55556. - generated=
  55557. - libobjs=
  55558. - ltlibs=
  55559. - module=no
  55560. - no_install=no
  55561. - objs=
  55562. - non_pic_objects=
  55563. - notinst_path= # paths that contain not-installed libtool libraries
  55564. - precious_files_regex=
  55565. - prefer_static_libs=no
  55566. - preload=no
  55567. - prev=
  55568. - prevarg=
  55569. - release=
  55570. - rpath=
  55571. - xrpath=
  55572. - perm_rpath=
  55573. - temp_rpath=
  55574. - thread_safe=no
  55575. - vinfo=
  55576. - vinfo_number=no
  55577. + clean)
  55578. + $ECHO \
  55579. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  55580. - func_infer_tag $base_compile
  55581. +Remove files from the build directory.
  55582. - # We need to know -static, to get the right output filenames.
  55583. - for arg
  55584. - do
  55585. - case $arg in
  55586. - -all-static | -static)
  55587. - if test "X$arg" = "X-all-static"; then
  55588. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  55589. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  55590. - fi
  55591. - if test -n "$link_static_flag"; then
  55592. - dlopen_self=$dlopen_self_static
  55593. - fi
  55594. - prefer_static_libs=yes
  55595. - else
  55596. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55597. - dlopen_self=$dlopen_self_static
  55598. - fi
  55599. - prefer_static_libs=built
  55600. - fi
  55601. - build_libtool_libs=no
  55602. - build_old_libs=yes
  55603. - break
  55604. - ;;
  55605. - esac
  55606. - done
  55607. +RM is the name of the program to use to delete files associated with each FILE
  55608. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  55609. +to RM.
  55610. - # See if our shared archives depend on static archives.
  55611. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  55612. +If FILE is a libtool library, object or program, all the files associated
  55613. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  55614. + ;;
  55615. - # Go through the arguments, transforming them on the way.
  55616. - while test "$#" -gt 0; do
  55617. - arg="$1"
  55618. - shift
  55619. - case $arg in
  55620. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  55621. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  55622. - ;;
  55623. - *) qarg=$arg ;;
  55624. - esac
  55625. - libtool_args="$libtool_args $qarg"
  55626. + compile)
  55627. + $ECHO \
  55628. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  55629. - # If the previous option needs an argument, assign it.
  55630. - if test -n "$prev"; then
  55631. - case $prev in
  55632. - output)
  55633. - compile_command="$compile_command @OUTPUT@"
  55634. - finalize_command="$finalize_command @OUTPUT@"
  55635. - ;;
  55636. - esac
  55637. +Compile a source file into a libtool library object.
  55638. - case $prev in
  55639. - dlfiles|dlprefiles)
  55640. - if test "$preload" = no; then
  55641. - # Add the symbol object into the linking commands.
  55642. - compile_command="$compile_command @SYMFILE@"
  55643. - finalize_command="$finalize_command @SYMFILE@"
  55644. - preload=yes
  55645. - fi
  55646. - case $arg in
  55647. - *.la | *.lo) ;; # We handle these cases below.
  55648. - force)
  55649. - if test "$dlself" = no; then
  55650. - dlself=needless
  55651. - export_dynamic=yes
  55652. - fi
  55653. - prev=
  55654. - continue
  55655. - ;;
  55656. - self)
  55657. - if test "$prev" = dlprefiles; then
  55658. - dlself=yes
  55659. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  55660. - dlself=yes
  55661. - else
  55662. - dlself=needless
  55663. - export_dynamic=yes
  55664. - fi
  55665. - prev=
  55666. - continue
  55667. - ;;
  55668. - *)
  55669. - if test "$prev" = dlfiles; then
  55670. - dlfiles="$dlfiles $arg"
  55671. - else
  55672. - dlprefiles="$dlprefiles $arg"
  55673. - fi
  55674. - prev=
  55675. - continue
  55676. - ;;
  55677. - esac
  55678. - ;;
  55679. - expsyms)
  55680. - export_symbols="$arg"
  55681. - if test ! -f "$arg"; then
  55682. - $echo "$modename: symbol file \`$arg' does not exist"
  55683. - exit $EXIT_FAILURE
  55684. - fi
  55685. - prev=
  55686. - continue
  55687. - ;;
  55688. - expsyms_regex)
  55689. - export_symbols_regex="$arg"
  55690. - prev=
  55691. - continue
  55692. - ;;
  55693. - inst_prefix)
  55694. - inst_prefix_dir="$arg"
  55695. - prev=
  55696. - continue
  55697. - ;;
  55698. - precious_regex)
  55699. - precious_files_regex="$arg"
  55700. - prev=
  55701. - continue
  55702. - ;;
  55703. - release)
  55704. - release="-$arg"
  55705. - prev=
  55706. - continue
  55707. - ;;
  55708. - objectlist)
  55709. - if test -f "$arg"; then
  55710. - save_arg=$arg
  55711. - moreargs=
  55712. - for fil in `cat $save_arg`
  55713. - do
  55714. -# moreargs="$moreargs $fil"
  55715. - arg=$fil
  55716. - # A libtool-controlled object.
  55717. +This mode accepts the following additional options:
  55718. - # Check to see that this really is a libtool object.
  55719. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  55720. - pic_object=
  55721. - non_pic_object=
  55722. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  55723. + -no-suppress do not suppress compiler output for multiple passes
  55724. + -prefer-pic try to building PIC objects only
  55725. + -prefer-non-pic try to building non-PIC objects only
  55726. + -shared do not build a \`.o' file suitable for static linking
  55727. + -static only build a \`.o' file suitable for static linking
  55728. - # Read the .lo file
  55729. - # If there is no directory component, then add one.
  55730. - case $arg in
  55731. - */* | *\\*) . $arg ;;
  55732. - *) . ./$arg ;;
  55733. - esac
  55734. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  55735. +from the given SOURCEFILE.
  55736. - if test -z "$pic_object" || \
  55737. - test -z "$non_pic_object" ||
  55738. - test "$pic_object" = none && \
  55739. - test "$non_pic_object" = none; then
  55740. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  55741. - exit $EXIT_FAILURE
  55742. - fi
  55743. +The output file name is determined by removing the directory component from
  55744. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  55745. +library object suffix, \`.lo'."
  55746. + ;;
  55747. - # Extract subdirectory from the argument.
  55748. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55749. - if test "X$xdir" = "X$arg"; then
  55750. - xdir=
  55751. - else
  55752. - xdir="$xdir/"
  55753. - fi
  55754. + execute)
  55755. + $ECHO \
  55756. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  55757. - if test "$pic_object" != none; then
  55758. - # Prepend the subdirectory the object is found in.
  55759. - pic_object="$xdir$pic_object"
  55760. +Automatically set library path, then run a program.
  55761. - if test "$prev" = dlfiles; then
  55762. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55763. - dlfiles="$dlfiles $pic_object"
  55764. - prev=
  55765. - continue
  55766. - else
  55767. - # If libtool objects are unsupported, then we need to preload.
  55768. - prev=dlprefiles
  55769. - fi
  55770. - fi
  55771. +This mode accepts the following additional options:
  55772. - # CHECK ME: I think I busted this. -Ossama
  55773. - if test "$prev" = dlprefiles; then
  55774. - # Preload the old-style object.
  55775. - dlprefiles="$dlprefiles $pic_object"
  55776. - prev=
  55777. - fi
  55778. + -dlopen FILE add the directory containing FILE to the library path
  55779. - # A PIC object.
  55780. - libobjs="$libobjs $pic_object"
  55781. - arg="$pic_object"
  55782. - fi
  55783. +This mode sets the library path environment variable according to \`-dlopen'
  55784. +flags.
  55785. - # Non-PIC object.
  55786. - if test "$non_pic_object" != none; then
  55787. - # Prepend the subdirectory the object is found in.
  55788. - non_pic_object="$xdir$non_pic_object"
  55789. +If any of the ARGS are libtool executable wrappers, then they are translated
  55790. +into their corresponding uninstalled binary, and any of their required library
  55791. +directories are added to the library path.
  55792. - # A standard non-PIC object
  55793. - non_pic_objects="$non_pic_objects $non_pic_object"
  55794. - if test -z "$pic_object" || test "$pic_object" = none ; then
  55795. - arg="$non_pic_object"
  55796. - fi
  55797. - else
  55798. - # If the PIC object exists, use it instead.
  55799. - # $xdir was prepended to $pic_object above.
  55800. - non_pic_object="$pic_object"
  55801. - non_pic_objects="$non_pic_objects $non_pic_object"
  55802. - fi
  55803. - else
  55804. - # Only an error if not doing a dry-run.
  55805. - if test -z "$run"; then
  55806. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  55807. - exit $EXIT_FAILURE
  55808. - else
  55809. - # Dry-run case.
  55810. +Then, COMMAND is executed, with ARGS as arguments."
  55811. + ;;
  55812. - # Extract subdirectory from the argument.
  55813. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  55814. - if test "X$xdir" = "X$arg"; then
  55815. - xdir=
  55816. - else
  55817. - xdir="$xdir/"
  55818. - fi
  55819. + finish)
  55820. + $ECHO \
  55821. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  55822. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  55823. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  55824. - libobjs="$libobjs $pic_object"
  55825. - non_pic_objects="$non_pic_objects $non_pic_object"
  55826. - fi
  55827. - fi
  55828. - done
  55829. - else
  55830. - $echo "$modename: link input file \`$save_arg' does not exist"
  55831. - exit $EXIT_FAILURE
  55832. - fi
  55833. - arg=$save_arg
  55834. - prev=
  55835. - continue
  55836. - ;;
  55837. - rpath | xrpath)
  55838. - # We need an absolute path.
  55839. - case $arg in
  55840. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55841. - *)
  55842. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  55843. - exit $EXIT_FAILURE
  55844. - ;;
  55845. - esac
  55846. - if test "$prev" = rpath; then
  55847. - case "$rpath " in
  55848. - *" $arg "*) ;;
  55849. - *) rpath="$rpath $arg" ;;
  55850. - esac
  55851. - else
  55852. - case "$xrpath " in
  55853. - *" $arg "*) ;;
  55854. - *) xrpath="$xrpath $arg" ;;
  55855. - esac
  55856. - fi
  55857. - prev=
  55858. - continue
  55859. - ;;
  55860. - xcompiler)
  55861. - compiler_flags="$compiler_flags $qarg"
  55862. - prev=
  55863. - compile_command="$compile_command $qarg"
  55864. - finalize_command="$finalize_command $qarg"
  55865. - continue
  55866. - ;;
  55867. - xlinker)
  55868. - linker_flags="$linker_flags $qarg"
  55869. - compiler_flags="$compiler_flags $wl$qarg"
  55870. - prev=
  55871. - compile_command="$compile_command $wl$qarg"
  55872. - finalize_command="$finalize_command $wl$qarg"
  55873. - continue
  55874. - ;;
  55875. - xcclinker)
  55876. - linker_flags="$linker_flags $qarg"
  55877. - compiler_flags="$compiler_flags $qarg"
  55878. - prev=
  55879. - compile_command="$compile_command $qarg"
  55880. - finalize_command="$finalize_command $qarg"
  55881. - continue
  55882. - ;;
  55883. - shrext)
  55884. - shrext_cmds="$arg"
  55885. - prev=
  55886. - continue
  55887. - ;;
  55888. - darwin_framework|darwin_framework_skip)
  55889. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  55890. - compile_command="$compile_command $arg"
  55891. - finalize_command="$finalize_command $arg"
  55892. - prev=
  55893. - continue
  55894. - ;;
  55895. - *)
  55896. - eval "$prev=\"\$arg\""
  55897. - prev=
  55898. - continue
  55899. - ;;
  55900. - esac
  55901. - fi # test -n "$prev"
  55902. +Complete the installation of libtool libraries.
  55903. - prevarg="$arg"
  55904. +Each LIBDIR is a directory that contains libtool libraries.
  55905. - case $arg in
  55906. - -all-static)
  55907. - if test -n "$link_static_flag"; then
  55908. - compile_command="$compile_command $link_static_flag"
  55909. - finalize_command="$finalize_command $link_static_flag"
  55910. - fi
  55911. - continue
  55912. - ;;
  55913. +The commands that this mode executes may require superuser privileges. Use
  55914. +the \`--dry-run' option if you just want to see what would be executed."
  55915. + ;;
  55916. - -allow-undefined)
  55917. - # FIXME: remove this flag sometime in the future.
  55918. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  55919. - continue
  55920. - ;;
  55921. + install)
  55922. + $ECHO \
  55923. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  55924. - -avoid-version)
  55925. - avoid_version=yes
  55926. - continue
  55927. - ;;
  55928. +Install executables or libraries.
  55929. - -dlopen)
  55930. - prev=dlfiles
  55931. - continue
  55932. - ;;
  55933. +INSTALL-COMMAND is the installation command. The first component should be
  55934. +either the \`install' or \`cp' program.
  55935. - -dlpreopen)
  55936. - prev=dlprefiles
  55937. - continue
  55938. - ;;
  55939. +The following components of INSTALL-COMMAND are treated specially:
  55940. - -export-dynamic)
  55941. - export_dynamic=yes
  55942. - continue
  55943. - ;;
  55944. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  55945. - -export-symbols | -export-symbols-regex)
  55946. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55947. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  55948. - exit $EXIT_FAILURE
  55949. - fi
  55950. - if test "X$arg" = "X-export-symbols"; then
  55951. - prev=expsyms
  55952. - else
  55953. - prev=expsyms_regex
  55954. - fi
  55955. - continue
  55956. - ;;
  55957. +The rest of the components are interpreted as arguments to that command (only
  55958. +BSD-compatible install options are recognized)."
  55959. + ;;
  55960. - -framework|-arch|-isysroot)
  55961. - case " $CC " in
  55962. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  55963. - prev=darwin_framework_skip ;;
  55964. - *) compiler_flags="$compiler_flags $arg"
  55965. - prev=darwin_framework ;;
  55966. - esac
  55967. - compile_command="$compile_command $arg"
  55968. - finalize_command="$finalize_command $arg"
  55969. - continue
  55970. - ;;
  55971. + link)
  55972. + $ECHO \
  55973. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  55974. - -inst-prefix-dir)
  55975. - prev=inst_prefix
  55976. - continue
  55977. - ;;
  55978. +Link object files or libraries together to form another library, or to
  55979. +create an executable program.
  55980. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55981. - # so, if we see these flags be careful not to treat them like -L
  55982. - -L[A-Z][A-Z]*:*)
  55983. - case $with_gcc/$host in
  55984. - no/*-*-irix* | /*-*-irix*)
  55985. - compile_command="$compile_command $arg"
  55986. - finalize_command="$finalize_command $arg"
  55987. - ;;
  55988. - esac
  55989. - continue
  55990. - ;;
  55991. +LINK-COMMAND is a command using the C compiler that you would use to create
  55992. +a program from several object files.
  55993. - -L*)
  55994. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  55995. - # We need an absolute path.
  55996. - case $dir in
  55997. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55998. - *)
  55999. - absdir=`cd "$dir" && pwd`
  56000. - if test -z "$absdir"; then
  56001. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  56002. - absdir="$dir"
  56003. - notinst_path="$notinst_path $dir"
  56004. - fi
  56005. - dir="$absdir"
  56006. - ;;
  56007. - esac
  56008. - case "$deplibs " in
  56009. - *" -L$dir "*) ;;
  56010. - *)
  56011. - deplibs="$deplibs -L$dir"
  56012. - lib_search_path="$lib_search_path $dir"
  56013. - ;;
  56014. - esac
  56015. - case $host in
  56016. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  56017. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  56018. - case :$dllsearchpath: in
  56019. - *":$dir:"*) ;;
  56020. - *) dllsearchpath="$dllsearchpath:$dir";;
  56021. - esac
  56022. - case :$dllsearchpath: in
  56023. - *":$testbindir:"*) ;;
  56024. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  56025. - esac
  56026. - ;;
  56027. - esac
  56028. - continue
  56029. - ;;
  56030. +The following components of LINK-COMMAND are treated specially:
  56031. - -l*)
  56032. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  56033. - case $host in
  56034. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  56035. - # These systems don't actually have a C or math library (as such)
  56036. - continue
  56037. - ;;
  56038. - *-*-os2*)
  56039. - # These systems don't actually have a C library (as such)
  56040. - test "X$arg" = "X-lc" && continue
  56041. - ;;
  56042. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56043. - # Do not include libc due to us having libc/libc_r.
  56044. - test "X$arg" = "X-lc" && continue
  56045. - ;;
  56046. - *-*-rhapsody* | *-*-darwin1.[012])
  56047. - # Rhapsody C and math libraries are in the System framework
  56048. - deplibs="$deplibs -framework System"
  56049. - continue
  56050. - ;;
  56051. - *-*-sco3.2v5* | *-*-sco5v6*)
  56052. - # Causes problems with __ctype
  56053. - test "X$arg" = "X-lc" && continue
  56054. - ;;
  56055. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56056. - # Compiler inserts libc in the correct place for threads to work
  56057. - test "X$arg" = "X-lc" && continue
  56058. - ;;
  56059. - esac
  56060. - elif test "X$arg" = "X-lc_r"; then
  56061. - case $host in
  56062. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56063. - # Do not include libc_r directly, use -pthread flag.
  56064. - continue
  56065. - ;;
  56066. - esac
  56067. - fi
  56068. - deplibs="$deplibs $arg"
  56069. - continue
  56070. - ;;
  56071. + -all-static do not do any dynamic linking at all
  56072. + -avoid-version do not add a version suffix if possible
  56073. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  56074. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  56075. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  56076. + -export-symbols SYMFILE
  56077. + try to export only the symbols listed in SYMFILE
  56078. + -export-symbols-regex REGEX
  56079. + try to export only the symbols matching REGEX
  56080. + -LLIBDIR search LIBDIR for required installed libraries
  56081. + -lNAME OUTPUT-FILE requires the installed library libNAME
  56082. + -module build a library that can dlopened
  56083. + -no-fast-install disable the fast-install mode
  56084. + -no-install link a not-installable executable
  56085. + -no-undefined declare that a library does not refer to external symbols
  56086. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  56087. + -objectlist FILE Use a list of object files found in FILE to specify objects
  56088. + -precious-files-regex REGEX
  56089. + don't remove output files matching REGEX
  56090. + -release RELEASE specify package release information
  56091. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  56092. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  56093. + -shared only do dynamic linking of libtool libraries
  56094. + -shrext SUFFIX override the standard shared library file extension
  56095. + -static do not do any dynamic linking of uninstalled libtool libraries
  56096. + -static-libtool-libs
  56097. + do not do any dynamic linking of libtool libraries
  56098. + -version-info CURRENT[:REVISION[:AGE]]
  56099. + specify library version info [each variable defaults to 0]
  56100. + -weak LIBNAME declare that the target provides the LIBNAME interface
  56101. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  56102. - # classes, name mangling, and exception handling.
  56103. - -model)
  56104. - compile_command="$compile_command $arg"
  56105. - compiler_flags="$compiler_flags $arg"
  56106. - finalize_command="$finalize_command $arg"
  56107. - prev=xcompiler
  56108. - continue
  56109. - ;;
  56110. +All other options (arguments beginning with \`-') are ignored.
  56111. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  56112. - compiler_flags="$compiler_flags $arg"
  56113. - compile_command="$compile_command $arg"
  56114. - finalize_command="$finalize_command $arg"
  56115. - continue
  56116. - ;;
  56117. +Every other argument is treated as a filename. Files ending in \`.la' are
  56118. +treated as uninstalled libtool libraries, other files are standard or library
  56119. +object files.
  56120. - -module)
  56121. - module=yes
  56122. - continue
  56123. - ;;
  56124. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  56125. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  56126. +required, except when creating a convenience library.
  56127. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  56128. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  56129. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  56130. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  56131. - # -q* pass through compiler args for the IBM compiler
  56132. - # -m* pass through architecture-specific compiler args for GCC
  56133. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  56134. - # compiler args for GCC
  56135. - # -pg pass through profiling flag for GCC
  56136. - # @file GCC response files
  56137. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  56138. - -t[45]*|-txscale*|@*)
  56139. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  56140. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  56141. - # Unknown arguments in both finalize_command and compile_command need
  56142. - # to be aesthetically quoted because they are evaled later.
  56143. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56144. - case $arg in
  56145. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56146. - arg="\"$arg\""
  56147. - ;;
  56148. - esac
  56149. - compile_command="$compile_command $arg"
  56150. - finalize_command="$finalize_command $arg"
  56151. - compiler_flags="$compiler_flags $arg"
  56152. - continue
  56153. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  56154. +is created, otherwise an executable program is created."
  56155. ;;
  56156. - -shrext)
  56157. - prev=shrext
  56158. - continue
  56159. - ;;
  56160. + uninstall)
  56161. + $ECHO \
  56162. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  56163. - -no-fast-install)
  56164. - fast_install=no
  56165. - continue
  56166. - ;;
  56167. +Remove libraries from an installation directory.
  56168. - -no-install)
  56169. - case $host in
  56170. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  56171. - # The PATH hackery in wrapper scripts is required on Windows
  56172. - # in order for the loader to find any dlls it needs.
  56173. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  56174. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  56175. - fast_install=no
  56176. - ;;
  56177. - *) no_install=yes ;;
  56178. - esac
  56179. - continue
  56180. - ;;
  56181. +RM is the name of the program to use to delete files associated with each FILE
  56182. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  56183. +to RM.
  56184. - -no-undefined)
  56185. - allow_undefined=no
  56186. - continue
  56187. - ;;
  56188. +If FILE is a libtool library, all the files associated with it are deleted.
  56189. +Otherwise, only FILE itself is deleted using RM."
  56190. + ;;
  56191. - -objectlist)
  56192. - prev=objectlist
  56193. - continue
  56194. - ;;
  56195. + *)
  56196. + func_fatal_help "invalid operation mode \`$mode'"
  56197. + ;;
  56198. + esac
  56199. - -o) prev=output ;;
  56200. + $ECHO
  56201. + $ECHO "Try \`$progname --help' for more information about other modes."
  56202. - -precious-files-regex)
  56203. - prev=precious_regex
  56204. - continue
  56205. - ;;
  56206. + exit $?
  56207. +}
  56208. - -release)
  56209. - prev=release
  56210. - continue
  56211. - ;;
  56212. + # Now that we've collected a possible --mode arg, show help if necessary
  56213. + $opt_help && func_mode_help
  56214. - -rpath)
  56215. - prev=rpath
  56216. - continue
  56217. - ;;
  56218. - -R)
  56219. - prev=xrpath
  56220. - continue
  56221. - ;;
  56222. +# func_mode_execute arg...
  56223. +func_mode_execute ()
  56224. +{
  56225. + $opt_debug
  56226. + # The first argument is the command name.
  56227. + cmd="$nonopt"
  56228. + test -z "$cmd" && \
  56229. + func_fatal_help "you must specify a COMMAND"
  56230. - -R*)
  56231. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  56232. - # We need an absolute path.
  56233. - case $dir in
  56234. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  56235. - *)
  56236. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  56237. - exit $EXIT_FAILURE
  56238. - ;;
  56239. - esac
  56240. - case "$xrpath " in
  56241. - *" $dir "*) ;;
  56242. - *) xrpath="$xrpath $dir" ;;
  56243. - esac
  56244. - continue
  56245. - ;;
  56246. -
  56247. - -static)
  56248. - # The effects of -static are defined in a previous loop.
  56249. - # We used to do the same as -all-static on platforms that
  56250. - # didn't have a PIC flag, but the assumption that the effects
  56251. - # would be equivalent was wrong. It would break on at least
  56252. - # Digital Unix and AIX.
  56253. - continue
  56254. - ;;
  56255. + # Handle -dlopen flags immediately.
  56256. + for file in $execute_dlfiles; do
  56257. + test -f "$file" \
  56258. + || func_fatal_help "\`$file' is not a file"
  56259. - -thread-safe)
  56260. - thread_safe=yes
  56261. - continue
  56262. - ;;
  56263. + dir=
  56264. + case $file in
  56265. + *.la)
  56266. + # Check to see that this really is a libtool archive.
  56267. + func_lalib_unsafe_p "$file" \
  56268. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  56269. - -version-info)
  56270. - prev=vinfo
  56271. - continue
  56272. - ;;
  56273. - -version-number)
  56274. - prev=vinfo
  56275. - vinfo_number=yes
  56276. - continue
  56277. - ;;
  56278. + # Read the libtool library.
  56279. + dlname=
  56280. + library_names=
  56281. + func_source "$file"
  56282. - -Wc,*)
  56283. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  56284. - arg=
  56285. - save_ifs="$IFS"; IFS=','
  56286. - for flag in $args; do
  56287. - IFS="$save_ifs"
  56288. - case $flag in
  56289. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56290. - flag="\"$flag\""
  56291. - ;;
  56292. - esac
  56293. - arg="$arg $wl$flag"
  56294. - compiler_flags="$compiler_flags $flag"
  56295. - done
  56296. - IFS="$save_ifs"
  56297. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  56298. - ;;
  56299. + # Skip this library if it cannot be dlopened.
  56300. + if test -z "$dlname"; then
  56301. + # Warn if it was a shared library.
  56302. + test -n "$library_names" && \
  56303. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  56304. + continue
  56305. + fi
  56306. - -Wl,*)
  56307. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  56308. - arg=
  56309. - save_ifs="$IFS"; IFS=','
  56310. - for flag in $args; do
  56311. - IFS="$save_ifs"
  56312. - case $flag in
  56313. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56314. - flag="\"$flag\""
  56315. - ;;
  56316. - esac
  56317. - arg="$arg $wl$flag"
  56318. - compiler_flags="$compiler_flags $wl$flag"
  56319. - linker_flags="$linker_flags $flag"
  56320. - done
  56321. - IFS="$save_ifs"
  56322. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  56323. - ;;
  56324. + func_dirname "$file" "" "."
  56325. + dir="$func_dirname_result"
  56326. - -Xcompiler)
  56327. - prev=xcompiler
  56328. - continue
  56329. + if test -f "$dir/$objdir/$dlname"; then
  56330. + dir="$dir/$objdir"
  56331. + else
  56332. + if test ! -f "$dir/$dlname"; then
  56333. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  56334. + fi
  56335. + fi
  56336. ;;
  56337. - -Xlinker)
  56338. - prev=xlinker
  56339. - continue
  56340. + *.lo)
  56341. + # Just add the directory containing the .lo file.
  56342. + func_dirname "$file" "" "."
  56343. + dir="$func_dirname_result"
  56344. ;;
  56345. - -XCClinker)
  56346. - prev=xcclinker
  56347. + *)
  56348. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  56349. continue
  56350. ;;
  56351. + esac
  56352. - # Some other compiler flag.
  56353. - -* | +*)
  56354. - # Unknown arguments in both finalize_command and compile_command need
  56355. - # to be aesthetically quoted because they are evaled later.
  56356. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56357. - case $arg in
  56358. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56359. - arg="\"$arg\""
  56360. - ;;
  56361. - esac
  56362. - ;;
  56363. + # Get the absolute pathname.
  56364. + absdir=`cd "$dir" && pwd`
  56365. + test -n "$absdir" && dir="$absdir"
  56366. - *.$objext)
  56367. - # A standard object.
  56368. - objs="$objs $arg"
  56369. - ;;
  56370. + # Now add the directory to shlibpath_var.
  56371. + if eval "test -z \"\$$shlibpath_var\""; then
  56372. + eval "$shlibpath_var=\"\$dir\""
  56373. + else
  56374. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  56375. + fi
  56376. + done
  56377. - *.lo)
  56378. - # A libtool-controlled object.
  56379. + # This variable tells wrapper scripts just to set shlibpath_var
  56380. + # rather than running their programs.
  56381. + libtool_execute_magic="$magic"
  56382. - # Check to see that this really is a libtool object.
  56383. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56384. - pic_object=
  56385. - non_pic_object=
  56386. + # Check if any of the arguments is a wrapper script.
  56387. + args=
  56388. + for file
  56389. + do
  56390. + case $file in
  56391. + -*) ;;
  56392. + *)
  56393. + # Do a test to see if this is really a libtool program.
  56394. + if func_ltwrapper_script_p "$file"; then
  56395. + func_source "$file"
  56396. + # Transform arg to wrapped name.
  56397. + file="$progdir/$program"
  56398. + elif func_ltwrapper_executable_p "$file"; then
  56399. + func_ltwrapper_scriptname "$file"
  56400. + func_source "$func_ltwrapper_scriptname_result"
  56401. + # Transform arg to wrapped name.
  56402. + file="$progdir/$program"
  56403. + fi
  56404. + ;;
  56405. + esac
  56406. + # Quote arguments (to preserve shell metacharacters).
  56407. + func_quote_for_eval "$file"
  56408. + args="$args $func_quote_for_eval_result"
  56409. + done
  56410. - # Read the .lo file
  56411. - # If there is no directory component, then add one.
  56412. - case $arg in
  56413. - */* | *\\*) . $arg ;;
  56414. - *) . ./$arg ;;
  56415. - esac
  56416. + if test "X$opt_dry_run" = Xfalse; then
  56417. + if test -n "$shlibpath_var"; then
  56418. + # Export the shlibpath_var.
  56419. + eval "export $shlibpath_var"
  56420. + fi
  56421. - if test -z "$pic_object" || \
  56422. - test -z "$non_pic_object" ||
  56423. - test "$pic_object" = none && \
  56424. - test "$non_pic_object" = none; then
  56425. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  56426. - exit $EXIT_FAILURE
  56427. - fi
  56428. + # Restore saved environment variables
  56429. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  56430. + do
  56431. + eval "if test \"\${save_$lt_var+set}\" = set; then
  56432. + $lt_var=\$save_$lt_var; export $lt_var
  56433. + else
  56434. + $lt_unset $lt_var
  56435. + fi"
  56436. + done
  56437. - # Extract subdirectory from the argument.
  56438. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  56439. - if test "X$xdir" = "X$arg"; then
  56440. - xdir=
  56441. - else
  56442. - xdir="$xdir/"
  56443. - fi
  56444. + # Now prepare to actually exec the command.
  56445. + exec_cmd="\$cmd$args"
  56446. + else
  56447. + # Display what would be done.
  56448. + if test -n "$shlibpath_var"; then
  56449. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  56450. + $ECHO "export $shlibpath_var"
  56451. + fi
  56452. + $ECHO "$cmd$args"
  56453. + exit $EXIT_SUCCESS
  56454. + fi
  56455. +}
  56456. - if test "$pic_object" != none; then
  56457. - # Prepend the subdirectory the object is found in.
  56458. - pic_object="$xdir$pic_object"
  56459. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  56460. - if test "$prev" = dlfiles; then
  56461. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56462. - dlfiles="$dlfiles $pic_object"
  56463. - prev=
  56464. - continue
  56465. - else
  56466. - # If libtool objects are unsupported, then we need to preload.
  56467. - prev=dlprefiles
  56468. - fi
  56469. - fi
  56470. - # CHECK ME: I think I busted this. -Ossama
  56471. - if test "$prev" = dlprefiles; then
  56472. - # Preload the old-style object.
  56473. - dlprefiles="$dlprefiles $pic_object"
  56474. - prev=
  56475. - fi
  56476. +# func_mode_finish arg...
  56477. +func_mode_finish ()
  56478. +{
  56479. + $opt_debug
  56480. + libdirs="$nonopt"
  56481. + admincmds=
  56482. - # A PIC object.
  56483. - libobjs="$libobjs $pic_object"
  56484. - arg="$pic_object"
  56485. - fi
  56486. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  56487. + for dir
  56488. + do
  56489. + libdirs="$libdirs $dir"
  56490. + done
  56491. - # Non-PIC object.
  56492. - if test "$non_pic_object" != none; then
  56493. - # Prepend the subdirectory the object is found in.
  56494. - non_pic_object="$xdir$non_pic_object"
  56495. + for libdir in $libdirs; do
  56496. + if test -n "$finish_cmds"; then
  56497. + # Do each command in the finish commands.
  56498. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  56499. +'"$cmd"'"'
  56500. + fi
  56501. + if test -n "$finish_eval"; then
  56502. + # Do the single finish_eval.
  56503. + eval cmds=\"$finish_eval\"
  56504. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  56505. + $cmds"
  56506. + fi
  56507. + done
  56508. + fi
  56509. - # A standard non-PIC object
  56510. - non_pic_objects="$non_pic_objects $non_pic_object"
  56511. - if test -z "$pic_object" || test "$pic_object" = none ; then
  56512. - arg="$non_pic_object"
  56513. - fi
  56514. - else
  56515. - # If the PIC object exists, use it instead.
  56516. - # $xdir was prepended to $pic_object above.
  56517. - non_pic_object="$pic_object"
  56518. - non_pic_objects="$non_pic_objects $non_pic_object"
  56519. - fi
  56520. - else
  56521. - # Only an error if not doing a dry-run.
  56522. - if test -z "$run"; then
  56523. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  56524. - exit $EXIT_FAILURE
  56525. - else
  56526. - # Dry-run case.
  56527. + # Exit here if they wanted silent mode.
  56528. + $opt_silent && exit $EXIT_SUCCESS
  56529. - # Extract subdirectory from the argument.
  56530. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  56531. - if test "X$xdir" = "X$arg"; then
  56532. - xdir=
  56533. - else
  56534. - xdir="$xdir/"
  56535. - fi
  56536. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  56537. + $ECHO "Libraries have been installed in:"
  56538. + for libdir in $libdirs; do
  56539. + $ECHO " $libdir"
  56540. + done
  56541. + $ECHO
  56542. + $ECHO "If you ever happen to want to link against installed libraries"
  56543. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  56544. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  56545. + $ECHO "flag during linking and do at least one of the following:"
  56546. + if test -n "$shlibpath_var"; then
  56547. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  56548. + $ECHO " during execution"
  56549. + fi
  56550. + if test -n "$runpath_var"; then
  56551. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  56552. + $ECHO " during linking"
  56553. + fi
  56554. + if test -n "$hardcode_libdir_flag_spec"; then
  56555. + libdir=LIBDIR
  56556. + eval flag=\"$hardcode_libdir_flag_spec\"
  56557. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  56558. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  56559. - libobjs="$libobjs $pic_object"
  56560. - non_pic_objects="$non_pic_objects $non_pic_object"
  56561. - fi
  56562. - fi
  56563. - ;;
  56564. + $ECHO " - use the \`$flag' linker flag"
  56565. + fi
  56566. + if test -n "$admincmds"; then
  56567. + $ECHO " - have your system administrator run these commands:$admincmds"
  56568. + fi
  56569. + if test -f /etc/ld.so.conf; then
  56570. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  56571. + fi
  56572. + $ECHO
  56573. - *.$libext)
  56574. - # An archive.
  56575. - deplibs="$deplibs $arg"
  56576. - old_deplibs="$old_deplibs $arg"
  56577. - continue
  56578. + $ECHO "See any operating system documentation about shared libraries for"
  56579. + case $host in
  56580. + solaris2.[6789]|solaris2.1[0-9])
  56581. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  56582. + $ECHO "pages."
  56583. ;;
  56584. + *)
  56585. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  56586. + ;;
  56587. + esac
  56588. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  56589. + exit $EXIT_SUCCESS
  56590. +}
  56591. - *.la)
  56592. - # A libtool-controlled library.
  56593. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  56594. - if test "$prev" = dlfiles; then
  56595. - # This library was specified with -dlopen.
  56596. - dlfiles="$dlfiles $arg"
  56597. - prev=
  56598. - elif test "$prev" = dlprefiles; then
  56599. - # The library was specified with -dlpreopen.
  56600. - dlprefiles="$dlprefiles $arg"
  56601. - prev=
  56602. - else
  56603. - deplibs="$deplibs $arg"
  56604. - fi
  56605. - continue
  56606. - ;;
  56607. - # Some other compiler argument.
  56608. - *)
  56609. - # Unknown arguments in both finalize_command and compile_command need
  56610. - # to be aesthetically quoted because they are evaled later.
  56611. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56612. - case $arg in
  56613. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56614. - arg="\"$arg\""
  56615. - ;;
  56616. - esac
  56617. - ;;
  56618. - esac # arg
  56619. +# func_mode_install arg...
  56620. +func_mode_install ()
  56621. +{
  56622. + $opt_debug
  56623. + # There may be an optional sh(1) argument at the beginning of
  56624. + # install_prog (especially on Windows NT).
  56625. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  56626. + # Allow the use of GNU shtool's install command.
  56627. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  56628. + # Aesthetically quote it.
  56629. + func_quote_for_eval "$nonopt"
  56630. + install_prog="$func_quote_for_eval_result "
  56631. + arg=$1
  56632. + shift
  56633. + else
  56634. + install_prog=
  56635. + arg=$nonopt
  56636. + fi
  56637. - # Now actually substitute the argument into the commands.
  56638. - if test -n "$arg"; then
  56639. - compile_command="$compile_command $arg"
  56640. - finalize_command="$finalize_command $arg"
  56641. + # The real first argument should be the name of the installation program.
  56642. + # Aesthetically quote it.
  56643. + func_quote_for_eval "$arg"
  56644. + install_prog="$install_prog$func_quote_for_eval_result"
  56645. +
  56646. + # We need to accept at least all the BSD install flags.
  56647. + dest=
  56648. + files=
  56649. + opts=
  56650. + prev=
  56651. + install_type=
  56652. + isdir=no
  56653. + stripme=
  56654. + for arg
  56655. + do
  56656. + if test -n "$dest"; then
  56657. + files="$files $dest"
  56658. + dest=$arg
  56659. + continue
  56660. fi
  56661. - done # argument parsing loop
  56662. - if test -n "$prev"; then
  56663. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  56664. - $echo "$help" 1>&2
  56665. - exit $EXIT_FAILURE
  56666. - fi
  56667. + case $arg in
  56668. + -d) isdir=yes ;;
  56669. + -f)
  56670. + case " $install_prog " in
  56671. + *[\\\ /]cp\ *) ;;
  56672. + *) prev=$arg ;;
  56673. + esac
  56674. + ;;
  56675. + -g | -m | -o)
  56676. + prev=$arg
  56677. + ;;
  56678. + -s)
  56679. + stripme=" -s"
  56680. + continue
  56681. + ;;
  56682. + -*)
  56683. + ;;
  56684. + *)
  56685. + # If the previous option needed an argument, then skip it.
  56686. + if test -n "$prev"; then
  56687. + prev=
  56688. + else
  56689. + dest=$arg
  56690. + continue
  56691. + fi
  56692. + ;;
  56693. + esac
  56694. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56695. - eval arg=\"$export_dynamic_flag_spec\"
  56696. - compile_command="$compile_command $arg"
  56697. - finalize_command="$finalize_command $arg"
  56698. - fi
  56699. + # Aesthetically quote the argument.
  56700. + func_quote_for_eval "$arg"
  56701. + install_prog="$install_prog $func_quote_for_eval_result"
  56702. + done
  56703. - oldlibs=
  56704. - # calculate the name of the file, without its directory
  56705. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  56706. - libobjs_save="$libobjs"
  56707. + test -z "$install_prog" && \
  56708. + func_fatal_help "you must specify an install program"
  56709. - if test -n "$shlibpath_var"; then
  56710. - # get the directories listed in $shlibpath_var
  56711. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56712. - else
  56713. - shlib_search_path=
  56714. - fi
  56715. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56716. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56717. + test -n "$prev" && \
  56718. + func_fatal_help "the \`$prev' option requires an argument"
  56719. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  56720. - if test "X$output_objdir" = "X$output"; then
  56721. - output_objdir="$objdir"
  56722. - else
  56723. - output_objdir="$output_objdir/$objdir"
  56724. - fi
  56725. - # Create the object directory.
  56726. - if test ! -d "$output_objdir"; then
  56727. - $show "$mkdir $output_objdir"
  56728. - $run $mkdir $output_objdir
  56729. - exit_status=$?
  56730. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  56731. - exit $exit_status
  56732. + if test -z "$files"; then
  56733. + if test -z "$dest"; then
  56734. + func_fatal_help "no file or destination specified"
  56735. + else
  56736. + func_fatal_help "you must specify a destination"
  56737. fi
  56738. fi
  56739. - # Determine the type of output
  56740. - case $output in
  56741. - "")
  56742. - $echo "$modename: you must specify an output file" 1>&2
  56743. - $echo "$help" 1>&2
  56744. - exit $EXIT_FAILURE
  56745. - ;;
  56746. - *.$libext) linkmode=oldlib ;;
  56747. - *.lo | *.$objext) linkmode=obj ;;
  56748. - *.la) linkmode=lib ;;
  56749. - *) linkmode=prog ;; # Anything else should be a program.
  56750. - esac
  56751. + # Strip any trailing slash from the destination.
  56752. + func_stripname '' '/' "$dest"
  56753. + dest=$func_stripname_result
  56754. - case $host in
  56755. - *cygwin* | *mingw* | *pw32*)
  56756. - # don't eliminate duplications in $postdeps and $predeps
  56757. - duplicate_compiler_generated_deps=yes
  56758. - ;;
  56759. + # Check to see that the destination is a directory.
  56760. + test -d "$dest" && isdir=yes
  56761. + if test "$isdir" = yes; then
  56762. + destdir="$dest"
  56763. + destname=
  56764. + else
  56765. + func_dirname_and_basename "$dest" "" "."
  56766. + destdir="$func_dirname_result"
  56767. + destname="$func_basename_result"
  56768. +
  56769. + # Not a directory, so check to see that there is only one file specified.
  56770. + set dummy $files; shift
  56771. + test "$#" -gt 1 && \
  56772. + func_fatal_help "\`$dest' is not a directory"
  56773. + fi
  56774. + case $destdir in
  56775. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56776. *)
  56777. - duplicate_compiler_generated_deps=$duplicate_deps
  56778. + for file in $files; do
  56779. + case $file in
  56780. + *.lo) ;;
  56781. + *)
  56782. + func_fatal_help "\`$destdir' must be an absolute directory name"
  56783. + ;;
  56784. + esac
  56785. + done
  56786. ;;
  56787. esac
  56788. - specialdeplibs=
  56789. - libs=
  56790. - # Find all interdependent deplibs by searching for libraries
  56791. - # that are linked more than once (e.g. -la -lb -la)
  56792. - for deplib in $deplibs; do
  56793. - if test "X$duplicate_deps" = "Xyes" ; then
  56794. - case "$libs " in
  56795. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56796. - esac
  56797. - fi
  56798. - libs="$libs $deplib"
  56799. - done
  56800. + # This variable tells wrapper scripts just to set variables rather
  56801. + # than running their programs.
  56802. + libtool_install_magic="$magic"
  56803. - if test "$linkmode" = lib; then
  56804. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56805. + staticlibs=
  56806. + future_libdirs=
  56807. + current_libdirs=
  56808. + for file in $files; do
  56809. - # Compute libraries that are listed more than once in $predeps
  56810. - # $postdeps and mark them as special (i.e., whose duplicates are
  56811. - # not to be eliminated).
  56812. - pre_post_deps=
  56813. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  56814. - for pre_post_dep in $predeps $postdeps; do
  56815. - case "$pre_post_deps " in
  56816. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56817. + # Do each installation.
  56818. + case $file in
  56819. + *.$libext)
  56820. + # Do the static libraries later.
  56821. + staticlibs="$staticlibs $file"
  56822. + ;;
  56823. +
  56824. + *.la)
  56825. + # Check to see that this really is a libtool archive.
  56826. + func_lalib_unsafe_p "$file" \
  56827. + || func_fatal_help "\`$file' is not a valid libtool archive"
  56828. +
  56829. + library_names=
  56830. + old_library=
  56831. + relink_command=
  56832. + func_source "$file"
  56833. +
  56834. + # Add the libdir to current_libdirs if it is the destination.
  56835. + if test "X$destdir" = "X$libdir"; then
  56836. + case "$current_libdirs " in
  56837. + *" $libdir "*) ;;
  56838. + *) current_libdirs="$current_libdirs $libdir" ;;
  56839. esac
  56840. - pre_post_deps="$pre_post_deps $pre_post_dep"
  56841. - done
  56842. - fi
  56843. - pre_post_deps=
  56844. - fi
  56845. + else
  56846. + # Note the libdir as a future libdir.
  56847. + case "$future_libdirs " in
  56848. + *" $libdir "*) ;;
  56849. + *) future_libdirs="$future_libdirs $libdir" ;;
  56850. + esac
  56851. + fi
  56852. - deplibs=
  56853. - newdependency_libs=
  56854. - newlib_search_path=
  56855. - need_relink=no # whether we're linking any uninstalled libtool libraries
  56856. - notinst_deplibs= # not-installed libtool libraries
  56857. - case $linkmode in
  56858. - lib)
  56859. - passes="conv link"
  56860. - for file in $dlfiles $dlprefiles; do
  56861. - case $file in
  56862. - *.la) ;;
  56863. - *)
  56864. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  56865. - exit $EXIT_FAILURE
  56866. + func_dirname "$file" "/" ""
  56867. + dir="$func_dirname_result"
  56868. + dir="$dir$objdir"
  56869. +
  56870. + if test -n "$relink_command"; then
  56871. + # Determine the prefix the user has applied to our future dir.
  56872. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  56873. +
  56874. + # Don't allow the user to place us outside of our expected
  56875. + # location b/c this prevents finding dependent libraries that
  56876. + # are installed to the same prefix.
  56877. + # At present, this check doesn't affect windows .dll's that
  56878. + # are installed into $libdir/../bin (currently, that works fine)
  56879. + # but it's something to keep an eye on.
  56880. + test "$inst_prefix_dir" = "$destdir" && \
  56881. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  56882. +
  56883. + if test -n "$inst_prefix_dir"; then
  56884. + # Stick the inst_prefix_dir data into the link command.
  56885. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  56886. + else
  56887. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  56888. + fi
  56889. +
  56890. + func_warning "relinking \`$file'"
  56891. + func_show_eval "$relink_command" \
  56892. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  56893. + fi
  56894. +
  56895. + # See the names of the shared library.
  56896. + set dummy $library_names; shift
  56897. + if test -n "$1"; then
  56898. + realname="$1"
  56899. + shift
  56900. +
  56901. + srcname="$realname"
  56902. + test -n "$relink_command" && srcname="$realname"T
  56903. +
  56904. + # Install the shared library and build the symlinks.
  56905. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  56906. + 'exit $?'
  56907. + tstripme="$stripme"
  56908. + case $host_os in
  56909. + cygwin* | mingw* | pw32* | cegcc*)
  56910. + case $realname in
  56911. + *.dll.a)
  56912. + tstripme=""
  56913. + ;;
  56914. + esac
  56915. ;;
  56916. esac
  56917. - done
  56918. - ;;
  56919. - prog)
  56920. - compile_deplibs=
  56921. - finalize_deplibs=
  56922. - alldeplibs=no
  56923. - newdlfiles=
  56924. - newdlprefiles=
  56925. - passes="conv scan dlopen dlpreopen link"
  56926. - ;;
  56927. - *) passes="conv"
  56928. + if test -n "$tstripme" && test -n "$striplib"; then
  56929. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  56930. + fi
  56931. +
  56932. + if test "$#" -gt 0; then
  56933. + # Delete the old symlinks, and create new ones.
  56934. + # Try `ln -sf' first, because the `ln' binary might depend on
  56935. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  56936. + # so we also need to try rm && ln -s.
  56937. + for linkname
  56938. + do
  56939. + test "$linkname" != "$realname" \
  56940. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  56941. + done
  56942. + fi
  56943. +
  56944. + # Do each command in the postinstall commands.
  56945. + lib="$destdir/$realname"
  56946. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  56947. + fi
  56948. +
  56949. + # Install the pseudo-library for information purposes.
  56950. + func_basename "$file"
  56951. + name="$func_basename_result"
  56952. + instname="$dir/$name"i
  56953. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  56954. +
  56955. + # Maybe install the static library, too.
  56956. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  56957. ;;
  56958. - esac
  56959. - for pass in $passes; do
  56960. - if test "$linkmode,$pass" = "lib,link" ||
  56961. - test "$linkmode,$pass" = "prog,scan"; then
  56962. - libs="$deplibs"
  56963. - deplibs=
  56964. - fi
  56965. - if test "$linkmode" = prog; then
  56966. - case $pass in
  56967. - dlopen) libs="$dlfiles" ;;
  56968. - dlpreopen) libs="$dlprefiles" ;;
  56969. - link)
  56970. - libs="$deplibs %DEPLIBS%"
  56971. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56972. +
  56973. + *.lo)
  56974. + # Install (i.e. copy) a libtool object.
  56975. +
  56976. + # Figure out destination file name, if it wasn't already specified.
  56977. + if test -n "$destname"; then
  56978. + destfile="$destdir/$destname"
  56979. + else
  56980. + func_basename "$file"
  56981. + destfile="$func_basename_result"
  56982. + destfile="$destdir/$destfile"
  56983. + fi
  56984. +
  56985. + # Deduce the name of the destination old-style object file.
  56986. + case $destfile in
  56987. + *.lo)
  56988. + func_lo2o "$destfile"
  56989. + staticdest=$func_lo2o_result
  56990. ;;
  56991. - esac
  56992. - fi
  56993. - if test "$pass" = dlopen; then
  56994. - # Collect dlpreopened libraries
  56995. - save_deplibs="$deplibs"
  56996. - deplibs=
  56997. - fi
  56998. - for deplib in $libs; do
  56999. - lib=
  57000. - found=no
  57001. - case $deplib in
  57002. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  57003. - if test "$linkmode,$pass" = "prog,link"; then
  57004. - compile_deplibs="$deplib $compile_deplibs"
  57005. - finalize_deplibs="$deplib $finalize_deplibs"
  57006. - else
  57007. - compiler_flags="$compiler_flags $deplib"
  57008. - fi
  57009. - continue
  57010. + *.$objext)
  57011. + staticdest="$destfile"
  57012. + destfile=
  57013. ;;
  57014. - -l*)
  57015. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  57016. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  57017. - continue
  57018. - fi
  57019. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  57020. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  57021. - for search_ext in .la $std_shrext .so .a; do
  57022. - # Search the libtool library
  57023. - lib="$searchdir/lib${name}${search_ext}"
  57024. - if test -f "$lib"; then
  57025. - if test "$search_ext" = ".la"; then
  57026. - found=yes
  57027. - else
  57028. - found=no
  57029. - fi
  57030. - break 2
  57031. - fi
  57032. - done
  57033. - done
  57034. - if test "$found" != yes; then
  57035. - # deplib doesn't seem to be a libtool library
  57036. - if test "$linkmode,$pass" = "prog,link"; then
  57037. - compile_deplibs="$deplib $compile_deplibs"
  57038. - finalize_deplibs="$deplib $finalize_deplibs"
  57039. - else
  57040. - deplibs="$deplib $deplibs"
  57041. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  57042. - fi
  57043. - continue
  57044. - else # deplib is a libtool library
  57045. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  57046. - # We need to do some special things here, and not later.
  57047. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57048. - case " $predeps $postdeps " in
  57049. - *" $deplib "*)
  57050. - if (${SED} -e '2q' $lib |
  57051. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  57052. - library_names=
  57053. - old_library=
  57054. - case $lib in
  57055. - */* | *\\*) . $lib ;;
  57056. - *) . ./$lib ;;
  57057. - esac
  57058. - for l in $old_library $library_names; do
  57059. - ll="$l"
  57060. - done
  57061. - if test "X$ll" = "X$old_library" ; then # only static version available
  57062. - found=no
  57063. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  57064. - test "X$ladir" = "X$lib" && ladir="."
  57065. - lib=$ladir/$old_library
  57066. - if test "$linkmode,$pass" = "prog,link"; then
  57067. - compile_deplibs="$deplib $compile_deplibs"
  57068. - finalize_deplibs="$deplib $finalize_deplibs"
  57069. - else
  57070. - deplibs="$deplib $deplibs"
  57071. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  57072. - fi
  57073. - continue
  57074. - fi
  57075. - fi
  57076. - ;;
  57077. - *) ;;
  57078. - esac
  57079. + *)
  57080. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  57081. + ;;
  57082. + esac
  57083. +
  57084. + # Install the libtool object if requested.
  57085. + test -n "$destfile" && \
  57086. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  57087. +
  57088. + # Install the old object if enabled.
  57089. + if test "$build_old_libs" = yes; then
  57090. + # Deduce the name of the old-style object file.
  57091. + func_lo2o "$file"
  57092. + staticobj=$func_lo2o_result
  57093. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  57094. + fi
  57095. + exit $EXIT_SUCCESS
  57096. + ;;
  57097. +
  57098. + *)
  57099. + # Figure out destination file name, if it wasn't already specified.
  57100. + if test -n "$destname"; then
  57101. + destfile="$destdir/$destname"
  57102. + else
  57103. + func_basename "$file"
  57104. + destfile="$func_basename_result"
  57105. + destfile="$destdir/$destfile"
  57106. + fi
  57107. +
  57108. + # If the file is missing, and there is a .exe on the end, strip it
  57109. + # because it is most likely a libtool script we actually want to
  57110. + # install
  57111. + stripped_ext=""
  57112. + case $file in
  57113. + *.exe)
  57114. + if test ! -f "$file"; then
  57115. + func_stripname '' '.exe' "$file"
  57116. + file=$func_stripname_result
  57117. + stripped_ext=".exe"
  57118. fi
  57119. - fi
  57120. - ;; # -l
  57121. - -L*)
  57122. - case $linkmode in
  57123. - lib)
  57124. - deplibs="$deplib $deplibs"
  57125. - test "$pass" = conv && continue
  57126. - newdependency_libs="$deplib $newdependency_libs"
  57127. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  57128. ;;
  57129. - prog)
  57130. - if test "$pass" = conv; then
  57131. - deplibs="$deplib $deplibs"
  57132. - continue
  57133. - fi
  57134. - if test "$pass" = scan; then
  57135. - deplibs="$deplib $deplibs"
  57136. + esac
  57137. +
  57138. + # Do a test to see if this is really a libtool program.
  57139. + case $host in
  57140. + *cygwin* | *mingw*)
  57141. + if func_ltwrapper_executable_p "$file"; then
  57142. + func_ltwrapper_scriptname "$file"
  57143. + wrapper=$func_ltwrapper_scriptname_result
  57144. else
  57145. - compile_deplibs="$deplib $compile_deplibs"
  57146. - finalize_deplibs="$deplib $finalize_deplibs"
  57147. + func_stripname '' '.exe' "$file"
  57148. + wrapper=$func_stripname_result
  57149. fi
  57150. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  57151. ;;
  57152. - *)
  57153. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  57154. - ;;
  57155. - esac # linkmode
  57156. - continue
  57157. - ;; # -L
  57158. - -R*)
  57159. - if test "$pass" = link; then
  57160. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  57161. - # Make sure the xrpath contains only unique directories.
  57162. - case "$xrpath " in
  57163. - *" $dir "*) ;;
  57164. - *) xrpath="$xrpath $dir" ;;
  57165. - esac
  57166. - fi
  57167. - deplibs="$deplib $deplibs"
  57168. - continue
  57169. - ;;
  57170. - *.la) lib="$deplib" ;;
  57171. - *.$libext)
  57172. - if test "$pass" = conv; then
  57173. - deplibs="$deplib $deplibs"
  57174. - continue
  57175. - fi
  57176. - case $linkmode in
  57177. - lib)
  57178. - valid_a_lib=no
  57179. - case $deplibs_check_method in
  57180. - match_pattern*)
  57181. - set dummy $deplibs_check_method
  57182. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  57183. - if eval $echo \"$deplib\" 2>/dev/null \
  57184. - | $SED 10q \
  57185. - | $EGREP "$match_pattern_regex" > /dev/null; then
  57186. - valid_a_lib=yes
  57187. - fi
  57188. - ;;
  57189. - pass_all)
  57190. - valid_a_lib=yes
  57191. - ;;
  57192. - esac
  57193. - if test "$valid_a_lib" != yes; then
  57194. - $echo
  57195. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  57196. - $echo "*** I have the capability to make that library automatically link in when"
  57197. - $echo "*** you link to this library. But I can only do this if you have a"
  57198. - $echo "*** shared version of the library, which you do not appear to have"
  57199. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  57200. - $echo "*** that it is just a static archive that I should not used here."
  57201. - else
  57202. - $echo
  57203. - $echo "*** Warning: Linking the shared library $output against the"
  57204. - $echo "*** static library $deplib is not portable!"
  57205. - deplibs="$deplib $deplibs"
  57206. - fi
  57207. - continue
  57208. + *)
  57209. + wrapper=$file
  57210. ;;
  57211. - prog)
  57212. - if test "$pass" != link; then
  57213. - deplibs="$deplib $deplibs"
  57214. - else
  57215. - compile_deplibs="$deplib $compile_deplibs"
  57216. - finalize_deplibs="$deplib $finalize_deplibs"
  57217. + esac
  57218. + if func_ltwrapper_script_p "$wrapper"; then
  57219. + notinst_deplibs=
  57220. + relink_command=
  57221. +
  57222. + func_source "$wrapper"
  57223. +
  57224. + # Check the variables that should have been set.
  57225. + test -z "$generated_by_libtool_version" && \
  57226. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  57227. +
  57228. + finalize=yes
  57229. + for lib in $notinst_deplibs; do
  57230. + # Check to see that each library is installed.
  57231. + libdir=
  57232. + if test -f "$lib"; then
  57233. + func_source "$lib"
  57234. fi
  57235. - continue
  57236. - ;;
  57237. - esac # linkmode
  57238. - ;; # *.$libext
  57239. - *.lo | *.$objext)
  57240. - if test "$pass" = conv; then
  57241. - deplibs="$deplib $deplibs"
  57242. - elif test "$linkmode" = prog; then
  57243. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  57244. - # If there is no dlopen support or we're linking statically,
  57245. - # we need to preload.
  57246. - newdlprefiles="$newdlprefiles $deplib"
  57247. - compile_deplibs="$deplib $compile_deplibs"
  57248. - finalize_deplibs="$deplib $finalize_deplibs"
  57249. - else
  57250. - newdlfiles="$newdlfiles $deplib"
  57251. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  57252. + if test -n "$libdir" && test ! -f "$libfile"; then
  57253. + func_warning "\`$lib' has not been installed in \`$libdir'"
  57254. + finalize=no
  57255. fi
  57256. + done
  57257. +
  57258. + relink_command=
  57259. + func_source "$wrapper"
  57260. +
  57261. + outputname=
  57262. + if test "$fast_install" = no && test -n "$relink_command"; then
  57263. + $opt_dry_run || {
  57264. + if test "$finalize" = yes; then
  57265. + tmpdir=`func_mktempdir`
  57266. + func_basename "$file$stripped_ext"
  57267. + file="$func_basename_result"
  57268. + outputname="$tmpdir/$file"
  57269. + # Replace the output file specification.
  57270. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  57271. +
  57272. + $opt_silent || {
  57273. + func_quote_for_expand "$relink_command"
  57274. + eval "func_echo $func_quote_for_expand_result"
  57275. + }
  57276. + if eval "$relink_command"; then :
  57277. + else
  57278. + func_error "error: relink \`$file' with the above command before installing it"
  57279. + $opt_dry_run || ${RM}r "$tmpdir"
  57280. + continue
  57281. + fi
  57282. + file="$outputname"
  57283. + else
  57284. + func_warning "cannot relink \`$file'"
  57285. + fi
  57286. + }
  57287. + else
  57288. + # Install the binary that we compiled earlier.
  57289. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  57290. fi
  57291. - continue
  57292. - ;;
  57293. - %DEPLIBS%)
  57294. - alldeplibs=yes
  57295. - continue
  57296. - ;;
  57297. - esac # case $deplib
  57298. - if test "$found" = yes || test -f "$lib"; then :
  57299. - else
  57300. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  57301. - exit $EXIT_FAILURE
  57302. fi
  57303. - # Check to see that this really is a libtool archive.
  57304. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  57305. - else
  57306. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57307. - exit $EXIT_FAILURE
  57308. + # remove .exe since cygwin /usr/bin/install will append another
  57309. + # one anyway
  57310. + case $install_prog,$host in
  57311. + */usr/bin/install*,*cygwin*)
  57312. + case $file:$destfile in
  57313. + *.exe:*.exe)
  57314. + # this is ok
  57315. + ;;
  57316. + *.exe:*)
  57317. + destfile=$destfile.exe
  57318. + ;;
  57319. + *:*.exe)
  57320. + func_stripname '' '.exe' "$destfile"
  57321. + destfile=$func_stripname_result
  57322. + ;;
  57323. + esac
  57324. + ;;
  57325. + esac
  57326. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  57327. + $opt_dry_run || if test -n "$outputname"; then
  57328. + ${RM}r "$tmpdir"
  57329. fi
  57330. + ;;
  57331. + esac
  57332. + done
  57333. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  57334. - test "X$ladir" = "X$lib" && ladir="."
  57335. + for file in $staticlibs; do
  57336. + func_basename "$file"
  57337. + name="$func_basename_result"
  57338. - dlname=
  57339. - dlopen=
  57340. - dlpreopen=
  57341. - libdir=
  57342. - library_names=
  57343. - old_library=
  57344. - # If the library was installed with an old release of libtool,
  57345. - # it will not redefine variables installed, or shouldnotlink
  57346. - installed=yes
  57347. - shouldnotlink=no
  57348. - avoidtemprpath=
  57349. + # Set up the ranlib parameters.
  57350. + oldlib="$destdir/$name"
  57351. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  57352. - # Read the .la file
  57353. - case $lib in
  57354. - */* | *\\*) . $lib ;;
  57355. - *) . ./$lib ;;
  57356. - esac
  57357. + if test -n "$stripme" && test -n "$old_striplib"; then
  57358. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  57359. + fi
  57360. - if test "$linkmode,$pass" = "lib,link" ||
  57361. - test "$linkmode,$pass" = "prog,scan" ||
  57362. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  57363. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  57364. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  57365. - fi
  57366. + # Do each command in the postinstall commands.
  57367. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  57368. + done
  57369. - if test "$pass" = conv; then
  57370. - # Only check for convenience libraries
  57371. - deplibs="$lib $deplibs"
  57372. - if test -z "$libdir"; then
  57373. - if test -z "$old_library"; then
  57374. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  57375. - exit $EXIT_FAILURE
  57376. - fi
  57377. - # It is a libtool convenience library, so add in its objects.
  57378. - convenience="$convenience $ladir/$objdir/$old_library"
  57379. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  57380. - tmp_libs=
  57381. - for deplib in $dependency_libs; do
  57382. - deplibs="$deplib $deplibs"
  57383. - if test "X$duplicate_deps" = "Xyes" ; then
  57384. - case "$tmp_libs " in
  57385. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57386. - esac
  57387. - fi
  57388. - tmp_libs="$tmp_libs $deplib"
  57389. - done
  57390. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  57391. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  57392. - exit $EXIT_FAILURE
  57393. - fi
  57394. - continue
  57395. - fi # $pass = conv
  57396. + test -n "$future_libdirs" && \
  57397. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  57398. + if test -n "$current_libdirs"; then
  57399. + # Maybe just do a dry run.
  57400. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  57401. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  57402. + else
  57403. + exit $EXIT_SUCCESS
  57404. + fi
  57405. +}
  57406. - # Get the name of the library we link against.
  57407. - linklib=
  57408. - for l in $old_library $library_names; do
  57409. - linklib="$l"
  57410. - done
  57411. - if test -z "$linklib"; then
  57412. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  57413. - exit $EXIT_FAILURE
  57414. - fi
  57415. +test "$mode" = install && func_mode_install ${1+"$@"}
  57416. - # This library was specified with -dlopen.
  57417. - if test "$pass" = dlopen; then
  57418. - if test -z "$libdir"; then
  57419. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  57420. - exit $EXIT_FAILURE
  57421. - fi
  57422. - if test -z "$dlname" ||
  57423. - test "$dlopen_support" != yes ||
  57424. - test "$build_libtool_libs" = no; then
  57425. - # If there is no dlname, no dlopen support or we're linking
  57426. - # statically, we need to preload. We also need to preload any
  57427. - # dependent libraries so libltdl's deplib preloader doesn't
  57428. - # bomb out in the load deplibs phase.
  57429. - dlprefiles="$dlprefiles $lib $dependency_libs"
  57430. - else
  57431. - newdlfiles="$newdlfiles $lib"
  57432. - fi
  57433. - continue
  57434. - fi # $pass = dlopen
  57435. - # We need an absolute path.
  57436. - case $ladir in
  57437. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  57438. - *)
  57439. - abs_ladir=`cd "$ladir" && pwd`
  57440. - if test -z "$abs_ladir"; then
  57441. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  57442. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  57443. - abs_ladir="$ladir"
  57444. +# func_generate_dlsyms outputname originator pic_p
  57445. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  57446. +# a dlpreopen symbol table.
  57447. +func_generate_dlsyms ()
  57448. +{
  57449. + $opt_debug
  57450. + my_outputname="$1"
  57451. + my_originator="$2"
  57452. + my_pic_p="${3-no}"
  57453. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  57454. + my_dlsyms=
  57455. +
  57456. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57457. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  57458. + my_dlsyms="${my_outputname}S.c"
  57459. + else
  57460. + func_error "not configured to extract global symbols from dlpreopened files"
  57461. + fi
  57462. + fi
  57463. +
  57464. + if test -n "$my_dlsyms"; then
  57465. + case $my_dlsyms in
  57466. + "") ;;
  57467. + *.c)
  57468. + # Discover the nlist of each of the dlfiles.
  57469. + nlist="$output_objdir/${my_outputname}.nm"
  57470. +
  57471. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  57472. +
  57473. + # Parse the name list into a source file.
  57474. + func_verbose "creating $output_objdir/$my_dlsyms"
  57475. +
  57476. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  57477. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  57478. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  57479. +
  57480. +#ifdef __cplusplus
  57481. +extern \"C\" {
  57482. +#endif
  57483. +
  57484. +/* External symbol declarations for the compiler. */\
  57485. +"
  57486. +
  57487. + if test "$dlself" = yes; then
  57488. + func_verbose "generating symbol list for \`$output'"
  57489. +
  57490. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  57491. +
  57492. + # Add our own program objects to the symbol list.
  57493. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57494. + for progfile in $progfiles; do
  57495. + func_verbose "extracting global C symbols from \`$progfile'"
  57496. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  57497. + done
  57498. +
  57499. + if test -n "$exclude_expsyms"; then
  57500. + $opt_dry_run || {
  57501. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  57502. + eval '$MV "$nlist"T "$nlist"'
  57503. + }
  57504. fi
  57505. - ;;
  57506. - esac
  57507. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57508. - # Find the relevant object directory and library name.
  57509. - if test "X$installed" = Xyes; then
  57510. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57511. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  57512. - dir="$ladir"
  57513. - absdir="$abs_ladir"
  57514. - libdir="$abs_ladir"
  57515. - else
  57516. - dir="$libdir"
  57517. - absdir="$libdir"
  57518. + if test -n "$export_symbols_regex"; then
  57519. + $opt_dry_run || {
  57520. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  57521. + eval '$MV "$nlist"T "$nlist"'
  57522. + }
  57523. fi
  57524. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  57525. - else
  57526. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57527. - dir="$ladir"
  57528. - absdir="$abs_ladir"
  57529. - # Remove this search path later
  57530. - notinst_path="$notinst_path $abs_ladir"
  57531. +
  57532. + # Prepare the list of exported symbols
  57533. + if test -z "$export_symbols"; then
  57534. + export_symbols="$output_objdir/$outputname.exp"
  57535. + $opt_dry_run || {
  57536. + $RM $export_symbols
  57537. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  57538. + case $host in
  57539. + *cygwin* | *mingw* | *cegcc* )
  57540. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  57541. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  57542. + ;;
  57543. + esac
  57544. + }
  57545. else
  57546. - dir="$ladir/$objdir"
  57547. - absdir="$abs_ladir/$objdir"
  57548. - # Remove this search path later
  57549. - notinst_path="$notinst_path $abs_ladir"
  57550. + $opt_dry_run || {
  57551. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  57552. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  57553. + eval '$MV "$nlist"T "$nlist"'
  57554. + case $host in
  57555. + *cygwin | *mingw* | *cegcc* )
  57556. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  57557. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  57558. + ;;
  57559. + esac
  57560. + }
  57561. fi
  57562. - fi # $installed = yes
  57563. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  57564. + fi
  57565. - # This library was specified with -dlpreopen.
  57566. - if test "$pass" = dlpreopen; then
  57567. - if test -z "$libdir"; then
  57568. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  57569. - exit $EXIT_FAILURE
  57570. + for dlprefile in $dlprefiles; do
  57571. + func_verbose "extracting global C symbols from \`$dlprefile'"
  57572. + func_basename "$dlprefile"
  57573. + name="$func_basename_result"
  57574. + $opt_dry_run || {
  57575. + eval '$ECHO ": $name " >> "$nlist"'
  57576. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  57577. + }
  57578. + done
  57579. +
  57580. + $opt_dry_run || {
  57581. + # Make sure we have at least an empty file.
  57582. + test -f "$nlist" || : > "$nlist"
  57583. +
  57584. + if test -n "$exclude_expsyms"; then
  57585. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  57586. + $MV "$nlist"T "$nlist"
  57587. fi
  57588. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  57589. - # are required to link).
  57590. - if test -n "$old_library"; then
  57591. - newdlprefiles="$newdlprefiles $dir/$old_library"
  57592. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  57593. - elif test -n "$dlname"; then
  57594. - newdlprefiles="$newdlprefiles $dir/$dlname"
  57595. +
  57596. + # Try sorting and uniquifying the output.
  57597. + if $GREP -v "^: " < "$nlist" |
  57598. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  57599. + sort -k 3
  57600. + else
  57601. + sort +2
  57602. + fi |
  57603. + uniq > "$nlist"S; then
  57604. + :
  57605. else
  57606. - newdlprefiles="$newdlprefiles $dir/$linklib"
  57607. + $GREP -v "^: " < "$nlist" > "$nlist"S
  57608. fi
  57609. - fi # $pass = dlpreopen
  57610. - if test -z "$libdir"; then
  57611. - # Link the convenience library
  57612. - if test "$linkmode" = lib; then
  57613. - deplibs="$dir/$old_library $deplibs"
  57614. - elif test "$linkmode,$pass" = "prog,link"; then
  57615. - compile_deplibs="$dir/$old_library $compile_deplibs"
  57616. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  57617. + if test -f "$nlist"S; then
  57618. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  57619. else
  57620. - deplibs="$lib $deplibs" # used for prog,scan pass
  57621. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  57622. fi
  57623. - continue
  57624. - fi
  57625. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57626. - if test "$linkmode" = prog && test "$pass" != link; then
  57627. - newlib_search_path="$newlib_search_path $ladir"
  57628. - deplibs="$lib $deplibs"
  57629. -
  57630. - linkalldeplibs=no
  57631. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  57632. - test "$build_libtool_libs" = no; then
  57633. - linkalldeplibs=yes
  57634. - fi
  57635. +/* The mapping between symbol names and symbols. */
  57636. +typedef struct {
  57637. + const char *name;
  57638. + void *address;
  57639. +} lt_dlsymlist;
  57640. +"
  57641. + case $host in
  57642. + *cygwin* | *mingw* | *cegcc* )
  57643. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57644. +/* DATA imports from DLLs on WIN32 con't be const, because
  57645. + runtime relocations are performed -- see ld's documentation
  57646. + on pseudo-relocs. */"
  57647. + lt_dlsym_const= ;;
  57648. + *osf5*)
  57649. + echo >> "$output_objdir/$my_dlsyms" "\
  57650. +/* This system does not cope well with relocations in const data */"
  57651. + lt_dlsym_const= ;;
  57652. + *)
  57653. + lt_dlsym_const=const ;;
  57654. + esac
  57655. - tmp_libs=
  57656. - for deplib in $dependency_libs; do
  57657. - case $deplib in
  57658. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  57659. - esac
  57660. - # Need to link against all dependency_libs?
  57661. - if test "$linkalldeplibs" = yes; then
  57662. - deplibs="$deplib $deplibs"
  57663. - else
  57664. - # Need to hardcode shared library paths
  57665. - # or/and link against static libraries
  57666. - newdependency_libs="$deplib $newdependency_libs"
  57667. - fi
  57668. - if test "X$duplicate_deps" = "Xyes" ; then
  57669. - case "$tmp_libs " in
  57670. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57671. - esac
  57672. - fi
  57673. - tmp_libs="$tmp_libs $deplib"
  57674. - done # for deplib
  57675. - continue
  57676. - fi # $linkmode = prog...
  57677. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57678. +extern $lt_dlsym_const lt_dlsymlist
  57679. +lt_${my_prefix}_LTX_preloaded_symbols[];
  57680. +$lt_dlsym_const lt_dlsymlist
  57681. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  57682. +{\
  57683. + { \"$my_originator\", (void *) 0 },"
  57684. - if test "$linkmode,$pass" = "prog,link"; then
  57685. - if test -n "$library_names" &&
  57686. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  57687. - # We need to hardcode the library path
  57688. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  57689. - # Make sure the rpath contains only unique directories.
  57690. - case "$temp_rpath " in
  57691. - *" $dir "*) ;;
  57692. - *" $absdir "*) ;;
  57693. - *) temp_rpath="$temp_rpath $absdir" ;;
  57694. - esac
  57695. - fi
  57696. + case $need_lib_prefix in
  57697. + no)
  57698. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  57699. + ;;
  57700. + *)
  57701. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  57702. + ;;
  57703. + esac
  57704. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  57705. + {0, (void *) 0}
  57706. +};
  57707. - # Hardcode the library path.
  57708. - # Skip directories that are in the system default run-time
  57709. - # search path.
  57710. - case " $sys_lib_dlsearch_path " in
  57711. - *" $absdir "*) ;;
  57712. - *)
  57713. - case "$compile_rpath " in
  57714. - *" $absdir "*) ;;
  57715. - *) compile_rpath="$compile_rpath $absdir"
  57716. - esac
  57717. - ;;
  57718. - esac
  57719. - case " $sys_lib_dlsearch_path " in
  57720. - *" $libdir "*) ;;
  57721. - *)
  57722. - case "$finalize_rpath " in
  57723. - *" $libdir "*) ;;
  57724. - *) finalize_rpath="$finalize_rpath $libdir"
  57725. - esac
  57726. - ;;
  57727. - esac
  57728. - fi # $linkmode,$pass = prog,link...
  57729. +/* This works around a problem in FreeBSD linker */
  57730. +#ifdef FREEBSD_WORKAROUND
  57731. +static const void *lt_preloaded_setup() {
  57732. + return lt_${my_prefix}_LTX_preloaded_symbols;
  57733. +}
  57734. +#endif
  57735. - if test "$alldeplibs" = yes &&
  57736. - { test "$deplibs_check_method" = pass_all ||
  57737. - { test "$build_libtool_libs" = yes &&
  57738. - test -n "$library_names"; }; }; then
  57739. - # We only need to search for static libraries
  57740. - continue
  57741. - fi
  57742. - fi
  57743. +#ifdef __cplusplus
  57744. +}
  57745. +#endif\
  57746. +"
  57747. + } # !$opt_dry_run
  57748. - link_static=no # Whether the deplib will be linked statically
  57749. - use_static_libs=$prefer_static_libs
  57750. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  57751. - use_static_libs=no
  57752. - fi
  57753. - if test -n "$library_names" &&
  57754. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57755. - if test "$installed" = no; then
  57756. - notinst_deplibs="$notinst_deplibs $lib"
  57757. - need_relink=yes
  57758. - fi
  57759. - # This is a shared library
  57760. -
  57761. - # Warn about portability, can't link against -module's on
  57762. - # some systems (darwin)
  57763. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  57764. - $echo
  57765. - if test "$linkmode" = prog; then
  57766. - $echo "*** Warning: Linking the executable $output against the loadable module"
  57767. - else
  57768. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  57769. + pic_flag_for_symtable=
  57770. + case "$compile_command " in
  57771. + *" -static "*) ;;
  57772. + *)
  57773. + case $host in
  57774. + # compiling the symbol table file with pic_flag works around
  57775. + # a FreeBSD bug that causes programs to crash when -lm is
  57776. + # linked before any other PIC object. But we must not use
  57777. + # pic_flag when linking with -static. The problem exists in
  57778. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  57779. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  57780. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  57781. + *-*-hpux*)
  57782. + pic_flag_for_symtable=" $pic_flag" ;;
  57783. + *)
  57784. + if test "X$my_pic_p" != Xno; then
  57785. + pic_flag_for_symtable=" $pic_flag"
  57786. fi
  57787. - $echo "*** $linklib is not portable!"
  57788. - fi
  57789. - if test "$linkmode" = lib &&
  57790. - test "$hardcode_into_libs" = yes; then
  57791. - # Hardcode the library path.
  57792. - # Skip directories that are in the system default run-time
  57793. - # search path.
  57794. - case " $sys_lib_dlsearch_path " in
  57795. - *" $absdir "*) ;;
  57796. - *)
  57797. - case "$compile_rpath " in
  57798. - *" $absdir "*) ;;
  57799. - *) compile_rpath="$compile_rpath $absdir"
  57800. - esac
  57801. - ;;
  57802. - esac
  57803. - case " $sys_lib_dlsearch_path " in
  57804. - *" $libdir "*) ;;
  57805. - *)
  57806. - case "$finalize_rpath " in
  57807. - *" $libdir "*) ;;
  57808. - *) finalize_rpath="$finalize_rpath $libdir"
  57809. - esac
  57810. - ;;
  57811. - esac
  57812. - fi
  57813. + ;;
  57814. + esac
  57815. + ;;
  57816. + esac
  57817. + symtab_cflags=
  57818. + for arg in $LTCFLAGS; do
  57819. + case $arg in
  57820. + -pie | -fpie | -fPIE) ;;
  57821. + *) symtab_cflags="$symtab_cflags $arg" ;;
  57822. + esac
  57823. + done
  57824. - if test -n "$old_archive_from_expsyms_cmds"; then
  57825. - # figure out the soname
  57826. - set dummy $library_names
  57827. - realname="$2"
  57828. - shift; shift
  57829. - libname=`eval \\$echo \"$libname_spec\"`
  57830. - # use dlname if we got it. it's perfectly good, no?
  57831. - if test -n "$dlname"; then
  57832. - soname="$dlname"
  57833. - elif test -n "$soname_spec"; then
  57834. - # bleh windows
  57835. - case $host in
  57836. - *cygwin* | mingw*)
  57837. - major=`expr $current - $age`
  57838. - versuffix="-$major"
  57839. - ;;
  57840. - esac
  57841. - eval soname=\"$soname_spec\"
  57842. - else
  57843. - soname="$realname"
  57844. - fi
  57845. + # Now compile the dynamic symbol file.
  57846. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  57847. - # Make a new name for the extract_expsyms_cmds to use
  57848. - soroot="$soname"
  57849. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  57850. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  57851. + # Clean up the generated files.
  57852. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  57853. - # If the library has no export list, then create one now
  57854. - if test -f "$output_objdir/$soname-def"; then :
  57855. - else
  57856. - $show "extracting exported symbol list from \`$soname'"
  57857. - save_ifs="$IFS"; IFS='~'
  57858. - cmds=$extract_expsyms_cmds
  57859. - for cmd in $cmds; do
  57860. - IFS="$save_ifs"
  57861. - eval cmd=\"$cmd\"
  57862. - $show "$cmd"
  57863. - $run eval "$cmd" || exit $?
  57864. - done
  57865. - IFS="$save_ifs"
  57866. - fi
  57867. + # Transform the symbol file into the correct name.
  57868. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  57869. + case $host in
  57870. + *cygwin* | *mingw* | *cegcc* )
  57871. + if test -f "$output_objdir/$my_outputname.def"; then
  57872. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  57873. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  57874. + else
  57875. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57876. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57877. + fi
  57878. + ;;
  57879. + *)
  57880. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57881. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  57882. + ;;
  57883. + esac
  57884. + ;;
  57885. + *)
  57886. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  57887. + ;;
  57888. + esac
  57889. + else
  57890. + # We keep going just in case the user didn't refer to
  57891. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  57892. + # really was required.
  57893. +
  57894. + # Nullify the symbol file.
  57895. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  57896. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  57897. + fi
  57898. +}
  57899. - # Create $newlib
  57900. - if test -f "$output_objdir/$newlib"; then :; else
  57901. - $show "generating import library for \`$soname'"
  57902. - save_ifs="$IFS"; IFS='~'
  57903. - cmds=$old_archive_from_expsyms_cmds
  57904. - for cmd in $cmds; do
  57905. - IFS="$save_ifs"
  57906. - eval cmd=\"$cmd\"
  57907. - $show "$cmd"
  57908. - $run eval "$cmd" || exit $?
  57909. - done
  57910. - IFS="$save_ifs"
  57911. - fi
  57912. - # make sure the library variables are pointing to the new library
  57913. - dir=$output_objdir
  57914. - linklib=$newlib
  57915. - fi # test -n "$old_archive_from_expsyms_cmds"
  57916. +# func_win32_libid arg
  57917. +# return the library type of file 'arg'
  57918. +#
  57919. +# Need a lot of goo to handle *both* DLLs and import libs
  57920. +# Has to be a shell function in order to 'eat' the argument
  57921. +# that is supplied when $file_magic_command is called.
  57922. +func_win32_libid ()
  57923. +{
  57924. + $opt_debug
  57925. + win32_libid_type="unknown"
  57926. + win32_fileres=`file -L $1 2>/dev/null`
  57927. + case $win32_fileres in
  57928. + *ar\ archive\ import\ library*) # definitely import
  57929. + win32_libid_type="x86 archive import"
  57930. + ;;
  57931. + *ar\ archive*) # could be an import, or static
  57932. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  57933. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  57934. + win32_nmres=`eval $NM -f posix -A $1 |
  57935. + $SED -n -e '
  57936. + 1,100{
  57937. + / I /{
  57938. + s,.*,import,
  57939. + p
  57940. + q
  57941. + }
  57942. + }'`
  57943. + case $win32_nmres in
  57944. + import*) win32_libid_type="x86 archive import";;
  57945. + *) win32_libid_type="x86 archive static";;
  57946. + esac
  57947. + fi
  57948. + ;;
  57949. + *DLL*)
  57950. + win32_libid_type="x86 DLL"
  57951. + ;;
  57952. + *executable*) # but shell scripts are "executable" too...
  57953. + case $win32_fileres in
  57954. + *MS\ Windows\ PE\ Intel*)
  57955. + win32_libid_type="x86 DLL"
  57956. + ;;
  57957. + esac
  57958. + ;;
  57959. + esac
  57960. + $ECHO "$win32_libid_type"
  57961. +}
  57962. - if test "$linkmode" = prog || test "$mode" != relink; then
  57963. - add_shlibpath=
  57964. - add_dir=
  57965. - add=
  57966. - lib_linked=yes
  57967. - case $hardcode_action in
  57968. - immediate | unsupported)
  57969. - if test "$hardcode_direct" = no; then
  57970. - add="$dir/$linklib"
  57971. - case $host in
  57972. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57973. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57974. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57975. - *-*-unixware7*) add_dir="-L$dir" ;;
  57976. - *-*-darwin* )
  57977. - # if the lib is a module then we can not link against
  57978. - # it, someone is ignoring the new warnings I added
  57979. - if /usr/bin/file -L $add 2> /dev/null |
  57980. - $EGREP ": [^:]* bundle" >/dev/null ; then
  57981. - $echo "** Warning, lib $linklib is a module, not a shared library"
  57982. - if test -z "$old_library" ; then
  57983. - $echo
  57984. - $echo "** And there doesn't seem to be a static archive available"
  57985. - $echo "** The link will probably fail, sorry"
  57986. - else
  57987. - add="$dir/$old_library"
  57988. - fi
  57989. - fi
  57990. - esac
  57991. - elif test "$hardcode_minus_L" = no; then
  57992. - case $host in
  57993. - *-*-sunos*) add_shlibpath="$dir" ;;
  57994. - esac
  57995. - add_dir="-L$dir"
  57996. - add="-l$name"
  57997. - elif test "$hardcode_shlibpath_var" = no; then
  57998. - add_shlibpath="$dir"
  57999. - add="-l$name"
  58000. - else
  58001. - lib_linked=no
  58002. - fi
  58003. - ;;
  58004. - relink)
  58005. - if test "$hardcode_direct" = yes; then
  58006. - add="$dir/$linklib"
  58007. - elif test "$hardcode_minus_L" = yes; then
  58008. - add_dir="-L$dir"
  58009. - # Try looking first in the location we're being installed to.
  58010. - if test -n "$inst_prefix_dir"; then
  58011. - case $libdir in
  58012. - [\\/]*)
  58013. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  58014. - ;;
  58015. - esac
  58016. - fi
  58017. - add="-l$name"
  58018. - elif test "$hardcode_shlibpath_var" = yes; then
  58019. - add_shlibpath="$dir"
  58020. - add="-l$name"
  58021. - else
  58022. - lib_linked=no
  58023. - fi
  58024. - ;;
  58025. - *) lib_linked=no ;;
  58026. - esac
  58027. - if test "$lib_linked" != yes; then
  58028. - $echo "$modename: configuration error: unsupported hardcode properties"
  58029. - exit $EXIT_FAILURE
  58030. - fi
  58031. - if test -n "$add_shlibpath"; then
  58032. - case :$compile_shlibpath: in
  58033. - *":$add_shlibpath:"*) ;;
  58034. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  58035. - esac
  58036. - fi
  58037. - if test "$linkmode" = prog; then
  58038. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  58039. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  58040. - else
  58041. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  58042. - test -n "$add" && deplibs="$add $deplibs"
  58043. - if test "$hardcode_direct" != yes && \
  58044. - test "$hardcode_minus_L" != yes && \
  58045. - test "$hardcode_shlibpath_var" = yes; then
  58046. - case :$finalize_shlibpath: in
  58047. - *":$libdir:"*) ;;
  58048. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  58049. - esac
  58050. - fi
  58051. - fi
  58052. - fi
  58053. +# func_extract_an_archive dir oldlib
  58054. +func_extract_an_archive ()
  58055. +{
  58056. + $opt_debug
  58057. + f_ex_an_ar_dir="$1"; shift
  58058. + f_ex_an_ar_oldlib="$1"
  58059. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  58060. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  58061. + :
  58062. + else
  58063. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  58064. + fi
  58065. +}
  58066. - if test "$linkmode" = prog || test "$mode" = relink; then
  58067. - add_shlibpath=
  58068. - add_dir=
  58069. - add=
  58070. - # Finalize command for both is simple: just hardcode it.
  58071. - if test "$hardcode_direct" = yes; then
  58072. - add="$libdir/$linklib"
  58073. - elif test "$hardcode_minus_L" = yes; then
  58074. - add_dir="-L$libdir"
  58075. - add="-l$name"
  58076. - elif test "$hardcode_shlibpath_var" = yes; then
  58077. - case :$finalize_shlibpath: in
  58078. - *":$libdir:"*) ;;
  58079. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  58080. - esac
  58081. - add="-l$name"
  58082. - elif test "$hardcode_automatic" = yes; then
  58083. - if test -n "$inst_prefix_dir" &&
  58084. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  58085. - add="$inst_prefix_dir$libdir/$linklib"
  58086. - else
  58087. - add="$libdir/$linklib"
  58088. - fi
  58089. - else
  58090. - # We cannot seem to hardcode it, guess we'll fake it.
  58091. - add_dir="-L$libdir"
  58092. - # Try looking first in the location we're being installed to.
  58093. - if test -n "$inst_prefix_dir"; then
  58094. - case $libdir in
  58095. - [\\/]*)
  58096. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  58097. - ;;
  58098. - esac
  58099. - fi
  58100. - add="-l$name"
  58101. - fi
  58102. - if test "$linkmode" = prog; then
  58103. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  58104. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  58105. - else
  58106. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  58107. - test -n "$add" && deplibs="$add $deplibs"
  58108. - fi
  58109. - fi
  58110. - elif test "$linkmode" = prog; then
  58111. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  58112. - # is not unsupported. This is valid on all known static and
  58113. - # shared platforms.
  58114. - if test "$hardcode_direct" != unsupported; then
  58115. - test -n "$old_library" && linklib="$old_library"
  58116. - compile_deplibs="$dir/$linklib $compile_deplibs"
  58117. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  58118. - else
  58119. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  58120. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  58121. - fi
  58122. - elif test "$build_libtool_libs" = yes; then
  58123. - # Not a shared library
  58124. - if test "$deplibs_check_method" != pass_all; then
  58125. - # We're trying link a shared library against a static one
  58126. - # but the system doesn't support it.
  58127. +# func_extract_archives gentop oldlib ...
  58128. +func_extract_archives ()
  58129. +{
  58130. + $opt_debug
  58131. + my_gentop="$1"; shift
  58132. + my_oldlibs=${1+"$@"}
  58133. + my_oldobjs=""
  58134. + my_xlib=""
  58135. + my_xabs=""
  58136. + my_xdir=""
  58137. - # Just print a warning and add the library to dependency_libs so
  58138. - # that the program can be linked against the static library.
  58139. - $echo
  58140. - $echo "*** Warning: This system can not link to static lib archive $lib."
  58141. - $echo "*** I have the capability to make that library automatically link in when"
  58142. - $echo "*** you link to this library. But I can only do this if you have a"
  58143. - $echo "*** shared version of the library, which you do not appear to have."
  58144. - if test "$module" = yes; then
  58145. - $echo "*** But as you try to build a module library, libtool will still create "
  58146. - $echo "*** a static module, that should work as long as the dlopening application"
  58147. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  58148. - if test -z "$global_symbol_pipe"; then
  58149. - $echo
  58150. - $echo "*** However, this would only work if libtool was able to extract symbol"
  58151. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58152. - $echo "*** not find such a program. So, this module is probably useless."
  58153. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  58154. - fi
  58155. - if test "$build_old_libs" = no; then
  58156. - build_libtool_libs=module
  58157. - build_old_libs=yes
  58158. - else
  58159. - build_libtool_libs=no
  58160. - fi
  58161. - fi
  58162. + for my_xlib in $my_oldlibs; do
  58163. + # Extract the objects.
  58164. + case $my_xlib in
  58165. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  58166. + *) my_xabs=`pwd`"/$my_xlib" ;;
  58167. + esac
  58168. + func_basename "$my_xlib"
  58169. + my_xlib="$func_basename_result"
  58170. + my_xlib_u=$my_xlib
  58171. + while :; do
  58172. + case " $extracted_archives " in
  58173. + *" $my_xlib_u "*)
  58174. + func_arith $extracted_serial + 1
  58175. + extracted_serial=$func_arith_result
  58176. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  58177. + *) break ;;
  58178. + esac
  58179. + done
  58180. + extracted_archives="$extracted_archives $my_xlib_u"
  58181. + my_xdir="$my_gentop/$my_xlib_u"
  58182. +
  58183. + func_mkdir_p "$my_xdir"
  58184. +
  58185. + case $host in
  58186. + *-darwin*)
  58187. + func_verbose "Extracting $my_xabs"
  58188. + # Do not bother doing anything if just a dry run
  58189. + $opt_dry_run || {
  58190. + darwin_orig_dir=`pwd`
  58191. + cd $my_xdir || exit $?
  58192. + darwin_archive=$my_xabs
  58193. + darwin_curdir=`pwd`
  58194. + darwin_base_archive=`basename "$darwin_archive"`
  58195. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  58196. + if test -n "$darwin_arches"; then
  58197. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  58198. + darwin_arch=
  58199. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  58200. + for darwin_arch in $darwin_arches ; do
  58201. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  58202. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  58203. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  58204. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  58205. + cd "$darwin_curdir"
  58206. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  58207. + done # $darwin_arches
  58208. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  58209. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  58210. + darwin_file=
  58211. + darwin_files=
  58212. + for darwin_file in $darwin_filelist; do
  58213. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  58214. + $LIPO -create -output "$darwin_file" $darwin_files
  58215. + done # $darwin_filelist
  58216. + $RM -rf unfat-$$
  58217. + cd "$darwin_orig_dir"
  58218. else
  58219. - deplibs="$dir/$old_library $deplibs"
  58220. - link_static=yes
  58221. - fi
  58222. - fi # link shared/static library?
  58223. + cd $darwin_orig_dir
  58224. + func_extract_an_archive "$my_xdir" "$my_xabs"
  58225. + fi # $darwin_arches
  58226. + } # !$opt_dry_run
  58227. + ;;
  58228. + *)
  58229. + func_extract_an_archive "$my_xdir" "$my_xabs"
  58230. + ;;
  58231. + esac
  58232. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  58233. + done
  58234. - if test "$linkmode" = lib; then
  58235. - if test -n "$dependency_libs" &&
  58236. - { test "$hardcode_into_libs" != yes ||
  58237. - test "$build_old_libs" = yes ||
  58238. - test "$link_static" = yes; }; then
  58239. - # Extract -R from dependency_libs
  58240. - temp_deplibs=
  58241. - for libdir in $dependency_libs; do
  58242. - case $libdir in
  58243. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  58244. - case " $xrpath " in
  58245. - *" $temp_xrpath "*) ;;
  58246. - *) xrpath="$xrpath $temp_xrpath";;
  58247. - esac;;
  58248. - *) temp_deplibs="$temp_deplibs $libdir";;
  58249. - esac
  58250. - done
  58251. - dependency_libs="$temp_deplibs"
  58252. - fi
  58253. + func_extract_archives_result="$my_oldobjs"
  58254. +}
  58255. - newlib_search_path="$newlib_search_path $absdir"
  58256. - # Link against this library
  58257. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  58258. - # ... and its dependency_libs
  58259. - tmp_libs=
  58260. - for deplib in $dependency_libs; do
  58261. - newdependency_libs="$deplib $newdependency_libs"
  58262. - if test "X$duplicate_deps" = "Xyes" ; then
  58263. - case "$tmp_libs " in
  58264. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  58265. - esac
  58266. - fi
  58267. - tmp_libs="$tmp_libs $deplib"
  58268. - done
  58269. - if test "$link_all_deplibs" != no; then
  58270. - # Add the search paths of all dependency libraries
  58271. - for deplib in $dependency_libs; do
  58272. - case $deplib in
  58273. - -L*) path="$deplib" ;;
  58274. - *.la)
  58275. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  58276. - test "X$dir" = "X$deplib" && dir="."
  58277. - # We need an absolute path.
  58278. - case $dir in
  58279. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  58280. - *)
  58281. - absdir=`cd "$dir" && pwd`
  58282. - if test -z "$absdir"; then
  58283. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  58284. - absdir="$dir"
  58285. - fi
  58286. - ;;
  58287. - esac
  58288. - if grep "^installed=no" $deplib > /dev/null; then
  58289. - path="$absdir/$objdir"
  58290. - else
  58291. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58292. - if test -z "$libdir"; then
  58293. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  58294. - exit $EXIT_FAILURE
  58295. - fi
  58296. - if test "$absdir" != "$libdir"; then
  58297. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  58298. - fi
  58299. - path="$absdir"
  58300. - fi
  58301. - depdepl=
  58302. - case $host in
  58303. - *-*-darwin*)
  58304. - # we do not want to link against static libs,
  58305. - # but need to link against shared
  58306. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  58307. - if test -n "$deplibrary_names" ; then
  58308. - for tmp in $deplibrary_names ; do
  58309. - depdepl=$tmp
  58310. - done
  58311. - if test -f "$path/$depdepl" ; then
  58312. - depdepl="$path/$depdepl"
  58313. - fi
  58314. - # do not add paths which are already there
  58315. - case " $newlib_search_path " in
  58316. - *" $path "*) ;;
  58317. - *) newlib_search_path="$newlib_search_path $path";;
  58318. - esac
  58319. - fi
  58320. - path=""
  58321. - ;;
  58322. - *)
  58323. - path="-L$path"
  58324. - ;;
  58325. - esac
  58326. - ;;
  58327. - -l*)
  58328. - case $host in
  58329. - *-*-darwin*)
  58330. - # Again, we only want to link against shared libraries
  58331. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  58332. - for tmp in $newlib_search_path ; do
  58333. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  58334. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  58335. - break
  58336. - fi
  58337. - done
  58338. - path=""
  58339. - ;;
  58340. - *) continue ;;
  58341. - esac
  58342. - ;;
  58343. - *) continue ;;
  58344. - esac
  58345. - case " $deplibs " in
  58346. - *" $path "*) ;;
  58347. - *) deplibs="$path $deplibs" ;;
  58348. - esac
  58349. - case " $deplibs " in
  58350. - *" $depdepl "*) ;;
  58351. - *) deplibs="$depdepl $deplibs" ;;
  58352. - esac
  58353. - done
  58354. - fi # link_all_deplibs != no
  58355. - fi # linkmode = lib
  58356. - done # for deplib in $libs
  58357. - dependency_libs="$newdependency_libs"
  58358. - if test "$pass" = dlpreopen; then
  58359. - # Link the dlpreopened libraries before other libraries
  58360. - for deplib in $save_deplibs; do
  58361. - deplibs="$deplib $deplibs"
  58362. - done
  58363. - fi
  58364. - if test "$pass" != dlopen; then
  58365. - if test "$pass" != conv; then
  58366. - # Make sure lib_search_path contains only unique directories.
  58367. - lib_search_path=
  58368. - for dir in $newlib_search_path; do
  58369. - case "$lib_search_path " in
  58370. - *" $dir "*) ;;
  58371. - *) lib_search_path="$lib_search_path $dir" ;;
  58372. - esac
  58373. - done
  58374. - newlib_search_path=
  58375. - fi
  58376. - if test "$linkmode,$pass" != "prog,link"; then
  58377. - vars="deplibs"
  58378. - else
  58379. - vars="compile_deplibs finalize_deplibs"
  58380. +# func_emit_wrapper_part1 [arg=no]
  58381. +#
  58382. +# Emit the first part of a libtool wrapper script on stdout.
  58383. +# For more information, see the description associated with
  58384. +# func_emit_wrapper(), below.
  58385. +func_emit_wrapper_part1 ()
  58386. +{
  58387. + func_emit_wrapper_part1_arg1=no
  58388. + if test -n "$1" ; then
  58389. + func_emit_wrapper_part1_arg1=$1
  58390. fi
  58391. - for var in $vars dependency_libs; do
  58392. - # Add libraries to $var in reverse order
  58393. - eval tmp_libs=\"\$$var\"
  58394. - new_libs=
  58395. - for deplib in $tmp_libs; do
  58396. - # FIXME: Pedantically, this is the right thing to do, so
  58397. - # that some nasty dependency loop isn't accidentally
  58398. - # broken:
  58399. - #new_libs="$deplib $new_libs"
  58400. - # Pragmatically, this seems to cause very few problems in
  58401. - # practice:
  58402. - case $deplib in
  58403. - -L*) new_libs="$deplib $new_libs" ;;
  58404. - -R*) ;;
  58405. - *)
  58406. - # And here is the reason: when a library appears more
  58407. - # than once as an explicit dependence of a library, or
  58408. - # is implicitly linked in more than once by the
  58409. - # compiler, it is considered special, and multiple
  58410. - # occurrences thereof are not removed. Compare this
  58411. - # with having the same library being listed as a
  58412. - # dependency of multiple other libraries: in this case,
  58413. - # we know (pedantically, we assume) the library does not
  58414. - # need to be listed more than once, so we keep only the
  58415. - # last copy. This is not always right, but it is rare
  58416. - # enough that we require users that really mean to play
  58417. - # such unportable linking tricks to link the library
  58418. - # using -Wl,-lname, so that libtool does not consider it
  58419. - # for duplicate removal.
  58420. - case " $specialdeplibs " in
  58421. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  58422. - *)
  58423. - case " $new_libs " in
  58424. - *" $deplib "*) ;;
  58425. - *) new_libs="$deplib $new_libs" ;;
  58426. - esac
  58427. - ;;
  58428. - esac
  58429. - ;;
  58430. - esac
  58431. - done
  58432. - tmp_libs=
  58433. - for deplib in $new_libs; do
  58434. - case $deplib in
  58435. - -L*)
  58436. - case " $tmp_libs " in
  58437. - *" $deplib "*) ;;
  58438. - *) tmp_libs="$tmp_libs $deplib" ;;
  58439. - esac
  58440. - ;;
  58441. - *) tmp_libs="$tmp_libs $deplib" ;;
  58442. - esac
  58443. - done
  58444. - eval $var=\"$tmp_libs\"
  58445. - done # for var
  58446. - fi
  58447. - # Last step: remove runtime libs from dependency_libs
  58448. - # (they stay in deplibs)
  58449. - tmp_libs=
  58450. - for i in $dependency_libs ; do
  58451. - case " $predeps $postdeps $compiler_lib_search_path " in
  58452. - *" $i "*)
  58453. - i=""
  58454. - ;;
  58455. - esac
  58456. - if test -n "$i" ; then
  58457. - tmp_libs="$tmp_libs $i"
  58458. - fi
  58459. - done
  58460. - dependency_libs=$tmp_libs
  58461. - done # for pass
  58462. - if test "$linkmode" = prog; then
  58463. - dlfiles="$newdlfiles"
  58464. - dlprefiles="$newdlprefiles"
  58465. - fi
  58466. - case $linkmode in
  58467. - oldlib)
  58468. - if test -n "$deplibs"; then
  58469. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  58470. - fi
  58471. + $ECHO "\
  58472. +#! $SHELL
  58473. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  58474. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  58475. - fi
  58476. +# $output - temporary wrapper script for $objdir/$outputname
  58477. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  58478. +#
  58479. +# The $output program cannot be directly executed until all the libtool
  58480. +# libraries that it depends on are installed.
  58481. +#
  58482. +# This wrapper script should never be moved out of the build directory.
  58483. +# If it is, it will not operate correctly.
  58484. - if test -n "$rpath"; then
  58485. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  58486. - fi
  58487. +# Sed substitution that helps us do robust quoting. It backslashifies
  58488. +# metacharacters that are still active within double-quoted strings.
  58489. +Xsed='${SED} -e 1s/^X//'
  58490. +sed_quote_subst='$sed_quote_subst'
  58491. - if test -n "$xrpath"; then
  58492. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  58493. - fi
  58494. +# Be Bourne compatible
  58495. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  58496. + emulate sh
  58497. + NULLCMD=:
  58498. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  58499. + # is contrary to our usage. Disable this feature.
  58500. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  58501. + setopt NO_GLOB_SUBST
  58502. +else
  58503. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  58504. +fi
  58505. +BIN_SH=xpg4; export BIN_SH # for Tru64
  58506. +DUALCASE=1; export DUALCASE # for MKS sh
  58507. - if test -n "$vinfo"; then
  58508. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  58509. - fi
  58510. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  58511. +# if CDPATH is set.
  58512. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  58513. - if test -n "$release"; then
  58514. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  58515. - fi
  58516. +relink_command=\"$relink_command\"
  58517. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  58518. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  58519. - fi
  58520. +# This environment variable determines our operation mode.
  58521. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  58522. + # install mode needs the following variables:
  58523. + generated_by_libtool_version='$macro_version'
  58524. + notinst_deplibs='$notinst_deplibs'
  58525. +else
  58526. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  58527. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58528. + ECHO=\"$qecho\"
  58529. + file=\"\$0\"
  58530. + # Make sure echo works.
  58531. + if test \"X\$1\" = X--no-reexec; then
  58532. + # Discard the --no-reexec flag, and continue.
  58533. + shift
  58534. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  58535. + # Yippee, \$ECHO works!
  58536. + :
  58537. + else
  58538. + # Restart under the correct shell, and then maybe \$ECHO will work.
  58539. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  58540. + fi
  58541. + fi\
  58542. +"
  58543. + $ECHO "\
  58544. - # Now set the variables for building old libraries.
  58545. - build_libtool_libs=no
  58546. - oldlibs="$output"
  58547. - objs="$objs$old_deplibs"
  58548. - ;;
  58549. + # Find the directory that this script lives in.
  58550. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  58551. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  58552. - lib)
  58553. - # Make sure we only generate libraries of the form `libNAME.la'.
  58554. - case $outputname in
  58555. - lib*)
  58556. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  58557. - eval shared_ext=\"$shrext_cmds\"
  58558. - eval libname=\"$libname_spec\"
  58559. - ;;
  58560. - *)
  58561. - if test "$module" = no; then
  58562. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  58563. - $echo "$help" 1>&2
  58564. - exit $EXIT_FAILURE
  58565. - fi
  58566. - if test "$need_lib_prefix" != no; then
  58567. - # Add the "lib" prefix for modules if required
  58568. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  58569. - eval shared_ext=\"$shrext_cmds\"
  58570. - eval libname=\"$libname_spec\"
  58571. - else
  58572. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  58573. - fi
  58574. - ;;
  58575. + # Follow symbolic links until we get to the real thisdir.
  58576. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  58577. + while test -n \"\$file\"; do
  58578. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  58579. +
  58580. + # If there was a directory component, then change thisdir.
  58581. + if test \"x\$destdir\" != \"x\$file\"; then
  58582. + case \"\$destdir\" in
  58583. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  58584. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  58585. esac
  58586. + fi
  58587. - if test -n "$objs"; then
  58588. - if test "$deplibs_check_method" != pass_all; then
  58589. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  58590. - exit $EXIT_FAILURE
  58591. - else
  58592. - $echo
  58593. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  58594. - $echo "*** objects $objs is not portable!"
  58595. - libobjs="$libobjs $objs"
  58596. - fi
  58597. - fi
  58598. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  58599. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  58600. + done
  58601. +"
  58602. +}
  58603. +# end: func_emit_wrapper_part1
  58604. - if test "$dlself" != no; then
  58605. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  58606. - fi
  58607. +# func_emit_wrapper_part2 [arg=no]
  58608. +#
  58609. +# Emit the second part of a libtool wrapper script on stdout.
  58610. +# For more information, see the description associated with
  58611. +# func_emit_wrapper(), below.
  58612. +func_emit_wrapper_part2 ()
  58613. +{
  58614. + func_emit_wrapper_part2_arg1=no
  58615. + if test -n "$1" ; then
  58616. + func_emit_wrapper_part2_arg1=$1
  58617. + fi
  58618. +
  58619. + $ECHO "\
  58620. +
  58621. + # Usually 'no', except on cygwin/mingw when embedded into
  58622. + # the cwrapper.
  58623. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  58624. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  58625. + # special case for '.'
  58626. + if test \"\$thisdir\" = \".\"; then
  58627. + thisdir=\`pwd\`
  58628. + fi
  58629. + # remove .libs from thisdir
  58630. + case \"\$thisdir\" in
  58631. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  58632. + $objdir ) thisdir=. ;;
  58633. + esac
  58634. + fi
  58635. - set dummy $rpath
  58636. - if test "$#" -gt 2; then
  58637. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  58638. + # Try to get the absolute directory name.
  58639. + absdir=\`cd \"\$thisdir\" && pwd\`
  58640. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  58641. +"
  58642. +
  58643. + if test "$fast_install" = yes; then
  58644. + $ECHO "\
  58645. + program=lt-'$outputname'$exeext
  58646. + progdir=\"\$thisdir/$objdir\"
  58647. +
  58648. + if test ! -f \"\$progdir/\$program\" ||
  58649. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58650. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58651. +
  58652. + file=\"\$\$-\$program\"
  58653. +
  58654. + if test ! -d \"\$progdir\"; then
  58655. + $MKDIR \"\$progdir\"
  58656. + else
  58657. + $RM \"\$progdir/\$file\"
  58658. + fi"
  58659. +
  58660. + $ECHO "\
  58661. +
  58662. + # relink executable if necessary
  58663. + if test -n \"\$relink_command\"; then
  58664. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58665. + else
  58666. + $ECHO \"\$relink_command_output\" >&2
  58667. + $RM \"\$progdir/\$file\"
  58668. + exit 1
  58669. fi
  58670. - install_libdir="$2"
  58671. + fi
  58672. - oldlibs=
  58673. - if test -z "$rpath"; then
  58674. - if test "$build_libtool_libs" = yes; then
  58675. - # Building a libtool convenience library.
  58676. - # Some compilers have problems with a `.al' extension so
  58677. - # convenience libraries should have the same extension an
  58678. - # archive normally would.
  58679. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  58680. - build_libtool_libs=convenience
  58681. - build_old_libs=yes
  58682. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58683. + { $RM \"\$progdir/\$program\";
  58684. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58685. + $RM \"\$progdir/\$file\"
  58686. + fi"
  58687. + else
  58688. + $ECHO "\
  58689. + program='$outputname'
  58690. + progdir=\"\$thisdir/$objdir\"
  58691. +"
  58692. fi
  58693. - if test -n "$vinfo"; then
  58694. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  58695. - fi
  58696. + $ECHO "\
  58697. - if test -n "$release"; then
  58698. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  58699. - fi
  58700. - else
  58701. + if test -f \"\$progdir/\$program\"; then"
  58702. - # Parse the version information argument.
  58703. - save_ifs="$IFS"; IFS=':'
  58704. - set dummy $vinfo 0 0 0
  58705. - IFS="$save_ifs"
  58706. + # Export our shlibpath_var if we have one.
  58707. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58708. + $ECHO "\
  58709. + # Add our own library path to $shlibpath_var
  58710. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58711. - if test -n "$8"; then
  58712. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  58713. - $echo "$help" 1>&2
  58714. - exit $EXIT_FAILURE
  58715. - fi
  58716. + # Some systems cannot cope with colon-terminated $shlibpath_var
  58717. + # The second colon is a workaround for a bug in BeOS R4 sed
  58718. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58719. - # convert absolute version numbers to libtool ages
  58720. - # this retains compatibility with .la files and attempts
  58721. - # to make the code below a bit more comprehensible
  58722. + export $shlibpath_var
  58723. +"
  58724. + fi
  58725. - case $vinfo_number in
  58726. - yes)
  58727. - number_major="$2"
  58728. - number_minor="$3"
  58729. - number_revision="$4"
  58730. - #
  58731. - # There are really only two kinds -- those that
  58732. - # use the current revision as the major version
  58733. - # and those that subtract age and use age as
  58734. - # a minor version. But, then there is irix
  58735. - # which has an extra 1 added just for fun
  58736. - #
  58737. - case $version_type in
  58738. - darwin|linux|osf|windows)
  58739. - current=`expr $number_major + $number_minor`
  58740. - age="$number_minor"
  58741. - revision="$number_revision"
  58742. - ;;
  58743. - freebsd-aout|freebsd-elf|sunos)
  58744. - current="$number_major"
  58745. - revision="$number_minor"
  58746. - age="0"
  58747. - ;;
  58748. - irix|nonstopux)
  58749. - current=`expr $number_major + $number_minor - 1`
  58750. - age="$number_minor"
  58751. - revision="$number_minor"
  58752. - ;;
  58753. - *)
  58754. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  58755. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  58756. - exit $EXIT_FAILURE
  58757. - ;;
  58758. - esac
  58759. - ;;
  58760. - no)
  58761. - current="$2"
  58762. - revision="$3"
  58763. - age="$4"
  58764. - ;;
  58765. - esac
  58766. + # fixup the dll searchpath if we need to.
  58767. + if test -n "$dllsearchpath"; then
  58768. + $ECHO "\
  58769. + # Add the dll search path components to the executable PATH
  58770. + PATH=$dllsearchpath:\$PATH
  58771. +"
  58772. + fi
  58773. - # Check that each of the things are valid numbers.
  58774. - case $current in
  58775. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58776. - *)
  58777. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  58778. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58779. - exit $EXIT_FAILURE
  58780. + $ECHO "\
  58781. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58782. + # Run the actual program with our arguments.
  58783. +"
  58784. + case $host in
  58785. + # Backslashes separate directories on plain windows
  58786. + *-*-mingw | *-*-os2* | *-cegcc*)
  58787. + $ECHO "\
  58788. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  58789. +"
  58790. ;;
  58791. - esac
  58792. - case $revision in
  58793. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58794. *)
  58795. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  58796. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58797. - exit $EXIT_FAILURE
  58798. + $ECHO "\
  58799. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  58800. +"
  58801. ;;
  58802. esac
  58803. + $ECHO "\
  58804. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  58805. + exit 1
  58806. + fi
  58807. + else
  58808. + # The program doesn't exist.
  58809. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  58810. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  58811. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  58812. + exit 1
  58813. + fi
  58814. +fi\
  58815. +"
  58816. +}
  58817. +# end: func_emit_wrapper_part2
  58818. - case $age in
  58819. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58820. - *)
  58821. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  58822. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58823. - exit $EXIT_FAILURE
  58824. - ;;
  58825. - esac
  58826. - if test "$age" -gt "$current"; then
  58827. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  58828. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  58829. - exit $EXIT_FAILURE
  58830. +# func_emit_wrapper [arg=no]
  58831. +#
  58832. +# Emit a libtool wrapper script on stdout.
  58833. +# Don't directly open a file because we may want to
  58834. +# incorporate the script contents within a cygwin/mingw
  58835. +# wrapper executable. Must ONLY be called from within
  58836. +# func_mode_link because it depends on a number of variables
  58837. +# set therein.
  58838. +#
  58839. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  58840. +# variable will take. If 'yes', then the emitted script
  58841. +# will assume that the directory in which it is stored is
  58842. +# the $objdir directory. This is a cygwin/mingw-specific
  58843. +# behavior.
  58844. +func_emit_wrapper ()
  58845. +{
  58846. + func_emit_wrapper_arg1=no
  58847. + if test -n "$1" ; then
  58848. + func_emit_wrapper_arg1=$1
  58849. fi
  58850. - # Calculate the version variables.
  58851. - major=
  58852. - versuffix=
  58853. - verstring=
  58854. - case $version_type in
  58855. - none) ;;
  58856. -
  58857. - darwin)
  58858. - # Like Linux, but with the current version available in
  58859. - # verstring for coding it into the library header
  58860. - major=.`expr $current - $age`
  58861. - versuffix="$major.$age.$revision"
  58862. - # Darwin ld doesn't like 0 for these options...
  58863. - minor_current=`expr $current + 1`
  58864. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  58865. - ;;
  58866. -
  58867. - freebsd-aout)
  58868. - major=".$current"
  58869. - versuffix=".$current.$revision";
  58870. - ;;
  58871. + # split this up so that func_emit_cwrapperexe_src
  58872. + # can call each part independently.
  58873. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  58874. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  58875. +}
  58876. - freebsd-elf)
  58877. - major=".$current"
  58878. - versuffix=".$current";
  58879. - ;;
  58880. - irix | nonstopux)
  58881. - major=`expr $current - $age + 1`
  58882. +# func_to_host_path arg
  58883. +#
  58884. +# Convert paths to host format when used with build tools.
  58885. +# Intended for use with "native" mingw (where libtool itself
  58886. +# is running under the msys shell), or in the following cross-
  58887. +# build environments:
  58888. +# $build $host
  58889. +# mingw (msys) mingw [e.g. native]
  58890. +# cygwin mingw
  58891. +# *nix + wine mingw
  58892. +# where wine is equipped with the `winepath' executable.
  58893. +# In the native mingw case, the (msys) shell automatically
  58894. +# converts paths for any non-msys applications it launches,
  58895. +# but that facility isn't available from inside the cwrapper.
  58896. +# Similar accommodations are necessary for $host mingw and
  58897. +# $build cygwin. Calling this function does no harm for other
  58898. +# $host/$build combinations not listed above.
  58899. +#
  58900. +# ARG is the path (on $build) that should be converted to
  58901. +# the proper representation for $host. The result is stored
  58902. +# in $func_to_host_path_result.
  58903. +func_to_host_path ()
  58904. +{
  58905. + func_to_host_path_result="$1"
  58906. + if test -n "$1" ; then
  58907. + case $host in
  58908. + *mingw* )
  58909. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  58910. + case $build in
  58911. + *mingw* ) # actually, msys
  58912. + # awkward: cmd appends spaces to result
  58913. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  58914. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  58915. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  58916. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58917. + $SED -e "$lt_sed_naive_backslashify"`
  58918. + ;;
  58919. + *cygwin* )
  58920. + func_to_host_path_tmp1=`cygpath -w "$1"`
  58921. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58922. + $SED -e "$lt_sed_naive_backslashify"`
  58923. + ;;
  58924. + * )
  58925. + # Unfortunately, winepath does not exit with a non-zero
  58926. + # error code, so we are forced to check the contents of
  58927. + # stdout. On the other hand, if the command is not
  58928. + # found, the shell will set an exit code of 127 and print
  58929. + # *an error message* to stdout. So we must check for both
  58930. + # error code of zero AND non-empty stdout, which explains
  58931. + # the odd construction:
  58932. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  58933. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  58934. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  58935. + $SED -e "$lt_sed_naive_backslashify"`
  58936. + else
  58937. + # Allow warning below.
  58938. + func_to_host_path_result=""
  58939. + fi
  58940. + ;;
  58941. + esac
  58942. + if test -z "$func_to_host_path_result" ; then
  58943. + func_error "Could not determine host path corresponding to"
  58944. + func_error " '$1'"
  58945. + func_error "Continuing, but uninstalled executables may not work."
  58946. + # Fallback:
  58947. + func_to_host_path_result="$1"
  58948. + fi
  58949. + ;;
  58950. + esac
  58951. + fi
  58952. +}
  58953. +# end: func_to_host_path
  58954. - case $version_type in
  58955. - nonstopux) verstring_prefix=nonstopux ;;
  58956. - *) verstring_prefix=sgi ;;
  58957. - esac
  58958. - verstring="$verstring_prefix$major.$revision"
  58959. +# func_to_host_pathlist arg
  58960. +#
  58961. +# Convert pathlists to host format when used with build tools.
  58962. +# See func_to_host_path(), above. This function supports the
  58963. +# following $build/$host combinations (but does no harm for
  58964. +# combinations not listed here):
  58965. +# $build $host
  58966. +# mingw (msys) mingw [e.g. native]
  58967. +# cygwin mingw
  58968. +# *nix + wine mingw
  58969. +#
  58970. +# Path separators are also converted from $build format to
  58971. +# $host format. If ARG begins or ends with a path separator
  58972. +# character, it is preserved (but converted to $host format)
  58973. +# on output.
  58974. +#
  58975. +# ARG is a pathlist (on $build) that should be converted to
  58976. +# the proper representation on $host. The result is stored
  58977. +# in $func_to_host_pathlist_result.
  58978. +func_to_host_pathlist ()
  58979. +{
  58980. + func_to_host_pathlist_result="$1"
  58981. + if test -n "$1" ; then
  58982. + case $host in
  58983. + *mingw* )
  58984. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  58985. + # Remove leading and trailing path separator characters from
  58986. + # ARG. msys behavior is inconsistent here, cygpath turns them
  58987. + # into '.;' and ';.', and winepath ignores them completely.
  58988. + func_to_host_pathlist_tmp2="$1"
  58989. + # Once set for this call, this variable should not be
  58990. + # reassigned. It is used in tha fallback case.
  58991. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  58992. + $SED -e 's|^:*||' -e 's|:*$||'`
  58993. + case $build in
  58994. + *mingw* ) # Actually, msys.
  58995. + # Awkward: cmd appends spaces to result.
  58996. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  58997. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  58998. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  58999. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  59000. + $SED -e "$lt_sed_naive_backslashify"`
  59001. + ;;
  59002. + *cygwin* )
  59003. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  59004. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  59005. + $SED -e "$lt_sed_naive_backslashify"`
  59006. + ;;
  59007. + * )
  59008. + # unfortunately, winepath doesn't convert pathlists
  59009. + func_to_host_pathlist_result=""
  59010. + func_to_host_pathlist_oldIFS=$IFS
  59011. + IFS=:
  59012. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  59013. + IFS=$func_to_host_pathlist_oldIFS
  59014. + if test -n "$func_to_host_pathlist_f" ; then
  59015. + func_to_host_path "$func_to_host_pathlist_f"
  59016. + if test -n "$func_to_host_path_result" ; then
  59017. + if test -z "$func_to_host_pathlist_result" ; then
  59018. + func_to_host_pathlist_result="$func_to_host_path_result"
  59019. + else
  59020. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  59021. + fi
  59022. + fi
  59023. + fi
  59024. + IFS=:
  59025. + done
  59026. + IFS=$func_to_host_pathlist_oldIFS
  59027. + ;;
  59028. + esac
  59029. + if test -z "$func_to_host_pathlist_result" ; then
  59030. + func_error "Could not determine the host path(s) corresponding to"
  59031. + func_error " '$1'"
  59032. + func_error "Continuing, but uninstalled executables may not work."
  59033. + # Fallback. This may break if $1 contains DOS-style drive
  59034. + # specifications. The fix is not to complicate the expression
  59035. + # below, but for the user to provide a working wine installation
  59036. + # with winepath so that path translation in the cross-to-mingw
  59037. + # case works properly.
  59038. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  59039. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  59040. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  59041. + fi
  59042. + # Now, add the leading and trailing path separators back
  59043. + case "$1" in
  59044. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  59045. + ;;
  59046. + esac
  59047. + case "$1" in
  59048. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  59049. + ;;
  59050. + esac
  59051. + ;;
  59052. + esac
  59053. + fi
  59054. +}
  59055. +# end: func_to_host_pathlist
  59056. - # Add in all the interfaces that we are compatible with.
  59057. - loop=$revision
  59058. - while test "$loop" -ne 0; do
  59059. - iface=`expr $revision - $loop`
  59060. - loop=`expr $loop - 1`
  59061. - verstring="$verstring_prefix$major.$iface:$verstring"
  59062. - done
  59063. +# func_emit_cwrapperexe_src
  59064. +# emit the source code for a wrapper executable on stdout
  59065. +# Must ONLY be called from within func_mode_link because
  59066. +# it depends on a number of variable set therein.
  59067. +func_emit_cwrapperexe_src ()
  59068. +{
  59069. + cat <<EOF
  59070. - # Before this point, $major must not contain `.'.
  59071. - major=.$major
  59072. - versuffix="$major.$revision"
  59073. - ;;
  59074. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  59075. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  59076. - linux)
  59077. - major=.`expr $current - $age`
  59078. - versuffix="$major.$age.$revision"
  59079. - ;;
  59080. + The $output program cannot be directly executed until all the libtool
  59081. + libraries that it depends on are installed.
  59082. - osf)
  59083. - major=.`expr $current - $age`
  59084. - versuffix=".$current.$age.$revision"
  59085. - verstring="$current.$age.$revision"
  59086. + This wrapper executable should never be moved out of the build directory.
  59087. + If it is, it will not operate correctly.
  59088. - # Add in all the interfaces that we are compatible with.
  59089. - loop=$age
  59090. - while test "$loop" -ne 0; do
  59091. - iface=`expr $current - $loop`
  59092. - loop=`expr $loop - 1`
  59093. - verstring="$verstring:${iface}.0"
  59094. - done
  59095. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  59096. + but could eventually absorb all of the scripts functionality and
  59097. + exec $objdir/$outputname directly.
  59098. +*/
  59099. +EOF
  59100. + cat <<"EOF"
  59101. +#include <stdio.h>
  59102. +#include <stdlib.h>
  59103. +#ifdef _MSC_VER
  59104. +# include <direct.h>
  59105. +# include <process.h>
  59106. +# include <io.h>
  59107. +# define setmode _setmode
  59108. +#else
  59109. +# include <unistd.h>
  59110. +# include <stdint.h>
  59111. +# ifdef __CYGWIN__
  59112. +# include <io.h>
  59113. +# define HAVE_SETENV
  59114. +# ifdef __STRICT_ANSI__
  59115. +char *realpath (const char *, char *);
  59116. +int putenv (char *);
  59117. +int setenv (const char *, const char *, int);
  59118. +# endif
  59119. +# endif
  59120. +#endif
  59121. +#include <malloc.h>
  59122. +#include <stdarg.h>
  59123. +#include <assert.h>
  59124. +#include <string.h>
  59125. +#include <ctype.h>
  59126. +#include <errno.h>
  59127. +#include <fcntl.h>
  59128. +#include <sys/stat.h>
  59129. - # Make executables depend on our current version.
  59130. - verstring="$verstring:${current}.0"
  59131. - ;;
  59132. +#if defined(PATH_MAX)
  59133. +# define LT_PATHMAX PATH_MAX
  59134. +#elif defined(MAXPATHLEN)
  59135. +# define LT_PATHMAX MAXPATHLEN
  59136. +#else
  59137. +# define LT_PATHMAX 1024
  59138. +#endif
  59139. - sunos)
  59140. - major=".$current"
  59141. - versuffix=".$current.$revision"
  59142. - ;;
  59143. +#ifndef S_IXOTH
  59144. +# define S_IXOTH 0
  59145. +#endif
  59146. +#ifndef S_IXGRP
  59147. +# define S_IXGRP 0
  59148. +#endif
  59149. - windows)
  59150. - # Use '-' rather than '.', since we only want one
  59151. - # extension on DOS 8.3 filesystems.
  59152. - major=`expr $current - $age`
  59153. - versuffix="-$major"
  59154. - ;;
  59155. +#ifdef _MSC_VER
  59156. +# define S_IXUSR _S_IEXEC
  59157. +# define stat _stat
  59158. +# ifndef _INTPTR_T_DEFINED
  59159. +# define intptr_t int
  59160. +# endif
  59161. +#endif
  59162. - *)
  59163. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  59164. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  59165. - exit $EXIT_FAILURE
  59166. - ;;
  59167. - esac
  59168. +#ifndef DIR_SEPARATOR
  59169. +# define DIR_SEPARATOR '/'
  59170. +# define PATH_SEPARATOR ':'
  59171. +#endif
  59172. - # Clear the version info if we defaulted, and they specified a release.
  59173. - if test -z "$vinfo" && test -n "$release"; then
  59174. - major=
  59175. - case $version_type in
  59176. - darwin)
  59177. - # we can't check for "0.0" in archive_cmds due to quoting
  59178. - # problems, so we reset it completely
  59179. - verstring=
  59180. - ;;
  59181. - *)
  59182. - verstring="0.0"
  59183. - ;;
  59184. - esac
  59185. - if test "$need_version" = no; then
  59186. - versuffix=
  59187. - else
  59188. - versuffix=".0.0"
  59189. - fi
  59190. - fi
  59191. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  59192. + defined (__OS2__)
  59193. +# define HAVE_DOS_BASED_FILE_SYSTEM
  59194. +# define FOPEN_WB "wb"
  59195. +# ifndef DIR_SEPARATOR_2
  59196. +# define DIR_SEPARATOR_2 '\\'
  59197. +# endif
  59198. +# ifndef PATH_SEPARATOR_2
  59199. +# define PATH_SEPARATOR_2 ';'
  59200. +# endif
  59201. +#endif
  59202. - # Remove version info from name if versioning should be avoided
  59203. - if test "$avoid_version" = yes && test "$need_version" = no; then
  59204. - major=
  59205. - versuffix=
  59206. - verstring=""
  59207. - fi
  59208. +#ifndef DIR_SEPARATOR_2
  59209. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  59210. +#else /* DIR_SEPARATOR_2 */
  59211. +# define IS_DIR_SEPARATOR(ch) \
  59212. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  59213. +#endif /* DIR_SEPARATOR_2 */
  59214. - # Check to see if the archive will have undefined symbols.
  59215. - if test "$allow_undefined" = yes; then
  59216. - if test "$allow_undefined_flag" = unsupported; then
  59217. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  59218. - build_libtool_libs=no
  59219. - build_old_libs=yes
  59220. - fi
  59221. - else
  59222. - # Don't allow undefined symbols.
  59223. - allow_undefined_flag="$no_undefined_flag"
  59224. - fi
  59225. - fi
  59226. +#ifndef PATH_SEPARATOR_2
  59227. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  59228. +#else /* PATH_SEPARATOR_2 */
  59229. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  59230. +#endif /* PATH_SEPARATOR_2 */
  59231. - if test "$mode" != relink; then
  59232. - # Remove our outputs, but don't remove object files since they
  59233. - # may have been created when compiling PIC objects.
  59234. - removelist=
  59235. - tempremovelist=`$echo "$output_objdir/*"`
  59236. - for p in $tempremovelist; do
  59237. - case $p in
  59238. - *.$objext)
  59239. - ;;
  59240. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  59241. - if test "X$precious_files_regex" != "X"; then
  59242. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  59243. - then
  59244. - continue
  59245. - fi
  59246. - fi
  59247. - removelist="$removelist $p"
  59248. - ;;
  59249. - *) ;;
  59250. - esac
  59251. - done
  59252. - if test -n "$removelist"; then
  59253. - $show "${rm}r $removelist"
  59254. - $run ${rm}r $removelist
  59255. - fi
  59256. - fi
  59257. +#ifdef __CYGWIN__
  59258. +# define FOPEN_WB "wb"
  59259. +#endif
  59260. - # Now set the variables for building old libraries.
  59261. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  59262. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  59263. +#ifndef FOPEN_WB
  59264. +# define FOPEN_WB "w"
  59265. +#endif
  59266. +#ifndef _O_BINARY
  59267. +# define _O_BINARY 0
  59268. +#endif
  59269. - # Transform .lo files to .o files.
  59270. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  59271. - fi
  59272. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  59273. +#define XFREE(stale) do { \
  59274. + if (stale) { free ((void *) stale); stale = 0; } \
  59275. +} while (0)
  59276. - # Eliminate all temporary directories.
  59277. - for path in $notinst_path; do
  59278. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  59279. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  59280. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  59281. - done
  59282. +#undef LTWRAPPER_DEBUGPRINTF
  59283. +#if defined DEBUGWRAPPER
  59284. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  59285. +static void
  59286. +ltwrapper_debugprintf (const char *fmt, ...)
  59287. +{
  59288. + va_list args;
  59289. + va_start (args, fmt);
  59290. + (void) vfprintf (stderr, fmt, args);
  59291. + va_end (args);
  59292. +}
  59293. +#else
  59294. +# define LTWRAPPER_DEBUGPRINTF(args)
  59295. +#endif
  59296. - if test -n "$xrpath"; then
  59297. - # If the user specified any rpath flags, then add them.
  59298. - temp_xrpath=
  59299. - for libdir in $xrpath; do
  59300. - temp_xrpath="$temp_xrpath -R$libdir"
  59301. - case "$finalize_rpath " in
  59302. - *" $libdir "*) ;;
  59303. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  59304. - esac
  59305. - done
  59306. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  59307. - dependency_libs="$temp_xrpath $dependency_libs"
  59308. - fi
  59309. - fi
  59310. +const char *program_name = NULL;
  59311. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  59312. - old_dlfiles="$dlfiles"
  59313. - dlfiles=
  59314. - for lib in $old_dlfiles; do
  59315. - case " $dlprefiles $dlfiles " in
  59316. - *" $lib "*) ;;
  59317. - *) dlfiles="$dlfiles $lib" ;;
  59318. - esac
  59319. - done
  59320. +void *xmalloc (size_t num);
  59321. +char *xstrdup (const char *string);
  59322. +const char *base_name (const char *name);
  59323. +char *find_executable (const char *wrapper);
  59324. +char *chase_symlinks (const char *pathspec);
  59325. +int make_executable (const char *path);
  59326. +int check_executable (const char *path);
  59327. +char *strendzap (char *str, const char *pat);
  59328. +void lt_fatal (const char *message, ...);
  59329. +void lt_setenv (const char *name, const char *value);
  59330. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  59331. +void lt_opt_process_env_set (const char *arg);
  59332. +void lt_opt_process_env_prepend (const char *arg);
  59333. +void lt_opt_process_env_append (const char *arg);
  59334. +int lt_split_name_value (const char *arg, char** name, char** value);
  59335. +void lt_update_exe_path (const char *name, const char *value);
  59336. +void lt_update_lib_path (const char *name, const char *value);
  59337. - # Make sure dlprefiles contains only unique files
  59338. - old_dlprefiles="$dlprefiles"
  59339. - dlprefiles=
  59340. - for lib in $old_dlprefiles; do
  59341. - case "$dlprefiles " in
  59342. - *" $lib "*) ;;
  59343. - *) dlprefiles="$dlprefiles $lib" ;;
  59344. - esac
  59345. - done
  59346. +static const char *script_text_part1 =
  59347. +EOF
  59348. - if test "$build_libtool_libs" = yes; then
  59349. - if test -n "$rpath"; then
  59350. - case $host in
  59351. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  59352. - # these systems don't actually have a c library (as such)!
  59353. - ;;
  59354. - *-*-rhapsody* | *-*-darwin1.[012])
  59355. - # Rhapsody C library is in the System framework
  59356. - deplibs="$deplibs -framework System"
  59357. - ;;
  59358. - *-*-netbsd*)
  59359. - # Don't link with libc until the a.out ld.so is fixed.
  59360. - ;;
  59361. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  59362. - # Do not include libc due to us having libc/libc_r.
  59363. - ;;
  59364. - *-*-sco3.2v5* | *-*-sco5v6*)
  59365. - # Causes problems with __ctype
  59366. - ;;
  59367. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  59368. - # Compiler inserts libc in the correct place for threads to work
  59369. - ;;
  59370. - *)
  59371. - # Add libc to deplibs on all other systems if necessary.
  59372. - if test "$build_libtool_need_lc" = "yes"; then
  59373. - deplibs="$deplibs -lc"
  59374. - fi
  59375. - ;;
  59376. - esac
  59377. - fi
  59378. + func_emit_wrapper_part1 yes |
  59379. + $SED -e 's/\([\\"]\)/\\\1/g' \
  59380. + -e 's/^/ "/' -e 's/$/\\n"/'
  59381. + echo ";"
  59382. + cat <<EOF
  59383. - # Transform deplibs into only deplibs that can be linked in shared.
  59384. - name_save=$name
  59385. - libname_save=$libname
  59386. - release_save=$release
  59387. - versuffix_save=$versuffix
  59388. - major_save=$major
  59389. - # I'm not sure if I'm treating the release correctly. I think
  59390. - # release should show up in the -l (ie -lgmp5) so we don't want to
  59391. - # add it in twice. Is that correct?
  59392. - release=""
  59393. - versuffix=""
  59394. - major=""
  59395. - newdeplibs=
  59396. - droppeddeps=no
  59397. - case $deplibs_check_method in
  59398. - pass_all)
  59399. - # Don't check for shared/static. Everything works.
  59400. - # This might be a little naive. We might want to check
  59401. - # whether the library exists or not. But this is on
  59402. - # osf3 & osf4 and I'm not really sure... Just
  59403. - # implementing what was already the behavior.
  59404. - newdeplibs=$deplibs
  59405. - ;;
  59406. - test_compile)
  59407. - # This code stresses the "libraries are programs" paradigm to its
  59408. - # limits. Maybe even breaks it. We compile a program, linking it
  59409. - # against the deplibs as a proxy for the library. Then we can check
  59410. - # whether they linked in statically or dynamically with ldd.
  59411. - $rm conftest.c
  59412. - cat > conftest.c <<EOF
  59413. - int main() { return 0; }
  59414. +static const char *script_text_part2 =
  59415. +EOF
  59416. + func_emit_wrapper_part2 yes |
  59417. + $SED -e 's/\([\\"]\)/\\\1/g' \
  59418. + -e 's/^/ "/' -e 's/$/\\n"/'
  59419. + echo ";"
  59420. +
  59421. + cat <<EOF
  59422. +const char * MAGIC_EXE = "$magic_exe";
  59423. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  59424. +EOF
  59425. +
  59426. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  59427. + func_to_host_pathlist "$temp_rpath"
  59428. + cat <<EOF
  59429. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  59430. EOF
  59431. - $rm conftest
  59432. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  59433. - if test "$?" -eq 0 ; then
  59434. - ldd_output=`ldd conftest`
  59435. - for i in $deplibs; do
  59436. - name=`expr $i : '-l\(.*\)'`
  59437. - # If $name is empty we are operating on a -L argument.
  59438. - if test "$name" != "" && test "$name" -ne "0"; then
  59439. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59440. - case " $predeps $postdeps " in
  59441. - *" $i "*)
  59442. - newdeplibs="$newdeplibs $i"
  59443. - i=""
  59444. - ;;
  59445. - esac
  59446. - fi
  59447. - if test -n "$i" ; then
  59448. - libname=`eval \\$echo \"$libname_spec\"`
  59449. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  59450. - set dummy $deplib_matches
  59451. - deplib_match=$2
  59452. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  59453. - newdeplibs="$newdeplibs $i"
  59454. - else
  59455. - droppeddeps=yes
  59456. - $echo
  59457. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  59458. - $echo "*** I have the capability to make that library automatically link in when"
  59459. - $echo "*** you link to this library. But I can only do this if you have a"
  59460. - $echo "*** shared version of the library, which I believe you do not have"
  59461. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  59462. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  59463. - fi
  59464. - fi
  59465. - else
  59466. - newdeplibs="$newdeplibs $i"
  59467. - fi
  59468. - done
  59469. - else
  59470. - # Error occurred in the first compile. Let's try to salvage
  59471. - # the situation: Compile a separate program for each library.
  59472. - for i in $deplibs; do
  59473. - name=`expr $i : '-l\(.*\)'`
  59474. - # If $name is empty we are operating on a -L argument.
  59475. - if test "$name" != "" && test "$name" != "0"; then
  59476. - $rm conftest
  59477. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  59478. - # Did it work?
  59479. - if test "$?" -eq 0 ; then
  59480. - ldd_output=`ldd conftest`
  59481. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59482. - case " $predeps $postdeps " in
  59483. - *" $i "*)
  59484. - newdeplibs="$newdeplibs $i"
  59485. - i=""
  59486. - ;;
  59487. - esac
  59488. - fi
  59489. - if test -n "$i" ; then
  59490. - libname=`eval \\$echo \"$libname_spec\"`
  59491. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  59492. - set dummy $deplib_matches
  59493. - deplib_match=$2
  59494. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  59495. - newdeplibs="$newdeplibs $i"
  59496. - else
  59497. - droppeddeps=yes
  59498. - $echo
  59499. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  59500. - $echo "*** I have the capability to make that library automatically link in when"
  59501. - $echo "*** you link to this library. But I can only do this if you have a"
  59502. - $echo "*** shared version of the library, which you do not appear to have"
  59503. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  59504. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  59505. - fi
  59506. - fi
  59507. - else
  59508. - droppeddeps=yes
  59509. - $echo
  59510. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  59511. - $echo "*** make it link in! You will probably need to install it or some"
  59512. - $echo "*** library that it depends on before this library will be fully"
  59513. - $echo "*** functional. Installing it before continuing would be even better."
  59514. - fi
  59515. - else
  59516. - newdeplibs="$newdeplibs $i"
  59517. - fi
  59518. - done
  59519. - fi
  59520. - ;;
  59521. - file_magic*)
  59522. - set dummy $deplibs_check_method
  59523. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  59524. - for a_deplib in $deplibs; do
  59525. - name=`expr $a_deplib : '-l\(.*\)'`
  59526. - # If $name is empty we are operating on a -L argument.
  59527. - if test "$name" != "" && test "$name" != "0"; then
  59528. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59529. - case " $predeps $postdeps " in
  59530. - *" $a_deplib "*)
  59531. - newdeplibs="$newdeplibs $a_deplib"
  59532. - a_deplib=""
  59533. - ;;
  59534. - esac
  59535. - fi
  59536. - if test -n "$a_deplib" ; then
  59537. - libname=`eval \\$echo \"$libname_spec\"`
  59538. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  59539. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  59540. - for potent_lib in $potential_libs; do
  59541. - # Follow soft links.
  59542. - if ls -lLd "$potent_lib" 2>/dev/null \
  59543. - | grep " -> " >/dev/null; then
  59544. - continue
  59545. - fi
  59546. - # The statement above tries to avoid entering an
  59547. - # endless loop below, in case of cyclic links.
  59548. - # We might still enter an endless loop, since a link
  59549. - # loop can be closed while we follow links,
  59550. - # but so what?
  59551. - potlib="$potent_lib"
  59552. - while test -h "$potlib" 2>/dev/null; do
  59553. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  59554. - case $potliblink in
  59555. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  59556. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  59557. - esac
  59558. - done
  59559. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  59560. - | ${SED} 10q \
  59561. - | $EGREP "$file_magic_regex" > /dev/null; then
  59562. - newdeplibs="$newdeplibs $a_deplib"
  59563. - a_deplib=""
  59564. - break 2
  59565. - fi
  59566. - done
  59567. - done
  59568. - fi
  59569. - if test -n "$a_deplib" ; then
  59570. - droppeddeps=yes
  59571. - $echo
  59572. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  59573. - $echo "*** I have the capability to make that library automatically link in when"
  59574. - $echo "*** you link to this library. But I can only do this if you have a"
  59575. - $echo "*** shared version of the library, which you do not appear to have"
  59576. - $echo "*** because I did check the linker path looking for a file starting"
  59577. - if test -z "$potlib" ; then
  59578. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  59579. - else
  59580. - $echo "*** with $libname and none of the candidates passed a file format test"
  59581. - $echo "*** using a file magic. Last file checked: $potlib"
  59582. - fi
  59583. - fi
  59584. else
  59585. - # Add a -L argument.
  59586. - newdeplibs="$newdeplibs $a_deplib"
  59587. + cat <<"EOF"
  59588. +const char * LIB_PATH_VALUE = "";
  59589. +EOF
  59590. fi
  59591. - done # Gone through all deplibs.
  59592. - ;;
  59593. - match_pattern*)
  59594. - set dummy $deplibs_check_method
  59595. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  59596. - for a_deplib in $deplibs; do
  59597. - name=`expr $a_deplib : '-l\(.*\)'`
  59598. - # If $name is empty we are operating on a -L argument.
  59599. - if test -n "$name" && test "$name" != "0"; then
  59600. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59601. - case " $predeps $postdeps " in
  59602. - *" $a_deplib "*)
  59603. - newdeplibs="$newdeplibs $a_deplib"
  59604. - a_deplib=""
  59605. - ;;
  59606. - esac
  59607. - fi
  59608. - if test -n "$a_deplib" ; then
  59609. - libname=`eval \\$echo \"$libname_spec\"`
  59610. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  59611. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  59612. - for potent_lib in $potential_libs; do
  59613. - potlib="$potent_lib" # see symlink-check above in file_magic test
  59614. - if eval $echo \"$potent_lib\" 2>/dev/null \
  59615. - | ${SED} 10q \
  59616. - | $EGREP "$match_pattern_regex" > /dev/null; then
  59617. - newdeplibs="$newdeplibs $a_deplib"
  59618. - a_deplib=""
  59619. - break 2
  59620. - fi
  59621. - done
  59622. - done
  59623. - fi
  59624. - if test -n "$a_deplib" ; then
  59625. - droppeddeps=yes
  59626. - $echo
  59627. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  59628. - $echo "*** I have the capability to make that library automatically link in when"
  59629. - $echo "*** you link to this library. But I can only do this if you have a"
  59630. - $echo "*** shared version of the library, which you do not appear to have"
  59631. - $echo "*** because I did check the linker path looking for a file starting"
  59632. - if test -z "$potlib" ; then
  59633. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  59634. - else
  59635. - $echo "*** with $libname and none of the candidates passed a file format test"
  59636. - $echo "*** using a regex pattern. Last file checked: $potlib"
  59637. - fi
  59638. - fi
  59639. +
  59640. + if test -n "$dllsearchpath"; then
  59641. + func_to_host_pathlist "$dllsearchpath:"
  59642. + cat <<EOF
  59643. +const char * EXE_PATH_VARNAME = "PATH";
  59644. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  59645. +EOF
  59646. else
  59647. - # Add a -L argument.
  59648. - newdeplibs="$newdeplibs $a_deplib"
  59649. + cat <<"EOF"
  59650. +const char * EXE_PATH_VARNAME = "";
  59651. +const char * EXE_PATH_VALUE = "";
  59652. +EOF
  59653. fi
  59654. - done # Gone through all deplibs.
  59655. - ;;
  59656. - none | unknown | *)
  59657. - newdeplibs=""
  59658. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  59659. - -e 's/ -[LR][^ ]*//g'`
  59660. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59661. - for i in $predeps $postdeps ; do
  59662. - # can't use Xsed below, because $i might contain '/'
  59663. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  59664. - done
  59665. - fi
  59666. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  59667. - | grep . >/dev/null; then
  59668. - $echo
  59669. - if test "X$deplibs_check_method" = "Xnone"; then
  59670. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  59671. +
  59672. + if test "$fast_install" = yes; then
  59673. + cat <<EOF
  59674. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  59675. +EOF
  59676. else
  59677. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  59678. + cat <<EOF
  59679. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  59680. +EOF
  59681. fi
  59682. - $echo "*** All declared inter-library dependencies are being dropped."
  59683. - droppeddeps=yes
  59684. - fi
  59685. - ;;
  59686. - esac
  59687. - versuffix=$versuffix_save
  59688. - major=$major_save
  59689. - release=$release_save
  59690. - libname=$libname_save
  59691. - name=$name_save
  59692. - case $host in
  59693. - *-*-rhapsody* | *-*-darwin1.[012])
  59694. - # On Rhapsody replace the C library is the System framework
  59695. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  59696. - ;;
  59697. - esac
  59698. - if test "$droppeddeps" = yes; then
  59699. - if test "$module" = yes; then
  59700. - $echo
  59701. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  59702. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  59703. - $echo "*** a static module, that should work as long as the dlopening"
  59704. - $echo "*** application is linked with the -dlopen flag."
  59705. - if test -z "$global_symbol_pipe"; then
  59706. - $echo
  59707. - $echo "*** However, this would only work if libtool was able to extract symbol"
  59708. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  59709. - $echo "*** not find such a program. So, this module is probably useless."
  59710. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  59711. - fi
  59712. - if test "$build_old_libs" = no; then
  59713. - oldlibs="$output_objdir/$libname.$libext"
  59714. - build_libtool_libs=module
  59715. - build_old_libs=yes
  59716. - else
  59717. - build_libtool_libs=no
  59718. - fi
  59719. - else
  59720. - $echo "*** The inter-library dependencies that have been dropped here will be"
  59721. - $echo "*** automatically added whenever a program is linked with this library"
  59722. - $echo "*** or is declared to -dlopen it."
  59723. + cat <<"EOF"
  59724. - if test "$allow_undefined" = no; then
  59725. - $echo
  59726. - $echo "*** Since this library must not contain undefined symbols,"
  59727. - $echo "*** because either the platform does not support them or"
  59728. - $echo "*** it was explicitly requested with -no-undefined,"
  59729. - $echo "*** libtool will only create a static version of it."
  59730. - if test "$build_old_libs" = no; then
  59731. - oldlibs="$output_objdir/$libname.$libext"
  59732. - build_libtool_libs=module
  59733. - build_old_libs=yes
  59734. - else
  59735. - build_libtool_libs=no
  59736. - fi
  59737. - fi
  59738. - fi
  59739. - fi
  59740. - # Done checking deplibs!
  59741. - deplibs=$newdeplibs
  59742. - fi
  59743. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  59744. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  59745. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  59746. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  59747. - # move library search paths that coincide with paths to not yet
  59748. - # installed libraries to the beginning of the library search list
  59749. - new_libs=
  59750. - for path in $notinst_path; do
  59751. - case " $new_libs " in
  59752. - *" -L$path/$objdir "*) ;;
  59753. - *)
  59754. - case " $deplibs " in
  59755. - *" -L$path/$objdir "*)
  59756. - new_libs="$new_libs -L$path/$objdir" ;;
  59757. - esac
  59758. - ;;
  59759. - esac
  59760. - done
  59761. - for deplib in $deplibs; do
  59762. - case $deplib in
  59763. - -L*)
  59764. - case " $new_libs " in
  59765. - *" $deplib "*) ;;
  59766. - *) new_libs="$new_libs $deplib" ;;
  59767. - esac
  59768. - ;;
  59769. - *) new_libs="$new_libs $deplib" ;;
  59770. - esac
  59771. - done
  59772. - deplibs="$new_libs"
  59773. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  59774. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  59775. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  59776. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  59777. - # All the library-specific variables (install_libdir is set above).
  59778. - library_names=
  59779. - old_library=
  59780. - dlname=
  59781. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  59782. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  59783. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  59784. - # Test again, we may have decided not to build it any more
  59785. - if test "$build_libtool_libs" = yes; then
  59786. - if test "$hardcode_into_libs" = yes; then
  59787. - # Hardcode the library paths
  59788. - hardcode_libdirs=
  59789. - dep_rpath=
  59790. - rpath="$finalize_rpath"
  59791. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  59792. - for libdir in $rpath; do
  59793. - if test -n "$hardcode_libdir_flag_spec"; then
  59794. - if test -n "$hardcode_libdir_separator"; then
  59795. - if test -z "$hardcode_libdirs"; then
  59796. - hardcode_libdirs="$libdir"
  59797. - else
  59798. - # Just accumulate the unique libdirs.
  59799. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59800. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59801. - ;;
  59802. - *)
  59803. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59804. - ;;
  59805. - esac
  59806. - fi
  59807. - else
  59808. - eval flag=\"$hardcode_libdir_flag_spec\"
  59809. - dep_rpath="$dep_rpath $flag"
  59810. - fi
  59811. - elif test -n "$runpath_var"; then
  59812. - case "$perm_rpath " in
  59813. - *" $libdir "*) ;;
  59814. - *) perm_rpath="$perm_rpath $libdir" ;;
  59815. - esac
  59816. - fi
  59817. - done
  59818. - # Substitute the hardcoded libdirs into the rpath.
  59819. - if test -n "$hardcode_libdir_separator" &&
  59820. - test -n "$hardcode_libdirs"; then
  59821. - libdir="$hardcode_libdirs"
  59822. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  59823. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  59824. - else
  59825. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  59826. - fi
  59827. - fi
  59828. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  59829. - # We should set the runpath_var.
  59830. - rpath=
  59831. - for dir in $perm_rpath; do
  59832. - rpath="$rpath$dir:"
  59833. - done
  59834. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  59835. - fi
  59836. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  59837. - fi
  59838. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  59839. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  59840. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  59841. - shlibpath="$finalize_shlibpath"
  59842. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  59843. - if test -n "$shlibpath"; then
  59844. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  59845. - fi
  59846. +int
  59847. +main (int argc, char *argv[])
  59848. +{
  59849. + char **newargz;
  59850. + int newargc;
  59851. + char *tmp_pathspec;
  59852. + char *actual_cwrapper_path;
  59853. + char *actual_cwrapper_name;
  59854. + char *target_name;
  59855. + char *lt_argv_zero;
  59856. + intptr_t rval = 127;
  59857. - # Get the real and link names of the library.
  59858. - eval shared_ext=\"$shrext_cmds\"
  59859. - eval library_names=\"$library_names_spec\"
  59860. - set dummy $library_names
  59861. - realname="$2"
  59862. - shift; shift
  59863. + int i;
  59864. - if test -n "$soname_spec"; then
  59865. - eval soname=\"$soname_spec\"
  59866. - else
  59867. - soname="$realname"
  59868. - fi
  59869. - if test -z "$dlname"; then
  59870. - dlname=$soname
  59871. - fi
  59872. + program_name = (char *) xstrdup (base_name (argv[0]));
  59873. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  59874. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  59875. - lib="$output_objdir/$realname"
  59876. - linknames=
  59877. - for link
  59878. - do
  59879. - linknames="$linknames $link"
  59880. - done
  59881. + /* very simple arg parsing; don't want to rely on getopt */
  59882. + for (i = 1; i < argc; i++)
  59883. + {
  59884. + if (strcmp (argv[i], dumpscript_opt) == 0)
  59885. + {
  59886. +EOF
  59887. + case "$host" in
  59888. + *mingw* | *cygwin* )
  59889. + # make stdout use "unix" line endings
  59890. + echo " setmode(1,_O_BINARY);"
  59891. + ;;
  59892. + esac
  59893. - # Use standard objects if they are pic
  59894. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59895. + cat <<"EOF"
  59896. + printf ("%s", script_text_part1);
  59897. + printf ("%s", script_text_part2);
  59898. + return 0;
  59899. + }
  59900. + }
  59901. - # Prepare the list of exported symbols
  59902. - if test -z "$export_symbols"; then
  59903. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  59904. - $show "generating symbol list for \`$libname.la'"
  59905. - export_symbols="$output_objdir/$libname.exp"
  59906. - $run $rm $export_symbols
  59907. - cmds=$export_symbols_cmds
  59908. - save_ifs="$IFS"; IFS='~'
  59909. - for cmd in $cmds; do
  59910. - IFS="$save_ifs"
  59911. - eval cmd=\"$cmd\"
  59912. - if len=`expr "X$cmd" : ".*"` &&
  59913. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59914. - $show "$cmd"
  59915. - $run eval "$cmd" || exit $?
  59916. - skipped_export=false
  59917. - else
  59918. - # The command line is too long to execute in one step.
  59919. - $show "using reloadable object file for export list..."
  59920. - skipped_export=:
  59921. - # Break out early, otherwise skipped_export may be
  59922. - # set to false by a later but shorter cmd.
  59923. - break
  59924. - fi
  59925. - done
  59926. - IFS="$save_ifs"
  59927. - if test -n "$export_symbols_regex"; then
  59928. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  59929. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59930. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  59931. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  59932. - fi
  59933. - fi
  59934. - fi
  59935. + newargz = XMALLOC (char *, argc + 1);
  59936. + tmp_pathspec = find_executable (argv[0]);
  59937. + if (tmp_pathspec == NULL)
  59938. + lt_fatal ("Couldn't find %s", argv[0]);
  59939. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  59940. + tmp_pathspec));
  59941. +
  59942. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  59943. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  59944. + actual_cwrapper_path));
  59945. + XFREE (tmp_pathspec);
  59946. +
  59947. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  59948. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  59949. +
  59950. + /* wrapper name transforms */
  59951. + strendzap (actual_cwrapper_name, ".exe");
  59952. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  59953. + XFREE (actual_cwrapper_name);
  59954. + actual_cwrapper_name = tmp_pathspec;
  59955. + tmp_pathspec = 0;
  59956. +
  59957. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  59958. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  59959. + strendzap (target_name, ".exe");
  59960. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  59961. + XFREE (target_name);
  59962. + target_name = tmp_pathspec;
  59963. + tmp_pathspec = 0;
  59964. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59965. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  59966. - fi
  59967. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  59968. + target_name));
  59969. +EOF
  59970. - tmp_deplibs=
  59971. - for test_deplib in $deplibs; do
  59972. - case " $convenience " in
  59973. - *" $test_deplib "*) ;;
  59974. - *)
  59975. - tmp_deplibs="$tmp_deplibs $test_deplib"
  59976. - ;;
  59977. - esac
  59978. - done
  59979. - deplibs="$tmp_deplibs"
  59980. + cat <<EOF
  59981. + newargz[0] =
  59982. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  59983. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  59984. + strcpy (newargz[0], actual_cwrapper_path);
  59985. + strcat (newargz[0], "$objdir");
  59986. + strcat (newargz[0], "/");
  59987. +EOF
  59988. - if test -n "$convenience"; then
  59989. - if test -n "$whole_archive_flag_spec"; then
  59990. - save_libobjs=$libobjs
  59991. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59992. - else
  59993. - gentop="$output_objdir/${outputname}x"
  59994. - generated="$generated $gentop"
  59995. + cat <<"EOF"
  59996. + /* stop here, and copy so we don't have to do this twice */
  59997. + tmp_pathspec = xstrdup (newargz[0]);
  59998. +
  59999. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  60000. + strcat (newargz[0], actual_cwrapper_name);
  60001. +
  60002. + /* DO want the lt- prefix here if it exists, so use target_name */
  60003. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  60004. + XFREE (tmp_pathspec);
  60005. + tmp_pathspec = NULL;
  60006. +EOF
  60007. - func_extract_archives $gentop $convenience
  60008. - libobjs="$libobjs $func_extract_archives_result"
  60009. - fi
  60010. - fi
  60011. -
  60012. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  60013. - eval flag=\"$thread_safe_flag_spec\"
  60014. - linker_flags="$linker_flags $flag"
  60015. - fi
  60016. + case $host_os in
  60017. + mingw*)
  60018. + cat <<"EOF"
  60019. + {
  60020. + char* p;
  60021. + while ((p = strchr (newargz[0], '\\')) != NULL)
  60022. + {
  60023. + *p = '/';
  60024. + }
  60025. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  60026. + {
  60027. + *p = '/';
  60028. + }
  60029. + }
  60030. +EOF
  60031. + ;;
  60032. + esac
  60033. - # Make a backup of the uninstalled library when relinking
  60034. - if test "$mode" = relink; then
  60035. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  60036. - fi
  60037. + cat <<"EOF"
  60038. + XFREE (target_name);
  60039. + XFREE (actual_cwrapper_path);
  60040. + XFREE (actual_cwrapper_name);
  60041. +
  60042. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  60043. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  60044. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  60045. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  60046. - # Do each of the archive commands.
  60047. - if test "$module" = yes && test -n "$module_cmds" ; then
  60048. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  60049. - eval test_cmds=\"$module_expsym_cmds\"
  60050. - cmds=$module_expsym_cmds
  60051. - else
  60052. - eval test_cmds=\"$module_cmds\"
  60053. - cmds=$module_cmds
  60054. - fi
  60055. - else
  60056. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  60057. - eval test_cmds=\"$archive_expsym_cmds\"
  60058. - cmds=$archive_expsym_cmds
  60059. - else
  60060. - eval test_cmds=\"$archive_cmds\"
  60061. - cmds=$archive_cmds
  60062. - fi
  60063. - fi
  60064. + newargc=0;
  60065. + for (i = 1; i < argc; i++)
  60066. + {
  60067. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  60068. + {
  60069. + if (argv[i][env_set_opt_len] == '=')
  60070. + {
  60071. + const char *p = argv[i] + env_set_opt_len + 1;
  60072. + lt_opt_process_env_set (p);
  60073. + }
  60074. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  60075. + {
  60076. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  60077. + }
  60078. + else
  60079. + lt_fatal ("%s missing required argument", env_set_opt);
  60080. + continue;
  60081. + }
  60082. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  60083. + {
  60084. + if (argv[i][env_prepend_opt_len] == '=')
  60085. + {
  60086. + const char *p = argv[i] + env_prepend_opt_len + 1;
  60087. + lt_opt_process_env_prepend (p);
  60088. + }
  60089. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  60090. + {
  60091. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  60092. + }
  60093. + else
  60094. + lt_fatal ("%s missing required argument", env_prepend_opt);
  60095. + continue;
  60096. + }
  60097. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  60098. + {
  60099. + if (argv[i][env_append_opt_len] == '=')
  60100. + {
  60101. + const char *p = argv[i] + env_append_opt_len + 1;
  60102. + lt_opt_process_env_append (p);
  60103. + }
  60104. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  60105. + {
  60106. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  60107. + }
  60108. + else
  60109. + lt_fatal ("%s missing required argument", env_append_opt);
  60110. + continue;
  60111. + }
  60112. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  60113. + {
  60114. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  60115. + namespace, but it is not one of the ones we know about and
  60116. + have already dealt with, above (inluding dump-script), then
  60117. + report an error. Otherwise, targets might begin to believe
  60118. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  60119. + namespace. The first time any user complains about this, we'll
  60120. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  60121. + or a configure.ac-settable value.
  60122. + */
  60123. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  60124. + ltwrapper_option_prefix, argv[i]);
  60125. + }
  60126. + /* otherwise ... */
  60127. + newargz[++newargc] = xstrdup (argv[i]);
  60128. + }
  60129. + newargz[++newargc] = NULL;
  60130. - if test "X$skipped_export" != "X:" &&
  60131. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  60132. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  60133. - :
  60134. - else
  60135. - # The command line is too long to link in one step, link piecewise.
  60136. - $echo "creating reloadable object files..."
  60137. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  60138. + for (i = 0; i < newargc; i++)
  60139. + {
  60140. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  60141. + }
  60142. - # Save the value of $output and $libobjs because we want to
  60143. - # use them later. If we have whole_archive_flag_spec, we
  60144. - # want to use save_libobjs as it was before
  60145. - # whole_archive_flag_spec was expanded, because we can't
  60146. - # assume the linker understands whole_archive_flag_spec.
  60147. - # This may have to be revisited, in case too many
  60148. - # convenience libraries get linked in and end up exceeding
  60149. - # the spec.
  60150. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  60151. - save_libobjs=$libobjs
  60152. - fi
  60153. - save_output=$output
  60154. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  60155. +EOF
  60156. - # Clear the reloadable object creation command queue and
  60157. - # initialize k to one.
  60158. - test_cmds=
  60159. - concat_cmds=
  60160. - objlist=
  60161. - delfiles=
  60162. - last_robj=
  60163. - k=1
  60164. - output=$output_objdir/$output_la-${k}.$objext
  60165. - # Loop over the list of objects to be linked.
  60166. - for obj in $save_libobjs
  60167. - do
  60168. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  60169. - if test "X$objlist" = X ||
  60170. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  60171. - test "$len" -le "$max_cmd_len"; }; then
  60172. - objlist="$objlist $obj"
  60173. - else
  60174. - # The command $test_cmds is almost too long, add a
  60175. - # command to the queue.
  60176. - if test "$k" -eq 1 ; then
  60177. - # The first file doesn't have a previous command to add.
  60178. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  60179. - else
  60180. - # All subsequent reloadable object files will link in
  60181. - # the last one created.
  60182. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  60183. - fi
  60184. - last_robj=$output_objdir/$output_la-${k}.$objext
  60185. - k=`expr $k + 1`
  60186. - output=$output_objdir/$output_la-${k}.$objext
  60187. - objlist=$obj
  60188. - len=1
  60189. - fi
  60190. - done
  60191. - # Handle the remaining objects by creating one last
  60192. - # reloadable object file. All subsequent reloadable object
  60193. - # files will link in the last one created.
  60194. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  60195. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  60196. + case $host_os in
  60197. + mingw*)
  60198. + cat <<"EOF"
  60199. + /* execv doesn't actually work on mingw as expected on unix */
  60200. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  60201. + if (rval == -1)
  60202. + {
  60203. + /* failed to start process */
  60204. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  60205. + return 127;
  60206. + }
  60207. + return rval;
  60208. +EOF
  60209. + ;;
  60210. + *)
  60211. + cat <<"EOF"
  60212. + execv (lt_argv_zero, newargz);
  60213. + return rval; /* =127, but avoids unused variable warning */
  60214. +EOF
  60215. + ;;
  60216. + esac
  60217. - if ${skipped_export-false}; then
  60218. - $show "generating symbol list for \`$libname.la'"
  60219. - export_symbols="$output_objdir/$libname.exp"
  60220. - $run $rm $export_symbols
  60221. - libobjs=$output
  60222. - # Append the command to create the export file.
  60223. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  60224. - fi
  60225. -
  60226. - # Set up a command to remove the reloadable object files
  60227. - # after they are used.
  60228. - i=0
  60229. - while test "$i" -lt "$k"
  60230. - do
  60231. - i=`expr $i + 1`
  60232. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  60233. - done
  60234. + cat <<"EOF"
  60235. +}
  60236. - $echo "creating a temporary reloadable object file: $output"
  60237. +void *
  60238. +xmalloc (size_t num)
  60239. +{
  60240. + void *p = (void *) malloc (num);
  60241. + if (!p)
  60242. + lt_fatal ("Memory exhausted");
  60243. - # Loop through the commands generated above and execute them.
  60244. - save_ifs="$IFS"; IFS='~'
  60245. - for cmd in $concat_cmds; do
  60246. - IFS="$save_ifs"
  60247. - $show "$cmd"
  60248. - $run eval "$cmd" || exit $?
  60249. - done
  60250. - IFS="$save_ifs"
  60251. + return p;
  60252. +}
  60253. - libobjs=$output
  60254. - # Restore the value of output.
  60255. - output=$save_output
  60256. +char *
  60257. +xstrdup (const char *string)
  60258. +{
  60259. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  60260. + string) : NULL;
  60261. +}
  60262. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  60263. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  60264. - fi
  60265. - # Expand the library linking commands again to reset the
  60266. - # value of $libobjs for piecewise linking.
  60267. +const char *
  60268. +base_name (const char *name)
  60269. +{
  60270. + const char *base;
  60271. - # Do each of the archive commands.
  60272. - if test "$module" = yes && test -n "$module_cmds" ; then
  60273. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  60274. - cmds=$module_expsym_cmds
  60275. - else
  60276. - cmds=$module_cmds
  60277. - fi
  60278. - else
  60279. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  60280. - cmds=$archive_expsym_cmds
  60281. - else
  60282. - cmds=$archive_cmds
  60283. - fi
  60284. - fi
  60285. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  60286. + /* Skip over the disk name in MSDOS pathnames. */
  60287. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  60288. + name += 2;
  60289. +#endif
  60290. - # Append the command to remove the reloadable object files
  60291. - # to the just-reset $cmds.
  60292. - eval cmds=\"\$cmds~\$rm $delfiles\"
  60293. - fi
  60294. - save_ifs="$IFS"; IFS='~'
  60295. - for cmd in $cmds; do
  60296. - IFS="$save_ifs"
  60297. - eval cmd=\"$cmd\"
  60298. - $show "$cmd"
  60299. - $run eval "$cmd" || {
  60300. - lt_exit=$?
  60301. + for (base = name; *name; name++)
  60302. + if (IS_DIR_SEPARATOR (*name))
  60303. + base = name + 1;
  60304. + return base;
  60305. +}
  60306. - # Restore the uninstalled library and exit
  60307. - if test "$mode" = relink; then
  60308. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  60309. - fi
  60310. +int
  60311. +check_executable (const char *path)
  60312. +{
  60313. + struct stat st;
  60314. - exit $lt_exit
  60315. - }
  60316. - done
  60317. - IFS="$save_ifs"
  60318. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  60319. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  60320. + if ((!path) || (!*path))
  60321. + return 0;
  60322. - # Restore the uninstalled library and exit
  60323. - if test "$mode" = relink; then
  60324. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  60325. + if ((stat (path, &st) >= 0)
  60326. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  60327. + return 1;
  60328. + else
  60329. + return 0;
  60330. +}
  60331. - if test -n "$convenience"; then
  60332. - if test -z "$whole_archive_flag_spec"; then
  60333. - $show "${rm}r $gentop"
  60334. - $run ${rm}r "$gentop"
  60335. - fi
  60336. - fi
  60337. +int
  60338. +make_executable (const char *path)
  60339. +{
  60340. + int rval = 0;
  60341. + struct stat st;
  60342. - exit $EXIT_SUCCESS
  60343. - fi
  60344. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  60345. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  60346. + if ((!path) || (!*path))
  60347. + return 0;
  60348. - # Create links to the real library.
  60349. - for linkname in $linknames; do
  60350. - if test "$realname" != "$linkname"; then
  60351. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  60352. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  60353. - fi
  60354. - done
  60355. + if (stat (path, &st) >= 0)
  60356. + {
  60357. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  60358. + }
  60359. + return rval;
  60360. +}
  60361. - # If -module or -export-dynamic was specified, set the dlname.
  60362. - if test "$module" = yes || test "$export_dynamic" = yes; then
  60363. - # On all known operating systems, these are identical.
  60364. - dlname="$soname"
  60365. - fi
  60366. - fi
  60367. - ;;
  60368. +/* Searches for the full path of the wrapper. Returns
  60369. + newly allocated full path name if found, NULL otherwise
  60370. + Does not chase symlinks, even on platforms that support them.
  60371. +*/
  60372. +char *
  60373. +find_executable (const char *wrapper)
  60374. +{
  60375. + int has_slash = 0;
  60376. + const char *p;
  60377. + const char *p_next;
  60378. + /* static buffer for getcwd */
  60379. + char tmp[LT_PATHMAX + 1];
  60380. + int tmp_len;
  60381. + char *concat_name;
  60382. - obj)
  60383. - if test -n "$deplibs"; then
  60384. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  60385. - fi
  60386. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  60387. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  60388. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  60389. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  60390. - fi
  60391. + if ((wrapper == NULL) || (*wrapper == '\0'))
  60392. + return NULL;
  60393. - if test -n "$rpath"; then
  60394. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  60395. - fi
  60396. + /* Absolute path? */
  60397. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  60398. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  60399. + {
  60400. + concat_name = xstrdup (wrapper);
  60401. + if (check_executable (concat_name))
  60402. + return concat_name;
  60403. + XFREE (concat_name);
  60404. + }
  60405. + else
  60406. + {
  60407. +#endif
  60408. + if (IS_DIR_SEPARATOR (wrapper[0]))
  60409. + {
  60410. + concat_name = xstrdup (wrapper);
  60411. + if (check_executable (concat_name))
  60412. + return concat_name;
  60413. + XFREE (concat_name);
  60414. + }
  60415. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  60416. + }
  60417. +#endif
  60418. - if test -n "$xrpath"; then
  60419. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  60420. - fi
  60421. + for (p = wrapper; *p; p++)
  60422. + if (*p == '/')
  60423. + {
  60424. + has_slash = 1;
  60425. + break;
  60426. + }
  60427. + if (!has_slash)
  60428. + {
  60429. + /* no slashes; search PATH */
  60430. + const char *path = getenv ("PATH");
  60431. + if (path != NULL)
  60432. + {
  60433. + for (p = path; *p; p = p_next)
  60434. + {
  60435. + const char *q;
  60436. + size_t p_len;
  60437. + for (q = p; *q; q++)
  60438. + if (IS_PATH_SEPARATOR (*q))
  60439. + break;
  60440. + p_len = q - p;
  60441. + p_next = (*q == '\0' ? q : q + 1);
  60442. + if (p_len == 0)
  60443. + {
  60444. + /* empty path: current directory */
  60445. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  60446. + lt_fatal ("getcwd failed");
  60447. + tmp_len = strlen (tmp);
  60448. + concat_name =
  60449. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  60450. + memcpy (concat_name, tmp, tmp_len);
  60451. + concat_name[tmp_len] = '/';
  60452. + strcpy (concat_name + tmp_len + 1, wrapper);
  60453. + }
  60454. + else
  60455. + {
  60456. + concat_name =
  60457. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  60458. + memcpy (concat_name, p, p_len);
  60459. + concat_name[p_len] = '/';
  60460. + strcpy (concat_name + p_len + 1, wrapper);
  60461. + }
  60462. + if (check_executable (concat_name))
  60463. + return concat_name;
  60464. + XFREE (concat_name);
  60465. + }
  60466. + }
  60467. + /* not found in PATH; assume curdir */
  60468. + }
  60469. + /* Relative path | not found in path: prepend cwd */
  60470. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  60471. + lt_fatal ("getcwd failed");
  60472. + tmp_len = strlen (tmp);
  60473. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  60474. + memcpy (concat_name, tmp, tmp_len);
  60475. + concat_name[tmp_len] = '/';
  60476. + strcpy (concat_name + tmp_len + 1, wrapper);
  60477. - if test -n "$vinfo"; then
  60478. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  60479. - fi
  60480. + if (check_executable (concat_name))
  60481. + return concat_name;
  60482. + XFREE (concat_name);
  60483. + return NULL;
  60484. +}
  60485. - if test -n "$release"; then
  60486. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  60487. - fi
  60488. +char *
  60489. +chase_symlinks (const char *pathspec)
  60490. +{
  60491. +#ifndef S_ISLNK
  60492. + return xstrdup (pathspec);
  60493. +#else
  60494. + char buf[LT_PATHMAX];
  60495. + struct stat s;
  60496. + char *tmp_pathspec = xstrdup (pathspec);
  60497. + char *p;
  60498. + int has_symlinks = 0;
  60499. + while (strlen (tmp_pathspec) && !has_symlinks)
  60500. + {
  60501. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  60502. + tmp_pathspec));
  60503. + if (lstat (tmp_pathspec, &s) == 0)
  60504. + {
  60505. + if (S_ISLNK (s.st_mode) != 0)
  60506. + {
  60507. + has_symlinks = 1;
  60508. + break;
  60509. + }
  60510. - case $output in
  60511. - *.lo)
  60512. - if test -n "$objs$old_deplibs"; then
  60513. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  60514. - exit $EXIT_FAILURE
  60515. - fi
  60516. - libobj="$output"
  60517. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  60518. - ;;
  60519. - *)
  60520. - libobj=
  60521. - obj="$output"
  60522. - ;;
  60523. - esac
  60524. + /* search backwards for last DIR_SEPARATOR */
  60525. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  60526. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  60527. + p--;
  60528. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  60529. + {
  60530. + /* no more DIR_SEPARATORS left */
  60531. + break;
  60532. + }
  60533. + *p = '\0';
  60534. + }
  60535. + else
  60536. + {
  60537. + char *errstr = strerror (errno);
  60538. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  60539. + }
  60540. + }
  60541. + XFREE (tmp_pathspec);
  60542. - # Delete the old objects.
  60543. - $run $rm $obj $libobj
  60544. + if (!has_symlinks)
  60545. + {
  60546. + return xstrdup (pathspec);
  60547. + }
  60548. - # Objects from convenience libraries. This assumes
  60549. - # single-version convenience libraries. Whenever we create
  60550. - # different ones for PIC/non-PIC, this we'll have to duplicate
  60551. - # the extraction.
  60552. - reload_conv_objs=
  60553. - gentop=
  60554. - # reload_cmds runs $LD directly, so let us get rid of
  60555. - # -Wl from whole_archive_flag_spec
  60556. - wl=
  60557. + tmp_pathspec = realpath (pathspec, buf);
  60558. + if (tmp_pathspec == 0)
  60559. + {
  60560. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  60561. + }
  60562. + return xstrdup (tmp_pathspec);
  60563. +#endif
  60564. +}
  60565. - if test -n "$convenience"; then
  60566. - if test -n "$whole_archive_flag_spec"; then
  60567. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  60568. - else
  60569. - gentop="$output_objdir/${obj}x"
  60570. - generated="$generated $gentop"
  60571. +char *
  60572. +strendzap (char *str, const char *pat)
  60573. +{
  60574. + size_t len, patlen;
  60575. - func_extract_archives $gentop $convenience
  60576. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  60577. - fi
  60578. - fi
  60579. + assert (str != NULL);
  60580. + assert (pat != NULL);
  60581. - # Create the old-style object.
  60582. - 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
  60583. + len = strlen (str);
  60584. + patlen = strlen (pat);
  60585. - output="$obj"
  60586. - cmds=$reload_cmds
  60587. - save_ifs="$IFS"; IFS='~'
  60588. - for cmd in $cmds; do
  60589. - IFS="$save_ifs"
  60590. - eval cmd=\"$cmd\"
  60591. - $show "$cmd"
  60592. - $run eval "$cmd" || exit $?
  60593. - done
  60594. - IFS="$save_ifs"
  60595. + if (patlen <= len)
  60596. + {
  60597. + str += len - patlen;
  60598. + if (strcmp (str, pat) == 0)
  60599. + *str = '\0';
  60600. + }
  60601. + return str;
  60602. +}
  60603. - # Exit if we aren't doing a library object file.
  60604. - if test -z "$libobj"; then
  60605. - if test -n "$gentop"; then
  60606. - $show "${rm}r $gentop"
  60607. - $run ${rm}r $gentop
  60608. - fi
  60609. +static void
  60610. +lt_error_core (int exit_status, const char *mode,
  60611. + const char *message, va_list ap)
  60612. +{
  60613. + fprintf (stderr, "%s: %s: ", program_name, mode);
  60614. + vfprintf (stderr, message, ap);
  60615. + fprintf (stderr, ".\n");
  60616. - exit $EXIT_SUCCESS
  60617. - fi
  60618. + if (exit_status >= 0)
  60619. + exit (exit_status);
  60620. +}
  60621. - if test "$build_libtool_libs" != yes; then
  60622. - if test -n "$gentop"; then
  60623. - $show "${rm}r $gentop"
  60624. - $run ${rm}r $gentop
  60625. - fi
  60626. +void
  60627. +lt_fatal (const char *message, ...)
  60628. +{
  60629. + va_list ap;
  60630. + va_start (ap, message);
  60631. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  60632. + va_end (ap);
  60633. +}
  60634. - # Create an invalid libtool object if no PIC, so that we don't
  60635. - # accidentally link it into a program.
  60636. - # $show "echo timestamp > $libobj"
  60637. - # $run eval "echo timestamp > $libobj" || exit $?
  60638. - exit $EXIT_SUCCESS
  60639. - fi
  60640. +void
  60641. +lt_setenv (const char *name, const char *value)
  60642. +{
  60643. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  60644. + (name ? name : "<NULL>"),
  60645. + (value ? value : "<NULL>")));
  60646. + {
  60647. +#ifdef HAVE_SETENV
  60648. + /* always make a copy, for consistency with !HAVE_SETENV */
  60649. + char *str = xstrdup (value);
  60650. + setenv (name, str, 1);
  60651. +#else
  60652. + int len = strlen (name) + 1 + strlen (value) + 1;
  60653. + char *str = XMALLOC (char, len);
  60654. + sprintf (str, "%s=%s", name, value);
  60655. + if (putenv (str) != EXIT_SUCCESS)
  60656. + {
  60657. + XFREE (str);
  60658. + }
  60659. +#endif
  60660. + }
  60661. +}
  60662. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  60663. - # Only do commands if we really have different PIC objects.
  60664. - reload_objs="$libobjs $reload_conv_objs"
  60665. - output="$libobj"
  60666. - cmds=$reload_cmds
  60667. - save_ifs="$IFS"; IFS='~'
  60668. - for cmd in $cmds; do
  60669. - IFS="$save_ifs"
  60670. - eval cmd=\"$cmd\"
  60671. - $show "$cmd"
  60672. - $run eval "$cmd" || exit $?
  60673. - done
  60674. - IFS="$save_ifs"
  60675. - fi
  60676. +char *
  60677. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  60678. +{
  60679. + char *new_value;
  60680. + if (orig_value && *orig_value)
  60681. + {
  60682. + int orig_value_len = strlen (orig_value);
  60683. + int add_len = strlen (add);
  60684. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  60685. + if (to_end)
  60686. + {
  60687. + strcpy (new_value, orig_value);
  60688. + strcpy (new_value + orig_value_len, add);
  60689. + }
  60690. + else
  60691. + {
  60692. + strcpy (new_value, add);
  60693. + strcpy (new_value + add_len, orig_value);
  60694. + }
  60695. + }
  60696. + else
  60697. + {
  60698. + new_value = xstrdup (add);
  60699. + }
  60700. + return new_value;
  60701. +}
  60702. - if test -n "$gentop"; then
  60703. - $show "${rm}r $gentop"
  60704. - $run ${rm}r $gentop
  60705. - fi
  60706. +int
  60707. +lt_split_name_value (const char *arg, char** name, char** value)
  60708. +{
  60709. + const char *p;
  60710. + int len;
  60711. + if (!arg || !*arg)
  60712. + return 1;
  60713. - exit $EXIT_SUCCESS
  60714. - ;;
  60715. + p = strchr (arg, (int)'=');
  60716. - prog)
  60717. - case $host in
  60718. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  60719. - esac
  60720. - if test -n "$vinfo"; then
  60721. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  60722. - fi
  60723. + if (!p)
  60724. + return 1;
  60725. - if test -n "$release"; then
  60726. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  60727. - fi
  60728. + *value = xstrdup (++p);
  60729. - if test "$preload" = yes; then
  60730. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  60731. - test "$dlopen_self_static" = unknown; then
  60732. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  60733. - fi
  60734. - fi
  60735. + len = strlen (arg) - strlen (*value);
  60736. + *name = XMALLOC (char, len);
  60737. + strncpy (*name, arg, len-1);
  60738. + (*name)[len - 1] = '\0';
  60739. - case $host in
  60740. - *-*-rhapsody* | *-*-darwin1.[012])
  60741. - # On Rhapsody replace the C library is the System framework
  60742. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  60743. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  60744. - ;;
  60745. - esac
  60746. + return 0;
  60747. +}
  60748. - case $host in
  60749. - *darwin*)
  60750. - # Don't allow lazy linking, it breaks C++ global constructors
  60751. - if test "$tagname" = CXX ; then
  60752. - compile_command="$compile_command ${wl}-bind_at_load"
  60753. - finalize_command="$finalize_command ${wl}-bind_at_load"
  60754. - fi
  60755. - ;;
  60756. - esac
  60757. +void
  60758. +lt_opt_process_env_set (const char *arg)
  60759. +{
  60760. + char *name = NULL;
  60761. + char *value = NULL;
  60762. + if (lt_split_name_value (arg, &name, &value) != 0)
  60763. + {
  60764. + XFREE (name);
  60765. + XFREE (value);
  60766. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  60767. + }
  60768. - # move library search paths that coincide with paths to not yet
  60769. - # installed libraries to the beginning of the library search list
  60770. - new_libs=
  60771. - for path in $notinst_path; do
  60772. - case " $new_libs " in
  60773. - *" -L$path/$objdir "*) ;;
  60774. - *)
  60775. - case " $compile_deplibs " in
  60776. - *" -L$path/$objdir "*)
  60777. - new_libs="$new_libs -L$path/$objdir" ;;
  60778. - esac
  60779. - ;;
  60780. - esac
  60781. - done
  60782. - for deplib in $compile_deplibs; do
  60783. - case $deplib in
  60784. - -L*)
  60785. - case " $new_libs " in
  60786. - *" $deplib "*) ;;
  60787. - *) new_libs="$new_libs $deplib" ;;
  60788. - esac
  60789. - ;;
  60790. - *) new_libs="$new_libs $deplib" ;;
  60791. - esac
  60792. - done
  60793. - compile_deplibs="$new_libs"
  60794. -
  60795. + lt_setenv (name, value);
  60796. + XFREE (name);
  60797. + XFREE (value);
  60798. +}
  60799. - compile_command="$compile_command $compile_deplibs"
  60800. - finalize_command="$finalize_command $finalize_deplibs"
  60801. +void
  60802. +lt_opt_process_env_prepend (const char *arg)
  60803. +{
  60804. + char *name = NULL;
  60805. + char *value = NULL;
  60806. + char *new_value = NULL;
  60807. - if test -n "$rpath$xrpath"; then
  60808. - # If the user specified any rpath flags, then add them.
  60809. - for libdir in $rpath $xrpath; do
  60810. - # This is the magic to use -rpath.
  60811. - case "$finalize_rpath " in
  60812. - *" $libdir "*) ;;
  60813. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  60814. - esac
  60815. - done
  60816. - fi
  60817. + if (lt_split_name_value (arg, &name, &value) != 0)
  60818. + {
  60819. + XFREE (name);
  60820. + XFREE (value);
  60821. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  60822. + }
  60823. - # Now hardcode the library paths
  60824. - rpath=
  60825. - hardcode_libdirs=
  60826. - for libdir in $compile_rpath $finalize_rpath; do
  60827. - if test -n "$hardcode_libdir_flag_spec"; then
  60828. - if test -n "$hardcode_libdir_separator"; then
  60829. - if test -z "$hardcode_libdirs"; then
  60830. - hardcode_libdirs="$libdir"
  60831. - else
  60832. - # Just accumulate the unique libdirs.
  60833. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60834. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60835. - ;;
  60836. - *)
  60837. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60838. - ;;
  60839. - esac
  60840. - fi
  60841. - else
  60842. - eval flag=\"$hardcode_libdir_flag_spec\"
  60843. - rpath="$rpath $flag"
  60844. - fi
  60845. - elif test -n "$runpath_var"; then
  60846. - case "$perm_rpath " in
  60847. - *" $libdir "*) ;;
  60848. - *) perm_rpath="$perm_rpath $libdir" ;;
  60849. - esac
  60850. - fi
  60851. - case $host in
  60852. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  60853. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  60854. - case :$dllsearchpath: in
  60855. - *":$libdir:"*) ;;
  60856. - *) dllsearchpath="$dllsearchpath:$libdir";;
  60857. - esac
  60858. - case :$dllsearchpath: in
  60859. - *":$testbindir:"*) ;;
  60860. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  60861. - esac
  60862. - ;;
  60863. - esac
  60864. - done
  60865. - # Substitute the hardcoded libdirs into the rpath.
  60866. - if test -n "$hardcode_libdir_separator" &&
  60867. - test -n "$hardcode_libdirs"; then
  60868. - libdir="$hardcode_libdirs"
  60869. - eval rpath=\" $hardcode_libdir_flag_spec\"
  60870. - fi
  60871. - compile_rpath="$rpath"
  60872. + new_value = lt_extend_str (getenv (name), value, 0);
  60873. + lt_setenv (name, new_value);
  60874. + XFREE (new_value);
  60875. + XFREE (name);
  60876. + XFREE (value);
  60877. +}
  60878. - rpath=
  60879. - hardcode_libdirs=
  60880. - for libdir in $finalize_rpath; do
  60881. - if test -n "$hardcode_libdir_flag_spec"; then
  60882. - if test -n "$hardcode_libdir_separator"; then
  60883. - if test -z "$hardcode_libdirs"; then
  60884. - hardcode_libdirs="$libdir"
  60885. - else
  60886. - # Just accumulate the unique libdirs.
  60887. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60888. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60889. - ;;
  60890. - *)
  60891. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60892. - ;;
  60893. - esac
  60894. - fi
  60895. - else
  60896. - eval flag=\"$hardcode_libdir_flag_spec\"
  60897. - rpath="$rpath $flag"
  60898. - fi
  60899. - elif test -n "$runpath_var"; then
  60900. - case "$finalize_perm_rpath " in
  60901. - *" $libdir "*) ;;
  60902. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  60903. - esac
  60904. - fi
  60905. - done
  60906. - # Substitute the hardcoded libdirs into the rpath.
  60907. - if test -n "$hardcode_libdir_separator" &&
  60908. - test -n "$hardcode_libdirs"; then
  60909. - libdir="$hardcode_libdirs"
  60910. - eval rpath=\" $hardcode_libdir_flag_spec\"
  60911. - fi
  60912. - finalize_rpath="$rpath"
  60913. +void
  60914. +lt_opt_process_env_append (const char *arg)
  60915. +{
  60916. + char *name = NULL;
  60917. + char *value = NULL;
  60918. + char *new_value = NULL;
  60919. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  60920. - # Transform all the library objects into standard objects.
  60921. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60922. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60923. - fi
  60924. + if (lt_split_name_value (arg, &name, &value) != 0)
  60925. + {
  60926. + XFREE (name);
  60927. + XFREE (value);
  60928. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  60929. + }
  60930. - dlsyms=
  60931. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  60932. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  60933. - dlsyms="${outputname}S.c"
  60934. - else
  60935. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  60936. - fi
  60937. - fi
  60938. + new_value = lt_extend_str (getenv (name), value, 1);
  60939. + lt_setenv (name, new_value);
  60940. + XFREE (new_value);
  60941. + XFREE (name);
  60942. + XFREE (value);
  60943. +}
  60944. - if test -n "$dlsyms"; then
  60945. - case $dlsyms in
  60946. - "") ;;
  60947. - *.c)
  60948. - # Discover the nlist of each of the dlfiles.
  60949. - nlist="$output_objdir/${outputname}.nm"
  60950. +void
  60951. +lt_update_exe_path (const char *name, const char *value)
  60952. +{
  60953. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  60954. + (name ? name : "<NULL>"),
  60955. + (value ? value : "<NULL>")));
  60956. - $show "$rm $nlist ${nlist}S ${nlist}T"
  60957. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  60958. + if (name && *name && value && *value)
  60959. + {
  60960. + char *new_value = lt_extend_str (getenv (name), value, 0);
  60961. + /* some systems can't cope with a ':'-terminated path #' */
  60962. + int len = strlen (new_value);
  60963. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  60964. + {
  60965. + new_value[len-1] = '\0';
  60966. + }
  60967. + lt_setenv (name, new_value);
  60968. + XFREE (new_value);
  60969. + }
  60970. +}
  60971. - # Parse the name list into a source file.
  60972. - $show "creating $output_objdir/$dlsyms"
  60973. +void
  60974. +lt_update_lib_path (const char *name, const char *value)
  60975. +{
  60976. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  60977. + (name ? name : "<NULL>"),
  60978. + (value ? value : "<NULL>")));
  60979. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  60980. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  60981. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  60982. + if (name && *name && value && *value)
  60983. + {
  60984. + char *new_value = lt_extend_str (getenv (name), value, 0);
  60985. + lt_setenv (name, new_value);
  60986. + XFREE (new_value);
  60987. + }
  60988. +}
  60989. -#ifdef __cplusplus
  60990. -extern \"C\" {
  60991. -#endif
  60992. -/* Prevent the only kind of declaration conflicts we can make. */
  60993. -#define lt_preloaded_symbols some_other_symbol
  60994. +EOF
  60995. +}
  60996. +# end: func_emit_cwrapperexe_src
  60997. -/* External symbol declarations for the compiler. */\
  60998. -"
  60999. +# func_mode_link arg...
  61000. +func_mode_link ()
  61001. +{
  61002. + $opt_debug
  61003. + case $host in
  61004. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  61005. + # It is impossible to link a dll without this setting, and
  61006. + # we shouldn't force the makefile maintainer to figure out
  61007. + # which system we are compiling for in order to pass an extra
  61008. + # flag for every libtool invocation.
  61009. + # allow_undefined=no
  61010. - if test "$dlself" = yes; then
  61011. - $show "generating symbol list for \`$output'"
  61012. + # FIXME: Unfortunately, there are problems with the above when trying
  61013. + # to make a dll which has undefined symbols, in which case not
  61014. + # even a static library is built. For now, we need to specify
  61015. + # -no-undefined on the libtool link line when we can be certain
  61016. + # that all symbols are satisfied, otherwise we get a static library.
  61017. + allow_undefined=yes
  61018. + ;;
  61019. + *)
  61020. + allow_undefined=yes
  61021. + ;;
  61022. + esac
  61023. + libtool_args=$nonopt
  61024. + base_compile="$nonopt $@"
  61025. + compile_command=$nonopt
  61026. + finalize_command=$nonopt
  61027. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  61028. + compile_rpath=
  61029. + finalize_rpath=
  61030. + compile_shlibpath=
  61031. + finalize_shlibpath=
  61032. + convenience=
  61033. + old_convenience=
  61034. + deplibs=
  61035. + old_deplibs=
  61036. + compiler_flags=
  61037. + linker_flags=
  61038. + dllsearchpath=
  61039. + lib_search_path=`pwd`
  61040. + inst_prefix_dir=
  61041. + new_inherited_linker_flags=
  61042. - # Add our own program objects to the symbol list.
  61043. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  61044. - for arg in $progfiles; do
  61045. - $show "extracting global C symbols from \`$arg'"
  61046. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  61047. - done
  61048. + avoid_version=no
  61049. + dlfiles=
  61050. + dlprefiles=
  61051. + dlself=no
  61052. + export_dynamic=no
  61053. + export_symbols=
  61054. + export_symbols_regex=
  61055. + generated=
  61056. + libobjs=
  61057. + ltlibs=
  61058. + module=no
  61059. + no_install=no
  61060. + objs=
  61061. + non_pic_objects=
  61062. + precious_files_regex=
  61063. + prefer_static_libs=no
  61064. + preload=no
  61065. + prev=
  61066. + prevarg=
  61067. + release=
  61068. + rpath=
  61069. + xrpath=
  61070. + perm_rpath=
  61071. + temp_rpath=
  61072. + thread_safe=no
  61073. + vinfo=
  61074. + vinfo_number=no
  61075. + weak_libs=
  61076. + single_module="${wl}-single_module"
  61077. + func_infer_tag $base_compile
  61078. - if test -n "$exclude_expsyms"; then
  61079. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  61080. - $run eval '$mv "$nlist"T "$nlist"'
  61081. - fi
  61082. -
  61083. - if test -n "$export_symbols_regex"; then
  61084. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  61085. - $run eval '$mv "$nlist"T "$nlist"'
  61086. - fi
  61087. -
  61088. - # Prepare the list of exported symbols
  61089. - if test -z "$export_symbols"; then
  61090. - export_symbols="$output_objdir/$outputname.exp"
  61091. - $run $rm $export_symbols
  61092. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  61093. - case $host in
  61094. - *cygwin* | *mingw* )
  61095. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  61096. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  61097. - ;;
  61098. - esac
  61099. - else
  61100. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  61101. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  61102. - $run eval 'mv "$nlist"T "$nlist"'
  61103. - case $host in
  61104. - *cygwin* | *mingw* )
  61105. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  61106. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  61107. - ;;
  61108. - esac
  61109. - fi
  61110. + # We need to know -static, to get the right output filenames.
  61111. + for arg
  61112. + do
  61113. + case $arg in
  61114. + -shared)
  61115. + test "$build_libtool_libs" != yes && \
  61116. + func_fatal_configuration "can not build a shared library"
  61117. + build_old_libs=no
  61118. + break
  61119. + ;;
  61120. + -all-static | -static | -static-libtool-libs)
  61121. + case $arg in
  61122. + -all-static)
  61123. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  61124. + func_warning "complete static linking is impossible in this configuration"
  61125. fi
  61126. + if test -n "$link_static_flag"; then
  61127. + dlopen_self=$dlopen_self_static
  61128. + fi
  61129. + prefer_static_libs=yes
  61130. + ;;
  61131. + -static)
  61132. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  61133. + dlopen_self=$dlopen_self_static
  61134. + fi
  61135. + prefer_static_libs=built
  61136. + ;;
  61137. + -static-libtool-libs)
  61138. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  61139. + dlopen_self=$dlopen_self_static
  61140. + fi
  61141. + prefer_static_libs=yes
  61142. + ;;
  61143. + esac
  61144. + build_libtool_libs=no
  61145. + build_old_libs=yes
  61146. + break
  61147. + ;;
  61148. + esac
  61149. + done
  61150. - for arg in $dlprefiles; do
  61151. - $show "extracting global C symbols from \`$arg'"
  61152. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  61153. - $run eval '$echo ": $name " >> "$nlist"'
  61154. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  61155. - done
  61156. -
  61157. - if test -z "$run"; then
  61158. - # Make sure we have at least an empty file.
  61159. - test -f "$nlist" || : > "$nlist"
  61160. -
  61161. - if test -n "$exclude_expsyms"; then
  61162. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  61163. - $mv "$nlist"T "$nlist"
  61164. - fi
  61165. + # See if our shared archives depend on static archives.
  61166. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  61167. - # Try sorting and uniquifying the output.
  61168. - if grep -v "^: " < "$nlist" |
  61169. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  61170. - sort -k 3
  61171. - else
  61172. - sort +2
  61173. - fi |
  61174. - uniq > "$nlist"S; then
  61175. - :
  61176. + # Go through the arguments, transforming them on the way.
  61177. + while test "$#" -gt 0; do
  61178. + arg="$1"
  61179. + shift
  61180. + func_quote_for_eval "$arg"
  61181. + qarg=$func_quote_for_eval_unquoted_result
  61182. + func_append libtool_args " $func_quote_for_eval_result"
  61183. +
  61184. + # If the previous option needs an argument, assign it.
  61185. + if test -n "$prev"; then
  61186. + case $prev in
  61187. + output)
  61188. + func_append compile_command " @OUTPUT@"
  61189. + func_append finalize_command " @OUTPUT@"
  61190. + ;;
  61191. + esac
  61192. +
  61193. + case $prev in
  61194. + dlfiles|dlprefiles)
  61195. + if test "$preload" = no; then
  61196. + # Add the symbol object into the linking commands.
  61197. + func_append compile_command " @SYMFILE@"
  61198. + func_append finalize_command " @SYMFILE@"
  61199. + preload=yes
  61200. + fi
  61201. + case $arg in
  61202. + *.la | *.lo) ;; # We handle these cases below.
  61203. + force)
  61204. + if test "$dlself" = no; then
  61205. + dlself=needless
  61206. + export_dynamic=yes
  61207. + fi
  61208. + prev=
  61209. + continue
  61210. + ;;
  61211. + self)
  61212. + if test "$prev" = dlprefiles; then
  61213. + dlself=yes
  61214. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  61215. + dlself=yes
  61216. else
  61217. - grep -v "^: " < "$nlist" > "$nlist"S
  61218. + dlself=needless
  61219. + export_dynamic=yes
  61220. fi
  61221. -
  61222. - if test -f "$nlist"S; then
  61223. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  61224. + prev=
  61225. + continue
  61226. + ;;
  61227. + *)
  61228. + if test "$prev" = dlfiles; then
  61229. + dlfiles="$dlfiles $arg"
  61230. else
  61231. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  61232. + dlprefiles="$dlprefiles $arg"
  61233. fi
  61234. + prev=
  61235. + continue
  61236. + ;;
  61237. + esac
  61238. + ;;
  61239. + expsyms)
  61240. + export_symbols="$arg"
  61241. + test -f "$arg" \
  61242. + || func_fatal_error "symbol file \`$arg' does not exist"
  61243. + prev=
  61244. + continue
  61245. + ;;
  61246. + expsyms_regex)
  61247. + export_symbols_regex="$arg"
  61248. + prev=
  61249. + continue
  61250. + ;;
  61251. + framework)
  61252. + case $host in
  61253. + *-*-darwin*)
  61254. + case "$deplibs " in
  61255. + *" $qarg.ltframework "*) ;;
  61256. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  61257. + ;;
  61258. + esac
  61259. + ;;
  61260. + esac
  61261. + prev=
  61262. + continue
  61263. + ;;
  61264. + inst_prefix)
  61265. + inst_prefix_dir="$arg"
  61266. + prev=
  61267. + continue
  61268. + ;;
  61269. + objectlist)
  61270. + if test -f "$arg"; then
  61271. + save_arg=$arg
  61272. + moreargs=
  61273. + for fil in `cat "$save_arg"`
  61274. + do
  61275. +# moreargs="$moreargs $fil"
  61276. + arg=$fil
  61277. + # A libtool-controlled object.
  61278. - $echo >> "$output_objdir/$dlsyms" "\
  61279. + # Check to see that this really is a libtool object.
  61280. + if func_lalib_unsafe_p "$arg"; then
  61281. + pic_object=
  61282. + non_pic_object=
  61283. -#undef lt_preloaded_symbols
  61284. + # Read the .lo file
  61285. + func_source "$arg"
  61286. -#if defined (__STDC__) && __STDC__
  61287. -# define lt_ptr void *
  61288. -#else
  61289. -# define lt_ptr char *
  61290. -# define const
  61291. -#endif
  61292. + if test -z "$pic_object" ||
  61293. + test -z "$non_pic_object" ||
  61294. + test "$pic_object" = none &&
  61295. + test "$non_pic_object" = none; then
  61296. + func_fatal_error "cannot find name of object for \`$arg'"
  61297. + fi
  61298. -/* The mapping between symbol names and symbols. */
  61299. -"
  61300. + # Extract subdirectory from the argument.
  61301. + func_dirname "$arg" "/" ""
  61302. + xdir="$func_dirname_result"
  61303. - case $host in
  61304. - *cygwin* | *mingw* )
  61305. - $echo >> "$output_objdir/$dlsyms" "\
  61306. -/* DATA imports from DLLs on WIN32 can't be const, because
  61307. - runtime relocations are performed -- see ld's documentation
  61308. - on pseudo-relocs */
  61309. -struct {
  61310. -"
  61311. - ;;
  61312. - * )
  61313. - $echo >> "$output_objdir/$dlsyms" "\
  61314. -const struct {
  61315. -"
  61316. - ;;
  61317. - esac
  61318. + if test "$pic_object" != none; then
  61319. + # Prepend the subdirectory the object is found in.
  61320. + pic_object="$xdir$pic_object"
  61321. + if test "$prev" = dlfiles; then
  61322. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  61323. + dlfiles="$dlfiles $pic_object"
  61324. + prev=
  61325. + continue
  61326. + else
  61327. + # If libtool objects are unsupported, then we need to preload.
  61328. + prev=dlprefiles
  61329. + fi
  61330. + fi
  61331. - $echo >> "$output_objdir/$dlsyms" "\
  61332. - const char *name;
  61333. - lt_ptr address;
  61334. -}
  61335. -lt_preloaded_symbols[] =
  61336. -{\
  61337. -"
  61338. + # CHECK ME: I think I busted this. -Ossama
  61339. + if test "$prev" = dlprefiles; then
  61340. + # Preload the old-style object.
  61341. + dlprefiles="$dlprefiles $pic_object"
  61342. + prev=
  61343. + fi
  61344. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  61345. + # A PIC object.
  61346. + func_append libobjs " $pic_object"
  61347. + arg="$pic_object"
  61348. + fi
  61349. - $echo >> "$output_objdir/$dlsyms" "\
  61350. - {0, (lt_ptr) 0}
  61351. -};
  61352. + # Non-PIC object.
  61353. + if test "$non_pic_object" != none; then
  61354. + # Prepend the subdirectory the object is found in.
  61355. + non_pic_object="$xdir$non_pic_object"
  61356. -/* This works around a problem in FreeBSD linker */
  61357. -#ifdef FREEBSD_WORKAROUND
  61358. -static const void *lt_preloaded_setup() {
  61359. - return lt_preloaded_symbols;
  61360. -}
  61361. -#endif
  61362. + # A standard non-PIC object
  61363. + func_append non_pic_objects " $non_pic_object"
  61364. + if test -z "$pic_object" || test "$pic_object" = none ; then
  61365. + arg="$non_pic_object"
  61366. + fi
  61367. + else
  61368. + # If the PIC object exists, use it instead.
  61369. + # $xdir was prepended to $pic_object above.
  61370. + non_pic_object="$pic_object"
  61371. + func_append non_pic_objects " $non_pic_object"
  61372. + fi
  61373. + else
  61374. + # Only an error if not doing a dry-run.
  61375. + if $opt_dry_run; then
  61376. + # Extract subdirectory from the argument.
  61377. + func_dirname "$arg" "/" ""
  61378. + xdir="$func_dirname_result"
  61379. -#ifdef __cplusplus
  61380. -}
  61381. -#endif\
  61382. -"
  61383. + func_lo2o "$arg"
  61384. + pic_object=$xdir$objdir/$func_lo2o_result
  61385. + non_pic_object=$xdir$func_lo2o_result
  61386. + func_append libobjs " $pic_object"
  61387. + func_append non_pic_objects " $non_pic_object"
  61388. + else
  61389. + func_fatal_error "\`$arg' is not a valid libtool object"
  61390. + fi
  61391. + fi
  61392. + done
  61393. + else
  61394. + func_fatal_error "link input file \`$arg' does not exist"
  61395. fi
  61396. -
  61397. - pic_flag_for_symtable=
  61398. - case $host in
  61399. - # compiling the symbol table file with pic_flag works around
  61400. - # a FreeBSD bug that causes programs to crash when -lm is
  61401. - # linked before any other PIC object. But we must not use
  61402. - # pic_flag when linking with -static. The problem exists in
  61403. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  61404. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  61405. - case "$compile_command " in
  61406. - *" -static "*) ;;
  61407. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  61408. - esac;;
  61409. - *-*-hpux*)
  61410. - case "$compile_command " in
  61411. - *" -static "*) ;;
  61412. - *) pic_flag_for_symtable=" $pic_flag";;
  61413. - esac
  61414. + arg=$save_arg
  61415. + prev=
  61416. + continue
  61417. + ;;
  61418. + precious_regex)
  61419. + precious_files_regex="$arg"
  61420. + prev=
  61421. + continue
  61422. + ;;
  61423. + release)
  61424. + release="-$arg"
  61425. + prev=
  61426. + continue
  61427. + ;;
  61428. + rpath | xrpath)
  61429. + # We need an absolute path.
  61430. + case $arg in
  61431. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  61432. + *)
  61433. + func_fatal_error "only absolute run-paths are allowed"
  61434. + ;;
  61435. esac
  61436. -
  61437. - # Now compile the dynamic symbol file.
  61438. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  61439. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  61440. -
  61441. - # Clean up the generated files.
  61442. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  61443. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  61444. -
  61445. - # Transform the symbol file into the correct name.
  61446. - case $host in
  61447. - *cygwin* | *mingw* )
  61448. - if test -f "$output_objdir/${outputname}.def" ; then
  61449. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  61450. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  61451. - else
  61452. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  61453. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  61454. - fi
  61455. - ;;
  61456. - * )
  61457. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  61458. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  61459. - ;;
  61460. - esac
  61461. + if test "$prev" = rpath; then
  61462. + case "$rpath " in
  61463. + *" $arg "*) ;;
  61464. + *) rpath="$rpath $arg" ;;
  61465. + esac
  61466. + else
  61467. + case "$xrpath " in
  61468. + *" $arg "*) ;;
  61469. + *) xrpath="$xrpath $arg" ;;
  61470. + esac
  61471. + fi
  61472. + prev=
  61473. + continue
  61474. + ;;
  61475. + shrext)
  61476. + shrext_cmds="$arg"
  61477. + prev=
  61478. + continue
  61479. + ;;
  61480. + weak)
  61481. + weak_libs="$weak_libs $arg"
  61482. + prev=
  61483. + continue
  61484. + ;;
  61485. + xcclinker)
  61486. + linker_flags="$linker_flags $qarg"
  61487. + compiler_flags="$compiler_flags $qarg"
  61488. + prev=
  61489. + func_append compile_command " $qarg"
  61490. + func_append finalize_command " $qarg"
  61491. + continue
  61492. + ;;
  61493. + xcompiler)
  61494. + compiler_flags="$compiler_flags $qarg"
  61495. + prev=
  61496. + func_append compile_command " $qarg"
  61497. + func_append finalize_command " $qarg"
  61498. + continue
  61499. + ;;
  61500. + xlinker)
  61501. + linker_flags="$linker_flags $qarg"
  61502. + compiler_flags="$compiler_flags $wl$qarg"
  61503. + prev=
  61504. + func_append compile_command " $wl$qarg"
  61505. + func_append finalize_command " $wl$qarg"
  61506. + continue
  61507. ;;
  61508. *)
  61509. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  61510. - exit $EXIT_FAILURE
  61511. + eval "$prev=\"\$arg\""
  61512. + prev=
  61513. + continue
  61514. ;;
  61515. esac
  61516. - else
  61517. - # We keep going just in case the user didn't refer to
  61518. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  61519. - # really was required.
  61520. + fi # test -n "$prev"
  61521. - # Nullify the symbol file.
  61522. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  61523. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  61524. - fi
  61525. + prevarg="$arg"
  61526. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  61527. - # Replace the output file specification.
  61528. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  61529. - link_command="$compile_command$compile_rpath"
  61530. + case $arg in
  61531. + -all-static)
  61532. + if test -n "$link_static_flag"; then
  61533. + # See comment for -static flag below, for more details.
  61534. + func_append compile_command " $link_static_flag"
  61535. + func_append finalize_command " $link_static_flag"
  61536. + fi
  61537. + continue
  61538. + ;;
  61539. - # We have no uninstalled library dependencies, so finalize right now.
  61540. - $show "$link_command"
  61541. - $run eval "$link_command"
  61542. - exit_status=$?
  61543. + -allow-undefined)
  61544. + # FIXME: remove this flag sometime in the future.
  61545. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  61546. + ;;
  61547. - # Delete the generated files.
  61548. - if test -n "$dlsyms"; then
  61549. - $show "$rm $output_objdir/${outputname}S.${objext}"
  61550. - $run $rm "$output_objdir/${outputname}S.${objext}"
  61551. - fi
  61552. + -avoid-version)
  61553. + avoid_version=yes
  61554. + continue
  61555. + ;;
  61556. - exit $exit_status
  61557. - fi
  61558. + -dlopen)
  61559. + prev=dlfiles
  61560. + continue
  61561. + ;;
  61562. - if test -n "$shlibpath_var"; then
  61563. - # We should set the shlibpath_var
  61564. - rpath=
  61565. - for dir in $temp_rpath; do
  61566. - case $dir in
  61567. - [\\/]* | [A-Za-z]:[\\/]*)
  61568. - # Absolute path.
  61569. - rpath="$rpath$dir:"
  61570. - ;;
  61571. - *)
  61572. - # Relative path: add a thisdir entry.
  61573. - rpath="$rpath\$thisdir/$dir:"
  61574. - ;;
  61575. - esac
  61576. - done
  61577. - temp_rpath="$rpath"
  61578. - fi
  61579. + -dlpreopen)
  61580. + prev=dlprefiles
  61581. + continue
  61582. + ;;
  61583. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  61584. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  61585. - fi
  61586. - if test -n "$finalize_shlibpath"; then
  61587. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  61588. - fi
  61589. + -export-dynamic)
  61590. + export_dynamic=yes
  61591. + continue
  61592. + ;;
  61593. - compile_var=
  61594. - finalize_var=
  61595. - if test -n "$runpath_var"; then
  61596. - if test -n "$perm_rpath"; then
  61597. - # We should set the runpath_var.
  61598. - rpath=
  61599. - for dir in $perm_rpath; do
  61600. - rpath="$rpath$dir:"
  61601. - done
  61602. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  61603. + -export-symbols | -export-symbols-regex)
  61604. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  61605. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  61606. fi
  61607. - if test -n "$finalize_perm_rpath"; then
  61608. - # We should set the runpath_var.
  61609. - rpath=
  61610. - for dir in $finalize_perm_rpath; do
  61611. - rpath="$rpath$dir:"
  61612. - done
  61613. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  61614. + if test "X$arg" = "X-export-symbols"; then
  61615. + prev=expsyms
  61616. + else
  61617. + prev=expsyms_regex
  61618. fi
  61619. - fi
  61620. + continue
  61621. + ;;
  61622. - if test "$no_install" = yes; then
  61623. - # We don't need to create a wrapper script.
  61624. - link_command="$compile_var$compile_command$compile_rpath"
  61625. - # Replace the output file specification.
  61626. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  61627. - # Delete the old output file.
  61628. - $run $rm $output
  61629. - # Link the executable and exit
  61630. - $show "$link_command"
  61631. - $run eval "$link_command" || exit $?
  61632. - exit $EXIT_SUCCESS
  61633. - fi
  61634. + -framework)
  61635. + prev=framework
  61636. + continue
  61637. + ;;
  61638. - if test "$hardcode_action" = relink; then
  61639. - # Fast installation is not supported
  61640. - link_command="$compile_var$compile_command$compile_rpath"
  61641. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  61642. + -inst-prefix-dir)
  61643. + prev=inst_prefix
  61644. + continue
  61645. + ;;
  61646. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  61647. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  61648. - else
  61649. - if test "$fast_install" != no; then
  61650. - link_command="$finalize_var$compile_command$finalize_rpath"
  61651. - if test "$fast_install" = yes; then
  61652. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  61653. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  61654. + # so, if we see these flags be careful not to treat them like -L
  61655. + -L[A-Z][A-Z]*:*)
  61656. + case $with_gcc/$host in
  61657. + no/*-*-irix* | /*-*-irix*)
  61658. + func_append compile_command " $arg"
  61659. + func_append finalize_command " $arg"
  61660. + ;;
  61661. + esac
  61662. + continue
  61663. + ;;
  61664. +
  61665. + -L*)
  61666. + func_stripname '-L' '' "$arg"
  61667. + dir=$func_stripname_result
  61668. + if test -z "$dir"; then
  61669. + if test "$#" -gt 0; then
  61670. + func_fatal_error "require no space between \`-L' and \`$1'"
  61671. else
  61672. - # fast_install is set to needless
  61673. - relink_command=
  61674. + func_fatal_error "need path for \`-L' option"
  61675. fi
  61676. - else
  61677. - link_command="$compile_var$compile_command$compile_rpath"
  61678. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  61679. fi
  61680. - fi
  61681. + # We need an absolute path.
  61682. + case $dir in
  61683. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  61684. + *)
  61685. + absdir=`cd "$dir" && pwd`
  61686. + test -z "$absdir" && \
  61687. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  61688. + dir="$absdir"
  61689. + ;;
  61690. + esac
  61691. + case "$deplibs " in
  61692. + *" -L$dir "*) ;;
  61693. + *)
  61694. + deplibs="$deplibs -L$dir"
  61695. + lib_search_path="$lib_search_path $dir"
  61696. + ;;
  61697. + esac
  61698. + case $host in
  61699. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  61700. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  61701. + case :$dllsearchpath: in
  61702. + *":$dir:"*) ;;
  61703. + ::) dllsearchpath=$dir;;
  61704. + *) dllsearchpath="$dllsearchpath:$dir";;
  61705. + esac
  61706. + case :$dllsearchpath: in
  61707. + *":$testbindir:"*) ;;
  61708. + ::) dllsearchpath=$testbindir;;
  61709. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  61710. + esac
  61711. + ;;
  61712. + esac
  61713. + continue
  61714. + ;;
  61715. - # Replace the output file specification.
  61716. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  61717. + -l*)
  61718. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  61719. + case $host in
  61720. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  61721. + # These systems don't actually have a C or math library (as such)
  61722. + continue
  61723. + ;;
  61724. + *-*-os2*)
  61725. + # These systems don't actually have a C library (as such)
  61726. + test "X$arg" = "X-lc" && continue
  61727. + ;;
  61728. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  61729. + # Do not include libc due to us having libc/libc_r.
  61730. + test "X$arg" = "X-lc" && continue
  61731. + ;;
  61732. + *-*-rhapsody* | *-*-darwin1.[012])
  61733. + # Rhapsody C and math libraries are in the System framework
  61734. + deplibs="$deplibs System.ltframework"
  61735. + continue
  61736. + ;;
  61737. + *-*-sco3.2v5* | *-*-sco5v6*)
  61738. + # Causes problems with __ctype
  61739. + test "X$arg" = "X-lc" && continue
  61740. + ;;
  61741. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  61742. + # Compiler inserts libc in the correct place for threads to work
  61743. + test "X$arg" = "X-lc" && continue
  61744. + ;;
  61745. + esac
  61746. + elif test "X$arg" = "X-lc_r"; then
  61747. + case $host in
  61748. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  61749. + # Do not include libc_r directly, use -pthread flag.
  61750. + continue
  61751. + ;;
  61752. + esac
  61753. + fi
  61754. + deplibs="$deplibs $arg"
  61755. + continue
  61756. + ;;
  61757. - # Delete the old output files.
  61758. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  61759. + -module)
  61760. + module=yes
  61761. + continue
  61762. + ;;
  61763. - $show "$link_command"
  61764. - $run eval "$link_command" || exit $?
  61765. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  61766. + # classes, name mangling, and exception handling.
  61767. + # Darwin uses the -arch flag to determine output architecture.
  61768. + -model|-arch|-isysroot)
  61769. + compiler_flags="$compiler_flags $arg"
  61770. + func_append compile_command " $arg"
  61771. + func_append finalize_command " $arg"
  61772. + prev=xcompiler
  61773. + continue
  61774. + ;;
  61775. - # Now create the wrapper script.
  61776. - $show "creating $output"
  61777. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  61778. + compiler_flags="$compiler_flags $arg"
  61779. + func_append compile_command " $arg"
  61780. + func_append finalize_command " $arg"
  61781. + case "$new_inherited_linker_flags " in
  61782. + *" $arg "*) ;;
  61783. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  61784. + esac
  61785. + continue
  61786. + ;;
  61787. - # Quote the relink command for shipping.
  61788. - if test -n "$relink_command"; then
  61789. - # Preserve any variables that may affect compiler behavior
  61790. - for var in $variables_saved_for_relink; do
  61791. - if eval test -z \"\${$var+set}\"; then
  61792. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  61793. - elif eval var_value=\$$var; test -z "$var_value"; then
  61794. - relink_command="$var=; export $var; $relink_command"
  61795. - else
  61796. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  61797. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  61798. - fi
  61799. - done
  61800. - relink_command="(cd `pwd`; $relink_command)"
  61801. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  61802. - fi
  61803. + -multi_module)
  61804. + single_module="${wl}-multi_module"
  61805. + continue
  61806. + ;;
  61807. - # Quote $echo for shipping.
  61808. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  61809. - case $progpath in
  61810. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  61811. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  61812. - esac
  61813. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  61814. - else
  61815. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  61816. - fi
  61817. + -no-fast-install)
  61818. + fast_install=no
  61819. + continue
  61820. + ;;
  61821. - # Only actually do things if our run command is non-null.
  61822. - if test -z "$run"; then
  61823. - # win32 will think the script is a binary if it has
  61824. - # a .exe suffix, so we strip it off here.
  61825. - case $output in
  61826. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  61827. - esac
  61828. - # test for cygwin because mv fails w/o .exe extensions
  61829. + -no-install)
  61830. case $host in
  61831. - *cygwin*)
  61832. - exeext=.exe
  61833. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  61834. - *) exeext= ;;
  61835. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  61836. + # The PATH hackery in wrapper scripts is required on Windows
  61837. + # and Darwin in order for the loader to find any dlls it needs.
  61838. + func_warning "\`-no-install' is ignored for $host"
  61839. + func_warning "assuming \`-no-fast-install' instead"
  61840. + fast_install=no
  61841. + ;;
  61842. + *) no_install=yes ;;
  61843. esac
  61844. - case $host in
  61845. - *cygwin* | *mingw* )
  61846. - output_name=`basename $output`
  61847. - output_path=`dirname $output`
  61848. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  61849. - cwrapper="$output_path/$output_name.exe"
  61850. - $rm $cwrappersource $cwrapper
  61851. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  61852. -
  61853. - cat > $cwrappersource <<EOF
  61854. + continue
  61855. + ;;
  61856. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  61857. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  61858. + -no-undefined)
  61859. + allow_undefined=no
  61860. + continue
  61861. + ;;
  61862. - The $output program cannot be directly executed until all the libtool
  61863. - libraries that it depends on are installed.
  61864. + -objectlist)
  61865. + prev=objectlist
  61866. + continue
  61867. + ;;
  61868. - This wrapper executable should never be moved out of the build directory.
  61869. - If it is, it will not operate correctly.
  61870. + -o) prev=output ;;
  61871. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  61872. - but could eventually absorb all of the scripts functionality and
  61873. - exec $objdir/$outputname directly.
  61874. -*/
  61875. -EOF
  61876. - cat >> $cwrappersource<<"EOF"
  61877. -#include <stdio.h>
  61878. -#include <stdlib.h>
  61879. -#include <unistd.h>
  61880. -#include <malloc.h>
  61881. -#include <stdarg.h>
  61882. -#include <assert.h>
  61883. -#include <string.h>
  61884. -#include <ctype.h>
  61885. -#include <sys/stat.h>
  61886. + -precious-files-regex)
  61887. + prev=precious_regex
  61888. + continue
  61889. + ;;
  61890. -#if defined(PATH_MAX)
  61891. -# define LT_PATHMAX PATH_MAX
  61892. -#elif defined(MAXPATHLEN)
  61893. -# define LT_PATHMAX MAXPATHLEN
  61894. -#else
  61895. -# define LT_PATHMAX 1024
  61896. -#endif
  61897. + -release)
  61898. + prev=release
  61899. + continue
  61900. + ;;
  61901. -#ifndef DIR_SEPARATOR
  61902. -# define DIR_SEPARATOR '/'
  61903. -# define PATH_SEPARATOR ':'
  61904. -#endif
  61905. + -rpath)
  61906. + prev=rpath
  61907. + continue
  61908. + ;;
  61909. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  61910. - defined (__OS2__)
  61911. -# define HAVE_DOS_BASED_FILE_SYSTEM
  61912. -# ifndef DIR_SEPARATOR_2
  61913. -# define DIR_SEPARATOR_2 '\\'
  61914. -# endif
  61915. -# ifndef PATH_SEPARATOR_2
  61916. -# define PATH_SEPARATOR_2 ';'
  61917. -# endif
  61918. -#endif
  61919. + -R)
  61920. + prev=xrpath
  61921. + continue
  61922. + ;;
  61923. -#ifndef DIR_SEPARATOR_2
  61924. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  61925. -#else /* DIR_SEPARATOR_2 */
  61926. -# define IS_DIR_SEPARATOR(ch) \
  61927. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  61928. -#endif /* DIR_SEPARATOR_2 */
  61929. + -R*)
  61930. + func_stripname '-R' '' "$arg"
  61931. + dir=$func_stripname_result
  61932. + # We need an absolute path.
  61933. + case $dir in
  61934. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  61935. + *)
  61936. + func_fatal_error "only absolute run-paths are allowed"
  61937. + ;;
  61938. + esac
  61939. + case "$xrpath " in
  61940. + *" $dir "*) ;;
  61941. + *) xrpath="$xrpath $dir" ;;
  61942. + esac
  61943. + continue
  61944. + ;;
  61945. -#ifndef PATH_SEPARATOR_2
  61946. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  61947. -#else /* PATH_SEPARATOR_2 */
  61948. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  61949. -#endif /* PATH_SEPARATOR_2 */
  61950. + -shared)
  61951. + # The effects of -shared are defined in a previous loop.
  61952. + continue
  61953. + ;;
  61954. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  61955. -#define XFREE(stale) do { \
  61956. - if (stale) { free ((void *) stale); stale = 0; } \
  61957. -} while (0)
  61958. + -shrext)
  61959. + prev=shrext
  61960. + continue
  61961. + ;;
  61962. -/* -DDEBUG is fairly common in CFLAGS. */
  61963. -#undef DEBUG
  61964. -#if defined DEBUGWRAPPER
  61965. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  61966. -#else
  61967. -# define DEBUG(format, ...)
  61968. -#endif
  61969. + -static | -static-libtool-libs)
  61970. + # The effects of -static are defined in a previous loop.
  61971. + # We used to do the same as -all-static on platforms that
  61972. + # didn't have a PIC flag, but the assumption that the effects
  61973. + # would be equivalent was wrong. It would break on at least
  61974. + # Digital Unix and AIX.
  61975. + continue
  61976. + ;;
  61977. -const char *program_name = NULL;
  61978. + -thread-safe)
  61979. + thread_safe=yes
  61980. + continue
  61981. + ;;
  61982. -void * xmalloc (size_t num);
  61983. -char * xstrdup (const char *string);
  61984. -const char * base_name (const char *name);
  61985. -char * find_executable(const char *wrapper);
  61986. -int check_executable(const char *path);
  61987. -char * strendzap(char *str, const char *pat);
  61988. -void lt_fatal (const char *message, ...);
  61989. + -version-info)
  61990. + prev=vinfo
  61991. + continue
  61992. + ;;
  61993. -int
  61994. -main (int argc, char *argv[])
  61995. -{
  61996. - char **newargz;
  61997. - int i;
  61998. + -version-number)
  61999. + prev=vinfo
  62000. + vinfo_number=yes
  62001. + continue
  62002. + ;;
  62003. - program_name = (char *) xstrdup (base_name (argv[0]));
  62004. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  62005. - DEBUG("(main) program_name : %s\n",program_name);
  62006. - newargz = XMALLOC(char *, argc+2);
  62007. -EOF
  62008. + -weak)
  62009. + prev=weak
  62010. + continue
  62011. + ;;
  62012. - cat >> $cwrappersource <<EOF
  62013. - newargz[0] = (char *) xstrdup("$SHELL");
  62014. -EOF
  62015. + -Wc,*)
  62016. + func_stripname '-Wc,' '' "$arg"
  62017. + args=$func_stripname_result
  62018. + arg=
  62019. + save_ifs="$IFS"; IFS=','
  62020. + for flag in $args; do
  62021. + IFS="$save_ifs"
  62022. + func_quote_for_eval "$flag"
  62023. + arg="$arg $wl$func_quote_for_eval_result"
  62024. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  62025. + done
  62026. + IFS="$save_ifs"
  62027. + func_stripname ' ' '' "$arg"
  62028. + arg=$func_stripname_result
  62029. + ;;
  62030. - cat >> $cwrappersource <<"EOF"
  62031. - newargz[1] = find_executable(argv[0]);
  62032. - if (newargz[1] == NULL)
  62033. - lt_fatal("Couldn't find %s", argv[0]);
  62034. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  62035. - /* we know the script has the same name, without the .exe */
  62036. - /* so make sure newargz[1] doesn't end in .exe */
  62037. - strendzap(newargz[1],".exe");
  62038. - for (i = 1; i < argc; i++)
  62039. - newargz[i+1] = xstrdup(argv[i]);
  62040. - newargz[argc+1] = NULL;
  62041. + -Wl,*)
  62042. + func_stripname '-Wl,' '' "$arg"
  62043. + args=$func_stripname_result
  62044. + arg=
  62045. + save_ifs="$IFS"; IFS=','
  62046. + for flag in $args; do
  62047. + IFS="$save_ifs"
  62048. + func_quote_for_eval "$flag"
  62049. + arg="$arg $wl$func_quote_for_eval_result"
  62050. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  62051. + linker_flags="$linker_flags $func_quote_for_eval_result"
  62052. + done
  62053. + IFS="$save_ifs"
  62054. + func_stripname ' ' '' "$arg"
  62055. + arg=$func_stripname_result
  62056. + ;;
  62057. - for (i=0; i<argc+1; i++)
  62058. - {
  62059. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  62060. - ;
  62061. - }
  62062. + -Xcompiler)
  62063. + prev=xcompiler
  62064. + continue
  62065. + ;;
  62066. -EOF
  62067. + -Xlinker)
  62068. + prev=xlinker
  62069. + continue
  62070. + ;;
  62071. - case $host_os in
  62072. - mingw*)
  62073. - cat >> $cwrappersource <<EOF
  62074. - execv("$SHELL",(char const **)newargz);
  62075. -EOF
  62076. - ;;
  62077. - *)
  62078. - cat >> $cwrappersource <<EOF
  62079. - execv("$SHELL",newargz);
  62080. -EOF
  62081. - ;;
  62082. - esac
  62083. + -XCClinker)
  62084. + prev=xcclinker
  62085. + continue
  62086. + ;;
  62087. - cat >> $cwrappersource <<"EOF"
  62088. - return 127;
  62089. -}
  62090. + # -msg_* for osf cc
  62091. + -msg_*)
  62092. + func_quote_for_eval "$arg"
  62093. + arg="$func_quote_for_eval_result"
  62094. + ;;
  62095. -void *
  62096. -xmalloc (size_t num)
  62097. -{
  62098. - void * p = (void *) malloc (num);
  62099. - if (!p)
  62100. - lt_fatal ("Memory exhausted");
  62101. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  62102. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  62103. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  62104. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  62105. + # -q* pass through compiler args for the IBM compiler
  62106. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  62107. + # compiler args for GCC
  62108. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  62109. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  62110. + # @file GCC response files
  62111. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  62112. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  62113. + func_quote_for_eval "$arg"
  62114. + arg="$func_quote_for_eval_result"
  62115. + func_append compile_command " $arg"
  62116. + func_append finalize_command " $arg"
  62117. + compiler_flags="$compiler_flags $arg"
  62118. + continue
  62119. + ;;
  62120. - return p;
  62121. -}
  62122. + # Some other compiler flag.
  62123. + -* | +*)
  62124. + func_quote_for_eval "$arg"
  62125. + arg="$func_quote_for_eval_result"
  62126. + ;;
  62127. -char *
  62128. -xstrdup (const char *string)
  62129. -{
  62130. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  62131. -;
  62132. -}
  62133. + *.$objext)
  62134. + # A standard object.
  62135. + objs="$objs $arg"
  62136. + ;;
  62137. -const char *
  62138. -base_name (const char *name)
  62139. -{
  62140. - const char *base;
  62141. + *.lo)
  62142. + # A libtool-controlled object.
  62143. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  62144. - /* Skip over the disk name in MSDOS pathnames. */
  62145. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  62146. - name += 2;
  62147. -#endif
  62148. + # Check to see that this really is a libtool object.
  62149. + if func_lalib_unsafe_p "$arg"; then
  62150. + pic_object=
  62151. + non_pic_object=
  62152. - for (base = name; *name; name++)
  62153. - if (IS_DIR_SEPARATOR (*name))
  62154. - base = name + 1;
  62155. - return base;
  62156. -}
  62157. + # Read the .lo file
  62158. + func_source "$arg"
  62159. -int
  62160. -check_executable(const char * path)
  62161. -{
  62162. - struct stat st;
  62163. + if test -z "$pic_object" ||
  62164. + test -z "$non_pic_object" ||
  62165. + test "$pic_object" = none &&
  62166. + test "$non_pic_object" = none; then
  62167. + func_fatal_error "cannot find name of object for \`$arg'"
  62168. + fi
  62169. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  62170. - if ((!path) || (!*path))
  62171. - return 0;
  62172. + # Extract subdirectory from the argument.
  62173. + func_dirname "$arg" "/" ""
  62174. + xdir="$func_dirname_result"
  62175. - if ((stat (path, &st) >= 0) &&
  62176. - (
  62177. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  62178. -#if defined (S_IXOTH)
  62179. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  62180. -#endif
  62181. -#if defined (S_IXGRP)
  62182. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  62183. -#endif
  62184. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  62185. - )
  62186. - return 1;
  62187. - else
  62188. - return 0;
  62189. -}
  62190. + if test "$pic_object" != none; then
  62191. + # Prepend the subdirectory the object is found in.
  62192. + pic_object="$xdir$pic_object"
  62193. -/* Searches for the full path of the wrapper. Returns
  62194. - newly allocated full path name if found, NULL otherwise */
  62195. -char *
  62196. -find_executable (const char* wrapper)
  62197. -{
  62198. - int has_slash = 0;
  62199. - const char* p;
  62200. - const char* p_next;
  62201. - /* static buffer for getcwd */
  62202. - char tmp[LT_PATHMAX + 1];
  62203. - int tmp_len;
  62204. - char* concat_name;
  62205. + if test "$prev" = dlfiles; then
  62206. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  62207. + dlfiles="$dlfiles $pic_object"
  62208. + prev=
  62209. + continue
  62210. + else
  62211. + # If libtool objects are unsupported, then we need to preload.
  62212. + prev=dlprefiles
  62213. + fi
  62214. + fi
  62215. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  62216. + # CHECK ME: I think I busted this. -Ossama
  62217. + if test "$prev" = dlprefiles; then
  62218. + # Preload the old-style object.
  62219. + dlprefiles="$dlprefiles $pic_object"
  62220. + prev=
  62221. + fi
  62222. - if ((wrapper == NULL) || (*wrapper == '\0'))
  62223. - return NULL;
  62224. + # A PIC object.
  62225. + func_append libobjs " $pic_object"
  62226. + arg="$pic_object"
  62227. + fi
  62228. - /* Absolute path? */
  62229. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  62230. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  62231. - {
  62232. - concat_name = xstrdup (wrapper);
  62233. - if (check_executable(concat_name))
  62234. - return concat_name;
  62235. - XFREE(concat_name);
  62236. - }
  62237. - else
  62238. - {
  62239. -#endif
  62240. - if (IS_DIR_SEPARATOR (wrapper[0]))
  62241. - {
  62242. - concat_name = xstrdup (wrapper);
  62243. - if (check_executable(concat_name))
  62244. - return concat_name;
  62245. - XFREE(concat_name);
  62246. - }
  62247. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  62248. - }
  62249. -#endif
  62250. + # Non-PIC object.
  62251. + if test "$non_pic_object" != none; then
  62252. + # Prepend the subdirectory the object is found in.
  62253. + non_pic_object="$xdir$non_pic_object"
  62254. - for (p = wrapper; *p; p++)
  62255. - if (*p == '/')
  62256. - {
  62257. - has_slash = 1;
  62258. - break;
  62259. - }
  62260. - if (!has_slash)
  62261. - {
  62262. - /* no slashes; search PATH */
  62263. - const char* path = getenv ("PATH");
  62264. - if (path != NULL)
  62265. - {
  62266. - for (p = path; *p; p = p_next)
  62267. - {
  62268. - const char* q;
  62269. - size_t p_len;
  62270. - for (q = p; *q; q++)
  62271. - if (IS_PATH_SEPARATOR(*q))
  62272. - break;
  62273. - p_len = q - p;
  62274. - p_next = (*q == '\0' ? q : q + 1);
  62275. - if (p_len == 0)
  62276. - {
  62277. - /* empty path: current directory */
  62278. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  62279. - lt_fatal ("getcwd failed");
  62280. - tmp_len = strlen(tmp);
  62281. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  62282. - memcpy (concat_name, tmp, tmp_len);
  62283. - concat_name[tmp_len] = '/';
  62284. - strcpy (concat_name + tmp_len + 1, wrapper);
  62285. - }
  62286. - else
  62287. - {
  62288. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  62289. - memcpy (concat_name, p, p_len);
  62290. - concat_name[p_len] = '/';
  62291. - strcpy (concat_name + p_len + 1, wrapper);
  62292. - }
  62293. - if (check_executable(concat_name))
  62294. - return concat_name;
  62295. - XFREE(concat_name);
  62296. - }
  62297. - }
  62298. - /* not found in PATH; assume curdir */
  62299. - }
  62300. - /* Relative path | not found in path: prepend cwd */
  62301. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  62302. - lt_fatal ("getcwd failed");
  62303. - tmp_len = strlen(tmp);
  62304. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  62305. - memcpy (concat_name, tmp, tmp_len);
  62306. - concat_name[tmp_len] = '/';
  62307. - strcpy (concat_name + tmp_len + 1, wrapper);
  62308. + # A standard non-PIC object
  62309. + func_append non_pic_objects " $non_pic_object"
  62310. + if test -z "$pic_object" || test "$pic_object" = none ; then
  62311. + arg="$non_pic_object"
  62312. + fi
  62313. + else
  62314. + # If the PIC object exists, use it instead.
  62315. + # $xdir was prepended to $pic_object above.
  62316. + non_pic_object="$pic_object"
  62317. + func_append non_pic_objects " $non_pic_object"
  62318. + fi
  62319. + else
  62320. + # Only an error if not doing a dry-run.
  62321. + if $opt_dry_run; then
  62322. + # Extract subdirectory from the argument.
  62323. + func_dirname "$arg" "/" ""
  62324. + xdir="$func_dirname_result"
  62325. - if (check_executable(concat_name))
  62326. - return concat_name;
  62327. - XFREE(concat_name);
  62328. - return NULL;
  62329. -}
  62330. + func_lo2o "$arg"
  62331. + pic_object=$xdir$objdir/$func_lo2o_result
  62332. + non_pic_object=$xdir$func_lo2o_result
  62333. + func_append libobjs " $pic_object"
  62334. + func_append non_pic_objects " $non_pic_object"
  62335. + else
  62336. + func_fatal_error "\`$arg' is not a valid libtool object"
  62337. + fi
  62338. + fi
  62339. + ;;
  62340. -char *
  62341. -strendzap(char *str, const char *pat)
  62342. -{
  62343. - size_t len, patlen;
  62344. + *.$libext)
  62345. + # An archive.
  62346. + deplibs="$deplibs $arg"
  62347. + old_deplibs="$old_deplibs $arg"
  62348. + continue
  62349. + ;;
  62350. - assert(str != NULL);
  62351. - assert(pat != NULL);
  62352. + *.la)
  62353. + # A libtool-controlled library.
  62354. - len = strlen(str);
  62355. - patlen = strlen(pat);
  62356. + if test "$prev" = dlfiles; then
  62357. + # This library was specified with -dlopen.
  62358. + dlfiles="$dlfiles $arg"
  62359. + prev=
  62360. + elif test "$prev" = dlprefiles; then
  62361. + # The library was specified with -dlpreopen.
  62362. + dlprefiles="$dlprefiles $arg"
  62363. + prev=
  62364. + else
  62365. + deplibs="$deplibs $arg"
  62366. + fi
  62367. + continue
  62368. + ;;
  62369. - if (patlen <= len)
  62370. - {
  62371. - str += len - patlen;
  62372. - if (strcmp(str, pat) == 0)
  62373. - *str = '\0';
  62374. - }
  62375. - return str;
  62376. -}
  62377. + # Some other compiler argument.
  62378. + *)
  62379. + # Unknown arguments in both finalize_command and compile_command need
  62380. + # to be aesthetically quoted because they are evaled later.
  62381. + func_quote_for_eval "$arg"
  62382. + arg="$func_quote_for_eval_result"
  62383. + ;;
  62384. + esac # arg
  62385. -static void
  62386. -lt_error_core (int exit_status, const char * mode,
  62387. - const char * message, va_list ap)
  62388. -{
  62389. - fprintf (stderr, "%s: %s: ", program_name, mode);
  62390. - vfprintf (stderr, message, ap);
  62391. - fprintf (stderr, ".\n");
  62392. + # Now actually substitute the argument into the commands.
  62393. + if test -n "$arg"; then
  62394. + func_append compile_command " $arg"
  62395. + func_append finalize_command " $arg"
  62396. + fi
  62397. + done # argument parsing loop
  62398. - if (exit_status >= 0)
  62399. - exit (exit_status);
  62400. -}
  62401. + test -n "$prev" && \
  62402. + func_fatal_help "the \`$prevarg' option requires an argument"
  62403. -void
  62404. -lt_fatal (const char *message, ...)
  62405. -{
  62406. - va_list ap;
  62407. - va_start (ap, message);
  62408. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  62409. - va_end (ap);
  62410. -}
  62411. -EOF
  62412. - # we should really use a build-platform specific compiler
  62413. - # here, but OTOH, the wrappers (shell script and this C one)
  62414. - # are only useful if you want to execute the "real" binary.
  62415. - # Since the "real" binary is built for $host, then this
  62416. - # wrapper might as well be built for $host, too.
  62417. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  62418. - ;;
  62419. - esac
  62420. - $rm $output
  62421. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  62422. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  62423. + eval arg=\"$export_dynamic_flag_spec\"
  62424. + func_append compile_command " $arg"
  62425. + func_append finalize_command " $arg"
  62426. + fi
  62427. - $echo > $output "\
  62428. -#! $SHELL
  62429. + oldlibs=
  62430. + # calculate the name of the file, without its directory
  62431. + func_basename "$output"
  62432. + outputname="$func_basename_result"
  62433. + libobjs_save="$libobjs"
  62434. -# $output - temporary wrapper script for $objdir/$outputname
  62435. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  62436. -#
  62437. -# The $output program cannot be directly executed until all the libtool
  62438. -# libraries that it depends on are installed.
  62439. -#
  62440. -# This wrapper script should never be moved out of the build directory.
  62441. -# If it is, it will not operate correctly.
  62442. + if test -n "$shlibpath_var"; then
  62443. + # get the directories listed in $shlibpath_var
  62444. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  62445. + else
  62446. + shlib_search_path=
  62447. + fi
  62448. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  62449. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  62450. -# Sed substitution that helps us do robust quoting. It backslashifies
  62451. -# metacharacters that are still active within double-quoted strings.
  62452. -Xsed='${SED} -e 1s/^X//'
  62453. -sed_quote_subst='$sed_quote_subst'
  62454. + func_dirname "$output" "/" ""
  62455. + output_objdir="$func_dirname_result$objdir"
  62456. + # Create the object directory.
  62457. + func_mkdir_p "$output_objdir"
  62458. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  62459. -# if CDPATH is set.
  62460. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  62461. + # Determine the type of output
  62462. + case $output in
  62463. + "")
  62464. + func_fatal_help "you must specify an output file"
  62465. + ;;
  62466. + *.$libext) linkmode=oldlib ;;
  62467. + *.lo | *.$objext) linkmode=obj ;;
  62468. + *.la) linkmode=lib ;;
  62469. + *) linkmode=prog ;; # Anything else should be a program.
  62470. + esac
  62471. -relink_command=\"$relink_command\"
  62472. + specialdeplibs=
  62473. -# This environment variable determines our operation mode.
  62474. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  62475. - # install mode needs the following variable:
  62476. - notinst_deplibs='$notinst_deplibs'
  62477. -else
  62478. - # When we are sourced in execute mode, \$file and \$echo are already set.
  62479. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  62480. - echo=\"$qecho\"
  62481. - file=\"\$0\"
  62482. - # Make sure echo works.
  62483. - if test \"X\$1\" = X--no-reexec; then
  62484. - # Discard the --no-reexec flag, and continue.
  62485. - shift
  62486. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  62487. - # Yippee, \$echo works!
  62488. - :
  62489. - else
  62490. - # Restart under the correct shell, and then maybe \$echo will work.
  62491. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  62492. + libs=
  62493. + # Find all interdependent deplibs by searching for libraries
  62494. + # that are linked more than once (e.g. -la -lb -la)
  62495. + for deplib in $deplibs; do
  62496. + if $opt_duplicate_deps ; then
  62497. + case "$libs " in
  62498. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  62499. + esac
  62500. + fi
  62501. + libs="$libs $deplib"
  62502. + done
  62503. +
  62504. + if test "$linkmode" = lib; then
  62505. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  62506. +
  62507. + # Compute libraries that are listed more than once in $predeps
  62508. + # $postdeps and mark them as special (i.e., whose duplicates are
  62509. + # not to be eliminated).
  62510. + pre_post_deps=
  62511. + if $opt_duplicate_compiler_generated_deps; then
  62512. + for pre_post_dep in $predeps $postdeps; do
  62513. + case "$pre_post_deps " in
  62514. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  62515. + esac
  62516. + pre_post_deps="$pre_post_deps $pre_post_dep"
  62517. + done
  62518. + fi
  62519. + pre_post_deps=
  62520. fi
  62521. - fi\
  62522. -"
  62523. - $echo >> $output "\
  62524. - # Find the directory that this script lives in.
  62525. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  62526. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  62527. + deplibs=
  62528. + newdependency_libs=
  62529. + newlib_search_path=
  62530. + need_relink=no # whether we're linking any uninstalled libtool libraries
  62531. + notinst_deplibs= # not-installed libtool libraries
  62532. + notinst_path= # paths that contain not-installed libtool libraries
  62533. - # Follow symbolic links until we get to the real thisdir.
  62534. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  62535. - while test -n \"\$file\"; do
  62536. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  62537. + case $linkmode in
  62538. + lib)
  62539. + passes="conv dlpreopen link"
  62540. + for file in $dlfiles $dlprefiles; do
  62541. + case $file in
  62542. + *.la) ;;
  62543. + *)
  62544. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  62545. + ;;
  62546. + esac
  62547. + done
  62548. + ;;
  62549. + prog)
  62550. + compile_deplibs=
  62551. + finalize_deplibs=
  62552. + alldeplibs=no
  62553. + newdlfiles=
  62554. + newdlprefiles=
  62555. + passes="conv scan dlopen dlpreopen link"
  62556. + ;;
  62557. + *) passes="conv"
  62558. + ;;
  62559. + esac
  62560. - # If there was a directory component, then change thisdir.
  62561. - if test \"x\$destdir\" != \"x\$file\"; then
  62562. - case \"\$destdir\" in
  62563. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  62564. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  62565. - esac
  62566. - fi
  62567. + for pass in $passes; do
  62568. + # The preopen pass in lib mode reverses $deplibs; put it back here
  62569. + # so that -L comes before libs that need it for instance...
  62570. + if test "$linkmode,$pass" = "lib,link"; then
  62571. + ## FIXME: Find the place where the list is rebuilt in the wrong
  62572. + ## order, and fix it there properly
  62573. + tmp_deplibs=
  62574. + for deplib in $deplibs; do
  62575. + tmp_deplibs="$deplib $tmp_deplibs"
  62576. + done
  62577. + deplibs="$tmp_deplibs"
  62578. + fi
  62579. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  62580. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  62581. - done
  62582. + if test "$linkmode,$pass" = "lib,link" ||
  62583. + test "$linkmode,$pass" = "prog,scan"; then
  62584. + libs="$deplibs"
  62585. + deplibs=
  62586. + fi
  62587. + if test "$linkmode" = prog; then
  62588. + case $pass in
  62589. + dlopen) libs="$dlfiles" ;;
  62590. + dlpreopen) libs="$dlprefiles" ;;
  62591. + link)
  62592. + libs="$deplibs %DEPLIBS%"
  62593. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  62594. + ;;
  62595. + esac
  62596. + fi
  62597. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  62598. + # Collect and forward deplibs of preopened libtool libs
  62599. + for lib in $dlprefiles; do
  62600. + # Ignore non-libtool-libs
  62601. + dependency_libs=
  62602. + case $lib in
  62603. + *.la) func_source "$lib" ;;
  62604. + esac
  62605. +
  62606. + # Collect preopened libtool deplibs, except any this library
  62607. + # has declared as weak libs
  62608. + for deplib in $dependency_libs; do
  62609. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  62610. + case " $weak_libs " in
  62611. + *" $deplib_base "*) ;;
  62612. + *) deplibs="$deplibs $deplib" ;;
  62613. + esac
  62614. + done
  62615. + done
  62616. + libs="$dlprefiles"
  62617. + fi
  62618. + if test "$pass" = dlopen; then
  62619. + # Collect dlpreopened libraries
  62620. + save_deplibs="$deplibs"
  62621. + deplibs=
  62622. + fi
  62623. +
  62624. + for deplib in $libs; do
  62625. + lib=
  62626. + found=no
  62627. + case $deplib in
  62628. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  62629. + if test "$linkmode,$pass" = "prog,link"; then
  62630. + compile_deplibs="$deplib $compile_deplibs"
  62631. + finalize_deplibs="$deplib $finalize_deplibs"
  62632. + else
  62633. + compiler_flags="$compiler_flags $deplib"
  62634. + if test "$linkmode" = lib ; then
  62635. + case "$new_inherited_linker_flags " in
  62636. + *" $deplib "*) ;;
  62637. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  62638. + esac
  62639. + fi
  62640. + fi
  62641. + continue
  62642. + ;;
  62643. + -l*)
  62644. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  62645. + func_warning "\`-l' is ignored for archives/objects"
  62646. + continue
  62647. + fi
  62648. + func_stripname '-l' '' "$deplib"
  62649. + name=$func_stripname_result
  62650. + if test "$linkmode" = lib; then
  62651. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  62652. + else
  62653. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  62654. + fi
  62655. + for searchdir in $searchdirs; do
  62656. + for search_ext in .la $std_shrext .so .a; do
  62657. + # Search the libtool library
  62658. + lib="$searchdir/lib${name}${search_ext}"
  62659. + if test -f "$lib"; then
  62660. + if test "$search_ext" = ".la"; then
  62661. + found=yes
  62662. + else
  62663. + found=no
  62664. + fi
  62665. + break 2
  62666. + fi
  62667. + done
  62668. + done
  62669. + if test "$found" != yes; then
  62670. + # deplib doesn't seem to be a libtool library
  62671. + if test "$linkmode,$pass" = "prog,link"; then
  62672. + compile_deplibs="$deplib $compile_deplibs"
  62673. + finalize_deplibs="$deplib $finalize_deplibs"
  62674. + else
  62675. + deplibs="$deplib $deplibs"
  62676. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  62677. + fi
  62678. + continue
  62679. + else # deplib is a libtool library
  62680. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  62681. + # We need to do some special things here, and not later.
  62682. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  62683. + case " $predeps $postdeps " in
  62684. + *" $deplib "*)
  62685. + if func_lalib_p "$lib"; then
  62686. + library_names=
  62687. + old_library=
  62688. + func_source "$lib"
  62689. + for l in $old_library $library_names; do
  62690. + ll="$l"
  62691. + done
  62692. + if test "X$ll" = "X$old_library" ; then # only static version available
  62693. + found=no
  62694. + func_dirname "$lib" "" "."
  62695. + ladir="$func_dirname_result"
  62696. + lib=$ladir/$old_library
  62697. + if test "$linkmode,$pass" = "prog,link"; then
  62698. + compile_deplibs="$deplib $compile_deplibs"
  62699. + finalize_deplibs="$deplib $finalize_deplibs"
  62700. + else
  62701. + deplibs="$deplib $deplibs"
  62702. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  62703. + fi
  62704. + continue
  62705. + fi
  62706. + fi
  62707. + ;;
  62708. + *) ;;
  62709. + esac
  62710. + fi
  62711. + fi
  62712. + ;; # -l
  62713. + *.ltframework)
  62714. + if test "$linkmode,$pass" = "prog,link"; then
  62715. + compile_deplibs="$deplib $compile_deplibs"
  62716. + finalize_deplibs="$deplib $finalize_deplibs"
  62717. + else
  62718. + deplibs="$deplib $deplibs"
  62719. + if test "$linkmode" = lib ; then
  62720. + case "$new_inherited_linker_flags " in
  62721. + *" $deplib "*) ;;
  62722. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  62723. + esac
  62724. + fi
  62725. + fi
  62726. + continue
  62727. + ;;
  62728. + -L*)
  62729. + case $linkmode in
  62730. + lib)
  62731. + deplibs="$deplib $deplibs"
  62732. + test "$pass" = conv && continue
  62733. + newdependency_libs="$deplib $newdependency_libs"
  62734. + func_stripname '-L' '' "$deplib"
  62735. + newlib_search_path="$newlib_search_path $func_stripname_result"
  62736. + ;;
  62737. + prog)
  62738. + if test "$pass" = conv; then
  62739. + deplibs="$deplib $deplibs"
  62740. + continue
  62741. + fi
  62742. + if test "$pass" = scan; then
  62743. + deplibs="$deplib $deplibs"
  62744. + else
  62745. + compile_deplibs="$deplib $compile_deplibs"
  62746. + finalize_deplibs="$deplib $finalize_deplibs"
  62747. + fi
  62748. + func_stripname '-L' '' "$deplib"
  62749. + newlib_search_path="$newlib_search_path $func_stripname_result"
  62750. + ;;
  62751. + *)
  62752. + func_warning "\`-L' is ignored for archives/objects"
  62753. + ;;
  62754. + esac # linkmode
  62755. + continue
  62756. + ;; # -L
  62757. + -R*)
  62758. + if test "$pass" = link; then
  62759. + func_stripname '-R' '' "$deplib"
  62760. + dir=$func_stripname_result
  62761. + # Make sure the xrpath contains only unique directories.
  62762. + case "$xrpath " in
  62763. + *" $dir "*) ;;
  62764. + *) xrpath="$xrpath $dir" ;;
  62765. + esac
  62766. + fi
  62767. + deplibs="$deplib $deplibs"
  62768. + continue
  62769. + ;;
  62770. + *.la) lib="$deplib" ;;
  62771. + *.$libext)
  62772. + if test "$pass" = conv; then
  62773. + deplibs="$deplib $deplibs"
  62774. + continue
  62775. + fi
  62776. + case $linkmode in
  62777. + lib)
  62778. + # Linking convenience modules into shared libraries is allowed,
  62779. + # but linking other static libraries is non-portable.
  62780. + case " $dlpreconveniencelibs " in
  62781. + *" $deplib "*) ;;
  62782. + *)
  62783. + valid_a_lib=no
  62784. + case $deplibs_check_method in
  62785. + match_pattern*)
  62786. + set dummy $deplibs_check_method; shift
  62787. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  62788. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  62789. + | $EGREP "$match_pattern_regex" > /dev/null; then
  62790. + valid_a_lib=yes
  62791. + fi
  62792. + ;;
  62793. + pass_all)
  62794. + valid_a_lib=yes
  62795. + ;;
  62796. + esac
  62797. + if test "$valid_a_lib" != yes; then
  62798. + $ECHO
  62799. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  62800. + $ECHO "*** I have the capability to make that library automatically link in when"
  62801. + $ECHO "*** you link to this library. But I can only do this if you have a"
  62802. + $ECHO "*** shared version of the library, which you do not appear to have"
  62803. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  62804. + $ECHO "*** that it is just a static archive that I should not use here."
  62805. + else
  62806. + $ECHO
  62807. + $ECHO "*** Warning: Linking the shared library $output against the"
  62808. + $ECHO "*** static library $deplib is not portable!"
  62809. + deplibs="$deplib $deplibs"
  62810. + fi
  62811. + ;;
  62812. + esac
  62813. + continue
  62814. + ;;
  62815. + prog)
  62816. + if test "$pass" != link; then
  62817. + deplibs="$deplib $deplibs"
  62818. + else
  62819. + compile_deplibs="$deplib $compile_deplibs"
  62820. + finalize_deplibs="$deplib $finalize_deplibs"
  62821. + fi
  62822. + continue
  62823. + ;;
  62824. + esac # linkmode
  62825. + ;; # *.$libext
  62826. + *.lo | *.$objext)
  62827. + if test "$pass" = conv; then
  62828. + deplibs="$deplib $deplibs"
  62829. + elif test "$linkmode" = prog; then
  62830. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  62831. + # If there is no dlopen support or we're linking statically,
  62832. + # we need to preload.
  62833. + newdlprefiles="$newdlprefiles $deplib"
  62834. + compile_deplibs="$deplib $compile_deplibs"
  62835. + finalize_deplibs="$deplib $finalize_deplibs"
  62836. + else
  62837. + newdlfiles="$newdlfiles $deplib"
  62838. + fi
  62839. + fi
  62840. + continue
  62841. + ;;
  62842. + %DEPLIBS%)
  62843. + alldeplibs=yes
  62844. + continue
  62845. + ;;
  62846. + esac # case $deplib
  62847. +
  62848. + if test "$found" = yes || test -f "$lib"; then :
  62849. + else
  62850. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  62851. + fi
  62852. +
  62853. + # Check to see that this really is a libtool archive.
  62854. + func_lalib_unsafe_p "$lib" \
  62855. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  62856. +
  62857. + func_dirname "$lib" "" "."
  62858. + ladir="$func_dirname_result"
  62859. +
  62860. + dlname=
  62861. + dlopen=
  62862. + dlpreopen=
  62863. + libdir=
  62864. + library_names=
  62865. + old_library=
  62866. + inherited_linker_flags=
  62867. + # If the library was installed with an old release of libtool,
  62868. + # it will not redefine variables installed, or shouldnotlink
  62869. + installed=yes
  62870. + shouldnotlink=no
  62871. + avoidtemprpath=
  62872. +
  62873. +
  62874. + # Read the .la file
  62875. + func_source "$lib"
  62876. +
  62877. + # Convert "-framework foo" to "foo.ltframework"
  62878. + if test -n "$inherited_linker_flags"; then
  62879. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  62880. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  62881. + case " $new_inherited_linker_flags " in
  62882. + *" $tmp_inherited_linker_flag "*) ;;
  62883. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  62884. + esac
  62885. + done
  62886. + fi
  62887. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  62888. + if test "$linkmode,$pass" = "lib,link" ||
  62889. + test "$linkmode,$pass" = "prog,scan" ||
  62890. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  62891. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  62892. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  62893. + fi
  62894. +
  62895. + if test "$pass" = conv; then
  62896. + # Only check for convenience libraries
  62897. + deplibs="$lib $deplibs"
  62898. + if test -z "$libdir"; then
  62899. + if test -z "$old_library"; then
  62900. + func_fatal_error "cannot find name of link library for \`$lib'"
  62901. + fi
  62902. + # It is a libtool convenience library, so add in its objects.
  62903. + convenience="$convenience $ladir/$objdir/$old_library"
  62904. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  62905. + tmp_libs=
  62906. + for deplib in $dependency_libs; do
  62907. + deplibs="$deplib $deplibs"
  62908. + if $opt_duplicate_deps ; then
  62909. + case "$tmp_libs " in
  62910. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  62911. + esac
  62912. + fi
  62913. + tmp_libs="$tmp_libs $deplib"
  62914. + done
  62915. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  62916. + func_fatal_error "\`$lib' is not a convenience library"
  62917. + fi
  62918. + continue
  62919. + fi # $pass = conv
  62920. +
  62921. +
  62922. + # Get the name of the library we link against.
  62923. + linklib=
  62924. + for l in $old_library $library_names; do
  62925. + linklib="$l"
  62926. + done
  62927. + if test -z "$linklib"; then
  62928. + func_fatal_error "cannot find name of link library for \`$lib'"
  62929. + fi
  62930. +
  62931. + # This library was specified with -dlopen.
  62932. + if test "$pass" = dlopen; then
  62933. + if test -z "$libdir"; then
  62934. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  62935. + fi
  62936. + if test -z "$dlname" ||
  62937. + test "$dlopen_support" != yes ||
  62938. + test "$build_libtool_libs" = no; then
  62939. + # If there is no dlname, no dlopen support or we're linking
  62940. + # statically, we need to preload. We also need to preload any
  62941. + # dependent libraries so libltdl's deplib preloader doesn't
  62942. + # bomb out in the load deplibs phase.
  62943. + dlprefiles="$dlprefiles $lib $dependency_libs"
  62944. + else
  62945. + newdlfiles="$newdlfiles $lib"
  62946. + fi
  62947. + continue
  62948. + fi # $pass = dlopen
  62949. +
  62950. + # We need an absolute path.
  62951. + case $ladir in
  62952. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  62953. + *)
  62954. + abs_ladir=`cd "$ladir" && pwd`
  62955. + if test -z "$abs_ladir"; then
  62956. + func_warning "cannot determine absolute directory name of \`$ladir'"
  62957. + func_warning "passing it literally to the linker, although it might fail"
  62958. + abs_ladir="$ladir"
  62959. + fi
  62960. + ;;
  62961. + esac
  62962. + func_basename "$lib"
  62963. + laname="$func_basename_result"
  62964. +
  62965. + # Find the relevant object directory and library name.
  62966. + if test "X$installed" = Xyes; then
  62967. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  62968. + func_warning "library \`$lib' was moved."
  62969. + dir="$ladir"
  62970. + absdir="$abs_ladir"
  62971. + libdir="$abs_ladir"
  62972. + else
  62973. + dir="$libdir"
  62974. + absdir="$libdir"
  62975. + fi
  62976. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  62977. + else
  62978. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  62979. + dir="$ladir"
  62980. + absdir="$abs_ladir"
  62981. + # Remove this search path later
  62982. + notinst_path="$notinst_path $abs_ladir"
  62983. + else
  62984. + dir="$ladir/$objdir"
  62985. + absdir="$abs_ladir/$objdir"
  62986. + # Remove this search path later
  62987. + notinst_path="$notinst_path $abs_ladir"
  62988. + fi
  62989. + fi # $installed = yes
  62990. + func_stripname 'lib' '.la' "$laname"
  62991. + name=$func_stripname_result
  62992. +
  62993. + # This library was specified with -dlpreopen.
  62994. + if test "$pass" = dlpreopen; then
  62995. + if test -z "$libdir" && test "$linkmode" = prog; then
  62996. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  62997. + fi
  62998. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  62999. + # are required to link).
  63000. + if test -n "$old_library"; then
  63001. + newdlprefiles="$newdlprefiles $dir/$old_library"
  63002. + # Keep a list of preopened convenience libraries to check
  63003. + # that they are being used correctly in the link pass.
  63004. + test -z "$libdir" && \
  63005. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  63006. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  63007. + elif test -n "$dlname"; then
  63008. + newdlprefiles="$newdlprefiles $dir/$dlname"
  63009. + else
  63010. + newdlprefiles="$newdlprefiles $dir/$linklib"
  63011. + fi
  63012. + fi # $pass = dlpreopen
  63013. +
  63014. + if test -z "$libdir"; then
  63015. + # Link the convenience library
  63016. + if test "$linkmode" = lib; then
  63017. + deplibs="$dir/$old_library $deplibs"
  63018. + elif test "$linkmode,$pass" = "prog,link"; then
  63019. + compile_deplibs="$dir/$old_library $compile_deplibs"
  63020. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  63021. + else
  63022. + deplibs="$lib $deplibs" # used for prog,scan pass
  63023. + fi
  63024. + continue
  63025. + fi
  63026. +
  63027. +
  63028. + if test "$linkmode" = prog && test "$pass" != link; then
  63029. + newlib_search_path="$newlib_search_path $ladir"
  63030. + deplibs="$lib $deplibs"
  63031. +
  63032. + linkalldeplibs=no
  63033. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  63034. + test "$build_libtool_libs" = no; then
  63035. + linkalldeplibs=yes
  63036. + fi
  63037. +
  63038. + tmp_libs=
  63039. + for deplib in $dependency_libs; do
  63040. + case $deplib in
  63041. + -L*) func_stripname '-L' '' "$deplib"
  63042. + newlib_search_path="$newlib_search_path $func_stripname_result"
  63043. + ;;
  63044. + esac
  63045. + # Need to link against all dependency_libs?
  63046. + if test "$linkalldeplibs" = yes; then
  63047. + deplibs="$deplib $deplibs"
  63048. + else
  63049. + # Need to hardcode shared library paths
  63050. + # or/and link against static libraries
  63051. + newdependency_libs="$deplib $newdependency_libs"
  63052. + fi
  63053. + if $opt_duplicate_deps ; then
  63054. + case "$tmp_libs " in
  63055. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  63056. + esac
  63057. + fi
  63058. + tmp_libs="$tmp_libs $deplib"
  63059. + done # for deplib
  63060. + continue
  63061. + fi # $linkmode = prog...
  63062. +
  63063. + if test "$linkmode,$pass" = "prog,link"; then
  63064. + if test -n "$library_names" &&
  63065. + { { test "$prefer_static_libs" = no ||
  63066. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  63067. + test -z "$old_library"; }; then
  63068. + # We need to hardcode the library path
  63069. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  63070. + # Make sure the rpath contains only unique directories.
  63071. + case "$temp_rpath:" in
  63072. + *"$absdir:"*) ;;
  63073. + *) temp_rpath="$temp_rpath$absdir:" ;;
  63074. + esac
  63075. + fi
  63076. +
  63077. + # Hardcode the library path.
  63078. + # Skip directories that are in the system default run-time
  63079. + # search path.
  63080. + case " $sys_lib_dlsearch_path " in
  63081. + *" $absdir "*) ;;
  63082. + *)
  63083. + case "$compile_rpath " in
  63084. + *" $absdir "*) ;;
  63085. + *) compile_rpath="$compile_rpath $absdir"
  63086. + esac
  63087. + ;;
  63088. + esac
  63089. + case " $sys_lib_dlsearch_path " in
  63090. + *" $libdir "*) ;;
  63091. + *)
  63092. + case "$finalize_rpath " in
  63093. + *" $libdir "*) ;;
  63094. + *) finalize_rpath="$finalize_rpath $libdir"
  63095. + esac
  63096. + ;;
  63097. + esac
  63098. + fi # $linkmode,$pass = prog,link...
  63099. +
  63100. + if test "$alldeplibs" = yes &&
  63101. + { test "$deplibs_check_method" = pass_all ||
  63102. + { test "$build_libtool_libs" = yes &&
  63103. + test -n "$library_names"; }; }; then
  63104. + # We only need to search for static libraries
  63105. + continue
  63106. + fi
  63107. + fi
  63108. +
  63109. + link_static=no # Whether the deplib will be linked statically
  63110. + use_static_libs=$prefer_static_libs
  63111. + if test "$use_static_libs" = built && test "$installed" = yes; then
  63112. + use_static_libs=no
  63113. + fi
  63114. + if test -n "$library_names" &&
  63115. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  63116. + case $host in
  63117. + *cygwin* | *mingw* | *cegcc*)
  63118. + # No point in relinking DLLs because paths are not encoded
  63119. + notinst_deplibs="$notinst_deplibs $lib"
  63120. + need_relink=no
  63121. + ;;
  63122. + *)
  63123. + if test "$installed" = no; then
  63124. + notinst_deplibs="$notinst_deplibs $lib"
  63125. + need_relink=yes
  63126. + fi
  63127. + ;;
  63128. + esac
  63129. + # This is a shared library
  63130. +
  63131. + # Warn about portability, can't link against -module's on some
  63132. + # systems (darwin). Don't bleat about dlopened modules though!
  63133. + dlopenmodule=""
  63134. + for dlpremoduletest in $dlprefiles; do
  63135. + if test "X$dlpremoduletest" = "X$lib"; then
  63136. + dlopenmodule="$dlpremoduletest"
  63137. + break
  63138. + fi
  63139. + done
  63140. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  63141. + $ECHO
  63142. + if test "$linkmode" = prog; then
  63143. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  63144. + else
  63145. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  63146. + fi
  63147. + $ECHO "*** $linklib is not portable!"
  63148. + fi
  63149. + if test "$linkmode" = lib &&
  63150. + test "$hardcode_into_libs" = yes; then
  63151. + # Hardcode the library path.
  63152. + # Skip directories that are in the system default run-time
  63153. + # search path.
  63154. + case " $sys_lib_dlsearch_path " in
  63155. + *" $absdir "*) ;;
  63156. + *)
  63157. + case "$compile_rpath " in
  63158. + *" $absdir "*) ;;
  63159. + *) compile_rpath="$compile_rpath $absdir"
  63160. + esac
  63161. + ;;
  63162. + esac
  63163. + case " $sys_lib_dlsearch_path " in
  63164. + *" $libdir "*) ;;
  63165. + *)
  63166. + case "$finalize_rpath " in
  63167. + *" $libdir "*) ;;
  63168. + *) finalize_rpath="$finalize_rpath $libdir"
  63169. + esac
  63170. + ;;
  63171. + esac
  63172. + fi
  63173. +
  63174. + if test -n "$old_archive_from_expsyms_cmds"; then
  63175. + # figure out the soname
  63176. + set dummy $library_names
  63177. + shift
  63178. + realname="$1"
  63179. + shift
  63180. + libname=`eval "\\$ECHO \"$libname_spec\""`
  63181. + # use dlname if we got it. it's perfectly good, no?
  63182. + if test -n "$dlname"; then
  63183. + soname="$dlname"
  63184. + elif test -n "$soname_spec"; then
  63185. + # bleh windows
  63186. + case $host in
  63187. + *cygwin* | mingw* | *cegcc*)
  63188. + func_arith $current - $age
  63189. + major=$func_arith_result
  63190. + versuffix="-$major"
  63191. + ;;
  63192. + esac
  63193. + eval soname=\"$soname_spec\"
  63194. + else
  63195. + soname="$realname"
  63196. + fi
  63197. +
  63198. + # Make a new name for the extract_expsyms_cmds to use
  63199. + soroot="$soname"
  63200. + func_basename "$soroot"
  63201. + soname="$func_basename_result"
  63202. + func_stripname 'lib' '.dll' "$soname"
  63203. + newlib=libimp-$func_stripname_result.a
  63204. +
  63205. + # If the library has no export list, then create one now
  63206. + if test -f "$output_objdir/$soname-def"; then :
  63207. + else
  63208. + func_verbose "extracting exported symbol list from \`$soname'"
  63209. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  63210. + fi
  63211. +
  63212. + # Create $newlib
  63213. + if test -f "$output_objdir/$newlib"; then :; else
  63214. + func_verbose "generating import library for \`$soname'"
  63215. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  63216. + fi
  63217. + # make sure the library variables are pointing to the new library
  63218. + dir=$output_objdir
  63219. + linklib=$newlib
  63220. + fi # test -n "$old_archive_from_expsyms_cmds"
  63221. +
  63222. + if test "$linkmode" = prog || test "$mode" != relink; then
  63223. + add_shlibpath=
  63224. + add_dir=
  63225. + add=
  63226. + lib_linked=yes
  63227. + case $hardcode_action in
  63228. + immediate | unsupported)
  63229. + if test "$hardcode_direct" = no; then
  63230. + add="$dir/$linklib"
  63231. + case $host in
  63232. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  63233. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  63234. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  63235. + *-*-unixware7*) add_dir="-L$dir" ;;
  63236. + *-*-darwin* )
  63237. + # if the lib is a (non-dlopened) module then we can not
  63238. + # link against it, someone is ignoring the earlier warnings
  63239. + if /usr/bin/file -L $add 2> /dev/null |
  63240. + $GREP ": [^:]* bundle" >/dev/null ; then
  63241. + if test "X$dlopenmodule" != "X$lib"; then
  63242. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  63243. + if test -z "$old_library" ; then
  63244. + $ECHO
  63245. + $ECHO "*** And there doesn't seem to be a static archive available"
  63246. + $ECHO "*** The link will probably fail, sorry"
  63247. + else
  63248. + add="$dir/$old_library"
  63249. + fi
  63250. + elif test -n "$old_library"; then
  63251. + add="$dir/$old_library"
  63252. + fi
  63253. + fi
  63254. + esac
  63255. + elif test "$hardcode_minus_L" = no; then
  63256. + case $host in
  63257. + *-*-sunos*) add_shlibpath="$dir" ;;
  63258. + esac
  63259. + add_dir="-L$dir"
  63260. + add="-l$name"
  63261. + elif test "$hardcode_shlibpath_var" = no; then
  63262. + add_shlibpath="$dir"
  63263. + add="-l$name"
  63264. + else
  63265. + lib_linked=no
  63266. + fi
  63267. + ;;
  63268. + relink)
  63269. + if test "$hardcode_direct" = yes &&
  63270. + test "$hardcode_direct_absolute" = no; then
  63271. + add="$dir/$linklib"
  63272. + elif test "$hardcode_minus_L" = yes; then
  63273. + add_dir="-L$dir"
  63274. + # Try looking first in the location we're being installed to.
  63275. + if test -n "$inst_prefix_dir"; then
  63276. + case $libdir in
  63277. + [\\/]*)
  63278. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  63279. + ;;
  63280. + esac
  63281. + fi
  63282. + add="-l$name"
  63283. + elif test "$hardcode_shlibpath_var" = yes; then
  63284. + add_shlibpath="$dir"
  63285. + add="-l$name"
  63286. + else
  63287. + lib_linked=no
  63288. + fi
  63289. + ;;
  63290. + *) lib_linked=no ;;
  63291. + esac
  63292. +
  63293. + if test "$lib_linked" != yes; then
  63294. + func_fatal_configuration "unsupported hardcode properties"
  63295. + fi
  63296. +
  63297. + if test -n "$add_shlibpath"; then
  63298. + case :$compile_shlibpath: in
  63299. + *":$add_shlibpath:"*) ;;
  63300. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  63301. + esac
  63302. + fi
  63303. + if test "$linkmode" = prog; then
  63304. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  63305. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  63306. + else
  63307. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  63308. + test -n "$add" && deplibs="$add $deplibs"
  63309. + if test "$hardcode_direct" != yes &&
  63310. + test "$hardcode_minus_L" != yes &&
  63311. + test "$hardcode_shlibpath_var" = yes; then
  63312. + case :$finalize_shlibpath: in
  63313. + *":$libdir:"*) ;;
  63314. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  63315. + esac
  63316. + fi
  63317. + fi
  63318. + fi
  63319. +
  63320. + if test "$linkmode" = prog || test "$mode" = relink; then
  63321. + add_shlibpath=
  63322. + add_dir=
  63323. + add=
  63324. + # Finalize command for both is simple: just hardcode it.
  63325. + if test "$hardcode_direct" = yes &&
  63326. + test "$hardcode_direct_absolute" = no; then
  63327. + add="$libdir/$linklib"
  63328. + elif test "$hardcode_minus_L" = yes; then
  63329. + add_dir="-L$libdir"
  63330. + add="-l$name"
  63331. + elif test "$hardcode_shlibpath_var" = yes; then
  63332. + case :$finalize_shlibpath: in
  63333. + *":$libdir:"*) ;;
  63334. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  63335. + esac
  63336. + add="-l$name"
  63337. + elif test "$hardcode_automatic" = yes; then
  63338. + if test -n "$inst_prefix_dir" &&
  63339. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  63340. + add="$inst_prefix_dir$libdir/$linklib"
  63341. + else
  63342. + add="$libdir/$linklib"
  63343. + fi
  63344. + else
  63345. + # We cannot seem to hardcode it, guess we'll fake it.
  63346. + add_dir="-L$libdir"
  63347. + # Try looking first in the location we're being installed to.
  63348. + if test -n "$inst_prefix_dir"; then
  63349. + case $libdir in
  63350. + [\\/]*)
  63351. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  63352. + ;;
  63353. + esac
  63354. + fi
  63355. + add="-l$name"
  63356. + fi
  63357. +
  63358. + if test "$linkmode" = prog; then
  63359. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  63360. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  63361. + else
  63362. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  63363. + test -n "$add" && deplibs="$add $deplibs"
  63364. + fi
  63365. + fi
  63366. + elif test "$linkmode" = prog; then
  63367. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  63368. + # is not unsupported. This is valid on all known static and
  63369. + # shared platforms.
  63370. + if test "$hardcode_direct" != unsupported; then
  63371. + test -n "$old_library" && linklib="$old_library"
  63372. + compile_deplibs="$dir/$linklib $compile_deplibs"
  63373. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  63374. + else
  63375. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  63376. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  63377. + fi
  63378. + elif test "$build_libtool_libs" = yes; then
  63379. + # Not a shared library
  63380. + if test "$deplibs_check_method" != pass_all; then
  63381. + # We're trying link a shared library against a static one
  63382. + # but the system doesn't support it.
  63383. +
  63384. + # Just print a warning and add the library to dependency_libs so
  63385. + # that the program can be linked against the static library.
  63386. + $ECHO
  63387. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  63388. + $ECHO "*** I have the capability to make that library automatically link in when"
  63389. + $ECHO "*** you link to this library. But I can only do this if you have a"
  63390. + $ECHO "*** shared version of the library, which you do not appear to have."
  63391. + if test "$module" = yes; then
  63392. + $ECHO "*** But as you try to build a module library, libtool will still create "
  63393. + $ECHO "*** a static module, that should work as long as the dlopening application"
  63394. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  63395. + if test -z "$global_symbol_pipe"; then
  63396. + $ECHO
  63397. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  63398. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  63399. + $ECHO "*** not find such a program. So, this module is probably useless."
  63400. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  63401. + fi
  63402. + if test "$build_old_libs" = no; then
  63403. + build_libtool_libs=module
  63404. + build_old_libs=yes
  63405. + else
  63406. + build_libtool_libs=no
  63407. + fi
  63408. + fi
  63409. + else
  63410. + deplibs="$dir/$old_library $deplibs"
  63411. + link_static=yes
  63412. + fi
  63413. + fi # link shared/static library?
  63414. +
  63415. + if test "$linkmode" = lib; then
  63416. + if test -n "$dependency_libs" &&
  63417. + { test "$hardcode_into_libs" != yes ||
  63418. + test "$build_old_libs" = yes ||
  63419. + test "$link_static" = yes; }; then
  63420. + # Extract -R from dependency_libs
  63421. + temp_deplibs=
  63422. + for libdir in $dependency_libs; do
  63423. + case $libdir in
  63424. + -R*) func_stripname '-R' '' "$libdir"
  63425. + temp_xrpath=$func_stripname_result
  63426. + case " $xrpath " in
  63427. + *" $temp_xrpath "*) ;;
  63428. + *) xrpath="$xrpath $temp_xrpath";;
  63429. + esac;;
  63430. + *) temp_deplibs="$temp_deplibs $libdir";;
  63431. + esac
  63432. + done
  63433. + dependency_libs="$temp_deplibs"
  63434. + fi
  63435. +
  63436. + newlib_search_path="$newlib_search_path $absdir"
  63437. + # Link against this library
  63438. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  63439. + # ... and its dependency_libs
  63440. + tmp_libs=
  63441. + for deplib in $dependency_libs; do
  63442. + newdependency_libs="$deplib $newdependency_libs"
  63443. + if $opt_duplicate_deps ; then
  63444. + case "$tmp_libs " in
  63445. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  63446. + esac
  63447. + fi
  63448. + tmp_libs="$tmp_libs $deplib"
  63449. + done
  63450. +
  63451. + if test "$link_all_deplibs" != no; then
  63452. + # Add the search paths of all dependency libraries
  63453. + for deplib in $dependency_libs; do
  63454. + path=
  63455. + case $deplib in
  63456. + -L*) path="$deplib" ;;
  63457. + *.la)
  63458. + func_dirname "$deplib" "" "."
  63459. + dir="$func_dirname_result"
  63460. + # We need an absolute path.
  63461. + case $dir in
  63462. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  63463. + *)
  63464. + absdir=`cd "$dir" && pwd`
  63465. + if test -z "$absdir"; then
  63466. + func_warning "cannot determine absolute directory name of \`$dir'"
  63467. + absdir="$dir"
  63468. + fi
  63469. + ;;
  63470. + esac
  63471. + if $GREP "^installed=no" $deplib > /dev/null; then
  63472. + case $host in
  63473. + *-*-darwin*)
  63474. + depdepl=
  63475. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  63476. + if test -n "$deplibrary_names" ; then
  63477. + for tmp in $deplibrary_names ; do
  63478. + depdepl=$tmp
  63479. + done
  63480. + if test -f "$absdir/$objdir/$depdepl" ; then
  63481. + depdepl="$absdir/$objdir/$depdepl"
  63482. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  63483. + if test -z "$darwin_install_name"; then
  63484. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  63485. + fi
  63486. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  63487. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  63488. + path=
  63489. + fi
  63490. + fi
  63491. + ;;
  63492. + *)
  63493. + path="-L$absdir/$objdir"
  63494. + ;;
  63495. + esac
  63496. + else
  63497. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  63498. + test -z "$libdir" && \
  63499. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  63500. + test "$absdir" != "$libdir" && \
  63501. + func_warning "\`$deplib' seems to be moved"
  63502. +
  63503. + path="-L$absdir"
  63504. + fi
  63505. + ;;
  63506. + esac
  63507. + case " $deplibs " in
  63508. + *" $path "*) ;;
  63509. + *) deplibs="$path $deplibs" ;;
  63510. + esac
  63511. + done
  63512. + fi # link_all_deplibs != no
  63513. + fi # linkmode = lib
  63514. + done # for deplib in $libs
  63515. + if test "$pass" = link; then
  63516. + if test "$linkmode" = "prog"; then
  63517. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  63518. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  63519. + else
  63520. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  63521. + fi
  63522. + fi
  63523. + dependency_libs="$newdependency_libs"
  63524. + if test "$pass" = dlpreopen; then
  63525. + # Link the dlpreopened libraries before other libraries
  63526. + for deplib in $save_deplibs; do
  63527. + deplibs="$deplib $deplibs"
  63528. + done
  63529. + fi
  63530. + if test "$pass" != dlopen; then
  63531. + if test "$pass" != conv; then
  63532. + # Make sure lib_search_path contains only unique directories.
  63533. + lib_search_path=
  63534. + for dir in $newlib_search_path; do
  63535. + case "$lib_search_path " in
  63536. + *" $dir "*) ;;
  63537. + *) lib_search_path="$lib_search_path $dir" ;;
  63538. + esac
  63539. + done
  63540. + newlib_search_path=
  63541. + fi
  63542. +
  63543. + if test "$linkmode,$pass" != "prog,link"; then
  63544. + vars="deplibs"
  63545. + else
  63546. + vars="compile_deplibs finalize_deplibs"
  63547. + fi
  63548. + for var in $vars dependency_libs; do
  63549. + # Add libraries to $var in reverse order
  63550. + eval tmp_libs=\"\$$var\"
  63551. + new_libs=
  63552. + for deplib in $tmp_libs; do
  63553. + # FIXME: Pedantically, this is the right thing to do, so
  63554. + # that some nasty dependency loop isn't accidentally
  63555. + # broken:
  63556. + #new_libs="$deplib $new_libs"
  63557. + # Pragmatically, this seems to cause very few problems in
  63558. + # practice:
  63559. + case $deplib in
  63560. + -L*) new_libs="$deplib $new_libs" ;;
  63561. + -R*) ;;
  63562. + *)
  63563. + # And here is the reason: when a library appears more
  63564. + # than once as an explicit dependence of a library, or
  63565. + # is implicitly linked in more than once by the
  63566. + # compiler, it is considered special, and multiple
  63567. + # occurrences thereof are not removed. Compare this
  63568. + # with having the same library being listed as a
  63569. + # dependency of multiple other libraries: in this case,
  63570. + # we know (pedantically, we assume) the library does not
  63571. + # need to be listed more than once, so we keep only the
  63572. + # last copy. This is not always right, but it is rare
  63573. + # enough that we require users that really mean to play
  63574. + # such unportable linking tricks to link the library
  63575. + # using -Wl,-lname, so that libtool does not consider it
  63576. + # for duplicate removal.
  63577. + case " $specialdeplibs " in
  63578. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  63579. + *)
  63580. + case " $new_libs " in
  63581. + *" $deplib "*) ;;
  63582. + *) new_libs="$deplib $new_libs" ;;
  63583. + esac
  63584. + ;;
  63585. + esac
  63586. + ;;
  63587. + esac
  63588. + done
  63589. + tmp_libs=
  63590. + for deplib in $new_libs; do
  63591. + case $deplib in
  63592. + -L*)
  63593. + case " $tmp_libs " in
  63594. + *" $deplib "*) ;;
  63595. + *) tmp_libs="$tmp_libs $deplib" ;;
  63596. + esac
  63597. + ;;
  63598. + *) tmp_libs="$tmp_libs $deplib" ;;
  63599. + esac
  63600. + done
  63601. + eval $var=\"$tmp_libs\"
  63602. + done # for var
  63603. + fi
  63604. + # Last step: remove runtime libs from dependency_libs
  63605. + # (they stay in deplibs)
  63606. + tmp_libs=
  63607. + for i in $dependency_libs ; do
  63608. + case " $predeps $postdeps $compiler_lib_search_path " in
  63609. + *" $i "*)
  63610. + i=""
  63611. + ;;
  63612. + esac
  63613. + if test -n "$i" ; then
  63614. + tmp_libs="$tmp_libs $i"
  63615. + fi
  63616. + done
  63617. + dependency_libs=$tmp_libs
  63618. + done # for pass
  63619. + if test "$linkmode" = prog; then
  63620. + dlfiles="$newdlfiles"
  63621. + fi
  63622. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  63623. + dlprefiles="$newdlprefiles"
  63624. + fi
  63625. +
  63626. + case $linkmode in
  63627. + oldlib)
  63628. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  63629. + func_warning "\`-dlopen' is ignored for archives"
  63630. + fi
  63631. +
  63632. + case " $deplibs" in
  63633. + *\ -l* | *\ -L*)
  63634. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  63635. + esac
  63636. +
  63637. + test -n "$rpath" && \
  63638. + func_warning "\`-rpath' is ignored for archives"
  63639. +
  63640. + test -n "$xrpath" && \
  63641. + func_warning "\`-R' is ignored for archives"
  63642. +
  63643. + test -n "$vinfo" && \
  63644. + func_warning "\`-version-info/-version-number' is ignored for archives"
  63645. +
  63646. + test -n "$release" && \
  63647. + func_warning "\`-release' is ignored for archives"
  63648. +
  63649. + test -n "$export_symbols$export_symbols_regex" && \
  63650. + func_warning "\`-export-symbols' is ignored for archives"
  63651. +
  63652. + # Now set the variables for building old libraries.
  63653. + build_libtool_libs=no
  63654. + oldlibs="$output"
  63655. + objs="$objs$old_deplibs"
  63656. + ;;
  63657. +
  63658. + lib)
  63659. + # Make sure we only generate libraries of the form `libNAME.la'.
  63660. + case $outputname in
  63661. + lib*)
  63662. + func_stripname 'lib' '.la' "$outputname"
  63663. + name=$func_stripname_result
  63664. + eval shared_ext=\"$shrext_cmds\"
  63665. + eval libname=\"$libname_spec\"
  63666. + ;;
  63667. + *)
  63668. + test "$module" = no && \
  63669. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  63670. +
  63671. + if test "$need_lib_prefix" != no; then
  63672. + # Add the "lib" prefix for modules if required
  63673. + func_stripname '' '.la' "$outputname"
  63674. + name=$func_stripname_result
  63675. + eval shared_ext=\"$shrext_cmds\"
  63676. + eval libname=\"$libname_spec\"
  63677. + else
  63678. + func_stripname '' '.la' "$outputname"
  63679. + libname=$func_stripname_result
  63680. + fi
  63681. + ;;
  63682. + esac
  63683. +
  63684. + if test -n "$objs"; then
  63685. + if test "$deplibs_check_method" != pass_all; then
  63686. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  63687. + else
  63688. + $ECHO
  63689. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  63690. + $ECHO "*** objects $objs is not portable!"
  63691. + libobjs="$libobjs $objs"
  63692. + fi
  63693. + fi
  63694. +
  63695. + test "$dlself" != no && \
  63696. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  63697. +
  63698. + set dummy $rpath
  63699. + shift
  63700. + test "$#" -gt 1 && \
  63701. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  63702. +
  63703. + install_libdir="$1"
  63704. +
  63705. + oldlibs=
  63706. + if test -z "$rpath"; then
  63707. + if test "$build_libtool_libs" = yes; then
  63708. + # Building a libtool convenience library.
  63709. + # Some compilers have problems with a `.al' extension so
  63710. + # convenience libraries should have the same extension an
  63711. + # archive normally would.
  63712. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  63713. + build_libtool_libs=convenience
  63714. + build_old_libs=yes
  63715. + fi
  63716. +
  63717. + test -n "$vinfo" && \
  63718. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  63719. +
  63720. + test -n "$release" && \
  63721. + func_warning "\`-release' is ignored for convenience libraries"
  63722. + else
  63723. +
  63724. + # Parse the version information argument.
  63725. + save_ifs="$IFS"; IFS=':'
  63726. + set dummy $vinfo 0 0 0
  63727. + shift
  63728. + IFS="$save_ifs"
  63729. +
  63730. + test -n "$7" && \
  63731. + func_fatal_help "too many parameters to \`-version-info'"
  63732. +
  63733. + # convert absolute version numbers to libtool ages
  63734. + # this retains compatibility with .la files and attempts
  63735. + # to make the code below a bit more comprehensible
  63736. +
  63737. + case $vinfo_number in
  63738. + yes)
  63739. + number_major="$1"
  63740. + number_minor="$2"
  63741. + number_revision="$3"
  63742. + #
  63743. + # There are really only two kinds -- those that
  63744. + # use the current revision as the major version
  63745. + # and those that subtract age and use age as
  63746. + # a minor version. But, then there is irix
  63747. + # which has an extra 1 added just for fun
  63748. + #
  63749. + case $version_type in
  63750. + darwin|linux|osf|windows|none)
  63751. + func_arith $number_major + $number_minor
  63752. + current=$func_arith_result
  63753. + age="$number_minor"
  63754. + revision="$number_revision"
  63755. + ;;
  63756. + freebsd-aout|freebsd-elf|sunos)
  63757. + current="$number_major"
  63758. + revision="$number_minor"
  63759. + age="0"
  63760. + ;;
  63761. + irix|nonstopux)
  63762. + func_arith $number_major + $number_minor
  63763. + current=$func_arith_result
  63764. + age="$number_minor"
  63765. + revision="$number_minor"
  63766. + lt_irix_increment=no
  63767. + ;;
  63768. + *)
  63769. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  63770. + ;;
  63771. + esac
  63772. + ;;
  63773. + no)
  63774. + current="$1"
  63775. + revision="$2"
  63776. + age="$3"
  63777. + ;;
  63778. + esac
  63779. +
  63780. + # Check that each of the things are valid numbers.
  63781. + case $current in
  63782. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  63783. + *)
  63784. + func_error "CURRENT \`$current' must be a nonnegative integer"
  63785. + func_fatal_error "\`$vinfo' is not valid version information"
  63786. + ;;
  63787. + esac
  63788. +
  63789. + case $revision in
  63790. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  63791. + *)
  63792. + func_error "REVISION \`$revision' must be a nonnegative integer"
  63793. + func_fatal_error "\`$vinfo' is not valid version information"
  63794. + ;;
  63795. + esac
  63796. +
  63797. + case $age in
  63798. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  63799. + *)
  63800. + func_error "AGE \`$age' must be a nonnegative integer"
  63801. + func_fatal_error "\`$vinfo' is not valid version information"
  63802. + ;;
  63803. + esac
  63804. +
  63805. + if test "$age" -gt "$current"; then
  63806. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  63807. + func_fatal_error "\`$vinfo' is not valid version information"
  63808. + fi
  63809. +
  63810. + # Calculate the version variables.
  63811. + major=
  63812. + versuffix=
  63813. + verstring=
  63814. + case $version_type in
  63815. + none) ;;
  63816. +
  63817. + darwin)
  63818. + # Like Linux, but with the current version available in
  63819. + # verstring for coding it into the library header
  63820. + func_arith $current - $age
  63821. + major=.$func_arith_result
  63822. + versuffix="$major.$age.$revision"
  63823. + # Darwin ld doesn't like 0 for these options...
  63824. + func_arith $current + 1
  63825. + minor_current=$func_arith_result
  63826. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  63827. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  63828. + ;;
  63829. +
  63830. + freebsd-aout)
  63831. + major=".$current"
  63832. + versuffix=".$current.$revision";
  63833. + ;;
  63834. +
  63835. + freebsd-elf)
  63836. + major=".$current"
  63837. + versuffix=".$current"
  63838. + ;;
  63839. +
  63840. + irix | nonstopux)
  63841. + if test "X$lt_irix_increment" = "Xno"; then
  63842. + func_arith $current - $age
  63843. + else
  63844. + func_arith $current - $age + 1
  63845. + fi
  63846. + major=$func_arith_result
  63847. +
  63848. + case $version_type in
  63849. + nonstopux) verstring_prefix=nonstopux ;;
  63850. + *) verstring_prefix=sgi ;;
  63851. + esac
  63852. + verstring="$verstring_prefix$major.$revision"
  63853. +
  63854. + # Add in all the interfaces that we are compatible with.
  63855. + loop=$revision
  63856. + while test "$loop" -ne 0; do
  63857. + func_arith $revision - $loop
  63858. + iface=$func_arith_result
  63859. + func_arith $loop - 1
  63860. + loop=$func_arith_result
  63861. + verstring="$verstring_prefix$major.$iface:$verstring"
  63862. + done
  63863. +
  63864. + # Before this point, $major must not contain `.'.
  63865. + major=.$major
  63866. + versuffix="$major.$revision"
  63867. + ;;
  63868. +
  63869. + linux)
  63870. + func_arith $current - $age
  63871. + major=.$func_arith_result
  63872. + versuffix="$major.$age.$revision"
  63873. + ;;
  63874. +
  63875. + osf)
  63876. + func_arith $current - $age
  63877. + major=.$func_arith_result
  63878. + versuffix=".$current.$age.$revision"
  63879. + verstring="$current.$age.$revision"
  63880. +
  63881. + # Add in all the interfaces that we are compatible with.
  63882. + loop=$age
  63883. + while test "$loop" -ne 0; do
  63884. + func_arith $current - $loop
  63885. + iface=$func_arith_result
  63886. + func_arith $loop - 1
  63887. + loop=$func_arith_result
  63888. + verstring="$verstring:${iface}.0"
  63889. + done
  63890. +
  63891. + # Make executables depend on our current version.
  63892. + verstring="$verstring:${current}.0"
  63893. + ;;
  63894. +
  63895. + qnx)
  63896. + major=".$current"
  63897. + versuffix=".$current"
  63898. + ;;
  63899. +
  63900. + sunos)
  63901. + major=".$current"
  63902. + versuffix=".$current.$revision"
  63903. + ;;
  63904. +
  63905. + windows)
  63906. + # Use '-' rather than '.', since we only want one
  63907. + # extension on DOS 8.3 filesystems.
  63908. + func_arith $current - $age
  63909. + major=$func_arith_result
  63910. + versuffix="-$major"
  63911. + ;;
  63912. +
  63913. + *)
  63914. + func_fatal_configuration "unknown library version type \`$version_type'"
  63915. + ;;
  63916. + esac
  63917. +
  63918. + # Clear the version info if we defaulted, and they specified a release.
  63919. + if test -z "$vinfo" && test -n "$release"; then
  63920. + major=
  63921. + case $version_type in
  63922. + darwin)
  63923. + # we can't check for "0.0" in archive_cmds due to quoting
  63924. + # problems, so we reset it completely
  63925. + verstring=
  63926. + ;;
  63927. + *)
  63928. + verstring="0.0"
  63929. + ;;
  63930. + esac
  63931. + if test "$need_version" = no; then
  63932. + versuffix=
  63933. + else
  63934. + versuffix=".0.0"
  63935. + fi
  63936. + fi
  63937. +
  63938. + # Remove version info from name if versioning should be avoided
  63939. + if test "$avoid_version" = yes && test "$need_version" = no; then
  63940. + major=
  63941. + versuffix=
  63942. + verstring=""
  63943. + fi
  63944. +
  63945. + # Check to see if the archive will have undefined symbols.
  63946. + if test "$allow_undefined" = yes; then
  63947. + if test "$allow_undefined_flag" = unsupported; then
  63948. + func_warning "undefined symbols not allowed in $host shared libraries"
  63949. + build_libtool_libs=no
  63950. + build_old_libs=yes
  63951. + fi
  63952. + else
  63953. + # Don't allow undefined symbols.
  63954. + allow_undefined_flag="$no_undefined_flag"
  63955. + fi
  63956. +
  63957. + fi
  63958. +
  63959. + func_generate_dlsyms "$libname" "$libname" "yes"
  63960. + libobjs="$libobjs $symfileobj"
  63961. + test "X$libobjs" = "X " && libobjs=
  63962. +
  63963. + if test "$mode" != relink; then
  63964. + # Remove our outputs, but don't remove object files since they
  63965. + # may have been created when compiling PIC objects.
  63966. + removelist=
  63967. + tempremovelist=`$ECHO "$output_objdir/*"`
  63968. + for p in $tempremovelist; do
  63969. + case $p in
  63970. + *.$objext | *.gcno)
  63971. + ;;
  63972. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  63973. + if test "X$precious_files_regex" != "X"; then
  63974. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  63975. + then
  63976. + continue
  63977. + fi
  63978. + fi
  63979. + removelist="$removelist $p"
  63980. + ;;
  63981. + *) ;;
  63982. + esac
  63983. + done
  63984. + test -n "$removelist" && \
  63985. + func_show_eval "${RM}r \$removelist"
  63986. + fi
  63987. +
  63988. + # Now set the variables for building old libraries.
  63989. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  63990. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  63991. +
  63992. + # Transform .lo files to .o files.
  63993. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  63994. + fi
  63995. +
  63996. + # Eliminate all temporary directories.
  63997. + #for path in $notinst_path; do
  63998. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  63999. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  64000. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  64001. + #done
  64002. +
  64003. + if test -n "$xrpath"; then
  64004. + # If the user specified any rpath flags, then add them.
  64005. + temp_xrpath=
  64006. + for libdir in $xrpath; do
  64007. + temp_xrpath="$temp_xrpath -R$libdir"
  64008. + case "$finalize_rpath " in
  64009. + *" $libdir "*) ;;
  64010. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  64011. + esac
  64012. + done
  64013. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  64014. + dependency_libs="$temp_xrpath $dependency_libs"
  64015. + fi
  64016. + fi
  64017. +
  64018. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  64019. + old_dlfiles="$dlfiles"
  64020. + dlfiles=
  64021. + for lib in $old_dlfiles; do
  64022. + case " $dlprefiles $dlfiles " in
  64023. + *" $lib "*) ;;
  64024. + *) dlfiles="$dlfiles $lib" ;;
  64025. + esac
  64026. + done
  64027. +
  64028. + # Make sure dlprefiles contains only unique files
  64029. + old_dlprefiles="$dlprefiles"
  64030. + dlprefiles=
  64031. + for lib in $old_dlprefiles; do
  64032. + case "$dlprefiles " in
  64033. + *" $lib "*) ;;
  64034. + *) dlprefiles="$dlprefiles $lib" ;;
  64035. + esac
  64036. + done
  64037. +
  64038. + if test "$build_libtool_libs" = yes; then
  64039. + if test -n "$rpath"; then
  64040. + case $host in
  64041. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  64042. + # these systems don't actually have a c library (as such)!
  64043. + ;;
  64044. + *-*-rhapsody* | *-*-darwin1.[012])
  64045. + # Rhapsody C library is in the System framework
  64046. + deplibs="$deplibs System.ltframework"
  64047. + ;;
  64048. + *-*-netbsd*)
  64049. + # Don't link with libc until the a.out ld.so is fixed.
  64050. + ;;
  64051. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  64052. + # Do not include libc due to us having libc/libc_r.
  64053. + ;;
  64054. + *-*-sco3.2v5* | *-*-sco5v6*)
  64055. + # Causes problems with __ctype
  64056. + ;;
  64057. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  64058. + # Compiler inserts libc in the correct place for threads to work
  64059. + ;;
  64060. + *)
  64061. + # Add libc to deplibs on all other systems if necessary.
  64062. + if test "$build_libtool_need_lc" = "yes"; then
  64063. + deplibs="$deplibs -lc"
  64064. + fi
  64065. + ;;
  64066. + esac
  64067. + fi
  64068. +
  64069. + # Transform deplibs into only deplibs that can be linked in shared.
  64070. + name_save=$name
  64071. + libname_save=$libname
  64072. + release_save=$release
  64073. + versuffix_save=$versuffix
  64074. + major_save=$major
  64075. + # I'm not sure if I'm treating the release correctly. I think
  64076. + # release should show up in the -l (ie -lgmp5) so we don't want to
  64077. + # add it in twice. Is that correct?
  64078. + release=""
  64079. + versuffix=""
  64080. + major=""
  64081. + newdeplibs=
  64082. + droppeddeps=no
  64083. + case $deplibs_check_method in
  64084. + pass_all)
  64085. + # Don't check for shared/static. Everything works.
  64086. + # This might be a little naive. We might want to check
  64087. + # whether the library exists or not. But this is on
  64088. + # osf3 & osf4 and I'm not really sure... Just
  64089. + # implementing what was already the behavior.
  64090. + newdeplibs=$deplibs
  64091. + ;;
  64092. + test_compile)
  64093. + # This code stresses the "libraries are programs" paradigm to its
  64094. + # limits. Maybe even breaks it. We compile a program, linking it
  64095. + # against the deplibs as a proxy for the library. Then we can check
  64096. + # whether they linked in statically or dynamically with ldd.
  64097. + $opt_dry_run || $RM conftest.c
  64098. + cat > conftest.c <<EOF
  64099. + int main() { return 0; }
  64100. +EOF
  64101. + $opt_dry_run || $RM conftest
  64102. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  64103. + ldd_output=`ldd conftest`
  64104. + for i in $deplibs; do
  64105. + case $i in
  64106. + -l*)
  64107. + func_stripname -l '' "$i"
  64108. + name=$func_stripname_result
  64109. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  64110. + case " $predeps $postdeps " in
  64111. + *" $i "*)
  64112. + newdeplibs="$newdeplibs $i"
  64113. + i=""
  64114. + ;;
  64115. + esac
  64116. + fi
  64117. + if test -n "$i" ; then
  64118. + libname=`eval "\\$ECHO \"$libname_spec\""`
  64119. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  64120. + set dummy $deplib_matches; shift
  64121. + deplib_match=$1
  64122. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  64123. + newdeplibs="$newdeplibs $i"
  64124. + else
  64125. + droppeddeps=yes
  64126. + $ECHO
  64127. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  64128. + $ECHO "*** I have the capability to make that library automatically link in when"
  64129. + $ECHO "*** you link to this library. But I can only do this if you have a"
  64130. + $ECHO "*** shared version of the library, which I believe you do not have"
  64131. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  64132. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  64133. + fi
  64134. + fi
  64135. + ;;
  64136. + *)
  64137. + newdeplibs="$newdeplibs $i"
  64138. + ;;
  64139. + esac
  64140. + done
  64141. + else
  64142. + # Error occurred in the first compile. Let's try to salvage
  64143. + # the situation: Compile a separate program for each library.
  64144. + for i in $deplibs; do
  64145. + case $i in
  64146. + -l*)
  64147. + func_stripname -l '' "$i"
  64148. + name=$func_stripname_result
  64149. + $opt_dry_run || $RM conftest
  64150. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  64151. + ldd_output=`ldd conftest`
  64152. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  64153. + case " $predeps $postdeps " in
  64154. + *" $i "*)
  64155. + newdeplibs="$newdeplibs $i"
  64156. + i=""
  64157. + ;;
  64158. + esac
  64159. + fi
  64160. + if test -n "$i" ; then
  64161. + libname=`eval "\\$ECHO \"$libname_spec\""`
  64162. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  64163. + set dummy $deplib_matches; shift
  64164. + deplib_match=$1
  64165. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  64166. + newdeplibs="$newdeplibs $i"
  64167. + else
  64168. + droppeddeps=yes
  64169. + $ECHO
  64170. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  64171. + $ECHO "*** I have the capability to make that library automatically link in when"
  64172. + $ECHO "*** you link to this library. But I can only do this if you have a"
  64173. + $ECHO "*** shared version of the library, which you do not appear to have"
  64174. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  64175. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  64176. + fi
  64177. + fi
  64178. + else
  64179. + droppeddeps=yes
  64180. + $ECHO
  64181. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  64182. + $ECHO "*** make it link in! You will probably need to install it or some"
  64183. + $ECHO "*** library that it depends on before this library will be fully"
  64184. + $ECHO "*** functional. Installing it before continuing would be even better."
  64185. + fi
  64186. + ;;
  64187. + *)
  64188. + newdeplibs="$newdeplibs $i"
  64189. + ;;
  64190. + esac
  64191. + done
  64192. + fi
  64193. + ;;
  64194. + file_magic*)
  64195. + set dummy $deplibs_check_method; shift
  64196. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  64197. + for a_deplib in $deplibs; do
  64198. + case $a_deplib in
  64199. + -l*)
  64200. + func_stripname -l '' "$a_deplib"
  64201. + name=$func_stripname_result
  64202. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  64203. + case " $predeps $postdeps " in
  64204. + *" $a_deplib "*)
  64205. + newdeplibs="$newdeplibs $a_deplib"
  64206. + a_deplib=""
  64207. + ;;
  64208. + esac
  64209. + fi
  64210. + if test -n "$a_deplib" ; then
  64211. + libname=`eval "\\$ECHO \"$libname_spec\""`
  64212. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  64213. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  64214. + for potent_lib in $potential_libs; do
  64215. + # Follow soft links.
  64216. + if ls -lLd "$potent_lib" 2>/dev/null |
  64217. + $GREP " -> " >/dev/null; then
  64218. + continue
  64219. + fi
  64220. + # The statement above tries to avoid entering an
  64221. + # endless loop below, in case of cyclic links.
  64222. + # We might still enter an endless loop, since a link
  64223. + # loop can be closed while we follow links,
  64224. + # but so what?
  64225. + potlib="$potent_lib"
  64226. + while test -h "$potlib" 2>/dev/null; do
  64227. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  64228. + case $potliblink in
  64229. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  64230. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  64231. + esac
  64232. + done
  64233. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  64234. + $SED -e 10q |
  64235. + $EGREP "$file_magic_regex" > /dev/null; then
  64236. + newdeplibs="$newdeplibs $a_deplib"
  64237. + a_deplib=""
  64238. + break 2
  64239. + fi
  64240. + done
  64241. + done
  64242. + fi
  64243. + if test -n "$a_deplib" ; then
  64244. + droppeddeps=yes
  64245. + $ECHO
  64246. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  64247. + $ECHO "*** I have the capability to make that library automatically link in when"
  64248. + $ECHO "*** you link to this library. But I can only do this if you have a"
  64249. + $ECHO "*** shared version of the library, which you do not appear to have"
  64250. + $ECHO "*** because I did check the linker path looking for a file starting"
  64251. + if test -z "$potlib" ; then
  64252. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  64253. + else
  64254. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  64255. + $ECHO "*** using a file magic. Last file checked: $potlib"
  64256. + fi
  64257. + fi
  64258. + ;;
  64259. + *)
  64260. + # Add a -L argument.
  64261. + newdeplibs="$newdeplibs $a_deplib"
  64262. + ;;
  64263. + esac
  64264. + done # Gone through all deplibs.
  64265. + ;;
  64266. + match_pattern*)
  64267. + set dummy $deplibs_check_method; shift
  64268. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  64269. + for a_deplib in $deplibs; do
  64270. + case $a_deplib in
  64271. + -l*)
  64272. + func_stripname -l '' "$a_deplib"
  64273. + name=$func_stripname_result
  64274. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  64275. + case " $predeps $postdeps " in
  64276. + *" $a_deplib "*)
  64277. + newdeplibs="$newdeplibs $a_deplib"
  64278. + a_deplib=""
  64279. + ;;
  64280. + esac
  64281. + fi
  64282. + if test -n "$a_deplib" ; then
  64283. + libname=`eval "\\$ECHO \"$libname_spec\""`
  64284. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  64285. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  64286. + for potent_lib in $potential_libs; do
  64287. + potlib="$potent_lib" # see symlink-check above in file_magic test
  64288. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  64289. + $EGREP "$match_pattern_regex" > /dev/null; then
  64290. + newdeplibs="$newdeplibs $a_deplib"
  64291. + a_deplib=""
  64292. + break 2
  64293. + fi
  64294. + done
  64295. + done
  64296. + fi
  64297. + if test -n "$a_deplib" ; then
  64298. + droppeddeps=yes
  64299. + $ECHO
  64300. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  64301. + $ECHO "*** I have the capability to make that library automatically link in when"
  64302. + $ECHO "*** you link to this library. But I can only do this if you have a"
  64303. + $ECHO "*** shared version of the library, which you do not appear to have"
  64304. + $ECHO "*** because I did check the linker path looking for a file starting"
  64305. + if test -z "$potlib" ; then
  64306. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  64307. + else
  64308. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  64309. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  64310. + fi
  64311. + fi
  64312. + ;;
  64313. + *)
  64314. + # Add a -L argument.
  64315. + newdeplibs="$newdeplibs $a_deplib"
  64316. + ;;
  64317. + esac
  64318. + done # Gone through all deplibs.
  64319. + ;;
  64320. + none | unknown | *)
  64321. + newdeplibs=""
  64322. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  64323. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  64324. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  64325. + for i in $predeps $postdeps ; do
  64326. + # can't use Xsed below, because $i might contain '/'
  64327. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  64328. + done
  64329. + fi
  64330. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  64331. + $GREP . >/dev/null; then
  64332. + $ECHO
  64333. + if test "X$deplibs_check_method" = "Xnone"; then
  64334. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  64335. + else
  64336. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  64337. + fi
  64338. + $ECHO "*** All declared inter-library dependencies are being dropped."
  64339. + droppeddeps=yes
  64340. + fi
  64341. + ;;
  64342. + esac
  64343. + versuffix=$versuffix_save
  64344. + major=$major_save
  64345. + release=$release_save
  64346. + libname=$libname_save
  64347. + name=$name_save
  64348. +
  64349. + case $host in
  64350. + *-*-rhapsody* | *-*-darwin1.[012])
  64351. + # On Rhapsody replace the C library with the System framework
  64352. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  64353. + ;;
  64354. + esac
  64355. +
  64356. + if test "$droppeddeps" = yes; then
  64357. + if test "$module" = yes; then
  64358. + $ECHO
  64359. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  64360. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  64361. + $ECHO "*** a static module, that should work as long as the dlopening"
  64362. + $ECHO "*** application is linked with the -dlopen flag."
  64363. + if test -z "$global_symbol_pipe"; then
  64364. + $ECHO
  64365. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  64366. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  64367. + $ECHO "*** not find such a program. So, this module is probably useless."
  64368. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  64369. + fi
  64370. + if test "$build_old_libs" = no; then
  64371. + oldlibs="$output_objdir/$libname.$libext"
  64372. + build_libtool_libs=module
  64373. + build_old_libs=yes
  64374. + else
  64375. + build_libtool_libs=no
  64376. + fi
  64377. + else
  64378. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  64379. + $ECHO "*** automatically added whenever a program is linked with this library"
  64380. + $ECHO "*** or is declared to -dlopen it."
  64381. +
  64382. + if test "$allow_undefined" = no; then
  64383. + $ECHO
  64384. + $ECHO "*** Since this library must not contain undefined symbols,"
  64385. + $ECHO "*** because either the platform does not support them or"
  64386. + $ECHO "*** it was explicitly requested with -no-undefined,"
  64387. + $ECHO "*** libtool will only create a static version of it."
  64388. + if test "$build_old_libs" = no; then
  64389. + oldlibs="$output_objdir/$libname.$libext"
  64390. + build_libtool_libs=module
  64391. + build_old_libs=yes
  64392. + else
  64393. + build_libtool_libs=no
  64394. + fi
  64395. + fi
  64396. + fi
  64397. + fi
  64398. + # Done checking deplibs!
  64399. + deplibs=$newdeplibs
  64400. + fi
  64401. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  64402. + case $host in
  64403. + *-*-darwin*)
  64404. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  64405. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  64406. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  64407. + ;;
  64408. + esac
  64409. +
  64410. + # move library search paths that coincide with paths to not yet
  64411. + # installed libraries to the beginning of the library search list
  64412. + new_libs=
  64413. + for path in $notinst_path; do
  64414. + case " $new_libs " in
  64415. + *" -L$path/$objdir "*) ;;
  64416. + *)
  64417. + case " $deplibs " in
  64418. + *" -L$path/$objdir "*)
  64419. + new_libs="$new_libs -L$path/$objdir" ;;
  64420. + esac
  64421. + ;;
  64422. + esac
  64423. + done
  64424. + for deplib in $deplibs; do
  64425. + case $deplib in
  64426. + -L*)
  64427. + case " $new_libs " in
  64428. + *" $deplib "*) ;;
  64429. + *) new_libs="$new_libs $deplib" ;;
  64430. + esac
  64431. + ;;
  64432. + *) new_libs="$new_libs $deplib" ;;
  64433. + esac
  64434. + done
  64435. + deplibs="$new_libs"
  64436. +
  64437. + # All the library-specific variables (install_libdir is set above).
  64438. + library_names=
  64439. + old_library=
  64440. + dlname=
  64441. +
  64442. + # Test again, we may have decided not to build it any more
  64443. + if test "$build_libtool_libs" = yes; then
  64444. + if test "$hardcode_into_libs" = yes; then
  64445. + # Hardcode the library paths
  64446. + hardcode_libdirs=
  64447. + dep_rpath=
  64448. + rpath="$finalize_rpath"
  64449. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  64450. + for libdir in $rpath; do
  64451. + if test -n "$hardcode_libdir_flag_spec"; then
  64452. + if test -n "$hardcode_libdir_separator"; then
  64453. + if test -z "$hardcode_libdirs"; then
  64454. + hardcode_libdirs="$libdir"
  64455. + else
  64456. + # Just accumulate the unique libdirs.
  64457. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  64458. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  64459. + ;;
  64460. + *)
  64461. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  64462. + ;;
  64463. + esac
  64464. + fi
  64465. + else
  64466. + eval flag=\"$hardcode_libdir_flag_spec\"
  64467. + dep_rpath="$dep_rpath $flag"
  64468. + fi
  64469. + elif test -n "$runpath_var"; then
  64470. + case "$perm_rpath " in
  64471. + *" $libdir "*) ;;
  64472. + *) perm_rpath="$perm_rpath $libdir" ;;
  64473. + esac
  64474. + fi
  64475. + done
  64476. + # Substitute the hardcoded libdirs into the rpath.
  64477. + if test -n "$hardcode_libdir_separator" &&
  64478. + test -n "$hardcode_libdirs"; then
  64479. + libdir="$hardcode_libdirs"
  64480. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  64481. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  64482. + else
  64483. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  64484. + fi
  64485. + fi
  64486. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  64487. + # We should set the runpath_var.
  64488. + rpath=
  64489. + for dir in $perm_rpath; do
  64490. + rpath="$rpath$dir:"
  64491. + done
  64492. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  64493. + fi
  64494. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  64495. + fi
  64496. - # Try to get the absolute directory name.
  64497. - absdir=\`cd \"\$thisdir\" && pwd\`
  64498. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  64499. -"
  64500. + shlibpath="$finalize_shlibpath"
  64501. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  64502. + if test -n "$shlibpath"; then
  64503. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  64504. + fi
  64505. - if test "$fast_install" = yes; then
  64506. - $echo >> $output "\
  64507. - program=lt-'$outputname'$exeext
  64508. - progdir=\"\$thisdir/$objdir\"
  64509. + # Get the real and link names of the library.
  64510. + eval shared_ext=\"$shrext_cmds\"
  64511. + eval library_names=\"$library_names_spec\"
  64512. + set dummy $library_names
  64513. + shift
  64514. + realname="$1"
  64515. + shift
  64516. - if test ! -f \"\$progdir/\$program\" || \\
  64517. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  64518. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  64519. + if test -n "$soname_spec"; then
  64520. + eval soname=\"$soname_spec\"
  64521. + else
  64522. + soname="$realname"
  64523. + fi
  64524. + if test -z "$dlname"; then
  64525. + dlname=$soname
  64526. + fi
  64527. - file=\"\$\$-\$program\"
  64528. + lib="$output_objdir/$realname"
  64529. + linknames=
  64530. + for link
  64531. + do
  64532. + linknames="$linknames $link"
  64533. + done
  64534. - if test ! -d \"\$progdir\"; then
  64535. - $mkdir \"\$progdir\"
  64536. - else
  64537. - $rm \"\$progdir/\$file\"
  64538. - fi"
  64539. + # Use standard objects if they are pic
  64540. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  64541. + test "X$libobjs" = "X " && libobjs=
  64542. - $echo >> $output "\
  64543. + delfiles=
  64544. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  64545. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  64546. + export_symbols="$output_objdir/$libname.uexp"
  64547. + delfiles="$delfiles $export_symbols"
  64548. + fi
  64549. +
  64550. + orig_export_symbols=
  64551. + case $host_os in
  64552. + cygwin* | mingw* | cegcc*)
  64553. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  64554. + # exporting using user supplied symfile
  64555. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  64556. + # and it's NOT already a .def file. Must figure out
  64557. + # which of the given symbols are data symbols and tag
  64558. + # them as such. So, trigger use of export_symbols_cmds.
  64559. + # export_symbols gets reassigned inside the "prepare
  64560. + # the list of exported symbols" if statement, so the
  64561. + # include_expsyms logic still works.
  64562. + orig_export_symbols="$export_symbols"
  64563. + export_symbols=
  64564. + always_export_symbols=yes
  64565. + fi
  64566. + fi
  64567. + ;;
  64568. + esac
  64569. - # relink executable if necessary
  64570. - if test -n \"\$relink_command\"; then
  64571. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  64572. - else
  64573. - $echo \"\$relink_command_output\" >&2
  64574. - $rm \"\$progdir/\$file\"
  64575. - exit $EXIT_FAILURE
  64576. - fi
  64577. - fi
  64578. + # Prepare the list of exported symbols
  64579. + if test -z "$export_symbols"; then
  64580. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  64581. + func_verbose "generating symbol list for \`$libname.la'"
  64582. + export_symbols="$output_objdir/$libname.exp"
  64583. + $opt_dry_run || $RM $export_symbols
  64584. + cmds=$export_symbols_cmds
  64585. + save_ifs="$IFS"; IFS='~'
  64586. + for cmd in $cmds; do
  64587. + IFS="$save_ifs"
  64588. + eval cmd=\"$cmd\"
  64589. + func_len " $cmd"
  64590. + len=$func_len_result
  64591. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  64592. + func_show_eval "$cmd" 'exit $?'
  64593. + skipped_export=false
  64594. + else
  64595. + # The command line is too long to execute in one step.
  64596. + func_verbose "using reloadable object file for export list..."
  64597. + skipped_export=:
  64598. + # Break out early, otherwise skipped_export may be
  64599. + # set to false by a later but shorter cmd.
  64600. + break
  64601. + fi
  64602. + done
  64603. + IFS="$save_ifs"
  64604. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  64605. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  64606. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  64607. + fi
  64608. + fi
  64609. + fi
  64610. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  64611. - { $rm \"\$progdir/\$program\";
  64612. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  64613. - $rm \"\$progdir/\$file\"
  64614. - fi"
  64615. - else
  64616. - $echo >> $output "\
  64617. - program='$outputname'
  64618. - progdir=\"\$thisdir/$objdir\"
  64619. -"
  64620. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  64621. + tmp_export_symbols="$export_symbols"
  64622. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  64623. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  64624. + fi
  64625. +
  64626. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  64627. + # The given exports_symbols file has to be filtered, so filter it.
  64628. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  64629. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  64630. + # 's' commands which not all seds can handle. GNU sed should be fine
  64631. + # though. Also, the filter scales superlinearly with the number of
  64632. + # global variables. join(1) would be nice here, but unfortunately
  64633. + # isn't a blessed tool.
  64634. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  64635. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  64636. + export_symbols=$output_objdir/$libname.def
  64637. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  64638. fi
  64639. - $echo >> $output "\
  64640. + tmp_deplibs=
  64641. + for test_deplib in $deplibs; do
  64642. + case " $convenience " in
  64643. + *" $test_deplib "*) ;;
  64644. + *)
  64645. + tmp_deplibs="$tmp_deplibs $test_deplib"
  64646. + ;;
  64647. + esac
  64648. + done
  64649. + deplibs="$tmp_deplibs"
  64650. - if test -f \"\$progdir/\$program\"; then"
  64651. + if test -n "$convenience"; then
  64652. + if test -n "$whole_archive_flag_spec" &&
  64653. + test "$compiler_needs_object" = yes &&
  64654. + test -z "$libobjs"; then
  64655. + # extract the archives, so we have objects to list.
  64656. + # TODO: could optimize this to just extract one archive.
  64657. + whole_archive_flag_spec=
  64658. + fi
  64659. + if test -n "$whole_archive_flag_spec"; then
  64660. + save_libobjs=$libobjs
  64661. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  64662. + test "X$libobjs" = "X " && libobjs=
  64663. + else
  64664. + gentop="$output_objdir/${outputname}x"
  64665. + generated="$generated $gentop"
  64666. - # Export our shlibpath_var if we have one.
  64667. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  64668. - $echo >> $output "\
  64669. - # Add our own library path to $shlibpath_var
  64670. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  64671. + func_extract_archives $gentop $convenience
  64672. + libobjs="$libobjs $func_extract_archives_result"
  64673. + test "X$libobjs" = "X " && libobjs=
  64674. + fi
  64675. + fi
  64676. - # Some systems cannot cope with colon-terminated $shlibpath_var
  64677. - # The second colon is a workaround for a bug in BeOS R4 sed
  64678. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  64679. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  64680. + eval flag=\"$thread_safe_flag_spec\"
  64681. + linker_flags="$linker_flags $flag"
  64682. + fi
  64683. - export $shlibpath_var
  64684. -"
  64685. + # Make a backup of the uninstalled library when relinking
  64686. + if test "$mode" = relink; then
  64687. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  64688. fi
  64689. - # fixup the dll searchpath if we need to.
  64690. - if test -n "$dllsearchpath"; then
  64691. - $echo >> $output "\
  64692. - # Add the dll search path components to the executable PATH
  64693. - PATH=$dllsearchpath:\$PATH
  64694. -"
  64695. + # Do each of the archive commands.
  64696. + if test "$module" = yes && test -n "$module_cmds" ; then
  64697. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  64698. + eval test_cmds=\"$module_expsym_cmds\"
  64699. + cmds=$module_expsym_cmds
  64700. + else
  64701. + eval test_cmds=\"$module_cmds\"
  64702. + cmds=$module_cmds
  64703. + fi
  64704. + else
  64705. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  64706. + eval test_cmds=\"$archive_expsym_cmds\"
  64707. + cmds=$archive_expsym_cmds
  64708. + else
  64709. + eval test_cmds=\"$archive_cmds\"
  64710. + cmds=$archive_cmds
  64711. + fi
  64712. fi
  64713. - $echo >> $output "\
  64714. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  64715. - # Run the actual program with our arguments.
  64716. -"
  64717. - case $host in
  64718. - # Backslashes separate directories on plain windows
  64719. - *-*-mingw | *-*-os2*)
  64720. - $echo >> $output "\
  64721. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  64722. -"
  64723. - ;;
  64724. + if test "X$skipped_export" != "X:" &&
  64725. + func_len " $test_cmds" &&
  64726. + len=$func_len_result &&
  64727. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  64728. + :
  64729. + else
  64730. + # The command line is too long to link in one step, link piecewise
  64731. + # or, if using GNU ld and skipped_export is not :, use a linker
  64732. + # script.
  64733. - *)
  64734. - $echo >> $output "\
  64735. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  64736. -"
  64737. - ;;
  64738. - esac
  64739. - $echo >> $output "\
  64740. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  64741. - exit $EXIT_FAILURE
  64742. - fi
  64743. - else
  64744. - # The program doesn't exist.
  64745. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  64746. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  64747. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  64748. - exit $EXIT_FAILURE
  64749. - fi
  64750. -fi\
  64751. -"
  64752. - chmod +x $output
  64753. - fi
  64754. - exit $EXIT_SUCCESS
  64755. - ;;
  64756. - esac
  64757. + # Save the value of $output and $libobjs because we want to
  64758. + # use them later. If we have whole_archive_flag_spec, we
  64759. + # want to use save_libobjs as it was before
  64760. + # whole_archive_flag_spec was expanded, because we can't
  64761. + # assume the linker understands whole_archive_flag_spec.
  64762. + # This may have to be revisited, in case too many
  64763. + # convenience libraries get linked in and end up exceeding
  64764. + # the spec.
  64765. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  64766. + save_libobjs=$libobjs
  64767. + fi
  64768. + save_output=$output
  64769. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  64770. - # See if we need to build an old-fashioned archive.
  64771. - for oldlib in $oldlibs; do
  64772. + # Clear the reloadable object creation command queue and
  64773. + # initialize k to one.
  64774. + test_cmds=
  64775. + concat_cmds=
  64776. + objlist=
  64777. + last_robj=
  64778. + k=1
  64779. - if test "$build_libtool_libs" = convenience; then
  64780. - oldobjs="$libobjs_save"
  64781. - addlibs="$convenience"
  64782. - build_libtool_libs=no
  64783. - else
  64784. - if test "$build_libtool_libs" = module; then
  64785. - oldobjs="$libobjs_save"
  64786. - build_libtool_libs=no
  64787. - else
  64788. - oldobjs="$old_deplibs $non_pic_objects"
  64789. - fi
  64790. - addlibs="$old_convenience"
  64791. - fi
  64792. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  64793. + output=${output_objdir}/${output_la}.lnkscript
  64794. + func_verbose "creating GNU ld script: $output"
  64795. + $ECHO 'INPUT (' > $output
  64796. + for obj in $save_libobjs
  64797. + do
  64798. + $ECHO "$obj" >> $output
  64799. + done
  64800. + $ECHO ')' >> $output
  64801. + delfiles="$delfiles $output"
  64802. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  64803. + output=${output_objdir}/${output_la}.lnk
  64804. + func_verbose "creating linker input file list: $output"
  64805. + : > $output
  64806. + set x $save_libobjs
  64807. + shift
  64808. + firstobj=
  64809. + if test "$compiler_needs_object" = yes; then
  64810. + firstobj="$1 "
  64811. + shift
  64812. + fi
  64813. + for obj
  64814. + do
  64815. + $ECHO "$obj" >> $output
  64816. + done
  64817. + delfiles="$delfiles $output"
  64818. + output=$firstobj\"$file_list_spec$output\"
  64819. + else
  64820. + if test -n "$save_libobjs"; then
  64821. + func_verbose "creating reloadable object files..."
  64822. + output=$output_objdir/$output_la-${k}.$objext
  64823. + eval test_cmds=\"$reload_cmds\"
  64824. + func_len " $test_cmds"
  64825. + len0=$func_len_result
  64826. + len=$len0
  64827. +
  64828. + # Loop over the list of objects to be linked.
  64829. + for obj in $save_libobjs
  64830. + do
  64831. + func_len " $obj"
  64832. + func_arith $len + $func_len_result
  64833. + len=$func_arith_result
  64834. + if test "X$objlist" = X ||
  64835. + test "$len" -lt "$max_cmd_len"; then
  64836. + func_append objlist " $obj"
  64837. + else
  64838. + # The command $test_cmds is almost too long, add a
  64839. + # command to the queue.
  64840. + if test "$k" -eq 1 ; then
  64841. + # The first file doesn't have a previous command to add.
  64842. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  64843. + else
  64844. + # All subsequent reloadable object files will link in
  64845. + # the last one created.
  64846. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  64847. + fi
  64848. + last_robj=$output_objdir/$output_la-${k}.$objext
  64849. + func_arith $k + 1
  64850. + k=$func_arith_result
  64851. + output=$output_objdir/$output_la-${k}.$objext
  64852. + objlist=$obj
  64853. + func_len " $last_robj"
  64854. + func_arith $len0 + $func_len_result
  64855. + len=$func_arith_result
  64856. + fi
  64857. + done
  64858. + # Handle the remaining objects by creating one last
  64859. + # reloadable object file. All subsequent reloadable object
  64860. + # files will link in the last one created.
  64861. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  64862. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  64863. + if test -n "$last_robj"; then
  64864. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  64865. + fi
  64866. + delfiles="$delfiles $output"
  64867. +
  64868. + else
  64869. + output=
  64870. + fi
  64871. - if test -n "$addlibs"; then
  64872. - gentop="$output_objdir/${outputname}x"
  64873. - generated="$generated $gentop"
  64874. + if ${skipped_export-false}; then
  64875. + func_verbose "generating symbol list for \`$libname.la'"
  64876. + export_symbols="$output_objdir/$libname.exp"
  64877. + $opt_dry_run || $RM $export_symbols
  64878. + libobjs=$output
  64879. + # Append the command to create the export file.
  64880. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  64881. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  64882. + if test -n "$last_robj"; then
  64883. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  64884. + fi
  64885. + fi
  64886. - func_extract_archives $gentop $addlibs
  64887. - oldobjs="$oldobjs $func_extract_archives_result"
  64888. - fi
  64889. + test -n "$save_libobjs" &&
  64890. + func_verbose "creating a temporary reloadable object file: $output"
  64891. - # Do each command in the archive commands.
  64892. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  64893. - cmds=$old_archive_from_new_cmds
  64894. - else
  64895. - # POSIX demands no paths to be encoded in archives. We have
  64896. - # to avoid creating archives with duplicate basenames if we
  64897. - # might have to extract them afterwards, e.g., when creating a
  64898. - # static archive out of a convenience library, or when linking
  64899. - # the entirety of a libtool archive into another (currently
  64900. - # not supported by libtool).
  64901. - if (for obj in $oldobjs
  64902. - do
  64903. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  64904. - done | sort | sort -uc >/dev/null 2>&1); then
  64905. - :
  64906. - else
  64907. - $echo "copying selected object files to avoid basename conflicts..."
  64908. + # Loop through the commands generated above and execute them.
  64909. + save_ifs="$IFS"; IFS='~'
  64910. + for cmd in $concat_cmds; do
  64911. + IFS="$save_ifs"
  64912. + $opt_silent || {
  64913. + func_quote_for_expand "$cmd"
  64914. + eval "func_echo $func_quote_for_expand_result"
  64915. + }
  64916. + $opt_dry_run || eval "$cmd" || {
  64917. + lt_exit=$?
  64918. +
  64919. + # Restore the uninstalled library and exit
  64920. + if test "$mode" = relink; then
  64921. + ( cd "$output_objdir" && \
  64922. + $RM "${realname}T" && \
  64923. + $MV "${realname}U" "$realname" )
  64924. + fi
  64925. - if test -z "$gentop"; then
  64926. - gentop="$output_objdir/${outputname}x"
  64927. - generated="$generated $gentop"
  64928. + exit $lt_exit
  64929. + }
  64930. + done
  64931. + IFS="$save_ifs"
  64932. - $show "${rm}r $gentop"
  64933. - $run ${rm}r "$gentop"
  64934. - $show "$mkdir $gentop"
  64935. - $run $mkdir "$gentop"
  64936. - exit_status=$?
  64937. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  64938. - exit $exit_status
  64939. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  64940. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  64941. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  64942. fi
  64943. fi
  64944. - save_oldobjs=$oldobjs
  64945. - oldobjs=
  64946. - counter=1
  64947. - for obj in $save_oldobjs
  64948. - do
  64949. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  64950. - case " $oldobjs " in
  64951. - " ") oldobjs=$obj ;;
  64952. - *[\ /]"$objbase "*)
  64953. - while :; do
  64954. - # Make sure we don't pick an alternate name that also
  64955. - # overlaps.
  64956. - newobj=lt$counter-$objbase
  64957. - counter=`expr $counter + 1`
  64958. - case " $oldobjs " in
  64959. - *[\ /]"$newobj "*) ;;
  64960. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  64961. - esac
  64962. - done
  64963. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  64964. - $run ln "$obj" "$gentop/$newobj" ||
  64965. - $run cp "$obj" "$gentop/$newobj"
  64966. - oldobjs="$oldobjs $gentop/$newobj"
  64967. - ;;
  64968. - *) oldobjs="$oldobjs $obj" ;;
  64969. - esac
  64970. - done
  64971. - fi
  64972. + if ${skipped_export-false}; then
  64973. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  64974. + tmp_export_symbols="$export_symbols"
  64975. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  64976. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  64977. + fi
  64978. +
  64979. + if test -n "$orig_export_symbols"; then
  64980. + # The given exports_symbols file has to be filtered, so filter it.
  64981. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  64982. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  64983. + # 's' commands which not all seds can handle. GNU sed should be fine
  64984. + # though. Also, the filter scales superlinearly with the number of
  64985. + # global variables. join(1) would be nice here, but unfortunately
  64986. + # isn't a blessed tool.
  64987. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  64988. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  64989. + export_symbols=$output_objdir/$libname.def
  64990. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  64991. + fi
  64992. + fi
  64993. - eval cmds=\"$old_archive_cmds\"
  64994. + libobjs=$output
  64995. + # Restore the value of output.
  64996. + output=$save_output
  64997. - if len=`expr "X$cmds" : ".*"` &&
  64998. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  64999. - cmds=$old_archive_cmds
  65000. - else
  65001. - # the command line is too long to link in one step, link in parts
  65002. - $echo "using piecewise archive linking..."
  65003. - save_RANLIB=$RANLIB
  65004. - RANLIB=:
  65005. - objlist=
  65006. - concat_cmds=
  65007. - save_oldobjs=$oldobjs
  65008. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  65009. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  65010. + test "X$libobjs" = "X " && libobjs=
  65011. + fi
  65012. + # Expand the library linking commands again to reset the
  65013. + # value of $libobjs for piecewise linking.
  65014. - # Is there a better way of finding the last object in the list?
  65015. - for obj in $save_oldobjs
  65016. - do
  65017. - last_oldobj=$obj
  65018. - done
  65019. - for obj in $save_oldobjs
  65020. - do
  65021. - oldobjs="$objlist $obj"
  65022. - objlist="$objlist $obj"
  65023. - eval test_cmds=\"$old_archive_cmds\"
  65024. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  65025. - test "$len" -le "$max_cmd_len"; then
  65026. - :
  65027. + # Do each of the archive commands.
  65028. + if test "$module" = yes && test -n "$module_cmds" ; then
  65029. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  65030. + cmds=$module_expsym_cmds
  65031. else
  65032. - # the above command should be used before it gets too long
  65033. - oldobjs=$objlist
  65034. - if test "$obj" = "$last_oldobj" ; then
  65035. - RANLIB=$save_RANLIB
  65036. - fi
  65037. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  65038. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  65039. - objlist=
  65040. + cmds=$module_cmds
  65041. fi
  65042. - done
  65043. - RANLIB=$save_RANLIB
  65044. - oldobjs=$objlist
  65045. - if test "X$oldobjs" = "X" ; then
  65046. - eval cmds=\"\$concat_cmds\"
  65047. else
  65048. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  65049. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  65050. + cmds=$archive_expsym_cmds
  65051. + else
  65052. + cmds=$archive_cmds
  65053. + fi
  65054. fi
  65055. fi
  65056. - fi
  65057. - save_ifs="$IFS"; IFS='~'
  65058. - for cmd in $cmds; do
  65059. - eval cmd=\"$cmd\"
  65060. - IFS="$save_ifs"
  65061. - $show "$cmd"
  65062. - $run eval "$cmd" || exit $?
  65063. - done
  65064. - IFS="$save_ifs"
  65065. - done
  65066. - if test -n "$generated"; then
  65067. - $show "${rm}r$generated"
  65068. - $run ${rm}r$generated
  65069. - fi
  65070. + if test -n "$delfiles"; then
  65071. + # Append the command to remove temporary files to $cmds.
  65072. + eval cmds=\"\$cmds~\$RM $delfiles\"
  65073. + fi
  65074. - # Now create the libtool archive.
  65075. - case $output in
  65076. - *.la)
  65077. - old_library=
  65078. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  65079. - $show "creating $output"
  65080. + # Add any objects from preloaded convenience libraries
  65081. + if test -n "$dlprefiles"; then
  65082. + gentop="$output_objdir/${outputname}x"
  65083. + generated="$generated $gentop"
  65084. - # Preserve any variables that may affect compiler behavior
  65085. - for var in $variables_saved_for_relink; do
  65086. - if eval test -z \"\${$var+set}\"; then
  65087. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  65088. - elif eval var_value=\$$var; test -z "$var_value"; then
  65089. - relink_command="$var=; export $var; $relink_command"
  65090. - else
  65091. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  65092. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  65093. + func_extract_archives $gentop $dlprefiles
  65094. + libobjs="$libobjs $func_extract_archives_result"
  65095. + test "X$libobjs" = "X " && libobjs=
  65096. fi
  65097. - done
  65098. - # Quote the link command for shipping.
  65099. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  65100. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  65101. - if test "$hardcode_automatic" = yes ; then
  65102. - relink_command=
  65103. - fi
  65104. + save_ifs="$IFS"; IFS='~'
  65105. + for cmd in $cmds; do
  65106. + IFS="$save_ifs"
  65107. + eval cmd=\"$cmd\"
  65108. + $opt_silent || {
  65109. + func_quote_for_expand "$cmd"
  65110. + eval "func_echo $func_quote_for_expand_result"
  65111. + }
  65112. + $opt_dry_run || eval "$cmd" || {
  65113. + lt_exit=$?
  65114. - # Only create the output if not a dry run.
  65115. - if test -z "$run"; then
  65116. - for installed in no yes; do
  65117. - if test "$installed" = yes; then
  65118. - if test -z "$install_libdir"; then
  65119. - break
  65120. + # Restore the uninstalled library and exit
  65121. + if test "$mode" = relink; then
  65122. + ( cd "$output_objdir" && \
  65123. + $RM "${realname}T" && \
  65124. + $MV "${realname}U" "$realname" )
  65125. fi
  65126. - output="$output_objdir/$outputname"i
  65127. - # Replace all uninstalled libtool libraries with the installed ones
  65128. - newdependency_libs=
  65129. - for deplib in $dependency_libs; do
  65130. - case $deplib in
  65131. - *.la)
  65132. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  65133. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  65134. - if test -z "$libdir"; then
  65135. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  65136. - exit $EXIT_FAILURE
  65137. - fi
  65138. - newdependency_libs="$newdependency_libs $libdir/$name"
  65139. - ;;
  65140. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  65141. - esac
  65142. - done
  65143. - dependency_libs="$newdependency_libs"
  65144. - newdlfiles=
  65145. - for lib in $dlfiles; do
  65146. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  65147. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  65148. - if test -z "$libdir"; then
  65149. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  65150. - exit $EXIT_FAILURE
  65151. - fi
  65152. - newdlfiles="$newdlfiles $libdir/$name"
  65153. - done
  65154. - dlfiles="$newdlfiles"
  65155. - newdlprefiles=
  65156. - for lib in $dlprefiles; do
  65157. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  65158. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  65159. - if test -z "$libdir"; then
  65160. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  65161. - exit $EXIT_FAILURE
  65162. - fi
  65163. - newdlprefiles="$newdlprefiles $libdir/$name"
  65164. - done
  65165. - dlprefiles="$newdlprefiles"
  65166. - else
  65167. - newdlfiles=
  65168. - for lib in $dlfiles; do
  65169. - case $lib in
  65170. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  65171. - *) abs=`pwd`"/$lib" ;;
  65172. - esac
  65173. - newdlfiles="$newdlfiles $abs"
  65174. - done
  65175. - dlfiles="$newdlfiles"
  65176. - newdlprefiles=
  65177. - for lib in $dlprefiles; do
  65178. - case $lib in
  65179. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  65180. - *) abs=`pwd`"/$lib" ;;
  65181. - esac
  65182. - newdlprefiles="$newdlprefiles $abs"
  65183. - done
  65184. - dlprefiles="$newdlprefiles"
  65185. - fi
  65186. - $rm $output
  65187. - # place dlname in correct position for cygwin
  65188. - tdlname=$dlname
  65189. - case $host,$output,$installed,$module,$dlname in
  65190. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  65191. - esac
  65192. - $echo > $output "\
  65193. -# $outputname - a libtool library file
  65194. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  65195. -#
  65196. -# Please DO NOT delete this file!
  65197. -# It is necessary for linking the library.
  65198. -
  65199. -# The name that we can dlopen(3).
  65200. -dlname='$tdlname'
  65201. -# Names of this library.
  65202. -library_names='$library_names'
  65203. -
  65204. -# The name of the static archive.
  65205. -old_library='$old_library'
  65206. -
  65207. -# Libraries that this one depends upon.
  65208. -dependency_libs='$dependency_libs'
  65209. -
  65210. -# Version information for $libname.
  65211. -current=$current
  65212. -age=$age
  65213. -revision=$revision
  65214. + exit $lt_exit
  65215. + }
  65216. + done
  65217. + IFS="$save_ifs"
  65218. -# Is this an already installed library?
  65219. -installed=$installed
  65220. + # Restore the uninstalled library and exit
  65221. + if test "$mode" = relink; then
  65222. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  65223. -# Should we warn about portability when linking against -modules?
  65224. -shouldnotlink=$module
  65225. + if test -n "$convenience"; then
  65226. + if test -z "$whole_archive_flag_spec"; then
  65227. + func_show_eval '${RM}r "$gentop"'
  65228. + fi
  65229. + fi
  65230. -# Files to dlopen/dlpreopen
  65231. -dlopen='$dlfiles'
  65232. -dlpreopen='$dlprefiles'
  65233. + exit $EXIT_SUCCESS
  65234. + fi
  65235. -# Directory that this library needs to be installed in:
  65236. -libdir='$install_libdir'"
  65237. - if test "$installed" = no && test "$need_relink" = yes; then
  65238. - $echo >> $output "\
  65239. -relink_command=\"$relink_command\""
  65240. + # Create links to the real library.
  65241. + for linkname in $linknames; do
  65242. + if test "$realname" != "$linkname"; then
  65243. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  65244. fi
  65245. done
  65246. - fi
  65247. -
  65248. - # Do a symbolic link so that the libtool archive can be found in
  65249. - # LD_LIBRARY_PATH before the program is installed.
  65250. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  65251. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  65252. - ;;
  65253. - esac
  65254. - exit $EXIT_SUCCESS
  65255. - ;;
  65256. -
  65257. - # libtool install mode
  65258. - install)
  65259. - modename="$modename: install"
  65260. -
  65261. - # There may be an optional sh(1) argument at the beginning of
  65262. - # install_prog (especially on Windows NT).
  65263. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  65264. - # Allow the use of GNU shtool's install command.
  65265. - $echo "X$nonopt" | grep shtool > /dev/null; then
  65266. - # Aesthetically quote it.
  65267. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  65268. - case $arg in
  65269. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  65270. - arg="\"$arg\""
  65271. - ;;
  65272. - esac
  65273. - install_prog="$arg "
  65274. - arg="$1"
  65275. - shift
  65276. - else
  65277. - install_prog=
  65278. - arg=$nonopt
  65279. - fi
  65280. - # The real first argument should be the name of the installation program.
  65281. - # Aesthetically quote it.
  65282. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  65283. - case $arg in
  65284. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  65285. - arg="\"$arg\""
  65286. + # If -module or -export-dynamic was specified, set the dlname.
  65287. + if test "$module" = yes || test "$export_dynamic" = yes; then
  65288. + # On all known operating systems, these are identical.
  65289. + dlname="$soname"
  65290. + fi
  65291. + fi
  65292. ;;
  65293. - esac
  65294. - install_prog="$install_prog$arg"
  65295. - # We need to accept at least all the BSD install flags.
  65296. - dest=
  65297. - files=
  65298. - opts=
  65299. - prev=
  65300. - install_type=
  65301. - isdir=no
  65302. - stripme=
  65303. - for arg
  65304. - do
  65305. - if test -n "$dest"; then
  65306. - files="$files $dest"
  65307. - dest=$arg
  65308. - continue
  65309. + obj)
  65310. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  65311. + func_warning "\`-dlopen' is ignored for objects"
  65312. fi
  65313. - case $arg in
  65314. - -d) isdir=yes ;;
  65315. - -f)
  65316. - case " $install_prog " in
  65317. - *[\\\ /]cp\ *) ;;
  65318. - *) prev=$arg ;;
  65319. - esac
  65320. - ;;
  65321. - -g | -m | -o) prev=$arg ;;
  65322. - -s)
  65323. - stripme=" -s"
  65324. - continue
  65325. - ;;
  65326. - -*)
  65327. + case " $deplibs" in
  65328. + *\ -l* | *\ -L*)
  65329. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  65330. + esac
  65331. +
  65332. + test -n "$rpath" && \
  65333. + func_warning "\`-rpath' is ignored for objects"
  65334. +
  65335. + test -n "$xrpath" && \
  65336. + func_warning "\`-R' is ignored for objects"
  65337. +
  65338. + test -n "$vinfo" && \
  65339. + func_warning "\`-version-info' is ignored for objects"
  65340. +
  65341. + test -n "$release" && \
  65342. + func_warning "\`-release' is ignored for objects"
  65343. +
  65344. + case $output in
  65345. + *.lo)
  65346. + test -n "$objs$old_deplibs" && \
  65347. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  65348. +
  65349. + libobj=$output
  65350. + func_lo2o "$libobj"
  65351. + obj=$func_lo2o_result
  65352. ;;
  65353. *)
  65354. - # If the previous option needed an argument, then skip it.
  65355. - if test -n "$prev"; then
  65356. - prev=
  65357. - else
  65358. - dest=$arg
  65359. - continue
  65360. - fi
  65361. + libobj=
  65362. + obj="$output"
  65363. ;;
  65364. esac
  65365. - # Aesthetically quote the argument.
  65366. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  65367. - case $arg in
  65368. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  65369. - arg="\"$arg\""
  65370. - ;;
  65371. - esac
  65372. - install_prog="$install_prog $arg"
  65373. - done
  65374. + # Delete the old objects.
  65375. + $opt_dry_run || $RM $obj $libobj
  65376. - if test -z "$install_prog"; then
  65377. - $echo "$modename: you must specify an install program" 1>&2
  65378. - $echo "$help" 1>&2
  65379. - exit $EXIT_FAILURE
  65380. - fi
  65381. + # Objects from convenience libraries. This assumes
  65382. + # single-version convenience libraries. Whenever we create
  65383. + # different ones for PIC/non-PIC, this we'll have to duplicate
  65384. + # the extraction.
  65385. + reload_conv_objs=
  65386. + gentop=
  65387. + # reload_cmds runs $LD directly, so let us get rid of
  65388. + # -Wl from whole_archive_flag_spec and hope we can get by with
  65389. + # turning comma into space..
  65390. + wl=
  65391. - if test -n "$prev"; then
  65392. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  65393. - $echo "$help" 1>&2
  65394. - exit $EXIT_FAILURE
  65395. - fi
  65396. + if test -n "$convenience"; then
  65397. + if test -n "$whole_archive_flag_spec"; then
  65398. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  65399. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  65400. + else
  65401. + gentop="$output_objdir/${obj}x"
  65402. + generated="$generated $gentop"
  65403. - if test -z "$files"; then
  65404. - if test -z "$dest"; then
  65405. - $echo "$modename: no file or destination specified" 1>&2
  65406. - else
  65407. - $echo "$modename: you must specify a destination" 1>&2
  65408. + func_extract_archives $gentop $convenience
  65409. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  65410. + fi
  65411. fi
  65412. - $echo "$help" 1>&2
  65413. - exit $EXIT_FAILURE
  65414. - fi
  65415. - # Strip any trailing slash from the destination.
  65416. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  65417. + # Create the old-style object.
  65418. + 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
  65419. - # Check to see that the destination is a directory.
  65420. - test -d "$dest" && isdir=yes
  65421. - if test "$isdir" = yes; then
  65422. - destdir="$dest"
  65423. - destname=
  65424. - else
  65425. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  65426. - test "X$destdir" = "X$dest" && destdir=.
  65427. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  65428. + output="$obj"
  65429. + func_execute_cmds "$reload_cmds" 'exit $?'
  65430. - # Not a directory, so check to see that there is only one file specified.
  65431. - set dummy $files
  65432. - if test "$#" -gt 2; then
  65433. - $echo "$modename: \`$dest' is not a directory" 1>&2
  65434. - $echo "$help" 1>&2
  65435. - exit $EXIT_FAILURE
  65436. + # Exit if we aren't doing a library object file.
  65437. + if test -z "$libobj"; then
  65438. + if test -n "$gentop"; then
  65439. + func_show_eval '${RM}r "$gentop"'
  65440. + fi
  65441. +
  65442. + exit $EXIT_SUCCESS
  65443. fi
  65444. - fi
  65445. - case $destdir in
  65446. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  65447. - *)
  65448. - for file in $files; do
  65449. - case $file in
  65450. - *.lo) ;;
  65451. - *)
  65452. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  65453. - $echo "$help" 1>&2
  65454. - exit $EXIT_FAILURE
  65455. - ;;
  65456. - esac
  65457. - done
  65458. +
  65459. + if test "$build_libtool_libs" != yes; then
  65460. + if test -n "$gentop"; then
  65461. + func_show_eval '${RM}r "$gentop"'
  65462. + fi
  65463. +
  65464. + # Create an invalid libtool object if no PIC, so that we don't
  65465. + # accidentally link it into a program.
  65466. + # $show "echo timestamp > $libobj"
  65467. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  65468. + exit $EXIT_SUCCESS
  65469. + fi
  65470. +
  65471. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  65472. + # Only do commands if we really have different PIC objects.
  65473. + reload_objs="$libobjs $reload_conv_objs"
  65474. + output="$libobj"
  65475. + func_execute_cmds "$reload_cmds" 'exit $?'
  65476. + fi
  65477. +
  65478. + if test -n "$gentop"; then
  65479. + func_show_eval '${RM}r "$gentop"'
  65480. + fi
  65481. +
  65482. + exit $EXIT_SUCCESS
  65483. ;;
  65484. - esac
  65485. - # This variable tells wrapper scripts just to set variables rather
  65486. - # than running their programs.
  65487. - libtool_install_magic="$magic"
  65488. + prog)
  65489. + case $host in
  65490. + *cygwin*) func_stripname '' '.exe' "$output"
  65491. + output=$func_stripname_result.exe;;
  65492. + esac
  65493. + test -n "$vinfo" && \
  65494. + func_warning "\`-version-info' is ignored for programs"
  65495. - staticlibs=
  65496. - future_libdirs=
  65497. - current_libdirs=
  65498. - for file in $files; do
  65499. + test -n "$release" && \
  65500. + func_warning "\`-release' is ignored for programs"
  65501. - # Do each installation.
  65502. - case $file in
  65503. - *.$libext)
  65504. - # Do the static libraries later.
  65505. - staticlibs="$staticlibs $file"
  65506. + test "$preload" = yes \
  65507. + && test "$dlopen_support" = unknown \
  65508. + && test "$dlopen_self" = unknown \
  65509. + && test "$dlopen_self_static" = unknown && \
  65510. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  65511. +
  65512. + case $host in
  65513. + *-*-rhapsody* | *-*-darwin1.[012])
  65514. + # On Rhapsody replace the C library is the System framework
  65515. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  65516. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  65517. ;;
  65518. + esac
  65519. - *.la)
  65520. - # Check to see that this really is a libtool archive.
  65521. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  65522. - else
  65523. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  65524. - $echo "$help" 1>&2
  65525. - exit $EXIT_FAILURE
  65526. + case $host in
  65527. + *-*-darwin*)
  65528. + # Don't allow lazy linking, it breaks C++ global constructors
  65529. + # But is supposedly fixed on 10.4 or later (yay!).
  65530. + if test "$tagname" = CXX ; then
  65531. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  65532. + 10.[0123])
  65533. + compile_command="$compile_command ${wl}-bind_at_load"
  65534. + finalize_command="$finalize_command ${wl}-bind_at_load"
  65535. + ;;
  65536. + esac
  65537. fi
  65538. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  65539. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  65540. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  65541. + ;;
  65542. + esac
  65543. - library_names=
  65544. - old_library=
  65545. - relink_command=
  65546. - # If there is no directory component, then add one.
  65547. - case $file in
  65548. - */* | *\\*) . $file ;;
  65549. - *) . ./$file ;;
  65550. - esac
  65551. - # Add the libdir to current_libdirs if it is the destination.
  65552. - if test "X$destdir" = "X$libdir"; then
  65553. - case "$current_libdirs " in
  65554. - *" $libdir "*) ;;
  65555. - *) current_libdirs="$current_libdirs $libdir" ;;
  65556. + # move library search paths that coincide with paths to not yet
  65557. + # installed libraries to the beginning of the library search list
  65558. + new_libs=
  65559. + for path in $notinst_path; do
  65560. + case " $new_libs " in
  65561. + *" -L$path/$objdir "*) ;;
  65562. + *)
  65563. + case " $compile_deplibs " in
  65564. + *" -L$path/$objdir "*)
  65565. + new_libs="$new_libs -L$path/$objdir" ;;
  65566. esac
  65567. - else
  65568. - # Note the libdir as a future libdir.
  65569. - case "$future_libdirs " in
  65570. - *" $libdir "*) ;;
  65571. - *) future_libdirs="$future_libdirs $libdir" ;;
  65572. + ;;
  65573. + esac
  65574. + done
  65575. + for deplib in $compile_deplibs; do
  65576. + case $deplib in
  65577. + -L*)
  65578. + case " $new_libs " in
  65579. + *" $deplib "*) ;;
  65580. + *) new_libs="$new_libs $deplib" ;;
  65581. esac
  65582. - fi
  65583. + ;;
  65584. + *) new_libs="$new_libs $deplib" ;;
  65585. + esac
  65586. + done
  65587. + compile_deplibs="$new_libs"
  65588. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  65589. - test "X$dir" = "X$file/" && dir=
  65590. - dir="$dir$objdir"
  65591. - if test -n "$relink_command"; then
  65592. - # Determine the prefix the user has applied to our future dir.
  65593. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  65594. + compile_command="$compile_command $compile_deplibs"
  65595. + finalize_command="$finalize_command $finalize_deplibs"
  65596. - # Don't allow the user to place us outside of our expected
  65597. - # location b/c this prevents finding dependent libraries that
  65598. - # are installed to the same prefix.
  65599. - # At present, this check doesn't affect windows .dll's that
  65600. - # are installed into $libdir/../bin (currently, that works fine)
  65601. - # but it's something to keep an eye on.
  65602. - if test "$inst_prefix_dir" = "$destdir"; then
  65603. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  65604. - exit $EXIT_FAILURE
  65605. - fi
  65606. + if test -n "$rpath$xrpath"; then
  65607. + # If the user specified any rpath flags, then add them.
  65608. + for libdir in $rpath $xrpath; do
  65609. + # This is the magic to use -rpath.
  65610. + case "$finalize_rpath " in
  65611. + *" $libdir "*) ;;
  65612. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  65613. + esac
  65614. + done
  65615. + fi
  65616. - if test -n "$inst_prefix_dir"; then
  65617. - # Stick the inst_prefix_dir data into the link command.
  65618. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  65619. + # Now hardcode the library paths
  65620. + rpath=
  65621. + hardcode_libdirs=
  65622. + for libdir in $compile_rpath $finalize_rpath; do
  65623. + if test -n "$hardcode_libdir_flag_spec"; then
  65624. + if test -n "$hardcode_libdir_separator"; then
  65625. + if test -z "$hardcode_libdirs"; then
  65626. + hardcode_libdirs="$libdir"
  65627. + else
  65628. + # Just accumulate the unique libdirs.
  65629. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  65630. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  65631. + ;;
  65632. + *)
  65633. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  65634. + ;;
  65635. + esac
  65636. + fi
  65637. else
  65638. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  65639. + eval flag=\"$hardcode_libdir_flag_spec\"
  65640. + rpath="$rpath $flag"
  65641. fi
  65642. + elif test -n "$runpath_var"; then
  65643. + case "$perm_rpath " in
  65644. + *" $libdir "*) ;;
  65645. + *) perm_rpath="$perm_rpath $libdir" ;;
  65646. + esac
  65647. + fi
  65648. + case $host in
  65649. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  65650. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  65651. + case :$dllsearchpath: in
  65652. + *":$libdir:"*) ;;
  65653. + ::) dllsearchpath=$libdir;;
  65654. + *) dllsearchpath="$dllsearchpath:$libdir";;
  65655. + esac
  65656. + case :$dllsearchpath: in
  65657. + *":$testbindir:"*) ;;
  65658. + ::) dllsearchpath=$testbindir;;
  65659. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  65660. + esac
  65661. + ;;
  65662. + esac
  65663. + done
  65664. + # Substitute the hardcoded libdirs into the rpath.
  65665. + if test -n "$hardcode_libdir_separator" &&
  65666. + test -n "$hardcode_libdirs"; then
  65667. + libdir="$hardcode_libdirs"
  65668. + eval rpath=\" $hardcode_libdir_flag_spec\"
  65669. + fi
  65670. + compile_rpath="$rpath"
  65671. - $echo "$modename: warning: relinking \`$file'" 1>&2
  65672. - $show "$relink_command"
  65673. - if $run eval "$relink_command"; then :
  65674. + rpath=
  65675. + hardcode_libdirs=
  65676. + for libdir in $finalize_rpath; do
  65677. + if test -n "$hardcode_libdir_flag_spec"; then
  65678. + if test -n "$hardcode_libdir_separator"; then
  65679. + if test -z "$hardcode_libdirs"; then
  65680. + hardcode_libdirs="$libdir"
  65681. + else
  65682. + # Just accumulate the unique libdirs.
  65683. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  65684. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  65685. + ;;
  65686. + *)
  65687. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  65688. + ;;
  65689. + esac
  65690. + fi
  65691. else
  65692. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  65693. - exit $EXIT_FAILURE
  65694. + eval flag=\"$hardcode_libdir_flag_spec\"
  65695. + rpath="$rpath $flag"
  65696. fi
  65697. + elif test -n "$runpath_var"; then
  65698. + case "$finalize_perm_rpath " in
  65699. + *" $libdir "*) ;;
  65700. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  65701. + esac
  65702. fi
  65703. + done
  65704. + # Substitute the hardcoded libdirs into the rpath.
  65705. + if test -n "$hardcode_libdir_separator" &&
  65706. + test -n "$hardcode_libdirs"; then
  65707. + libdir="$hardcode_libdirs"
  65708. + eval rpath=\" $hardcode_libdir_flag_spec\"
  65709. + fi
  65710. + finalize_rpath="$rpath"
  65711. - # See the names of the shared library.
  65712. - set dummy $library_names
  65713. - if test -n "$2"; then
  65714. - realname="$2"
  65715. - shift
  65716. - shift
  65717. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  65718. + # Transform all the library objects into standard objects.
  65719. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  65720. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  65721. + fi
  65722. - srcname="$realname"
  65723. - test -n "$relink_command" && srcname="$realname"T
  65724. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  65725. - # Install the shared library and build the symlinks.
  65726. - $show "$install_prog $dir/$srcname $destdir/$realname"
  65727. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  65728. - if test -n "$stripme" && test -n "$striplib"; then
  65729. - $show "$striplib $destdir/$realname"
  65730. - $run eval "$striplib $destdir/$realname" || exit $?
  65731. - fi
  65732. + # template prelinking step
  65733. + if test -n "$prelink_cmds"; then
  65734. + func_execute_cmds "$prelink_cmds" 'exit $?'
  65735. + fi
  65736. - if test "$#" -gt 0; then
  65737. - # Delete the old symlinks, and create new ones.
  65738. - # Try `ln -sf' first, because the `ln' binary might depend on
  65739. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  65740. - # so we also need to try rm && ln -s.
  65741. - for linkname
  65742. - do
  65743. - if test "$linkname" != "$realname"; then
  65744. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  65745. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  65746. - fi
  65747. - done
  65748. - fi
  65749. + wrappers_required=yes
  65750. + case $host in
  65751. + *cygwin* | *mingw* )
  65752. + if test "$build_libtool_libs" != yes; then
  65753. + wrappers_required=no
  65754. + fi
  65755. + ;;
  65756. + *cegcc)
  65757. + # Disable wrappers for cegcc, we are cross compiling anyway.
  65758. + wrappers_required=no
  65759. + ;;
  65760. + *)
  65761. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  65762. + wrappers_required=no
  65763. + fi
  65764. + ;;
  65765. + esac
  65766. + if test "$wrappers_required" = no; then
  65767. + # Replace the output file specification.
  65768. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  65769. + link_command="$compile_command$compile_rpath"
  65770. - # Do each command in the postinstall commands.
  65771. - lib="$destdir/$realname"
  65772. - cmds=$postinstall_cmds
  65773. - save_ifs="$IFS"; IFS='~'
  65774. - for cmd in $cmds; do
  65775. - IFS="$save_ifs"
  65776. - eval cmd=\"$cmd\"
  65777. - $show "$cmd"
  65778. - $run eval "$cmd" || {
  65779. - lt_exit=$?
  65780. -
  65781. - # Restore the uninstalled library and exit
  65782. - if test "$mode" = relink; then
  65783. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  65784. - fi
  65785. + # We have no uninstalled library dependencies, so finalize right now.
  65786. + exit_status=0
  65787. + func_show_eval "$link_command" 'exit_status=$?'
  65788. - exit $lt_exit
  65789. - }
  65790. - done
  65791. - IFS="$save_ifs"
  65792. + # Delete the generated files.
  65793. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  65794. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  65795. fi
  65796. - # Install the pseudo-library for information purposes.
  65797. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  65798. - instname="$dir/$name"i
  65799. - $show "$install_prog $instname $destdir/$name"
  65800. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  65801. -
  65802. - # Maybe install the static library, too.
  65803. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  65804. - ;;
  65805. + exit $exit_status
  65806. + fi
  65807. - *.lo)
  65808. - # Install (i.e. copy) a libtool object.
  65809. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  65810. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  65811. + fi
  65812. + if test -n "$finalize_shlibpath"; then
  65813. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  65814. + fi
  65815. - # Figure out destination file name, if it wasn't already specified.
  65816. - if test -n "$destname"; then
  65817. - destfile="$destdir/$destname"
  65818. - else
  65819. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  65820. - destfile="$destdir/$destfile"
  65821. + compile_var=
  65822. + finalize_var=
  65823. + if test -n "$runpath_var"; then
  65824. + if test -n "$perm_rpath"; then
  65825. + # We should set the runpath_var.
  65826. + rpath=
  65827. + for dir in $perm_rpath; do
  65828. + rpath="$rpath$dir:"
  65829. + done
  65830. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  65831. fi
  65832. -
  65833. - # Deduce the name of the destination old-style object file.
  65834. - case $destfile in
  65835. - *.lo)
  65836. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  65837. - ;;
  65838. - *.$objext)
  65839. - staticdest="$destfile"
  65840. - destfile=
  65841. - ;;
  65842. - *)
  65843. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  65844. - $echo "$help" 1>&2
  65845. - exit $EXIT_FAILURE
  65846. - ;;
  65847. - esac
  65848. -
  65849. - # Install the libtool object if requested.
  65850. - if test -n "$destfile"; then
  65851. - $show "$install_prog $file $destfile"
  65852. - $run eval "$install_prog $file $destfile" || exit $?
  65853. + if test -n "$finalize_perm_rpath"; then
  65854. + # We should set the runpath_var.
  65855. + rpath=
  65856. + for dir in $finalize_perm_rpath; do
  65857. + rpath="$rpath$dir:"
  65858. + done
  65859. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  65860. fi
  65861. + fi
  65862. - # Install the old object if enabled.
  65863. - if test "$build_old_libs" = yes; then
  65864. - # Deduce the name of the old-style object file.
  65865. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  65866. -
  65867. - $show "$install_prog $staticobj $staticdest"
  65868. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  65869. - fi
  65870. + if test "$no_install" = yes; then
  65871. + # We don't need to create a wrapper script.
  65872. + link_command="$compile_var$compile_command$compile_rpath"
  65873. + # Replace the output file specification.
  65874. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  65875. + # Delete the old output file.
  65876. + $opt_dry_run || $RM $output
  65877. + # Link the executable and exit
  65878. + func_show_eval "$link_command" 'exit $?'
  65879. exit $EXIT_SUCCESS
  65880. - ;;
  65881. + fi
  65882. - *)
  65883. - # Figure out destination file name, if it wasn't already specified.
  65884. - if test -n "$destname"; then
  65885. - destfile="$destdir/$destname"
  65886. + if test "$hardcode_action" = relink; then
  65887. + # Fast installation is not supported
  65888. + link_command="$compile_var$compile_command$compile_rpath"
  65889. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  65890. +
  65891. + func_warning "this platform does not like uninstalled shared libraries"
  65892. + func_warning "\`$output' will be relinked during installation"
  65893. + else
  65894. + if test "$fast_install" != no; then
  65895. + link_command="$finalize_var$compile_command$finalize_rpath"
  65896. + if test "$fast_install" = yes; then
  65897. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  65898. + else
  65899. + # fast_install is set to needless
  65900. + relink_command=
  65901. + fi
  65902. else
  65903. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  65904. - destfile="$destdir/$destfile"
  65905. + link_command="$compile_var$compile_command$compile_rpath"
  65906. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  65907. fi
  65908. + fi
  65909. - # If the file is missing, and there is a .exe on the end, strip it
  65910. - # because it is most likely a libtool script we actually want to
  65911. - # install
  65912. - stripped_ext=""
  65913. - case $file in
  65914. - *.exe)
  65915. - if test ! -f "$file"; then
  65916. - file=`$echo $file|${SED} 's,.exe$,,'`
  65917. - stripped_ext=".exe"
  65918. - fi
  65919. - ;;
  65920. - esac
  65921. -
  65922. - # Do a test to see if this is really a libtool program.
  65923. - case $host in
  65924. - *cygwin*|*mingw*)
  65925. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  65926. - ;;
  65927. - *)
  65928. - wrapper=$file
  65929. - ;;
  65930. - esac
  65931. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  65932. - notinst_deplibs=
  65933. - relink_command=
  65934. -
  65935. - # Note that it is not necessary on cygwin/mingw to append a dot to
  65936. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  65937. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  65938. - # `FILE.' does not work on cygwin managed mounts.
  65939. - #
  65940. - # If there is no directory component, then add one.
  65941. - case $wrapper in
  65942. - */* | *\\*) . ${wrapper} ;;
  65943. - *) . ./${wrapper} ;;
  65944. - esac
  65945. -
  65946. - # Check the variables that should have been set.
  65947. - if test -z "$notinst_deplibs"; then
  65948. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  65949. - exit $EXIT_FAILURE
  65950. - fi
  65951. + # Replace the output file specification.
  65952. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  65953. - finalize=yes
  65954. - for lib in $notinst_deplibs; do
  65955. - # Check to see that each library is installed.
  65956. - libdir=
  65957. - if test -f "$lib"; then
  65958. - # If there is no directory component, then add one.
  65959. - case $lib in
  65960. - */* | *\\*) . $lib ;;
  65961. - *) . ./$lib ;;
  65962. - esac
  65963. - fi
  65964. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  65965. - if test -n "$libdir" && test ! -f "$libfile"; then
  65966. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  65967. - finalize=no
  65968. - fi
  65969. - done
  65970. + # Delete the old output files.
  65971. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  65972. - relink_command=
  65973. - # Note that it is not necessary on cygwin/mingw to append a dot to
  65974. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  65975. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  65976. - # `FILE.' does not work on cygwin managed mounts.
  65977. - #
  65978. - # If there is no directory component, then add one.
  65979. - case $wrapper in
  65980. - */* | *\\*) . ${wrapper} ;;
  65981. - *) . ./${wrapper} ;;
  65982. - esac
  65983. + func_show_eval "$link_command" 'exit $?'
  65984. - outputname=
  65985. - if test "$fast_install" = no && test -n "$relink_command"; then
  65986. - if test "$finalize" = yes && test -z "$run"; then
  65987. - tmpdir=`func_mktempdir`
  65988. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  65989. - outputname="$tmpdir/$file"
  65990. - # Replace the output file specification.
  65991. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  65992. + # Now create the wrapper script.
  65993. + func_verbose "creating $output"
  65994. - $show "$relink_command"
  65995. - if $run eval "$relink_command"; then :
  65996. - else
  65997. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  65998. - ${rm}r "$tmpdir"
  65999. - continue
  66000. - fi
  66001. - file="$outputname"
  66002. - else
  66003. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  66004. - fi
  66005. + # Quote the relink command for shipping.
  66006. + if test -n "$relink_command"; then
  66007. + # Preserve any variables that may affect compiler behavior
  66008. + for var in $variables_saved_for_relink; do
  66009. + if eval test -z \"\${$var+set}\"; then
  66010. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  66011. + elif eval var_value=\$$var; test -z "$var_value"; then
  66012. + relink_command="$var=; export $var; $relink_command"
  66013. else
  66014. - # Install the binary that we compiled earlier.
  66015. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  66016. + func_quote_for_eval "$var_value"
  66017. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  66018. fi
  66019. - fi
  66020. + done
  66021. + relink_command="(cd `pwd`; $relink_command)"
  66022. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  66023. + fi
  66024. - # remove .exe since cygwin /usr/bin/install will append another
  66025. - # one anyway
  66026. - case $install_prog,$host in
  66027. - */usr/bin/install*,*cygwin*)
  66028. - case $file:$destfile in
  66029. - *.exe:*.exe)
  66030. - # this is ok
  66031. - ;;
  66032. - *.exe:*)
  66033. - destfile=$destfile.exe
  66034. - ;;
  66035. - *:*.exe)
  66036. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  66037. - ;;
  66038. - esac
  66039. - ;;
  66040. + # Quote $ECHO for shipping.
  66041. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  66042. + case $progpath in
  66043. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  66044. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  66045. + esac
  66046. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  66047. + else
  66048. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  66049. + fi
  66050. +
  66051. + # Only actually do things if not in dry run mode.
  66052. + $opt_dry_run || {
  66053. + # win32 will think the script is a binary if it has
  66054. + # a .exe suffix, so we strip it off here.
  66055. + case $output in
  66056. + *.exe) func_stripname '' '.exe' "$output"
  66057. + output=$func_stripname_result ;;
  66058. esac
  66059. - $show "$install_prog$stripme $file $destfile"
  66060. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  66061. - test -n "$outputname" && ${rm}r "$tmpdir"
  66062. - ;;
  66063. - esac
  66064. - done
  66065. + # test for cygwin because mv fails w/o .exe extensions
  66066. + case $host in
  66067. + *cygwin*)
  66068. + exeext=.exe
  66069. + func_stripname '' '.exe' "$outputname"
  66070. + outputname=$func_stripname_result ;;
  66071. + *) exeext= ;;
  66072. + esac
  66073. + case $host in
  66074. + *cygwin* | *mingw* )
  66075. + func_dirname_and_basename "$output" "" "."
  66076. + output_name=$func_basename_result
  66077. + output_path=$func_dirname_result
  66078. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  66079. + cwrapper="$output_path/$output_name.exe"
  66080. + $RM $cwrappersource $cwrapper
  66081. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  66082. +
  66083. + func_emit_cwrapperexe_src > $cwrappersource
  66084. +
  66085. + # The wrapper executable is built using the $host compiler,
  66086. + # because it contains $host paths and files. If cross-
  66087. + # compiling, it, like the target executable, must be
  66088. + # executed on the $host or under an emulation environment.
  66089. + $opt_dry_run || {
  66090. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  66091. + $STRIP $cwrapper
  66092. + }
  66093. - for file in $staticlibs; do
  66094. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  66095. + # Now, create the wrapper script for func_source use:
  66096. + func_ltwrapper_scriptname $cwrapper
  66097. + $RM $func_ltwrapper_scriptname_result
  66098. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  66099. + $opt_dry_run || {
  66100. + # note: this script will not be executed, so do not chmod.
  66101. + if test "x$build" = "x$host" ; then
  66102. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  66103. + else
  66104. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  66105. + fi
  66106. + }
  66107. + ;;
  66108. + * )
  66109. + $RM $output
  66110. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  66111. - # Set up the ranlib parameters.
  66112. - oldlib="$destdir/$name"
  66113. + func_emit_wrapper no > $output
  66114. + chmod +x $output
  66115. + ;;
  66116. + esac
  66117. + }
  66118. + exit $EXIT_SUCCESS
  66119. + ;;
  66120. + esac
  66121. - $show "$install_prog $file $oldlib"
  66122. - $run eval "$install_prog \$file \$oldlib" || exit $?
  66123. + # See if we need to build an old-fashioned archive.
  66124. + for oldlib in $oldlibs; do
  66125. - if test -n "$stripme" && test -n "$old_striplib"; then
  66126. - $show "$old_striplib $oldlib"
  66127. - $run eval "$old_striplib $oldlib" || exit $?
  66128. + if test "$build_libtool_libs" = convenience; then
  66129. + oldobjs="$libobjs_save $symfileobj"
  66130. + addlibs="$convenience"
  66131. + build_libtool_libs=no
  66132. + else
  66133. + if test "$build_libtool_libs" = module; then
  66134. + oldobjs="$libobjs_save"
  66135. + build_libtool_libs=no
  66136. + else
  66137. + oldobjs="$old_deplibs $non_pic_objects"
  66138. + if test "$preload" = yes && test -f "$symfileobj"; then
  66139. + oldobjs="$oldobjs $symfileobj"
  66140. + fi
  66141. + fi
  66142. + addlibs="$old_convenience"
  66143. fi
  66144. - # Do each command in the postinstall commands.
  66145. - cmds=$old_postinstall_cmds
  66146. - save_ifs="$IFS"; IFS='~'
  66147. - for cmd in $cmds; do
  66148. - IFS="$save_ifs"
  66149. - eval cmd=\"$cmd\"
  66150. - $show "$cmd"
  66151. - $run eval "$cmd" || exit $?
  66152. - done
  66153. - IFS="$save_ifs"
  66154. - done
  66155. + if test -n "$addlibs"; then
  66156. + gentop="$output_objdir/${outputname}x"
  66157. + generated="$generated $gentop"
  66158. - if test -n "$future_libdirs"; then
  66159. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  66160. - fi
  66161. + func_extract_archives $gentop $addlibs
  66162. + oldobjs="$oldobjs $func_extract_archives_result"
  66163. + fi
  66164. - if test -n "$current_libdirs"; then
  66165. - # Maybe just do a dry run.
  66166. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  66167. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  66168. - else
  66169. - exit $EXIT_SUCCESS
  66170. - fi
  66171. - ;;
  66172. + # Do each command in the archive commands.
  66173. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  66174. + cmds=$old_archive_from_new_cmds
  66175. + else
  66176. - # libtool finish mode
  66177. - finish)
  66178. - modename="$modename: finish"
  66179. - libdirs="$nonopt"
  66180. - admincmds=
  66181. + # Add any objects from preloaded convenience libraries
  66182. + if test -n "$dlprefiles"; then
  66183. + gentop="$output_objdir/${outputname}x"
  66184. + generated="$generated $gentop"
  66185. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  66186. - for dir
  66187. - do
  66188. - libdirs="$libdirs $dir"
  66189. - done
  66190. + func_extract_archives $gentop $dlprefiles
  66191. + oldobjs="$oldobjs $func_extract_archives_result"
  66192. + fi
  66193. - for libdir in $libdirs; do
  66194. - if test -n "$finish_cmds"; then
  66195. - # Do each command in the finish commands.
  66196. - cmds=$finish_cmds
  66197. - save_ifs="$IFS"; IFS='~'
  66198. - for cmd in $cmds; do
  66199. - IFS="$save_ifs"
  66200. - eval cmd=\"$cmd\"
  66201. - $show "$cmd"
  66202. - $run eval "$cmd" || admincmds="$admincmds
  66203. - $cmd"
  66204. + # POSIX demands no paths to be encoded in archives. We have
  66205. + # to avoid creating archives with duplicate basenames if we
  66206. + # might have to extract them afterwards, e.g., when creating a
  66207. + # static archive out of a convenience library, or when linking
  66208. + # the entirety of a libtool archive into another (currently
  66209. + # not supported by libtool).
  66210. + if (for obj in $oldobjs
  66211. + do
  66212. + func_basename "$obj"
  66213. + $ECHO "$func_basename_result"
  66214. + done | sort | sort -uc >/dev/null 2>&1); then
  66215. + :
  66216. + else
  66217. + $ECHO "copying selected object files to avoid basename conflicts..."
  66218. + gentop="$output_objdir/${outputname}x"
  66219. + generated="$generated $gentop"
  66220. + func_mkdir_p "$gentop"
  66221. + save_oldobjs=$oldobjs
  66222. + oldobjs=
  66223. + counter=1
  66224. + for obj in $save_oldobjs
  66225. + do
  66226. + func_basename "$obj"
  66227. + objbase="$func_basename_result"
  66228. + case " $oldobjs " in
  66229. + " ") oldobjs=$obj ;;
  66230. + *[\ /]"$objbase "*)
  66231. + while :; do
  66232. + # Make sure we don't pick an alternate name that also
  66233. + # overlaps.
  66234. + newobj=lt$counter-$objbase
  66235. + func_arith $counter + 1
  66236. + counter=$func_arith_result
  66237. + case " $oldobjs " in
  66238. + *[\ /]"$newobj "*) ;;
  66239. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  66240. + esac
  66241. + done
  66242. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  66243. + oldobjs="$oldobjs $gentop/$newobj"
  66244. + ;;
  66245. + *) oldobjs="$oldobjs $obj" ;;
  66246. + esac
  66247. done
  66248. - IFS="$save_ifs"
  66249. - fi
  66250. - if test -n "$finish_eval"; then
  66251. - # Do the single finish_eval.
  66252. - eval cmds=\"$finish_eval\"
  66253. - $run eval "$cmds" || admincmds="$admincmds
  66254. - $cmds"
  66255. fi
  66256. - done
  66257. - fi
  66258. -
  66259. - # Exit here if they wanted silent mode.
  66260. - test "$show" = : && exit $EXIT_SUCCESS
  66261. + eval cmds=\"$old_archive_cmds\"
  66262. - $echo "X----------------------------------------------------------------------" | $Xsed
  66263. - $echo "Libraries have been installed in:"
  66264. - for libdir in $libdirs; do
  66265. - $echo " $libdir"
  66266. + func_len " $cmds"
  66267. + len=$func_len_result
  66268. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  66269. + cmds=$old_archive_cmds
  66270. + else
  66271. + # the command line is too long to link in one step, link in parts
  66272. + func_verbose "using piecewise archive linking..."
  66273. + save_RANLIB=$RANLIB
  66274. + RANLIB=:
  66275. + objlist=
  66276. + concat_cmds=
  66277. + save_oldobjs=$oldobjs
  66278. + oldobjs=
  66279. + # Is there a better way of finding the last object in the list?
  66280. + for obj in $save_oldobjs
  66281. + do
  66282. + last_oldobj=$obj
  66283. + done
  66284. + eval test_cmds=\"$old_archive_cmds\"
  66285. + func_len " $test_cmds"
  66286. + len0=$func_len_result
  66287. + len=$len0
  66288. + for obj in $save_oldobjs
  66289. + do
  66290. + func_len " $obj"
  66291. + func_arith $len + $func_len_result
  66292. + len=$func_arith_result
  66293. + func_append objlist " $obj"
  66294. + if test "$len" -lt "$max_cmd_len"; then
  66295. + :
  66296. + else
  66297. + # the above command should be used before it gets too long
  66298. + oldobjs=$objlist
  66299. + if test "$obj" = "$last_oldobj" ; then
  66300. + RANLIB=$save_RANLIB
  66301. + fi
  66302. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  66303. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  66304. + objlist=
  66305. + len=$len0
  66306. + fi
  66307. + done
  66308. + RANLIB=$save_RANLIB
  66309. + oldobjs=$objlist
  66310. + if test "X$oldobjs" = "X" ; then
  66311. + eval cmds=\"\$concat_cmds\"
  66312. + else
  66313. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  66314. + fi
  66315. + fi
  66316. + fi
  66317. + func_execute_cmds "$cmds" 'exit $?'
  66318. done
  66319. - $echo
  66320. - $echo "If you ever happen to want to link against installed libraries"
  66321. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  66322. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  66323. - $echo "flag during linking and do at least one of the following:"
  66324. - if test -n "$shlibpath_var"; then
  66325. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  66326. - $echo " during execution"
  66327. - fi
  66328. - if test -n "$runpath_var"; then
  66329. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  66330. - $echo " during linking"
  66331. - fi
  66332. - if test -n "$hardcode_libdir_flag_spec"; then
  66333. - libdir=LIBDIR
  66334. - eval flag=\"$hardcode_libdir_flag_spec\"
  66335. -
  66336. - $echo " - use the \`$flag' linker flag"
  66337. - fi
  66338. - if test -n "$admincmds"; then
  66339. - $echo " - have your system administrator run these commands:$admincmds"
  66340. - fi
  66341. - if test -f /etc/ld.so.conf; then
  66342. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  66343. - fi
  66344. - $echo
  66345. - $echo "See any operating system documentation about shared libraries for"
  66346. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  66347. - $echo "X----------------------------------------------------------------------" | $Xsed
  66348. - exit $EXIT_SUCCESS
  66349. - ;;
  66350. - # libtool execute mode
  66351. - execute)
  66352. - modename="$modename: execute"
  66353. + test -n "$generated" && \
  66354. + func_show_eval "${RM}r$generated"
  66355. - # The first argument is the command name.
  66356. - cmd="$nonopt"
  66357. - if test -z "$cmd"; then
  66358. - $echo "$modename: you must specify a COMMAND" 1>&2
  66359. - $echo "$help"
  66360. - exit $EXIT_FAILURE
  66361. - fi
  66362. -
  66363. - # Handle -dlopen flags immediately.
  66364. - for file in $execute_dlfiles; do
  66365. - if test ! -f "$file"; then
  66366. - $echo "$modename: \`$file' is not a file" 1>&2
  66367. - $echo "$help" 1>&2
  66368. - exit $EXIT_FAILURE
  66369. - fi
  66370. + # Now create the libtool archive.
  66371. + case $output in
  66372. + *.la)
  66373. + old_library=
  66374. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  66375. + func_verbose "creating $output"
  66376. - dir=
  66377. - case $file in
  66378. - *.la)
  66379. - # Check to see that this really is a libtool archive.
  66380. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  66381. + # Preserve any variables that may affect compiler behavior
  66382. + for var in $variables_saved_for_relink; do
  66383. + if eval test -z \"\${$var+set}\"; then
  66384. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  66385. + elif eval var_value=\$$var; test -z "$var_value"; then
  66386. + relink_command="$var=; export $var; $relink_command"
  66387. else
  66388. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  66389. - $echo "$help" 1>&2
  66390. - exit $EXIT_FAILURE
  66391. + func_quote_for_eval "$var_value"
  66392. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  66393. fi
  66394. + done
  66395. + # Quote the link command for shipping.
  66396. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  66397. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  66398. + if test "$hardcode_automatic" = yes ; then
  66399. + relink_command=
  66400. + fi
  66401. - # Read the libtool library.
  66402. - dlname=
  66403. - library_names=
  66404. + # Only create the output if not a dry run.
  66405. + $opt_dry_run || {
  66406. + for installed in no yes; do
  66407. + if test "$installed" = yes; then
  66408. + if test -z "$install_libdir"; then
  66409. + break
  66410. + fi
  66411. + output="$output_objdir/$outputname"i
  66412. + # Replace all uninstalled libtool libraries with the installed ones
  66413. + newdependency_libs=
  66414. + for deplib in $dependency_libs; do
  66415. + case $deplib in
  66416. + *.la)
  66417. + func_basename "$deplib"
  66418. + name="$func_basename_result"
  66419. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  66420. + test -z "$libdir" && \
  66421. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  66422. + newdependency_libs="$newdependency_libs $libdir/$name"
  66423. + ;;
  66424. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  66425. + esac
  66426. + done
  66427. + dependency_libs="$newdependency_libs"
  66428. + newdlfiles=
  66429. +
  66430. + for lib in $dlfiles; do
  66431. + case $lib in
  66432. + *.la)
  66433. + func_basename "$lib"
  66434. + name="$func_basename_result"
  66435. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  66436. + test -z "$libdir" && \
  66437. + func_fatal_error "\`$lib' is not a valid libtool archive"
  66438. + newdlfiles="$newdlfiles $libdir/$name"
  66439. + ;;
  66440. + *) newdlfiles="$newdlfiles $lib" ;;
  66441. + esac
  66442. + done
  66443. + dlfiles="$newdlfiles"
  66444. + newdlprefiles=
  66445. + for lib in $dlprefiles; do
  66446. + case $lib in
  66447. + *.la)
  66448. + # Only pass preopened files to the pseudo-archive (for
  66449. + # eventual linking with the app. that links it) if we
  66450. + # didn't already link the preopened objects directly into
  66451. + # the library:
  66452. + func_basename "$lib"
  66453. + name="$func_basename_result"
  66454. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  66455. + test -z "$libdir" && \
  66456. + func_fatal_error "\`$lib' is not a valid libtool archive"
  66457. + newdlprefiles="$newdlprefiles $libdir/$name"
  66458. + ;;
  66459. + esac
  66460. + done
  66461. + dlprefiles="$newdlprefiles"
  66462. + else
  66463. + newdlfiles=
  66464. + for lib in $dlfiles; do
  66465. + case $lib in
  66466. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  66467. + *) abs=`pwd`"/$lib" ;;
  66468. + esac
  66469. + newdlfiles="$newdlfiles $abs"
  66470. + done
  66471. + dlfiles="$newdlfiles"
  66472. + newdlprefiles=
  66473. + for lib in $dlprefiles; do
  66474. + case $lib in
  66475. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  66476. + *) abs=`pwd`"/$lib" ;;
  66477. + esac
  66478. + newdlprefiles="$newdlprefiles $abs"
  66479. + done
  66480. + dlprefiles="$newdlprefiles"
  66481. + fi
  66482. + $RM $output
  66483. + # place dlname in correct position for cygwin
  66484. + tdlname=$dlname
  66485. + case $host,$output,$installed,$module,$dlname in
  66486. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  66487. + esac
  66488. + $ECHO > $output "\
  66489. +# $outputname - a libtool library file
  66490. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  66491. +#
  66492. +# Please DO NOT delete this file!
  66493. +# It is necessary for linking the library.
  66494. - # If there is no directory component, then add one.
  66495. - case $file in
  66496. - */* | *\\*) . $file ;;
  66497. - *) . ./$file ;;
  66498. - esac
  66499. +# The name that we can dlopen(3).
  66500. +dlname='$tdlname'
  66501. - # Skip this library if it cannot be dlopened.
  66502. - if test -z "$dlname"; then
  66503. - # Warn if it was a shared library.
  66504. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  66505. - continue
  66506. - fi
  66507. +# Names of this library.
  66508. +library_names='$library_names'
  66509. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  66510. - test "X$dir" = "X$file" && dir=.
  66511. +# The name of the static archive.
  66512. +old_library='$old_library'
  66513. - if test -f "$dir/$objdir/$dlname"; then
  66514. - dir="$dir/$objdir"
  66515. - else
  66516. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  66517. - exit $EXIT_FAILURE
  66518. - fi
  66519. - ;;
  66520. +# Linker flags that can not go in dependency_libs.
  66521. +inherited_linker_flags='$new_inherited_linker_flags'
  66522. - *.lo)
  66523. - # Just add the directory containing the .lo file.
  66524. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  66525. - test "X$dir" = "X$file" && dir=.
  66526. - ;;
  66527. +# Libraries that this one depends upon.
  66528. +dependency_libs='$dependency_libs'
  66529. - *)
  66530. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  66531. - continue
  66532. - ;;
  66533. - esac
  66534. +# Names of additional weak libraries provided by this library
  66535. +weak_library_names='$weak_libs'
  66536. - # Get the absolute pathname.
  66537. - absdir=`cd "$dir" && pwd`
  66538. - test -n "$absdir" && dir="$absdir"
  66539. +# Version information for $libname.
  66540. +current=$current
  66541. +age=$age
  66542. +revision=$revision
  66543. - # Now add the directory to shlibpath_var.
  66544. - if eval "test -z \"\$$shlibpath_var\""; then
  66545. - eval "$shlibpath_var=\"\$dir\""
  66546. - else
  66547. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  66548. - fi
  66549. - done
  66550. +# Is this an already installed library?
  66551. +installed=$installed
  66552. - # This variable tells wrapper scripts just to set shlibpath_var
  66553. - # rather than running their programs.
  66554. - libtool_execute_magic="$magic"
  66555. +# Should we warn about portability when linking against -modules?
  66556. +shouldnotlink=$module
  66557. - # Check if any of the arguments is a wrapper script.
  66558. - args=
  66559. - for file
  66560. - do
  66561. - case $file in
  66562. - -*) ;;
  66563. - *)
  66564. - # Do a test to see if this is really a libtool program.
  66565. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  66566. - # If there is no directory component, then add one.
  66567. - case $file in
  66568. - */* | *\\*) . $file ;;
  66569. - *) . ./$file ;;
  66570. - esac
  66571. +# Files to dlopen/dlpreopen
  66572. +dlopen='$dlfiles'
  66573. +dlpreopen='$dlprefiles'
  66574. - # Transform arg to wrapped name.
  66575. - file="$progdir/$program"
  66576. - fi
  66577. - ;;
  66578. - esac
  66579. - # Quote arguments (to preserve shell metacharacters).
  66580. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  66581. - args="$args \"$file\""
  66582. - done
  66583. +# Directory that this library needs to be installed in:
  66584. +libdir='$install_libdir'"
  66585. + if test "$installed" = no && test "$need_relink" = yes; then
  66586. + $ECHO >> $output "\
  66587. +relink_command=\"$relink_command\""
  66588. + fi
  66589. + done
  66590. + }
  66591. - if test -z "$run"; then
  66592. - if test -n "$shlibpath_var"; then
  66593. - # Export the shlibpath_var.
  66594. - eval "export $shlibpath_var"
  66595. - fi
  66596. + # Do a symbolic link so that the libtool archive can be found in
  66597. + # LD_LIBRARY_PATH before the program is installed.
  66598. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  66599. + ;;
  66600. + esac
  66601. + exit $EXIT_SUCCESS
  66602. +}
  66603. - # Restore saved environment variables
  66604. - if test "${save_LC_ALL+set}" = set; then
  66605. - LC_ALL="$save_LC_ALL"; export LC_ALL
  66606. - fi
  66607. - if test "${save_LANG+set}" = set; then
  66608. - LANG="$save_LANG"; export LANG
  66609. - fi
  66610. +{ test "$mode" = link || test "$mode" = relink; } &&
  66611. + func_mode_link ${1+"$@"}
  66612. - # Now prepare to actually exec the command.
  66613. - exec_cmd="\$cmd$args"
  66614. - else
  66615. - # Display what would be done.
  66616. - if test -n "$shlibpath_var"; then
  66617. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  66618. - $echo "export $shlibpath_var"
  66619. - fi
  66620. - $echo "$cmd$args"
  66621. - exit $EXIT_SUCCESS
  66622. - fi
  66623. - ;;
  66624. - # libtool clean and uninstall mode
  66625. - clean | uninstall)
  66626. - modename="$modename: $mode"
  66627. - rm="$nonopt"
  66628. +# func_mode_uninstall arg...
  66629. +func_mode_uninstall ()
  66630. +{
  66631. + $opt_debug
  66632. + RM="$nonopt"
  66633. files=
  66634. rmforce=
  66635. exit_status=0
  66636. @@ -6456,30 +8209,28 @@
  66637. for arg
  66638. do
  66639. case $arg in
  66640. - -f) rm="$rm $arg"; rmforce=yes ;;
  66641. - -*) rm="$rm $arg" ;;
  66642. + -f) RM="$RM $arg"; rmforce=yes ;;
  66643. + -*) RM="$RM $arg" ;;
  66644. *) files="$files $arg" ;;
  66645. esac
  66646. done
  66647. - if test -z "$rm"; then
  66648. - $echo "$modename: you must specify an RM program" 1>&2
  66649. - $echo "$help" 1>&2
  66650. - exit $EXIT_FAILURE
  66651. - fi
  66652. + test -z "$RM" && \
  66653. + func_fatal_help "you must specify an RM program"
  66654. rmdirs=
  66655. origobjdir="$objdir"
  66656. for file in $files; do
  66657. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  66658. - if test "X$dir" = "X$file"; then
  66659. - dir=.
  66660. + func_dirname "$file" "" "."
  66661. + dir="$func_dirname_result"
  66662. + if test "X$dir" = X.; then
  66663. objdir="$origobjdir"
  66664. else
  66665. objdir="$dir/$origobjdir"
  66666. fi
  66667. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  66668. + func_basename "$file"
  66669. + name="$func_basename_result"
  66670. test "$mode" = uninstall && objdir="$dir"
  66671. # Remember objdir for removal later, being careful to avoid duplicates
  66672. @@ -6491,9 +8242,9 @@
  66673. fi
  66674. # Don't error if the file doesn't exist and rm -f was used.
  66675. - if (test -L "$file") >/dev/null 2>&1 \
  66676. - || (test -h "$file") >/dev/null 2>&1 \
  66677. - || test -f "$file"; then
  66678. + if { test -L "$file"; } >/dev/null 2>&1 ||
  66679. + { test -h "$file"; } >/dev/null 2>&1 ||
  66680. + test -f "$file"; then
  66681. :
  66682. elif test -d "$file"; then
  66683. exit_status=1
  66684. @@ -6507,8 +8258,8 @@
  66685. case $name in
  66686. *.la)
  66687. # Possibly a libtool archive, so verify it.
  66688. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  66689. - . $dir/$name
  66690. + if func_lalib_p "$file"; then
  66691. + func_source $dir/$name
  66692. # Delete the libtool libraries and symlinks.
  66693. for n in $library_names; do
  66694. @@ -6523,39 +8274,17 @@
  66695. *" $dlname "*) ;;
  66696. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  66697. esac
  66698. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  66699. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  66700. ;;
  66701. uninstall)
  66702. if test -n "$library_names"; then
  66703. # Do each command in the postuninstall commands.
  66704. - cmds=$postuninstall_cmds
  66705. - save_ifs="$IFS"; IFS='~'
  66706. - for cmd in $cmds; do
  66707. - IFS="$save_ifs"
  66708. - eval cmd=\"$cmd\"
  66709. - $show "$cmd"
  66710. - $run eval "$cmd"
  66711. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  66712. - exit_status=1
  66713. - fi
  66714. - done
  66715. - IFS="$save_ifs"
  66716. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  66717. fi
  66718. if test -n "$old_library"; then
  66719. # Do each command in the old_postuninstall commands.
  66720. - cmds=$old_postuninstall_cmds
  66721. - save_ifs="$IFS"; IFS='~'
  66722. - for cmd in $cmds; do
  66723. - IFS="$save_ifs"
  66724. - eval cmd=\"$cmd\"
  66725. - $show "$cmd"
  66726. - $run eval "$cmd"
  66727. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  66728. - exit_status=1
  66729. - fi
  66730. - done
  66731. - IFS="$save_ifs"
  66732. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  66733. fi
  66734. # FIXME: should reinstall the best remaining shared library.
  66735. ;;
  66736. @@ -6565,20 +8294,20 @@
  66737. *.lo)
  66738. # Possibly a libtool object, so verify it.
  66739. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  66740. + if func_lalib_p "$file"; then
  66741. # Read the .lo file
  66742. - . $dir/$name
  66743. + func_source $dir/$name
  66744. # Add PIC object to the list of files to remove.
  66745. - if test -n "$pic_object" \
  66746. - && test "$pic_object" != none; then
  66747. + if test -n "$pic_object" &&
  66748. + test "$pic_object" != none; then
  66749. rmfiles="$rmfiles $dir/$pic_object"
  66750. fi
  66751. # Add non-PIC object to the list of files to remove.
  66752. - if test -n "$non_pic_object" \
  66753. - && test "$non_pic_object" != none; then
  66754. + if test -n "$non_pic_object" &&
  66755. + test "$non_pic_object" != none; then
  66756. rmfiles="$rmfiles $dir/$non_pic_object"
  66757. fi
  66758. fi
  66759. @@ -6589,17 +8318,26 @@
  66760. noexename=$name
  66761. case $file in
  66762. *.exe)
  66763. - file=`$echo $file|${SED} 's,.exe$,,'`
  66764. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  66765. + func_stripname '' '.exe' "$file"
  66766. + file=$func_stripname_result
  66767. + func_stripname '' '.exe' "$name"
  66768. + noexename=$func_stripname_result
  66769. # $file with .exe has already been added to rmfiles,
  66770. # add $file without .exe
  66771. rmfiles="$rmfiles $file"
  66772. ;;
  66773. esac
  66774. # Do a test to see if this is a libtool program.
  66775. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  66776. - relink_command=
  66777. - . $dir/$noexename
  66778. + if func_ltwrapper_p "$file"; then
  66779. + if func_ltwrapper_executable_p "$file"; then
  66780. + func_ltwrapper_scriptname "$file"
  66781. + relink_command=
  66782. + func_source $func_ltwrapper_scriptname_result
  66783. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  66784. + else
  66785. + relink_command=
  66786. + func_source $dir/$noexename
  66787. + fi
  66788. # note $name still contains .exe if it was in $file originally
  66789. # as does the version of $file that was added into $rmfiles
  66790. @@ -6614,237 +8352,38 @@
  66791. fi
  66792. ;;
  66793. esac
  66794. - $show "$rm $rmfiles"
  66795. - $run $rm $rmfiles || exit_status=1
  66796. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  66797. done
  66798. objdir="$origobjdir"
  66799. # Try to remove the ${objdir}s in the directories where we deleted files
  66800. for dir in $rmdirs; do
  66801. if test -d "$dir"; then
  66802. - $show "rmdir $dir"
  66803. - $run rmdir $dir >/dev/null 2>&1
  66804. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  66805. fi
  66806. done
  66807. exit $exit_status
  66808. - ;;
  66809. +}
  66810. - "")
  66811. - $echo "$modename: you must specify a MODE" 1>&2
  66812. - $echo "$generic_help" 1>&2
  66813. - exit $EXIT_FAILURE
  66814. - ;;
  66815. - esac
  66816. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  66817. + func_mode_uninstall ${1+"$@"}
  66818. - if test -z "$exec_cmd"; then
  66819. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  66820. - $echo "$generic_help" 1>&2
  66821. - exit $EXIT_FAILURE
  66822. - fi
  66823. -fi # test -z "$show_help"
  66824. +test -z "$mode" && {
  66825. + help="$generic_help"
  66826. + func_fatal_help "you must specify a MODE"
  66827. +}
  66828. +
  66829. +test -z "$exec_cmd" && \
  66830. + func_fatal_help "invalid operation mode \`$mode'"
  66831. if test -n "$exec_cmd"; then
  66832. - eval exec $exec_cmd
  66833. + eval exec "$exec_cmd"
  66834. exit $EXIT_FAILURE
  66835. fi
  66836. -# We need to display help for each of the modes.
  66837. -case $mode in
  66838. -"") $echo \
  66839. -"Usage: $modename [OPTION]... [MODE-ARG]...
  66840. -
  66841. -Provide generalized library-building support services.
  66842. -
  66843. - --config show all configuration variables
  66844. - --debug enable verbose shell tracing
  66845. --n, --dry-run display commands without modifying any files
  66846. - --features display basic configuration information and exit
  66847. - --finish same as \`--mode=finish'
  66848. - --help display this help message and exit
  66849. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  66850. - --quiet same as \`--silent'
  66851. - --silent don't print informational messages
  66852. - --tag=TAG use configuration variables from tag TAG
  66853. - --version print version information
  66854. -
  66855. -MODE must be one of the following:
  66856. -
  66857. - clean remove files from the build directory
  66858. - compile compile a source file into a libtool object
  66859. - execute automatically set library path, then run a program
  66860. - finish complete the installation of libtool libraries
  66861. - install install libraries or executables
  66862. - link create a library or an executable
  66863. - uninstall remove libraries from an installed directory
  66864. -
  66865. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  66866. -a more detailed description of MODE.
  66867. -
  66868. -Report bugs to <bug-libtool@gnu.org>."
  66869. - exit $EXIT_SUCCESS
  66870. - ;;
  66871. -
  66872. -clean)
  66873. - $echo \
  66874. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  66875. -
  66876. -Remove files from the build directory.
  66877. -
  66878. -RM is the name of the program to use to delete files associated with each FILE
  66879. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  66880. -to RM.
  66881. -
  66882. -If FILE is a libtool library, object or program, all the files associated
  66883. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  66884. - ;;
  66885. -
  66886. -compile)
  66887. - $echo \
  66888. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  66889. -
  66890. -Compile a source file into a libtool library object.
  66891. -
  66892. -This mode accepts the following additional options:
  66893. -
  66894. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  66895. - -prefer-pic try to building PIC objects only
  66896. - -prefer-non-pic try to building non-PIC objects only
  66897. - -static always build a \`.o' file suitable for static linking
  66898. -
  66899. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  66900. -from the given SOURCEFILE.
  66901. -
  66902. -The output file name is determined by removing the directory component from
  66903. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  66904. -library object suffix, \`.lo'."
  66905. - ;;
  66906. -
  66907. -execute)
  66908. - $echo \
  66909. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  66910. -
  66911. -Automatically set library path, then run a program.
  66912. -
  66913. -This mode accepts the following additional options:
  66914. -
  66915. - -dlopen FILE add the directory containing FILE to the library path
  66916. -
  66917. -This mode sets the library path environment variable according to \`-dlopen'
  66918. -flags.
  66919. -
  66920. -If any of the ARGS are libtool executable wrappers, then they are translated
  66921. -into their corresponding uninstalled binary, and any of their required library
  66922. -directories are added to the library path.
  66923. -
  66924. -Then, COMMAND is executed, with ARGS as arguments."
  66925. - ;;
  66926. -
  66927. -finish)
  66928. - $echo \
  66929. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  66930. -
  66931. -Complete the installation of libtool libraries.
  66932. -
  66933. -Each LIBDIR is a directory that contains libtool libraries.
  66934. -
  66935. -The commands that this mode executes may require superuser privileges. Use
  66936. -the \`--dry-run' option if you just want to see what would be executed."
  66937. - ;;
  66938. -
  66939. -install)
  66940. - $echo \
  66941. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  66942. -
  66943. -Install executables or libraries.
  66944. -
  66945. -INSTALL-COMMAND is the installation command. The first component should be
  66946. -either the \`install' or \`cp' program.
  66947. -
  66948. -The rest of the components are interpreted as arguments to that command (only
  66949. -BSD-compatible install options are recognized)."
  66950. - ;;
  66951. -
  66952. -link)
  66953. - $echo \
  66954. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  66955. -
  66956. -Link object files or libraries together to form another library, or to
  66957. -create an executable program.
  66958. -
  66959. -LINK-COMMAND is a command using the C compiler that you would use to create
  66960. -a program from several object files.
  66961. -
  66962. -The following components of LINK-COMMAND are treated specially:
  66963. -
  66964. - -all-static do not do any dynamic linking at all
  66965. - -avoid-version do not add a version suffix if possible
  66966. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  66967. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  66968. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  66969. - -export-symbols SYMFILE
  66970. - try to export only the symbols listed in SYMFILE
  66971. - -export-symbols-regex REGEX
  66972. - try to export only the symbols matching REGEX
  66973. - -LLIBDIR search LIBDIR for required installed libraries
  66974. - -lNAME OUTPUT-FILE requires the installed library libNAME
  66975. - -module build a library that can dlopened
  66976. - -no-fast-install disable the fast-install mode
  66977. - -no-install link a not-installable executable
  66978. - -no-undefined declare that a library does not refer to external symbols
  66979. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  66980. - -objectlist FILE Use a list of object files found in FILE to specify objects
  66981. - -precious-files-regex REGEX
  66982. - don't remove output files matching REGEX
  66983. - -release RELEASE specify package release information
  66984. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  66985. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  66986. - -static do not do any dynamic linking of libtool libraries
  66987. - -version-info CURRENT[:REVISION[:AGE]]
  66988. - specify library version info [each variable defaults to 0]
  66989. -
  66990. -All other options (arguments beginning with \`-') are ignored.
  66991. -
  66992. -Every other argument is treated as a filename. Files ending in \`.la' are
  66993. -treated as uninstalled libtool libraries, other files are standard or library
  66994. -object files.
  66995. -
  66996. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  66997. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  66998. -required, except when creating a convenience library.
  66999. -
  67000. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  67001. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  67002. -
  67003. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  67004. -is created, otherwise an executable program is created."
  67005. - ;;
  67006. -
  67007. -uninstall)
  67008. - $echo \
  67009. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  67010. -
  67011. -Remove libraries from an installation directory.
  67012. -
  67013. -RM is the name of the program to use to delete files associated with each FILE
  67014. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  67015. -to RM.
  67016. +exit $exit_status
  67017. -If FILE is a libtool library, all the files associated with it are deleted.
  67018. -Otherwise, only FILE itself is deleted using RM."
  67019. - ;;
  67020. -
  67021. -*)
  67022. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  67023. - $echo "$help" 1>&2
  67024. - exit $EXIT_FAILURE
  67025. - ;;
  67026. -esac
  67027. -
  67028. -$echo
  67029. -$echo "Try \`$modename --help' for more information about other modes."
  67030. -
  67031. -exit $?
  67032. # The TAGs below are defined such that we never get into a situation
  67033. # in which we disable both kinds of libraries. Given conflicting
  67034. @@ -6858,14 +8397,17 @@
  67035. # configuration. But we'll never go from static-only to shared-only.
  67036. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  67037. -disable_libs=shared
  67038. +build_libtool_libs=no
  67039. +build_old_libs=yes
  67040. # ### END LIBTOOL TAG CONFIG: disable-shared
  67041. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  67042. -disable_libs=static
  67043. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  67044. # ### END LIBTOOL TAG CONFIG: disable-static
  67045. # Local Variables:
  67046. # mode:shell-script
  67047. # sh-indentation:2
  67048. # End:
  67049. +# vi:sw=2
  67050. +
  67051. diff -Nur faad2-2.7.orig/Makefile.in faad2-2.7/Makefile.in
  67052. --- faad2-2.7.orig/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  67053. +++ faad2-2.7/Makefile.in 2011-02-16 17:55:08.134802363 +0100
  67054. @@ -1,8 +1,9 @@
  67055. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  67056. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67057. # @configure_input@
  67058. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67059. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  67060. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67061. +# Inc.
  67062. # This Makefile.in is free software; the Free Software Foundation
  67063. # gives unlimited permission to copy and/or distribute it,
  67064. # with or without modifications, as long as this notice is preserved.
  67065. @@ -13,15 +14,12 @@
  67066. # PARTICULAR PURPOSE.
  67067. @SET_MAKE@
  67068. -srcdir = @srcdir@
  67069. -top_srcdir = @top_srcdir@
  67070. VPATH = @srcdir@
  67071. pkgdatadir = $(datadir)/@PACKAGE@
  67072. -pkglibdir = $(libdir)/@PACKAGE@
  67073. pkgincludedir = $(includedir)/@PACKAGE@
  67074. -top_builddir = .
  67075. +pkglibdir = $(libdir)/@PACKAGE@
  67076. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67077. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67078. -INSTALL = @INSTALL@
  67079. install_sh_DATA = $(install_sh) -c -m 644
  67080. install_sh_PROGRAM = $(install_sh) -c
  67081. install_sh_SCRIPT = $(install_sh) -c
  67082. @@ -35,29 +33,36 @@
  67083. POST_UNINSTALL = :
  67084. build_triplet = @build@
  67085. host_triplet = @host@
  67086. +subdir = .
  67087. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  67088. $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  67089. $(srcdir)/faad2.spec.in $(top_srcdir)/configure AUTHORS \
  67090. COPYING ChangeLog INSTALL NEWS TODO compile config.guess \
  67091. config.sub depcomp install-sh ltmain.sh missing
  67092. -subdir = .
  67093. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67094. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  67095. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  67096. $(ACLOCAL_M4)
  67097. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  67098. - configure.lineno configure.status.lineno
  67099. + configure.lineno config.status.lineno
  67100. mkinstalldirs = $(install_sh) -d
  67101. CONFIG_HEADER = config.h
  67102. CONFIG_CLEAN_FILES = faad2.spec
  67103. +CONFIG_CLEAN_VPATH_FILES =
  67104. SOURCES =
  67105. DIST_SOURCES =
  67106. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  67107. html-recursive info-recursive install-data-recursive \
  67108. - install-exec-recursive install-info-recursive \
  67109. - install-recursive installcheck-recursive installdirs-recursive \
  67110. - pdf-recursive ps-recursive uninstall-info-recursive \
  67111. - uninstall-recursive
  67112. + install-dvi-recursive install-exec-recursive \
  67113. + install-html-recursive install-info-recursive \
  67114. + install-pdf-recursive install-ps-recursive install-recursive \
  67115. + installcheck-recursive installdirs-recursive pdf-recursive \
  67116. + ps-recursive uninstall-recursive
  67117. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  67118. + distclean-recursive maintainer-clean-recursive
  67119. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  67120. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  67121. + distdir dist dist-all distcheck
  67122. ETAGS = etags
  67123. CTAGS = ctags
  67124. DIST_SUBDIRS = $(SUBDIRS)
  67125. @@ -65,16 +70,39 @@
  67126. distdir = $(PACKAGE)-$(VERSION)
  67127. top_distdir = $(distdir)
  67128. am__remove_distdir = \
  67129. - { test ! -d $(distdir) \
  67130. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  67131. - && rm -fr $(distdir); }; }
  67132. + { test ! -d "$(distdir)" \
  67133. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  67134. + && rm -fr "$(distdir)"; }; }
  67135. +am__relativize = \
  67136. + dir0=`pwd`; \
  67137. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  67138. + sed_rest='s,^[^/]*/*,,'; \
  67139. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  67140. + sed_butlast='s,/*[^/]*$$,,'; \
  67141. + while test -n "$$dir1"; do \
  67142. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  67143. + if test "$$first" != "."; then \
  67144. + if test "$$first" = ".."; then \
  67145. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  67146. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  67147. + else \
  67148. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  67149. + if test "$$first2" = "$$first"; then \
  67150. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  67151. + else \
  67152. + dir2="../$$dir2"; \
  67153. + fi; \
  67154. + dir0="$$dir0"/"$$first"; \
  67155. + fi; \
  67156. + fi; \
  67157. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  67158. + done; \
  67159. + reldir="$$dir2"
  67160. DIST_ARCHIVES = $(distdir).tar.gz
  67161. GZIP_ENV = --best
  67162. distuninstallcheck_listfiles = find . -type f -print
  67163. distcleancheck_listfiles = find . -type f -print
  67164. ACLOCAL = @ACLOCAL@
  67165. -AMDEP_FALSE = @AMDEP_FALSE@
  67166. -AMDEP_TRUE = @AMDEP_TRUE@
  67167. AMTAR = @AMTAR@
  67168. AR = @AR@
  67169. AUTOCONF = @AUTOCONF@
  67170. @@ -93,55 +121,62 @@
  67171. CYGPATH_W = @CYGPATH_W@
  67172. DEFS = @DEFS@
  67173. DEPDIR = @DEPDIR@
  67174. -ECHO = @ECHO@
  67175. +DSYMUTIL = @DSYMUTIL@
  67176. +DUMPBIN = @DUMPBIN@
  67177. ECHO_C = @ECHO_C@
  67178. ECHO_N = @ECHO_N@
  67179. ECHO_T = @ECHO_T@
  67180. EGREP = @EGREP@
  67181. EXEEXT = @EXEEXT@
  67182. -F77 = @F77@
  67183. -FFLAGS = @FFLAGS@
  67184. +FGREP = @FGREP@
  67185. GREP = @GREP@
  67186. GTK_CONFIG = @GTK_CONFIG@
  67187. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  67188. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  67189. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  67190. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  67191. +INSTALL = @INSTALL@
  67192. INSTALL_DATA = @INSTALL_DATA@
  67193. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67194. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67195. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67196. +LD = @LD@
  67197. LDFLAGS = @LDFLAGS@
  67198. LIBOBJS = @LIBOBJS@
  67199. LIBS = @LIBS@
  67200. LIBTOOL = @LIBTOOL@
  67201. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  67202. +LIPO = @LIPO@
  67203. LN_S = @LN_S@
  67204. LTLIBOBJS = @LTLIBOBJS@
  67205. MAKEINFO = @MAKEINFO@
  67206. +MKDIR_P = @MKDIR_P@
  67207. MP4FF_LIBS = @MP4FF_LIBS@
  67208. +NM = @NM@
  67209. +NMEDIT = @NMEDIT@
  67210. +OBJDUMP = @OBJDUMP@
  67211. OBJEXT = @OBJEXT@
  67212. +OTOOL = @OTOOL@
  67213. +OTOOL64 = @OTOOL64@
  67214. PACKAGE = @PACKAGE@
  67215. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67216. PACKAGE_NAME = @PACKAGE_NAME@
  67217. PACKAGE_STRING = @PACKAGE_STRING@
  67218. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67219. +PACKAGE_URL = @PACKAGE_URL@
  67220. PACKAGE_VERSION = @PACKAGE_VERSION@
  67221. PATH_SEPARATOR = @PATH_SEPARATOR@
  67222. RANLIB = @RANLIB@
  67223. RPMBUILD = @RPMBUILD@
  67224. +SED = @SED@
  67225. SET_MAKE = @SET_MAKE@
  67226. SHELL = @SHELL@
  67227. STRIP = @STRIP@
  67228. VERSION = @VERSION@
  67229. XMMS_CONFIG = @XMMS_CONFIG@
  67230. +abs_builddir = @abs_builddir@
  67231. +abs_srcdir = @abs_srcdir@
  67232. +abs_top_builddir = @abs_top_builddir@
  67233. +abs_top_srcdir = @abs_top_srcdir@
  67234. ac_ct_CC = @ac_ct_CC@
  67235. ac_ct_CXX = @ac_ct_CXX@
  67236. -ac_ct_F77 = @ac_ct_F77@
  67237. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  67238. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  67239. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  67240. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  67241. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67242. am__include = @am__include@
  67243. am__leading_dot = @am__leading_dot@
  67244. am__quote = @am__quote@
  67245. @@ -153,6 +188,7 @@
  67246. build_cpu = @build_cpu@
  67247. build_os = @build_os@
  67248. build_vendor = @build_vendor@
  67249. +builddir = @builddir@
  67250. datadir = @datadir@
  67251. datarootdir = @datarootdir@
  67252. docdir = @docdir@
  67253. @@ -172,6 +208,7 @@
  67254. libexecdir = @libexecdir@
  67255. localedir = @localedir@
  67256. localstatedir = @localstatedir@
  67257. +lt_ECHO = @lt_ECHO@
  67258. mandir = @mandir@
  67259. mkdir_p = @mkdir_p@
  67260. oldincludedir = @oldincludedir@
  67261. @@ -181,8 +218,12 @@
  67262. psdir = @psdir@
  67263. sbindir = @sbindir@
  67264. sharedstatedir = @sharedstatedir@
  67265. +srcdir = @srcdir@
  67266. sysconfdir = @sysconfdir@
  67267. target_alias = @target_alias@
  67268. +top_build_prefix = @top_build_prefix@
  67269. +top_builddir = @top_builddir@
  67270. +top_srcdir = @top_srcdir@
  67271. SUBDIRS = libfaad common frontend plugins
  67272. EXTRA_DIST = faad2.spec
  67273. all: config.h
  67274. @@ -195,15 +236,15 @@
  67275. @for dep in $?; do \
  67276. case '$(am__configure_deps)' in \
  67277. *$$dep*) \
  67278. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  67279. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  67280. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  67281. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  67282. && exit 0; \
  67283. exit 1;; \
  67284. esac; \
  67285. done; \
  67286. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  67287. - cd $(top_srcdir) && \
  67288. - $(AUTOMAKE) --gnu Makefile
  67289. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  67290. + $(am__cd) $(top_srcdir) && \
  67291. + $(AUTOMAKE) --gnu Makefile
  67292. .PRECIOUS: Makefile
  67293. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67294. @case '$?' in \
  67295. @@ -219,21 +260,22 @@
  67296. $(SHELL) ./config.status --recheck
  67297. $(top_srcdir)/configure: $(am__configure_deps)
  67298. - cd $(srcdir) && $(AUTOCONF)
  67299. + $(am__cd) $(srcdir) && $(AUTOCONF)
  67300. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  67301. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  67302. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  67303. +$(am__aclocal_m4_deps):
  67304. config.h: stamp-h1
  67305. @if test ! -f $@; then \
  67306. rm -f stamp-h1; \
  67307. - $(MAKE) stamp-h1; \
  67308. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  67309. else :; fi
  67310. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  67311. @rm -f stamp-h1
  67312. cd $(top_builddir) && $(SHELL) ./config.status config.h
  67313. $(srcdir)/config.h.in: $(am__configure_deps)
  67314. - cd $(top_srcdir) && $(AUTOHEADER)
  67315. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  67316. rm -f stamp-h1
  67317. touch $@
  67318. @@ -249,8 +291,7 @@
  67319. -rm -rf .libs _libs
  67320. distclean-libtool:
  67321. - -rm -f libtool
  67322. -uninstall-info-am:
  67323. + -rm -f libtool config.lt
  67324. # This directory's subdirectories are mostly independent; you can cd
  67325. # into them and run `make' without going through this Makefile.
  67326. @@ -259,7 +300,7 @@
  67327. # (which will cause the Makefiles to be regenerated when you run `make');
  67328. # (2) otherwise, pass the desired values on the `make' command line.
  67329. $(RECURSIVE_TARGETS):
  67330. - @failcom='exit 1'; \
  67331. + @fail= failcom='exit 1'; \
  67332. for f in x $$MAKEFLAGS; do \
  67333. case $$f in \
  67334. *=* | --[!k]*);; \
  67335. @@ -276,16 +317,15 @@
  67336. else \
  67337. local_target="$$target"; \
  67338. fi; \
  67339. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  67340. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  67341. || eval $$failcom; \
  67342. done; \
  67343. if test "$$dot_seen" = "no"; then \
  67344. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  67345. fi; test -z "$$fail"
  67346. -mostlyclean-recursive clean-recursive distclean-recursive \
  67347. -maintainer-clean-recursive:
  67348. - @failcom='exit 1'; \
  67349. +$(RECURSIVE_CLEAN_TARGETS):
  67350. + @fail= failcom='exit 1'; \
  67351. for f in x $$MAKEFLAGS; do \
  67352. case $$f in \
  67353. *=* | --[!k]*);; \
  67354. @@ -311,16 +351,16 @@
  67355. else \
  67356. local_target="$$target"; \
  67357. fi; \
  67358. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  67359. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  67360. || eval $$failcom; \
  67361. done && test -z "$$fail"
  67362. tags-recursive:
  67363. list='$(SUBDIRS)'; for subdir in $$list; do \
  67364. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  67365. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  67366. done
  67367. ctags-recursive:
  67368. list='$(SUBDIRS)'; for subdir in $$list; do \
  67369. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  67370. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  67371. done
  67372. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  67373. @@ -328,14 +368,14 @@
  67374. unique=`for i in $$list; do \
  67375. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67376. done | \
  67377. - $(AWK) ' { files[$$0] = 1; } \
  67378. - END { for (i in files) print i; }'`; \
  67379. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67380. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67381. mkid -fID $$unique
  67382. tags: TAGS
  67383. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  67384. $(TAGS_FILES) $(LISP)
  67385. - tags=; \
  67386. + set x; \
  67387. here=`pwd`; \
  67388. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  67389. include_option=--etags-include; \
  67390. @@ -347,93 +387,114 @@
  67391. list='$(SUBDIRS)'; for subdir in $$list; do \
  67392. if test "$$subdir" = .; then :; else \
  67393. test ! -f $$subdir/TAGS || \
  67394. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  67395. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  67396. fi; \
  67397. done; \
  67398. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  67399. unique=`for i in $$list; do \
  67400. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67401. done | \
  67402. - $(AWK) ' { files[$$0] = 1; } \
  67403. - END { for (i in files) print i; }'`; \
  67404. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  67405. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67406. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67407. + shift; \
  67408. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  67409. test -n "$$unique" || unique=$$empty_fix; \
  67410. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67411. - $$tags $$unique; \
  67412. + if test $$# -gt 0; then \
  67413. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67414. + "$$@" $$unique; \
  67415. + else \
  67416. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67417. + $$unique; \
  67418. + fi; \
  67419. fi
  67420. ctags: CTAGS
  67421. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  67422. $(TAGS_FILES) $(LISP)
  67423. - tags=; \
  67424. - here=`pwd`; \
  67425. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  67426. unique=`for i in $$list; do \
  67427. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67428. done | \
  67429. - $(AWK) ' { files[$$0] = 1; } \
  67430. - END { for (i in files) print i; }'`; \
  67431. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  67432. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67433. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67434. + test -z "$(CTAGS_ARGS)$$unique" \
  67435. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  67436. - $$tags $$unique
  67437. + $$unique
  67438. GTAGS:
  67439. here=`$(am__cd) $(top_builddir) && pwd` \
  67440. - && cd $(top_srcdir) \
  67441. - && gtags -i $(GTAGS_ARGS) $$here
  67442. + && $(am__cd) $(top_srcdir) \
  67443. + && gtags -i $(GTAGS_ARGS) "$$here"
  67444. distclean-tags:
  67445. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  67446. distdir: $(DISTFILES)
  67447. $(am__remove_distdir)
  67448. - mkdir $(distdir)
  67449. - $(mkdir_p) $(distdir)/.
  67450. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  67451. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  67452. - list='$(DISTFILES)'; for file in $$list; do \
  67453. - case $$file in \
  67454. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  67455. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  67456. - esac; \
  67457. + test -d "$(distdir)" || mkdir "$(distdir)"
  67458. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67459. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67460. + list='$(DISTFILES)'; \
  67461. + dist_files=`for file in $$list; do echo $$file; done | \
  67462. + sed -e "s|^$$srcdirstrip/||;t" \
  67463. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  67464. + case $$dist_files in \
  67465. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  67466. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  67467. + sort -u` ;; \
  67468. + esac; \
  67469. + for file in $$dist_files; do \
  67470. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  67471. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  67472. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  67473. - dir="/$$dir"; \
  67474. - $(mkdir_p) "$(distdir)$$dir"; \
  67475. - else \
  67476. - dir=''; \
  67477. - fi; \
  67478. if test -d $$d/$$file; then \
  67479. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  67480. + if test -d "$(distdir)/$$file"; then \
  67481. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67482. + fi; \
  67483. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  67484. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  67485. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  67486. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67487. fi; \
  67488. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  67489. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  67490. else \
  67491. - test -f $(distdir)/$$file \
  67492. - || cp -p $$d/$$file $(distdir)/$$file \
  67493. + test -f "$(distdir)/$$file" \
  67494. + || cp -p $$d/$$file "$(distdir)/$$file" \
  67495. || exit 1; \
  67496. fi; \
  67497. done
  67498. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67499. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67500. if test "$$subdir" = .; then :; else \
  67501. test -d "$(distdir)/$$subdir" \
  67502. - || $(mkdir_p) "$(distdir)/$$subdir" \
  67503. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  67504. || exit 1; \
  67505. - distdir=`$(am__cd) $(distdir) && pwd`; \
  67506. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  67507. - (cd $$subdir && \
  67508. + fi; \
  67509. + done
  67510. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67511. + if test "$$subdir" = .; then :; else \
  67512. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  67513. + $(am__relativize); \
  67514. + new_distdir=$$reldir; \
  67515. + dir1=$$subdir; dir2="$(top_distdir)"; \
  67516. + $(am__relativize); \
  67517. + new_top_distdir=$$reldir; \
  67518. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  67519. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  67520. + ($(am__cd) $$subdir && \
  67521. $(MAKE) $(AM_MAKEFLAGS) \
  67522. - top_distdir="$$top_distdir" \
  67523. - distdir="$$distdir/$$subdir" \
  67524. + top_distdir="$$new_top_distdir" \
  67525. + distdir="$$new_distdir" \
  67526. + am__remove_distdir=: \
  67527. + am__skip_length_check=: \
  67528. + am__skip_mode_fix=: \
  67529. distdir) \
  67530. || exit 1; \
  67531. fi; \
  67532. done
  67533. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  67534. + -test -n "$(am__skip_mode_fix)" \
  67535. + || find "$(distdir)" -type d ! -perm -755 \
  67536. + -exec chmod u+rwx,go+rx {} \; -o \
  67537. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  67538. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  67539. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  67540. - || chmod -R a+r $(distdir)
  67541. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  67542. + || chmod -R a+r "$(distdir)"
  67543. dist-gzip: distdir
  67544. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  67545. $(am__remove_distdir)
  67546. @@ -442,6 +503,14 @@
  67547. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  67548. $(am__remove_distdir)
  67549. +dist-lzma: distdir
  67550. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  67551. + $(am__remove_distdir)
  67552. +
  67553. +dist-xz: distdir
  67554. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  67555. + $(am__remove_distdir)
  67556. +
  67557. dist-tarZ: distdir
  67558. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  67559. $(am__remove_distdir)
  67560. @@ -465,13 +534,17 @@
  67561. distcheck: dist
  67562. case '$(DIST_ARCHIVES)' in \
  67563. *.tar.gz*) \
  67564. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  67565. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  67566. *.tar.bz2*) \
  67567. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  67568. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  67569. + *.tar.lzma*) \
  67570. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  67571. + *.tar.xz*) \
  67572. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  67573. *.tar.Z*) \
  67574. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  67575. *.shar.gz*) \
  67576. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  67577. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  67578. *.zip*) \
  67579. unzip $(distdir).zip ;;\
  67580. esac
  67581. @@ -479,9 +552,11 @@
  67582. mkdir $(distdir)/_build
  67583. mkdir $(distdir)/_inst
  67584. chmod a-w $(distdir)
  67585. + test -d $(distdir)/_build || exit 0; \
  67586. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  67587. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  67588. - && cd $(distdir)/_build \
  67589. + && am__cwd=`pwd` \
  67590. + && $(am__cd) $(distdir)/_build \
  67591. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  67592. $(DISTCHECK_CONFIGURE_FLAGS) \
  67593. && $(MAKE) $(AM_MAKEFLAGS) \
  67594. @@ -503,13 +578,15 @@
  67595. && rm -rf "$$dc_destdir" \
  67596. && $(MAKE) $(AM_MAKEFLAGS) dist \
  67597. && rm -rf $(DIST_ARCHIVES) \
  67598. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  67599. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  67600. + && cd "$$am__cwd" \
  67601. + || exit 1
  67602. $(am__remove_distdir)
  67603. @(echo "$(distdir) archives ready for distribution: "; \
  67604. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  67605. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  67606. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  67607. distuninstallcheck:
  67608. - @cd $(distuninstallcheck_dir) \
  67609. + @$(am__cd) '$(distuninstallcheck_dir)' \
  67610. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  67611. || { echo "ERROR: files left after uninstall:" ; \
  67612. if test -n "$(DESTDIR)"; then \
  67613. @@ -551,6 +628,7 @@
  67614. distclean-generic:
  67615. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  67616. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  67617. maintainer-clean-generic:
  67618. @echo "This command is intended for maintainers to use"
  67619. @@ -571,18 +649,38 @@
  67620. html: html-recursive
  67621. +html-am:
  67622. +
  67623. info: info-recursive
  67624. info-am:
  67625. install-data-am:
  67626. +install-dvi: install-dvi-recursive
  67627. +
  67628. +install-dvi-am:
  67629. +
  67630. install-exec-am:
  67631. +install-html: install-html-recursive
  67632. +
  67633. +install-html-am:
  67634. +
  67635. install-info: install-info-recursive
  67636. +install-info-am:
  67637. +
  67638. install-man:
  67639. +install-pdf: install-pdf-recursive
  67640. +
  67641. +install-pdf-am:
  67642. +
  67643. +install-ps: install-ps-recursive
  67644. +
  67645. +install-ps-am:
  67646. +
  67647. installcheck-am:
  67648. maintainer-clean: maintainer-clean-recursive
  67649. @@ -603,30 +701,33 @@
  67650. ps-am:
  67651. -uninstall-am: uninstall-info-am
  67652. +uninstall-am:
  67653. -uninstall-info: uninstall-info-recursive
  67654. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  67655. + ctags-recursive install-am install-strip tags-recursive
  67656. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  67657. - check-am clean clean-generic clean-libtool clean-recursive \
  67658. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  67659. - dist-shar dist-tarZ dist-zip distcheck distclean \
  67660. - distclean-generic distclean-hdr distclean-libtool \
  67661. - distclean-recursive distclean-tags distcleancheck distdir \
  67662. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  67663. + all all-am am--refresh check check-am clean clean-generic \
  67664. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  67665. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  67666. + distcheck distclean distclean-generic distclean-hdr \
  67667. + distclean-libtool distclean-tags distcleancheck distdir \
  67668. distuninstallcheck dvi dvi-am html html-am info info-am \
  67669. - install install-am install-data install-data-am install-exec \
  67670. - install-exec-am install-info install-info-am install-man \
  67671. + install install-am install-data install-data-am install-dvi \
  67672. + install-dvi-am install-exec install-exec-am install-html \
  67673. + install-html-am install-info install-info-am install-man \
  67674. + install-pdf install-pdf-am install-ps install-ps-am \
  67675. install-strip installcheck installcheck-am installdirs \
  67676. installdirs-am maintainer-clean maintainer-clean-generic \
  67677. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  67678. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  67679. - tags tags-recursive uninstall uninstall-am uninstall-info-am
  67680. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  67681. + ps ps-am tags tags-recursive uninstall uninstall-am
  67682. rpm: Makefile
  67683. make dist
  67684. $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
  67685. rm $(PACKAGE)-$(VERSION).tar.gz
  67686. +
  67687. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  67688. # Otherwise a system limit (for SysV at least) may be exceeded.
  67689. .NOEXPORT:
  67690. diff -Nur faad2-2.7.orig/missing faad2-2.7/missing
  67691. --- faad2-2.7.orig/missing 2009-02-10 09:36:10.000000000 +0100
  67692. +++ faad2-2.7/missing 2011-02-16 17:55:07.623555269 +0100
  67693. @@ -1,10 +1,10 @@
  67694. #! /bin/sh
  67695. # Common stub for a few missing GNU programs while installing.
  67696. -scriptversion=2005-06-08.21
  67697. +scriptversion=2009-04-28.21; # UTC
  67698. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
  67699. -# Free Software Foundation, Inc.
  67700. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  67701. +# 2008, 2009 Free Software Foundation, Inc.
  67702. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  67703. # This program is free software; you can redistribute it and/or modify
  67704. @@ -18,9 +18,7 @@
  67705. # GNU General Public License for more details.
  67706. # You should have received a copy of the GNU General Public License
  67707. -# along with this program; if not, write to the Free Software
  67708. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  67709. -# 02110-1301, USA.
  67710. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  67711. # As a special exception to the GNU General Public License, if you
  67712. # distribute this file as part of a program that contains a
  67713. @@ -33,6 +31,8 @@
  67714. fi
  67715. run=:
  67716. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  67717. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  67718. # In the cases where this matters, `missing' is being run in the
  67719. # srcdir already.
  67720. @@ -44,7 +44,7 @@
  67721. msg="missing on your system"
  67722. -case "$1" in
  67723. +case $1 in
  67724. --run)
  67725. # Try to run requested program, and just exit if it succeeds.
  67726. run=
  67727. @@ -77,6 +77,7 @@
  67728. aclocal touch file \`aclocal.m4'
  67729. autoconf touch file \`configure'
  67730. autoheader touch file \`config.h.in'
  67731. + autom4te touch the output file, or create a stub one
  67732. automake touch all \`Makefile.in' files
  67733. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  67734. flex create \`lex.yy.c', if possible, from existing .c
  67735. @@ -86,6 +87,9 @@
  67736. tar try tar, gnutar, gtar, then tar without non-portable flags
  67737. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  67738. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  67739. +\`g' are ignored when checking the name.
  67740. +
  67741. Send bug reports to <bug-automake@gnu.org>."
  67742. exit $?
  67743. ;;
  67744. @@ -103,15 +107,22 @@
  67745. esac
  67746. +# normalize program name to check for.
  67747. +program=`echo "$1" | sed '
  67748. + s/^gnu-//; t
  67749. + s/^gnu//; t
  67750. + s/^g//; t'`
  67751. +
  67752. # Now exit if we have it, but it failed. Also exit now if we
  67753. # don't have it and --version was passed (most likely to detect
  67754. -# the program).
  67755. -case "$1" in
  67756. - lex|yacc)
  67757. +# the program). This is about non-GNU programs, so use $1 not
  67758. +# $program.
  67759. +case $1 in
  67760. + lex*|yacc*)
  67761. # Not GNU programs, they don't have --version.
  67762. ;;
  67763. - tar)
  67764. + tar*)
  67765. if test -n "$run"; then
  67766. echo 1>&2 "ERROR: \`tar' requires --run"
  67767. exit 1
  67768. @@ -135,7 +146,7 @@
  67769. # If it does not exist, or fails to run (possibly an outdated version),
  67770. # try to emulate it.
  67771. -case "$1" in
  67772. +case $program in
  67773. aclocal*)
  67774. echo 1>&2 "\
  67775. WARNING: \`$1' is $msg. You should only need it if
  67776. @@ -145,7 +156,7 @@
  67777. touch aclocal.m4
  67778. ;;
  67779. - autoconf)
  67780. + autoconf*)
  67781. echo 1>&2 "\
  67782. WARNING: \`$1' is $msg. You should only need it if
  67783. you modified \`${configure_ac}'. You might want to install the
  67784. @@ -154,7 +165,7 @@
  67785. touch configure
  67786. ;;
  67787. - autoheader)
  67788. + autoheader*)
  67789. echo 1>&2 "\
  67790. WARNING: \`$1' is $msg. You should only need it if
  67791. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  67792. @@ -164,7 +175,7 @@
  67793. test -z "$files" && files="config.h"
  67794. touch_files=
  67795. for f in $files; do
  67796. - case "$f" in
  67797. + case $f in
  67798. *:*) touch_files="$touch_files "`echo "$f" |
  67799. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  67800. *) touch_files="$touch_files $f.in";;
  67801. @@ -184,7 +195,7 @@
  67802. while read f; do touch "$f"; done
  67803. ;;
  67804. - autom4te)
  67805. + autom4te*)
  67806. echo 1>&2 "\
  67807. WARNING: \`$1' is needed, but is $msg.
  67808. You might have modified some files without having the
  67809. @@ -192,8 +203,8 @@
  67810. You can get \`$1' as part of \`Autoconf' from any GNU
  67811. archive site."
  67812. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  67813. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  67814. + file=`echo "$*" | sed -n "$sed_output"`
  67815. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67816. if test -f "$file"; then
  67817. touch $file
  67818. else
  67819. @@ -207,80 +218,78 @@
  67820. fi
  67821. ;;
  67822. - bison|yacc)
  67823. + bison*|yacc*)
  67824. echo 1>&2 "\
  67825. WARNING: \`$1' $msg. You should only need it if
  67826. you modified a \`.y' file. You may need the \`Bison' package
  67827. in order for those modifications to take effect. You can get
  67828. \`Bison' from any GNU archive site."
  67829. rm -f y.tab.c y.tab.h
  67830. - if [ $# -ne 1 ]; then
  67831. + if test $# -ne 1; then
  67832. eval LASTARG="\${$#}"
  67833. - case "$LASTARG" in
  67834. + case $LASTARG in
  67835. *.y)
  67836. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  67837. - if [ -f "$SRCFILE" ]; then
  67838. + if test -f "$SRCFILE"; then
  67839. cp "$SRCFILE" y.tab.c
  67840. fi
  67841. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  67842. - if [ -f "$SRCFILE" ]; then
  67843. + if test -f "$SRCFILE"; then
  67844. cp "$SRCFILE" y.tab.h
  67845. fi
  67846. ;;
  67847. esac
  67848. fi
  67849. - if [ ! -f y.tab.h ]; then
  67850. + if test ! -f y.tab.h; then
  67851. echo >y.tab.h
  67852. fi
  67853. - if [ ! -f y.tab.c ]; then
  67854. + if test ! -f y.tab.c; then
  67855. echo 'main() { return 0; }' >y.tab.c
  67856. fi
  67857. ;;
  67858. - lex|flex)
  67859. + lex*|flex*)
  67860. echo 1>&2 "\
  67861. WARNING: \`$1' is $msg. You should only need it if
  67862. you modified a \`.l' file. You may need the \`Flex' package
  67863. in order for those modifications to take effect. You can get
  67864. \`Flex' from any GNU archive site."
  67865. rm -f lex.yy.c
  67866. - if [ $# -ne 1 ]; then
  67867. + if test $# -ne 1; then
  67868. eval LASTARG="\${$#}"
  67869. - case "$LASTARG" in
  67870. + case $LASTARG in
  67871. *.l)
  67872. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  67873. - if [ -f "$SRCFILE" ]; then
  67874. + if test -f "$SRCFILE"; then
  67875. cp "$SRCFILE" lex.yy.c
  67876. fi
  67877. ;;
  67878. esac
  67879. fi
  67880. - if [ ! -f lex.yy.c ]; then
  67881. + if test ! -f lex.yy.c; then
  67882. echo 'main() { return 0; }' >lex.yy.c
  67883. fi
  67884. ;;
  67885. - help2man)
  67886. + help2man*)
  67887. echo 1>&2 "\
  67888. WARNING: \`$1' is $msg. You should only need it if
  67889. you modified a dependency of a manual page. You may need the
  67890. \`Help2man' package in order for those modifications to take
  67891. effect. You can get \`Help2man' from any GNU archive site."
  67892. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  67893. - if test -z "$file"; then
  67894. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  67895. - fi
  67896. - if [ -f "$file" ]; then
  67897. + file=`echo "$*" | sed -n "$sed_output"`
  67898. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67899. + if test -f "$file"; then
  67900. touch $file
  67901. else
  67902. test -z "$file" || exec >$file
  67903. echo ".ab help2man is required to generate this page"
  67904. - exit 1
  67905. + exit $?
  67906. fi
  67907. ;;
  67908. - makeinfo)
  67909. + makeinfo*)
  67910. echo 1>&2 "\
  67911. WARNING: \`$1' is $msg. You should only need it if
  67912. you modified a \`.texi' or \`.texinfo' file, or any other file
  67913. @@ -289,11 +298,17 @@
  67914. DU, IRIX). You might want to install the \`Texinfo' package or
  67915. the \`GNU make' package. Grab either from any GNU archive site."
  67916. # The file to touch is that specified with -o ...
  67917. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  67918. + file=`echo "$*" | sed -n "$sed_output"`
  67919. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  67920. if test -z "$file"; then
  67921. # ... or it is the one specified with @setfilename ...
  67922. infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  67923. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  67924. + file=`sed -n '
  67925. + /^@setfilename/{
  67926. + s/.* \([^ ]*\) *$/\1/
  67927. + p
  67928. + q
  67929. + }' $infile`
  67930. # ... or it is derived from the source name (dir/f.texi becomes f.info)
  67931. test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  67932. fi
  67933. @@ -303,7 +318,7 @@
  67934. touch $file
  67935. ;;
  67936. - tar)
  67937. + tar*)
  67938. shift
  67939. # We have already tried tar in the generic part.
  67940. @@ -317,13 +332,13 @@
  67941. fi
  67942. firstarg="$1"
  67943. if shift; then
  67944. - case "$firstarg" in
  67945. + case $firstarg in
  67946. *o*)
  67947. firstarg=`echo "$firstarg" | sed s/o//`
  67948. tar "$firstarg" "$@" && exit 0
  67949. ;;
  67950. esac
  67951. - case "$firstarg" in
  67952. + case $firstarg in
  67953. *h*)
  67954. firstarg=`echo "$firstarg" | sed s/h//`
  67955. tar "$firstarg" "$@" && exit 0
  67956. @@ -356,5 +371,6 @@
  67957. # eval: (add-hook 'write-file-hooks 'time-stamp)
  67958. # time-stamp-start: "scriptversion="
  67959. # time-stamp-format: "%:y-%02m-%02d.%02H"
  67960. -# time-stamp-end: "$"
  67961. +# time-stamp-time-zone: "UTC"
  67962. +# time-stamp-end: "; # UTC"
  67963. # End:
  67964. diff -Nur faad2-2.7.orig/plugins/Makefile.in faad2-2.7/plugins/Makefile.in
  67965. --- faad2-2.7.orig/plugins/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  67966. +++ faad2-2.7/plugins/Makefile.in 2011-02-16 17:55:07.963552607 +0100
  67967. @@ -1,8 +1,9 @@
  67968. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  67969. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67970. # @configure_input@
  67971. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67972. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  67973. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67974. +# Inc.
  67975. # This Makefile.in is free software; the Free Software Foundation
  67976. # gives unlimited permission to copy and/or distribute it,
  67977. # with or without modifications, as long as this notice is preserved.
  67978. @@ -13,15 +14,12 @@
  67979. # PARTICULAR PURPOSE.
  67980. @SET_MAKE@
  67981. -srcdir = @srcdir@
  67982. -top_srcdir = @top_srcdir@
  67983. VPATH = @srcdir@
  67984. pkgdatadir = $(datadir)/@PACKAGE@
  67985. -pkglibdir = $(libdir)/@PACKAGE@
  67986. pkgincludedir = $(includedir)/@PACKAGE@
  67987. -top_builddir = ..
  67988. +pkglibdir = $(libdir)/@PACKAGE@
  67989. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67990. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67991. -INSTALL = @INSTALL@
  67992. install_sh_DATA = $(install_sh) -c -m 644
  67993. install_sh_PROGRAM = $(install_sh) -c
  67994. install_sh_SCRIPT = $(install_sh) -c
  67995. @@ -44,21 +42,51 @@
  67996. mkinstalldirs = $(install_sh) -d
  67997. CONFIG_HEADER = $(top_builddir)/config.h
  67998. CONFIG_CLEAN_FILES =
  67999. +CONFIG_CLEAN_VPATH_FILES =
  68000. SOURCES =
  68001. DIST_SOURCES =
  68002. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  68003. html-recursive info-recursive install-data-recursive \
  68004. - install-exec-recursive install-info-recursive \
  68005. - install-recursive installcheck-recursive installdirs-recursive \
  68006. - pdf-recursive ps-recursive uninstall-info-recursive \
  68007. - uninstall-recursive
  68008. + install-dvi-recursive install-exec-recursive \
  68009. + install-html-recursive install-info-recursive \
  68010. + install-pdf-recursive install-ps-recursive install-recursive \
  68011. + installcheck-recursive installdirs-recursive pdf-recursive \
  68012. + ps-recursive uninstall-recursive
  68013. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  68014. + distclean-recursive maintainer-clean-recursive
  68015. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  68016. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  68017. + distdir
  68018. ETAGS = etags
  68019. CTAGS = ctags
  68020. DIST_SUBDIRS = xmms mpeg4ip
  68021. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68022. +am__relativize = \
  68023. + dir0=`pwd`; \
  68024. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  68025. + sed_rest='s,^[^/]*/*,,'; \
  68026. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  68027. + sed_butlast='s,/*[^/]*$$,,'; \
  68028. + while test -n "$$dir1"; do \
  68029. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  68030. + if test "$$first" != "."; then \
  68031. + if test "$$first" = ".."; then \
  68032. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  68033. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  68034. + else \
  68035. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  68036. + if test "$$first2" = "$$first"; then \
  68037. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  68038. + else \
  68039. + dir2="../$$dir2"; \
  68040. + fi; \
  68041. + dir0="$$dir0"/"$$first"; \
  68042. + fi; \
  68043. + fi; \
  68044. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  68045. + done; \
  68046. + reldir="$$dir2"
  68047. ACLOCAL = @ACLOCAL@
  68048. -AMDEP_FALSE = @AMDEP_FALSE@
  68049. -AMDEP_TRUE = @AMDEP_TRUE@
  68050. AMTAR = @AMTAR@
  68051. AR = @AR@
  68052. AUTOCONF = @AUTOCONF@
  68053. @@ -77,55 +105,62 @@
  68054. CYGPATH_W = @CYGPATH_W@
  68055. DEFS = @DEFS@
  68056. DEPDIR = @DEPDIR@
  68057. -ECHO = @ECHO@
  68058. +DSYMUTIL = @DSYMUTIL@
  68059. +DUMPBIN = @DUMPBIN@
  68060. ECHO_C = @ECHO_C@
  68061. ECHO_N = @ECHO_N@
  68062. ECHO_T = @ECHO_T@
  68063. EGREP = @EGREP@
  68064. EXEEXT = @EXEEXT@
  68065. -F77 = @F77@
  68066. -FFLAGS = @FFLAGS@
  68067. +FGREP = @FGREP@
  68068. GREP = @GREP@
  68069. GTK_CONFIG = @GTK_CONFIG@
  68070. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  68071. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  68072. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  68073. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  68074. +INSTALL = @INSTALL@
  68075. INSTALL_DATA = @INSTALL_DATA@
  68076. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  68077. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  68078. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  68079. +LD = @LD@
  68080. LDFLAGS = @LDFLAGS@
  68081. LIBOBJS = @LIBOBJS@
  68082. LIBS = @LIBS@
  68083. LIBTOOL = @LIBTOOL@
  68084. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  68085. +LIPO = @LIPO@
  68086. LN_S = @LN_S@
  68087. LTLIBOBJS = @LTLIBOBJS@
  68088. MAKEINFO = @MAKEINFO@
  68089. +MKDIR_P = @MKDIR_P@
  68090. MP4FF_LIBS = @MP4FF_LIBS@
  68091. +NM = @NM@
  68092. +NMEDIT = @NMEDIT@
  68093. +OBJDUMP = @OBJDUMP@
  68094. OBJEXT = @OBJEXT@
  68095. +OTOOL = @OTOOL@
  68096. +OTOOL64 = @OTOOL64@
  68097. PACKAGE = @PACKAGE@
  68098. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  68099. PACKAGE_NAME = @PACKAGE_NAME@
  68100. PACKAGE_STRING = @PACKAGE_STRING@
  68101. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  68102. +PACKAGE_URL = @PACKAGE_URL@
  68103. PACKAGE_VERSION = @PACKAGE_VERSION@
  68104. PATH_SEPARATOR = @PATH_SEPARATOR@
  68105. RANLIB = @RANLIB@
  68106. RPMBUILD = @RPMBUILD@
  68107. +SED = @SED@
  68108. SET_MAKE = @SET_MAKE@
  68109. SHELL = @SHELL@
  68110. STRIP = @STRIP@
  68111. VERSION = @VERSION@
  68112. XMMS_CONFIG = @XMMS_CONFIG@
  68113. +abs_builddir = @abs_builddir@
  68114. +abs_srcdir = @abs_srcdir@
  68115. +abs_top_builddir = @abs_top_builddir@
  68116. +abs_top_srcdir = @abs_top_srcdir@
  68117. ac_ct_CC = @ac_ct_CC@
  68118. ac_ct_CXX = @ac_ct_CXX@
  68119. -ac_ct_F77 = @ac_ct_F77@
  68120. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  68121. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  68122. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  68123. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  68124. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  68125. am__include = @am__include@
  68126. am__leading_dot = @am__leading_dot@
  68127. am__quote = @am__quote@
  68128. @@ -137,6 +172,7 @@
  68129. build_cpu = @build_cpu@
  68130. build_os = @build_os@
  68131. build_vendor = @build_vendor@
  68132. +builddir = @builddir@
  68133. datadir = @datadir@
  68134. datarootdir = @datarootdir@
  68135. docdir = @docdir@
  68136. @@ -156,6 +192,7 @@
  68137. libexecdir = @libexecdir@
  68138. localedir = @localedir@
  68139. localstatedir = @localstatedir@
  68140. +lt_ECHO = @lt_ECHO@
  68141. mandir = @mandir@
  68142. mkdir_p = @mkdir_p@
  68143. oldincludedir = @oldincludedir@
  68144. @@ -165,8 +202,12 @@
  68145. psdir = @psdir@
  68146. sbindir = @sbindir@
  68147. sharedstatedir = @sharedstatedir@
  68148. +srcdir = @srcdir@
  68149. sysconfdir = @sysconfdir@
  68150. target_alias = @target_alias@
  68151. +top_build_prefix = @top_build_prefix@
  68152. +top_builddir = @top_builddir@
  68153. +top_srcdir = @top_srcdir@
  68154. @HAVE_MPEG4IP_PLUG_FALSE@@HAVE_XMMS_FALSE@SUBDIRS =
  68155. @HAVE_MPEG4IP_PLUG_FALSE@@HAVE_XMMS_TRUE@SUBDIRS = xmms
  68156. @HAVE_MPEG4IP_PLUG_TRUE@@HAVE_XMMS_FALSE@SUBDIRS = mpeg4ip
  68157. @@ -178,14 +219,14 @@
  68158. @for dep in $?; do \
  68159. case '$(am__configure_deps)' in \
  68160. *$$dep*) \
  68161. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  68162. - && exit 0; \
  68163. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  68164. + && { if test -f $@; then exit 0; else break; fi; }; \
  68165. exit 1;; \
  68166. esac; \
  68167. done; \
  68168. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
  68169. - cd $(top_srcdir) && \
  68170. - $(AUTOMAKE) --gnu plugins/Makefile
  68171. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
  68172. + $(am__cd) $(top_srcdir) && \
  68173. + $(AUTOMAKE) --gnu plugins/Makefile
  68174. .PRECIOUS: Makefile
  68175. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  68176. @case '$?' in \
  68177. @@ -203,6 +244,7 @@
  68178. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68179. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  68180. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68181. +$(am__aclocal_m4_deps):
  68182. mostlyclean-libtool:
  68183. -rm -f *.lo
  68184. @@ -210,10 +252,6 @@
  68185. clean-libtool:
  68186. -rm -rf .libs _libs
  68187. -distclean-libtool:
  68188. - -rm -f libtool
  68189. -uninstall-info-am:
  68190. -
  68191. # This directory's subdirectories are mostly independent; you can cd
  68192. # into them and run `make' without going through this Makefile.
  68193. # To change the values of `make' variables: instead of editing Makefiles,
  68194. @@ -221,7 +259,7 @@
  68195. # (which will cause the Makefiles to be regenerated when you run `make');
  68196. # (2) otherwise, pass the desired values on the `make' command line.
  68197. $(RECURSIVE_TARGETS):
  68198. - @failcom='exit 1'; \
  68199. + @fail= failcom='exit 1'; \
  68200. for f in x $$MAKEFLAGS; do \
  68201. case $$f in \
  68202. *=* | --[!k]*);; \
  68203. @@ -238,16 +276,15 @@
  68204. else \
  68205. local_target="$$target"; \
  68206. fi; \
  68207. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68208. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68209. || eval $$failcom; \
  68210. done; \
  68211. if test "$$dot_seen" = "no"; then \
  68212. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  68213. fi; test -z "$$fail"
  68214. -mostlyclean-recursive clean-recursive distclean-recursive \
  68215. -maintainer-clean-recursive:
  68216. - @failcom='exit 1'; \
  68217. +$(RECURSIVE_CLEAN_TARGETS):
  68218. + @fail= failcom='exit 1'; \
  68219. for f in x $$MAKEFLAGS; do \
  68220. case $$f in \
  68221. *=* | --[!k]*);; \
  68222. @@ -273,16 +310,16 @@
  68223. else \
  68224. local_target="$$target"; \
  68225. fi; \
  68226. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68227. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68228. || eval $$failcom; \
  68229. done && test -z "$$fail"
  68230. tags-recursive:
  68231. list='$(SUBDIRS)'; for subdir in $$list; do \
  68232. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68233. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68234. done
  68235. ctags-recursive:
  68236. list='$(SUBDIRS)'; for subdir in $$list; do \
  68237. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  68238. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  68239. done
  68240. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68241. @@ -290,14 +327,14 @@
  68242. unique=`for i in $$list; do \
  68243. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68244. done | \
  68245. - $(AWK) ' { files[$$0] = 1; } \
  68246. - END { for (i in files) print i; }'`; \
  68247. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68248. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68249. mkid -fID $$unique
  68250. tags: TAGS
  68251. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68252. $(TAGS_FILES) $(LISP)
  68253. - tags=; \
  68254. + set x; \
  68255. here=`pwd`; \
  68256. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  68257. include_option=--etags-include; \
  68258. @@ -309,81 +346,101 @@
  68259. list='$(SUBDIRS)'; for subdir in $$list; do \
  68260. if test "$$subdir" = .; then :; else \
  68261. test ! -f $$subdir/TAGS || \
  68262. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  68263. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  68264. fi; \
  68265. done; \
  68266. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68267. unique=`for i in $$list; do \
  68268. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68269. done | \
  68270. - $(AWK) ' { files[$$0] = 1; } \
  68271. - END { for (i in files) print i; }'`; \
  68272. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  68273. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68274. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68275. + shift; \
  68276. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68277. test -n "$$unique" || unique=$$empty_fix; \
  68278. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68279. - $$tags $$unique; \
  68280. + if test $$# -gt 0; then \
  68281. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68282. + "$$@" $$unique; \
  68283. + else \
  68284. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68285. + $$unique; \
  68286. + fi; \
  68287. fi
  68288. ctags: CTAGS
  68289. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68290. $(TAGS_FILES) $(LISP)
  68291. - tags=; \
  68292. - here=`pwd`; \
  68293. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68294. unique=`for i in $$list; do \
  68295. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68296. done | \
  68297. - $(AWK) ' { files[$$0] = 1; } \
  68298. - END { for (i in files) print i; }'`; \
  68299. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  68300. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68301. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68302. + test -z "$(CTAGS_ARGS)$$unique" \
  68303. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68304. - $$tags $$unique
  68305. + $$unique
  68306. GTAGS:
  68307. here=`$(am__cd) $(top_builddir) && pwd` \
  68308. - && cd $(top_srcdir) \
  68309. - && gtags -i $(GTAGS_ARGS) $$here
  68310. + && $(am__cd) $(top_srcdir) \
  68311. + && gtags -i $(GTAGS_ARGS) "$$here"
  68312. distclean-tags:
  68313. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68314. distdir: $(DISTFILES)
  68315. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  68316. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  68317. - list='$(DISTFILES)'; for file in $$list; do \
  68318. - case $$file in \
  68319. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  68320. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  68321. - esac; \
  68322. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68323. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68324. + list='$(DISTFILES)'; \
  68325. + dist_files=`for file in $$list; do echo $$file; done | \
  68326. + sed -e "s|^$$srcdirstrip/||;t" \
  68327. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68328. + case $$dist_files in \
  68329. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68330. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68331. + sort -u` ;; \
  68332. + esac; \
  68333. + for file in $$dist_files; do \
  68334. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68335. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68336. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68337. - dir="/$$dir"; \
  68338. - $(mkdir_p) "$(distdir)$$dir"; \
  68339. - else \
  68340. - dir=''; \
  68341. - fi; \
  68342. if test -d $$d/$$file; then \
  68343. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68344. + if test -d "$(distdir)/$$file"; then \
  68345. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68346. + fi; \
  68347. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68348. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68349. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68350. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68351. fi; \
  68352. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68353. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68354. else \
  68355. - test -f $(distdir)/$$file \
  68356. - || cp -p $$d/$$file $(distdir)/$$file \
  68357. + test -f "$(distdir)/$$file" \
  68358. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68359. || exit 1; \
  68360. fi; \
  68361. done
  68362. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68363. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68364. if test "$$subdir" = .; then :; else \
  68365. test -d "$(distdir)/$$subdir" \
  68366. - || $(mkdir_p) "$(distdir)/$$subdir" \
  68367. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  68368. || exit 1; \
  68369. - distdir=`$(am__cd) $(distdir) && pwd`; \
  68370. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  68371. - (cd $$subdir && \
  68372. + fi; \
  68373. + done
  68374. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68375. + if test "$$subdir" = .; then :; else \
  68376. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  68377. + $(am__relativize); \
  68378. + new_distdir=$$reldir; \
  68379. + dir1=$$subdir; dir2="$(top_distdir)"; \
  68380. + $(am__relativize); \
  68381. + new_top_distdir=$$reldir; \
  68382. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  68383. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  68384. + ($(am__cd) $$subdir && \
  68385. $(MAKE) $(AM_MAKEFLAGS) \
  68386. - top_distdir="$$top_distdir" \
  68387. - distdir="$$distdir/$$subdir" \
  68388. + top_distdir="$$new_top_distdir" \
  68389. + distdir="$$new_distdir" \
  68390. + am__remove_distdir=: \
  68391. + am__skip_length_check=: \
  68392. + am__skip_mode_fix=: \
  68393. distdir) \
  68394. || exit 1; \
  68395. fi; \
  68396. @@ -413,6 +470,7 @@
  68397. distclean-generic:
  68398. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68399. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68400. maintainer-clean-generic:
  68401. @echo "This command is intended for maintainers to use"
  68402. @@ -423,8 +481,7 @@
  68403. distclean: distclean-recursive
  68404. -rm -f Makefile
  68405. -distclean-am: clean-am distclean-generic distclean-libtool \
  68406. - distclean-tags
  68407. +distclean-am: clean-am distclean-generic distclean-tags
  68408. dvi: dvi-recursive
  68409. @@ -432,18 +489,38 @@
  68410. html: html-recursive
  68411. +html-am:
  68412. +
  68413. info: info-recursive
  68414. info-am:
  68415. install-data-am:
  68416. +install-dvi: install-dvi-recursive
  68417. +
  68418. +install-dvi-am:
  68419. +
  68420. install-exec-am:
  68421. +install-html: install-html-recursive
  68422. +
  68423. +install-html-am:
  68424. +
  68425. install-info: install-info-recursive
  68426. +install-info-am:
  68427. +
  68428. install-man:
  68429. +install-pdf: install-pdf-recursive
  68430. +
  68431. +install-pdf-am:
  68432. +
  68433. +install-ps: install-ps-recursive
  68434. +
  68435. +install-ps-am:
  68436. +
  68437. installcheck-am:
  68438. maintainer-clean: maintainer-clean-recursive
  68439. @@ -462,22 +539,25 @@
  68440. ps-am:
  68441. -uninstall-am: uninstall-info-am
  68442. +uninstall-am:
  68443. -uninstall-info: uninstall-info-recursive
  68444. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  68445. + install-am install-strip tags-recursive
  68446. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  68447. - clean clean-generic clean-libtool clean-recursive ctags \
  68448. - ctags-recursive distclean distclean-generic distclean-libtool \
  68449. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  68450. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  68451. + all all-am check check-am clean clean-generic clean-libtool \
  68452. + ctags ctags-recursive distclean distclean-generic \
  68453. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  68454. html-am info info-am install install-am install-data \
  68455. - install-data-am install-exec install-exec-am install-info \
  68456. - install-info-am install-man install-strip installcheck \
  68457. + install-data-am install-dvi install-dvi-am install-exec \
  68458. + install-exec-am install-html install-html-am install-info \
  68459. + install-info-am install-man install-pdf install-pdf-am \
  68460. + install-ps install-ps-am install-strip installcheck \
  68461. installcheck-am installdirs installdirs-am maintainer-clean \
  68462. - maintainer-clean-generic maintainer-clean-recursive \
  68463. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  68464. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  68465. - uninstall uninstall-am uninstall-info-am
  68466. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  68467. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  68468. + uninstall uninstall-am
  68469. +
  68470. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68471. # Otherwise a system limit (for SysV at least) may be exceeded.
  68472. diff -Nur faad2-2.7.orig/plugins/mpeg4ip/Makefile.in faad2-2.7/plugins/mpeg4ip/Makefile.in
  68473. --- faad2-2.7.orig/plugins/mpeg4ip/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  68474. +++ faad2-2.7/plugins/mpeg4ip/Makefile.in 2011-02-16 17:55:08.013562088 +0100
  68475. @@ -1,8 +1,9 @@
  68476. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  68477. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  68478. # @configure_input@
  68479. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  68480. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  68481. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  68482. +# Inc.
  68483. # This Makefile.in is free software; the Free Software Foundation
  68484. # gives unlimited permission to copy and/or distribute it,
  68485. # with or without modifications, as long as this notice is preserved.
  68486. @@ -14,15 +15,12 @@
  68487. @SET_MAKE@
  68488. -srcdir = @srcdir@
  68489. -top_srcdir = @top_srcdir@
  68490. VPATH = @srcdir@
  68491. pkgdatadir = $(datadir)/@PACKAGE@
  68492. -pkglibdir = $(libdir)/@PACKAGE@
  68493. pkgincludedir = $(includedir)/@PACKAGE@
  68494. -top_builddir = ../..
  68495. +pkglibdir = $(libdir)/@PACKAGE@
  68496. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  68497. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  68498. -INSTALL = @INSTALL@
  68499. install_sh_DATA = $(install_sh) -c -m 644
  68500. install_sh_PROGRAM = $(install_sh) -c
  68501. install_sh_SCRIPT = $(install_sh) -c
  68502. @@ -45,45 +43,64 @@
  68503. mkinstalldirs = $(install_sh) -d
  68504. CONFIG_HEADER = $(top_builddir)/config.h
  68505. CONFIG_CLEAN_FILES =
  68506. +CONFIG_CLEAN_VPATH_FILES =
  68507. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  68508. am__vpath_adj = case $$p in \
  68509. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  68510. *) f=$$p;; \
  68511. esac;
  68512. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  68513. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  68514. +am__install_max = 40
  68515. +am__nobase_strip_setup = \
  68516. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  68517. +am__nobase_strip = \
  68518. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  68519. +am__nobase_list = $(am__nobase_strip_setup); \
  68520. + for p in $$list; do echo "$$p $$p"; done | \
  68521. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  68522. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  68523. + if (++n[$$2] == $(am__install_max)) \
  68524. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  68525. + END { for (dir in files) print dir, files[dir] }'
  68526. +am__base_list = \
  68527. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  68528. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  68529. am__installdirs = "$(DESTDIR)$(libdir)"
  68530. -libLTLIBRARIES_INSTALL = $(INSTALL)
  68531. LTLIBRARIES = $(lib_LTLIBRARIES)
  68532. faad2_plugin_la_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la
  68533. am_faad2_plugin_la_OBJECTS = faad2.lo aa_file.lo
  68534. faad2_plugin_la_OBJECTS = $(am_faad2_plugin_la_OBJECTS)
  68535. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  68536. +faad2_plugin_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
  68537. + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
  68538. + $(CXXFLAGS) $(faad2_plugin_la_LDFLAGS) $(LDFLAGS) -o $@
  68539. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  68540. depcomp = $(SHELL) $(top_srcdir)/depcomp
  68541. am__depfiles_maybe = depfiles
  68542. +am__mv = mv -f
  68543. CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  68544. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  68545. -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
  68546. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  68547. - $(AM_CXXFLAGS) $(CXXFLAGS)
  68548. +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  68549. + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  68550. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  68551. CXXLD = $(CXX)
  68552. -CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
  68553. - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  68554. +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  68555. + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
  68556. + $(LDFLAGS) -o $@
  68557. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  68558. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  68559. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  68560. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  68561. - $(AM_CFLAGS) $(CFLAGS)
  68562. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  68563. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  68564. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  68565. CCLD = $(CC)
  68566. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  68567. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  68568. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  68569. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  68570. + $(LDFLAGS) -o $@
  68571. SOURCES = $(faad2_plugin_la_SOURCES)
  68572. DIST_SOURCES = $(faad2_plugin_la_SOURCES)
  68573. ETAGS = etags
  68574. CTAGS = ctags
  68575. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68576. ACLOCAL = @ACLOCAL@
  68577. -AMDEP_FALSE = @AMDEP_FALSE@
  68578. -AMDEP_TRUE = @AMDEP_TRUE@
  68579. AMTAR = @AMTAR@
  68580. AR = @AR@
  68581. AUTOCONF = @AUTOCONF@
  68582. @@ -102,55 +119,62 @@
  68583. CYGPATH_W = @CYGPATH_W@
  68584. DEFS = @DEFS@
  68585. DEPDIR = @DEPDIR@
  68586. -ECHO = @ECHO@
  68587. +DSYMUTIL = @DSYMUTIL@
  68588. +DUMPBIN = @DUMPBIN@
  68589. ECHO_C = @ECHO_C@
  68590. ECHO_N = @ECHO_N@
  68591. ECHO_T = @ECHO_T@
  68592. EGREP = @EGREP@
  68593. EXEEXT = @EXEEXT@
  68594. -F77 = @F77@
  68595. -FFLAGS = @FFLAGS@
  68596. +FGREP = @FGREP@
  68597. GREP = @GREP@
  68598. GTK_CONFIG = @GTK_CONFIG@
  68599. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  68600. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  68601. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  68602. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  68603. +INSTALL = @INSTALL@
  68604. INSTALL_DATA = @INSTALL_DATA@
  68605. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  68606. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  68607. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  68608. +LD = @LD@
  68609. LDFLAGS = @LDFLAGS@
  68610. LIBOBJS = @LIBOBJS@
  68611. LIBS = @LIBS@
  68612. LIBTOOL = @LIBTOOL@
  68613. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  68614. +LIPO = @LIPO@
  68615. LN_S = @LN_S@
  68616. LTLIBOBJS = @LTLIBOBJS@
  68617. MAKEINFO = @MAKEINFO@
  68618. +MKDIR_P = @MKDIR_P@
  68619. MP4FF_LIBS = @MP4FF_LIBS@
  68620. +NM = @NM@
  68621. +NMEDIT = @NMEDIT@
  68622. +OBJDUMP = @OBJDUMP@
  68623. OBJEXT = @OBJEXT@
  68624. +OTOOL = @OTOOL@
  68625. +OTOOL64 = @OTOOL64@
  68626. PACKAGE = @PACKAGE@
  68627. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  68628. PACKAGE_NAME = @PACKAGE_NAME@
  68629. PACKAGE_STRING = @PACKAGE_STRING@
  68630. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  68631. +PACKAGE_URL = @PACKAGE_URL@
  68632. PACKAGE_VERSION = @PACKAGE_VERSION@
  68633. PATH_SEPARATOR = @PATH_SEPARATOR@
  68634. RANLIB = @RANLIB@
  68635. RPMBUILD = @RPMBUILD@
  68636. +SED = @SED@
  68637. SET_MAKE = @SET_MAKE@
  68638. SHELL = @SHELL@
  68639. STRIP = @STRIP@
  68640. VERSION = @VERSION@
  68641. XMMS_CONFIG = @XMMS_CONFIG@
  68642. +abs_builddir = @abs_builddir@
  68643. +abs_srcdir = @abs_srcdir@
  68644. +abs_top_builddir = @abs_top_builddir@
  68645. +abs_top_srcdir = @abs_top_srcdir@
  68646. ac_ct_CC = @ac_ct_CC@
  68647. ac_ct_CXX = @ac_ct_CXX@
  68648. -ac_ct_F77 = @ac_ct_F77@
  68649. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  68650. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  68651. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  68652. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  68653. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  68654. am__include = @am__include@
  68655. am__leading_dot = @am__leading_dot@
  68656. am__quote = @am__quote@
  68657. @@ -162,6 +186,7 @@
  68658. build_cpu = @build_cpu@
  68659. build_os = @build_os@
  68660. build_vendor = @build_vendor@
  68661. +builddir = @builddir@
  68662. datadir = @datadir@
  68663. datarootdir = @datarootdir@
  68664. docdir = @docdir@
  68665. @@ -181,6 +206,7 @@
  68666. libexecdir = @libexecdir@
  68667. localedir = @localedir@
  68668. localstatedir = @localstatedir@
  68669. +lt_ECHO = @lt_ECHO@
  68670. mandir = @mandir@
  68671. mkdir_p = @mkdir_p@
  68672. oldincludedir = @oldincludedir@
  68673. @@ -190,8 +216,12 @@
  68674. psdir = @psdir@
  68675. sbindir = @sbindir@
  68676. sharedstatedir = @sharedstatedir@
  68677. +srcdir = @srcdir@
  68678. sysconfdir = @sysconfdir@
  68679. target_alias = @target_alias@
  68680. +top_build_prefix = @top_build_prefix@
  68681. +top_builddir = @top_builddir@
  68682. +top_srcdir = @top_srcdir@
  68683. lib_LTLIBRARIES = faad2_plugin.la
  68684. faad2_plugin_la_LDFLAGS = -module
  68685. faad2_plugin_la_SOURCES = \
  68686. @@ -215,14 +245,14 @@
  68687. @for dep in $?; do \
  68688. case '$(am__configure_deps)' in \
  68689. *$$dep*) \
  68690. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  68691. - && exit 0; \
  68692. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  68693. + && { if test -f $@; then exit 0; else break; fi; }; \
  68694. exit 1;; \
  68695. esac; \
  68696. done; \
  68697. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile'; \
  68698. - cd $(top_srcdir) && \
  68699. - $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile
  68700. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile'; \
  68701. + $(am__cd) $(top_srcdir) && \
  68702. + $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile
  68703. .PRECIOUS: Makefile
  68704. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  68705. @case '$?' in \
  68706. @@ -240,23 +270,28 @@
  68707. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68708. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  68709. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68710. +$(am__aclocal_m4_deps):
  68711. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  68712. @$(NORMAL_INSTALL)
  68713. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  68714. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  68715. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  68716. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  68717. + list2=; for p in $$list; do \
  68718. if test -f $$p; then \
  68719. - f=$(am__strip_dir) \
  68720. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  68721. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  68722. + list2="$$list2 $$p"; \
  68723. else :; fi; \
  68724. - done
  68725. + done; \
  68726. + test -z "$$list2" || { \
  68727. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  68728. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  68729. + }
  68730. uninstall-libLTLIBRARIES:
  68731. @$(NORMAL_UNINSTALL)
  68732. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  68733. - p=$(am__strip_dir) \
  68734. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  68735. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  68736. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  68737. + for p in $$list; do \
  68738. + $(am__strip_dir) \
  68739. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  68740. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  68741. done
  68742. clean-libLTLIBRARIES:
  68743. @@ -268,7 +303,7 @@
  68744. rm -f "$${dir}/so_locations"; \
  68745. done
  68746. faad2_plugin.la: $(faad2_plugin_la_OBJECTS) $(faad2_plugin_la_DEPENDENCIES)
  68747. - $(CXXLINK) -rpath $(libdir) $(faad2_plugin_la_LDFLAGS) $(faad2_plugin_la_OBJECTS) $(faad2_plugin_la_LIBADD) $(LIBS)
  68748. + $(faad2_plugin_la_LINK) -rpath $(libdir) $(faad2_plugin_la_OBJECTS) $(faad2_plugin_la_LIBADD) $(LIBS)
  68749. mostlyclean-compile:
  68750. -rm -f *.$(OBJEXT)
  68751. @@ -280,22 +315,22 @@
  68752. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/faad2.Plo@am__quote@
  68753. .cpp.o:
  68754. -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  68755. -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68756. +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68757. +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68758. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68759. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68760. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
  68761. .cpp.obj:
  68762. -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  68763. -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68764. +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  68765. +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68766. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68767. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68768. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  68769. .cpp.lo:
  68770. -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  68771. -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  68772. +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68773. +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  68774. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  68775. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68776. @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
  68777. @@ -306,82 +341,85 @@
  68778. clean-libtool:
  68779. -rm -rf .libs _libs
  68780. -distclean-libtool:
  68781. - -rm -f libtool
  68782. -uninstall-info-am:
  68783. -
  68784. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68785. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68786. unique=`for i in $$list; do \
  68787. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68788. done | \
  68789. - $(AWK) ' { files[$$0] = 1; } \
  68790. - END { for (i in files) print i; }'`; \
  68791. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68792. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68793. mkid -fID $$unique
  68794. tags: TAGS
  68795. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68796. $(TAGS_FILES) $(LISP)
  68797. - tags=; \
  68798. + set x; \
  68799. here=`pwd`; \
  68800. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68801. unique=`for i in $$list; do \
  68802. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68803. done | \
  68804. - $(AWK) ' { files[$$0] = 1; } \
  68805. - END { for (i in files) print i; }'`; \
  68806. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  68807. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68808. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68809. + shift; \
  68810. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68811. test -n "$$unique" || unique=$$empty_fix; \
  68812. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68813. - $$tags $$unique; \
  68814. + if test $$# -gt 0; then \
  68815. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68816. + "$$@" $$unique; \
  68817. + else \
  68818. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68819. + $$unique; \
  68820. + fi; \
  68821. fi
  68822. ctags: CTAGS
  68823. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68824. $(TAGS_FILES) $(LISP)
  68825. - tags=; \
  68826. - here=`pwd`; \
  68827. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68828. unique=`for i in $$list; do \
  68829. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68830. done | \
  68831. - $(AWK) ' { files[$$0] = 1; } \
  68832. - END { for (i in files) print i; }'`; \
  68833. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  68834. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68835. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68836. + test -z "$(CTAGS_ARGS)$$unique" \
  68837. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68838. - $$tags $$unique
  68839. + $$unique
  68840. GTAGS:
  68841. here=`$(am__cd) $(top_builddir) && pwd` \
  68842. - && cd $(top_srcdir) \
  68843. - && gtags -i $(GTAGS_ARGS) $$here
  68844. + && $(am__cd) $(top_srcdir) \
  68845. + && gtags -i $(GTAGS_ARGS) "$$here"
  68846. distclean-tags:
  68847. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68848. distdir: $(DISTFILES)
  68849. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  68850. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  68851. - list='$(DISTFILES)'; for file in $$list; do \
  68852. - case $$file in \
  68853. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  68854. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  68855. - esac; \
  68856. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68857. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68858. + list='$(DISTFILES)'; \
  68859. + dist_files=`for file in $$list; do echo $$file; done | \
  68860. + sed -e "s|^$$srcdirstrip/||;t" \
  68861. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68862. + case $$dist_files in \
  68863. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68864. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68865. + sort -u` ;; \
  68866. + esac; \
  68867. + for file in $$dist_files; do \
  68868. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68869. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68870. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68871. - dir="/$$dir"; \
  68872. - $(mkdir_p) "$(distdir)$$dir"; \
  68873. - else \
  68874. - dir=''; \
  68875. - fi; \
  68876. if test -d $$d/$$file; then \
  68877. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68878. + if test -d "$(distdir)/$$file"; then \
  68879. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68880. + fi; \
  68881. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68882. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68883. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68884. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68885. fi; \
  68886. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68887. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68888. else \
  68889. - test -f $(distdir)/$$file \
  68890. - || cp -p $$d/$$file $(distdir)/$$file \
  68891. + test -f "$(distdir)/$$file" \
  68892. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68893. || exit 1; \
  68894. fi; \
  68895. done
  68896. @@ -390,7 +428,7 @@
  68897. all-am: Makefile $(LTLIBRARIES)
  68898. installdirs:
  68899. for dir in "$(DESTDIR)$(libdir)"; do \
  68900. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  68901. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  68902. done
  68903. install: install-am
  68904. install-exec: install-exec-am
  68905. @@ -412,6 +450,7 @@
  68906. distclean-generic:
  68907. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68908. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68909. maintainer-clean-generic:
  68910. @echo "This command is intended for maintainers to use"
  68911. @@ -425,7 +464,7 @@
  68912. -rm -rf ./$(DEPDIR)
  68913. -rm -f Makefile
  68914. distclean-am: clean-am distclean-compile distclean-generic \
  68915. - distclean-libtool distclean-tags
  68916. + distclean-tags
  68917. dvi: dvi-am
  68918. @@ -433,18 +472,38 @@
  68919. html: html-am
  68920. +html-am:
  68921. +
  68922. info: info-am
  68923. info-am:
  68924. install-data-am:
  68925. +install-dvi: install-dvi-am
  68926. +
  68927. +install-dvi-am:
  68928. +
  68929. install-exec-am: install-libLTLIBRARIES
  68930. +install-html: install-html-am
  68931. +
  68932. +install-html-am:
  68933. +
  68934. install-info: install-info-am
  68935. +install-info-am:
  68936. +
  68937. install-man:
  68938. +install-pdf: install-pdf-am
  68939. +
  68940. +install-pdf-am:
  68941. +
  68942. +install-ps: install-ps-am
  68943. +
  68944. +install-ps-am:
  68945. +
  68946. installcheck-am:
  68947. maintainer-clean: maintainer-clean-am
  68948. @@ -465,20 +524,24 @@
  68949. ps-am:
  68950. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  68951. +uninstall-am: uninstall-libLTLIBRARIES
  68952. +
  68953. +.MAKE: install-am install-strip
  68954. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  68955. clean-libLTLIBRARIES clean-libtool ctags distclean \
  68956. distclean-compile distclean-generic distclean-libtool \
  68957. distclean-tags distdir dvi dvi-am html html-am info info-am \
  68958. - install install-am install-data install-data-am install-exec \
  68959. - install-exec-am install-info install-info-am \
  68960. - install-libLTLIBRARIES install-man install-strip installcheck \
  68961. + install install-am install-data install-data-am install-dvi \
  68962. + install-dvi-am install-exec install-exec-am install-html \
  68963. + install-html-am install-info install-info-am \
  68964. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  68965. + install-ps install-ps-am install-strip installcheck \
  68966. installcheck-am installdirs maintainer-clean \
  68967. maintainer-clean-generic mostlyclean mostlyclean-compile \
  68968. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  68969. - tags uninstall uninstall-am uninstall-info-am \
  68970. - uninstall-libLTLIBRARIES
  68971. + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  68972. +
  68973. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68974. # Otherwise a system limit (for SysV at least) may be exceeded.
  68975. diff -Nur faad2-2.7.orig/plugins/xmms/Makefile.in faad2-2.7/plugins/xmms/Makefile.in
  68976. --- faad2-2.7.orig/plugins/xmms/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  68977. +++ faad2-2.7/plugins/xmms/Makefile.in 2011-02-16 17:55:08.043563340 +0100
  68978. @@ -1,8 +1,9 @@
  68979. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  68980. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  68981. # @configure_input@
  68982. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  68983. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  68984. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  68985. +# Inc.
  68986. # This Makefile.in is free software; the Free Software Foundation
  68987. # gives unlimited permission to copy and/or distribute it,
  68988. # with or without modifications, as long as this notice is preserved.
  68989. @@ -13,15 +14,12 @@
  68990. # PARTICULAR PURPOSE.
  68991. @SET_MAKE@
  68992. -srcdir = @srcdir@
  68993. -top_srcdir = @top_srcdir@
  68994. VPATH = @srcdir@
  68995. pkgdatadir = $(datadir)/@PACKAGE@
  68996. -pkglibdir = $(libdir)/@PACKAGE@
  68997. pkgincludedir = $(includedir)/@PACKAGE@
  68998. -top_builddir = ../..
  68999. +pkglibdir = $(libdir)/@PACKAGE@
  69000. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  69001. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  69002. -INSTALL = @INSTALL@
  69003. install_sh_DATA = $(install_sh) -c -m 644
  69004. install_sh_PROGRAM = $(install_sh) -c
  69005. install_sh_SCRIPT = $(install_sh) -c
  69006. @@ -45,21 +43,51 @@
  69007. mkinstalldirs = $(install_sh) -d
  69008. CONFIG_HEADER = $(top_builddir)/config.h
  69009. CONFIG_CLEAN_FILES =
  69010. +CONFIG_CLEAN_VPATH_FILES =
  69011. SOURCES =
  69012. DIST_SOURCES =
  69013. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  69014. html-recursive info-recursive install-data-recursive \
  69015. - install-exec-recursive install-info-recursive \
  69016. - install-recursive installcheck-recursive installdirs-recursive \
  69017. - pdf-recursive ps-recursive uninstall-info-recursive \
  69018. - uninstall-recursive
  69019. + install-dvi-recursive install-exec-recursive \
  69020. + install-html-recursive install-info-recursive \
  69021. + install-pdf-recursive install-ps-recursive install-recursive \
  69022. + installcheck-recursive installdirs-recursive pdf-recursive \
  69023. + ps-recursive uninstall-recursive
  69024. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  69025. + distclean-recursive maintainer-clean-recursive
  69026. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  69027. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  69028. + distdir
  69029. ETAGS = etags
  69030. CTAGS = ctags
  69031. DIST_SUBDIRS = $(SUBDIRS)
  69032. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  69033. +am__relativize = \
  69034. + dir0=`pwd`; \
  69035. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  69036. + sed_rest='s,^[^/]*/*,,'; \
  69037. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  69038. + sed_butlast='s,/*[^/]*$$,,'; \
  69039. + while test -n "$$dir1"; do \
  69040. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  69041. + if test "$$first" != "."; then \
  69042. + if test "$$first" = ".."; then \
  69043. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  69044. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  69045. + else \
  69046. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  69047. + if test "$$first2" = "$$first"; then \
  69048. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  69049. + else \
  69050. + dir2="../$$dir2"; \
  69051. + fi; \
  69052. + dir0="$$dir0"/"$$first"; \
  69053. + fi; \
  69054. + fi; \
  69055. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  69056. + done; \
  69057. + reldir="$$dir2"
  69058. ACLOCAL = @ACLOCAL@
  69059. -AMDEP_FALSE = @AMDEP_FALSE@
  69060. -AMDEP_TRUE = @AMDEP_TRUE@
  69061. AMTAR = @AMTAR@
  69062. AR = @AR@
  69063. AUTOCONF = @AUTOCONF@
  69064. @@ -78,55 +106,62 @@
  69065. CYGPATH_W = @CYGPATH_W@
  69066. DEFS = @DEFS@
  69067. DEPDIR = @DEPDIR@
  69068. -ECHO = @ECHO@
  69069. +DSYMUTIL = @DSYMUTIL@
  69070. +DUMPBIN = @DUMPBIN@
  69071. ECHO_C = @ECHO_C@
  69072. ECHO_N = @ECHO_N@
  69073. ECHO_T = @ECHO_T@
  69074. EGREP = @EGREP@
  69075. EXEEXT = @EXEEXT@
  69076. -F77 = @F77@
  69077. -FFLAGS = @FFLAGS@
  69078. +FGREP = @FGREP@
  69079. GREP = @GREP@
  69080. GTK_CONFIG = @GTK_CONFIG@
  69081. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  69082. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  69083. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  69084. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  69085. +INSTALL = @INSTALL@
  69086. INSTALL_DATA = @INSTALL_DATA@
  69087. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  69088. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  69089. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  69090. +LD = @LD@
  69091. LDFLAGS = @LDFLAGS@
  69092. LIBOBJS = @LIBOBJS@
  69093. LIBS = @LIBS@
  69094. LIBTOOL = @LIBTOOL@
  69095. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  69096. +LIPO = @LIPO@
  69097. LN_S = @LN_S@
  69098. LTLIBOBJS = @LTLIBOBJS@
  69099. MAKEINFO = @MAKEINFO@
  69100. +MKDIR_P = @MKDIR_P@
  69101. MP4FF_LIBS = @MP4FF_LIBS@
  69102. +NM = @NM@
  69103. +NMEDIT = @NMEDIT@
  69104. +OBJDUMP = @OBJDUMP@
  69105. OBJEXT = @OBJEXT@
  69106. +OTOOL = @OTOOL@
  69107. +OTOOL64 = @OTOOL64@
  69108. PACKAGE = @PACKAGE@
  69109. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  69110. PACKAGE_NAME = @PACKAGE_NAME@
  69111. PACKAGE_STRING = @PACKAGE_STRING@
  69112. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69113. +PACKAGE_URL = @PACKAGE_URL@
  69114. PACKAGE_VERSION = @PACKAGE_VERSION@
  69115. PATH_SEPARATOR = @PATH_SEPARATOR@
  69116. RANLIB = @RANLIB@
  69117. RPMBUILD = @RPMBUILD@
  69118. +SED = @SED@
  69119. SET_MAKE = @SET_MAKE@
  69120. SHELL = @SHELL@
  69121. STRIP = @STRIP@
  69122. VERSION = @VERSION@
  69123. XMMS_CONFIG = @XMMS_CONFIG@
  69124. +abs_builddir = @abs_builddir@
  69125. +abs_srcdir = @abs_srcdir@
  69126. +abs_top_builddir = @abs_top_builddir@
  69127. +abs_top_srcdir = @abs_top_srcdir@
  69128. ac_ct_CC = @ac_ct_CC@
  69129. ac_ct_CXX = @ac_ct_CXX@
  69130. -ac_ct_F77 = @ac_ct_F77@
  69131. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  69132. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  69133. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  69134. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  69135. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  69136. am__include = @am__include@
  69137. am__leading_dot = @am__leading_dot@
  69138. am__quote = @am__quote@
  69139. @@ -138,6 +173,7 @@
  69140. build_cpu = @build_cpu@
  69141. build_os = @build_os@
  69142. build_vendor = @build_vendor@
  69143. +builddir = @builddir@
  69144. datadir = @datadir@
  69145. datarootdir = @datarootdir@
  69146. docdir = @docdir@
  69147. @@ -157,6 +193,7 @@
  69148. libexecdir = @libexecdir@
  69149. localedir = @localedir@
  69150. localstatedir = @localstatedir@
  69151. +lt_ECHO = @lt_ECHO@
  69152. mandir = @mandir@
  69153. mkdir_p = @mkdir_p@
  69154. oldincludedir = @oldincludedir@
  69155. @@ -166,8 +203,12 @@
  69156. psdir = @psdir@
  69157. sbindir = @sbindir@
  69158. sharedstatedir = @sharedstatedir@
  69159. +srcdir = @srcdir@
  69160. sysconfdir = @sysconfdir@
  69161. target_alias = @target_alias@
  69162. +top_build_prefix = @top_build_prefix@
  69163. +top_builddir = @top_builddir@
  69164. +top_srcdir = @top_srcdir@
  69165. SUBDIRS = src
  69166. all: all-recursive
  69167. @@ -176,14 +217,14 @@
  69168. @for dep in $?; do \
  69169. case '$(am__configure_deps)' in \
  69170. *$$dep*) \
  69171. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  69172. - && exit 0; \
  69173. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  69174. + && { if test -f $@; then exit 0; else break; fi; }; \
  69175. exit 1;; \
  69176. esac; \
  69177. done; \
  69178. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/Makefile'; \
  69179. - cd $(top_srcdir) && \
  69180. - $(AUTOMAKE) --gnu plugins/xmms/Makefile
  69181. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/Makefile'; \
  69182. + $(am__cd) $(top_srcdir) && \
  69183. + $(AUTOMAKE) --gnu plugins/xmms/Makefile
  69184. .PRECIOUS: Makefile
  69185. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  69186. @case '$?' in \
  69187. @@ -201,6 +242,7 @@
  69188. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69189. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  69190. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69191. +$(am__aclocal_m4_deps):
  69192. mostlyclean-libtool:
  69193. -rm -f *.lo
  69194. @@ -208,10 +250,6 @@
  69195. clean-libtool:
  69196. -rm -rf .libs _libs
  69197. -distclean-libtool:
  69198. - -rm -f libtool
  69199. -uninstall-info-am:
  69200. -
  69201. # This directory's subdirectories are mostly independent; you can cd
  69202. # into them and run `make' without going through this Makefile.
  69203. # To change the values of `make' variables: instead of editing Makefiles,
  69204. @@ -219,7 +257,7 @@
  69205. # (which will cause the Makefiles to be regenerated when you run `make');
  69206. # (2) otherwise, pass the desired values on the `make' command line.
  69207. $(RECURSIVE_TARGETS):
  69208. - @failcom='exit 1'; \
  69209. + @fail= failcom='exit 1'; \
  69210. for f in x $$MAKEFLAGS; do \
  69211. case $$f in \
  69212. *=* | --[!k]*);; \
  69213. @@ -236,16 +274,15 @@
  69214. else \
  69215. local_target="$$target"; \
  69216. fi; \
  69217. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69218. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69219. || eval $$failcom; \
  69220. done; \
  69221. if test "$$dot_seen" = "no"; then \
  69222. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  69223. fi; test -z "$$fail"
  69224. -mostlyclean-recursive clean-recursive distclean-recursive \
  69225. -maintainer-clean-recursive:
  69226. - @failcom='exit 1'; \
  69227. +$(RECURSIVE_CLEAN_TARGETS):
  69228. + @fail= failcom='exit 1'; \
  69229. for f in x $$MAKEFLAGS; do \
  69230. case $$f in \
  69231. *=* | --[!k]*);; \
  69232. @@ -271,16 +308,16 @@
  69233. else \
  69234. local_target="$$target"; \
  69235. fi; \
  69236. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69237. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  69238. || eval $$failcom; \
  69239. done && test -z "$$fail"
  69240. tags-recursive:
  69241. list='$(SUBDIRS)'; for subdir in $$list; do \
  69242. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  69243. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  69244. done
  69245. ctags-recursive:
  69246. list='$(SUBDIRS)'; for subdir in $$list; do \
  69247. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  69248. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  69249. done
  69250. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  69251. @@ -288,14 +325,14 @@
  69252. unique=`for i in $$list; do \
  69253. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69254. done | \
  69255. - $(AWK) ' { files[$$0] = 1; } \
  69256. - END { for (i in files) print i; }'`; \
  69257. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69258. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69259. mkid -fID $$unique
  69260. tags: TAGS
  69261. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69262. $(TAGS_FILES) $(LISP)
  69263. - tags=; \
  69264. + set x; \
  69265. here=`pwd`; \
  69266. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  69267. include_option=--etags-include; \
  69268. @@ -307,81 +344,101 @@
  69269. list='$(SUBDIRS)'; for subdir in $$list; do \
  69270. if test "$$subdir" = .; then :; else \
  69271. test ! -f $$subdir/TAGS || \
  69272. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  69273. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  69274. fi; \
  69275. done; \
  69276. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69277. unique=`for i in $$list; do \
  69278. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69279. done | \
  69280. - $(AWK) ' { files[$$0] = 1; } \
  69281. - END { for (i in files) print i; }'`; \
  69282. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  69283. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69284. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69285. + shift; \
  69286. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  69287. test -n "$$unique" || unique=$$empty_fix; \
  69288. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69289. - $$tags $$unique; \
  69290. + if test $$# -gt 0; then \
  69291. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69292. + "$$@" $$unique; \
  69293. + else \
  69294. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69295. + $$unique; \
  69296. + fi; \
  69297. fi
  69298. ctags: CTAGS
  69299. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69300. $(TAGS_FILES) $(LISP)
  69301. - tags=; \
  69302. - here=`pwd`; \
  69303. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69304. unique=`for i in $$list; do \
  69305. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69306. done | \
  69307. - $(AWK) ' { files[$$0] = 1; } \
  69308. - END { for (i in files) print i; }'`; \
  69309. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  69310. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69311. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69312. + test -z "$(CTAGS_ARGS)$$unique" \
  69313. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  69314. - $$tags $$unique
  69315. + $$unique
  69316. GTAGS:
  69317. here=`$(am__cd) $(top_builddir) && pwd` \
  69318. - && cd $(top_srcdir) \
  69319. - && gtags -i $(GTAGS_ARGS) $$here
  69320. + && $(am__cd) $(top_srcdir) \
  69321. + && gtags -i $(GTAGS_ARGS) "$$here"
  69322. distclean-tags:
  69323. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  69324. distdir: $(DISTFILES)
  69325. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  69326. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  69327. - list='$(DISTFILES)'; for file in $$list; do \
  69328. - case $$file in \
  69329. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  69330. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  69331. - esac; \
  69332. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69333. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69334. + list='$(DISTFILES)'; \
  69335. + dist_files=`for file in $$list; do echo $$file; done | \
  69336. + sed -e "s|^$$srcdirstrip/||;t" \
  69337. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  69338. + case $$dist_files in \
  69339. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  69340. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  69341. + sort -u` ;; \
  69342. + esac; \
  69343. + for file in $$dist_files; do \
  69344. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  69345. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  69346. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  69347. - dir="/$$dir"; \
  69348. - $(mkdir_p) "$(distdir)$$dir"; \
  69349. - else \
  69350. - dir=''; \
  69351. - fi; \
  69352. if test -d $$d/$$file; then \
  69353. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  69354. + if test -d "$(distdir)/$$file"; then \
  69355. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69356. + fi; \
  69357. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  69358. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  69359. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  69360. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69361. fi; \
  69362. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  69363. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  69364. else \
  69365. - test -f $(distdir)/$$file \
  69366. - || cp -p $$d/$$file $(distdir)/$$file \
  69367. + test -f "$(distdir)/$$file" \
  69368. + || cp -p $$d/$$file "$(distdir)/$$file" \
  69369. || exit 1; \
  69370. fi; \
  69371. done
  69372. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69373. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69374. if test "$$subdir" = .; then :; else \
  69375. test -d "$(distdir)/$$subdir" \
  69376. - || $(mkdir_p) "$(distdir)/$$subdir" \
  69377. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  69378. || exit 1; \
  69379. - distdir=`$(am__cd) $(distdir) && pwd`; \
  69380. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  69381. - (cd $$subdir && \
  69382. + fi; \
  69383. + done
  69384. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69385. + if test "$$subdir" = .; then :; else \
  69386. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  69387. + $(am__relativize); \
  69388. + new_distdir=$$reldir; \
  69389. + dir1=$$subdir; dir2="$(top_distdir)"; \
  69390. + $(am__relativize); \
  69391. + new_top_distdir=$$reldir; \
  69392. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  69393. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  69394. + ($(am__cd) $$subdir && \
  69395. $(MAKE) $(AM_MAKEFLAGS) \
  69396. - top_distdir="$$top_distdir" \
  69397. - distdir="$$distdir/$$subdir" \
  69398. + top_distdir="$$new_top_distdir" \
  69399. + distdir="$$new_distdir" \
  69400. + am__remove_distdir=: \
  69401. + am__skip_length_check=: \
  69402. + am__skip_mode_fix=: \
  69403. distdir) \
  69404. || exit 1; \
  69405. fi; \
  69406. @@ -411,6 +468,7 @@
  69407. distclean-generic:
  69408. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  69409. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  69410. maintainer-clean-generic:
  69411. @echo "This command is intended for maintainers to use"
  69412. @@ -421,8 +479,7 @@
  69413. distclean: distclean-recursive
  69414. -rm -f Makefile
  69415. -distclean-am: clean-am distclean-generic distclean-libtool \
  69416. - distclean-tags
  69417. +distclean-am: clean-am distclean-generic distclean-tags
  69418. dvi: dvi-recursive
  69419. @@ -430,18 +487,38 @@
  69420. html: html-recursive
  69421. +html-am:
  69422. +
  69423. info: info-recursive
  69424. info-am:
  69425. install-data-am:
  69426. +install-dvi: install-dvi-recursive
  69427. +
  69428. +install-dvi-am:
  69429. +
  69430. install-exec-am:
  69431. +install-html: install-html-recursive
  69432. +
  69433. +install-html-am:
  69434. +
  69435. install-info: install-info-recursive
  69436. +install-info-am:
  69437. +
  69438. install-man:
  69439. +install-pdf: install-pdf-recursive
  69440. +
  69441. +install-pdf-am:
  69442. +
  69443. +install-ps: install-ps-recursive
  69444. +
  69445. +install-ps-am:
  69446. +
  69447. installcheck-am:
  69448. maintainer-clean: maintainer-clean-recursive
  69449. @@ -460,22 +537,25 @@
  69450. ps-am:
  69451. -uninstall-am: uninstall-info-am
  69452. +uninstall-am:
  69453. -uninstall-info: uninstall-info-recursive
  69454. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  69455. + install-am install-strip tags-recursive
  69456. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  69457. - clean clean-generic clean-libtool clean-recursive ctags \
  69458. - ctags-recursive distclean distclean-generic distclean-libtool \
  69459. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  69460. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  69461. + all all-am check check-am clean clean-generic clean-libtool \
  69462. + ctags ctags-recursive distclean distclean-generic \
  69463. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  69464. html-am info info-am install install-am install-data \
  69465. - install-data-am install-exec install-exec-am install-info \
  69466. - install-info-am install-man install-strip installcheck \
  69467. + install-data-am install-dvi install-dvi-am install-exec \
  69468. + install-exec-am install-html install-html-am install-info \
  69469. + install-info-am install-man install-pdf install-pdf-am \
  69470. + install-ps install-ps-am install-strip installcheck \
  69471. installcheck-am installdirs installdirs-am maintainer-clean \
  69472. - maintainer-clean-generic maintainer-clean-recursive \
  69473. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  69474. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  69475. - uninstall uninstall-am uninstall-info-am
  69476. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  69477. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  69478. + uninstall uninstall-am
  69479. +
  69480. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  69481. # Otherwise a system limit (for SysV at least) may be exceeded.
  69482. diff -Nur faad2-2.7.orig/plugins/xmms/src/Makefile.in faad2-2.7/plugins/xmms/src/Makefile.in
  69483. --- faad2-2.7.orig/plugins/xmms/src/Makefile.in 2009-02-10 09:36:11.000000000 +0100
  69484. +++ faad2-2.7/plugins/xmms/src/Makefile.in 2011-02-16 17:55:08.093875722 +0100
  69485. @@ -1,8 +1,9 @@
  69486. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  69487. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  69488. # @configure_input@
  69489. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  69490. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  69491. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  69492. +# Inc.
  69493. # This Makefile.in is free software; the Free Software Foundation
  69494. # gives unlimited permission to copy and/or distribute it,
  69495. # with or without modifications, as long as this notice is preserved.
  69496. @@ -14,15 +15,12 @@
  69497. @SET_MAKE@
  69498. -srcdir = @srcdir@
  69499. -top_srcdir = @top_srcdir@
  69500. VPATH = @srcdir@
  69501. pkgdatadir = $(datadir)/@PACKAGE@
  69502. -pkglibdir = $(libdir)/@PACKAGE@
  69503. pkgincludedir = $(includedir)/@PACKAGE@
  69504. -top_builddir = ../../..
  69505. +pkglibdir = $(libdir)/@PACKAGE@
  69506. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  69507. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  69508. -INSTALL = @INSTALL@
  69509. install_sh_DATA = $(install_sh) -c -m 644
  69510. install_sh_PROGRAM = $(install_sh) -c
  69511. install_sh_SCRIPT = $(install_sh) -c
  69512. @@ -45,39 +43,57 @@
  69513. mkinstalldirs = $(install_sh) -d
  69514. CONFIG_HEADER = $(top_builddir)/config.h
  69515. CONFIG_CLEAN_FILES =
  69516. +CONFIG_CLEAN_VPATH_FILES =
  69517. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  69518. am__vpath_adj = case $$p in \
  69519. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  69520. *) f=$$p;; \
  69521. esac;
  69522. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  69523. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  69524. +am__install_max = 40
  69525. +am__nobase_strip_setup = \
  69526. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  69527. +am__nobase_strip = \
  69528. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  69529. +am__nobase_list = $(am__nobase_strip_setup); \
  69530. + for p in $$list; do echo "$$p $$p"; done | \
  69531. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  69532. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  69533. + if (++n[$$2] == $(am__install_max)) \
  69534. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  69535. + END { for (dir in files) print dir, files[dir] }'
  69536. +am__base_list = \
  69537. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  69538. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  69539. am__installdirs = "$(DESTDIR)$(libdir)"
  69540. -libLTLIBRARIES_INSTALL = $(INSTALL)
  69541. LTLIBRARIES = $(lib_LTLIBRARIES)
  69542. libmp4_la_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la \
  69543. $(top_builddir)/common/mp4ff/libmp4ff.a
  69544. am_libmp4_la_OBJECTS = libmp4_la-libmp4.lo libmp4_la-mp4_utils.lo \
  69545. libmp4_la-aac_utils.lo
  69546. libmp4_la_OBJECTS = $(am_libmp4_la_OBJECTS)
  69547. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  69548. +libmp4_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  69549. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libmp4_la_CFLAGS) \
  69550. + $(CFLAGS) $(libmp4_la_LDFLAGS) $(LDFLAGS) -o $@
  69551. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  69552. depcomp = $(SHELL) $(top_srcdir)/depcomp
  69553. am__depfiles_maybe = depfiles
  69554. +am__mv = mv -f
  69555. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  69556. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  69557. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  69558. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  69559. - $(AM_CFLAGS) $(CFLAGS)
  69560. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  69561. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  69562. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  69563. CCLD = $(CC)
  69564. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  69565. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  69566. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  69567. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  69568. + $(LDFLAGS) -o $@
  69569. SOURCES = $(libmp4_la_SOURCES)
  69570. DIST_SOURCES = $(libmp4_la_SOURCES)
  69571. ETAGS = etags
  69572. CTAGS = ctags
  69573. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  69574. ACLOCAL = @ACLOCAL@
  69575. -AMDEP_FALSE = @AMDEP_FALSE@
  69576. -AMDEP_TRUE = @AMDEP_TRUE@
  69577. AMTAR = @AMTAR@
  69578. AR = @AR@
  69579. AUTOCONF = @AUTOCONF@
  69580. @@ -96,55 +112,62 @@
  69581. CYGPATH_W = @CYGPATH_W@
  69582. DEFS = @DEFS@
  69583. DEPDIR = @DEPDIR@
  69584. -ECHO = @ECHO@
  69585. +DSYMUTIL = @DSYMUTIL@
  69586. +DUMPBIN = @DUMPBIN@
  69587. ECHO_C = @ECHO_C@
  69588. ECHO_N = @ECHO_N@
  69589. ECHO_T = @ECHO_T@
  69590. EGREP = @EGREP@
  69591. EXEEXT = @EXEEXT@
  69592. -F77 = @F77@
  69593. -FFLAGS = @FFLAGS@
  69594. +FGREP = @FGREP@
  69595. GREP = @GREP@
  69596. GTK_CONFIG = @GTK_CONFIG@
  69597. -HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
  69598. -HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
  69599. -HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
  69600. -HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
  69601. +INSTALL = @INSTALL@
  69602. INSTALL_DATA = @INSTALL_DATA@
  69603. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  69604. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  69605. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  69606. +LD = @LD@
  69607. LDFLAGS = @LDFLAGS@
  69608. LIBOBJS = @LIBOBJS@
  69609. LIBS = @LIBS@
  69610. LIBTOOL = @LIBTOOL@
  69611. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  69612. +LIPO = @LIPO@
  69613. LN_S = @LN_S@
  69614. LTLIBOBJS = @LTLIBOBJS@
  69615. MAKEINFO = @MAKEINFO@
  69616. +MKDIR_P = @MKDIR_P@
  69617. MP4FF_LIBS = @MP4FF_LIBS@
  69618. +NM = @NM@
  69619. +NMEDIT = @NMEDIT@
  69620. +OBJDUMP = @OBJDUMP@
  69621. OBJEXT = @OBJEXT@
  69622. +OTOOL = @OTOOL@
  69623. +OTOOL64 = @OTOOL64@
  69624. PACKAGE = @PACKAGE@
  69625. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  69626. PACKAGE_NAME = @PACKAGE_NAME@
  69627. PACKAGE_STRING = @PACKAGE_STRING@
  69628. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69629. +PACKAGE_URL = @PACKAGE_URL@
  69630. PACKAGE_VERSION = @PACKAGE_VERSION@
  69631. PATH_SEPARATOR = @PATH_SEPARATOR@
  69632. RANLIB = @RANLIB@
  69633. RPMBUILD = @RPMBUILD@
  69634. +SED = @SED@
  69635. SET_MAKE = @SET_MAKE@
  69636. SHELL = @SHELL@
  69637. STRIP = @STRIP@
  69638. VERSION = @VERSION@
  69639. XMMS_CONFIG = @XMMS_CONFIG@
  69640. +abs_builddir = @abs_builddir@
  69641. +abs_srcdir = @abs_srcdir@
  69642. +abs_top_builddir = @abs_top_builddir@
  69643. +abs_top_srcdir = @abs_top_srcdir@
  69644. ac_ct_CC = @ac_ct_CC@
  69645. ac_ct_CXX = @ac_ct_CXX@
  69646. -ac_ct_F77 = @ac_ct_F77@
  69647. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  69648. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  69649. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  69650. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  69651. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  69652. am__include = @am__include@
  69653. am__leading_dot = @am__leading_dot@
  69654. am__quote = @am__quote@
  69655. @@ -156,6 +179,7 @@
  69656. build_cpu = @build_cpu@
  69657. build_os = @build_os@
  69658. build_vendor = @build_vendor@
  69659. +builddir = @builddir@
  69660. datadir = @datadir@
  69661. datarootdir = @datarootdir@
  69662. docdir = @docdir@
  69663. @@ -175,6 +199,7 @@
  69664. libexecdir = @libexecdir@
  69665. localedir = @localedir@
  69666. localstatedir = @localstatedir@
  69667. +lt_ECHO = @lt_ECHO@
  69668. mandir = @mandir@
  69669. mkdir_p = @mkdir_p@
  69670. oldincludedir = @oldincludedir@
  69671. @@ -184,8 +209,12 @@
  69672. psdir = @psdir@
  69673. sbindir = @sbindir@
  69674. sharedstatedir = @sharedstatedir@
  69675. +srcdir = @srcdir@
  69676. sysconfdir = @sysconfdir@
  69677. target_alias = @target_alias@
  69678. +top_build_prefix = @top_build_prefix@
  69679. +top_builddir = @top_builddir@
  69680. +top_srcdir = @top_srcdir@
  69681. local_CFLAGS = `$(XMMS_CONFIG) --cflags` -Wall
  69682. local_LDFLAGS = `$(XMMS_CONFIG) --libs`
  69683. lib_LTLIBRARIES = libmp4.la
  69684. @@ -205,14 +234,14 @@
  69685. @for dep in $?; do \
  69686. case '$(am__configure_deps)' in \
  69687. *$$dep*) \
  69688. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  69689. - && exit 0; \
  69690. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  69691. + && { if test -f $@; then exit 0; else break; fi; }; \
  69692. exit 1;; \
  69693. esac; \
  69694. done; \
  69695. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/src/Makefile'; \
  69696. - cd $(top_srcdir) && \
  69697. - $(AUTOMAKE) --gnu plugins/xmms/src/Makefile
  69698. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/src/Makefile'; \
  69699. + $(am__cd) $(top_srcdir) && \
  69700. + $(AUTOMAKE) --gnu plugins/xmms/src/Makefile
  69701. .PRECIOUS: Makefile
  69702. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  69703. @case '$?' in \
  69704. @@ -230,23 +259,28 @@
  69705. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69706. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  69707. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  69708. +$(am__aclocal_m4_deps):
  69709. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  69710. @$(NORMAL_INSTALL)
  69711. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  69712. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  69713. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  69714. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  69715. + list2=; for p in $$list; do \
  69716. if test -f $$p; then \
  69717. - f=$(am__strip_dir) \
  69718. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  69719. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  69720. + list2="$$list2 $$p"; \
  69721. else :; fi; \
  69722. - done
  69723. + done; \
  69724. + test -z "$$list2" || { \
  69725. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  69726. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  69727. + }
  69728. uninstall-libLTLIBRARIES:
  69729. @$(NORMAL_UNINSTALL)
  69730. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  69731. - p=$(am__strip_dir) \
  69732. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  69733. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  69734. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  69735. + for p in $$list; do \
  69736. + $(am__strip_dir) \
  69737. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  69738. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  69739. done
  69740. clean-libLTLIBRARIES:
  69741. @@ -258,7 +292,7 @@
  69742. rm -f "$${dir}/so_locations"; \
  69743. done
  69744. libmp4.la: $(libmp4_la_OBJECTS) $(libmp4_la_DEPENDENCIES)
  69745. - $(LINK) -rpath $(libdir) $(libmp4_la_LDFLAGS) $(libmp4_la_OBJECTS) $(libmp4_la_LIBADD) $(LIBS)
  69746. + $(libmp4_la_LINK) -rpath $(libdir) $(libmp4_la_OBJECTS) $(libmp4_la_LIBADD) $(LIBS)
  69747. mostlyclean-compile:
  69748. -rm -f *.$(OBJEXT)
  69749. @@ -271,46 +305,46 @@
  69750. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4_la-mp4_utils.Plo@am__quote@
  69751. .c.o:
  69752. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  69753. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  69754. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  69755. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  69756. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  69757. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69758. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  69759. .c.obj:
  69760. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  69761. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  69762. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  69763. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  69764. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  69765. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69766. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  69767. .c.lo:
  69768. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  69769. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  69770. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  69771. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  69772. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  69773. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69774. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  69775. libmp4_la-libmp4.lo: libmp4.c
  69776. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-libmp4.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-libmp4.Tpo" -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c; \
  69777. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-libmp4.Tpo" "$(DEPDIR)/libmp4_la-libmp4.Plo"; else rm -f "$(DEPDIR)/libmp4_la-libmp4.Tpo"; exit 1; fi
  69778. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-libmp4.lo -MD -MP -MF $(DEPDIR)/libmp4_la-libmp4.Tpo -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c
  69779. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4_la-libmp4.Tpo $(DEPDIR)/libmp4_la-libmp4.Plo
  69780. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libmp4.c' object='libmp4_la-libmp4.lo' libtool=yes @AMDEPBACKSLASH@
  69781. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69782. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c
  69783. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c
  69784. libmp4_la-mp4_utils.lo: mp4_utils.c
  69785. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-mp4_utils.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-mp4_utils.Tpo" -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c; \
  69786. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-mp4_utils.Tpo" "$(DEPDIR)/libmp4_la-mp4_utils.Plo"; else rm -f "$(DEPDIR)/libmp4_la-mp4_utils.Tpo"; exit 1; fi
  69787. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-mp4_utils.lo -MD -MP -MF $(DEPDIR)/libmp4_la-mp4_utils.Tpo -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c
  69788. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4_la-mp4_utils.Tpo $(DEPDIR)/libmp4_la-mp4_utils.Plo
  69789. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4_utils.c' object='libmp4_la-mp4_utils.lo' libtool=yes @AMDEPBACKSLASH@
  69790. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69791. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c
  69792. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c
  69793. libmp4_la-aac_utils.lo: aac_utils.c
  69794. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-aac_utils.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-aac_utils.Tpo" -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c; \
  69795. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-aac_utils.Tpo" "$(DEPDIR)/libmp4_la-aac_utils.Plo"; else rm -f "$(DEPDIR)/libmp4_la-aac_utils.Tpo"; exit 1; fi
  69796. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-aac_utils.lo -MD -MP -MF $(DEPDIR)/libmp4_la-aac_utils.Tpo -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c
  69797. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libmp4_la-aac_utils.Tpo $(DEPDIR)/libmp4_la-aac_utils.Plo
  69798. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aac_utils.c' object='libmp4_la-aac_utils.lo' libtool=yes @AMDEPBACKSLASH@
  69799. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  69800. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c
  69801. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c
  69802. mostlyclean-libtool:
  69803. -rm -f *.lo
  69804. @@ -318,82 +352,85 @@
  69805. clean-libtool:
  69806. -rm -rf .libs _libs
  69807. -distclean-libtool:
  69808. - -rm -f libtool
  69809. -uninstall-info-am:
  69810. -
  69811. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  69812. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69813. unique=`for i in $$list; do \
  69814. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69815. done | \
  69816. - $(AWK) ' { files[$$0] = 1; } \
  69817. - END { for (i in files) print i; }'`; \
  69818. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69819. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69820. mkid -fID $$unique
  69821. tags: TAGS
  69822. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69823. $(TAGS_FILES) $(LISP)
  69824. - tags=; \
  69825. + set x; \
  69826. here=`pwd`; \
  69827. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69828. unique=`for i in $$list; do \
  69829. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69830. done | \
  69831. - $(AWK) ' { files[$$0] = 1; } \
  69832. - END { for (i in files) print i; }'`; \
  69833. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  69834. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69835. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69836. + shift; \
  69837. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  69838. test -n "$$unique" || unique=$$empty_fix; \
  69839. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69840. - $$tags $$unique; \
  69841. + if test $$# -gt 0; then \
  69842. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69843. + "$$@" $$unique; \
  69844. + else \
  69845. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  69846. + $$unique; \
  69847. + fi; \
  69848. fi
  69849. ctags: CTAGS
  69850. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  69851. $(TAGS_FILES) $(LISP)
  69852. - tags=; \
  69853. - here=`pwd`; \
  69854. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  69855. unique=`for i in $$list; do \
  69856. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  69857. done | \
  69858. - $(AWK) ' { files[$$0] = 1; } \
  69859. - END { for (i in files) print i; }'`; \
  69860. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  69861. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  69862. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  69863. + test -z "$(CTAGS_ARGS)$$unique" \
  69864. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  69865. - $$tags $$unique
  69866. + $$unique
  69867. GTAGS:
  69868. here=`$(am__cd) $(top_builddir) && pwd` \
  69869. - && cd $(top_srcdir) \
  69870. - && gtags -i $(GTAGS_ARGS) $$here
  69871. + && $(am__cd) $(top_srcdir) \
  69872. + && gtags -i $(GTAGS_ARGS) "$$here"
  69873. distclean-tags:
  69874. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  69875. distdir: $(DISTFILES)
  69876. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  69877. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  69878. - list='$(DISTFILES)'; for file in $$list; do \
  69879. - case $$file in \
  69880. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  69881. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  69882. - esac; \
  69883. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69884. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  69885. + list='$(DISTFILES)'; \
  69886. + dist_files=`for file in $$list; do echo $$file; done | \
  69887. + sed -e "s|^$$srcdirstrip/||;t" \
  69888. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  69889. + case $$dist_files in \
  69890. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  69891. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  69892. + sort -u` ;; \
  69893. + esac; \
  69894. + for file in $$dist_files; do \
  69895. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  69896. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  69897. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  69898. - dir="/$$dir"; \
  69899. - $(mkdir_p) "$(distdir)$$dir"; \
  69900. - else \
  69901. - dir=''; \
  69902. - fi; \
  69903. if test -d $$d/$$file; then \
  69904. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  69905. + if test -d "$(distdir)/$$file"; then \
  69906. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69907. + fi; \
  69908. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  69909. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  69910. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  69911. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  69912. fi; \
  69913. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  69914. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  69915. else \
  69916. - test -f $(distdir)/$$file \
  69917. - || cp -p $$d/$$file $(distdir)/$$file \
  69918. + test -f "$(distdir)/$$file" \
  69919. + || cp -p $$d/$$file "$(distdir)/$$file" \
  69920. || exit 1; \
  69921. fi; \
  69922. done
  69923. @@ -402,7 +439,7 @@
  69924. all-am: Makefile $(LTLIBRARIES)
  69925. installdirs:
  69926. for dir in "$(DESTDIR)$(libdir)"; do \
  69927. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  69928. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  69929. done
  69930. install: install-am
  69931. install-exec: install-exec-am
  69932. @@ -424,6 +461,7 @@
  69933. distclean-generic:
  69934. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  69935. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  69936. maintainer-clean-generic:
  69937. @echo "This command is intended for maintainers to use"
  69938. @@ -437,7 +475,7 @@
  69939. -rm -rf ./$(DEPDIR)
  69940. -rm -f Makefile
  69941. distclean-am: clean-am distclean-compile distclean-generic \
  69942. - distclean-libtool distclean-tags
  69943. + distclean-tags
  69944. dvi: dvi-am
  69945. @@ -445,18 +483,38 @@
  69946. html: html-am
  69947. +html-am:
  69948. +
  69949. info: info-am
  69950. info-am:
  69951. install-data-am:
  69952. +install-dvi: install-dvi-am
  69953. +
  69954. +install-dvi-am:
  69955. +
  69956. install-exec-am: install-libLTLIBRARIES
  69957. +install-html: install-html-am
  69958. +
  69959. +install-html-am:
  69960. +
  69961. install-info: install-info-am
  69962. +install-info-am:
  69963. +
  69964. install-man:
  69965. +install-pdf: install-pdf-am
  69966. +
  69967. +install-pdf-am:
  69968. +
  69969. +install-ps: install-ps-am
  69970. +
  69971. +install-ps-am:
  69972. +
  69973. installcheck-am:
  69974. maintainer-clean: maintainer-clean-am
  69975. @@ -477,20 +535,24 @@
  69976. ps-am:
  69977. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  69978. +uninstall-am: uninstall-libLTLIBRARIES
  69979. +
  69980. +.MAKE: install-am install-strip
  69981. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  69982. clean-libLTLIBRARIES clean-libtool ctags distclean \
  69983. distclean-compile distclean-generic distclean-libtool \
  69984. distclean-tags distdir dvi dvi-am html html-am info info-am \
  69985. - install install-am install-data install-data-am install-exec \
  69986. - install-exec-am install-info install-info-am \
  69987. - install-libLTLIBRARIES install-man install-strip installcheck \
  69988. + install install-am install-data install-data-am install-dvi \
  69989. + install-dvi-am install-exec install-exec-am install-html \
  69990. + install-html-am install-info install-info-am \
  69991. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  69992. + install-ps install-ps-am install-strip installcheck \
  69993. installcheck-am installdirs maintainer-clean \
  69994. maintainer-clean-generic mostlyclean mostlyclean-compile \
  69995. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  69996. - tags uninstall uninstall-am uninstall-info-am \
  69997. - uninstall-libLTLIBRARIES
  69998. + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  69999. +
  70000. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  70001. # Otherwise a system limit (for SysV at least) may be exceeded.