aclocal.m4 346 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866
  1. # generated automatically by aclocal 1.15 -*- Autoconf -*-
  2. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996-2001, 2003-2013 Free Software Foundation, Inc.
  21. # Written by Gordon Matzigkeit, 1996
  22. #
  23. # This file is free software; the Free Software Foundation gives
  24. # unlimited permission to copy and/or distribute it, with or without
  25. # modifications, as long as this notice is preserved.
  26. m4_define([_LT_COPYING], [dnl
  27. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  28. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  29. # Foundation, Inc.
  30. # Written by Gordon Matzigkeit, 1996
  31. #
  32. # This file is part of GNU Libtool.
  33. #
  34. # GNU Libtool is free software; you can redistribute it and/or
  35. # modify it under the terms of the GNU General Public License as
  36. # published by the Free Software Foundation; either version 2 of
  37. # the License, or (at your option) any later version.
  38. #
  39. # As a special exception to the GNU General Public License,
  40. # if you distribute this file as part of a program or library that
  41. # is built using GNU Libtool, you may include this file under the
  42. # same distribution terms that you use for the rest of that program.
  43. #
  44. # GNU Libtool is distributed in the hope that it will be useful,
  45. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  46. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  47. # GNU General Public License for more details.
  48. #
  49. # You should have received a copy of the GNU General Public License
  50. # along with GNU Libtool; see the file COPYING. If not, a copy
  51. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  52. # obtained by writing to the Free Software Foundation, Inc.,
  53. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  54. ])
  55. # serial 58 LT_INIT
  56. # LT_PREREQ(VERSION)
  57. # ------------------
  58. # Complain and exit if this libtool version is less that VERSION.
  59. m4_defun([LT_PREREQ],
  60. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  61. [m4_default([$3],
  62. [m4_fatal([Libtool version $1 or higher is required],
  63. 63)])],
  64. [$2])])
  65. # _LT_CHECK_BUILDDIR
  66. # ------------------
  67. # Complain if the absolute build directory name contains unusual characters
  68. m4_defun([_LT_CHECK_BUILDDIR],
  69. [case `pwd` in
  70. *\ * | *\ *)
  71. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  72. esac
  73. ])
  74. # LT_INIT([OPTIONS])
  75. # ------------------
  76. AC_DEFUN([LT_INIT],
  77. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  78. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  79. AC_BEFORE([$0], [LT_LANG])dnl
  80. AC_BEFORE([$0], [LT_OUTPUT])dnl
  81. AC_BEFORE([$0], [LTDL_INIT])dnl
  82. m4_require([_LT_CHECK_BUILDDIR])dnl
  83. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  84. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  85. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  86. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  87. dnl unless we require an AC_DEFUNed macro:
  88. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  89. AC_REQUIRE([LTSUGAR_VERSION])dnl
  90. AC_REQUIRE([LTVERSION_VERSION])dnl
  91. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  92. m4_require([_LT_PROG_LTMAIN])dnl
  93. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  94. dnl Parse OPTIONS
  95. _LT_SET_OPTIONS([$0], [$1])
  96. # This can be used to rebuild libtool when needed
  97. LIBTOOL_DEPS=$ltmain
  98. # Always use our own libtool.
  99. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  100. AC_SUBST(LIBTOOL)dnl
  101. _LT_SETUP
  102. # Only expand once:
  103. m4_define([LT_INIT])
  104. ])# LT_INIT
  105. # Old names:
  106. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  107. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  108. dnl aclocal-1.4 backwards compatibility:
  109. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  110. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  111. # _LT_CC_BASENAME(CC)
  112. # -------------------
  113. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  114. m4_defun([_LT_CC_BASENAME],
  115. [for cc_temp in $1""; do
  116. case $cc_temp in
  117. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  118. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  119. \-*) ;;
  120. *) break;;
  121. esac
  122. done
  123. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  124. ])
  125. # _LT_FILEUTILS_DEFAULTS
  126. # ----------------------
  127. # It is okay to use these file commands and assume they have been set
  128. # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  129. m4_defun([_LT_FILEUTILS_DEFAULTS],
  130. [: ${CP="cp -f"}
  131. : ${MV="mv -f"}
  132. : ${RM="rm -f"}
  133. ])# _LT_FILEUTILS_DEFAULTS
  134. # _LT_SETUP
  135. # ---------
  136. m4_defun([_LT_SETUP],
  137. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  138. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  139. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  140. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  141. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  142. dnl
  143. _LT_DECL([], [host_alias], [0], [The host system])dnl
  144. _LT_DECL([], [host], [0])dnl
  145. _LT_DECL([], [host_os], [0])dnl
  146. dnl
  147. _LT_DECL([], [build_alias], [0], [The build system])dnl
  148. _LT_DECL([], [build], [0])dnl
  149. _LT_DECL([], [build_os], [0])dnl
  150. dnl
  151. AC_REQUIRE([AC_PROG_CC])dnl
  152. AC_REQUIRE([LT_PATH_LD])dnl
  153. AC_REQUIRE([LT_PATH_NM])dnl
  154. dnl
  155. AC_REQUIRE([AC_PROG_LN_S])dnl
  156. test -z "$LN_S" && LN_S="ln -s"
  157. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  158. dnl
  159. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  160. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  161. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  162. dnl
  163. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  164. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  165. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  166. m4_require([_LT_CMD_RELOAD])dnl
  167. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  168. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  169. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  170. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  171. m4_require([_LT_WITH_SYSROOT])dnl
  172. _LT_CONFIG_LIBTOOL_INIT([
  173. # See if we are running on zsh, and set the options that allow our
  174. # commands through without removal of \ escapes INIT.
  175. if test -n "\${ZSH_VERSION+set}"; then
  176. setopt NO_GLOB_SUBST
  177. fi
  178. ])
  179. if test -n "${ZSH_VERSION+set}"; then
  180. setopt NO_GLOB_SUBST
  181. fi
  182. _LT_CHECK_OBJDIR
  183. m4_require([_LT_TAG_COMPILER])dnl
  184. case $host_os in
  185. aix3*)
  186. # AIX sometimes has problems with the GCC collect2 program. For some
  187. # reason, if we set the COLLECT_NAMES environment variable, the problems
  188. # vanish in a puff of smoke.
  189. if test set != "${COLLECT_NAMES+set}"; then
  190. COLLECT_NAMES=
  191. export COLLECT_NAMES
  192. fi
  193. ;;
  194. esac
  195. # Global variables:
  196. ofile=libtool
  197. can_build_shared=yes
  198. # All known linkers require a '.a' archive for static linking (except MSVC,
  199. # which needs '.lib').
  200. libext=a
  201. with_gnu_ld=$lt_cv_prog_gnu_ld
  202. old_CC=$CC
  203. old_CFLAGS=$CFLAGS
  204. # Set sane defaults for various variables
  205. test -z "$CC" && CC=cc
  206. test -z "$LTCC" && LTCC=$CC
  207. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  208. test -z "$LD" && LD=ld
  209. test -z "$ac_objext" && ac_objext=o
  210. _LT_CC_BASENAME([$compiler])
  211. # Only perform the check for file, if the check method requires it
  212. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  213. case $deplibs_check_method in
  214. file_magic*)
  215. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  216. _LT_PATH_MAGIC
  217. fi
  218. ;;
  219. esac
  220. # Use C for the default configuration in the libtool script
  221. LT_SUPPORTED_TAG([CC])
  222. _LT_LANG_C_CONFIG
  223. _LT_LANG_DEFAULT_CONFIG
  224. _LT_CONFIG_COMMANDS
  225. ])# _LT_SETUP
  226. # _LT_PREPARE_SED_QUOTE_VARS
  227. # --------------------------
  228. # Define a few sed substitution that help us do robust quoting.
  229. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  230. [# Backslashify metacharacters that are still active within
  231. # double-quoted strings.
  232. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  233. # Same as above, but do not quote variable references.
  234. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  235. # Sed substitution to delay expansion of an escaped shell variable in a
  236. # double_quote_subst'ed string.
  237. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  238. # Sed substitution to delay expansion of an escaped single quote.
  239. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  240. # Sed substitution to avoid accidental globbing in evaled expressions
  241. no_glob_subst='s/\*/\\\*/g'
  242. ])
  243. # _LT_PROG_LTMAIN
  244. # ---------------
  245. # Note that this code is called both from 'configure', and 'config.status'
  246. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  247. # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  248. # so we pass a copy along to make sure it has a sensible value anyway.
  249. m4_defun([_LT_PROG_LTMAIN],
  250. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  251. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  252. ltmain=$ac_aux_dir/ltmain.sh
  253. ])# _LT_PROG_LTMAIN
  254. # So that we can recreate a full libtool script including additional
  255. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  256. # in macros and then make a single call at the end using the 'libtool'
  257. # label.
  258. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  259. # ----------------------------------------
  260. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  261. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  262. [m4_ifval([$1],
  263. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  264. [$1
  265. ])])])
  266. # Initialize.
  267. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  268. # _LT_CONFIG_LIBTOOL([COMMANDS])
  269. # ------------------------------
  270. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  271. m4_define([_LT_CONFIG_LIBTOOL],
  272. [m4_ifval([$1],
  273. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  274. [$1
  275. ])])])
  276. # Initialize.
  277. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  278. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  279. # -----------------------------------------------------
  280. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  281. [_LT_CONFIG_LIBTOOL([$1])
  282. _LT_CONFIG_LIBTOOL_INIT([$2])
  283. ])
  284. # _LT_FORMAT_COMMENT([COMMENT])
  285. # -----------------------------
  286. # Add leading comment marks to the start of each line, and a trailing
  287. # full-stop to the whole comment if one is not present already.
  288. m4_define([_LT_FORMAT_COMMENT],
  289. [m4_ifval([$1], [
  290. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  291. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  292. )])
  293. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  294. # -------------------------------------------------------------------
  295. # CONFIGNAME is the name given to the value in the libtool script.
  296. # VARNAME is the (base) name used in the configure script.
  297. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  298. # VARNAME. Any other value will be used directly.
  299. m4_define([_LT_DECL],
  300. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  301. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  302. [m4_ifval([$1], [$1], [$2])])
  303. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  304. m4_ifval([$4],
  305. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  306. lt_dict_add_subkey([lt_decl_dict], [$2],
  307. [tagged?], [m4_ifval([$5], [yes], [no])])])
  308. ])
  309. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  310. # --------------------------------------------------------
  311. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  312. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  313. # ------------------------------------------------
  314. m4_define([lt_decl_tag_varnames],
  315. [_lt_decl_filter([tagged?], [yes], $@)])
  316. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  317. # ---------------------------------------------------------
  318. m4_define([_lt_decl_filter],
  319. [m4_case([$#],
  320. [0], [m4_fatal([$0: too few arguments: $#])],
  321. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  322. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  323. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  324. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  325. ])
  326. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  327. # --------------------------------------------------
  328. m4_define([lt_decl_quote_varnames],
  329. [_lt_decl_filter([value], [1], $@)])
  330. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  331. # ---------------------------------------------------
  332. m4_define([lt_decl_dquote_varnames],
  333. [_lt_decl_filter([value], [2], $@)])
  334. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  335. # ---------------------------------------------------
  336. m4_define([lt_decl_varnames_tagged],
  337. [m4_assert([$# <= 2])dnl
  338. _$0(m4_quote(m4_default([$1], [[, ]])),
  339. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  340. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  341. m4_define([_lt_decl_varnames_tagged],
  342. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  343. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  344. # ------------------------------------------------
  345. m4_define([lt_decl_all_varnames],
  346. [_$0(m4_quote(m4_default([$1], [[, ]])),
  347. m4_if([$2], [],
  348. m4_quote(lt_decl_varnames),
  349. m4_quote(m4_shift($@))))[]dnl
  350. ])
  351. m4_define([_lt_decl_all_varnames],
  352. [lt_join($@, lt_decl_varnames_tagged([$1],
  353. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  354. ])
  355. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  356. # ------------------------------------
  357. # Quote a variable value, and forward it to 'config.status' so that its
  358. # declaration there will have the same value as in 'configure'. VARNAME
  359. # must have a single quote delimited value for this to work.
  360. m4_define([_LT_CONFIG_STATUS_DECLARE],
  361. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  362. # _LT_CONFIG_STATUS_DECLARATIONS
  363. # ------------------------------
  364. # We delimit libtool config variables with single quotes, so when
  365. # we write them to config.status, we have to be sure to quote all
  366. # embedded single quotes properly. In configure, this macro expands
  367. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  368. #
  369. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  370. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  371. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  372. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  373. # _LT_LIBTOOL_TAGS
  374. # ----------------
  375. # Output comment and list of tags supported by the script
  376. m4_defun([_LT_LIBTOOL_TAGS],
  377. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  378. available_tags='_LT_TAGS'dnl
  379. ])
  380. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  381. # -----------------------------------
  382. # Extract the dictionary values for VARNAME (optionally with TAG) and
  383. # expand to a commented shell variable setting:
  384. #
  385. # # Some comment about what VAR is for.
  386. # visible_name=$lt_internal_name
  387. m4_define([_LT_LIBTOOL_DECLARE],
  388. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  389. [description])))[]dnl
  390. m4_pushdef([_libtool_name],
  391. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  392. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  393. [0], [_libtool_name=[$]$1],
  394. [1], [_libtool_name=$lt_[]$1],
  395. [2], [_libtool_name=$lt_[]$1],
  396. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  397. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  398. ])
  399. # _LT_LIBTOOL_CONFIG_VARS
  400. # -----------------------
  401. # Produce commented declarations of non-tagged libtool config variables
  402. # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  403. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  404. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  405. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  406. [m4_foreach([_lt_var],
  407. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  408. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  409. # _LT_LIBTOOL_TAG_VARS(TAG)
  410. # -------------------------
  411. m4_define([_LT_LIBTOOL_TAG_VARS],
  412. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  413. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  414. # _LT_TAGVAR(VARNAME, [TAGNAME])
  415. # ------------------------------
  416. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  417. # _LT_CONFIG_COMMANDS
  418. # -------------------
  419. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  420. # variables for single and double quote escaping we saved from calls
  421. # to _LT_DECL, we can put quote escaped variables declarations
  422. # into 'config.status', and then the shell code to quote escape them in
  423. # for loops in 'config.status'. Finally, any additional code accumulated
  424. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  425. m4_defun([_LT_CONFIG_COMMANDS],
  426. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  427. dnl If the libtool generation code has been placed in $CONFIG_LT,
  428. dnl instead of duplicating it all over again into config.status,
  429. dnl then we will have config.status run $CONFIG_LT later, so it
  430. dnl needs to know what name is stored there:
  431. [AC_CONFIG_COMMANDS([libtool],
  432. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  433. dnl If the libtool generation code is destined for config.status,
  434. dnl expand the accumulated commands and init code now:
  435. [AC_CONFIG_COMMANDS([libtool],
  436. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  437. ])#_LT_CONFIG_COMMANDS
  438. # Initialize.
  439. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  440. [
  441. # The HP-UX ksh and POSIX shell print the target directory to stdout
  442. # if CDPATH is set.
  443. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  444. sed_quote_subst='$sed_quote_subst'
  445. double_quote_subst='$double_quote_subst'
  446. delay_variable_subst='$delay_variable_subst'
  447. _LT_CONFIG_STATUS_DECLARATIONS
  448. LTCC='$LTCC'
  449. LTCFLAGS='$LTCFLAGS'
  450. compiler='$compiler_DEFAULT'
  451. # A function that is used when there is no print builtin or printf.
  452. func_fallback_echo ()
  453. {
  454. eval 'cat <<_LTECHO_EOF
  455. \$[]1
  456. _LTECHO_EOF'
  457. }
  458. # Quote evaled strings.
  459. for var in lt_decl_all_varnames([[ \
  460. ]], lt_decl_quote_varnames); do
  461. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  462. *[[\\\\\\\`\\"\\\$]]*)
  463. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  464. ;;
  465. *)
  466. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  467. ;;
  468. esac
  469. done
  470. # Double-quote double-evaled strings.
  471. for var in lt_decl_all_varnames([[ \
  472. ]], lt_decl_dquote_varnames); do
  473. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  474. *[[\\\\\\\`\\"\\\$]]*)
  475. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  476. ;;
  477. *)
  478. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  479. ;;
  480. esac
  481. done
  482. _LT_OUTPUT_LIBTOOL_INIT
  483. ])
  484. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  485. # ------------------------------------
  486. # Generate a child script FILE with all initialization necessary to
  487. # reuse the environment learned by the parent script, and make the
  488. # file executable. If COMMENT is supplied, it is inserted after the
  489. # '#!' sequence but before initialization text begins. After this
  490. # macro, additional text can be appended to FILE to form the body of
  491. # the child script. The macro ends with non-zero status if the
  492. # file could not be fully written (such as if the disk is full).
  493. m4_ifdef([AS_INIT_GENERATED],
  494. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  495. [m4_defun([_LT_GENERATED_FILE_INIT],
  496. [m4_require([AS_PREPARE])]dnl
  497. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  498. [lt_write_fail=0
  499. cat >$1 <<_ASEOF || lt_write_fail=1
  500. #! $SHELL
  501. # Generated by $as_me.
  502. $2
  503. SHELL=\${CONFIG_SHELL-$SHELL}
  504. export SHELL
  505. _ASEOF
  506. cat >>$1 <<\_ASEOF || lt_write_fail=1
  507. AS_SHELL_SANITIZE
  508. _AS_PREPARE
  509. exec AS_MESSAGE_FD>&1
  510. _ASEOF
  511. test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  512. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  513. # LT_OUTPUT
  514. # ---------
  515. # This macro allows early generation of the libtool script (before
  516. # AC_OUTPUT is called), incase it is used in configure for compilation
  517. # tests.
  518. AC_DEFUN([LT_OUTPUT],
  519. [: ${CONFIG_LT=./config.lt}
  520. AC_MSG_NOTICE([creating $CONFIG_LT])
  521. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  522. [# Run this file to recreate a libtool stub with the current configuration.])
  523. cat >>"$CONFIG_LT" <<\_LTEOF
  524. lt_cl_silent=false
  525. exec AS_MESSAGE_LOG_FD>>config.log
  526. {
  527. echo
  528. AS_BOX([Running $as_me.])
  529. } >&AS_MESSAGE_LOG_FD
  530. lt_cl_help="\
  531. '$as_me' creates a local libtool stub from the current configuration,
  532. for use in further configure time tests before the real libtool is
  533. generated.
  534. Usage: $[0] [[OPTIONS]]
  535. -h, --help print this help, then exit
  536. -V, --version print version number, then exit
  537. -q, --quiet do not print progress messages
  538. -d, --debug don't remove temporary files
  539. Report bugs to <bug-libtool@gnu.org>."
  540. lt_cl_version="\
  541. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  542. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  543. configured by $[0], generated by m4_PACKAGE_STRING.
  544. Copyright (C) 2011 Free Software Foundation, Inc.
  545. This config.lt script is free software; the Free Software Foundation
  546. gives unlimited permision to copy, distribute and modify it."
  547. while test 0 != $[#]
  548. do
  549. case $[1] in
  550. --version | --v* | -V )
  551. echo "$lt_cl_version"; exit 0 ;;
  552. --help | --h* | -h )
  553. echo "$lt_cl_help"; exit 0 ;;
  554. --debug | --d* | -d )
  555. debug=: ;;
  556. --quiet | --q* | --silent | --s* | -q )
  557. lt_cl_silent=: ;;
  558. -*) AC_MSG_ERROR([unrecognized option: $[1]
  559. Try '$[0] --help' for more information.]) ;;
  560. *) AC_MSG_ERROR([unrecognized argument: $[1]
  561. Try '$[0] --help' for more information.]) ;;
  562. esac
  563. shift
  564. done
  565. if $lt_cl_silent; then
  566. exec AS_MESSAGE_FD>/dev/null
  567. fi
  568. _LTEOF
  569. cat >>"$CONFIG_LT" <<_LTEOF
  570. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  571. _LTEOF
  572. cat >>"$CONFIG_LT" <<\_LTEOF
  573. AC_MSG_NOTICE([creating $ofile])
  574. _LT_OUTPUT_LIBTOOL_COMMANDS
  575. AS_EXIT(0)
  576. _LTEOF
  577. chmod +x "$CONFIG_LT"
  578. # configure is writing to config.log, but config.lt does its own redirection,
  579. # appending to config.log, which fails on DOS, as config.log is still kept
  580. # open by configure. Here we exec the FD to /dev/null, effectively closing
  581. # config.log, so it can be properly (re)opened and appended to by config.lt.
  582. lt_cl_success=:
  583. test yes = "$silent" &&
  584. lt_config_lt_args="$lt_config_lt_args --quiet"
  585. exec AS_MESSAGE_LOG_FD>/dev/null
  586. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  587. exec AS_MESSAGE_LOG_FD>>config.log
  588. $lt_cl_success || AS_EXIT(1)
  589. ])# LT_OUTPUT
  590. # _LT_CONFIG(TAG)
  591. # ---------------
  592. # If TAG is the built-in tag, create an initial libtool script with a
  593. # default configuration from the untagged config vars. Otherwise add code
  594. # to config.status for appending the configuration named by TAG from the
  595. # matching tagged config vars.
  596. m4_defun([_LT_CONFIG],
  597. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  598. _LT_CONFIG_SAVE_COMMANDS([
  599. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  600. m4_if(_LT_TAG, [C], [
  601. # See if we are running on zsh, and set the options that allow our
  602. # commands through without removal of \ escapes.
  603. if test -n "${ZSH_VERSION+set}"; then
  604. setopt NO_GLOB_SUBST
  605. fi
  606. cfgfile=${ofile}T
  607. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  608. $RM "$cfgfile"
  609. cat <<_LT_EOF >> "$cfgfile"
  610. #! $SHELL
  611. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  612. # Generated automatically by $as_me ($PACKAGE) $VERSION
  613. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  614. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  615. #
  616. _LT_COPYING
  617. _LT_LIBTOOL_TAGS
  618. # ### BEGIN LIBTOOL CONFIG
  619. _LT_LIBTOOL_CONFIG_VARS
  620. _LT_LIBTOOL_TAG_VARS
  621. # ### END LIBTOOL CONFIG
  622. _LT_EOF
  623. case $host_os in
  624. aix3*)
  625. cat <<\_LT_EOF >> "$cfgfile"
  626. # AIX sometimes has problems with the GCC collect2 program. For some
  627. # reason, if we set the COLLECT_NAMES environment variable, the problems
  628. # vanish in a puff of smoke.
  629. if test set != "${COLLECT_NAMES+set}"; then
  630. COLLECT_NAMES=
  631. export COLLECT_NAMES
  632. fi
  633. _LT_EOF
  634. ;;
  635. esac
  636. _LT_PROG_LTMAIN
  637. # We use sed instead of cat because bash on DJGPP gets confused if
  638. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  639. # text mode, it properly converts lines to CR/LF. This bash problem
  640. # is reportedly fixed, but why not run on old versions too?
  641. sed '$q' "$ltmain" >> "$cfgfile" \
  642. || (rm -f "$cfgfile"; exit 1)
  643. mv -f "$cfgfile" "$ofile" ||
  644. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  645. chmod +x "$ofile"
  646. ],
  647. [cat <<_LT_EOF >> "$ofile"
  648. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  649. dnl in a comment (ie after a #).
  650. # ### BEGIN LIBTOOL TAG CONFIG: $1
  651. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  652. # ### END LIBTOOL TAG CONFIG: $1
  653. _LT_EOF
  654. ])dnl /m4_if
  655. ],
  656. [m4_if([$1], [], [
  657. PACKAGE='$PACKAGE'
  658. VERSION='$VERSION'
  659. RM='$RM'
  660. ofile='$ofile'], [])
  661. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  662. ])# _LT_CONFIG
  663. # LT_SUPPORTED_TAG(TAG)
  664. # ---------------------
  665. # Trace this macro to discover what tags are supported by the libtool
  666. # --tag option, using:
  667. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  668. AC_DEFUN([LT_SUPPORTED_TAG], [])
  669. # C support is built-in for now
  670. m4_define([_LT_LANG_C_enabled], [])
  671. m4_define([_LT_TAGS], [])
  672. # LT_LANG(LANG)
  673. # -------------
  674. # Enable libtool support for the given language if not already enabled.
  675. AC_DEFUN([LT_LANG],
  676. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  677. m4_case([$1],
  678. [C], [_LT_LANG(C)],
  679. [C++], [_LT_LANG(CXX)],
  680. [Go], [_LT_LANG(GO)],
  681. [Java], [_LT_LANG(GCJ)],
  682. [Fortran 77], [_LT_LANG(F77)],
  683. [Fortran], [_LT_LANG(FC)],
  684. [Windows Resource], [_LT_LANG(RC)],
  685. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  686. [_LT_LANG($1)],
  687. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  688. ])# LT_LANG
  689. # _LT_LANG(LANGNAME)
  690. # ------------------
  691. m4_defun([_LT_LANG],
  692. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  693. [LT_SUPPORTED_TAG([$1])dnl
  694. m4_append([_LT_TAGS], [$1 ])dnl
  695. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  696. _LT_LANG_$1_CONFIG($1)])dnl
  697. ])# _LT_LANG
  698. m4_ifndef([AC_PROG_GO], [
  699. # NOTE: This macro has been submitted for inclusion into #
  700. # GNU Autoconf as AC_PROG_GO. When it is available in #
  701. # a released version of Autoconf we should remove this #
  702. # macro and use it instead. #
  703. m4_defun([AC_PROG_GO],
  704. [AC_LANG_PUSH(Go)dnl
  705. AC_ARG_VAR([GOC], [Go compiler command])dnl
  706. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  707. _AC_ARG_VAR_LDFLAGS()dnl
  708. AC_CHECK_TOOL(GOC, gccgo)
  709. if test -z "$GOC"; then
  710. if test -n "$ac_tool_prefix"; then
  711. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  712. fi
  713. fi
  714. if test -z "$GOC"; then
  715. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  716. fi
  717. ])#m4_defun
  718. ])#m4_ifndef
  719. # _LT_LANG_DEFAULT_CONFIG
  720. # -----------------------
  721. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  722. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  723. [LT_LANG(CXX)],
  724. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  725. AC_PROVIDE_IFELSE([AC_PROG_F77],
  726. [LT_LANG(F77)],
  727. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  728. AC_PROVIDE_IFELSE([AC_PROG_FC],
  729. [LT_LANG(FC)],
  730. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  731. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  732. dnl pulling things in needlessly.
  733. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  734. [LT_LANG(GCJ)],
  735. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  736. [LT_LANG(GCJ)],
  737. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  738. [LT_LANG(GCJ)],
  739. [m4_ifdef([AC_PROG_GCJ],
  740. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  741. m4_ifdef([A][M_PROG_GCJ],
  742. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  743. m4_ifdef([LT_PROG_GCJ],
  744. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  745. AC_PROVIDE_IFELSE([AC_PROG_GO],
  746. [LT_LANG(GO)],
  747. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  748. AC_PROVIDE_IFELSE([LT_PROG_RC],
  749. [LT_LANG(RC)],
  750. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  751. ])# _LT_LANG_DEFAULT_CONFIG
  752. # Obsolete macros:
  753. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  754. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  755. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  756. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  757. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  758. dnl aclocal-1.4 backwards compatibility:
  759. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  760. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  761. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  762. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  763. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  764. # _LT_TAG_COMPILER
  765. # ----------------
  766. m4_defun([_LT_TAG_COMPILER],
  767. [AC_REQUIRE([AC_PROG_CC])dnl
  768. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  769. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  770. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  771. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  772. # If no C compiler was specified, use CC.
  773. LTCC=${LTCC-"$CC"}
  774. # If no C compiler flags were specified, use CFLAGS.
  775. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  776. # Allow CC to be a program name with arguments.
  777. compiler=$CC
  778. ])# _LT_TAG_COMPILER
  779. # _LT_COMPILER_BOILERPLATE
  780. # ------------------------
  781. # Check for compiler boilerplate output or warnings with
  782. # the simple compiler test code.
  783. m4_defun([_LT_COMPILER_BOILERPLATE],
  784. [m4_require([_LT_DECL_SED])dnl
  785. ac_outfile=conftest.$ac_objext
  786. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  787. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  788. _lt_compiler_boilerplate=`cat conftest.err`
  789. $RM conftest*
  790. ])# _LT_COMPILER_BOILERPLATE
  791. # _LT_LINKER_BOILERPLATE
  792. # ----------------------
  793. # Check for linker boilerplate output or warnings with
  794. # the simple link test code.
  795. m4_defun([_LT_LINKER_BOILERPLATE],
  796. [m4_require([_LT_DECL_SED])dnl
  797. ac_outfile=conftest.$ac_objext
  798. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  799. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  800. _lt_linker_boilerplate=`cat conftest.err`
  801. $RM -r conftest*
  802. ])# _LT_LINKER_BOILERPLATE
  803. # _LT_REQUIRED_DARWIN_CHECKS
  804. # -------------------------
  805. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  806. case $host_os in
  807. rhapsody* | darwin*)
  808. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  809. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  810. AC_CHECK_TOOL([LIPO], [lipo], [:])
  811. AC_CHECK_TOOL([OTOOL], [otool], [:])
  812. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  813. _LT_DECL([], [DSYMUTIL], [1],
  814. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  815. _LT_DECL([], [NMEDIT], [1],
  816. [Tool to change global to local symbols on Mac OS X])
  817. _LT_DECL([], [LIPO], [1],
  818. [Tool to manipulate fat objects and archives on Mac OS X])
  819. _LT_DECL([], [OTOOL], [1],
  820. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  821. _LT_DECL([], [OTOOL64], [1],
  822. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  823. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  824. [lt_cv_apple_cc_single_mod=no
  825. if test -z "$LT_MULTI_MODULE"; then
  826. # By default we will add the -single_module flag. You can override
  827. # by either setting the environment variable LT_MULTI_MODULE
  828. # non-empty at configure time, or by adding -multi_module to the
  829. # link flags.
  830. rm -rf libconftest.dylib*
  831. echo "int foo(void){return 1;}" > conftest.c
  832. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  833. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  834. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  835. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  836. _lt_result=$?
  837. # If there is a non-empty error log, and "single_module"
  838. # appears in it, assume the flag caused a linker warning
  839. if test -s conftest.err && $GREP single_module conftest.err; then
  840. cat conftest.err >&AS_MESSAGE_LOG_FD
  841. # Otherwise, if the output was created with a 0 exit code from
  842. # the compiler, it worked.
  843. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  844. lt_cv_apple_cc_single_mod=yes
  845. else
  846. cat conftest.err >&AS_MESSAGE_LOG_FD
  847. fi
  848. rm -rf libconftest.dylib*
  849. rm -f conftest.*
  850. fi])
  851. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  852. [lt_cv_ld_exported_symbols_list],
  853. [lt_cv_ld_exported_symbols_list=no
  854. save_LDFLAGS=$LDFLAGS
  855. echo "_main" > conftest.sym
  856. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  857. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  858. [lt_cv_ld_exported_symbols_list=yes],
  859. [lt_cv_ld_exported_symbols_list=no])
  860. LDFLAGS=$save_LDFLAGS
  861. ])
  862. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  863. [lt_cv_ld_force_load=no
  864. cat > conftest.c << _LT_EOF
  865. int forced_loaded() { return 2;}
  866. _LT_EOF
  867. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  868. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  869. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  870. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  871. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  872. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  873. cat > conftest.c << _LT_EOF
  874. int main() { return 0;}
  875. _LT_EOF
  876. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  877. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  878. _lt_result=$?
  879. if test -s conftest.err && $GREP force_load conftest.err; then
  880. cat conftest.err >&AS_MESSAGE_LOG_FD
  881. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  882. lt_cv_ld_force_load=yes
  883. else
  884. cat conftest.err >&AS_MESSAGE_LOG_FD
  885. fi
  886. rm -f conftest.err libconftest.a conftest conftest.c
  887. rm -rf conftest.dSYM
  888. ])
  889. case $host_os in
  890. rhapsody* | darwin1.[[012]])
  891. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  892. darwin1.*)
  893. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  894. darwin*) # darwin 5.x on
  895. # if running on 10.5 or later, the deployment target defaults
  896. # to the OS version, if on x86, and 10.4, the deployment
  897. # target defaults to 10.4. Don't you love it?
  898. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  899. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  900. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  901. 10.[[012]]*)
  902. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  903. 10.*)
  904. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  905. esac
  906. ;;
  907. esac
  908. if test yes = "$lt_cv_apple_cc_single_mod"; then
  909. _lt_dar_single_mod='$single_module'
  910. fi
  911. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  912. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  913. else
  914. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  915. fi
  916. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  917. _lt_dsymutil='~$DSYMUTIL $lib || :'
  918. else
  919. _lt_dsymutil=
  920. fi
  921. ;;
  922. esac
  923. ])
  924. # _LT_DARWIN_LINKER_FEATURES([TAG])
  925. # ---------------------------------
  926. # Checks for linker and compiler features on darwin
  927. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  928. [
  929. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  930. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  931. _LT_TAGVAR(hardcode_direct, $1)=no
  932. _LT_TAGVAR(hardcode_automatic, $1)=yes
  933. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  934. if test yes = "$lt_cv_ld_force_load"; then
  935. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  936. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  937. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  938. else
  939. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  940. fi
  941. _LT_TAGVAR(link_all_deplibs, $1)=yes
  942. _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  943. case $cc_basename in
  944. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  945. *) _lt_dar_can_shared=$GCC ;;
  946. esac
  947. if test yes = "$_lt_dar_can_shared"; then
  948. output_verbose_link_cmd=func_echo_all
  949. _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"
  950. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  951. _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"
  952. _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"
  953. m4_if([$1], [CXX],
  954. [ if test yes != "$lt_cv_apple_cc_single_mod"; then
  955. _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"
  956. _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"
  957. fi
  958. ],[])
  959. else
  960. _LT_TAGVAR(ld_shlibs, $1)=no
  961. fi
  962. ])
  963. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  964. # ----------------------------------
  965. # Links a minimal program and checks the executable
  966. # for the system default hardcoded library path. In most cases,
  967. # this is /usr/lib:/lib, but when the MPI compilers are used
  968. # the location of the communication and MPI libs are included too.
  969. # If we don't find anything, use the default library path according
  970. # to the aix ld manual.
  971. # Store the results from the different compilers for each TAGNAME.
  972. # Allow to override them for all tags through lt_cv_aix_libpath.
  973. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  974. [m4_require([_LT_DECL_SED])dnl
  975. if test set = "${lt_cv_aix_libpath+set}"; then
  976. aix_libpath=$lt_cv_aix_libpath
  977. else
  978. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  979. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  980. lt_aix_libpath_sed='[
  981. /Import File Strings/,/^$/ {
  982. /^0/ {
  983. s/^0 *\([^ ]*\) *$/\1/
  984. p
  985. }
  986. }]'
  987. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  988. # Check for a 64-bit object if we didn't find anything.
  989. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  990. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  991. fi],[])
  992. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  993. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  994. fi
  995. ])
  996. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  997. fi
  998. ])# _LT_SYS_MODULE_PATH_AIX
  999. # _LT_SHELL_INIT(ARG)
  1000. # -------------------
  1001. m4_define([_LT_SHELL_INIT],
  1002. [m4_divert_text([M4SH-INIT], [$1
  1003. ])])# _LT_SHELL_INIT
  1004. # _LT_PROG_ECHO_BACKSLASH
  1005. # -----------------------
  1006. # Find how we can fake an echo command that does not interpret backslash.
  1007. # In particular, with Autoconf 2.60 or later we add some code to the start
  1008. # of the generated configure script that will find a shell with a builtin
  1009. # printf (that we can use as an echo command).
  1010. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1011. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1012. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1013. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1014. AC_MSG_CHECKING([how to print strings])
  1015. # Test print first, because it will be a builtin if present.
  1016. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1017. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1018. ECHO='print -r --'
  1019. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1020. ECHO='printf %s\n'
  1021. else
  1022. # Use this function as a fallback that always works.
  1023. func_fallback_echo ()
  1024. {
  1025. eval 'cat <<_LTECHO_EOF
  1026. $[]1
  1027. _LTECHO_EOF'
  1028. }
  1029. ECHO='func_fallback_echo'
  1030. fi
  1031. # func_echo_all arg...
  1032. # Invoke $ECHO with all args, space-separated.
  1033. func_echo_all ()
  1034. {
  1035. $ECHO "$*"
  1036. }
  1037. case $ECHO in
  1038. printf*) AC_MSG_RESULT([printf]) ;;
  1039. print*) AC_MSG_RESULT([print -r]) ;;
  1040. *) AC_MSG_RESULT([cat]) ;;
  1041. esac
  1042. m4_ifdef([_AS_DETECT_SUGGESTED],
  1043. [_AS_DETECT_SUGGESTED([
  1044. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1045. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1046. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1047. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1048. PATH=/empty FPATH=/empty; export PATH FPATH
  1049. test "X`printf %s $ECHO`" = "X$ECHO" \
  1050. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1051. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1052. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1053. ])# _LT_PROG_ECHO_BACKSLASH
  1054. # _LT_WITH_SYSROOT
  1055. # ----------------
  1056. AC_DEFUN([_LT_WITH_SYSROOT],
  1057. [AC_MSG_CHECKING([for sysroot])
  1058. AC_ARG_WITH([sysroot],
  1059. [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1060. [Search for dependent libraries within DIR (or the compiler's sysroot
  1061. if not specified).])],
  1062. [], [with_sysroot=no])
  1063. dnl lt_sysroot will always be passed unquoted. We quote it here
  1064. dnl in case the user passed a directory name.
  1065. lt_sysroot=
  1066. case $with_sysroot in #(
  1067. yes)
  1068. if test yes = "$GCC"; then
  1069. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1070. fi
  1071. ;; #(
  1072. /*)
  1073. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1074. ;; #(
  1075. no|'')
  1076. ;; #(
  1077. *)
  1078. AC_MSG_RESULT([$with_sysroot])
  1079. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1080. ;;
  1081. esac
  1082. AC_MSG_RESULT([${lt_sysroot:-no}])
  1083. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1084. [dependent libraries, and where our libraries should be installed.])])
  1085. # _LT_ENABLE_LOCK
  1086. # ---------------
  1087. m4_defun([_LT_ENABLE_LOCK],
  1088. [AC_ARG_ENABLE([libtool-lock],
  1089. [AS_HELP_STRING([--disable-libtool-lock],
  1090. [avoid locking (might break parallel builds)])])
  1091. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1092. # Some flags need to be propagated to the compiler or linker for good
  1093. # libtool support.
  1094. case $host in
  1095. ia64-*-hpux*)
  1096. # Find out what ABI is being produced by ac_compile, and set mode
  1097. # options accordingly.
  1098. echo 'int i;' > conftest.$ac_ext
  1099. if AC_TRY_EVAL(ac_compile); then
  1100. case `/usr/bin/file conftest.$ac_objext` in
  1101. *ELF-32*)
  1102. HPUX_IA64_MODE=32
  1103. ;;
  1104. *ELF-64*)
  1105. HPUX_IA64_MODE=64
  1106. ;;
  1107. esac
  1108. fi
  1109. rm -rf conftest*
  1110. ;;
  1111. *-*-irix6*)
  1112. # Find out what ABI is being produced by ac_compile, and set linker
  1113. # options accordingly.
  1114. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1115. if AC_TRY_EVAL(ac_compile); then
  1116. if test yes = "$lt_cv_prog_gnu_ld"; then
  1117. case `/usr/bin/file conftest.$ac_objext` in
  1118. *32-bit*)
  1119. LD="${LD-ld} -melf32bsmip"
  1120. ;;
  1121. *N32*)
  1122. LD="${LD-ld} -melf32bmipn32"
  1123. ;;
  1124. *64-bit*)
  1125. LD="${LD-ld} -melf64bmip"
  1126. ;;
  1127. esac
  1128. else
  1129. case `/usr/bin/file conftest.$ac_objext` in
  1130. *32-bit*)
  1131. LD="${LD-ld} -32"
  1132. ;;
  1133. *N32*)
  1134. LD="${LD-ld} -n32"
  1135. ;;
  1136. *64-bit*)
  1137. LD="${LD-ld} -64"
  1138. ;;
  1139. esac
  1140. fi
  1141. fi
  1142. rm -rf conftest*
  1143. ;;
  1144. mips64*-*linux*)
  1145. # Find out what ABI is being produced by ac_compile, and set linker
  1146. # options accordingly.
  1147. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1148. if AC_TRY_EVAL(ac_compile); then
  1149. emul=elf
  1150. case `/usr/bin/file conftest.$ac_objext` in
  1151. *32-bit*)
  1152. emul="${emul}32"
  1153. ;;
  1154. *64-bit*)
  1155. emul="${emul}64"
  1156. ;;
  1157. esac
  1158. case `/usr/bin/file conftest.$ac_objext` in
  1159. *MSB*)
  1160. emul="${emul}btsmip"
  1161. ;;
  1162. *LSB*)
  1163. emul="${emul}ltsmip"
  1164. ;;
  1165. esac
  1166. case `/usr/bin/file conftest.$ac_objext` in
  1167. *N32*)
  1168. emul="${emul}n32"
  1169. ;;
  1170. esac
  1171. LD="${LD-ld} -m $emul"
  1172. fi
  1173. rm -rf conftest*
  1174. ;;
  1175. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1176. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1177. # Find out what ABI is being produced by ac_compile, and set linker
  1178. # options accordingly. Note that the listed cases only cover the
  1179. # situations where additional linker options are needed (such as when
  1180. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  1181. # vice versa); the common cases where no linker options are needed do
  1182. # not appear in the list.
  1183. echo 'int i;' > conftest.$ac_ext
  1184. if AC_TRY_EVAL(ac_compile); then
  1185. case `/usr/bin/file conftest.o` in
  1186. *32-bit*)
  1187. case $host in
  1188. x86_64-*kfreebsd*-gnu)
  1189. LD="${LD-ld} -m elf_i386_fbsd"
  1190. ;;
  1191. x86_64-*linux*)
  1192. case `/usr/bin/file conftest.o` in
  1193. *x86-64*)
  1194. LD="${LD-ld} -m elf32_x86_64"
  1195. ;;
  1196. *)
  1197. LD="${LD-ld} -m elf_i386"
  1198. ;;
  1199. esac
  1200. ;;
  1201. powerpc64le-*linux*)
  1202. LD="${LD-ld} -m elf32lppclinux"
  1203. ;;
  1204. powerpc64-*linux*)
  1205. LD="${LD-ld} -m elf32ppclinux"
  1206. ;;
  1207. s390x-*linux*)
  1208. LD="${LD-ld} -m elf_s390"
  1209. ;;
  1210. sparc64-*linux*)
  1211. LD="${LD-ld} -m elf32_sparc"
  1212. ;;
  1213. esac
  1214. ;;
  1215. *64-bit*)
  1216. case $host in
  1217. x86_64-*kfreebsd*-gnu)
  1218. LD="${LD-ld} -m elf_x86_64_fbsd"
  1219. ;;
  1220. x86_64-*linux*)
  1221. LD="${LD-ld} -m elf_x86_64"
  1222. ;;
  1223. powerpcle-*linux*)
  1224. LD="${LD-ld} -m elf64lppc"
  1225. ;;
  1226. powerpc-*linux*)
  1227. LD="${LD-ld} -m elf64ppc"
  1228. ;;
  1229. s390*-*linux*|s390*-*tpf*)
  1230. LD="${LD-ld} -m elf64_s390"
  1231. ;;
  1232. sparc*-*linux*)
  1233. LD="${LD-ld} -m elf64_sparc"
  1234. ;;
  1235. esac
  1236. ;;
  1237. esac
  1238. fi
  1239. rm -rf conftest*
  1240. ;;
  1241. *-*-sco3.2v5*)
  1242. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1243. SAVE_CFLAGS=$CFLAGS
  1244. CFLAGS="$CFLAGS -belf"
  1245. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1246. [AC_LANG_PUSH(C)
  1247. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1248. AC_LANG_POP])
  1249. if test yes != "$lt_cv_cc_needs_belf"; then
  1250. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1251. CFLAGS=$SAVE_CFLAGS
  1252. fi
  1253. ;;
  1254. *-*solaris*)
  1255. # Find out what ABI is being produced by ac_compile, and set linker
  1256. # options accordingly.
  1257. echo 'int i;' > conftest.$ac_ext
  1258. if AC_TRY_EVAL(ac_compile); then
  1259. case `/usr/bin/file conftest.o` in
  1260. *64-bit*)
  1261. case $lt_cv_prog_gnu_ld in
  1262. yes*)
  1263. case $host in
  1264. i?86-*-solaris*|x86_64-*-solaris*)
  1265. LD="${LD-ld} -m elf_x86_64"
  1266. ;;
  1267. sparc*-*-solaris*)
  1268. LD="${LD-ld} -m elf64_sparc"
  1269. ;;
  1270. esac
  1271. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1272. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1273. LD=${LD-ld}_sol2
  1274. fi
  1275. ;;
  1276. *)
  1277. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1278. LD="${LD-ld} -64"
  1279. fi
  1280. ;;
  1281. esac
  1282. ;;
  1283. esac
  1284. fi
  1285. rm -rf conftest*
  1286. ;;
  1287. esac
  1288. need_locks=$enable_libtool_lock
  1289. ])# _LT_ENABLE_LOCK
  1290. # _LT_PROG_AR
  1291. # -----------
  1292. m4_defun([_LT_PROG_AR],
  1293. [AC_CHECK_TOOLS(AR, [ar], false)
  1294. : ${AR=ar}
  1295. : ${AR_FLAGS=cru}
  1296. _LT_DECL([], [AR], [1], [The archiver])
  1297. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1298. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1299. [lt_cv_ar_at_file=no
  1300. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1301. [echo conftest.$ac_objext > conftest.lst
  1302. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1303. AC_TRY_EVAL([lt_ar_try])
  1304. if test 0 -eq "$ac_status"; then
  1305. # Ensure the archiver fails upon bogus file names.
  1306. rm -f conftest.$ac_objext libconftest.a
  1307. AC_TRY_EVAL([lt_ar_try])
  1308. if test 0 -ne "$ac_status"; then
  1309. lt_cv_ar_at_file=@
  1310. fi
  1311. fi
  1312. rm -f conftest.* libconftest.a
  1313. ])
  1314. ])
  1315. if test no = "$lt_cv_ar_at_file"; then
  1316. archiver_list_spec=
  1317. else
  1318. archiver_list_spec=$lt_cv_ar_at_file
  1319. fi
  1320. _LT_DECL([], [archiver_list_spec], [1],
  1321. [How to feed a file listing to the archiver])
  1322. ])# _LT_PROG_AR
  1323. # _LT_CMD_OLD_ARCHIVE
  1324. # -------------------
  1325. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1326. [_LT_PROG_AR
  1327. AC_CHECK_TOOL(STRIP, strip, :)
  1328. test -z "$STRIP" && STRIP=:
  1329. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1330. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1331. test -z "$RANLIB" && RANLIB=:
  1332. _LT_DECL([], [RANLIB], [1],
  1333. [Commands used to install an old-style archive])
  1334. # Determine commands to create old-style static archives.
  1335. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1336. old_postinstall_cmds='chmod 644 $oldlib'
  1337. old_postuninstall_cmds=
  1338. if test -n "$RANLIB"; then
  1339. case $host_os in
  1340. bitrig* | openbsd*)
  1341. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1342. ;;
  1343. *)
  1344. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1345. ;;
  1346. esac
  1347. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1348. fi
  1349. case $host_os in
  1350. darwin*)
  1351. lock_old_archive_extraction=yes ;;
  1352. *)
  1353. lock_old_archive_extraction=no ;;
  1354. esac
  1355. _LT_DECL([], [old_postinstall_cmds], [2])
  1356. _LT_DECL([], [old_postuninstall_cmds], [2])
  1357. _LT_TAGDECL([], [old_archive_cmds], [2],
  1358. [Commands used to build an old-style archive])
  1359. _LT_DECL([], [lock_old_archive_extraction], [0],
  1360. [Whether to use a lock for old archive extraction])
  1361. ])# _LT_CMD_OLD_ARCHIVE
  1362. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1363. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1364. # ----------------------------------------------------------------
  1365. # Check whether the given compiler option works
  1366. AC_DEFUN([_LT_COMPILER_OPTION],
  1367. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1368. m4_require([_LT_DECL_SED])dnl
  1369. AC_CACHE_CHECK([$1], [$2],
  1370. [$2=no
  1371. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1373. lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
  1374. # Insert the option either (1) after the last *FLAGS variable, or
  1375. # (2) before a word containing "conftest.", or (3) at the end.
  1376. # Note that $ac_compile itself does not contain backslashes and begins
  1377. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1378. # The option is referenced via a variable to avoid confusing sed.
  1379. lt_compile=`echo "$ac_compile" | $SED \
  1380. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1381. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1382. -e 's:$: $lt_compiler_flag:'`
  1383. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1384. (eval "$lt_compile" 2>conftest.err)
  1385. ac_status=$?
  1386. cat conftest.err >&AS_MESSAGE_LOG_FD
  1387. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1388. if (exit $ac_status) && test -s "$ac_outfile"; then
  1389. # The compiler can only warn and ignore the option if not recognized
  1390. # So say no if there are warnings other than the usual output.
  1391. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1392. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1393. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1394. $2=yes
  1395. fi
  1396. fi
  1397. $RM conftest*
  1398. ])
  1399. if test yes = "[$]$2"; then
  1400. m4_if([$5], , :, [$5])
  1401. else
  1402. m4_if([$6], , :, [$6])
  1403. fi
  1404. ])# _LT_COMPILER_OPTION
  1405. # Old name:
  1406. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1407. dnl aclocal-1.4 backwards compatibility:
  1408. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1409. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1410. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1411. # ----------------------------------------------------
  1412. # Check whether the given linker option works
  1413. AC_DEFUN([_LT_LINKER_OPTION],
  1414. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1415. m4_require([_LT_DECL_SED])dnl
  1416. AC_CACHE_CHECK([$1], [$2],
  1417. [$2=no
  1418. save_LDFLAGS=$LDFLAGS
  1419. LDFLAGS="$LDFLAGS $3"
  1420. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1421. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1422. # The linker can only warn and ignore the option if not recognized
  1423. # So say no if there are warnings
  1424. if test -s conftest.err; then
  1425. # Append any errors to the config.log.
  1426. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1427. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1428. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1429. if diff conftest.exp conftest.er2 >/dev/null; then
  1430. $2=yes
  1431. fi
  1432. else
  1433. $2=yes
  1434. fi
  1435. fi
  1436. $RM -r conftest*
  1437. LDFLAGS=$save_LDFLAGS
  1438. ])
  1439. if test yes = "[$]$2"; then
  1440. m4_if([$4], , :, [$4])
  1441. else
  1442. m4_if([$5], , :, [$5])
  1443. fi
  1444. ])# _LT_LINKER_OPTION
  1445. # Old name:
  1446. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1447. dnl aclocal-1.4 backwards compatibility:
  1448. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1449. # LT_CMD_MAX_LEN
  1450. #---------------
  1451. AC_DEFUN([LT_CMD_MAX_LEN],
  1452. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1453. # find the maximum length of command line arguments
  1454. AC_MSG_CHECKING([the maximum length of command line arguments])
  1455. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1456. i=0
  1457. teststring=ABCD
  1458. case $build_os in
  1459. msdosdjgpp*)
  1460. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1461. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1462. # during glob expansion). Even if it were fixed, the result of this
  1463. # check would be larger than it should be.
  1464. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1465. ;;
  1466. gnu*)
  1467. # Under GNU Hurd, this test is not required because there is
  1468. # no limit to the length of command line arguments.
  1469. # Libtool will interpret -1 as no limit whatsoever
  1470. lt_cv_sys_max_cmd_len=-1;
  1471. ;;
  1472. cygwin* | mingw* | cegcc*)
  1473. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1474. # about 5 minutes as the teststring grows exponentially.
  1475. # Worse, since 9x/ME are not pre-emptively multitasking,
  1476. # you end up with a "frozen" computer, even though with patience
  1477. # the test eventually succeeds (with a max line length of 256k).
  1478. # Instead, let's just punt: use the minimum linelength reported by
  1479. # all of the supported platforms: 8192 (on NT/2K/XP).
  1480. lt_cv_sys_max_cmd_len=8192;
  1481. ;;
  1482. mint*)
  1483. # On MiNT this can take a long time and run out of memory.
  1484. lt_cv_sys_max_cmd_len=8192;
  1485. ;;
  1486. amigaos*)
  1487. # On AmigaOS with pdksh, this test takes hours, literally.
  1488. # So we just punt and use a minimum line length of 8192.
  1489. lt_cv_sys_max_cmd_len=8192;
  1490. ;;
  1491. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  1492. # This has been around since 386BSD, at least. Likely further.
  1493. if test -x /sbin/sysctl; then
  1494. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1495. elif test -x /usr/sbin/sysctl; then
  1496. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1497. else
  1498. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1499. fi
  1500. # And add a safety zone
  1501. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1502. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1503. ;;
  1504. interix*)
  1505. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1506. lt_cv_sys_max_cmd_len=196608
  1507. ;;
  1508. os2*)
  1509. # The test takes a long time on OS/2.
  1510. lt_cv_sys_max_cmd_len=8192
  1511. ;;
  1512. osf*)
  1513. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1514. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1515. # nice to cause kernel panics so lets avoid the loop below.
  1516. # First set a reasonable default.
  1517. lt_cv_sys_max_cmd_len=16384
  1518. #
  1519. if test -x /sbin/sysconfig; then
  1520. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1521. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1522. esac
  1523. fi
  1524. ;;
  1525. sco3.2v5*)
  1526. lt_cv_sys_max_cmd_len=102400
  1527. ;;
  1528. sysv5* | sco5v6* | sysv4.2uw2*)
  1529. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1530. if test -n "$kargmax"; then
  1531. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1532. else
  1533. lt_cv_sys_max_cmd_len=32768
  1534. fi
  1535. ;;
  1536. *)
  1537. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1538. if test -n "$lt_cv_sys_max_cmd_len" && \
  1539. test undefined != "$lt_cv_sys_max_cmd_len"; then
  1540. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1541. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1542. else
  1543. # Make teststring a little bigger before we do anything with it.
  1544. # a 1K string should be a reasonable start.
  1545. for i in 1 2 3 4 5 6 7 8; do
  1546. teststring=$teststring$teststring
  1547. done
  1548. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1549. # If test is not a shell built-in, we'll probably end up computing a
  1550. # maximum length that is only half of the actual maximum length, but
  1551. # we can't tell.
  1552. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  1553. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1554. test 17 != "$i" # 1/2 MB should be enough
  1555. do
  1556. i=`expr $i + 1`
  1557. teststring=$teststring$teststring
  1558. done
  1559. # Only check the string length outside the loop.
  1560. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1561. teststring=
  1562. # Add a significant safety factor because C++ compilers can tack on
  1563. # massive amounts of additional arguments before passing them to the
  1564. # linker. It appears as though 1/2 is a usable value.
  1565. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1566. fi
  1567. ;;
  1568. esac
  1569. ])
  1570. if test -n "$lt_cv_sys_max_cmd_len"; then
  1571. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1572. else
  1573. AC_MSG_RESULT(none)
  1574. fi
  1575. max_cmd_len=$lt_cv_sys_max_cmd_len
  1576. _LT_DECL([], [max_cmd_len], [0],
  1577. [What is the maximum length of a command?])
  1578. ])# LT_CMD_MAX_LEN
  1579. # Old name:
  1580. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1581. dnl aclocal-1.4 backwards compatibility:
  1582. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1583. # _LT_HEADER_DLFCN
  1584. # ----------------
  1585. m4_defun([_LT_HEADER_DLFCN],
  1586. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1587. ])# _LT_HEADER_DLFCN
  1588. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1589. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1590. # ----------------------------------------------------------------
  1591. m4_defun([_LT_TRY_DLOPEN_SELF],
  1592. [m4_require([_LT_HEADER_DLFCN])dnl
  1593. if test yes = "$cross_compiling"; then :
  1594. [$4]
  1595. else
  1596. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1597. lt_status=$lt_dlunknown
  1598. cat > conftest.$ac_ext <<_LT_EOF
  1599. [#line $LINENO "configure"
  1600. #include "confdefs.h"
  1601. #if HAVE_DLFCN_H
  1602. #include <dlfcn.h>
  1603. #endif
  1604. #include <stdio.h>
  1605. #ifdef RTLD_GLOBAL
  1606. # define LT_DLGLOBAL RTLD_GLOBAL
  1607. #else
  1608. # ifdef DL_GLOBAL
  1609. # define LT_DLGLOBAL DL_GLOBAL
  1610. # else
  1611. # define LT_DLGLOBAL 0
  1612. # endif
  1613. #endif
  1614. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1615. find out it does not work in some platform. */
  1616. #ifndef LT_DLLAZY_OR_NOW
  1617. # ifdef RTLD_LAZY
  1618. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1619. # else
  1620. # ifdef DL_LAZY
  1621. # define LT_DLLAZY_OR_NOW DL_LAZY
  1622. # else
  1623. # ifdef RTLD_NOW
  1624. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1625. # else
  1626. # ifdef DL_NOW
  1627. # define LT_DLLAZY_OR_NOW DL_NOW
  1628. # else
  1629. # define LT_DLLAZY_OR_NOW 0
  1630. # endif
  1631. # endif
  1632. # endif
  1633. # endif
  1634. #endif
  1635. /* When -fvisbility=hidden is used, assume the code has been annotated
  1636. correspondingly for the symbols needed. */
  1637. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1638. int fnord () __attribute__((visibility("default")));
  1639. #endif
  1640. int fnord () { return 42; }
  1641. int main ()
  1642. {
  1643. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1644. int status = $lt_dlunknown;
  1645. if (self)
  1646. {
  1647. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1648. else
  1649. {
  1650. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1651. else puts (dlerror ());
  1652. }
  1653. /* dlclose (self); */
  1654. }
  1655. else
  1656. puts (dlerror ());
  1657. return status;
  1658. }]
  1659. _LT_EOF
  1660. if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  1661. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1662. lt_status=$?
  1663. case x$lt_status in
  1664. x$lt_dlno_uscore) $1 ;;
  1665. x$lt_dlneed_uscore) $2 ;;
  1666. x$lt_dlunknown|x*) $3 ;;
  1667. esac
  1668. else :
  1669. # compilation failed
  1670. $3
  1671. fi
  1672. fi
  1673. rm -fr conftest*
  1674. ])# _LT_TRY_DLOPEN_SELF
  1675. # LT_SYS_DLOPEN_SELF
  1676. # ------------------
  1677. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1678. [m4_require([_LT_HEADER_DLFCN])dnl
  1679. if test yes != "$enable_dlopen"; then
  1680. enable_dlopen=unknown
  1681. enable_dlopen_self=unknown
  1682. enable_dlopen_self_static=unknown
  1683. else
  1684. lt_cv_dlopen=no
  1685. lt_cv_dlopen_libs=
  1686. case $host_os in
  1687. beos*)
  1688. lt_cv_dlopen=load_add_on
  1689. lt_cv_dlopen_libs=
  1690. lt_cv_dlopen_self=yes
  1691. ;;
  1692. mingw* | pw32* | cegcc*)
  1693. lt_cv_dlopen=LoadLibrary
  1694. lt_cv_dlopen_libs=
  1695. ;;
  1696. cygwin*)
  1697. lt_cv_dlopen=dlopen
  1698. lt_cv_dlopen_libs=
  1699. ;;
  1700. darwin*)
  1701. # if libdl is installed we need to link against it
  1702. AC_CHECK_LIB([dl], [dlopen],
  1703. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  1704. lt_cv_dlopen=dyld
  1705. lt_cv_dlopen_libs=
  1706. lt_cv_dlopen_self=yes
  1707. ])
  1708. ;;
  1709. tpf*)
  1710. # Don't try to run any link tests for TPF. We know it's impossible
  1711. # because TPF is a cross-compiler, and we know how we open DSOs.
  1712. lt_cv_dlopen=dlopen
  1713. lt_cv_dlopen_libs=
  1714. lt_cv_dlopen_self=no
  1715. ;;
  1716. *)
  1717. AC_CHECK_FUNC([shl_load],
  1718. [lt_cv_dlopen=shl_load],
  1719. [AC_CHECK_LIB([dld], [shl_load],
  1720. [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  1721. [AC_CHECK_FUNC([dlopen],
  1722. [lt_cv_dlopen=dlopen],
  1723. [AC_CHECK_LIB([dl], [dlopen],
  1724. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  1725. [AC_CHECK_LIB([svld], [dlopen],
  1726. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  1727. [AC_CHECK_LIB([dld], [dld_link],
  1728. [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  1729. ])
  1730. ])
  1731. ])
  1732. ])
  1733. ])
  1734. ;;
  1735. esac
  1736. if test no = "$lt_cv_dlopen"; then
  1737. enable_dlopen=no
  1738. else
  1739. enable_dlopen=yes
  1740. fi
  1741. case $lt_cv_dlopen in
  1742. dlopen)
  1743. save_CPPFLAGS=$CPPFLAGS
  1744. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1745. save_LDFLAGS=$LDFLAGS
  1746. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1747. save_LIBS=$LIBS
  1748. LIBS="$lt_cv_dlopen_libs $LIBS"
  1749. AC_CACHE_CHECK([whether a program can dlopen itself],
  1750. lt_cv_dlopen_self, [dnl
  1751. _LT_TRY_DLOPEN_SELF(
  1752. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1753. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1754. ])
  1755. if test yes = "$lt_cv_dlopen_self"; then
  1756. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1757. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1758. lt_cv_dlopen_self_static, [dnl
  1759. _LT_TRY_DLOPEN_SELF(
  1760. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1761. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1762. ])
  1763. fi
  1764. CPPFLAGS=$save_CPPFLAGS
  1765. LDFLAGS=$save_LDFLAGS
  1766. LIBS=$save_LIBS
  1767. ;;
  1768. esac
  1769. case $lt_cv_dlopen_self in
  1770. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1771. *) enable_dlopen_self=unknown ;;
  1772. esac
  1773. case $lt_cv_dlopen_self_static in
  1774. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1775. *) enable_dlopen_self_static=unknown ;;
  1776. esac
  1777. fi
  1778. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1779. [Whether dlopen is supported])
  1780. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1781. [Whether dlopen of programs is supported])
  1782. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1783. [Whether dlopen of statically linked programs is supported])
  1784. ])# LT_SYS_DLOPEN_SELF
  1785. # Old name:
  1786. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1787. dnl aclocal-1.4 backwards compatibility:
  1788. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1789. # _LT_COMPILER_C_O([TAGNAME])
  1790. # ---------------------------
  1791. # Check to see if options -c and -o are simultaneously supported by compiler.
  1792. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1793. m4_defun([_LT_COMPILER_C_O],
  1794. [m4_require([_LT_DECL_SED])dnl
  1795. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1796. m4_require([_LT_TAG_COMPILER])dnl
  1797. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1798. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1799. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1800. $RM -r conftest 2>/dev/null
  1801. mkdir conftest
  1802. cd conftest
  1803. mkdir out
  1804. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1805. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1806. # Insert the option either (1) after the last *FLAGS variable, or
  1807. # (2) before a word containing "conftest.", or (3) at the end.
  1808. # Note that $ac_compile itself does not contain backslashes and begins
  1809. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1810. lt_compile=`echo "$ac_compile" | $SED \
  1811. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1812. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1813. -e 's:$: $lt_compiler_flag:'`
  1814. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1815. (eval "$lt_compile" 2>out/conftest.err)
  1816. ac_status=$?
  1817. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1819. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1820. then
  1821. # The compiler can only warn and ignore the option if not recognized
  1822. # So say no if there are warnings
  1823. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1824. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1825. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1826. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1827. fi
  1828. fi
  1829. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1830. $RM conftest*
  1831. # SGI C++ compiler will create directory out/ii_files/ for
  1832. # template instantiation
  1833. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1834. $RM out/* && rmdir out
  1835. cd ..
  1836. $RM -r conftest
  1837. $RM conftest*
  1838. ])
  1839. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1840. [Does compiler simultaneously support -c and -o options?])
  1841. ])# _LT_COMPILER_C_O
  1842. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1843. # ----------------------------------
  1844. # Check to see if we can do hard links to lock some files if needed
  1845. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1846. [m4_require([_LT_ENABLE_LOCK])dnl
  1847. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1848. _LT_COMPILER_C_O([$1])
  1849. hard_links=nottested
  1850. if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  1851. # do not overwrite the value of need_locks provided by the user
  1852. AC_MSG_CHECKING([if we can lock with hard links])
  1853. hard_links=yes
  1854. $RM conftest*
  1855. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1856. touch conftest.a
  1857. ln conftest.a conftest.b 2>&5 || hard_links=no
  1858. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1859. AC_MSG_RESULT([$hard_links])
  1860. if test no = "$hard_links"; then
  1861. AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  1862. need_locks=warn
  1863. fi
  1864. else
  1865. need_locks=no
  1866. fi
  1867. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1868. ])# _LT_COMPILER_FILE_LOCKS
  1869. # _LT_CHECK_OBJDIR
  1870. # ----------------
  1871. m4_defun([_LT_CHECK_OBJDIR],
  1872. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1873. [rm -f .libs 2>/dev/null
  1874. mkdir .libs 2>/dev/null
  1875. if test -d .libs; then
  1876. lt_cv_objdir=.libs
  1877. else
  1878. # MS-DOS does not allow filenames that begin with a dot.
  1879. lt_cv_objdir=_libs
  1880. fi
  1881. rmdir .libs 2>/dev/null])
  1882. objdir=$lt_cv_objdir
  1883. _LT_DECL([], [objdir], [0],
  1884. [The name of the directory that contains temporary libtool files])dnl
  1885. m4_pattern_allow([LT_OBJDIR])dnl
  1886. AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  1887. [Define to the sub-directory where libtool stores uninstalled libraries.])
  1888. ])# _LT_CHECK_OBJDIR
  1889. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1890. # --------------------------------------
  1891. # Check hardcoding attributes.
  1892. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1893. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1894. _LT_TAGVAR(hardcode_action, $1)=
  1895. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1896. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1897. test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  1898. # We can hardcode non-existent directories.
  1899. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  1900. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1901. # have to relink, otherwise we might link with an installed library
  1902. # when we should be linking with a yet-to-be-installed one
  1903. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  1904. test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  1905. # Linking always hardcodes the temporary library directory.
  1906. _LT_TAGVAR(hardcode_action, $1)=relink
  1907. else
  1908. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1909. _LT_TAGVAR(hardcode_action, $1)=immediate
  1910. fi
  1911. else
  1912. # We cannot hardcode anything, or else we can only hardcode existing
  1913. # directories.
  1914. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1915. fi
  1916. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1917. if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  1918. test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  1919. # Fast installation is not supported
  1920. enable_fast_install=no
  1921. elif test yes = "$shlibpath_overrides_runpath" ||
  1922. test no = "$enable_shared"; then
  1923. # Fast installation is not necessary
  1924. enable_fast_install=needless
  1925. fi
  1926. _LT_TAGDECL([], [hardcode_action], [0],
  1927. [How to hardcode a shared library path into an executable])
  1928. ])# _LT_LINKER_HARDCODE_LIBPATH
  1929. # _LT_CMD_STRIPLIB
  1930. # ----------------
  1931. m4_defun([_LT_CMD_STRIPLIB],
  1932. [m4_require([_LT_DECL_EGREP])
  1933. striplib=
  1934. old_striplib=
  1935. AC_MSG_CHECKING([whether stripping libraries is possible])
  1936. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1937. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1938. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1939. AC_MSG_RESULT([yes])
  1940. else
  1941. # FIXME - insert some real tests, host_os isn't really good enough
  1942. case $host_os in
  1943. darwin*)
  1944. if test -n "$STRIP"; then
  1945. striplib="$STRIP -x"
  1946. old_striplib="$STRIP -S"
  1947. AC_MSG_RESULT([yes])
  1948. else
  1949. AC_MSG_RESULT([no])
  1950. fi
  1951. ;;
  1952. *)
  1953. AC_MSG_RESULT([no])
  1954. ;;
  1955. esac
  1956. fi
  1957. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1958. _LT_DECL([], [striplib], [1])
  1959. ])# _LT_CMD_STRIPLIB
  1960. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1961. # -----------------------------
  1962. # PORTME Fill in your ld.so characteristics
  1963. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1964. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1965. m4_require([_LT_DECL_EGREP])dnl
  1966. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1967. m4_require([_LT_DECL_OBJDUMP])dnl
  1968. m4_require([_LT_DECL_SED])dnl
  1969. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1970. AC_MSG_CHECKING([dynamic linker characteristics])
  1971. m4_if([$1],
  1972. [], [
  1973. if test yes = "$GCC"; then
  1974. case $host_os in
  1975. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  1976. *) lt_awk_arg='/^libraries:/' ;;
  1977. esac
  1978. case $host_os in
  1979. mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  1980. *) lt_sed_strip_eq='s|=/|/|g' ;;
  1981. esac
  1982. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1983. case $lt_search_path_spec in
  1984. *\;*)
  1985. # if the path contains ";" then we assume it to be the separator
  1986. # otherwise default to the standard path separator (i.e. ":") - it is
  1987. # assumed that no part of a normal pathname contains ";" but that should
  1988. # okay in the real world where ";" in dirpaths is itself problematic.
  1989. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1990. ;;
  1991. *)
  1992. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1993. ;;
  1994. esac
  1995. # Ok, now we have the path, separated by spaces, we can step through it
  1996. # and add multilib dir if necessary...
  1997. lt_tmp_lt_search_path_spec=
  1998. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1999. # ...but if some path component already ends with the multilib dir we assume
  2000. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  2001. case "$lt_multi_os_dir; $lt_search_path_spec " in
  2002. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  2003. lt_multi_os_dir=
  2004. ;;
  2005. esac
  2006. for lt_sys_path in $lt_search_path_spec; do
  2007. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2008. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2009. elif test -n "$lt_multi_os_dir"; then
  2010. test -d "$lt_sys_path" && \
  2011. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2012. fi
  2013. done
  2014. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2015. BEGIN {RS = " "; FS = "/|\n";} {
  2016. lt_foo = "";
  2017. lt_count = 0;
  2018. for (lt_i = NF; lt_i > 0; lt_i--) {
  2019. if ($lt_i != "" && $lt_i != ".") {
  2020. if ($lt_i == "..") {
  2021. lt_count++;
  2022. } else {
  2023. if (lt_count == 0) {
  2024. lt_foo = "/" $lt_i lt_foo;
  2025. } else {
  2026. lt_count--;
  2027. }
  2028. }
  2029. }
  2030. }
  2031. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2032. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2033. }'`
  2034. # AWK program above erroneously prepends '/' to C:/dos/paths
  2035. # for these hosts.
  2036. case $host_os in
  2037. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2038. $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2039. esac
  2040. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2041. else
  2042. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2043. fi])
  2044. library_names_spec=
  2045. libname_spec='lib$name'
  2046. soname_spec=
  2047. shrext_cmds=.so
  2048. postinstall_cmds=
  2049. postuninstall_cmds=
  2050. finish_cmds=
  2051. finish_eval=
  2052. shlibpath_var=
  2053. shlibpath_overrides_runpath=unknown
  2054. version_type=none
  2055. dynamic_linker="$host_os ld.so"
  2056. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2057. need_lib_prefix=unknown
  2058. hardcode_into_libs=no
  2059. # when you set need_version to no, make sure it does not cause -set_version
  2060. # flags to be left without arguments
  2061. need_version=unknown
  2062. case $host_os in
  2063. aix3*)
  2064. version_type=linux # correct to gnu/linux during the next big refactor
  2065. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2066. shlibpath_var=LIBPATH
  2067. # AIX 3 has no versioning support, so we append a major version to the name.
  2068. soname_spec='$libname$release$shared_ext$major'
  2069. ;;
  2070. aix[[4-9]]*)
  2071. version_type=linux # correct to gnu/linux during the next big refactor
  2072. need_lib_prefix=no
  2073. need_version=no
  2074. hardcode_into_libs=yes
  2075. if test ia64 = "$host_cpu"; then
  2076. # AIX 5 supports IA64
  2077. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2078. shlibpath_var=LD_LIBRARY_PATH
  2079. else
  2080. # With GCC up to 2.95.x, collect2 would create an import file
  2081. # for dependence libraries. The import file would start with
  2082. # the line '#! .'. This would cause the generated library to
  2083. # depend on '.', always an invalid library. This was fixed in
  2084. # development snapshots of GCC prior to 3.0.
  2085. case $host_os in
  2086. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2087. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2088. echo ' yes '
  2089. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2090. :
  2091. else
  2092. can_build_shared=no
  2093. fi
  2094. ;;
  2095. esac
  2096. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2097. # soname into executable. Probably we can add versioning support to
  2098. # collect2, so additional links can be useful in future.
  2099. if test yes = "$aix_use_runtimelinking"; then
  2100. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2101. # instead of lib<name>.a to let people know that these are not
  2102. # typical AIX shared libraries.
  2103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2104. else
  2105. # We preserve .a as extension for shared libraries through AIX4.2
  2106. # and later when we are not doing run time linking.
  2107. library_names_spec='$libname$release.a $libname.a'
  2108. soname_spec='$libname$release$shared_ext$major'
  2109. fi
  2110. shlibpath_var=LIBPATH
  2111. fi
  2112. ;;
  2113. amigaos*)
  2114. case $host_cpu in
  2115. powerpc)
  2116. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2117. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2119. ;;
  2120. m68k)
  2121. library_names_spec='$libname.ixlibrary $libname.a'
  2122. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2123. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
  2124. ;;
  2125. esac
  2126. ;;
  2127. beos*)
  2128. library_names_spec='$libname$shared_ext'
  2129. dynamic_linker="$host_os ld.so"
  2130. shlibpath_var=LIBRARY_PATH
  2131. ;;
  2132. bsdi[[45]]*)
  2133. version_type=linux # correct to gnu/linux during the next big refactor
  2134. need_version=no
  2135. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2136. soname_spec='$libname$release$shared_ext$major'
  2137. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2138. shlibpath_var=LD_LIBRARY_PATH
  2139. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2140. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2141. # the default ld.so.conf also contains /usr/contrib/lib and
  2142. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2143. # libtool to hard-code these into programs
  2144. ;;
  2145. cygwin* | mingw* | pw32* | cegcc*)
  2146. version_type=windows
  2147. shrext_cmds=.dll
  2148. need_version=no
  2149. need_lib_prefix=no
  2150. case $GCC,$cc_basename in
  2151. yes,*)
  2152. # gcc
  2153. library_names_spec='$libname.dll.a'
  2154. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2155. postinstall_cmds='base_file=`basename \$file`~
  2156. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2157. dldir=$destdir/`dirname \$dlpath`~
  2158. test -d \$dldir || mkdir -p \$dldir~
  2159. $install_prog $dir/$dlname \$dldir/$dlname~
  2160. chmod a+x \$dldir/$dlname~
  2161. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2162. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2163. fi'
  2164. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2165. dlpath=$dir/\$dldll~
  2166. $RM \$dlpath'
  2167. shlibpath_overrides_runpath=yes
  2168. case $host_os in
  2169. cygwin*)
  2170. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2171. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2172. m4_if([$1], [],[
  2173. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2174. ;;
  2175. mingw* | cegcc*)
  2176. # MinGW DLLs use traditional 'lib' prefix
  2177. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2178. ;;
  2179. pw32*)
  2180. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2181. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2182. ;;
  2183. esac
  2184. dynamic_linker='Win32 ld.exe'
  2185. ;;
  2186. *,cl*)
  2187. # Native MSVC
  2188. libname_spec='$name'
  2189. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2190. library_names_spec='$libname.dll.lib'
  2191. case $build_os in
  2192. mingw*)
  2193. sys_lib_search_path_spec=
  2194. lt_save_ifs=$IFS
  2195. IFS=';'
  2196. for lt_path in $LIB
  2197. do
  2198. IFS=$lt_save_ifs
  2199. # Let DOS variable expansion print the short 8.3 style file name.
  2200. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2201. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2202. done
  2203. IFS=$lt_save_ifs
  2204. # Convert to MSYS style.
  2205. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2206. ;;
  2207. cygwin*)
  2208. # Convert to unix form, then to dos form, then back to unix form
  2209. # but this time dos style (no spaces!) so that the unix form looks
  2210. # like /cygdrive/c/PROGRA~1:/cygdr...
  2211. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2212. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2213. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2214. ;;
  2215. *)
  2216. sys_lib_search_path_spec=$LIB
  2217. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2218. # It is most probably a Windows format PATH.
  2219. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2220. else
  2221. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2222. fi
  2223. # FIXME: find the short name or the path components, as spaces are
  2224. # common. (e.g. "Program Files" -> "PROGRA~1")
  2225. ;;
  2226. esac
  2227. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2228. postinstall_cmds='base_file=`basename \$file`~
  2229. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2230. dldir=$destdir/`dirname \$dlpath`~
  2231. test -d \$dldir || mkdir -p \$dldir~
  2232. $install_prog $dir/$dlname \$dldir/$dlname'
  2233. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2234. dlpath=$dir/\$dldll~
  2235. $RM \$dlpath'
  2236. shlibpath_overrides_runpath=yes
  2237. dynamic_linker='Win32 link.exe'
  2238. ;;
  2239. *)
  2240. # Assume MSVC wrapper
  2241. library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2242. dynamic_linker='Win32 ld.exe'
  2243. ;;
  2244. esac
  2245. # FIXME: first we should search . and the directory the executable is in
  2246. shlibpath_var=PATH
  2247. ;;
  2248. darwin* | rhapsody*)
  2249. dynamic_linker="$host_os dyld"
  2250. version_type=darwin
  2251. need_lib_prefix=no
  2252. need_version=no
  2253. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  2254. soname_spec='$libname$release$major$shared_ext'
  2255. shlibpath_overrides_runpath=yes
  2256. shlibpath_var=DYLD_LIBRARY_PATH
  2257. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2258. m4_if([$1], [],[
  2259. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2260. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2261. ;;
  2262. dgux*)
  2263. version_type=linux # correct to gnu/linux during the next big refactor
  2264. need_lib_prefix=no
  2265. need_version=no
  2266. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2267. soname_spec='$libname$release$shared_ext$major'
  2268. shlibpath_var=LD_LIBRARY_PATH
  2269. ;;
  2270. freebsd* | dragonfly*)
  2271. # DragonFly does not have aout. When/if they implement a new
  2272. # versioning mechanism, adjust this.
  2273. if test -x /usr/bin/objformat; then
  2274. objformat=`/usr/bin/objformat`
  2275. else
  2276. case $host_os in
  2277. freebsd[[23]].*) objformat=aout ;;
  2278. *) objformat=elf ;;
  2279. esac
  2280. fi
  2281. version_type=freebsd-$objformat
  2282. case $version_type in
  2283. freebsd-elf*)
  2284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2285. need_version=no
  2286. need_lib_prefix=no
  2287. ;;
  2288. freebsd-*)
  2289. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2290. need_version=yes
  2291. ;;
  2292. esac
  2293. shlibpath_var=LD_LIBRARY_PATH
  2294. case $host_os in
  2295. freebsd2.*)
  2296. shlibpath_overrides_runpath=yes
  2297. ;;
  2298. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2299. shlibpath_overrides_runpath=yes
  2300. hardcode_into_libs=yes
  2301. ;;
  2302. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2303. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2304. shlibpath_overrides_runpath=no
  2305. hardcode_into_libs=yes
  2306. ;;
  2307. *) # from 4.6 on, and DragonFly
  2308. shlibpath_overrides_runpath=yes
  2309. hardcode_into_libs=yes
  2310. ;;
  2311. esac
  2312. ;;
  2313. haiku*)
  2314. version_type=linux # correct to gnu/linux during the next big refactor
  2315. need_lib_prefix=no
  2316. need_version=no
  2317. dynamic_linker="$host_os runtime_loader"
  2318. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2319. soname_spec='$libname$release$shared_ext$major'
  2320. shlibpath_var=LIBRARY_PATH
  2321. shlibpath_overrides_runpath=no
  2322. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2323. hardcode_into_libs=yes
  2324. ;;
  2325. hpux9* | hpux10* | hpux11*)
  2326. # Give a soname corresponding to the major version so that dld.sl refuses to
  2327. # link against other versions.
  2328. version_type=sunos
  2329. need_lib_prefix=no
  2330. need_version=no
  2331. case $host_cpu in
  2332. ia64*)
  2333. shrext_cmds='.so'
  2334. hardcode_into_libs=yes
  2335. dynamic_linker="$host_os dld.so"
  2336. shlibpath_var=LD_LIBRARY_PATH
  2337. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2338. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2339. soname_spec='$libname$release$shared_ext$major'
  2340. if test 32 = "$HPUX_IA64_MODE"; then
  2341. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2342. else
  2343. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2344. fi
  2345. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2346. ;;
  2347. hppa*64*)
  2348. shrext_cmds='.sl'
  2349. hardcode_into_libs=yes
  2350. dynamic_linker="$host_os dld.sl"
  2351. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2352. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2353. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2354. soname_spec='$libname$release$shared_ext$major'
  2355. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2356. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2357. ;;
  2358. *)
  2359. shrext_cmds='.sl'
  2360. dynamic_linker="$host_os dld.sl"
  2361. shlibpath_var=SHLIB_PATH
  2362. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2364. soname_spec='$libname$release$shared_ext$major'
  2365. ;;
  2366. esac
  2367. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2368. postinstall_cmds='chmod 555 $lib'
  2369. # or fails outright, so override atomically:
  2370. install_override_mode=555
  2371. ;;
  2372. interix[[3-9]]*)
  2373. version_type=linux # correct to gnu/linux during the next big refactor
  2374. need_lib_prefix=no
  2375. need_version=no
  2376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2377. soname_spec='$libname$release$shared_ext$major'
  2378. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2379. shlibpath_var=LD_LIBRARY_PATH
  2380. shlibpath_overrides_runpath=no
  2381. hardcode_into_libs=yes
  2382. ;;
  2383. irix5* | irix6* | nonstopux*)
  2384. case $host_os in
  2385. nonstopux*) version_type=nonstopux ;;
  2386. *)
  2387. if test yes = "$lt_cv_prog_gnu_ld"; then
  2388. version_type=linux # correct to gnu/linux during the next big refactor
  2389. else
  2390. version_type=irix
  2391. fi ;;
  2392. esac
  2393. need_lib_prefix=no
  2394. need_version=no
  2395. soname_spec='$libname$release$shared_ext$major'
  2396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  2397. case $host_os in
  2398. irix5* | nonstopux*)
  2399. libsuff= shlibsuff=
  2400. ;;
  2401. *)
  2402. case $LD in # libtool.m4 will add one of these switches to LD
  2403. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2404. libsuff= shlibsuff= libmagic=32-bit;;
  2405. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2406. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2407. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2408. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2409. *) libsuff= shlibsuff= libmagic=never-match;;
  2410. esac
  2411. ;;
  2412. esac
  2413. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2414. shlibpath_overrides_runpath=no
  2415. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  2416. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  2417. hardcode_into_libs=yes
  2418. ;;
  2419. # No shared lib support for Linux oldld, aout, or coff.
  2420. linux*oldld* | linux*aout* | linux*coff*)
  2421. dynamic_linker=no
  2422. ;;
  2423. linux*android*)
  2424. version_type=none # Android doesn't support versioned libraries.
  2425. need_lib_prefix=no
  2426. need_version=no
  2427. library_names_spec='$libname$release$shared_ext'
  2428. soname_spec='$libname$release$shared_ext'
  2429. finish_cmds=
  2430. shlibpath_var=LD_LIBRARY_PATH
  2431. shlibpath_overrides_runpath=yes
  2432. # This implies no fast_install, which is unacceptable.
  2433. # Some rework will be needed to allow for fast_install
  2434. # before this can be enabled.
  2435. hardcode_into_libs=yes
  2436. dynamic_linker='Android linker'
  2437. # Don't embed -rpath directories since the linker doesn't support them.
  2438. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2439. ;;
  2440. # This must be glibc/ELF.
  2441. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2442. version_type=linux # correct to gnu/linux during the next big refactor
  2443. need_lib_prefix=no
  2444. need_version=no
  2445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2446. soname_spec='$libname$release$shared_ext$major'
  2447. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2448. shlibpath_var=LD_LIBRARY_PATH
  2449. shlibpath_overrides_runpath=no
  2450. # Some binutils ld are patched to set DT_RUNPATH
  2451. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2452. [lt_cv_shlibpath_overrides_runpath=no
  2453. save_LDFLAGS=$LDFLAGS
  2454. save_libdir=$libdir
  2455. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2456. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2457. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2458. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2459. [lt_cv_shlibpath_overrides_runpath=yes])])
  2460. LDFLAGS=$save_LDFLAGS
  2461. libdir=$save_libdir
  2462. ])
  2463. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2464. # This implies no fast_install, which is unacceptable.
  2465. # Some rework will be needed to allow for fast_install
  2466. # before this can be enabled.
  2467. hardcode_into_libs=yes
  2468. # Add ABI-specific directories to the system library path.
  2469. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2470. # Append ld.so.conf contents to the search path
  2471. if test -f /etc/ld.so.conf; then
  2472. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2473. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2474. fi
  2475. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2476. # powerpc, because MkLinux only supported shared libraries with the
  2477. # GNU dynamic linker. Since this was broken with cross compilers,
  2478. # most powerpc-linux boxes support dynamic linking these days and
  2479. # people can always --disable-shared, the test was removed, and we
  2480. # assume the GNU/Linux dynamic linker is in use.
  2481. dynamic_linker='GNU/Linux ld.so'
  2482. ;;
  2483. netbsd*)
  2484. version_type=sunos
  2485. need_lib_prefix=no
  2486. need_version=no
  2487. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2488. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2489. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2490. dynamic_linker='NetBSD (a.out) ld.so'
  2491. else
  2492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2493. soname_spec='$libname$release$shared_ext$major'
  2494. dynamic_linker='NetBSD ld.elf_so'
  2495. fi
  2496. shlibpath_var=LD_LIBRARY_PATH
  2497. shlibpath_overrides_runpath=yes
  2498. hardcode_into_libs=yes
  2499. ;;
  2500. newsos6)
  2501. version_type=linux # correct to gnu/linux during the next big refactor
  2502. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2503. shlibpath_var=LD_LIBRARY_PATH
  2504. shlibpath_overrides_runpath=yes
  2505. ;;
  2506. *nto* | *qnx*)
  2507. version_type=qnx
  2508. need_lib_prefix=no
  2509. need_version=no
  2510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2511. soname_spec='$libname$release$shared_ext$major'
  2512. shlibpath_var=LD_LIBRARY_PATH
  2513. shlibpath_overrides_runpath=no
  2514. hardcode_into_libs=yes
  2515. dynamic_linker='ldqnx.so'
  2516. ;;
  2517. openbsd* | bitrig*)
  2518. version_type=sunos
  2519. sys_lib_dlsearch_path_spec=/usr/lib
  2520. need_lib_prefix=no
  2521. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  2522. need_version=no
  2523. else
  2524. need_version=yes
  2525. fi
  2526. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2527. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2528. shlibpath_var=LD_LIBRARY_PATH
  2529. shlibpath_overrides_runpath=yes
  2530. ;;
  2531. os2*)
  2532. libname_spec='$name'
  2533. shrext_cmds=.dll
  2534. need_lib_prefix=no
  2535. library_names_spec='$libname$shared_ext $libname.a'
  2536. dynamic_linker='OS/2 ld.exe'
  2537. shlibpath_var=LIBPATH
  2538. ;;
  2539. osf3* | osf4* | osf5*)
  2540. version_type=osf
  2541. need_lib_prefix=no
  2542. need_version=no
  2543. soname_spec='$libname$release$shared_ext$major'
  2544. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2545. shlibpath_var=LD_LIBRARY_PATH
  2546. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2547. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2548. ;;
  2549. rdos*)
  2550. dynamic_linker=no
  2551. ;;
  2552. solaris*)
  2553. version_type=linux # correct to gnu/linux during the next big refactor
  2554. need_lib_prefix=no
  2555. need_version=no
  2556. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2557. soname_spec='$libname$release$shared_ext$major'
  2558. shlibpath_var=LD_LIBRARY_PATH
  2559. shlibpath_overrides_runpath=yes
  2560. hardcode_into_libs=yes
  2561. # ldd complains unless libraries are executable
  2562. postinstall_cmds='chmod +x $lib'
  2563. ;;
  2564. sunos4*)
  2565. version_type=sunos
  2566. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2567. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2568. shlibpath_var=LD_LIBRARY_PATH
  2569. shlibpath_overrides_runpath=yes
  2570. if test yes = "$with_gnu_ld"; then
  2571. need_lib_prefix=no
  2572. fi
  2573. need_version=yes
  2574. ;;
  2575. sysv4 | sysv4.3*)
  2576. version_type=linux # correct to gnu/linux during the next big refactor
  2577. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2578. soname_spec='$libname$release$shared_ext$major'
  2579. shlibpath_var=LD_LIBRARY_PATH
  2580. case $host_vendor in
  2581. sni)
  2582. shlibpath_overrides_runpath=no
  2583. need_lib_prefix=no
  2584. runpath_var=LD_RUN_PATH
  2585. ;;
  2586. siemens)
  2587. need_lib_prefix=no
  2588. ;;
  2589. motorola)
  2590. need_lib_prefix=no
  2591. need_version=no
  2592. shlibpath_overrides_runpath=no
  2593. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2594. ;;
  2595. esac
  2596. ;;
  2597. sysv4*MP*)
  2598. if test -d /usr/nec; then
  2599. version_type=linux # correct to gnu/linux during the next big refactor
  2600. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  2601. soname_spec='$libname$shared_ext.$major'
  2602. shlibpath_var=LD_LIBRARY_PATH
  2603. fi
  2604. ;;
  2605. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2606. version_type=freebsd-elf
  2607. need_lib_prefix=no
  2608. need_version=no
  2609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2610. soname_spec='$libname$release$shared_ext$major'
  2611. shlibpath_var=LD_LIBRARY_PATH
  2612. shlibpath_overrides_runpath=yes
  2613. hardcode_into_libs=yes
  2614. if test yes = "$with_gnu_ld"; then
  2615. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2616. else
  2617. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2618. case $host_os in
  2619. sco3.2v5*)
  2620. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2621. ;;
  2622. esac
  2623. fi
  2624. sys_lib_dlsearch_path_spec='/usr/lib'
  2625. ;;
  2626. tpf*)
  2627. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2628. version_type=linux # correct to gnu/linux during the next big refactor
  2629. need_lib_prefix=no
  2630. need_version=no
  2631. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2632. shlibpath_var=LD_LIBRARY_PATH
  2633. shlibpath_overrides_runpath=no
  2634. hardcode_into_libs=yes
  2635. ;;
  2636. uts4*)
  2637. version_type=linux # correct to gnu/linux during the next big refactor
  2638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2639. soname_spec='$libname$release$shared_ext$major'
  2640. shlibpath_var=LD_LIBRARY_PATH
  2641. ;;
  2642. *)
  2643. dynamic_linker=no
  2644. ;;
  2645. esac
  2646. AC_MSG_RESULT([$dynamic_linker])
  2647. test no = "$dynamic_linker" && can_build_shared=no
  2648. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2649. if test yes = "$GCC"; then
  2650. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2651. fi
  2652. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  2653. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  2654. fi
  2655. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  2656. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  2657. fi
  2658. _LT_DECL([], [variables_saved_for_relink], [1],
  2659. [Variables whose values should be saved in libtool wrapper scripts and
  2660. restored at link time])
  2661. _LT_DECL([], [need_lib_prefix], [0],
  2662. [Do we need the "lib" prefix for modules?])
  2663. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2664. _LT_DECL([], [version_type], [0], [Library versioning type])
  2665. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2666. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2667. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2668. [Is shlibpath searched before the hard-coded library search path?])
  2669. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2670. _LT_DECL([], [library_names_spec], [1],
  2671. [[List of archive names. First name is the real one, the rest are links.
  2672. The last name is the one that the linker finds with -lNAME]])
  2673. _LT_DECL([], [soname_spec], [1],
  2674. [[The coded name of the library, if different from the real name]])
  2675. _LT_DECL([], [install_override_mode], [1],
  2676. [Permission mode override for installation of shared libraries])
  2677. _LT_DECL([], [postinstall_cmds], [2],
  2678. [Command to use after installation of a shared archive])
  2679. _LT_DECL([], [postuninstall_cmds], [2],
  2680. [Command to use after uninstallation of a shared archive])
  2681. _LT_DECL([], [finish_cmds], [2],
  2682. [Commands used to finish a libtool library installation in a directory])
  2683. _LT_DECL([], [finish_eval], [1],
  2684. [[As "finish_cmds", except a single script fragment to be evaled but
  2685. not shown]])
  2686. _LT_DECL([], [hardcode_into_libs], [0],
  2687. [Whether we should hardcode library paths into libraries])
  2688. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2689. [Compile-time system search path for libraries])
  2690. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2691. [Run-time system search path for libraries])
  2692. ])# _LT_SYS_DYNAMIC_LINKER
  2693. # _LT_PATH_TOOL_PREFIX(TOOL)
  2694. # --------------------------
  2695. # find a file program that can recognize shared library
  2696. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2697. [m4_require([_LT_DECL_EGREP])dnl
  2698. AC_MSG_CHECKING([for $1])
  2699. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2700. [case $MAGIC_CMD in
  2701. [[\\/*] | ?:[\\/]*])
  2702. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  2703. ;;
  2704. *)
  2705. lt_save_MAGIC_CMD=$MAGIC_CMD
  2706. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2707. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2708. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2709. dnl not every word. This closes a longstanding sh security hole.
  2710. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2711. for ac_dir in $ac_dummy; do
  2712. IFS=$lt_save_ifs
  2713. test -z "$ac_dir" && ac_dir=.
  2714. if test -f "$ac_dir/$1"; then
  2715. lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  2716. if test -n "$file_magic_test_file"; then
  2717. case $deplibs_check_method in
  2718. "file_magic "*)
  2719. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2720. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2721. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2722. $EGREP "$file_magic_regex" > /dev/null; then
  2723. :
  2724. else
  2725. cat <<_LT_EOF 1>&2
  2726. *** Warning: the command libtool uses to detect shared libraries,
  2727. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2728. *** The result is that libtool may fail to recognize shared libraries
  2729. *** as such. This will affect the creation of libtool libraries that
  2730. *** depend on shared libraries, but programs linked with such libtool
  2731. *** libraries will work regardless of this problem. Nevertheless, you
  2732. *** may want to report the problem to your system manager and/or to
  2733. *** bug-libtool@gnu.org
  2734. _LT_EOF
  2735. fi ;;
  2736. esac
  2737. fi
  2738. break
  2739. fi
  2740. done
  2741. IFS=$lt_save_ifs
  2742. MAGIC_CMD=$lt_save_MAGIC_CMD
  2743. ;;
  2744. esac])
  2745. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2746. if test -n "$MAGIC_CMD"; then
  2747. AC_MSG_RESULT($MAGIC_CMD)
  2748. else
  2749. AC_MSG_RESULT(no)
  2750. fi
  2751. _LT_DECL([], [MAGIC_CMD], [0],
  2752. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2753. ])# _LT_PATH_TOOL_PREFIX
  2754. # Old name:
  2755. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2756. dnl aclocal-1.4 backwards compatibility:
  2757. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2758. # _LT_PATH_MAGIC
  2759. # --------------
  2760. # find a file program that can recognize a shared library
  2761. m4_defun([_LT_PATH_MAGIC],
  2762. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2763. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2764. if test -n "$ac_tool_prefix"; then
  2765. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2766. else
  2767. MAGIC_CMD=:
  2768. fi
  2769. fi
  2770. ])# _LT_PATH_MAGIC
  2771. # LT_PATH_LD
  2772. # ----------
  2773. # find the pathname to the GNU or non-GNU linker
  2774. AC_DEFUN([LT_PATH_LD],
  2775. [AC_REQUIRE([AC_PROG_CC])dnl
  2776. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2777. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2778. m4_require([_LT_DECL_SED])dnl
  2779. m4_require([_LT_DECL_EGREP])dnl
  2780. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2781. AC_ARG_WITH([gnu-ld],
  2782. [AS_HELP_STRING([--with-gnu-ld],
  2783. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2784. [test no = "$withval" || with_gnu_ld=yes],
  2785. [with_gnu_ld=no])dnl
  2786. ac_prog=ld
  2787. if test yes = "$GCC"; then
  2788. # Check if gcc -print-prog-name=ld gives a path.
  2789. AC_MSG_CHECKING([for ld used by $CC])
  2790. case $host in
  2791. *-*-mingw*)
  2792. # gcc leaves a trailing carriage return, which upsets mingw
  2793. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2794. *)
  2795. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2796. esac
  2797. case $ac_prog in
  2798. # Accept absolute paths.
  2799. [[\\/]]* | ?:[[\\/]]*)
  2800. re_direlt='/[[^/]][[^/]]*/\.\./'
  2801. # Canonicalize the pathname of ld
  2802. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2803. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2804. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2805. done
  2806. test -z "$LD" && LD=$ac_prog
  2807. ;;
  2808. "")
  2809. # If it fails, then pretend we aren't using GCC.
  2810. ac_prog=ld
  2811. ;;
  2812. *)
  2813. # If it is relative, then search for the first ld in PATH.
  2814. with_gnu_ld=unknown
  2815. ;;
  2816. esac
  2817. elif test yes = "$with_gnu_ld"; then
  2818. AC_MSG_CHECKING([for GNU ld])
  2819. else
  2820. AC_MSG_CHECKING([for non-GNU ld])
  2821. fi
  2822. AC_CACHE_VAL(lt_cv_path_LD,
  2823. [if test -z "$LD"; then
  2824. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2825. for ac_dir in $PATH; do
  2826. IFS=$lt_save_ifs
  2827. test -z "$ac_dir" && ac_dir=.
  2828. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2829. lt_cv_path_LD=$ac_dir/$ac_prog
  2830. # Check to see if the program is GNU ld. I'd rather use --version,
  2831. # but apparently some variants of GNU ld only accept -v.
  2832. # Break only if it was the GNU/non-GNU ld that we prefer.
  2833. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2834. *GNU* | *'with BFD'*)
  2835. test no != "$with_gnu_ld" && break
  2836. ;;
  2837. *)
  2838. test yes != "$with_gnu_ld" && break
  2839. ;;
  2840. esac
  2841. fi
  2842. done
  2843. IFS=$lt_save_ifs
  2844. else
  2845. lt_cv_path_LD=$LD # Let the user override the test with a path.
  2846. fi])
  2847. LD=$lt_cv_path_LD
  2848. if test -n "$LD"; then
  2849. AC_MSG_RESULT($LD)
  2850. else
  2851. AC_MSG_RESULT(no)
  2852. fi
  2853. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2854. _LT_PATH_LD_GNU
  2855. AC_SUBST([LD])
  2856. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2857. ])# LT_PATH_LD
  2858. # Old names:
  2859. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2860. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2861. dnl aclocal-1.4 backwards compatibility:
  2862. dnl AC_DEFUN([AM_PROG_LD], [])
  2863. dnl AC_DEFUN([AC_PROG_LD], [])
  2864. # _LT_PATH_LD_GNU
  2865. #- --------------
  2866. m4_defun([_LT_PATH_LD_GNU],
  2867. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2868. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2869. case `$LD -v 2>&1 </dev/null` in
  2870. *GNU* | *'with BFD'*)
  2871. lt_cv_prog_gnu_ld=yes
  2872. ;;
  2873. *)
  2874. lt_cv_prog_gnu_ld=no
  2875. ;;
  2876. esac])
  2877. with_gnu_ld=$lt_cv_prog_gnu_ld
  2878. ])# _LT_PATH_LD_GNU
  2879. # _LT_CMD_RELOAD
  2880. # --------------
  2881. # find reload flag for linker
  2882. # -- PORTME Some linkers may need a different reload flag.
  2883. m4_defun([_LT_CMD_RELOAD],
  2884. [AC_CACHE_CHECK([for $LD option to reload object files],
  2885. lt_cv_ld_reload_flag,
  2886. [lt_cv_ld_reload_flag='-r'])
  2887. reload_flag=$lt_cv_ld_reload_flag
  2888. case $reload_flag in
  2889. "" | " "*) ;;
  2890. *) reload_flag=" $reload_flag" ;;
  2891. esac
  2892. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2893. case $host_os in
  2894. cygwin* | mingw* | pw32* | cegcc*)
  2895. if test yes != "$GCC"; then
  2896. reload_cmds=false
  2897. fi
  2898. ;;
  2899. darwin*)
  2900. if test yes = "$GCC"; then
  2901. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  2902. else
  2903. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2904. fi
  2905. ;;
  2906. esac
  2907. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2908. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2909. ])# _LT_CMD_RELOAD
  2910. # _LT_CHECK_MAGIC_METHOD
  2911. # ----------------------
  2912. # how to check for library dependencies
  2913. # -- PORTME fill in with the dynamic library characteristics
  2914. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2915. [m4_require([_LT_DECL_EGREP])
  2916. m4_require([_LT_DECL_OBJDUMP])
  2917. AC_CACHE_CHECK([how to recognize dependent libraries],
  2918. lt_cv_deplibs_check_method,
  2919. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2920. lt_cv_file_magic_test_file=
  2921. lt_cv_deplibs_check_method='unknown'
  2922. # Need to set the preceding variable on all platforms that support
  2923. # interlibrary dependencies.
  2924. # 'none' -- dependencies not supported.
  2925. # 'unknown' -- same as none, but documents that we really don't know.
  2926. # 'pass_all' -- all dependencies passed with no checks.
  2927. # 'test_compile' -- check by making test program.
  2928. # 'file_magic [[regex]]' -- check by looking for files in library path
  2929. # that responds to the $file_magic_cmd with a given extended regex.
  2930. # If you have 'file' or equivalent on your system and you're not sure
  2931. # whether 'pass_all' will *always* work, you probably want this one.
  2932. case $host_os in
  2933. aix[[4-9]]*)
  2934. lt_cv_deplibs_check_method=pass_all
  2935. ;;
  2936. beos*)
  2937. lt_cv_deplibs_check_method=pass_all
  2938. ;;
  2939. bsdi[[45]]*)
  2940. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2941. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2942. lt_cv_file_magic_test_file=/shlib/libc.so
  2943. ;;
  2944. cygwin*)
  2945. # func_win32_libid is a shell function defined in ltmain.sh
  2946. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2947. lt_cv_file_magic_cmd='func_win32_libid'
  2948. ;;
  2949. mingw* | pw32*)
  2950. # Base MSYS/MinGW do not provide the 'file' command needed by
  2951. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2952. # unless we find 'file', for example because we are cross-compiling.
  2953. if ( file / ) >/dev/null 2>&1; then
  2954. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2955. lt_cv_file_magic_cmd='func_win32_libid'
  2956. else
  2957. # Keep this pattern in sync with the one in func_win32_libid.
  2958. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2959. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2960. fi
  2961. ;;
  2962. cegcc*)
  2963. # use the weaker test based on 'objdump'. See mingw*.
  2964. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2965. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2966. ;;
  2967. darwin* | rhapsody*)
  2968. lt_cv_deplibs_check_method=pass_all
  2969. ;;
  2970. freebsd* | dragonfly*)
  2971. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2972. case $host_cpu in
  2973. i*86 )
  2974. # Not sure whether the presence of OpenBSD here was a mistake.
  2975. # Let's accept both of them until this is cleared up.
  2976. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2977. lt_cv_file_magic_cmd=/usr/bin/file
  2978. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2979. ;;
  2980. esac
  2981. else
  2982. lt_cv_deplibs_check_method=pass_all
  2983. fi
  2984. ;;
  2985. haiku*)
  2986. lt_cv_deplibs_check_method=pass_all
  2987. ;;
  2988. hpux10.20* | hpux11*)
  2989. lt_cv_file_magic_cmd=/usr/bin/file
  2990. case $host_cpu in
  2991. ia64*)
  2992. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2993. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2994. ;;
  2995. hppa*64*)
  2996. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  2997. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2998. ;;
  2999. *)
  3000. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3001. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3002. ;;
  3003. esac
  3004. ;;
  3005. interix[[3-9]]*)
  3006. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3007. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3008. ;;
  3009. irix5* | irix6* | nonstopux*)
  3010. case $LD in
  3011. *-32|*"-32 ") libmagic=32-bit;;
  3012. *-n32|*"-n32 ") libmagic=N32;;
  3013. *-64|*"-64 ") libmagic=64-bit;;
  3014. *) libmagic=never-match;;
  3015. esac
  3016. lt_cv_deplibs_check_method=pass_all
  3017. ;;
  3018. # This must be glibc/ELF.
  3019. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3020. lt_cv_deplibs_check_method=pass_all
  3021. ;;
  3022. netbsd*)
  3023. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3024. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3025. else
  3026. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3027. fi
  3028. ;;
  3029. newos6*)
  3030. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3031. lt_cv_file_magic_cmd=/usr/bin/file
  3032. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3033. ;;
  3034. *nto* | *qnx*)
  3035. lt_cv_deplibs_check_method=pass_all
  3036. ;;
  3037. openbsd* | bitrig*)
  3038. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3039. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3040. else
  3041. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3042. fi
  3043. ;;
  3044. osf3* | osf4* | osf5*)
  3045. lt_cv_deplibs_check_method=pass_all
  3046. ;;
  3047. rdos*)
  3048. lt_cv_deplibs_check_method=pass_all
  3049. ;;
  3050. solaris*)
  3051. lt_cv_deplibs_check_method=pass_all
  3052. ;;
  3053. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3054. lt_cv_deplibs_check_method=pass_all
  3055. ;;
  3056. sysv4 | sysv4.3*)
  3057. case $host_vendor in
  3058. motorola)
  3059. 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]]'
  3060. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3061. ;;
  3062. ncr)
  3063. lt_cv_deplibs_check_method=pass_all
  3064. ;;
  3065. sequent)
  3066. lt_cv_file_magic_cmd='/bin/file'
  3067. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3068. ;;
  3069. sni)
  3070. lt_cv_file_magic_cmd='/bin/file'
  3071. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3072. lt_cv_file_magic_test_file=/lib/libc.so
  3073. ;;
  3074. siemens)
  3075. lt_cv_deplibs_check_method=pass_all
  3076. ;;
  3077. pc)
  3078. lt_cv_deplibs_check_method=pass_all
  3079. ;;
  3080. esac
  3081. ;;
  3082. tpf*)
  3083. lt_cv_deplibs_check_method=pass_all
  3084. ;;
  3085. esac
  3086. ])
  3087. file_magic_glob=
  3088. want_nocaseglob=no
  3089. if test "$build" = "$host"; then
  3090. case $host_os in
  3091. mingw* | pw32*)
  3092. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3093. want_nocaseglob=yes
  3094. else
  3095. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3096. fi
  3097. ;;
  3098. esac
  3099. fi
  3100. file_magic_cmd=$lt_cv_file_magic_cmd
  3101. deplibs_check_method=$lt_cv_deplibs_check_method
  3102. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3103. _LT_DECL([], [deplibs_check_method], [1],
  3104. [Method to check whether dependent libraries are shared objects])
  3105. _LT_DECL([], [file_magic_cmd], [1],
  3106. [Command to use when deplibs_check_method = "file_magic"])
  3107. _LT_DECL([], [file_magic_glob], [1],
  3108. [How to find potential files when deplibs_check_method = "file_magic"])
  3109. _LT_DECL([], [want_nocaseglob], [1],
  3110. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3111. ])# _LT_CHECK_MAGIC_METHOD
  3112. # LT_PATH_NM
  3113. # ----------
  3114. # find the pathname to a BSD- or MS-compatible name lister
  3115. AC_DEFUN([LT_PATH_NM],
  3116. [AC_REQUIRE([AC_PROG_CC])dnl
  3117. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3118. [if test -n "$NM"; then
  3119. # Let the user override the test.
  3120. lt_cv_path_NM=$NM
  3121. else
  3122. lt_nm_to_check=${ac_tool_prefix}nm
  3123. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3124. lt_nm_to_check="$lt_nm_to_check nm"
  3125. fi
  3126. for lt_tmp_nm in $lt_nm_to_check; do
  3127. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3128. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3129. IFS=$lt_save_ifs
  3130. test -z "$ac_dir" && ac_dir=.
  3131. tmp_nm=$ac_dir/$lt_tmp_nm
  3132. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3133. # Check to see if the nm accepts a BSD-compat flag.
  3134. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3135. # nm: unknown option "B" ignored
  3136. # Tru64's nm complains that /dev/null is an invalid object file
  3137. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3138. */dev/null* | *'Invalid file or object type'*)
  3139. lt_cv_path_NM="$tmp_nm -B"
  3140. break 2
  3141. ;;
  3142. *)
  3143. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3144. */dev/null*)
  3145. lt_cv_path_NM="$tmp_nm -p"
  3146. break 2
  3147. ;;
  3148. *)
  3149. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3150. continue # so that we can try to find one that supports BSD flags
  3151. ;;
  3152. esac
  3153. ;;
  3154. esac
  3155. fi
  3156. done
  3157. IFS=$lt_save_ifs
  3158. done
  3159. : ${lt_cv_path_NM=no}
  3160. fi])
  3161. if test no != "$lt_cv_path_NM"; then
  3162. NM=$lt_cv_path_NM
  3163. else
  3164. # Didn't find any BSD compatible name lister, look for dumpbin.
  3165. if test -n "$DUMPBIN"; then :
  3166. # Let the user override the test.
  3167. else
  3168. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3169. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3170. *COFF*)
  3171. DUMPBIN="$DUMPBIN -symbols -headers"
  3172. ;;
  3173. *)
  3174. DUMPBIN=:
  3175. ;;
  3176. esac
  3177. fi
  3178. AC_SUBST([DUMPBIN])
  3179. if test : != "$DUMPBIN"; then
  3180. NM=$DUMPBIN
  3181. fi
  3182. fi
  3183. test -z "$NM" && NM=nm
  3184. AC_SUBST([NM])
  3185. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3186. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3187. [lt_cv_nm_interface="BSD nm"
  3188. echo "int some_variable = 0;" > conftest.$ac_ext
  3189. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3190. (eval "$ac_compile" 2>conftest.err)
  3191. cat conftest.err >&AS_MESSAGE_LOG_FD
  3192. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3193. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3194. cat conftest.err >&AS_MESSAGE_LOG_FD
  3195. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3196. cat conftest.out >&AS_MESSAGE_LOG_FD
  3197. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3198. lt_cv_nm_interface="MS dumpbin"
  3199. fi
  3200. rm -f conftest*])
  3201. ])# LT_PATH_NM
  3202. # Old names:
  3203. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3204. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3205. dnl aclocal-1.4 backwards compatibility:
  3206. dnl AC_DEFUN([AM_PROG_NM], [])
  3207. dnl AC_DEFUN([AC_PROG_NM], [])
  3208. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3209. # --------------------------------
  3210. # how to determine the name of the shared library
  3211. # associated with a specific link library.
  3212. # -- PORTME fill in with the dynamic library characteristics
  3213. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3214. [m4_require([_LT_DECL_EGREP])
  3215. m4_require([_LT_DECL_OBJDUMP])
  3216. m4_require([_LT_DECL_DLLTOOL])
  3217. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3218. lt_cv_sharedlib_from_linklib_cmd,
  3219. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3220. case $host_os in
  3221. cygwin* | mingw* | pw32* | cegcc*)
  3222. # two different shell functions defined in ltmain.sh;
  3223. # decide which one to use based on capabilities of $DLLTOOL
  3224. case `$DLLTOOL --help 2>&1` in
  3225. *--identify-strict*)
  3226. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3227. ;;
  3228. *)
  3229. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3230. ;;
  3231. esac
  3232. ;;
  3233. *)
  3234. # fallback: assume linklib IS sharedlib
  3235. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  3236. ;;
  3237. esac
  3238. ])
  3239. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3240. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3241. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3242. [Command to associate shared and link libraries])
  3243. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3244. # _LT_PATH_MANIFEST_TOOL
  3245. # ----------------------
  3246. # locate the manifest tool
  3247. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3248. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3249. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3250. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3251. [lt_cv_path_mainfest_tool=no
  3252. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3253. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3254. cat conftest.err >&AS_MESSAGE_LOG_FD
  3255. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3256. lt_cv_path_mainfest_tool=yes
  3257. fi
  3258. rm -f conftest*])
  3259. if test yes != "$lt_cv_path_mainfest_tool"; then
  3260. MANIFEST_TOOL=:
  3261. fi
  3262. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3263. ])# _LT_PATH_MANIFEST_TOOL
  3264. # _LT_DLL_DEF_P([FILE])
  3265. # ---------------------
  3266. # True iff FILE is a Windows DLL '.def' file.
  3267. # Keep in sync with func_dll_def_p in the libtool script
  3268. AC_DEFUN([_LT_DLL_DEF_P],
  3269. [dnl
  3270. test DEF = "`$SED -n dnl
  3271. -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
  3272. -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
  3273. -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
  3274. -e q dnl Only consider the first "real" line
  3275. $1`" dnl
  3276. ])# _LT_DLL_DEF_P
  3277. # LT_LIB_M
  3278. # --------
  3279. # check for math library
  3280. AC_DEFUN([LT_LIB_M],
  3281. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3282. LIBM=
  3283. case $host in
  3284. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3285. # These system don't have libm, or don't need it
  3286. ;;
  3287. *-ncr-sysv4.3*)
  3288. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  3289. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3290. ;;
  3291. *)
  3292. AC_CHECK_LIB(m, cos, LIBM=-lm)
  3293. ;;
  3294. esac
  3295. AC_SUBST([LIBM])
  3296. ])# LT_LIB_M
  3297. # Old name:
  3298. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3299. dnl aclocal-1.4 backwards compatibility:
  3300. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3301. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3302. # -------------------------------
  3303. m4_defun([_LT_COMPILER_NO_RTTI],
  3304. [m4_require([_LT_TAG_COMPILER])dnl
  3305. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3306. if test yes = "$GCC"; then
  3307. case $cc_basename in
  3308. nvcc*)
  3309. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3310. *)
  3311. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3312. esac
  3313. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3314. lt_cv_prog_compiler_rtti_exceptions,
  3315. [-fno-rtti -fno-exceptions], [],
  3316. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3317. fi
  3318. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3319. [Compiler flag to turn off builtin functions])
  3320. ])# _LT_COMPILER_NO_RTTI
  3321. # _LT_CMD_GLOBAL_SYMBOLS
  3322. # ----------------------
  3323. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3324. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3325. AC_REQUIRE([AC_PROG_CC])dnl
  3326. AC_REQUIRE([AC_PROG_AWK])dnl
  3327. AC_REQUIRE([LT_PATH_NM])dnl
  3328. AC_REQUIRE([LT_PATH_LD])dnl
  3329. m4_require([_LT_DECL_SED])dnl
  3330. m4_require([_LT_DECL_EGREP])dnl
  3331. m4_require([_LT_TAG_COMPILER])dnl
  3332. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3333. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3334. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3335. [
  3336. # These are sane defaults that work on at least a few old systems.
  3337. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3338. # Character class describing NM global symbol codes.
  3339. symcode='[[BCDEGRST]]'
  3340. # Regexp to match symbols that can be accessed directly from C.
  3341. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3342. # Define system-specific variables.
  3343. case $host_os in
  3344. aix*)
  3345. symcode='[[BCDT]]'
  3346. ;;
  3347. cygwin* | mingw* | pw32* | cegcc*)
  3348. symcode='[[ABCDGISTW]]'
  3349. ;;
  3350. hpux*)
  3351. if test ia64 = "$host_cpu"; then
  3352. symcode='[[ABCDEGRST]]'
  3353. fi
  3354. ;;
  3355. irix* | nonstopux*)
  3356. symcode='[[BCDEGRST]]'
  3357. ;;
  3358. osf*)
  3359. symcode='[[BCDEGQRST]]'
  3360. ;;
  3361. solaris*)
  3362. symcode='[[BDRT]]'
  3363. ;;
  3364. sco3.2v5*)
  3365. symcode='[[DT]]'
  3366. ;;
  3367. sysv4.2uw2*)
  3368. symcode='[[DT]]'
  3369. ;;
  3370. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3371. symcode='[[ABDT]]'
  3372. ;;
  3373. sysv4)
  3374. symcode='[[DFNSTU]]'
  3375. ;;
  3376. esac
  3377. # If we're using GNU nm, then use its standard symbol codes.
  3378. case `$NM -V 2>&1` in
  3379. *GNU* | *'with BFD'*)
  3380. symcode='[[ABCDGIRSTW]]' ;;
  3381. esac
  3382. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3383. # Gets list of data symbols to import.
  3384. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  3385. # Adjust the below global symbol transforms to fixup imported variables.
  3386. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  3387. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  3388. lt_c_name_lib_hook="\
  3389. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  3390. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  3391. else
  3392. # Disable hooks by default.
  3393. lt_cv_sys_global_symbol_to_import=
  3394. lt_cdecl_hook=
  3395. lt_c_name_hook=
  3396. lt_c_name_lib_hook=
  3397. fi
  3398. # Transform an extracted symbol line into a proper C declaration.
  3399. # Some systems (esp. on ia64) link data and code symbols differently,
  3400. # so use this general approach.
  3401. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  3402. $lt_cdecl_hook\
  3403. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  3404. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  3405. # Transform an extracted symbol line into symbol name and symbol address
  3406. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  3407. $lt_c_name_hook\
  3408. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3409. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  3410. # Transform an extracted symbol line into symbol name with lib prefix and
  3411. # symbol address.
  3412. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  3413. $lt_c_name_lib_hook\
  3414. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3415. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  3416. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  3417. # Handle CRLF in mingw tool chain
  3418. opt_cr=
  3419. case $build_os in
  3420. mingw*)
  3421. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3422. ;;
  3423. esac
  3424. # Try without a prefix underscore, then with it.
  3425. for ac_symprfx in "" "_"; do
  3426. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3427. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3428. # Write the raw and C identifiers.
  3429. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3430. # Fake it for dumpbin and say T for any non-static function,
  3431. # D for any global variable and I for any imported variable.
  3432. # Also find C++ and __fastcall symbols from MSVC++,
  3433. # which start with @ or ?.
  3434. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3435. " {last_section=section; section=\$ 3};"\
  3436. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3437. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3438. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  3439. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  3440. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  3441. " \$ 0!~/External *\|/{next};"\
  3442. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3443. " {if(hide[section]) next};"\
  3444. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  3445. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  3446. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  3447. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  3448. " ' prfx=^$ac_symprfx]"
  3449. else
  3450. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3451. fi
  3452. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3453. # Check to see that the pipe works correctly.
  3454. pipe_works=no
  3455. rm -f conftest*
  3456. cat > conftest.$ac_ext <<_LT_EOF
  3457. #ifdef __cplusplus
  3458. extern "C" {
  3459. #endif
  3460. char nm_test_var;
  3461. void nm_test_func(void);
  3462. void nm_test_func(void){}
  3463. #ifdef __cplusplus
  3464. }
  3465. #endif
  3466. int main(){nm_test_var='a';nm_test_func();return(0);}
  3467. _LT_EOF
  3468. if AC_TRY_EVAL(ac_compile); then
  3469. # Now try to grab the symbols.
  3470. nlist=conftest.nm
  3471. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3472. # Try sorting and uniquifying the output.
  3473. if sort "$nlist" | uniq > "$nlist"T; then
  3474. mv -f "$nlist"T "$nlist"
  3475. else
  3476. rm -f "$nlist"T
  3477. fi
  3478. # Make sure that we snagged all the symbols we need.
  3479. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3480. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3481. cat <<_LT_EOF > conftest.$ac_ext
  3482. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3483. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  3484. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3485. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3486. # define LT@&t@_DLSYM_CONST
  3487. #elif defined __osf__
  3488. /* This system does not cope well with relocations in const data. */
  3489. # define LT@&t@_DLSYM_CONST
  3490. #else
  3491. # define LT@&t@_DLSYM_CONST const
  3492. #endif
  3493. #ifdef __cplusplus
  3494. extern "C" {
  3495. #endif
  3496. _LT_EOF
  3497. # Now generate the symbol file.
  3498. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3499. cat <<_LT_EOF >> conftest.$ac_ext
  3500. /* The mapping between symbol names and symbols. */
  3501. LT@&t@_DLSYM_CONST struct {
  3502. const char *name;
  3503. void *address;
  3504. }
  3505. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3506. {
  3507. { "@PROGRAM@", (void *) 0 },
  3508. _LT_EOF
  3509. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3510. cat <<\_LT_EOF >> conftest.$ac_ext
  3511. {0, (void *) 0}
  3512. };
  3513. /* This works around a problem in FreeBSD linker */
  3514. #ifdef FREEBSD_WORKAROUND
  3515. static const void *lt_preloaded_setup() {
  3516. return lt__PROGRAM__LTX_preloaded_symbols;
  3517. }
  3518. #endif
  3519. #ifdef __cplusplus
  3520. }
  3521. #endif
  3522. _LT_EOF
  3523. # Now try linking the two files.
  3524. mv conftest.$ac_objext conftstm.$ac_objext
  3525. lt_globsym_save_LIBS=$LIBS
  3526. lt_globsym_save_CFLAGS=$CFLAGS
  3527. LIBS=conftstm.$ac_objext
  3528. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3529. if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  3530. pipe_works=yes
  3531. fi
  3532. LIBS=$lt_globsym_save_LIBS
  3533. CFLAGS=$lt_globsym_save_CFLAGS
  3534. else
  3535. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3536. fi
  3537. else
  3538. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3539. fi
  3540. else
  3541. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3542. fi
  3543. else
  3544. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3545. cat conftest.$ac_ext >&5
  3546. fi
  3547. rm -rf conftest* conftst*
  3548. # Do not use the global_symbol_pipe unless it works.
  3549. if test yes = "$pipe_works"; then
  3550. break
  3551. else
  3552. lt_cv_sys_global_symbol_pipe=
  3553. fi
  3554. done
  3555. ])
  3556. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3557. lt_cv_sys_global_symbol_to_cdecl=
  3558. fi
  3559. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3560. AC_MSG_RESULT(failed)
  3561. else
  3562. AC_MSG_RESULT(ok)
  3563. fi
  3564. # Response file support.
  3565. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3566. nm_file_list_spec='@'
  3567. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3568. nm_file_list_spec='@'
  3569. fi
  3570. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3571. [Take the output of nm and produce a listing of raw symbols and C names])
  3572. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3573. [Transform the output of nm in a proper C declaration])
  3574. _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
  3575. [Transform the output of nm into a list of symbols to manually relocate])
  3576. _LT_DECL([global_symbol_to_c_name_address],
  3577. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3578. [Transform the output of nm in a C name address pair])
  3579. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3580. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3581. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3582. _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
  3583. [The name lister interface])
  3584. _LT_DECL([], [nm_file_list_spec], [1],
  3585. [Specify filename containing input files for $NM])
  3586. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3587. # _LT_COMPILER_PIC([TAGNAME])
  3588. # ---------------------------
  3589. m4_defun([_LT_COMPILER_PIC],
  3590. [m4_require([_LT_TAG_COMPILER])dnl
  3591. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3592. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3593. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3594. m4_if([$1], [CXX], [
  3595. # C++ specific cases for pic, static, wl, etc.
  3596. if test yes = "$GXX"; then
  3597. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3598. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3599. case $host_os in
  3600. aix*)
  3601. # All AIX code is PIC.
  3602. if test ia64 = "$host_cpu"; then
  3603. # AIX 5 now supports IA64 processor
  3604. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3605. fi
  3606. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3607. ;;
  3608. amigaos*)
  3609. case $host_cpu in
  3610. powerpc)
  3611. # see comment about AmigaOS4 .so support
  3612. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3613. ;;
  3614. m68k)
  3615. # FIXME: we need at least 68020 code to build shared libraries, but
  3616. # adding the '-m68020' flag to GCC prevents building anything better,
  3617. # like '-m68040'.
  3618. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3619. ;;
  3620. esac
  3621. ;;
  3622. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3623. # PIC is the default for these OSes.
  3624. ;;
  3625. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3626. # This hack is so that the source file can tell whether it is being
  3627. # built for inclusion in a dll (and should export symbols for example).
  3628. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3629. # (--disable-auto-import) libraries
  3630. m4_if([$1], [GCJ], [],
  3631. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3632. ;;
  3633. darwin* | rhapsody*)
  3634. # PIC is the default on this platform
  3635. # Common symbols not allowed in MH_DYLIB files
  3636. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3637. ;;
  3638. *djgpp*)
  3639. # DJGPP does not support shared libraries at all
  3640. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3641. ;;
  3642. haiku*)
  3643. # PIC is the default for Haiku.
  3644. # The "-static" flag exists, but is broken.
  3645. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3646. ;;
  3647. interix[[3-9]]*)
  3648. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3649. # Instead, we relocate shared libraries at runtime.
  3650. ;;
  3651. sysv4*MP*)
  3652. if test -d /usr/nec; then
  3653. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3654. fi
  3655. ;;
  3656. hpux*)
  3657. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3658. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3659. # sets the default TLS model and affects inlining.
  3660. case $host_cpu in
  3661. hppa*64*)
  3662. ;;
  3663. *)
  3664. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3665. ;;
  3666. esac
  3667. ;;
  3668. *qnx* | *nto*)
  3669. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3670. # it will coredump.
  3671. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3672. ;;
  3673. *)
  3674. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3675. ;;
  3676. esac
  3677. else
  3678. case $host_os in
  3679. aix[[4-9]]*)
  3680. # All AIX code is PIC.
  3681. if test ia64 = "$host_cpu"; then
  3682. # AIX 5 now supports IA64 processor
  3683. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3684. else
  3685. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3686. fi
  3687. ;;
  3688. chorus*)
  3689. case $cc_basename in
  3690. cxch68*)
  3691. # Green Hills C++ Compiler
  3692. # _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"
  3693. ;;
  3694. esac
  3695. ;;
  3696. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3697. # This hack is so that the source file can tell whether it is being
  3698. # built for inclusion in a dll (and should export symbols for example).
  3699. m4_if([$1], [GCJ], [],
  3700. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3701. ;;
  3702. dgux*)
  3703. case $cc_basename in
  3704. ec++*)
  3705. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3706. ;;
  3707. ghcx*)
  3708. # Green Hills C++ Compiler
  3709. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3710. ;;
  3711. *)
  3712. ;;
  3713. esac
  3714. ;;
  3715. freebsd* | dragonfly*)
  3716. # FreeBSD uses GNU C++
  3717. ;;
  3718. hpux9* | hpux10* | hpux11*)
  3719. case $cc_basename in
  3720. CC*)
  3721. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3722. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3723. if test ia64 != "$host_cpu"; then
  3724. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3725. fi
  3726. ;;
  3727. aCC*)
  3728. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3729. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3730. case $host_cpu in
  3731. hppa*64*|ia64*)
  3732. # +Z the default
  3733. ;;
  3734. *)
  3735. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3736. ;;
  3737. esac
  3738. ;;
  3739. *)
  3740. ;;
  3741. esac
  3742. ;;
  3743. interix*)
  3744. # This is c89, which is MS Visual C++ (no shared libs)
  3745. # Anyone wants to do a port?
  3746. ;;
  3747. irix5* | irix6* | nonstopux*)
  3748. case $cc_basename in
  3749. CC*)
  3750. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3751. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3752. # CC pic flag -KPIC is the default.
  3753. ;;
  3754. *)
  3755. ;;
  3756. esac
  3757. ;;
  3758. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3759. case $cc_basename in
  3760. KCC*)
  3761. # KAI C++ Compiler
  3762. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3763. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3764. ;;
  3765. ecpc* )
  3766. # old Intel C++ for x86_64, which still supported -KPIC.
  3767. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3768. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3769. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3770. ;;
  3771. icpc* )
  3772. # Intel C++, used to be incompatible with GCC.
  3773. # ICC 10 doesn't accept -KPIC any more.
  3774. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3775. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3776. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3777. ;;
  3778. pgCC* | pgcpp*)
  3779. # Portland Group C++ compiler
  3780. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3781. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3782. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3783. ;;
  3784. cxx*)
  3785. # Compaq C++
  3786. # Make sure the PIC flag is empty. It appears that all Alpha
  3787. # Linux and Compaq Tru64 Unix objects are PIC.
  3788. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3789. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3790. ;;
  3791. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3792. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3793. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3794. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3795. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3796. ;;
  3797. *)
  3798. case `$CC -V 2>&1 | sed 5q` in
  3799. *Sun\ C*)
  3800. # Sun C++ 5.9
  3801. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3802. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3803. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3804. ;;
  3805. esac
  3806. ;;
  3807. esac
  3808. ;;
  3809. lynxos*)
  3810. ;;
  3811. m88k*)
  3812. ;;
  3813. mvs*)
  3814. case $cc_basename in
  3815. cxx*)
  3816. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3817. ;;
  3818. *)
  3819. ;;
  3820. esac
  3821. ;;
  3822. netbsd*)
  3823. ;;
  3824. *qnx* | *nto*)
  3825. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3826. # it will coredump.
  3827. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3828. ;;
  3829. osf3* | osf4* | osf5*)
  3830. case $cc_basename in
  3831. KCC*)
  3832. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3833. ;;
  3834. RCC*)
  3835. # Rational C++ 2.4.1
  3836. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3837. ;;
  3838. cxx*)
  3839. # Digital/Compaq C++
  3840. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3841. # Make sure the PIC flag is empty. It appears that all Alpha
  3842. # Linux and Compaq Tru64 Unix objects are PIC.
  3843. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3844. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3845. ;;
  3846. *)
  3847. ;;
  3848. esac
  3849. ;;
  3850. psos*)
  3851. ;;
  3852. solaris*)
  3853. case $cc_basename in
  3854. CC* | sunCC*)
  3855. # Sun C++ 4.2, 5.x and Centerline C++
  3856. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3857. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3858. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3859. ;;
  3860. gcx*)
  3861. # Green Hills C++ Compiler
  3862. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3863. ;;
  3864. *)
  3865. ;;
  3866. esac
  3867. ;;
  3868. sunos4*)
  3869. case $cc_basename in
  3870. CC*)
  3871. # Sun C++ 4.x
  3872. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3873. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3874. ;;
  3875. lcc*)
  3876. # Lucid
  3877. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3878. ;;
  3879. *)
  3880. ;;
  3881. esac
  3882. ;;
  3883. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3884. case $cc_basename in
  3885. CC*)
  3886. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3887. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3888. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3889. ;;
  3890. esac
  3891. ;;
  3892. tandem*)
  3893. case $cc_basename in
  3894. NCC*)
  3895. # NonStop-UX NCC 3.20
  3896. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3897. ;;
  3898. *)
  3899. ;;
  3900. esac
  3901. ;;
  3902. vxworks*)
  3903. ;;
  3904. *)
  3905. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3906. ;;
  3907. esac
  3908. fi
  3909. ],
  3910. [
  3911. if test yes = "$GCC"; then
  3912. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3913. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3914. case $host_os in
  3915. aix*)
  3916. # All AIX code is PIC.
  3917. if test ia64 = "$host_cpu"; then
  3918. # AIX 5 now supports IA64 processor
  3919. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3920. fi
  3921. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3922. ;;
  3923. amigaos*)
  3924. case $host_cpu in
  3925. powerpc)
  3926. # see comment about AmigaOS4 .so support
  3927. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3928. ;;
  3929. m68k)
  3930. # FIXME: we need at least 68020 code to build shared libraries, but
  3931. # adding the '-m68020' flag to GCC prevents building anything better,
  3932. # like '-m68040'.
  3933. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3934. ;;
  3935. esac
  3936. ;;
  3937. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3938. # PIC is the default for these OSes.
  3939. ;;
  3940. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3941. # This hack is so that the source file can tell whether it is being
  3942. # built for inclusion in a dll (and should export symbols for example).
  3943. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3944. # (--disable-auto-import) libraries
  3945. m4_if([$1], [GCJ], [],
  3946. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3947. ;;
  3948. darwin* | rhapsody*)
  3949. # PIC is the default on this platform
  3950. # Common symbols not allowed in MH_DYLIB files
  3951. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3952. ;;
  3953. haiku*)
  3954. # PIC is the default for Haiku.
  3955. # The "-static" flag exists, but is broken.
  3956. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3957. ;;
  3958. hpux*)
  3959. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3960. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3961. # sets the default TLS model and affects inlining.
  3962. case $host_cpu in
  3963. hppa*64*)
  3964. # +Z the default
  3965. ;;
  3966. *)
  3967. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3968. ;;
  3969. esac
  3970. ;;
  3971. interix[[3-9]]*)
  3972. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3973. # Instead, we relocate shared libraries at runtime.
  3974. ;;
  3975. msdosdjgpp*)
  3976. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3977. # on systems that don't support them.
  3978. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3979. enable_shared=no
  3980. ;;
  3981. *nto* | *qnx*)
  3982. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3983. # it will coredump.
  3984. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3985. ;;
  3986. sysv4*MP*)
  3987. if test -d /usr/nec; then
  3988. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3989. fi
  3990. ;;
  3991. *)
  3992. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3993. ;;
  3994. esac
  3995. case $cc_basename in
  3996. nvcc*) # Cuda Compiler Driver 2.2
  3997. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3998. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3999. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4000. fi
  4001. ;;
  4002. esac
  4003. else
  4004. # PORTME Check for flag to pass linker flags through the system compiler.
  4005. case $host_os in
  4006. aix*)
  4007. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4008. if test ia64 = "$host_cpu"; then
  4009. # AIX 5 now supports IA64 processor
  4010. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4011. else
  4012. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4013. fi
  4014. ;;
  4015. darwin* | rhapsody*)
  4016. # PIC is the default on this platform
  4017. # Common symbols not allowed in MH_DYLIB files
  4018. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4019. case $cc_basename in
  4020. nagfor*)
  4021. # NAG Fortran compiler
  4022. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4023. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4024. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4025. ;;
  4026. esac
  4027. ;;
  4028. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4029. # This hack is so that the source file can tell whether it is being
  4030. # built for inclusion in a dll (and should export symbols for example).
  4031. m4_if([$1], [GCJ], [],
  4032. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4033. ;;
  4034. hpux9* | hpux10* | hpux11*)
  4035. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4036. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4037. # not for PA HP-UX.
  4038. case $host_cpu in
  4039. hppa*64*|ia64*)
  4040. # +Z the default
  4041. ;;
  4042. *)
  4043. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4044. ;;
  4045. esac
  4046. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4047. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4048. ;;
  4049. irix5* | irix6* | nonstopux*)
  4050. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4051. # PIC (with -KPIC) is the default.
  4052. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4053. ;;
  4054. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4055. case $cc_basename in
  4056. # old Intel for x86_64, which still supported -KPIC.
  4057. ecc*)
  4058. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4059. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4060. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4061. ;;
  4062. # icc used to be incompatible with GCC.
  4063. # ICC 10 doesn't accept -KPIC any more.
  4064. icc* | ifort*)
  4065. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4066. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4067. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4068. ;;
  4069. # Lahey Fortran 8.1.
  4070. lf95*)
  4071. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4072. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4073. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4074. ;;
  4075. nagfor*)
  4076. # NAG Fortran compiler
  4077. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4078. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4079. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4080. ;;
  4081. tcc*)
  4082. # Fabrice Bellard et al's Tiny C Compiler
  4083. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4084. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4085. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4086. ;;
  4087. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4088. # Portland Group compilers (*not* the Pentium gcc compiler,
  4089. # which looks to be a dead project)
  4090. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4091. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4092. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4093. ;;
  4094. ccc*)
  4095. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4096. # All Alpha code is PIC.
  4097. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4098. ;;
  4099. xl* | bgxl* | bgf* | mpixl*)
  4100. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4101. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4102. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4103. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4104. ;;
  4105. *)
  4106. case `$CC -V 2>&1 | sed 5q` in
  4107. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4108. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4109. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4110. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4111. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4112. ;;
  4113. *Sun\ F* | *Sun*Fortran*)
  4114. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4115. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4116. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4117. ;;
  4118. *Sun\ C*)
  4119. # Sun C 5.9
  4120. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4121. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4122. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4123. ;;
  4124. *Intel*\ [[CF]]*Compiler*)
  4125. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4126. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4127. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4128. ;;
  4129. *Portland\ Group*)
  4130. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4131. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4132. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4133. ;;
  4134. esac
  4135. ;;
  4136. esac
  4137. ;;
  4138. newsos6)
  4139. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4140. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4141. ;;
  4142. *nto* | *qnx*)
  4143. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4144. # it will coredump.
  4145. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4146. ;;
  4147. osf3* | osf4* | osf5*)
  4148. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4149. # All OSF/1 code is PIC.
  4150. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4151. ;;
  4152. rdos*)
  4153. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4154. ;;
  4155. solaris*)
  4156. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4157. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4158. case $cc_basename in
  4159. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4160. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4161. *)
  4162. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4163. esac
  4164. ;;
  4165. sunos4*)
  4166. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4167. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4168. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4169. ;;
  4170. sysv4 | sysv4.2uw2* | sysv4.3*)
  4171. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4172. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4173. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4174. ;;
  4175. sysv4*MP*)
  4176. if test -d /usr/nec; then
  4177. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4178. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4179. fi
  4180. ;;
  4181. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4182. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4183. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4184. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4185. ;;
  4186. unicos*)
  4187. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4188. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4189. ;;
  4190. uts4*)
  4191. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4192. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4193. ;;
  4194. *)
  4195. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4196. ;;
  4197. esac
  4198. fi
  4199. ])
  4200. case $host_os in
  4201. # For platforms that do not support PIC, -DPIC is meaningless:
  4202. *djgpp*)
  4203. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4204. ;;
  4205. *)
  4206. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4207. ;;
  4208. esac
  4209. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4210. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4211. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4212. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4213. #
  4214. # Check to make sure the PIC flag actually works.
  4215. #
  4216. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4217. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4218. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4219. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4220. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4221. "" | " "*) ;;
  4222. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4223. esac],
  4224. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4225. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4226. fi
  4227. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4228. [Additional compiler flags for building library objects])
  4229. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4230. [How to pass a linker flag through the compiler])
  4231. #
  4232. # Check to make sure the static flag actually works.
  4233. #
  4234. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4235. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4236. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4237. $lt_tmp_static_flag,
  4238. [],
  4239. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4240. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4241. [Compiler flag to prevent dynamic linking])
  4242. ])# _LT_COMPILER_PIC
  4243. # _LT_LINKER_SHLIBS([TAGNAME])
  4244. # ----------------------------
  4245. # See if the linker supports building shared libraries.
  4246. m4_defun([_LT_LINKER_SHLIBS],
  4247. [AC_REQUIRE([LT_PATH_LD])dnl
  4248. AC_REQUIRE([LT_PATH_NM])dnl
  4249. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4250. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4251. m4_require([_LT_DECL_EGREP])dnl
  4252. m4_require([_LT_DECL_SED])dnl
  4253. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4254. m4_require([_LT_TAG_COMPILER])dnl
  4255. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4256. m4_if([$1], [CXX], [
  4257. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4258. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4259. case $host_os in
  4260. aix[[4-9]]*)
  4261. # If we're using GNU nm, then we don't want the "-C" option.
  4262. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4263. # Also, AIX nm treats weak defined symbols like other global defined
  4264. # symbols, whereas GNU nm marks them as "W".
  4265. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4266. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4267. else
  4268. _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'
  4269. fi
  4270. ;;
  4271. pw32*)
  4272. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  4273. ;;
  4274. cygwin* | mingw* | cegcc*)
  4275. case $cc_basename in
  4276. cl*)
  4277. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4278. ;;
  4279. *)
  4280. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4281. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4282. ;;
  4283. esac
  4284. ;;
  4285. *)
  4286. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4287. ;;
  4288. esac
  4289. ], [
  4290. runpath_var=
  4291. _LT_TAGVAR(allow_undefined_flag, $1)=
  4292. _LT_TAGVAR(always_export_symbols, $1)=no
  4293. _LT_TAGVAR(archive_cmds, $1)=
  4294. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4295. _LT_TAGVAR(compiler_needs_object, $1)=no
  4296. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4297. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4298. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4299. _LT_TAGVAR(hardcode_automatic, $1)=no
  4300. _LT_TAGVAR(hardcode_direct, $1)=no
  4301. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4302. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4303. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4304. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4305. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4306. _LT_TAGVAR(inherit_rpath, $1)=no
  4307. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4308. _LT_TAGVAR(module_cmds, $1)=
  4309. _LT_TAGVAR(module_expsym_cmds, $1)=
  4310. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4311. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4312. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4313. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4314. # include_expsyms should be a list of space-separated symbols to be *always*
  4315. # included in the symbol list
  4316. _LT_TAGVAR(include_expsyms, $1)=
  4317. # exclude_expsyms can be an extended regexp of symbols to exclude
  4318. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  4319. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  4320. # as well as any symbol that contains 'd'.
  4321. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4322. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4323. # platforms (ab)use it in PIC code, but their linkers get confused if
  4324. # the symbol is explicitly referenced. Since portable code cannot
  4325. # rely on this symbol name, it's probably fine to never include it in
  4326. # preloaded symbol tables.
  4327. # Exclude shared library initialization/finalization symbols.
  4328. dnl Note also adjust exclude_expsyms for C++ above.
  4329. extract_expsyms_cmds=
  4330. case $host_os in
  4331. cygwin* | mingw* | pw32* | cegcc*)
  4332. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4333. # When not using gcc, we currently assume that we are using
  4334. # Microsoft Visual C++.
  4335. if test yes != "$GCC"; then
  4336. with_gnu_ld=no
  4337. fi
  4338. ;;
  4339. interix*)
  4340. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4341. with_gnu_ld=yes
  4342. ;;
  4343. openbsd* | bitrig*)
  4344. with_gnu_ld=no
  4345. ;;
  4346. esac
  4347. _LT_TAGVAR(ld_shlibs, $1)=yes
  4348. # On some targets, GNU ld is compatible enough with the native linker
  4349. # that we're better off using the native interface for both.
  4350. lt_use_gnu_ld_interface=no
  4351. if test yes = "$with_gnu_ld"; then
  4352. case $host_os in
  4353. aix*)
  4354. # The AIX port of GNU ld has always aspired to compatibility
  4355. # with the native linker. However, as the warning in the GNU ld
  4356. # block says, versions before 2.19.5* couldn't really create working
  4357. # shared libraries, regardless of the interface used.
  4358. case `$LD -v 2>&1` in
  4359. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4360. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4361. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4362. *)
  4363. lt_use_gnu_ld_interface=yes
  4364. ;;
  4365. esac
  4366. ;;
  4367. *)
  4368. lt_use_gnu_ld_interface=yes
  4369. ;;
  4370. esac
  4371. fi
  4372. if test yes = "$lt_use_gnu_ld_interface"; then
  4373. # If archive_cmds runs LD, not CC, wlarc should be empty
  4374. wlarc='$wl'
  4375. # Set some defaults for GNU ld with shared library support. These
  4376. # are reset later if shared libraries are not supported. Putting them
  4377. # here allows them to be overridden if necessary.
  4378. runpath_var=LD_RUN_PATH
  4379. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4380. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  4381. # ancient GNU ld didn't support --whole-archive et. al.
  4382. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4383. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  4384. else
  4385. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4386. fi
  4387. supports_anon_versioning=no
  4388. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  4389. *GNU\ gold*) supports_anon_versioning=yes ;;
  4390. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4391. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4392. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4393. *\ 2.11.*) ;; # other 2.11 versions
  4394. *) supports_anon_versioning=yes ;;
  4395. esac
  4396. # See if GNU ld supports shared libraries.
  4397. case $host_os in
  4398. aix[[3-9]]*)
  4399. # On AIX/PPC, the GNU linker is very broken
  4400. if test ia64 != "$host_cpu"; then
  4401. _LT_TAGVAR(ld_shlibs, $1)=no
  4402. cat <<_LT_EOF 1>&2
  4403. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4404. *** to be unable to reliably create shared libraries on AIX.
  4405. *** Therefore, libtool is disabling shared libraries support. If you
  4406. *** really care for shared libraries, you may want to install binutils
  4407. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4408. *** You will then need to restart the configuration process.
  4409. _LT_EOF
  4410. fi
  4411. ;;
  4412. amigaos*)
  4413. case $host_cpu in
  4414. powerpc)
  4415. # see comment about AmigaOS4 .so support
  4416. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4417. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4418. ;;
  4419. m68k)
  4420. _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)'
  4421. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4422. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4423. ;;
  4424. esac
  4425. ;;
  4426. beos*)
  4427. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4428. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4429. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4430. # support --undefined. This deserves some investigation. FIXME
  4431. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4432. else
  4433. _LT_TAGVAR(ld_shlibs, $1)=no
  4434. fi
  4435. ;;
  4436. cygwin* | mingw* | pw32* | cegcc*)
  4437. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4438. # as there is no search path for DLLs.
  4439. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4440. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  4441. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4442. _LT_TAGVAR(always_export_symbols, $1)=no
  4443. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4444. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4445. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4446. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4447. _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'
  4448. # If the export-symbols file already is a .def file, use it as
  4449. # is; otherwise, prepend EXPORTS...
  4450. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4451. cp $export_symbols $output_objdir/$soname.def;
  4452. else
  4453. echo EXPORTS > $output_objdir/$soname.def;
  4454. cat $export_symbols >> $output_objdir/$soname.def;
  4455. fi~
  4456. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4457. else
  4458. _LT_TAGVAR(ld_shlibs, $1)=no
  4459. fi
  4460. ;;
  4461. haiku*)
  4462. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4463. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4464. ;;
  4465. interix[[3-9]]*)
  4466. _LT_TAGVAR(hardcode_direct, $1)=no
  4467. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4468. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  4469. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4470. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4471. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4472. # default) and relocated if they conflict, which is a slow very memory
  4473. # consuming and fragmenting process. To avoid this, we pick a random,
  4474. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4475. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4476. _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'
  4477. _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'
  4478. ;;
  4479. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4480. tmp_diet=no
  4481. if test linux-dietlibc = "$host_os"; then
  4482. case $cc_basename in
  4483. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4484. esac
  4485. fi
  4486. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4487. && test no = "$tmp_diet"
  4488. then
  4489. tmp_addflag=' $pic_flag'
  4490. tmp_sharedflag='-shared'
  4491. case $cc_basename,$host_cpu in
  4492. pgcc*) # Portland Group C compiler
  4493. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4494. tmp_addflag=' $pic_flag'
  4495. ;;
  4496. pgf77* | pgf90* | pgf95* | pgfortran*)
  4497. # Portland Group f77 and f90 compilers
  4498. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4499. tmp_addflag=' $pic_flag -Mnomain' ;;
  4500. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4501. tmp_addflag=' -i_dynamic' ;;
  4502. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4503. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4504. ifc* | ifort*) # Intel Fortran compiler
  4505. tmp_addflag=' -nofor_main' ;;
  4506. lf95*) # Lahey Fortran 8.1
  4507. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4508. tmp_sharedflag='--shared' ;;
  4509. nagfor*) # NAGFOR 5.3
  4510. tmp_sharedflag='-Wl,-shared' ;;
  4511. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4512. tmp_sharedflag='-qmkshrobj'
  4513. tmp_addflag= ;;
  4514. nvcc*) # Cuda Compiler Driver 2.2
  4515. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4516. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4517. ;;
  4518. esac
  4519. case `$CC -V 2>&1 | sed 5q` in
  4520. *Sun\ C*) # Sun C 5.9
  4521. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4522. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4523. tmp_sharedflag='-G' ;;
  4524. *Sun\ F*) # Sun Fortran 8.3
  4525. tmp_sharedflag='-G' ;;
  4526. esac
  4527. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4528. if test yes = "$supports_anon_versioning"; then
  4529. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4530. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4531. echo "local: *; };" >> $output_objdir/$libname.ver~
  4532. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  4533. fi
  4534. case $cc_basename in
  4535. xlf* | bgf* | bgxlf* | mpixlf*)
  4536. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4537. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4538. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4539. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4540. if test yes = "$supports_anon_versioning"; then
  4541. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4542. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4543. echo "local: *; };" >> $output_objdir/$libname.ver~
  4544. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4545. fi
  4546. ;;
  4547. esac
  4548. else
  4549. _LT_TAGVAR(ld_shlibs, $1)=no
  4550. fi
  4551. ;;
  4552. netbsd*)
  4553. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4554. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4555. wlarc=
  4556. else
  4557. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4558. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4559. fi
  4560. ;;
  4561. solaris*)
  4562. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4563. _LT_TAGVAR(ld_shlibs, $1)=no
  4564. cat <<_LT_EOF 1>&2
  4565. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4566. *** create shared libraries on Solaris systems. Therefore, libtool
  4567. *** is disabling shared libraries support. We urge you to upgrade GNU
  4568. *** binutils to release 2.9.1 or newer. Another option is to modify
  4569. *** your PATH or compiler configuration so that the native linker is
  4570. *** used, and then restart.
  4571. _LT_EOF
  4572. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4573. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4574. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4575. else
  4576. _LT_TAGVAR(ld_shlibs, $1)=no
  4577. fi
  4578. ;;
  4579. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4580. case `$LD -v 2>&1` in
  4581. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4582. _LT_TAGVAR(ld_shlibs, $1)=no
  4583. cat <<_LT_EOF 1>&2
  4584. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  4585. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4586. *** is disabling shared libraries support. We urge you to upgrade GNU
  4587. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4588. *** your PATH or compiler configuration so that the native linker is
  4589. *** used, and then restart.
  4590. _LT_EOF
  4591. ;;
  4592. *)
  4593. # For security reasons, it is highly recommended that you always
  4594. # use absolute paths for naming shared libraries, and exclude the
  4595. # DT_RUNPATH tag from executables and libraries. But doing so
  4596. # requires that you compile everything twice, which is a pain.
  4597. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4598. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4599. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4600. _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'
  4601. else
  4602. _LT_TAGVAR(ld_shlibs, $1)=no
  4603. fi
  4604. ;;
  4605. esac
  4606. ;;
  4607. sunos4*)
  4608. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4609. wlarc=
  4610. _LT_TAGVAR(hardcode_direct, $1)=yes
  4611. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4612. ;;
  4613. *)
  4614. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4615. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4616. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4617. else
  4618. _LT_TAGVAR(ld_shlibs, $1)=no
  4619. fi
  4620. ;;
  4621. esac
  4622. if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  4623. runpath_var=
  4624. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4625. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4626. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4627. fi
  4628. else
  4629. # PORTME fill in a description of your system's linker (not GNU ld)
  4630. case $host_os in
  4631. aix3*)
  4632. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4633. _LT_TAGVAR(always_export_symbols, $1)=yes
  4634. _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'
  4635. # Note: this linker hardcodes the directories in LIBPATH if there
  4636. # are no directories specified by -L.
  4637. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4638. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  4639. # Neither direct hardcoding nor static linking is supported with a
  4640. # broken collect2.
  4641. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4642. fi
  4643. ;;
  4644. aix[[4-9]]*)
  4645. if test ia64 = "$host_cpu"; then
  4646. # On IA64, the linker does run time linking by default, so we don't
  4647. # have to do anything special.
  4648. aix_use_runtimelinking=no
  4649. exp_sym_flag='-Bexport'
  4650. no_entry_flag=
  4651. else
  4652. # If we're using GNU nm, then we don't want the "-C" option.
  4653. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4654. # Also, AIX nm treats weak defined symbols like other global
  4655. # defined symbols, whereas GNU nm marks them as "W".
  4656. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4657. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4658. else
  4659. _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'
  4660. fi
  4661. aix_use_runtimelinking=no
  4662. # Test if we are trying to use run time linking or normal
  4663. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4664. # need to do runtime linking.
  4665. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4666. for ld_flag in $LDFLAGS; do
  4667. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  4668. aix_use_runtimelinking=yes
  4669. break
  4670. fi
  4671. done
  4672. ;;
  4673. esac
  4674. exp_sym_flag='-bexport'
  4675. no_entry_flag='-bnoentry'
  4676. fi
  4677. # When large executables or shared objects are built, AIX ld can
  4678. # have problems creating the table of contents. If linking a library
  4679. # or program results in "error TOC overflow" add -mminimal-toc to
  4680. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4681. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4682. _LT_TAGVAR(archive_cmds, $1)=''
  4683. _LT_TAGVAR(hardcode_direct, $1)=yes
  4684. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4685. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4686. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4687. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  4688. if test yes = "$GCC"; then
  4689. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4690. # We only want to do this on AIX 4.2 and lower, the check
  4691. # below for broken collect2 doesn't work under 4.3+
  4692. collect2name=`$CC -print-prog-name=collect2`
  4693. if test -f "$collect2name" &&
  4694. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4695. then
  4696. # We have reworked collect2
  4697. :
  4698. else
  4699. # We have old collect2
  4700. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4701. # It fails to find uninstalled libraries when the uninstalled
  4702. # path is not listed in the libpath. Setting hardcode_minus_L
  4703. # to unsupported forces relinking
  4704. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4705. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4706. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4707. fi
  4708. ;;
  4709. esac
  4710. shared_flag='-shared'
  4711. if test yes = "$aix_use_runtimelinking"; then
  4712. shared_flag="$shared_flag "'$wl-G'
  4713. fi
  4714. else
  4715. # not using gcc
  4716. if test ia64 = "$host_cpu"; then
  4717. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4718. # chokes on -Wl,-G. The following line is correct:
  4719. shared_flag='-G'
  4720. else
  4721. if test yes = "$aix_use_runtimelinking"; then
  4722. shared_flag='$wl-G'
  4723. else
  4724. shared_flag='$wl-bM:SRE'
  4725. fi
  4726. fi
  4727. fi
  4728. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  4729. # It seems that -bexpall does not export symbols beginning with
  4730. # underscore (_), so it is better to generate a list of symbols to export.
  4731. _LT_TAGVAR(always_export_symbols, $1)=yes
  4732. if test yes = "$aix_use_runtimelinking"; then
  4733. # Warning - without using the other runtime loading flags (-brtl),
  4734. # -berok will link without error, but may produce a broken library.
  4735. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4736. # Determine the default libpath from the value encoded in an
  4737. # empty executable.
  4738. _LT_SYS_MODULE_PATH_AIX([$1])
  4739. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  4740. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  4741. else
  4742. if test ia64 = "$host_cpu"; then
  4743. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  4744. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4745. _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"
  4746. else
  4747. # Determine the default libpath from the value encoded in an
  4748. # empty executable.
  4749. _LT_SYS_MODULE_PATH_AIX([$1])
  4750. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  4751. # Warning - without using the other run time loading flags,
  4752. # -berok will link without error, but may produce a broken library.
  4753. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  4754. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  4755. if test yes = "$with_gnu_ld"; then
  4756. # We only use this code for GNU lds that support --whole-archive.
  4757. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  4758. else
  4759. # Exported symbols can be pulled into shared objects from archives
  4760. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4761. fi
  4762. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4763. # This is similar to how AIX traditionally builds its shared libraries.
  4764. _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'
  4765. fi
  4766. fi
  4767. ;;
  4768. amigaos*)
  4769. case $host_cpu in
  4770. powerpc)
  4771. # see comment about AmigaOS4 .so support
  4772. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4773. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4774. ;;
  4775. m68k)
  4776. _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)'
  4777. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4778. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4779. ;;
  4780. esac
  4781. ;;
  4782. bsdi[[45]]*)
  4783. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4784. ;;
  4785. cygwin* | mingw* | pw32* | cegcc*)
  4786. # When not using gcc, we currently assume that we are using
  4787. # Microsoft Visual C++.
  4788. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4789. # no search path for DLLs.
  4790. case $cc_basename in
  4791. cl*)
  4792. # Native MSVC
  4793. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4794. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4795. _LT_TAGVAR(always_export_symbols, $1)=yes
  4796. _LT_TAGVAR(file_list_spec, $1)='@'
  4797. # Tell ltmain to make .lib files, not .a files.
  4798. libext=lib
  4799. # Tell ltmain to make .dll files, not .so files.
  4800. shrext_cmds=.dll
  4801. # FIXME: Setting linknames here is a bad hack.
  4802. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  4803. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4804. cp "$export_symbols" "$output_objdir/$soname.def";
  4805. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  4806. else
  4807. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  4808. fi~
  4809. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4810. linknames='
  4811. # The linker will not automatically build a static lib if we build a DLL.
  4812. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4813. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4814. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4815. _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'
  4816. # Don't use ranlib
  4817. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4818. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4819. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4820. case $lt_outputfile in
  4821. *.exe|*.EXE) ;;
  4822. *)
  4823. lt_outputfile=$lt_outputfile.exe
  4824. lt_tool_outputfile=$lt_tool_outputfile.exe
  4825. ;;
  4826. esac~
  4827. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  4828. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4829. $RM "$lt_outputfile.manifest";
  4830. fi'
  4831. ;;
  4832. *)
  4833. # Assume MSVC wrapper
  4834. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4835. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4836. # Tell ltmain to make .lib files, not .a files.
  4837. libext=lib
  4838. # Tell ltmain to make .dll files, not .so files.
  4839. shrext_cmds=.dll
  4840. # FIXME: Setting linknames here is a bad hack.
  4841. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4842. # The linker will automatically build a .lib file if we build a DLL.
  4843. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4844. # FIXME: Should let the user specify the lib program.
  4845. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4846. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4847. ;;
  4848. esac
  4849. ;;
  4850. darwin* | rhapsody*)
  4851. _LT_DARWIN_LINKER_FEATURES($1)
  4852. ;;
  4853. dgux*)
  4854. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4855. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4856. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4857. ;;
  4858. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4859. # support. Future versions do this automatically, but an explicit c++rt0.o
  4860. # does not break anything, and helps significantly (at the cost of a little
  4861. # extra space).
  4862. freebsd2.2*)
  4863. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4864. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4865. _LT_TAGVAR(hardcode_direct, $1)=yes
  4866. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4867. ;;
  4868. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4869. freebsd2.*)
  4870. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4871. _LT_TAGVAR(hardcode_direct, $1)=yes
  4872. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4873. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4874. ;;
  4875. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4876. freebsd* | dragonfly*)
  4877. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4878. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4879. _LT_TAGVAR(hardcode_direct, $1)=yes
  4880. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4881. ;;
  4882. hpux9*)
  4883. if test yes = "$GCC"; then
  4884. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  4885. else
  4886. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  4887. fi
  4888. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  4889. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4890. _LT_TAGVAR(hardcode_direct, $1)=yes
  4891. # hardcode_minus_L: Not really in the search PATH,
  4892. # but as the default location of the library.
  4893. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4894. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4895. ;;
  4896. hpux10*)
  4897. if test yes,no = "$GCC,$with_gnu_ld"; then
  4898. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4899. else
  4900. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4901. fi
  4902. if test no = "$with_gnu_ld"; then
  4903. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  4904. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4905. _LT_TAGVAR(hardcode_direct, $1)=yes
  4906. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4907. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4908. # hardcode_minus_L: Not really in the search PATH,
  4909. # but as the default location of the library.
  4910. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4911. fi
  4912. ;;
  4913. hpux11*)
  4914. if test yes,no = "$GCC,$with_gnu_ld"; then
  4915. case $host_cpu in
  4916. hppa*64*)
  4917. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  4918. ;;
  4919. ia64*)
  4920. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4921. ;;
  4922. *)
  4923. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4924. ;;
  4925. esac
  4926. else
  4927. case $host_cpu in
  4928. hppa*64*)
  4929. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  4930. ;;
  4931. ia64*)
  4932. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4933. ;;
  4934. *)
  4935. m4_if($1, [], [
  4936. # Older versions of the 11.00 compiler do not understand -b yet
  4937. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4938. _LT_LINKER_OPTION([if $CC understands -b],
  4939. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4940. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4941. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4942. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4943. ;;
  4944. esac
  4945. fi
  4946. if test no = "$with_gnu_ld"; then
  4947. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  4948. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4949. case $host_cpu in
  4950. hppa*64*|ia64*)
  4951. _LT_TAGVAR(hardcode_direct, $1)=no
  4952. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4953. ;;
  4954. *)
  4955. _LT_TAGVAR(hardcode_direct, $1)=yes
  4956. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4957. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4958. # hardcode_minus_L: Not really in the search PATH,
  4959. # but as the default location of the library.
  4960. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4961. ;;
  4962. esac
  4963. fi
  4964. ;;
  4965. irix5* | irix6* | nonstopux*)
  4966. if test yes = "$GCC"; then
  4967. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  4968. # Try to use the -exported_symbol ld option, if it does not
  4969. # work, assume that -exports_file does not work either and
  4970. # implicitly export all symbols.
  4971. # This should be the same for all languages, so no per-tag cache variable.
  4972. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4973. [lt_cv_irix_exported_symbol],
  4974. [save_LDFLAGS=$LDFLAGS
  4975. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  4976. AC_LINK_IFELSE(
  4977. [AC_LANG_SOURCE(
  4978. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4979. [C++], [[int foo (void) { return 0; }]],
  4980. [Fortran 77], [[
  4981. subroutine foo
  4982. end]],
  4983. [Fortran], [[
  4984. subroutine foo
  4985. end]])])],
  4986. [lt_cv_irix_exported_symbol=yes],
  4987. [lt_cv_irix_exported_symbol=no])
  4988. LDFLAGS=$save_LDFLAGS])
  4989. if test yes = "$lt_cv_irix_exported_symbol"; then
  4990. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  4991. fi
  4992. else
  4993. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  4994. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  4995. fi
  4996. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4997. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4998. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4999. _LT_TAGVAR(inherit_rpath, $1)=yes
  5000. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5001. ;;
  5002. netbsd*)
  5003. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5004. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5005. else
  5006. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5007. fi
  5008. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5009. _LT_TAGVAR(hardcode_direct, $1)=yes
  5010. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5011. ;;
  5012. newsos6)
  5013. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5014. _LT_TAGVAR(hardcode_direct, $1)=yes
  5015. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5016. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5017. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5018. ;;
  5019. *nto* | *qnx*)
  5020. ;;
  5021. openbsd* | bitrig*)
  5022. if test -f /usr/libexec/ld.so; then
  5023. _LT_TAGVAR(hardcode_direct, $1)=yes
  5024. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5025. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5026. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5027. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5028. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5029. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5030. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5031. else
  5032. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5033. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5034. fi
  5035. else
  5036. _LT_TAGVAR(ld_shlibs, $1)=no
  5037. fi
  5038. ;;
  5039. os2*)
  5040. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5041. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5042. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5043. _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'
  5044. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5045. ;;
  5046. osf3*)
  5047. if test yes = "$GCC"; then
  5048. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5049. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5050. else
  5051. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5052. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5053. fi
  5054. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5055. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5056. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5057. ;;
  5058. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5059. if test yes = "$GCC"; then
  5060. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5061. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5062. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5063. else
  5064. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5065. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5066. _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~
  5067. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  5068. # Both c and cxx compiler support -rpath directly
  5069. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5070. fi
  5071. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5072. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5073. ;;
  5074. solaris*)
  5075. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5076. if test yes = "$GCC"; then
  5077. wlarc='$wl'
  5078. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5079. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5080. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5081. else
  5082. case `$CC -V 2>&1` in
  5083. *"Compilers 5.0"*)
  5084. wlarc=''
  5085. _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5086. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5087. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5088. ;;
  5089. *)
  5090. wlarc='$wl'
  5091. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5092. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5093. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5094. ;;
  5095. esac
  5096. fi
  5097. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5098. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5099. case $host_os in
  5100. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5101. *)
  5102. # The compiler driver will combine and reorder linker options,
  5103. # but understands '-z linker_flag'. GCC discards it without '$wl',
  5104. # but is careful enough not to reorder.
  5105. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5106. if test yes = "$GCC"; then
  5107. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  5108. else
  5109. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5110. fi
  5111. ;;
  5112. esac
  5113. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5114. ;;
  5115. sunos4*)
  5116. if test sequent = "$host_vendor"; then
  5117. # Use $CC to link under sequent, because it throws in some extra .o
  5118. # files that make .init and .fini sections work.
  5119. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5120. else
  5121. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5122. fi
  5123. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5124. _LT_TAGVAR(hardcode_direct, $1)=yes
  5125. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5126. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5127. ;;
  5128. sysv4)
  5129. case $host_vendor in
  5130. sni)
  5131. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5132. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5133. ;;
  5134. siemens)
  5135. ## LD is ld it makes a PLAMLIB
  5136. ## CC just makes a GrossModule.
  5137. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5138. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5139. _LT_TAGVAR(hardcode_direct, $1)=no
  5140. ;;
  5141. motorola)
  5142. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5143. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5144. ;;
  5145. esac
  5146. runpath_var='LD_RUN_PATH'
  5147. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5148. ;;
  5149. sysv4.3*)
  5150. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5151. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5152. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5153. ;;
  5154. sysv4*MP*)
  5155. if test -d /usr/nec; then
  5156. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5157. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5158. runpath_var=LD_RUN_PATH
  5159. hardcode_runpath_var=yes
  5160. _LT_TAGVAR(ld_shlibs, $1)=yes
  5161. fi
  5162. ;;
  5163. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5164. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5165. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5166. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5167. runpath_var='LD_RUN_PATH'
  5168. if test yes = "$GCC"; then
  5169. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5170. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5171. else
  5172. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5173. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5174. fi
  5175. ;;
  5176. sysv5* | sco3.2v5* | sco5v6*)
  5177. # Note: We CANNOT use -z defs as we might desire, because we do not
  5178. # link with -lc, and that would cause any symbols used from libc to
  5179. # always be unresolved, which means just about no library would
  5180. # ever link correctly. If we're not using GNU ld we use -z text
  5181. # though, which does catch some bad symbols but isn't as heavy-handed
  5182. # as -z defs.
  5183. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5184. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  5185. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5186. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5187. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  5188. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5189. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5190. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  5191. runpath_var='LD_RUN_PATH'
  5192. if test yes = "$GCC"; then
  5193. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5194. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5195. else
  5196. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5197. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5198. fi
  5199. ;;
  5200. uts4*)
  5201. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5202. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5203. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5204. ;;
  5205. *)
  5206. _LT_TAGVAR(ld_shlibs, $1)=no
  5207. ;;
  5208. esac
  5209. if test sni = "$host_vendor"; then
  5210. case $host in
  5211. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5212. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  5213. ;;
  5214. esac
  5215. fi
  5216. fi
  5217. ])
  5218. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5219. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  5220. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5221. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5222. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5223. _LT_DECL([], [extract_expsyms_cmds], [2],
  5224. [The commands to extract the exported symbol list from a shared archive])
  5225. #
  5226. # Do we need to explicitly link libc?
  5227. #
  5228. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5229. x|xyes)
  5230. # Assume -lc should be added
  5231. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5232. if test yes,yes = "$GCC,$enable_shared"; then
  5233. case $_LT_TAGVAR(archive_cmds, $1) in
  5234. *'~'*)
  5235. # FIXME: we may have to deal with multi-command sequences.
  5236. ;;
  5237. '$CC '*)
  5238. # Test whether the compiler implicitly links with -lc since on some
  5239. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5240. # to ld, don't add -lc before -lgcc.
  5241. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5242. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5243. [$RM conftest*
  5244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5245. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5246. soname=conftest
  5247. lib=conftest
  5248. libobjs=conftest.$ac_objext
  5249. deplibs=
  5250. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5251. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5252. compiler_flags=-v
  5253. linker_flags=-v
  5254. verstring=
  5255. output_objdir=.
  5256. libname=conftest
  5257. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5258. _LT_TAGVAR(allow_undefined_flag, $1)=
  5259. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5260. then
  5261. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5262. else
  5263. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5264. fi
  5265. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5266. else
  5267. cat conftest.err 1>&5
  5268. fi
  5269. $RM conftest*
  5270. ])
  5271. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5272. ;;
  5273. esac
  5274. fi
  5275. ;;
  5276. esac
  5277. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5278. [Whether or not to add -lc for building shared libraries])
  5279. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5280. [enable_shared_with_static_runtimes], [0],
  5281. [Whether or not to disallow shared libs when runtime libs are static])
  5282. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5283. [Compiler flag to allow reflexive dlopens])
  5284. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5285. [Compiler flag to generate shared objects directly from archives])
  5286. _LT_TAGDECL([], [compiler_needs_object], [1],
  5287. [Whether the compiler copes with passing no objects directly])
  5288. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5289. [Create an old-style archive from a shared archive])
  5290. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5291. [Create a temporary old-style archive to link instead of a shared archive])
  5292. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5293. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5294. _LT_TAGDECL([], [module_cmds], [2],
  5295. [Commands used to build a loadable module if different from building
  5296. a shared archive.])
  5297. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5298. _LT_TAGDECL([], [with_gnu_ld], [1],
  5299. [Whether we are building with GNU ld or not])
  5300. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5301. [Flag that allows shared libraries with undefined symbols to be built])
  5302. _LT_TAGDECL([], [no_undefined_flag], [1],
  5303. [Flag that enforces no undefined symbols])
  5304. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5305. [Flag to hardcode $libdir into a binary during linking.
  5306. This must work even if $libdir does not exist])
  5307. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5308. [Whether we need a single "-rpath" flag with a separated argument])
  5309. _LT_TAGDECL([], [hardcode_direct], [0],
  5310. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5311. DIR into the resulting binary])
  5312. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5313. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5314. DIR into the resulting binary and the resulting library dependency is
  5315. "absolute", i.e impossible to change by setting $shlibpath_var if the
  5316. library is relocated])
  5317. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5318. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5319. into the resulting binary])
  5320. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5321. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5322. into the resulting binary])
  5323. _LT_TAGDECL([], [hardcode_automatic], [0],
  5324. [Set to "yes" if building a shared library automatically hardcodes DIR
  5325. into the library and all subsequent libraries and executables linked
  5326. against it])
  5327. _LT_TAGDECL([], [inherit_rpath], [0],
  5328. [Set to yes if linker adds runtime paths of dependent libraries
  5329. to runtime path list])
  5330. _LT_TAGDECL([], [link_all_deplibs], [0],
  5331. [Whether libtool must link a program against all its dependency libraries])
  5332. _LT_TAGDECL([], [always_export_symbols], [0],
  5333. [Set to "yes" if exported symbols are required])
  5334. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5335. [The commands to list exported symbols])
  5336. _LT_TAGDECL([], [exclude_expsyms], [1],
  5337. [Symbols that should not be listed in the preloaded symbols])
  5338. _LT_TAGDECL([], [include_expsyms], [1],
  5339. [Symbols that must always be exported])
  5340. _LT_TAGDECL([], [prelink_cmds], [2],
  5341. [Commands necessary for linking programs (against libraries) with templates])
  5342. _LT_TAGDECL([], [postlink_cmds], [2],
  5343. [Commands necessary for finishing linking programs])
  5344. _LT_TAGDECL([], [file_list_spec], [1],
  5345. [Specify filename containing input files])
  5346. dnl FIXME: Not yet implemented
  5347. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5348. dnl [Compiler flag to generate thread safe objects])
  5349. ])# _LT_LINKER_SHLIBS
  5350. # _LT_LANG_C_CONFIG([TAG])
  5351. # ------------------------
  5352. # Ensure that the configuration variables for a C compiler are suitably
  5353. # defined. These variables are subsequently used by _LT_CONFIG to write
  5354. # the compiler configuration to 'libtool'.
  5355. m4_defun([_LT_LANG_C_CONFIG],
  5356. [m4_require([_LT_DECL_EGREP])dnl
  5357. lt_save_CC=$CC
  5358. AC_LANG_PUSH(C)
  5359. # Source file extension for C test sources.
  5360. ac_ext=c
  5361. # Object file extension for compiled C test sources.
  5362. objext=o
  5363. _LT_TAGVAR(objext, $1)=$objext
  5364. # Code to be used in simple compile tests
  5365. lt_simple_compile_test_code="int some_variable = 0;"
  5366. # Code to be used in simple link tests
  5367. lt_simple_link_test_code='int main(){return(0);}'
  5368. _LT_TAG_COMPILER
  5369. # Save the default compiler, since it gets overwritten when the other
  5370. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5371. compiler_DEFAULT=$CC
  5372. # save warnings/boilerplate of simple test code
  5373. _LT_COMPILER_BOILERPLATE
  5374. _LT_LINKER_BOILERPLATE
  5375. if test -n "$compiler"; then
  5376. _LT_COMPILER_NO_RTTI($1)
  5377. _LT_COMPILER_PIC($1)
  5378. _LT_COMPILER_C_O($1)
  5379. _LT_COMPILER_FILE_LOCKS($1)
  5380. _LT_LINKER_SHLIBS($1)
  5381. _LT_SYS_DYNAMIC_LINKER($1)
  5382. _LT_LINKER_HARDCODE_LIBPATH($1)
  5383. LT_SYS_DLOPEN_SELF
  5384. _LT_CMD_STRIPLIB
  5385. # Report what library types will actually be built
  5386. AC_MSG_CHECKING([if libtool supports shared libraries])
  5387. AC_MSG_RESULT([$can_build_shared])
  5388. AC_MSG_CHECKING([whether to build shared libraries])
  5389. test no = "$can_build_shared" && enable_shared=no
  5390. # On AIX, shared libraries and static libraries use the same namespace, and
  5391. # are all built from PIC.
  5392. case $host_os in
  5393. aix3*)
  5394. test yes = "$enable_shared" && enable_static=no
  5395. if test -n "$RANLIB"; then
  5396. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5397. postinstall_cmds='$RANLIB $lib'
  5398. fi
  5399. ;;
  5400. aix[[4-9]]*)
  5401. if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
  5402. test yes = "$enable_shared" && enable_static=no
  5403. fi
  5404. ;;
  5405. esac
  5406. AC_MSG_RESULT([$enable_shared])
  5407. AC_MSG_CHECKING([whether to build static libraries])
  5408. # Make sure either enable_shared or enable_static is yes.
  5409. test yes = "$enable_shared" || enable_static=yes
  5410. AC_MSG_RESULT([$enable_static])
  5411. _LT_CONFIG($1)
  5412. fi
  5413. AC_LANG_POP
  5414. CC=$lt_save_CC
  5415. ])# _LT_LANG_C_CONFIG
  5416. # _LT_LANG_CXX_CONFIG([TAG])
  5417. # --------------------------
  5418. # Ensure that the configuration variables for a C++ compiler are suitably
  5419. # defined. These variables are subsequently used by _LT_CONFIG to write
  5420. # the compiler configuration to 'libtool'.
  5421. m4_defun([_LT_LANG_CXX_CONFIG],
  5422. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5423. m4_require([_LT_DECL_EGREP])dnl
  5424. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5425. if test -n "$CXX" && ( test no != "$CXX" &&
  5426. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  5427. (test g++ != "$CXX"))); then
  5428. AC_PROG_CXXCPP
  5429. else
  5430. _lt_caught_CXX_error=yes
  5431. fi
  5432. AC_LANG_PUSH(C++)
  5433. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5434. _LT_TAGVAR(allow_undefined_flag, $1)=
  5435. _LT_TAGVAR(always_export_symbols, $1)=no
  5436. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5437. _LT_TAGVAR(compiler_needs_object, $1)=no
  5438. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5439. _LT_TAGVAR(hardcode_direct, $1)=no
  5440. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5441. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5442. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5443. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5444. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5445. _LT_TAGVAR(hardcode_automatic, $1)=no
  5446. _LT_TAGVAR(inherit_rpath, $1)=no
  5447. _LT_TAGVAR(module_cmds, $1)=
  5448. _LT_TAGVAR(module_expsym_cmds, $1)=
  5449. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5450. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5451. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5452. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5453. _LT_TAGVAR(no_undefined_flag, $1)=
  5454. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5455. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5456. # Source file extension for C++ test sources.
  5457. ac_ext=cpp
  5458. # Object file extension for compiled C++ test sources.
  5459. objext=o
  5460. _LT_TAGVAR(objext, $1)=$objext
  5461. # No sense in running all these tests if we already determined that
  5462. # the CXX compiler isn't working. Some variables (like enable_shared)
  5463. # are currently assumed to apply to all compilers on this platform,
  5464. # and will be corrupted by setting them based on a non-working compiler.
  5465. if test yes != "$_lt_caught_CXX_error"; then
  5466. # Code to be used in simple compile tests
  5467. lt_simple_compile_test_code="int some_variable = 0;"
  5468. # Code to be used in simple link tests
  5469. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5470. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5471. _LT_TAG_COMPILER
  5472. # save warnings/boilerplate of simple test code
  5473. _LT_COMPILER_BOILERPLATE
  5474. _LT_LINKER_BOILERPLATE
  5475. # Allow CC to be a program name with arguments.
  5476. lt_save_CC=$CC
  5477. lt_save_CFLAGS=$CFLAGS
  5478. lt_save_LD=$LD
  5479. lt_save_GCC=$GCC
  5480. GCC=$GXX
  5481. lt_save_with_gnu_ld=$with_gnu_ld
  5482. lt_save_path_LD=$lt_cv_path_LD
  5483. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5484. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5485. else
  5486. $as_unset lt_cv_prog_gnu_ld
  5487. fi
  5488. if test -n "${lt_cv_path_LDCXX+set}"; then
  5489. lt_cv_path_LD=$lt_cv_path_LDCXX
  5490. else
  5491. $as_unset lt_cv_path_LD
  5492. fi
  5493. test -z "${LDCXX+set}" || LD=$LDCXX
  5494. CC=${CXX-"c++"}
  5495. CFLAGS=$CXXFLAGS
  5496. compiler=$CC
  5497. _LT_TAGVAR(compiler, $1)=$CC
  5498. _LT_CC_BASENAME([$compiler])
  5499. if test -n "$compiler"; then
  5500. # We don't want -fno-exception when compiling C++ code, so set the
  5501. # no_builtin_flag separately
  5502. if test yes = "$GXX"; then
  5503. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5504. else
  5505. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5506. fi
  5507. if test yes = "$GXX"; then
  5508. # Set up default GNU C++ configuration
  5509. LT_PATH_LD
  5510. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5511. # archiving commands below assume that GNU ld is being used.
  5512. if test yes = "$with_gnu_ld"; then
  5513. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5514. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  5515. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5516. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5517. # If archive_cmds runs LD, not CC, wlarc should be empty
  5518. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5519. # investigate it a little bit more. (MM)
  5520. wlarc='$wl'
  5521. # ancient GNU ld didn't support --whole-archive et. al.
  5522. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5523. $GREP 'no-whole-archive' > /dev/null; then
  5524. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5525. else
  5526. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5527. fi
  5528. else
  5529. with_gnu_ld=no
  5530. wlarc=
  5531. # A generic and very simple default shared library creation
  5532. # command for GNU C++ for the case where it uses the native
  5533. # linker, instead of GNU ld. If possible, this setting should
  5534. # overridden to take advantage of the native linker features on
  5535. # the platform it is being used on.
  5536. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5537. fi
  5538. # Commands to make compiler produce verbose output that lists
  5539. # what "hidden" libraries, object files and flags are used when
  5540. # linking a shared library.
  5541. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5542. else
  5543. GXX=no
  5544. with_gnu_ld=no
  5545. wlarc=
  5546. fi
  5547. # PORTME: fill in a description of your system's C++ link characteristics
  5548. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5549. _LT_TAGVAR(ld_shlibs, $1)=yes
  5550. case $host_os in
  5551. aix3*)
  5552. # FIXME: insert proper C++ library support
  5553. _LT_TAGVAR(ld_shlibs, $1)=no
  5554. ;;
  5555. aix[[4-9]]*)
  5556. if test ia64 = "$host_cpu"; then
  5557. # On IA64, the linker does run time linking by default, so we don't
  5558. # have to do anything special.
  5559. aix_use_runtimelinking=no
  5560. exp_sym_flag='-Bexport'
  5561. no_entry_flag=
  5562. else
  5563. aix_use_runtimelinking=no
  5564. # Test if we are trying to use run time linking or normal
  5565. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5566. # need to do runtime linking.
  5567. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5568. for ld_flag in $LDFLAGS; do
  5569. case $ld_flag in
  5570. *-brtl*)
  5571. aix_use_runtimelinking=yes
  5572. break
  5573. ;;
  5574. esac
  5575. done
  5576. ;;
  5577. esac
  5578. exp_sym_flag='-bexport'
  5579. no_entry_flag='-bnoentry'
  5580. fi
  5581. # When large executables or shared objects are built, AIX ld can
  5582. # have problems creating the table of contents. If linking a library
  5583. # or program results in "error TOC overflow" add -mminimal-toc to
  5584. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5585. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5586. _LT_TAGVAR(archive_cmds, $1)=''
  5587. _LT_TAGVAR(hardcode_direct, $1)=yes
  5588. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5589. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5590. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5591. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5592. if test yes = "$GXX"; then
  5593. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5594. # We only want to do this on AIX 4.2 and lower, the check
  5595. # below for broken collect2 doesn't work under 4.3+
  5596. collect2name=`$CC -print-prog-name=collect2`
  5597. if test -f "$collect2name" &&
  5598. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5599. then
  5600. # We have reworked collect2
  5601. :
  5602. else
  5603. # We have old collect2
  5604. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5605. # It fails to find uninstalled libraries when the uninstalled
  5606. # path is not listed in the libpath. Setting hardcode_minus_L
  5607. # to unsupported forces relinking
  5608. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5609. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5610. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5611. fi
  5612. esac
  5613. shared_flag='-shared'
  5614. if test yes = "$aix_use_runtimelinking"; then
  5615. shared_flag=$shared_flag' $wl-G'
  5616. fi
  5617. else
  5618. # not using gcc
  5619. if test ia64 = "$host_cpu"; then
  5620. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5621. # chokes on -Wl,-G. The following line is correct:
  5622. shared_flag='-G'
  5623. else
  5624. if test yes = "$aix_use_runtimelinking"; then
  5625. shared_flag='$wl-G'
  5626. else
  5627. shared_flag='$wl-bM:SRE'
  5628. fi
  5629. fi
  5630. fi
  5631. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5632. # It seems that -bexpall does not export symbols beginning with
  5633. # underscore (_), so it is better to generate a list of symbols to
  5634. # export.
  5635. _LT_TAGVAR(always_export_symbols, $1)=yes
  5636. if test yes = "$aix_use_runtimelinking"; then
  5637. # Warning - without using the other runtime loading flags (-brtl),
  5638. # -berok will link without error, but may produce a broken library.
  5639. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5640. # Determine the default libpath from the value encoded in an empty
  5641. # executable.
  5642. _LT_SYS_MODULE_PATH_AIX([$1])
  5643. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5644. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  5645. else
  5646. if test ia64 = "$host_cpu"; then
  5647. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5648. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5649. _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"
  5650. else
  5651. # Determine the default libpath from the value encoded in an
  5652. # empty executable.
  5653. _LT_SYS_MODULE_PATH_AIX([$1])
  5654. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5655. # Warning - without using the other run time loading flags,
  5656. # -berok will link without error, but may produce a broken library.
  5657. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5658. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5659. if test yes = "$with_gnu_ld"; then
  5660. # We only use this code for GNU lds that support --whole-archive.
  5661. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5662. else
  5663. # Exported symbols can be pulled into shared objects from archives
  5664. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5665. fi
  5666. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5667. # This is similar to how AIX traditionally builds its shared
  5668. # libraries.
  5669. _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'
  5670. fi
  5671. fi
  5672. ;;
  5673. beos*)
  5674. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5675. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5676. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5677. # support --undefined. This deserves some investigation. FIXME
  5678. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5679. else
  5680. _LT_TAGVAR(ld_shlibs, $1)=no
  5681. fi
  5682. ;;
  5683. chorus*)
  5684. case $cc_basename in
  5685. *)
  5686. # FIXME: insert proper C++ library support
  5687. _LT_TAGVAR(ld_shlibs, $1)=no
  5688. ;;
  5689. esac
  5690. ;;
  5691. cygwin* | mingw* | pw32* | cegcc*)
  5692. case $GXX,$cc_basename in
  5693. ,cl* | no,cl*)
  5694. # Native MSVC
  5695. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5696. # no search path for DLLs.
  5697. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5698. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5699. _LT_TAGVAR(always_export_symbols, $1)=yes
  5700. _LT_TAGVAR(file_list_spec, $1)='@'
  5701. # Tell ltmain to make .lib files, not .a files.
  5702. libext=lib
  5703. # Tell ltmain to make .dll files, not .so files.
  5704. shrext_cmds=.dll
  5705. # FIXME: Setting linknames here is a bad hack.
  5706. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5707. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5708. cp "$export_symbols" "$output_objdir/$soname.def";
  5709. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5710. else
  5711. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5712. fi~
  5713. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5714. linknames='
  5715. # The linker will not automatically build a static lib if we build a DLL.
  5716. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5717. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5718. # Don't use ranlib
  5719. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5720. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5721. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5722. case $lt_outputfile in
  5723. *.exe|*.EXE) ;;
  5724. *)
  5725. lt_outputfile=$lt_outputfile.exe
  5726. lt_tool_outputfile=$lt_tool_outputfile.exe
  5727. ;;
  5728. esac~
  5729. func_to_tool_file "$lt_outputfile"~
  5730. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5731. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5732. $RM "$lt_outputfile.manifest";
  5733. fi'
  5734. ;;
  5735. *)
  5736. # g++
  5737. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5738. # as there is no search path for DLLs.
  5739. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5740. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  5741. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5742. _LT_TAGVAR(always_export_symbols, $1)=no
  5743. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5744. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5745. _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'
  5746. # If the export-symbols file already is a .def file, use it as
  5747. # is; otherwise, prepend EXPORTS...
  5748. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5749. cp $export_symbols $output_objdir/$soname.def;
  5750. else
  5751. echo EXPORTS > $output_objdir/$soname.def;
  5752. cat $export_symbols >> $output_objdir/$soname.def;
  5753. fi~
  5754. $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'
  5755. else
  5756. _LT_TAGVAR(ld_shlibs, $1)=no
  5757. fi
  5758. ;;
  5759. esac
  5760. ;;
  5761. darwin* | rhapsody*)
  5762. _LT_DARWIN_LINKER_FEATURES($1)
  5763. ;;
  5764. dgux*)
  5765. case $cc_basename in
  5766. ec++*)
  5767. # FIXME: insert proper C++ library support
  5768. _LT_TAGVAR(ld_shlibs, $1)=no
  5769. ;;
  5770. ghcx*)
  5771. # Green Hills C++ Compiler
  5772. # FIXME: insert proper C++ library support
  5773. _LT_TAGVAR(ld_shlibs, $1)=no
  5774. ;;
  5775. *)
  5776. # FIXME: insert proper C++ library support
  5777. _LT_TAGVAR(ld_shlibs, $1)=no
  5778. ;;
  5779. esac
  5780. ;;
  5781. freebsd2.*)
  5782. # C++ shared libraries reported to be fairly broken before
  5783. # switch to ELF
  5784. _LT_TAGVAR(ld_shlibs, $1)=no
  5785. ;;
  5786. freebsd-elf*)
  5787. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5788. ;;
  5789. freebsd* | dragonfly*)
  5790. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5791. # conventions
  5792. _LT_TAGVAR(ld_shlibs, $1)=yes
  5793. ;;
  5794. haiku*)
  5795. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5796. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5797. ;;
  5798. hpux9*)
  5799. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5800. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5801. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5802. _LT_TAGVAR(hardcode_direct, $1)=yes
  5803. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5804. # but as the default
  5805. # location of the library.
  5806. case $cc_basename in
  5807. CC*)
  5808. # FIXME: insert proper C++ library support
  5809. _LT_TAGVAR(ld_shlibs, $1)=no
  5810. ;;
  5811. aCC*)
  5812. _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5813. # Commands to make compiler produce verbose output that lists
  5814. # what "hidden" libraries, object files and flags are used when
  5815. # linking a shared library.
  5816. #
  5817. # There doesn't appear to be a way to prevent this compiler from
  5818. # explicitly linking system object files so we need to strip them
  5819. # from the output so that they don't get included in the library
  5820. # dependencies.
  5821. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5822. ;;
  5823. *)
  5824. if test yes = "$GXX"; then
  5825. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5826. else
  5827. # FIXME: insert proper C++ library support
  5828. _LT_TAGVAR(ld_shlibs, $1)=no
  5829. fi
  5830. ;;
  5831. esac
  5832. ;;
  5833. hpux10*|hpux11*)
  5834. if test no = "$with_gnu_ld"; then
  5835. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5836. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5837. case $host_cpu in
  5838. hppa*64*|ia64*)
  5839. ;;
  5840. *)
  5841. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5842. ;;
  5843. esac
  5844. fi
  5845. case $host_cpu in
  5846. hppa*64*|ia64*)
  5847. _LT_TAGVAR(hardcode_direct, $1)=no
  5848. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5849. ;;
  5850. *)
  5851. _LT_TAGVAR(hardcode_direct, $1)=yes
  5852. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5853. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5854. # but as the default
  5855. # location of the library.
  5856. ;;
  5857. esac
  5858. case $cc_basename in
  5859. CC*)
  5860. # FIXME: insert proper C++ library support
  5861. _LT_TAGVAR(ld_shlibs, $1)=no
  5862. ;;
  5863. aCC*)
  5864. case $host_cpu in
  5865. hppa*64*)
  5866. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5867. ;;
  5868. ia64*)
  5869. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5870. ;;
  5871. *)
  5872. _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'
  5873. ;;
  5874. esac
  5875. # Commands to make compiler produce verbose output that lists
  5876. # what "hidden" libraries, object files and flags are used when
  5877. # linking a shared library.
  5878. #
  5879. # There doesn't appear to be a way to prevent this compiler from
  5880. # explicitly linking system object files so we need to strip them
  5881. # from the output so that they don't get included in the library
  5882. # dependencies.
  5883. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5884. ;;
  5885. *)
  5886. if test yes = "$GXX"; then
  5887. if test no = "$with_gnu_ld"; then
  5888. case $host_cpu in
  5889. hppa*64*)
  5890. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5891. ;;
  5892. ia64*)
  5893. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5894. ;;
  5895. *)
  5896. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5897. ;;
  5898. esac
  5899. fi
  5900. else
  5901. # FIXME: insert proper C++ library support
  5902. _LT_TAGVAR(ld_shlibs, $1)=no
  5903. fi
  5904. ;;
  5905. esac
  5906. ;;
  5907. interix[[3-9]]*)
  5908. _LT_TAGVAR(hardcode_direct, $1)=no
  5909. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5910. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5911. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5912. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5913. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5914. # default) and relocated if they conflict, which is a slow very memory
  5915. # consuming and fragmenting process. To avoid this, we pick a random,
  5916. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5917. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5918. _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'
  5919. _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'
  5920. ;;
  5921. irix5* | irix6*)
  5922. case $cc_basename in
  5923. CC*)
  5924. # SGI C++
  5925. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5926. # Archives containing C++ object files must be created using
  5927. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5928. # necessary to make sure instantiated templates are included
  5929. # in the archive.
  5930. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5931. ;;
  5932. *)
  5933. if test yes = "$GXX"; then
  5934. if test no = "$with_gnu_ld"; then
  5935. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5936. else
  5937. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  5938. fi
  5939. fi
  5940. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5941. ;;
  5942. esac
  5943. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5944. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5945. _LT_TAGVAR(inherit_rpath, $1)=yes
  5946. ;;
  5947. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5948. case $cc_basename in
  5949. KCC*)
  5950. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5951. # KCC will only create a shared library if the output file
  5952. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5953. # to its proper name (with version) after linking.
  5954. _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'
  5955. _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'
  5956. # Commands to make compiler produce verbose output that lists
  5957. # what "hidden" libraries, object files and flags are used when
  5958. # linking a shared library.
  5959. #
  5960. # There doesn't appear to be a way to prevent this compiler from
  5961. # explicitly linking system object files so we need to strip them
  5962. # from the output so that they don't get included in the library
  5963. # dependencies.
  5964. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5965. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5966. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5967. # Archives containing C++ object files must be created using
  5968. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5969. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5970. ;;
  5971. icpc* | ecpc* )
  5972. # Intel C++
  5973. with_gnu_ld=yes
  5974. # version 8.0 and above of icpc choke on multiply defined symbols
  5975. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5976. # earlier do not add the objects themselves.
  5977. case `$CC -V 2>&1` in
  5978. *"Version 7."*)
  5979. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5980. _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'
  5981. ;;
  5982. *) # Version 8.0 or newer
  5983. tmp_idyn=
  5984. case $host_cpu in
  5985. ia64*) tmp_idyn=' -i_dynamic';;
  5986. esac
  5987. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5988. _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'
  5989. ;;
  5990. esac
  5991. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5992. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5993. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5994. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5995. ;;
  5996. pgCC* | pgcpp*)
  5997. # Portland Group C++ compiler
  5998. case `$CC -V` in
  5999. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6000. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6001. rm -rf $tpldir~
  6002. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6003. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6004. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6005. rm -rf $tpldir~
  6006. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6007. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6008. $RANLIB $oldlib'
  6009. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6010. rm -rf $tpldir~
  6011. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6012. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6013. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6014. rm -rf $tpldir~
  6015. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6016. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6017. ;;
  6018. *) # Version 6 and above use weak symbols
  6019. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6020. _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'
  6021. ;;
  6022. esac
  6023. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  6024. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6025. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  6026. ;;
  6027. cxx*)
  6028. # Compaq C++
  6029. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6030. _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'
  6031. runpath_var=LD_RUN_PATH
  6032. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6033. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6034. # Commands to make compiler produce verbose output that lists
  6035. # what "hidden" libraries, object files and flags are used when
  6036. # linking a shared library.
  6037. #
  6038. # There doesn't appear to be a way to prevent this compiler from
  6039. # explicitly linking system object files so we need to strip them
  6040. # from the output so that they don't get included in the library
  6041. # dependencies.
  6042. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  6043. ;;
  6044. xl* | mpixl* | bgxl*)
  6045. # IBM XL 8.0 on PPC, with GNU ld
  6046. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6047. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6048. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6049. if test yes = "$supports_anon_versioning"; then
  6050. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6051. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6052. echo "local: *; };" >> $output_objdir/$libname.ver~
  6053. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  6054. fi
  6055. ;;
  6056. *)
  6057. case `$CC -V 2>&1 | sed 5q` in
  6058. *Sun\ C*)
  6059. # Sun C++ 5.9
  6060. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6061. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6062. _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'
  6063. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6064. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  6065. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6066. # Not sure whether something based on
  6067. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6068. # would be better.
  6069. output_verbose_link_cmd='func_echo_all'
  6070. # Archives containing C++ object files must be created using
  6071. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6072. # necessary to make sure instantiated templates are included
  6073. # in the archive.
  6074. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6075. ;;
  6076. esac
  6077. ;;
  6078. esac
  6079. ;;
  6080. lynxos*)
  6081. # FIXME: insert proper C++ library support
  6082. _LT_TAGVAR(ld_shlibs, $1)=no
  6083. ;;
  6084. m88k*)
  6085. # FIXME: insert proper C++ library support
  6086. _LT_TAGVAR(ld_shlibs, $1)=no
  6087. ;;
  6088. mvs*)
  6089. case $cc_basename in
  6090. cxx*)
  6091. # FIXME: insert proper C++ library support
  6092. _LT_TAGVAR(ld_shlibs, $1)=no
  6093. ;;
  6094. *)
  6095. # FIXME: insert proper C++ library support
  6096. _LT_TAGVAR(ld_shlibs, $1)=no
  6097. ;;
  6098. esac
  6099. ;;
  6100. netbsd*)
  6101. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6102. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6103. wlarc=
  6104. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6105. _LT_TAGVAR(hardcode_direct, $1)=yes
  6106. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6107. fi
  6108. # Workaround some broken pre-1.5 toolchains
  6109. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6110. ;;
  6111. *nto* | *qnx*)
  6112. _LT_TAGVAR(ld_shlibs, $1)=yes
  6113. ;;
  6114. openbsd* | bitrig*)
  6115. if test -f /usr/libexec/ld.so; then
  6116. _LT_TAGVAR(hardcode_direct, $1)=yes
  6117. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6118. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6119. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6120. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6121. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  6122. _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'
  6123. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6124. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6125. fi
  6126. output_verbose_link_cmd=func_echo_all
  6127. else
  6128. _LT_TAGVAR(ld_shlibs, $1)=no
  6129. fi
  6130. ;;
  6131. osf3* | osf4* | osf5*)
  6132. case $cc_basename in
  6133. KCC*)
  6134. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6135. # KCC will only create a shared library if the output file
  6136. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6137. # to its proper name (with version) after linking.
  6138. _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'
  6139. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6140. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6141. # Archives containing C++ object files must be created using
  6142. # the KAI C++ compiler.
  6143. case $host in
  6144. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6145. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6146. esac
  6147. ;;
  6148. RCC*)
  6149. # Rational C++ 2.4.1
  6150. # FIXME: insert proper C++ library support
  6151. _LT_TAGVAR(ld_shlibs, $1)=no
  6152. ;;
  6153. cxx*)
  6154. case $host in
  6155. osf3*)
  6156. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6157. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  6158. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6159. ;;
  6160. *)
  6161. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6162. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  6163. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6164. echo "-hidden">> $lib.exp~
  6165. $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~
  6166. $RM $lib.exp'
  6167. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6168. ;;
  6169. esac
  6170. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6171. # Commands to make compiler produce verbose output that lists
  6172. # what "hidden" libraries, object files and flags are used when
  6173. # linking a shared library.
  6174. #
  6175. # There doesn't appear to be a way to prevent this compiler from
  6176. # explicitly linking system object files so we need to strip them
  6177. # from the output so that they don't get included in the library
  6178. # dependencies.
  6179. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6180. ;;
  6181. *)
  6182. if test yes,no = "$GXX,$with_gnu_ld"; then
  6183. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6184. case $host in
  6185. osf3*)
  6186. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  6187. ;;
  6188. *)
  6189. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  6190. ;;
  6191. esac
  6192. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6193. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6194. # Commands to make compiler produce verbose output that lists
  6195. # what "hidden" libraries, object files and flags are used when
  6196. # linking a shared library.
  6197. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6198. else
  6199. # FIXME: insert proper C++ library support
  6200. _LT_TAGVAR(ld_shlibs, $1)=no
  6201. fi
  6202. ;;
  6203. esac
  6204. ;;
  6205. psos*)
  6206. # FIXME: insert proper C++ library support
  6207. _LT_TAGVAR(ld_shlibs, $1)=no
  6208. ;;
  6209. sunos4*)
  6210. case $cc_basename in
  6211. CC*)
  6212. # Sun C++ 4.x
  6213. # FIXME: insert proper C++ library support
  6214. _LT_TAGVAR(ld_shlibs, $1)=no
  6215. ;;
  6216. lcc*)
  6217. # Lucid
  6218. # FIXME: insert proper C++ library support
  6219. _LT_TAGVAR(ld_shlibs, $1)=no
  6220. ;;
  6221. *)
  6222. # FIXME: insert proper C++ library support
  6223. _LT_TAGVAR(ld_shlibs, $1)=no
  6224. ;;
  6225. esac
  6226. ;;
  6227. solaris*)
  6228. case $cc_basename in
  6229. CC* | sunCC*)
  6230. # Sun C++ 4.2, 5.x and Centerline C++
  6231. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6232. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6233. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6234. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6235. $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'
  6236. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6237. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6238. case $host_os in
  6239. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6240. *)
  6241. # The compiler driver will combine and reorder linker options,
  6242. # but understands '-z linker_flag'.
  6243. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6244. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6245. ;;
  6246. esac
  6247. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6248. output_verbose_link_cmd='func_echo_all'
  6249. # Archives containing C++ object files must be created using
  6250. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6251. # necessary to make sure instantiated templates are included
  6252. # in the archive.
  6253. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6254. ;;
  6255. gcx*)
  6256. # Green Hills C++ Compiler
  6257. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6258. # The C++ compiler must be used to create the archive.
  6259. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6260. ;;
  6261. *)
  6262. # GNU C++ compiler with Solaris linker
  6263. if test yes,no = "$GXX,$with_gnu_ld"; then
  6264. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  6265. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6266. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6267. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6268. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6269. # Commands to make compiler produce verbose output that lists
  6270. # what "hidden" libraries, object files and flags are used when
  6271. # linking a shared library.
  6272. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6273. else
  6274. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  6275. # platform.
  6276. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6277. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6278. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6279. # Commands to make compiler produce verbose output that lists
  6280. # what "hidden" libraries, object files and flags are used when
  6281. # linking a shared library.
  6282. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6283. fi
  6284. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  6285. case $host_os in
  6286. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6287. *)
  6288. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6289. ;;
  6290. esac
  6291. fi
  6292. ;;
  6293. esac
  6294. ;;
  6295. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6296. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6297. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6298. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6299. runpath_var='LD_RUN_PATH'
  6300. case $cc_basename in
  6301. CC*)
  6302. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6303. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6304. ;;
  6305. *)
  6306. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6307. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6308. ;;
  6309. esac
  6310. ;;
  6311. sysv5* | sco3.2v5* | sco5v6*)
  6312. # Note: We CANNOT use -z defs as we might desire, because we do not
  6313. # link with -lc, and that would cause any symbols used from libc to
  6314. # always be unresolved, which means just about no library would
  6315. # ever link correctly. If we're not using GNU ld we use -z text
  6316. # though, which does catch some bad symbols but isn't as heavy-handed
  6317. # as -z defs.
  6318. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6319. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6320. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6321. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6322. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6323. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6324. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6325. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6326. runpath_var='LD_RUN_PATH'
  6327. case $cc_basename in
  6328. CC*)
  6329. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6330. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6331. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6332. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6333. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6334. '"$_LT_TAGVAR(reload_cmds, $1)"
  6335. ;;
  6336. *)
  6337. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6338. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6339. ;;
  6340. esac
  6341. ;;
  6342. tandem*)
  6343. case $cc_basename in
  6344. NCC*)
  6345. # NonStop-UX NCC 3.20
  6346. # FIXME: insert proper C++ library support
  6347. _LT_TAGVAR(ld_shlibs, $1)=no
  6348. ;;
  6349. *)
  6350. # FIXME: insert proper C++ library support
  6351. _LT_TAGVAR(ld_shlibs, $1)=no
  6352. ;;
  6353. esac
  6354. ;;
  6355. vxworks*)
  6356. # FIXME: insert proper C++ library support
  6357. _LT_TAGVAR(ld_shlibs, $1)=no
  6358. ;;
  6359. *)
  6360. # FIXME: insert proper C++ library support
  6361. _LT_TAGVAR(ld_shlibs, $1)=no
  6362. ;;
  6363. esac
  6364. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6365. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6366. _LT_TAGVAR(GCC, $1)=$GXX
  6367. _LT_TAGVAR(LD, $1)=$LD
  6368. ## CAVEAT EMPTOR:
  6369. ## There is no encapsulation within the following macros, do not change
  6370. ## the running order or otherwise move them around unless you know exactly
  6371. ## what you are doing...
  6372. _LT_SYS_HIDDEN_LIBDEPS($1)
  6373. _LT_COMPILER_PIC($1)
  6374. _LT_COMPILER_C_O($1)
  6375. _LT_COMPILER_FILE_LOCKS($1)
  6376. _LT_LINKER_SHLIBS($1)
  6377. _LT_SYS_DYNAMIC_LINKER($1)
  6378. _LT_LINKER_HARDCODE_LIBPATH($1)
  6379. _LT_CONFIG($1)
  6380. fi # test -n "$compiler"
  6381. CC=$lt_save_CC
  6382. CFLAGS=$lt_save_CFLAGS
  6383. LDCXX=$LD
  6384. LD=$lt_save_LD
  6385. GCC=$lt_save_GCC
  6386. with_gnu_ld=$lt_save_with_gnu_ld
  6387. lt_cv_path_LDCXX=$lt_cv_path_LD
  6388. lt_cv_path_LD=$lt_save_path_LD
  6389. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6390. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6391. fi # test yes != "$_lt_caught_CXX_error"
  6392. AC_LANG_POP
  6393. ])# _LT_LANG_CXX_CONFIG
  6394. # _LT_FUNC_STRIPNAME_CNF
  6395. # ----------------------
  6396. # func_stripname_cnf prefix suffix name
  6397. # strip PREFIX and SUFFIX off of NAME.
  6398. # PREFIX and SUFFIX must not contain globbing or regex special
  6399. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6400. # dot (in which case that matches only a dot).
  6401. #
  6402. # This function is identical to the (non-XSI) version of func_stripname,
  6403. # except this one can be used by m4 code that may be executed by configure,
  6404. # rather than the libtool script.
  6405. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6406. AC_REQUIRE([_LT_DECL_SED])
  6407. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6408. func_stripname_cnf ()
  6409. {
  6410. case @S|@2 in
  6411. .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  6412. *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  6413. esac
  6414. } # func_stripname_cnf
  6415. ])# _LT_FUNC_STRIPNAME_CNF
  6416. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6417. # ---------------------------------
  6418. # Figure out "hidden" library dependencies from verbose
  6419. # compiler output when linking a shared library.
  6420. # Parse the compiler output and extract the necessary
  6421. # objects, libraries and library flags.
  6422. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6423. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6424. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6425. # Dependencies to place before and after the object being linked:
  6426. _LT_TAGVAR(predep_objects, $1)=
  6427. _LT_TAGVAR(postdep_objects, $1)=
  6428. _LT_TAGVAR(predeps, $1)=
  6429. _LT_TAGVAR(postdeps, $1)=
  6430. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6431. dnl we can't use the lt_simple_compile_test_code here,
  6432. dnl because it contains code intended for an executable,
  6433. dnl not a library. It's possible we should let each
  6434. dnl tag define a new lt_????_link_test_code variable,
  6435. dnl but it's only used here...
  6436. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6437. int a;
  6438. void foo (void) { a = 0; }
  6439. _LT_EOF
  6440. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6441. class Foo
  6442. {
  6443. public:
  6444. Foo (void) { a = 0; }
  6445. private:
  6446. int a;
  6447. };
  6448. _LT_EOF
  6449. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6450. subroutine foo
  6451. implicit none
  6452. integer*4 a
  6453. a=0
  6454. return
  6455. end
  6456. _LT_EOF
  6457. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6458. subroutine foo
  6459. implicit none
  6460. integer a
  6461. a=0
  6462. return
  6463. end
  6464. _LT_EOF
  6465. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6466. public class foo {
  6467. private int a;
  6468. public void bar (void) {
  6469. a = 0;
  6470. }
  6471. };
  6472. _LT_EOF
  6473. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6474. package foo
  6475. func foo() {
  6476. }
  6477. _LT_EOF
  6478. ])
  6479. _lt_libdeps_save_CFLAGS=$CFLAGS
  6480. case "$CC $CFLAGS " in #(
  6481. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6482. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6483. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6484. esac
  6485. dnl Parse the compiler output and extract the necessary
  6486. dnl objects, libraries and library flags.
  6487. if AC_TRY_EVAL(ac_compile); then
  6488. # Parse the compiler output and extract the necessary
  6489. # objects, libraries and library flags.
  6490. # Sentinel used to keep track of whether or not we are before
  6491. # the conftest object file.
  6492. pre_test_object_deps_done=no
  6493. for p in `eval "$output_verbose_link_cmd"`; do
  6494. case $prev$p in
  6495. -L* | -R* | -l*)
  6496. # Some compilers place space between "-{L,R}" and the path.
  6497. # Remove the space.
  6498. if test x-L = "$p" ||
  6499. test x-R = "$p"; then
  6500. prev=$p
  6501. continue
  6502. fi
  6503. # Expand the sysroot to ease extracting the directories later.
  6504. if test -z "$prev"; then
  6505. case $p in
  6506. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6507. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6508. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6509. esac
  6510. fi
  6511. case $p in
  6512. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6513. esac
  6514. if test no = "$pre_test_object_deps_done"; then
  6515. case $prev in
  6516. -L | -R)
  6517. # Internal compiler library paths should come after those
  6518. # provided the user. The postdeps already come after the
  6519. # user supplied libs so there is no need to process them.
  6520. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6521. _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  6522. else
  6523. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  6524. fi
  6525. ;;
  6526. # The "-l" case would never come before the object being
  6527. # linked, so don't bother handling this case.
  6528. esac
  6529. else
  6530. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6531. _LT_TAGVAR(postdeps, $1)=$prev$p
  6532. else
  6533. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  6534. fi
  6535. fi
  6536. prev=
  6537. ;;
  6538. *.lto.$objext) ;; # Ignore GCC LTO objects
  6539. *.$objext)
  6540. # This assumes that the test object file only shows up
  6541. # once in the compiler output.
  6542. if test "$p" = "conftest.$objext"; then
  6543. pre_test_object_deps_done=yes
  6544. continue
  6545. fi
  6546. if test no = "$pre_test_object_deps_done"; then
  6547. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6548. _LT_TAGVAR(predep_objects, $1)=$p
  6549. else
  6550. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6551. fi
  6552. else
  6553. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6554. _LT_TAGVAR(postdep_objects, $1)=$p
  6555. else
  6556. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6557. fi
  6558. fi
  6559. ;;
  6560. *) ;; # Ignore the rest.
  6561. esac
  6562. done
  6563. # Clean up.
  6564. rm -f a.out a.exe
  6565. else
  6566. echo "libtool.m4: error: problem compiling $1 test program"
  6567. fi
  6568. $RM -f confest.$objext
  6569. CFLAGS=$_lt_libdeps_save_CFLAGS
  6570. # PORTME: override above test on systems where it is broken
  6571. m4_if([$1], [CXX],
  6572. [case $host_os in
  6573. interix[[3-9]]*)
  6574. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6575. # hack all around it, let's just trust "g++" to DTRT.
  6576. _LT_TAGVAR(predep_objects,$1)=
  6577. _LT_TAGVAR(postdep_objects,$1)=
  6578. _LT_TAGVAR(postdeps,$1)=
  6579. ;;
  6580. linux*)
  6581. case `$CC -V 2>&1 | sed 5q` in
  6582. *Sun\ C*)
  6583. # Sun C++ 5.9
  6584. # The more standards-conforming stlport4 library is
  6585. # incompatible with the Cstd library. Avoid specifying
  6586. # it if it's in CXXFLAGS. Ignore libCrun as
  6587. # -library=stlport4 depends on it.
  6588. case " $CXX $CXXFLAGS " in
  6589. *" -library=stlport4 "*)
  6590. solaris_use_stlport4=yes
  6591. ;;
  6592. esac
  6593. if test yes != "$solaris_use_stlport4"; then
  6594. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6595. fi
  6596. ;;
  6597. esac
  6598. ;;
  6599. solaris*)
  6600. case $cc_basename in
  6601. CC* | sunCC*)
  6602. # The more standards-conforming stlport4 library is
  6603. # incompatible with the Cstd library. Avoid specifying
  6604. # it if it's in CXXFLAGS. Ignore libCrun as
  6605. # -library=stlport4 depends on it.
  6606. case " $CXX $CXXFLAGS " in
  6607. *" -library=stlport4 "*)
  6608. solaris_use_stlport4=yes
  6609. ;;
  6610. esac
  6611. # Adding this requires a known-good setup of shared libraries for
  6612. # Sun compiler versions before 5.6, else PIC objects from an old
  6613. # archive will be linked into the output, leading to subtle bugs.
  6614. if test yes != "$solaris_use_stlport4"; then
  6615. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6616. fi
  6617. ;;
  6618. esac
  6619. ;;
  6620. esac
  6621. ])
  6622. case " $_LT_TAGVAR(postdeps, $1) " in
  6623. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6624. esac
  6625. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6626. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6627. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  6628. fi
  6629. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6630. [The directories searched by this compiler when creating a shared library])
  6631. _LT_TAGDECL([], [predep_objects], [1],
  6632. [Dependencies to place before and after the objects being linked to
  6633. create a shared library])
  6634. _LT_TAGDECL([], [postdep_objects], [1])
  6635. _LT_TAGDECL([], [predeps], [1])
  6636. _LT_TAGDECL([], [postdeps], [1])
  6637. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6638. [The library search path used internally by the compiler when linking
  6639. a shared library])
  6640. ])# _LT_SYS_HIDDEN_LIBDEPS
  6641. # _LT_LANG_F77_CONFIG([TAG])
  6642. # --------------------------
  6643. # Ensure that the configuration variables for a Fortran 77 compiler are
  6644. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6645. # to write the compiler configuration to 'libtool'.
  6646. m4_defun([_LT_LANG_F77_CONFIG],
  6647. [AC_LANG_PUSH(Fortran 77)
  6648. if test -z "$F77" || test no = "$F77"; then
  6649. _lt_disable_F77=yes
  6650. fi
  6651. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6652. _LT_TAGVAR(allow_undefined_flag, $1)=
  6653. _LT_TAGVAR(always_export_symbols, $1)=no
  6654. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6655. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6656. _LT_TAGVAR(hardcode_direct, $1)=no
  6657. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6658. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6659. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6660. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6661. _LT_TAGVAR(hardcode_automatic, $1)=no
  6662. _LT_TAGVAR(inherit_rpath, $1)=no
  6663. _LT_TAGVAR(module_cmds, $1)=
  6664. _LT_TAGVAR(module_expsym_cmds, $1)=
  6665. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6666. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6667. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6668. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6669. _LT_TAGVAR(no_undefined_flag, $1)=
  6670. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6671. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6672. # Source file extension for f77 test sources.
  6673. ac_ext=f
  6674. # Object file extension for compiled f77 test sources.
  6675. objext=o
  6676. _LT_TAGVAR(objext, $1)=$objext
  6677. # No sense in running all these tests if we already determined that
  6678. # the F77 compiler isn't working. Some variables (like enable_shared)
  6679. # are currently assumed to apply to all compilers on this platform,
  6680. # and will be corrupted by setting them based on a non-working compiler.
  6681. if test yes != "$_lt_disable_F77"; then
  6682. # Code to be used in simple compile tests
  6683. lt_simple_compile_test_code="\
  6684. subroutine t
  6685. return
  6686. end
  6687. "
  6688. # Code to be used in simple link tests
  6689. lt_simple_link_test_code="\
  6690. program t
  6691. end
  6692. "
  6693. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6694. _LT_TAG_COMPILER
  6695. # save warnings/boilerplate of simple test code
  6696. _LT_COMPILER_BOILERPLATE
  6697. _LT_LINKER_BOILERPLATE
  6698. # Allow CC to be a program name with arguments.
  6699. lt_save_CC=$CC
  6700. lt_save_GCC=$GCC
  6701. lt_save_CFLAGS=$CFLAGS
  6702. CC=${F77-"f77"}
  6703. CFLAGS=$FFLAGS
  6704. compiler=$CC
  6705. _LT_TAGVAR(compiler, $1)=$CC
  6706. _LT_CC_BASENAME([$compiler])
  6707. GCC=$G77
  6708. if test -n "$compiler"; then
  6709. AC_MSG_CHECKING([if libtool supports shared libraries])
  6710. AC_MSG_RESULT([$can_build_shared])
  6711. AC_MSG_CHECKING([whether to build shared libraries])
  6712. test no = "$can_build_shared" && enable_shared=no
  6713. # On AIX, shared libraries and static libraries use the same namespace, and
  6714. # are all built from PIC.
  6715. case $host_os in
  6716. aix3*)
  6717. test yes = "$enable_shared" && enable_static=no
  6718. if test -n "$RANLIB"; then
  6719. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6720. postinstall_cmds='$RANLIB $lib'
  6721. fi
  6722. ;;
  6723. aix[[4-9]]*)
  6724. if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
  6725. test yes = "$enable_shared" && enable_static=no
  6726. fi
  6727. ;;
  6728. esac
  6729. AC_MSG_RESULT([$enable_shared])
  6730. AC_MSG_CHECKING([whether to build static libraries])
  6731. # Make sure either enable_shared or enable_static is yes.
  6732. test yes = "$enable_shared" || enable_static=yes
  6733. AC_MSG_RESULT([$enable_static])
  6734. _LT_TAGVAR(GCC, $1)=$G77
  6735. _LT_TAGVAR(LD, $1)=$LD
  6736. ## CAVEAT EMPTOR:
  6737. ## There is no encapsulation within the following macros, do not change
  6738. ## the running order or otherwise move them around unless you know exactly
  6739. ## what you are doing...
  6740. _LT_COMPILER_PIC($1)
  6741. _LT_COMPILER_C_O($1)
  6742. _LT_COMPILER_FILE_LOCKS($1)
  6743. _LT_LINKER_SHLIBS($1)
  6744. _LT_SYS_DYNAMIC_LINKER($1)
  6745. _LT_LINKER_HARDCODE_LIBPATH($1)
  6746. _LT_CONFIG($1)
  6747. fi # test -n "$compiler"
  6748. GCC=$lt_save_GCC
  6749. CC=$lt_save_CC
  6750. CFLAGS=$lt_save_CFLAGS
  6751. fi # test yes != "$_lt_disable_F77"
  6752. AC_LANG_POP
  6753. ])# _LT_LANG_F77_CONFIG
  6754. # _LT_LANG_FC_CONFIG([TAG])
  6755. # -------------------------
  6756. # Ensure that the configuration variables for a Fortran compiler are
  6757. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6758. # to write the compiler configuration to 'libtool'.
  6759. m4_defun([_LT_LANG_FC_CONFIG],
  6760. [AC_LANG_PUSH(Fortran)
  6761. if test -z "$FC" || test no = "$FC"; then
  6762. _lt_disable_FC=yes
  6763. fi
  6764. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6765. _LT_TAGVAR(allow_undefined_flag, $1)=
  6766. _LT_TAGVAR(always_export_symbols, $1)=no
  6767. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6768. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6769. _LT_TAGVAR(hardcode_direct, $1)=no
  6770. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6771. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6772. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6773. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6774. _LT_TAGVAR(hardcode_automatic, $1)=no
  6775. _LT_TAGVAR(inherit_rpath, $1)=no
  6776. _LT_TAGVAR(module_cmds, $1)=
  6777. _LT_TAGVAR(module_expsym_cmds, $1)=
  6778. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6779. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6780. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6781. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6782. _LT_TAGVAR(no_undefined_flag, $1)=
  6783. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6784. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6785. # Source file extension for fc test sources.
  6786. ac_ext=${ac_fc_srcext-f}
  6787. # Object file extension for compiled fc test sources.
  6788. objext=o
  6789. _LT_TAGVAR(objext, $1)=$objext
  6790. # No sense in running all these tests if we already determined that
  6791. # the FC compiler isn't working. Some variables (like enable_shared)
  6792. # are currently assumed to apply to all compilers on this platform,
  6793. # and will be corrupted by setting them based on a non-working compiler.
  6794. if test yes != "$_lt_disable_FC"; then
  6795. # Code to be used in simple compile tests
  6796. lt_simple_compile_test_code="\
  6797. subroutine t
  6798. return
  6799. end
  6800. "
  6801. # Code to be used in simple link tests
  6802. lt_simple_link_test_code="\
  6803. program t
  6804. end
  6805. "
  6806. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6807. _LT_TAG_COMPILER
  6808. # save warnings/boilerplate of simple test code
  6809. _LT_COMPILER_BOILERPLATE
  6810. _LT_LINKER_BOILERPLATE
  6811. # Allow CC to be a program name with arguments.
  6812. lt_save_CC=$CC
  6813. lt_save_GCC=$GCC
  6814. lt_save_CFLAGS=$CFLAGS
  6815. CC=${FC-"f95"}
  6816. CFLAGS=$FCFLAGS
  6817. compiler=$CC
  6818. GCC=$ac_cv_fc_compiler_gnu
  6819. _LT_TAGVAR(compiler, $1)=$CC
  6820. _LT_CC_BASENAME([$compiler])
  6821. if test -n "$compiler"; then
  6822. AC_MSG_CHECKING([if libtool supports shared libraries])
  6823. AC_MSG_RESULT([$can_build_shared])
  6824. AC_MSG_CHECKING([whether to build shared libraries])
  6825. test no = "$can_build_shared" && enable_shared=no
  6826. # On AIX, shared libraries and static libraries use the same namespace, and
  6827. # are all built from PIC.
  6828. case $host_os in
  6829. aix3*)
  6830. test yes = "$enable_shared" && enable_static=no
  6831. if test -n "$RANLIB"; then
  6832. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6833. postinstall_cmds='$RANLIB $lib'
  6834. fi
  6835. ;;
  6836. aix[[4-9]]*)
  6837. if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
  6838. test yes = "$enable_shared" && enable_static=no
  6839. fi
  6840. ;;
  6841. esac
  6842. AC_MSG_RESULT([$enable_shared])
  6843. AC_MSG_CHECKING([whether to build static libraries])
  6844. # Make sure either enable_shared or enable_static is yes.
  6845. test yes = "$enable_shared" || enable_static=yes
  6846. AC_MSG_RESULT([$enable_static])
  6847. _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  6848. _LT_TAGVAR(LD, $1)=$LD
  6849. ## CAVEAT EMPTOR:
  6850. ## There is no encapsulation within the following macros, do not change
  6851. ## the running order or otherwise move them around unless you know exactly
  6852. ## what you are doing...
  6853. _LT_SYS_HIDDEN_LIBDEPS($1)
  6854. _LT_COMPILER_PIC($1)
  6855. _LT_COMPILER_C_O($1)
  6856. _LT_COMPILER_FILE_LOCKS($1)
  6857. _LT_LINKER_SHLIBS($1)
  6858. _LT_SYS_DYNAMIC_LINKER($1)
  6859. _LT_LINKER_HARDCODE_LIBPATH($1)
  6860. _LT_CONFIG($1)
  6861. fi # test -n "$compiler"
  6862. GCC=$lt_save_GCC
  6863. CC=$lt_save_CC
  6864. CFLAGS=$lt_save_CFLAGS
  6865. fi # test yes != "$_lt_disable_FC"
  6866. AC_LANG_POP
  6867. ])# _LT_LANG_FC_CONFIG
  6868. # _LT_LANG_GCJ_CONFIG([TAG])
  6869. # --------------------------
  6870. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6871. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6872. # to write the compiler configuration to 'libtool'.
  6873. m4_defun([_LT_LANG_GCJ_CONFIG],
  6874. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6875. AC_LANG_SAVE
  6876. # Source file extension for Java test sources.
  6877. ac_ext=java
  6878. # Object file extension for compiled Java test sources.
  6879. objext=o
  6880. _LT_TAGVAR(objext, $1)=$objext
  6881. # Code to be used in simple compile tests
  6882. lt_simple_compile_test_code="class foo {}"
  6883. # Code to be used in simple link tests
  6884. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6885. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6886. _LT_TAG_COMPILER
  6887. # save warnings/boilerplate of simple test code
  6888. _LT_COMPILER_BOILERPLATE
  6889. _LT_LINKER_BOILERPLATE
  6890. # Allow CC to be a program name with arguments.
  6891. lt_save_CC=$CC
  6892. lt_save_CFLAGS=$CFLAGS
  6893. lt_save_GCC=$GCC
  6894. GCC=yes
  6895. CC=${GCJ-"gcj"}
  6896. CFLAGS=$GCJFLAGS
  6897. compiler=$CC
  6898. _LT_TAGVAR(compiler, $1)=$CC
  6899. _LT_TAGVAR(LD, $1)=$LD
  6900. _LT_CC_BASENAME([$compiler])
  6901. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6902. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6903. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6904. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6905. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6906. if test -n "$compiler"; then
  6907. _LT_COMPILER_NO_RTTI($1)
  6908. _LT_COMPILER_PIC($1)
  6909. _LT_COMPILER_C_O($1)
  6910. _LT_COMPILER_FILE_LOCKS($1)
  6911. _LT_LINKER_SHLIBS($1)
  6912. _LT_LINKER_HARDCODE_LIBPATH($1)
  6913. _LT_CONFIG($1)
  6914. fi
  6915. AC_LANG_RESTORE
  6916. GCC=$lt_save_GCC
  6917. CC=$lt_save_CC
  6918. CFLAGS=$lt_save_CFLAGS
  6919. ])# _LT_LANG_GCJ_CONFIG
  6920. # _LT_LANG_GO_CONFIG([TAG])
  6921. # --------------------------
  6922. # Ensure that the configuration variables for the GNU Go compiler
  6923. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6924. # to write the compiler configuration to 'libtool'.
  6925. m4_defun([_LT_LANG_GO_CONFIG],
  6926. [AC_REQUIRE([LT_PROG_GO])dnl
  6927. AC_LANG_SAVE
  6928. # Source file extension for Go test sources.
  6929. ac_ext=go
  6930. # Object file extension for compiled Go test sources.
  6931. objext=o
  6932. _LT_TAGVAR(objext, $1)=$objext
  6933. # Code to be used in simple compile tests
  6934. lt_simple_compile_test_code="package main; func main() { }"
  6935. # Code to be used in simple link tests
  6936. lt_simple_link_test_code='package main; func main() { }'
  6937. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6938. _LT_TAG_COMPILER
  6939. # save warnings/boilerplate of simple test code
  6940. _LT_COMPILER_BOILERPLATE
  6941. _LT_LINKER_BOILERPLATE
  6942. # Allow CC to be a program name with arguments.
  6943. lt_save_CC=$CC
  6944. lt_save_CFLAGS=$CFLAGS
  6945. lt_save_GCC=$GCC
  6946. GCC=yes
  6947. CC=${GOC-"gccgo"}
  6948. CFLAGS=$GOFLAGS
  6949. compiler=$CC
  6950. _LT_TAGVAR(compiler, $1)=$CC
  6951. _LT_TAGVAR(LD, $1)=$LD
  6952. _LT_CC_BASENAME([$compiler])
  6953. # Go did not exist at the time GCC didn't implicitly link libc in.
  6954. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6955. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6956. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6957. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6958. if test -n "$compiler"; then
  6959. _LT_COMPILER_NO_RTTI($1)
  6960. _LT_COMPILER_PIC($1)
  6961. _LT_COMPILER_C_O($1)
  6962. _LT_COMPILER_FILE_LOCKS($1)
  6963. _LT_LINKER_SHLIBS($1)
  6964. _LT_LINKER_HARDCODE_LIBPATH($1)
  6965. _LT_CONFIG($1)
  6966. fi
  6967. AC_LANG_RESTORE
  6968. GCC=$lt_save_GCC
  6969. CC=$lt_save_CC
  6970. CFLAGS=$lt_save_CFLAGS
  6971. ])# _LT_LANG_GO_CONFIG
  6972. # _LT_LANG_RC_CONFIG([TAG])
  6973. # -------------------------
  6974. # Ensure that the configuration variables for the Windows resource compiler
  6975. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6976. # to write the compiler configuration to 'libtool'.
  6977. m4_defun([_LT_LANG_RC_CONFIG],
  6978. [AC_REQUIRE([LT_PROG_RC])dnl
  6979. AC_LANG_SAVE
  6980. # Source file extension for RC test sources.
  6981. ac_ext=rc
  6982. # Object file extension for compiled RC test sources.
  6983. objext=o
  6984. _LT_TAGVAR(objext, $1)=$objext
  6985. # Code to be used in simple compile tests
  6986. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6987. # Code to be used in simple link tests
  6988. lt_simple_link_test_code=$lt_simple_compile_test_code
  6989. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6990. _LT_TAG_COMPILER
  6991. # save warnings/boilerplate of simple test code
  6992. _LT_COMPILER_BOILERPLATE
  6993. _LT_LINKER_BOILERPLATE
  6994. # Allow CC to be a program name with arguments.
  6995. lt_save_CC=$CC
  6996. lt_save_CFLAGS=$CFLAGS
  6997. lt_save_GCC=$GCC
  6998. GCC=
  6999. CC=${RC-"windres"}
  7000. CFLAGS=
  7001. compiler=$CC
  7002. _LT_TAGVAR(compiler, $1)=$CC
  7003. _LT_CC_BASENAME([$compiler])
  7004. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7005. if test -n "$compiler"; then
  7006. :
  7007. _LT_CONFIG($1)
  7008. fi
  7009. GCC=$lt_save_GCC
  7010. AC_LANG_RESTORE
  7011. CC=$lt_save_CC
  7012. CFLAGS=$lt_save_CFLAGS
  7013. ])# _LT_LANG_RC_CONFIG
  7014. # LT_PROG_GCJ
  7015. # -----------
  7016. AC_DEFUN([LT_PROG_GCJ],
  7017. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7018. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7019. [AC_CHECK_TOOL(GCJ, gcj,)
  7020. test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  7021. AC_SUBST(GCJFLAGS)])])[]dnl
  7022. ])
  7023. # Old name:
  7024. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7025. dnl aclocal-1.4 backwards compatibility:
  7026. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7027. # LT_PROG_GO
  7028. # ----------
  7029. AC_DEFUN([LT_PROG_GO],
  7030. [AC_CHECK_TOOL(GOC, gccgo,)
  7031. ])
  7032. # LT_PROG_RC
  7033. # ----------
  7034. AC_DEFUN([LT_PROG_RC],
  7035. [AC_CHECK_TOOL(RC, windres,)
  7036. ])
  7037. # Old name:
  7038. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7039. dnl aclocal-1.4 backwards compatibility:
  7040. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7041. # _LT_DECL_EGREP
  7042. # --------------
  7043. # If we don't have a new enough Autoconf to choose the best grep
  7044. # available, choose the one first in the user's PATH.
  7045. m4_defun([_LT_DECL_EGREP],
  7046. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7047. AC_REQUIRE([AC_PROG_FGREP])dnl
  7048. test -z "$GREP" && GREP=grep
  7049. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7050. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7051. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7052. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7053. AC_SUBST([GREP])
  7054. ])
  7055. # _LT_DECL_OBJDUMP
  7056. # --------------
  7057. # If we don't have a new enough Autoconf to choose the best objdump
  7058. # available, choose the one first in the user's PATH.
  7059. m4_defun([_LT_DECL_OBJDUMP],
  7060. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7061. test -z "$OBJDUMP" && OBJDUMP=objdump
  7062. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7063. AC_SUBST([OBJDUMP])
  7064. ])
  7065. # _LT_DECL_DLLTOOL
  7066. # ----------------
  7067. # Ensure DLLTOOL variable is set.
  7068. m4_defun([_LT_DECL_DLLTOOL],
  7069. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7070. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7071. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7072. AC_SUBST([DLLTOOL])
  7073. ])
  7074. # _LT_DECL_SED
  7075. # ------------
  7076. # Check for a fully-functional sed program, that truncates
  7077. # as few characters as possible. Prefer GNU sed if found.
  7078. m4_defun([_LT_DECL_SED],
  7079. [AC_PROG_SED
  7080. test -z "$SED" && SED=sed
  7081. Xsed="$SED -e 1s/^X//"
  7082. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7083. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7084. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7085. ])# _LT_DECL_SED
  7086. m4_ifndef([AC_PROG_SED], [
  7087. # NOTE: This macro has been submitted for inclusion into #
  7088. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7089. # a released version of Autoconf we should remove this #
  7090. # macro and use it instead. #
  7091. m4_defun([AC_PROG_SED],
  7092. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7093. AC_CACHE_VAL(lt_cv_path_SED,
  7094. [# Loop through the user's path and test for sed and gsed.
  7095. # Then use that list of sed's as ones to test for truncation.
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. test -z "$as_dir" && as_dir=.
  7101. for lt_ac_prog in sed gsed; do
  7102. for ac_exec_ext in '' $ac_executable_extensions; do
  7103. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7104. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7105. fi
  7106. done
  7107. done
  7108. done
  7109. IFS=$as_save_IFS
  7110. lt_ac_max=0
  7111. lt_ac_count=0
  7112. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7113. # along with /bin/sed that truncates output.
  7114. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7115. test ! -f "$lt_ac_sed" && continue
  7116. cat /dev/null > conftest.in
  7117. lt_ac_count=0
  7118. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7119. # Check for GNU sed and select it if it is found.
  7120. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7121. lt_cv_path_SED=$lt_ac_sed
  7122. break
  7123. fi
  7124. while true; do
  7125. cat conftest.in conftest.in >conftest.tmp
  7126. mv conftest.tmp conftest.in
  7127. cp conftest.in conftest.nl
  7128. echo >>conftest.nl
  7129. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7130. cmp -s conftest.out conftest.nl || break
  7131. # 10000 chars as input seems more than enough
  7132. test 10 -lt "$lt_ac_count" && break
  7133. lt_ac_count=`expr $lt_ac_count + 1`
  7134. if test "$lt_ac_count" -gt "$lt_ac_max"; then
  7135. lt_ac_max=$lt_ac_count
  7136. lt_cv_path_SED=$lt_ac_sed
  7137. fi
  7138. done
  7139. done
  7140. ])
  7141. SED=$lt_cv_path_SED
  7142. AC_SUBST([SED])
  7143. AC_MSG_RESULT([$SED])
  7144. ])#AC_PROG_SED
  7145. ])#m4_ifndef
  7146. # Old name:
  7147. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7148. dnl aclocal-1.4 backwards compatibility:
  7149. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7150. # _LT_CHECK_SHELL_FEATURES
  7151. # ------------------------
  7152. # Find out whether the shell is Bourne or XSI compatible,
  7153. # or has some other useful features.
  7154. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7155. [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7156. lt_unset=unset
  7157. else
  7158. lt_unset=false
  7159. fi
  7160. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7161. # test EBCDIC or ASCII
  7162. case `echo X|tr X '\101'` in
  7163. A) # ASCII based system
  7164. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7165. lt_SP2NL='tr \040 \012'
  7166. lt_NL2SP='tr \015\012 \040\040'
  7167. ;;
  7168. *) # EBCDIC based system
  7169. lt_SP2NL='tr \100 \n'
  7170. lt_NL2SP='tr \r\n \100\100'
  7171. ;;
  7172. esac
  7173. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7174. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7175. ])# _LT_CHECK_SHELL_FEATURES
  7176. # _LT_PATH_CONVERSION_FUNCTIONS
  7177. # -----------------------------
  7178. # Determine what file name conversion functions should be used by
  7179. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7180. # for certain cross-compile configurations and native mingw.
  7181. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7182. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7183. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7184. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7185. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7186. [case $host in
  7187. *-*-mingw* )
  7188. case $build in
  7189. *-*-mingw* ) # actually msys
  7190. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7191. ;;
  7192. *-*-cygwin* )
  7193. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7194. ;;
  7195. * ) # otherwise, assume *nix
  7196. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7197. ;;
  7198. esac
  7199. ;;
  7200. *-*-cygwin* )
  7201. case $build in
  7202. *-*-mingw* ) # actually msys
  7203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7204. ;;
  7205. *-*-cygwin* )
  7206. lt_cv_to_host_file_cmd=func_convert_file_noop
  7207. ;;
  7208. * ) # otherwise, assume *nix
  7209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7210. ;;
  7211. esac
  7212. ;;
  7213. * ) # unhandled hosts (and "normal" native builds)
  7214. lt_cv_to_host_file_cmd=func_convert_file_noop
  7215. ;;
  7216. esac
  7217. ])
  7218. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7219. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7220. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7221. [0], [convert $build file names to $host format])dnl
  7222. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7223. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7224. [#assume ordinary cross tools, or native build.
  7225. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7226. case $host in
  7227. *-*-mingw* )
  7228. case $build in
  7229. *-*-mingw* ) # actually msys
  7230. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7231. ;;
  7232. esac
  7233. ;;
  7234. esac
  7235. ])
  7236. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7237. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7238. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7239. [0], [convert $build files to toolchain format])dnl
  7240. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7241. # Helper functions for option handling. -*- Autoconf -*-
  7242. #
  7243. # Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software
  7244. # Foundation, Inc.
  7245. # Written by Gary V. Vaughan, 2004
  7246. #
  7247. # This file is free software; the Free Software Foundation gives
  7248. # unlimited permission to copy and/or distribute it, with or without
  7249. # modifications, as long as this notice is preserved.
  7250. # serial 8 ltoptions.m4
  7251. # This is to help aclocal find these macros, as it can't see m4_define.
  7252. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7253. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7254. # ------------------------------------------
  7255. m4_define([_LT_MANGLE_OPTION],
  7256. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7257. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7258. # ---------------------------------------
  7259. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7260. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7261. # saved as a flag.
  7262. m4_define([_LT_SET_OPTION],
  7263. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7264. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7265. _LT_MANGLE_DEFUN([$1], [$2]),
  7266. [m4_warning([Unknown $1 option '$2'])])[]dnl
  7267. ])
  7268. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7269. # ------------------------------------------------------------
  7270. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7271. m4_define([_LT_IF_OPTION],
  7272. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7273. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7274. # -------------------------------------------------------
  7275. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7276. # are set.
  7277. m4_define([_LT_UNLESS_OPTIONS],
  7278. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7279. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7280. [m4_define([$0_found])])])[]dnl
  7281. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7282. ])[]dnl
  7283. ])
  7284. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7285. # ----------------------------------------
  7286. # OPTION-LIST is a space-separated list of Libtool options associated
  7287. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7288. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7289. # the unknown option and exit.
  7290. m4_defun([_LT_SET_OPTIONS],
  7291. [# Set options
  7292. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7293. [_LT_SET_OPTION([$1], _LT_Option)])
  7294. m4_if([$1],[LT_INIT],[
  7295. dnl
  7296. dnl Simply set some default values (i.e off) if boolean options were not
  7297. dnl specified:
  7298. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7299. ])
  7300. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7301. ])
  7302. dnl
  7303. dnl If no reference was made to various pairs of opposing options, then
  7304. dnl we run the default mode handler for the pair. For example, if neither
  7305. dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
  7306. dnl archives by default:
  7307. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7308. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7309. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7310. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7311. [_LT_ENABLE_FAST_INSTALL])
  7312. ])
  7313. ])# _LT_SET_OPTIONS
  7314. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7315. # -----------------------------------------
  7316. m4_define([_LT_MANGLE_DEFUN],
  7317. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7318. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7319. # -----------------------------------------------
  7320. m4_define([LT_OPTION_DEFINE],
  7321. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7322. ])# LT_OPTION_DEFINE
  7323. # dlopen
  7324. # ------
  7325. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7326. ])
  7327. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7328. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7329. AC_DIAGNOSE([obsolete],
  7330. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7331. put the 'dlopen' option into LT_INIT's first parameter.])
  7332. ])
  7333. dnl aclocal-1.4 backwards compatibility:
  7334. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7335. # win32-dll
  7336. # ---------
  7337. # Declare package support for building win32 dll's.
  7338. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7339. [enable_win32_dll=yes
  7340. case $host in
  7341. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7342. AC_CHECK_TOOL(AS, as, false)
  7343. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7344. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7345. ;;
  7346. esac
  7347. test -z "$AS" && AS=as
  7348. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7349. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7350. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7351. test -z "$OBJDUMP" && OBJDUMP=objdump
  7352. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7353. ])# win32-dll
  7354. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7355. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7356. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7357. AC_DIAGNOSE([obsolete],
  7358. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7359. put the 'win32-dll' option into LT_INIT's first parameter.])
  7360. ])
  7361. dnl aclocal-1.4 backwards compatibility:
  7362. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7363. # _LT_ENABLE_SHARED([DEFAULT])
  7364. # ----------------------------
  7365. # implement the --enable-shared flag, and supports the 'shared' and
  7366. # 'disable-shared' LT_INIT options.
  7367. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7368. m4_define([_LT_ENABLE_SHARED],
  7369. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7370. AC_ARG_ENABLE([shared],
  7371. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7372. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7373. [p=${PACKAGE-default}
  7374. case $enableval in
  7375. yes) enable_shared=yes ;;
  7376. no) enable_shared=no ;;
  7377. *)
  7378. enable_shared=no
  7379. # Look at the argument we got. We use all the common list separators.
  7380. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7381. for pkg in $enableval; do
  7382. IFS=$lt_save_ifs
  7383. if test "X$pkg" = "X$p"; then
  7384. enable_shared=yes
  7385. fi
  7386. done
  7387. IFS=$lt_save_ifs
  7388. ;;
  7389. esac],
  7390. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7391. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7392. [Whether or not to build shared libraries])
  7393. ])# _LT_ENABLE_SHARED
  7394. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7395. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7396. # Old names:
  7397. AC_DEFUN([AC_ENABLE_SHARED],
  7398. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7399. ])
  7400. AC_DEFUN([AC_DISABLE_SHARED],
  7401. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7402. ])
  7403. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7404. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7405. dnl aclocal-1.4 backwards compatibility:
  7406. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7407. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7408. # _LT_ENABLE_STATIC([DEFAULT])
  7409. # ----------------------------
  7410. # implement the --enable-static flag, and support the 'static' and
  7411. # 'disable-static' LT_INIT options.
  7412. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7413. m4_define([_LT_ENABLE_STATIC],
  7414. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7415. AC_ARG_ENABLE([static],
  7416. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7417. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7418. [p=${PACKAGE-default}
  7419. case $enableval in
  7420. yes) enable_static=yes ;;
  7421. no) enable_static=no ;;
  7422. *)
  7423. enable_static=no
  7424. # Look at the argument we got. We use all the common list separators.
  7425. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7426. for pkg in $enableval; do
  7427. IFS=$lt_save_ifs
  7428. if test "X$pkg" = "X$p"; then
  7429. enable_static=yes
  7430. fi
  7431. done
  7432. IFS=$lt_save_ifs
  7433. ;;
  7434. esac],
  7435. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7436. _LT_DECL([build_old_libs], [enable_static], [0],
  7437. [Whether or not to build static libraries])
  7438. ])# _LT_ENABLE_STATIC
  7439. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7440. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7441. # Old names:
  7442. AC_DEFUN([AC_ENABLE_STATIC],
  7443. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7444. ])
  7445. AC_DEFUN([AC_DISABLE_STATIC],
  7446. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7447. ])
  7448. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7449. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7450. dnl aclocal-1.4 backwards compatibility:
  7451. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7452. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7453. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7454. # ----------------------------------
  7455. # implement the --enable-fast-install flag, and support the 'fast-install'
  7456. # and 'disable-fast-install' LT_INIT options.
  7457. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7458. m4_define([_LT_ENABLE_FAST_INSTALL],
  7459. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7460. AC_ARG_ENABLE([fast-install],
  7461. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7462. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7463. [p=${PACKAGE-default}
  7464. case $enableval in
  7465. yes) enable_fast_install=yes ;;
  7466. no) enable_fast_install=no ;;
  7467. *)
  7468. enable_fast_install=no
  7469. # Look at the argument we got. We use all the common list separators.
  7470. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7471. for pkg in $enableval; do
  7472. IFS=$lt_save_ifs
  7473. if test "X$pkg" = "X$p"; then
  7474. enable_fast_install=yes
  7475. fi
  7476. done
  7477. IFS=$lt_save_ifs
  7478. ;;
  7479. esac],
  7480. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7481. _LT_DECL([fast_install], [enable_fast_install], [0],
  7482. [Whether or not to optimize for fast installation])dnl
  7483. ])# _LT_ENABLE_FAST_INSTALL
  7484. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7485. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7486. # Old names:
  7487. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7488. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7489. AC_DIAGNOSE([obsolete],
  7490. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7491. the 'fast-install' option into LT_INIT's first parameter.])
  7492. ])
  7493. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7494. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7495. AC_DIAGNOSE([obsolete],
  7496. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7497. the 'disable-fast-install' option into LT_INIT's first parameter.])
  7498. ])
  7499. dnl aclocal-1.4 backwards compatibility:
  7500. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7501. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7502. # _LT_WITH_PIC([MODE])
  7503. # --------------------
  7504. # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
  7505. # LT_INIT options.
  7506. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
  7507. m4_define([_LT_WITH_PIC],
  7508. [AC_ARG_WITH([pic],
  7509. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7510. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7511. [lt_p=${PACKAGE-default}
  7512. case $withval in
  7513. yes|no) pic_mode=$withval ;;
  7514. *)
  7515. pic_mode=default
  7516. # Look at the argument we got. We use all the common list separators.
  7517. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7518. for lt_pkg in $withval; do
  7519. IFS=$lt_save_ifs
  7520. if test "X$lt_pkg" = "X$lt_p"; then
  7521. pic_mode=yes
  7522. fi
  7523. done
  7524. IFS=$lt_save_ifs
  7525. ;;
  7526. esac],
  7527. [pic_mode=m4_default([$1], [default])])
  7528. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7529. ])# _LT_WITH_PIC
  7530. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7531. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7532. # Old name:
  7533. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7534. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7535. AC_DIAGNOSE([obsolete],
  7536. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7537. put the 'pic-only' option into LT_INIT's first parameter.])
  7538. ])
  7539. dnl aclocal-1.4 backwards compatibility:
  7540. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7541. m4_define([_LTDL_MODE], [])
  7542. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7543. [m4_define([_LTDL_MODE], [nonrecursive])])
  7544. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7545. [m4_define([_LTDL_MODE], [recursive])])
  7546. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7547. [m4_define([_LTDL_MODE], [subproject])])
  7548. m4_define([_LTDL_TYPE], [])
  7549. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7550. [m4_define([_LTDL_TYPE], [installable])])
  7551. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7552. [m4_define([_LTDL_TYPE], [convenience])])
  7553. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7554. #
  7555. # Copyright (C) 2004-2005, 2007-2008, 2011-2013 Free Software
  7556. # Foundation, Inc.
  7557. # Written by Gary V. Vaughan, 2004
  7558. #
  7559. # This file is free software; the Free Software Foundation gives
  7560. # unlimited permission to copy and/or distribute it, with or without
  7561. # modifications, as long as this notice is preserved.
  7562. # serial 6 ltsugar.m4
  7563. # This is to help aclocal find these macros, as it can't see m4_define.
  7564. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7565. # lt_join(SEP, ARG1, [ARG2...])
  7566. # -----------------------------
  7567. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7568. # associated separator.
  7569. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7570. # versions in m4sugar had bugs.
  7571. m4_define([lt_join],
  7572. [m4_if([$#], [1], [],
  7573. [$#], [2], [[$2]],
  7574. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7575. m4_define([_lt_join],
  7576. [m4_if([$#$2], [2], [],
  7577. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7578. # lt_car(LIST)
  7579. # lt_cdr(LIST)
  7580. # ------------
  7581. # Manipulate m4 lists.
  7582. # These macros are necessary as long as will still need to support
  7583. # Autoconf-2.59, which quotes differently.
  7584. m4_define([lt_car], [[$1]])
  7585. m4_define([lt_cdr],
  7586. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7587. [$#], 1, [],
  7588. [m4_dquote(m4_shift($@))])])
  7589. m4_define([lt_unquote], $1)
  7590. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7591. # ------------------------------------------
  7592. # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
  7593. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7594. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7595. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7596. # than defined and empty).
  7597. #
  7598. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7599. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7600. m4_define([lt_append],
  7601. [m4_define([$1],
  7602. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7603. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7604. # ----------------------------------------------------------
  7605. # Produce a SEP delimited list of all paired combinations of elements of
  7606. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7607. # has the form PREFIXmINFIXSUFFIXn.
  7608. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7609. m4_define([lt_combine],
  7610. [m4_if(m4_eval([$# > 3]), [1],
  7611. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7612. [[m4_foreach([_Lt_prefix], [$2],
  7613. [m4_foreach([_Lt_suffix],
  7614. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7615. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7616. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7617. # -----------------------------------------------------------------------
  7618. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7619. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7620. m4_define([lt_if_append_uniq],
  7621. [m4_ifdef([$1],
  7622. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7623. [lt_append([$1], [$2], [$3])$4],
  7624. [$5])],
  7625. [lt_append([$1], [$2], [$3])$4])])
  7626. # lt_dict_add(DICT, KEY, VALUE)
  7627. # -----------------------------
  7628. m4_define([lt_dict_add],
  7629. [m4_define([$1($2)], [$3])])
  7630. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7631. # --------------------------------------------
  7632. m4_define([lt_dict_add_subkey],
  7633. [m4_define([$1($2:$3)], [$4])])
  7634. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7635. # ----------------------------------
  7636. m4_define([lt_dict_fetch],
  7637. [m4_ifval([$3],
  7638. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7639. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7640. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7641. # -----------------------------------------------------------------
  7642. m4_define([lt_if_dict_fetch],
  7643. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7644. [$5],
  7645. [$6])])
  7646. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7647. # --------------------------------------------------------------
  7648. m4_define([lt_dict_filter],
  7649. [m4_if([$5], [], [],
  7650. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7651. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7652. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7653. ])
  7654. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7655. #
  7656. # Copyright (C) 2004, 2011-2013 Free Software Foundation, Inc.
  7657. # Written by Scott James Remnant, 2004
  7658. #
  7659. # This file is free software; the Free Software Foundation gives
  7660. # unlimited permission to copy and/or distribute it, with or without
  7661. # modifications, as long as this notice is preserved.
  7662. # @configure_input@
  7663. # serial 4038 ltversion.m4
  7664. # This file is part of GNU Libtool
  7665. m4_define([LT_PACKAGE_VERSION], [2.4.2.418])
  7666. m4_define([LT_PACKAGE_REVISION], [2.4.2.418])
  7667. AC_DEFUN([LTVERSION_VERSION],
  7668. [macro_version='2.4.2.418'
  7669. macro_revision='2.4.2.418'
  7670. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7671. _LT_DECL(, macro_revision, 0)
  7672. ])
  7673. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7674. #
  7675. # Copyright (C) 2004-2005, 2007, 2009, 2011-2013 Free Software
  7676. # Foundation, Inc.
  7677. # Written by Scott James Remnant, 2004.
  7678. #
  7679. # This file is free software; the Free Software Foundation gives
  7680. # unlimited permission to copy and/or distribute it, with or without
  7681. # modifications, as long as this notice is preserved.
  7682. # serial 5 lt~obsolete.m4
  7683. # These exist entirely to fool aclocal when bootstrapping libtool.
  7684. #
  7685. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
  7686. # which have later been changed to m4_define as they aren't part of the
  7687. # exported API, or moved to Autoconf or Automake where they belong.
  7688. #
  7689. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7690. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7691. # using a macro with the same name in our local m4/libtool.m4 it'll
  7692. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7693. # and doesn't know about Autoconf macros at all.)
  7694. #
  7695. # So we provide this file, which has a silly filename so it's always
  7696. # included after everything else. This provides aclocal with the
  7697. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7698. # because those macros already exist, or will be overwritten later.
  7699. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7700. #
  7701. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7702. # Yes, that means every name once taken will need to remain here until
  7703. # we give up compatibility with versions before 1.7, at which point
  7704. # we need to keep only those names which we still refer to.
  7705. # This is to help aclocal find these macros, as it can't see m4_define.
  7706. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7707. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7708. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7709. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7710. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7711. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7712. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7713. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7714. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7715. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7716. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7717. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7718. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7719. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7720. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7721. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7722. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7723. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7724. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7725. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7726. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7727. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7728. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7729. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7730. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7731. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7732. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7733. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7734. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7735. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7736. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7737. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7738. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7739. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7740. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7741. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7742. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7743. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7744. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7745. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7746. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7747. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7748. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7749. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7750. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7751. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7752. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7753. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7754. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7755. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7756. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7757. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7758. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7759. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7760. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7761. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7762. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7763. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7764. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7765. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7766. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7767. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7768. # Copyright (C) 2002-2014 Free Software Foundation, Inc.
  7769. #
  7770. # This file is free software; the Free Software Foundation
  7771. # gives unlimited permission to copy and/or distribute it,
  7772. # with or without modifications, as long as this notice is preserved.
  7773. # AM_AUTOMAKE_VERSION(VERSION)
  7774. # ----------------------------
  7775. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7776. # generated from the m4 files accompanying Automake X.Y.
  7777. # (This private macro should not be called outside this file.)
  7778. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7779. [am__api_version='1.15'
  7780. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7781. dnl require some minimum version. Point them to the right macro.
  7782. m4_if([$1], [1.15], [],
  7783. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7784. ])
  7785. # _AM_AUTOCONF_VERSION(VERSION)
  7786. # -----------------------------
  7787. # aclocal traces this macro to find the Autoconf version.
  7788. # This is a private macro too. Using m4_define simplifies
  7789. # the logic in aclocal, which can simply ignore this definition.
  7790. m4_define([_AM_AUTOCONF_VERSION], [])
  7791. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7792. # -------------------------------
  7793. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7794. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7795. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7796. [AM_AUTOMAKE_VERSION([1.15])dnl
  7797. m4_ifndef([AC_AUTOCONF_VERSION],
  7798. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7799. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7800. # Copyright (C) 2011-2014 Free Software Foundation, Inc.
  7801. #
  7802. # This file is free software; the Free Software Foundation
  7803. # gives unlimited permission to copy and/or distribute it,
  7804. # with or without modifications, as long as this notice is preserved.
  7805. # AM_PROG_AR([ACT-IF-FAIL])
  7806. # -------------------------
  7807. # Try to determine the archiver interface, and trigger the ar-lib wrapper
  7808. # if it is needed. If the detection of archiver interface fails, run
  7809. # ACT-IF-FAIL (default is to abort configure with a proper error message).
  7810. AC_DEFUN([AM_PROG_AR],
  7811. [AC_BEFORE([$0], [LT_INIT])dnl
  7812. AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
  7813. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7814. AC_REQUIRE_AUX_FILE([ar-lib])dnl
  7815. AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
  7816. : ${AR=ar}
  7817. AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
  7818. [AC_LANG_PUSH([C])
  7819. am_cv_ar_interface=ar
  7820. AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
  7821. [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  7822. AC_TRY_EVAL([am_ar_try])
  7823. if test "$ac_status" -eq 0; then
  7824. am_cv_ar_interface=ar
  7825. else
  7826. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  7827. AC_TRY_EVAL([am_ar_try])
  7828. if test "$ac_status" -eq 0; then
  7829. am_cv_ar_interface=lib
  7830. else
  7831. am_cv_ar_interface=unknown
  7832. fi
  7833. fi
  7834. rm -f conftest.lib libconftest.a
  7835. ])
  7836. AC_LANG_POP([C])])
  7837. case $am_cv_ar_interface in
  7838. ar)
  7839. ;;
  7840. lib)
  7841. # Microsoft lib, so override with the ar-lib wrapper script.
  7842. # FIXME: It is wrong to rewrite AR.
  7843. # But if we don't then we get into trouble of one sort or another.
  7844. # A longer-term fix would be to have automake use am__AR in this case,
  7845. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  7846. # similar.
  7847. AR="$am_aux_dir/ar-lib $AR"
  7848. ;;
  7849. unknown)
  7850. m4_default([$1],
  7851. [AC_MSG_ERROR([could not determine $AR interface])])
  7852. ;;
  7853. esac
  7854. AC_SUBST([AR])dnl
  7855. ])
  7856. # Figure out how to run the assembler. -*- Autoconf -*-
  7857. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  7858. #
  7859. # This file is free software; the Free Software Foundation
  7860. # gives unlimited permission to copy and/or distribute it,
  7861. # with or without modifications, as long as this notice is preserved.
  7862. # AM_PROG_AS
  7863. # ----------
  7864. AC_DEFUN([AM_PROG_AS],
  7865. [# By default we simply use the C compiler to build assembly code.
  7866. AC_REQUIRE([AC_PROG_CC])
  7867. test "${CCAS+set}" = set || CCAS=$CC
  7868. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7869. AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
  7870. AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
  7871. _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
  7872. ])
  7873. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7874. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  7875. #
  7876. # This file is free software; the Free Software Foundation
  7877. # gives unlimited permission to copy and/or distribute it,
  7878. # with or without modifications, as long as this notice is preserved.
  7879. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7880. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  7881. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  7882. #
  7883. # Of course, Automake must honor this variable whenever it calls a
  7884. # tool from the auxiliary directory. The problem is that $srcdir (and
  7885. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7886. # depending on how configure is run. This is pretty annoying, since
  7887. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7888. # source directory, any form will work fine, but in subdirectories a
  7889. # relative path needs to be adjusted first.
  7890. #
  7891. # $ac_aux_dir/missing
  7892. # fails when called from a subdirectory if $ac_aux_dir is relative
  7893. # $top_srcdir/$ac_aux_dir/missing
  7894. # fails if $ac_aux_dir is absolute,
  7895. # fails when called from a subdirectory in a VPATH build with
  7896. # a relative $ac_aux_dir
  7897. #
  7898. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7899. # are both prefixed by $srcdir. In an in-source build this is usually
  7900. # harmless because $srcdir is '.', but things will broke when you
  7901. # start a VPATH build or use an absolute $srcdir.
  7902. #
  7903. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7904. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7905. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7906. # and then we would define $MISSING as
  7907. # MISSING="\${SHELL} $am_aux_dir/missing"
  7908. # This will work as long as MISSING is not called from configure, because
  7909. # unfortunately $(top_srcdir) has no meaning in configure.
  7910. # However there are other variables, like CC, which are often used in
  7911. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7912. #
  7913. # Another solution, used here, is to always expand $ac_aux_dir to an
  7914. # absolute PATH. The drawback is that using absolute paths prevent a
  7915. # configured tree to be moved without reconfiguration.
  7916. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7917. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  7918. # Expand $ac_aux_dir to an absolute path.
  7919. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  7920. ])
  7921. # AM_CONDITIONAL -*- Autoconf -*-
  7922. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  7923. #
  7924. # This file is free software; the Free Software Foundation
  7925. # gives unlimited permission to copy and/or distribute it,
  7926. # with or without modifications, as long as this notice is preserved.
  7927. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7928. # -------------------------------------
  7929. # Define a conditional.
  7930. AC_DEFUN([AM_CONDITIONAL],
  7931. [AC_PREREQ([2.52])dnl
  7932. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7933. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7934. AC_SUBST([$1_TRUE])dnl
  7935. AC_SUBST([$1_FALSE])dnl
  7936. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7937. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7938. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7939. if $2; then
  7940. $1_TRUE=
  7941. $1_FALSE='#'
  7942. else
  7943. $1_TRUE='#'
  7944. $1_FALSE=
  7945. fi
  7946. AC_CONFIG_COMMANDS_PRE(
  7947. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7948. AC_MSG_ERROR([[conditional "$1" was never defined.
  7949. Usually this means the macro was only invoked conditionally.]])
  7950. fi])])
  7951. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  7952. #
  7953. # This file is free software; the Free Software Foundation
  7954. # gives unlimited permission to copy and/or distribute it,
  7955. # with or without modifications, as long as this notice is preserved.
  7956. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  7957. # written in clear, in which case automake, when reading aclocal.m4,
  7958. # will think it sees a *use*, and therefore will trigger all it's
  7959. # C support machinery. Also note that it means that autoscan, seeing
  7960. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7961. # _AM_DEPENDENCIES(NAME)
  7962. # ----------------------
  7963. # See how the compiler implements dependency checking.
  7964. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  7965. # We try a few techniques and use that to set a single cache variable.
  7966. #
  7967. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7968. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7969. # dependency, and given that the user is not expected to run this macro,
  7970. # just rely on AC_PROG_CC.
  7971. AC_DEFUN([_AM_DEPENDENCIES],
  7972. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7973. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7974. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7975. AC_REQUIRE([AM_DEP_TRACK])dnl
  7976. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  7977. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  7978. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7979. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  7980. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  7981. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7982. [depcc="$$1" am_compiler_list=])
  7983. AC_CACHE_CHECK([dependency style of $depcc],
  7984. [am_cv_$1_dependencies_compiler_type],
  7985. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7986. # We make a subdir and do the tests there. Otherwise we can end up
  7987. # making bogus files that we don't know about and never remove. For
  7988. # instance it was reported that on HP-UX the gcc test will end up
  7989. # making a dummy file named 'D' -- because '-MD' means "put the output
  7990. # in D".
  7991. rm -rf conftest.dir
  7992. mkdir conftest.dir
  7993. # Copy depcomp to subdir because otherwise we won't find it if we're
  7994. # using a relative directory.
  7995. cp "$am_depcomp" conftest.dir
  7996. cd conftest.dir
  7997. # We will build objects and dependencies in a subdirectory because
  7998. # it helps to detect inapplicable dependency modes. For instance
  7999. # both Tru64's cc and ICC support -MD to output dependencies as a
  8000. # side effect of compilation, but ICC will put the dependencies in
  8001. # the current directory while Tru64 will put them in the object
  8002. # directory.
  8003. mkdir sub
  8004. am_cv_$1_dependencies_compiler_type=none
  8005. if test "$am_compiler_list" = ""; then
  8006. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8007. fi
  8008. am__universal=false
  8009. m4_case([$1], [CC],
  8010. [case " $depcc " in #(
  8011. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8012. esac],
  8013. [CXX],
  8014. [case " $depcc " in #(
  8015. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8016. esac])
  8017. for depmode in $am_compiler_list; do
  8018. # Setup a source with many dependencies, because some compilers
  8019. # like to wrap large dependency lists on column 80 (with \), and
  8020. # we should not choose a depcomp mode which is confused by this.
  8021. #
  8022. # We need to recreate these files for each test, as the compiler may
  8023. # overwrite some of them when testing with obscure command lines.
  8024. # This happens at least with the AIX C compiler.
  8025. : > sub/conftest.c
  8026. for i in 1 2 3 4 5 6; do
  8027. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8028. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  8029. # Solaris 10 /bin/sh.
  8030. echo '/* dummy */' > sub/conftst$i.h
  8031. done
  8032. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8033. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  8034. # mode. It turns out that the SunPro C++ compiler does not properly
  8035. # handle '-M -o', and we need to detect this. Also, some Intel
  8036. # versions had trouble with output in subdirs.
  8037. am__obj=sub/conftest.${OBJEXT-o}
  8038. am__minus_obj="-o $am__obj"
  8039. case $depmode in
  8040. gcc)
  8041. # This depmode causes a compiler race in universal mode.
  8042. test "$am__universal" = false || continue
  8043. ;;
  8044. nosideeffect)
  8045. # After this tag, mechanisms are not by side-effect, so they'll
  8046. # only be used when explicitly requested.
  8047. if test "x$enable_dependency_tracking" = xyes; then
  8048. continue
  8049. else
  8050. break
  8051. fi
  8052. ;;
  8053. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8054. # This compiler won't grok '-c -o', but also, the minuso test has
  8055. # not run yet. These depmodes are late enough in the game, and
  8056. # so weak that their functioning should not be impacted.
  8057. am__obj=conftest.${OBJEXT-o}
  8058. am__minus_obj=
  8059. ;;
  8060. none) break ;;
  8061. esac
  8062. if depmode=$depmode \
  8063. source=sub/conftest.c object=$am__obj \
  8064. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8065. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8066. >/dev/null 2>conftest.err &&
  8067. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8068. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8069. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8070. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8071. # icc doesn't choke on unknown options, it will just issue warnings
  8072. # or remarks (even with -Werror). So we grep stderr for any message
  8073. # that says an option was ignored or not supported.
  8074. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8075. # icc: Command line warning: ignoring option '-M'; no argument required
  8076. # The diagnosis changed in icc 8.0:
  8077. # icc: Command line remark: option '-MP' not supported
  8078. if (grep 'ignoring option' conftest.err ||
  8079. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8080. am_cv_$1_dependencies_compiler_type=$depmode
  8081. break
  8082. fi
  8083. fi
  8084. done
  8085. cd ..
  8086. rm -rf conftest.dir
  8087. else
  8088. am_cv_$1_dependencies_compiler_type=none
  8089. fi
  8090. ])
  8091. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8092. AM_CONDITIONAL([am__fastdep$1], [
  8093. test "x$enable_dependency_tracking" != xno \
  8094. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8095. ])
  8096. # AM_SET_DEPDIR
  8097. # -------------
  8098. # Choose a directory name for dependency files.
  8099. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8100. AC_DEFUN([AM_SET_DEPDIR],
  8101. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8102. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8103. ])
  8104. # AM_DEP_TRACK
  8105. # ------------
  8106. AC_DEFUN([AM_DEP_TRACK],
  8107. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8108. AS_HELP_STRING(
  8109. [--enable-dependency-tracking],
  8110. [do not reject slow dependency extractors])
  8111. AS_HELP_STRING(
  8112. [--disable-dependency-tracking],
  8113. [speeds up one-time build])])
  8114. if test "x$enable_dependency_tracking" != xno; then
  8115. am_depcomp="$ac_aux_dir/depcomp"
  8116. AMDEPBACKSLASH='\'
  8117. am__nodep='_no'
  8118. fi
  8119. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8120. AC_SUBST([AMDEPBACKSLASH])dnl
  8121. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8122. AC_SUBST([am__nodep])dnl
  8123. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8124. ])
  8125. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8126. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  8127. #
  8128. # This file is free software; the Free Software Foundation
  8129. # gives unlimited permission to copy and/or distribute it,
  8130. # with or without modifications, as long as this notice is preserved.
  8131. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8132. # ------------------------------
  8133. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8134. [{
  8135. # Older Autoconf quotes --file arguments for eval, but not when files
  8136. # are listed without --file. Let's play safe and only enable the eval
  8137. # if we detect the quoting.
  8138. case $CONFIG_FILES in
  8139. *\'*) eval set x "$CONFIG_FILES" ;;
  8140. *) set x $CONFIG_FILES ;;
  8141. esac
  8142. shift
  8143. for mf
  8144. do
  8145. # Strip MF so we end up with the name of the file.
  8146. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8147. # Check whether this is an Automake generated Makefile or not.
  8148. # We used to match only the files named 'Makefile.in', but
  8149. # some people rename them; so instead we look at the file content.
  8150. # Grep'ing the first line is not enough: some people post-process
  8151. # each Makefile.in and add a new line on top of each file to say so.
  8152. # Grep'ing the whole file is not good either: AIX grep has a line
  8153. # limit of 2048, but all sed's we know have understand at least 4000.
  8154. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8155. dirpart=`AS_DIRNAME("$mf")`
  8156. else
  8157. continue
  8158. fi
  8159. # Extract the definition of DEPDIR, am__include, and am__quote
  8160. # from the Makefile without running 'make'.
  8161. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8162. test -z "$DEPDIR" && continue
  8163. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8164. test -z "$am__include" && continue
  8165. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8166. # Find all dependency output files, they are included files with
  8167. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8168. # simplest approach to changing $(DEPDIR) to its actual value in the
  8169. # expansion.
  8170. for file in `sed -n "
  8171. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8172. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  8173. # Make sure the directory exists.
  8174. test -f "$dirpart/$file" && continue
  8175. fdir=`AS_DIRNAME(["$file"])`
  8176. AS_MKDIR_P([$dirpart/$fdir])
  8177. # echo "creating $dirpart/$file"
  8178. echo '# dummy' > "$dirpart/$file"
  8179. done
  8180. done
  8181. }
  8182. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8183. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8184. # -----------------------------
  8185. # This macro should only be invoked once -- use via AC_REQUIRE.
  8186. #
  8187. # This code is only required when automatic dependency tracking
  8188. # is enabled. FIXME. This creates each '.P' file that we will
  8189. # need in order to bootstrap the dependency handling code.
  8190. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8191. [AC_CONFIG_COMMANDS([depfiles],
  8192. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8193. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8194. ])
  8195. # Do all the work for Automake. -*- Autoconf -*-
  8196. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  8197. #
  8198. # This file is free software; the Free Software Foundation
  8199. # gives unlimited permission to copy and/or distribute it,
  8200. # with or without modifications, as long as this notice is preserved.
  8201. # This macro actually does too much. Some checks are only needed if
  8202. # your package does certain things. But this isn't really a big deal.
  8203. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  8204. m4_define([AC_PROG_CC],
  8205. m4_defn([AC_PROG_CC])
  8206. [_AM_PROG_CC_C_O
  8207. ])
  8208. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8209. # AM_INIT_AUTOMAKE([OPTIONS])
  8210. # -----------------------------------------------
  8211. # The call with PACKAGE and VERSION arguments is the old style
  8212. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8213. # and VERSION should now be passed to AC_INIT and removed from
  8214. # the call to AM_INIT_AUTOMAKE.
  8215. # We support both call styles for the transition. After
  8216. # the next Automake release, Autoconf can make the AC_INIT
  8217. # arguments mandatory, and then we can depend on a new Autoconf
  8218. # release and drop the old call support.
  8219. AC_DEFUN([AM_INIT_AUTOMAKE],
  8220. [AC_PREREQ([2.65])dnl
  8221. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8222. dnl the ones we care about.
  8223. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8224. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8225. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8226. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8227. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8228. # is not polluted with repeated "-I."
  8229. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8230. # test to see if srcdir already configured
  8231. if test -f $srcdir/config.status; then
  8232. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8233. fi
  8234. fi
  8235. # test whether we have cygpath
  8236. if test -z "$CYGPATH_W"; then
  8237. if (cygpath --version) >/dev/null 2>/dev/null; then
  8238. CYGPATH_W='cygpath -w'
  8239. else
  8240. CYGPATH_W=echo
  8241. fi
  8242. fi
  8243. AC_SUBST([CYGPATH_W])
  8244. # Define the identity of the package.
  8245. dnl Distinguish between old-style and new-style calls.
  8246. m4_ifval([$2],
  8247. [AC_DIAGNOSE([obsolete],
  8248. [$0: two- and three-arguments forms are deprecated.])
  8249. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8250. AC_SUBST([PACKAGE], [$1])dnl
  8251. AC_SUBST([VERSION], [$2])],
  8252. [_AM_SET_OPTIONS([$1])dnl
  8253. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8254. m4_if(
  8255. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8256. [ok:ok],,
  8257. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8258. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8259. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8260. _AM_IF_OPTION([no-define],,
  8261. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8262. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8263. # Some tools Automake needs.
  8264. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8265. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8266. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8267. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8268. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8269. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8270. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8271. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8272. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8273. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8274. # For better backward compatibility. To be removed once Automake 1.9.x
  8275. # dies out for good. For more background, see:
  8276. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8277. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8278. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8279. # We need awk for the "check" target (and possibly the TAP driver). The
  8280. # system "awk" is bad on some platforms.
  8281. AC_REQUIRE([AC_PROG_AWK])dnl
  8282. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8283. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8284. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8285. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8286. [_AM_PROG_TAR([v7])])])
  8287. _AM_IF_OPTION([no-dependencies],,
  8288. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8289. [_AM_DEPENDENCIES([CC])],
  8290. [m4_define([AC_PROG_CC],
  8291. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8292. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8293. [_AM_DEPENDENCIES([CXX])],
  8294. [m4_define([AC_PROG_CXX],
  8295. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8296. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8297. [_AM_DEPENDENCIES([OBJC])],
  8298. [m4_define([AC_PROG_OBJC],
  8299. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8300. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8301. [_AM_DEPENDENCIES([OBJCXX])],
  8302. [m4_define([AC_PROG_OBJCXX],
  8303. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8304. ])
  8305. AC_REQUIRE([AM_SILENT_RULES])dnl
  8306. dnl The testsuite driver may need to know about EXEEXT, so add the
  8307. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8308. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8309. AC_CONFIG_COMMANDS_PRE(dnl
  8310. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8311. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8312. # POSIX will say in a future version that running "rm -f" with no argument
  8313. # is OK; and we want to be able to make that assumption in our Makefile
  8314. # recipes. So use an aggressive probe to check that the usage we want is
  8315. # actually supported "in the wild" to an acceptable degree.
  8316. # See automake bug#10828.
  8317. # To make any issue more visible, cause the running configure to be aborted
  8318. # by default if the 'rm' program in use doesn't match our expectations; the
  8319. # user can still override this though.
  8320. if rm -f && rm -fr && rm -rf; then : OK; else
  8321. cat >&2 <<'END'
  8322. Oops!
  8323. Your 'rm' program seems unable to run without file operands specified
  8324. on the command line, even when the '-f' option is present. This is contrary
  8325. to the behaviour of most rm programs out there, and not conforming with
  8326. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  8327. Please tell bug-automake@gnu.org about your system, including the value
  8328. of your $PATH and any error possibly output before this message. This
  8329. can help us improve future automake versions.
  8330. END
  8331. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  8332. echo 'Configuration will proceed anyway, since you have set the' >&2
  8333. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  8334. echo >&2
  8335. else
  8336. cat >&2 <<'END'
  8337. Aborting the configuration process, to ensure you take notice of the issue.
  8338. You can download and install GNU coreutils to get an 'rm' implementation
  8339. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  8340. If you want to complete the configuration process using your problematic
  8341. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  8342. to "yes", and re-run configure.
  8343. END
  8344. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  8345. fi
  8346. fi
  8347. dnl The trailing newline in this macro's definition is deliberate, for
  8348. dnl backward compatibility and to allow trailing 'dnl'-style comments
  8349. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  8350. ])
  8351. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8352. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8353. dnl mangled by Autoconf and run in a shell conditional statement.
  8354. m4_define([_AC_COMPILER_EXEEXT],
  8355. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8356. # When config.status generates a header, we must update the stamp-h file.
  8357. # This file resides in the same directory as the config header
  8358. # that is generated. The stamp files are numbered to have different names.
  8359. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8360. # loop where config.status creates the headers, so we can generate
  8361. # our stamp files there.
  8362. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8363. [# Compute $1's index in $config_headers.
  8364. _am_arg=$1
  8365. _am_stamp_count=1
  8366. for _am_header in $config_headers :; do
  8367. case $_am_header in
  8368. $_am_arg | $_am_arg:* )
  8369. break ;;
  8370. * )
  8371. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8372. esac
  8373. done
  8374. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8375. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8376. #
  8377. # This file is free software; the Free Software Foundation
  8378. # gives unlimited permission to copy and/or distribute it,
  8379. # with or without modifications, as long as this notice is preserved.
  8380. # AM_PROG_INSTALL_SH
  8381. # ------------------
  8382. # Define $install_sh.
  8383. AC_DEFUN([AM_PROG_INSTALL_SH],
  8384. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8385. if test x"${install_sh+set}" != xset; then
  8386. case $am_aux_dir in
  8387. *\ * | *\ *)
  8388. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8389. *)
  8390. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8391. esac
  8392. fi
  8393. AC_SUBST([install_sh])])
  8394. # Copyright (C) 2003-2014 Free Software Foundation, Inc.
  8395. #
  8396. # This file is free software; the Free Software Foundation
  8397. # gives unlimited permission to copy and/or distribute it,
  8398. # with or without modifications, as long as this notice is preserved.
  8399. # Check whether the underlying file-system supports filenames
  8400. # with a leading dot. For instance MS-DOS doesn't.
  8401. AC_DEFUN([AM_SET_LEADING_DOT],
  8402. [rm -rf .tst 2>/dev/null
  8403. mkdir .tst 2>/dev/null
  8404. if test -d .tst; then
  8405. am__leading_dot=.
  8406. else
  8407. am__leading_dot=_
  8408. fi
  8409. rmdir .tst 2>/dev/null
  8410. AC_SUBST([am__leading_dot])])
  8411. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8412. # From Jim Meyering
  8413. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  8414. #
  8415. # This file is free software; the Free Software Foundation
  8416. # gives unlimited permission to copy and/or distribute it,
  8417. # with or without modifications, as long as this notice is preserved.
  8418. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8419. # ----------------------------------
  8420. # Control maintainer-specific portions of Makefiles.
  8421. # Default is to disable them, unless 'enable' is passed literally.
  8422. # For symmetry, 'disable' may be passed as well. Anyway, the user
  8423. # can override the default with the --enable/--disable switch.
  8424. AC_DEFUN([AM_MAINTAINER_MODE],
  8425. [m4_case(m4_default([$1], [disable]),
  8426. [enable], [m4_define([am_maintainer_other], [disable])],
  8427. [disable], [m4_define([am_maintainer_other], [enable])],
  8428. [m4_define([am_maintainer_other], [enable])
  8429. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8430. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8431. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8432. AC_ARG_ENABLE([maintainer-mode],
  8433. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  8434. am_maintainer_other[ make rules and dependencies not useful
  8435. (and sometimes confusing) to the casual installer])],
  8436. [USE_MAINTAINER_MODE=$enableval],
  8437. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8438. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8439. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8440. MAINT=$MAINTAINER_MODE_TRUE
  8441. AC_SUBST([MAINT])dnl
  8442. ]
  8443. )
  8444. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8445. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8446. #
  8447. # This file is free software; the Free Software Foundation
  8448. # gives unlimited permission to copy and/or distribute it,
  8449. # with or without modifications, as long as this notice is preserved.
  8450. # AM_MAKE_INCLUDE()
  8451. # -----------------
  8452. # Check to see how make treats includes.
  8453. AC_DEFUN([AM_MAKE_INCLUDE],
  8454. [am_make=${MAKE-make}
  8455. cat > confinc << 'END'
  8456. am__doit:
  8457. @echo this is the am__doit target
  8458. .PHONY: am__doit
  8459. END
  8460. # If we don't find an include directive, just comment out the code.
  8461. AC_MSG_CHECKING([for style of include used by $am_make])
  8462. am__include="#"
  8463. am__quote=
  8464. _am_result=none
  8465. # First try GNU make style include.
  8466. echo "include confinc" > confmf
  8467. # Ignore all kinds of additional output from 'make'.
  8468. case `$am_make -s -f confmf 2> /dev/null` in #(
  8469. *the\ am__doit\ target*)
  8470. am__include=include
  8471. am__quote=
  8472. _am_result=GNU
  8473. ;;
  8474. esac
  8475. # Now try BSD make style include.
  8476. if test "$am__include" = "#"; then
  8477. echo '.include "confinc"' > confmf
  8478. case `$am_make -s -f confmf 2> /dev/null` in #(
  8479. *the\ am__doit\ target*)
  8480. am__include=.include
  8481. am__quote="\""
  8482. _am_result=BSD
  8483. ;;
  8484. esac
  8485. fi
  8486. AC_SUBST([am__include])
  8487. AC_SUBST([am__quote])
  8488. AC_MSG_RESULT([$_am_result])
  8489. rm -f confinc confmf
  8490. ])
  8491. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8492. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  8493. #
  8494. # This file is free software; the Free Software Foundation
  8495. # gives unlimited permission to copy and/or distribute it,
  8496. # with or without modifications, as long as this notice is preserved.
  8497. # AM_MISSING_PROG(NAME, PROGRAM)
  8498. # ------------------------------
  8499. AC_DEFUN([AM_MISSING_PROG],
  8500. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8501. $1=${$1-"${am_missing_run}$2"}
  8502. AC_SUBST($1)])
  8503. # AM_MISSING_HAS_RUN
  8504. # ------------------
  8505. # Define MISSING if not defined so far and test if it is modern enough.
  8506. # If it is, set am_missing_run to use it, otherwise, to nothing.
  8507. AC_DEFUN([AM_MISSING_HAS_RUN],
  8508. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8509. AC_REQUIRE_AUX_FILE([missing])dnl
  8510. if test x"${MISSING+set}" != xset; then
  8511. case $am_aux_dir in
  8512. *\ * | *\ *)
  8513. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8514. *)
  8515. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8516. esac
  8517. fi
  8518. # Use eval to expand $SHELL
  8519. if eval "$MISSING --is-lightweight"; then
  8520. am_missing_run="$MISSING "
  8521. else
  8522. am_missing_run=
  8523. AC_MSG_WARN(['missing' script is too old or missing])
  8524. fi
  8525. ])
  8526. # Helper functions for option handling. -*- Autoconf -*-
  8527. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8528. #
  8529. # This file is free software; the Free Software Foundation
  8530. # gives unlimited permission to copy and/or distribute it,
  8531. # with or without modifications, as long as this notice is preserved.
  8532. # _AM_MANGLE_OPTION(NAME)
  8533. # -----------------------
  8534. AC_DEFUN([_AM_MANGLE_OPTION],
  8535. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8536. # _AM_SET_OPTION(NAME)
  8537. # --------------------
  8538. # Set option NAME. Presently that only means defining a flag for this option.
  8539. AC_DEFUN([_AM_SET_OPTION],
  8540. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  8541. # _AM_SET_OPTIONS(OPTIONS)
  8542. # ------------------------
  8543. # OPTIONS is a space-separated list of Automake options.
  8544. AC_DEFUN([_AM_SET_OPTIONS],
  8545. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8546. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8547. # -------------------------------------------
  8548. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8549. AC_DEFUN([_AM_IF_OPTION],
  8550. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8551. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  8552. #
  8553. # This file is free software; the Free Software Foundation
  8554. # gives unlimited permission to copy and/or distribute it,
  8555. # with or without modifications, as long as this notice is preserved.
  8556. # _AM_PROG_CC_C_O
  8557. # ---------------
  8558. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  8559. # to automatically call this.
  8560. AC_DEFUN([_AM_PROG_CC_C_O],
  8561. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8562. AC_REQUIRE_AUX_FILE([compile])dnl
  8563. AC_LANG_PUSH([C])dnl
  8564. AC_CACHE_CHECK(
  8565. [whether $CC understands -c and -o together],
  8566. [am_cv_prog_cc_c_o],
  8567. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  8568. # Make sure it works both with $CC and with simple cc.
  8569. # Following AC_PROG_CC_C_O, we do the test twice because some
  8570. # compilers refuse to overwrite an existing .o file with -o,
  8571. # though they will create one.
  8572. am_cv_prog_cc_c_o=yes
  8573. for am_i in 1 2; do
  8574. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  8575. && test -f conftest2.$ac_objext; then
  8576. : OK
  8577. else
  8578. am_cv_prog_cc_c_o=no
  8579. break
  8580. fi
  8581. done
  8582. rm -f core conftest*
  8583. unset am_i])
  8584. if test "$am_cv_prog_cc_c_o" != yes; then
  8585. # Losing compiler, so override with the script.
  8586. # FIXME: It is wrong to rewrite CC.
  8587. # But if we don't then we get into trouble of one sort or another.
  8588. # A longer-term fix would be to have automake use am__CC in this case,
  8589. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8590. CC="$am_aux_dir/compile $CC"
  8591. fi
  8592. AC_LANG_POP([C])])
  8593. # For backward compatibility.
  8594. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  8595. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8596. #
  8597. # This file is free software; the Free Software Foundation
  8598. # gives unlimited permission to copy and/or distribute it,
  8599. # with or without modifications, as long as this notice is preserved.
  8600. # AM_RUN_LOG(COMMAND)
  8601. # -------------------
  8602. # Run COMMAND, save the exit status in ac_status, and log it.
  8603. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  8604. AC_DEFUN([AM_RUN_LOG],
  8605. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  8606. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  8607. ac_status=$?
  8608. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  8609. (exit $ac_status); }])
  8610. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8611. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  8612. #
  8613. # This file is free software; the Free Software Foundation
  8614. # gives unlimited permission to copy and/or distribute it,
  8615. # with or without modifications, as long as this notice is preserved.
  8616. # AM_SANITY_CHECK
  8617. # ---------------
  8618. AC_DEFUN([AM_SANITY_CHECK],
  8619. [AC_MSG_CHECKING([whether build environment is sane])
  8620. # Reject unsafe characters in $srcdir or the absolute working directory
  8621. # name. Accept space and tab only in the latter.
  8622. am_lf='
  8623. '
  8624. case `pwd` in
  8625. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8626. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8627. esac
  8628. case $srcdir in
  8629. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8630. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  8631. esac
  8632. # Do 'set' in a subshell so we don't clobber the current shell's
  8633. # arguments. Must try -L first in case configure is actually a
  8634. # symlink; some systems play weird games with the mod time of symlinks
  8635. # (eg FreeBSD returns the mod time of the symlink's containing
  8636. # directory).
  8637. if (
  8638. am_has_slept=no
  8639. for am_try in 1 2; do
  8640. echo "timestamp, slept: $am_has_slept" > conftest.file
  8641. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8642. if test "$[*]" = "X"; then
  8643. # -L didn't work.
  8644. set X `ls -t "$srcdir/configure" conftest.file`
  8645. fi
  8646. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8647. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8648. # If neither matched, then we have a broken ls. This can happen
  8649. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8650. # broken ls alias from the environment. This has actually
  8651. # happened. Such a system could not be considered "sane".
  8652. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8653. alias in your environment])
  8654. fi
  8655. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  8656. break
  8657. fi
  8658. # Just in case.
  8659. sleep 1
  8660. am_has_slept=yes
  8661. done
  8662. test "$[2]" = conftest.file
  8663. )
  8664. then
  8665. # Ok.
  8666. :
  8667. else
  8668. AC_MSG_ERROR([newly created file is older than distributed files!
  8669. Check your system clock])
  8670. fi
  8671. AC_MSG_RESULT([yes])
  8672. # If we didn't sleep, we still need to ensure time stamps of config.status and
  8673. # generated files are strictly newer.
  8674. am_sleep_pid=
  8675. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  8676. ( sleep 1 ) &
  8677. am_sleep_pid=$!
  8678. fi
  8679. AC_CONFIG_COMMANDS_PRE(
  8680. [AC_MSG_CHECKING([that generated files are newer than configure])
  8681. if test -n "$am_sleep_pid"; then
  8682. # Hide warnings about reused PIDs.
  8683. wait $am_sleep_pid 2>/dev/null
  8684. fi
  8685. AC_MSG_RESULT([done])])
  8686. rm -f conftest.file
  8687. ])
  8688. # Copyright (C) 2009-2014 Free Software Foundation, Inc.
  8689. #
  8690. # This file is free software; the Free Software Foundation
  8691. # gives unlimited permission to copy and/or distribute it,
  8692. # with or without modifications, as long as this notice is preserved.
  8693. # AM_SILENT_RULES([DEFAULT])
  8694. # --------------------------
  8695. # Enable less verbose build rules; with the default set to DEFAULT
  8696. # ("yes" being less verbose, "no" or empty being verbose).
  8697. AC_DEFUN([AM_SILENT_RULES],
  8698. [AC_ARG_ENABLE([silent-rules], [dnl
  8699. AS_HELP_STRING(
  8700. [--enable-silent-rules],
  8701. [less verbose build output (undo: "make V=1")])
  8702. AS_HELP_STRING(
  8703. [--disable-silent-rules],
  8704. [verbose build output (undo: "make V=0")])dnl
  8705. ])
  8706. case $enable_silent_rules in @%:@ (((
  8707. yes) AM_DEFAULT_VERBOSITY=0;;
  8708. no) AM_DEFAULT_VERBOSITY=1;;
  8709. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  8710. esac
  8711. dnl
  8712. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  8713. dnl do not support nested variable expansions.
  8714. dnl See automake bug#9928 and bug#10237.
  8715. am_make=${MAKE-make}
  8716. AC_CACHE_CHECK([whether $am_make supports nested variables],
  8717. [am_cv_make_support_nested_variables],
  8718. [if AS_ECHO([['TRUE=$(BAR$(V))
  8719. BAR0=false
  8720. BAR1=true
  8721. V=1
  8722. am__doit:
  8723. @$(TRUE)
  8724. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  8725. am_cv_make_support_nested_variables=yes
  8726. else
  8727. am_cv_make_support_nested_variables=no
  8728. fi])
  8729. if test $am_cv_make_support_nested_variables = yes; then
  8730. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  8731. AM_V='$(V)'
  8732. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8733. else
  8734. AM_V=$AM_DEFAULT_VERBOSITY
  8735. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8736. fi
  8737. AC_SUBST([AM_V])dnl
  8738. AM_SUBST_NOTMAKE([AM_V])dnl
  8739. AC_SUBST([AM_DEFAULT_V])dnl
  8740. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  8741. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  8742. AM_BACKSLASH='\'
  8743. AC_SUBST([AM_BACKSLASH])dnl
  8744. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  8745. ])
  8746. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8747. #
  8748. # This file is free software; the Free Software Foundation
  8749. # gives unlimited permission to copy and/or distribute it,
  8750. # with or without modifications, as long as this notice is preserved.
  8751. # AM_PROG_INSTALL_STRIP
  8752. # ---------------------
  8753. # One issue with vendor 'install' (even GNU) is that you can't
  8754. # specify the program used to strip binaries. This is especially
  8755. # annoying in cross-compiling environments, where the build's strip
  8756. # is unlikely to handle the host's binaries.
  8757. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8758. # always use install-sh in "make install-strip", and initialize
  8759. # STRIPPROG with the value of the STRIP variable (set by the user).
  8760. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8761. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8762. # Installed binaries are usually stripped using 'strip' when the user
  8763. # run "make install-strip". However 'strip' might not be the right
  8764. # tool to use in cross-compilation environments, therefore Automake
  8765. # will honor the 'STRIP' environment variable to overrule this program.
  8766. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  8767. if test "$cross_compiling" != no; then
  8768. AC_CHECK_TOOL([STRIP], [strip], :)
  8769. fi
  8770. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8771. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8772. # Copyright (C) 2006-2014 Free Software Foundation, Inc.
  8773. #
  8774. # This file is free software; the Free Software Foundation
  8775. # gives unlimited permission to copy and/or distribute it,
  8776. # with or without modifications, as long as this notice is preserved.
  8777. # _AM_SUBST_NOTMAKE(VARIABLE)
  8778. # ---------------------------
  8779. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8780. # This macro is traced by Automake.
  8781. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8782. # AM_SUBST_NOTMAKE(VARIABLE)
  8783. # --------------------------
  8784. # Public sister of _AM_SUBST_NOTMAKE.
  8785. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8786. # Check how to create a tarball. -*- Autoconf -*-
  8787. # Copyright (C) 2004-2014 Free Software Foundation, Inc.
  8788. #
  8789. # This file is free software; the Free Software Foundation
  8790. # gives unlimited permission to copy and/or distribute it,
  8791. # with or without modifications, as long as this notice is preserved.
  8792. # _AM_PROG_TAR(FORMAT)
  8793. # --------------------
  8794. # Check how to create a tarball in format FORMAT.
  8795. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  8796. #
  8797. # Substitute a variable $(am__tar) that is a command
  8798. # writing to stdout a FORMAT-tarball containing the directory
  8799. # $tardir.
  8800. # tardir=directory && $(am__tar) > result.tar
  8801. #
  8802. # Substitute a variable $(am__untar) that extract such
  8803. # a tarball read from stdin.
  8804. # $(am__untar) < result.tar
  8805. #
  8806. AC_DEFUN([_AM_PROG_TAR],
  8807. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8808. # in the wild :-( We should find a proper way to deprecate it ...
  8809. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8810. # We'll loop over all known methods to create a tar archive until one works.
  8811. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8812. m4_if([$1], [v7],
  8813. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8814. [m4_case([$1],
  8815. [ustar],
  8816. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  8817. # There is notably a 21 bits limit for the UID and the GID. In fact,
  8818. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  8819. # and bug#13588).
  8820. am_max_uid=2097151 # 2^21 - 1
  8821. am_max_gid=$am_max_uid
  8822. # The $UID and $GID variables are not portable, so we need to resort
  8823. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  8824. # below are definitely unexpected, so allow the users to see them
  8825. # (that is, avoid stderr redirection).
  8826. am_uid=`id -u || echo unknown`
  8827. am_gid=`id -g || echo unknown`
  8828. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  8829. if test $am_uid -le $am_max_uid; then
  8830. AC_MSG_RESULT([yes])
  8831. else
  8832. AC_MSG_RESULT([no])
  8833. _am_tools=none
  8834. fi
  8835. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  8836. if test $am_gid -le $am_max_gid; then
  8837. AC_MSG_RESULT([yes])
  8838. else
  8839. AC_MSG_RESULT([no])
  8840. _am_tools=none
  8841. fi],
  8842. [pax],
  8843. [],
  8844. [m4_fatal([Unknown tar format])])
  8845. AC_MSG_CHECKING([how to create a $1 tar archive])
  8846. # Go ahead even if we have the value already cached. We do so because we
  8847. # need to set the values for the 'am__tar' and 'am__untar' variables.
  8848. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8849. for _am_tool in $_am_tools; do
  8850. case $_am_tool in
  8851. gnutar)
  8852. for _am_tar in tar gnutar gtar; do
  8853. AM_RUN_LOG([$_am_tar --version]) && break
  8854. done
  8855. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8856. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8857. am__untar="$_am_tar -xf -"
  8858. ;;
  8859. plaintar)
  8860. # Must skip GNU tar: if it does not support --format= it doesn't create
  8861. # ustar tarball either.
  8862. (tar --version) >/dev/null 2>&1 && continue
  8863. am__tar='tar chf - "$$tardir"'
  8864. am__tar_='tar chf - "$tardir"'
  8865. am__untar='tar xf -'
  8866. ;;
  8867. pax)
  8868. am__tar='pax -L -x $1 -w "$$tardir"'
  8869. am__tar_='pax -L -x $1 -w "$tardir"'
  8870. am__untar='pax -r'
  8871. ;;
  8872. cpio)
  8873. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8874. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8875. am__untar='cpio -i -H $1 -d'
  8876. ;;
  8877. none)
  8878. am__tar=false
  8879. am__tar_=false
  8880. am__untar=false
  8881. ;;
  8882. esac
  8883. # If the value was cached, stop now. We just wanted to have am__tar
  8884. # and am__untar set.
  8885. test -n "${am_cv_prog_tar_$1}" && break
  8886. # tar/untar a dummy directory, and stop if the command works.
  8887. rm -rf conftest.dir
  8888. mkdir conftest.dir
  8889. echo GrepMe > conftest.dir/file
  8890. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8891. rm -rf conftest.dir
  8892. if test -s conftest.tar; then
  8893. AM_RUN_LOG([$am__untar <conftest.tar])
  8894. AM_RUN_LOG([cat conftest.dir/file])
  8895. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8896. fi
  8897. done
  8898. rm -rf conftest.dir
  8899. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8900. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8901. AC_SUBST([am__tar])
  8902. AC_SUBST([am__untar])
  8903. ]) # _AM_PROG_TAR