aclocal.m4 341 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704
  1. # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
  2. # Copyright (C) 1996-2013 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, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22. # Foundation, Inc.
  23. # Written by Gordon Matzigkeit, 1996
  24. #
  25. # This file is free software; the Free Software Foundation gives
  26. # unlimited permission to copy and/or distribute it, with or without
  27. # modifications, as long as this notice is preserved.
  28. m4_define([_LT_COPYING], [dnl
  29. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  31. # Foundation, Inc.
  32. # Written by Gordon Matzigkeit, 1996
  33. #
  34. # This file is part of GNU Libtool.
  35. #
  36. # GNU Libtool is free software; you can redistribute it and/or
  37. # modify it under the terms of the GNU General Public License as
  38. # published by the Free Software Foundation; either version 2 of
  39. # the License, or (at your option) any later version.
  40. #
  41. # As a special exception to the GNU General Public License,
  42. # if you distribute this file as part of a program or library that
  43. # is built using GNU Libtool, you may include this file under the
  44. # same distribution terms that you use for the rest of that program.
  45. #
  46. # GNU Libtool is distributed in the hope that it will be useful,
  47. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  48. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49. # GNU General Public License for more details.
  50. #
  51. # You should have received a copy of the GNU General Public License
  52. # along with GNU Libtool; see the file COPYING. If not, a copy
  53. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  54. # obtained by writing to the Free Software Foundation, Inc.,
  55. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  56. ])
  57. # serial 57 LT_INIT
  58. # LT_PREREQ(VERSION)
  59. # ------------------
  60. # Complain and exit if this libtool version is less that VERSION.
  61. m4_defun([LT_PREREQ],
  62. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  63. [m4_default([$3],
  64. [m4_fatal([Libtool version $1 or higher is required],
  65. 63)])],
  66. [$2])])
  67. # _LT_CHECK_BUILDDIR
  68. # ------------------
  69. # Complain if the absolute build directory name contains unusual characters
  70. m4_defun([_LT_CHECK_BUILDDIR],
  71. [case `pwd` in
  72. *\ * | *\ *)
  73. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  74. esac
  75. ])
  76. # LT_INIT([OPTIONS])
  77. # ------------------
  78. AC_DEFUN([LT_INIT],
  79. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  80. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  81. AC_BEFORE([$0], [LT_LANG])dnl
  82. AC_BEFORE([$0], [LT_OUTPUT])dnl
  83. AC_BEFORE([$0], [LTDL_INIT])dnl
  84. m4_require([_LT_CHECK_BUILDDIR])dnl
  85. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  86. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  87. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  88. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  89. dnl unless we require an AC_DEFUNed macro:
  90. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  91. AC_REQUIRE([LTSUGAR_VERSION])dnl
  92. AC_REQUIRE([LTVERSION_VERSION])dnl
  93. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  94. m4_require([_LT_PROG_LTMAIN])dnl
  95. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  96. dnl Parse OPTIONS
  97. _LT_SET_OPTIONS([$0], [$1])
  98. # This can be used to rebuild libtool when needed
  99. LIBTOOL_DEPS="$ltmain"
  100. # Always use our own libtool.
  101. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  102. AC_SUBST(LIBTOOL)dnl
  103. _LT_SETUP
  104. # Only expand once:
  105. m4_define([LT_INIT])
  106. ])# LT_INIT
  107. # Old names:
  108. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  109. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  110. dnl aclocal-1.4 backwards compatibility:
  111. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  112. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  113. # _LT_CC_BASENAME(CC)
  114. # -------------------
  115. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  116. m4_defun([_LT_CC_BASENAME],
  117. [for cc_temp in $1""; do
  118. case $cc_temp in
  119. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  120. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  121. \-*) ;;
  122. *) break;;
  123. esac
  124. done
  125. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  126. ])
  127. # _LT_FILEUTILS_DEFAULTS
  128. # ----------------------
  129. # It is okay to use these file commands and assume they have been set
  130. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  131. m4_defun([_LT_FILEUTILS_DEFAULTS],
  132. [: ${CP="cp -f"}
  133. : ${MV="mv -f"}
  134. : ${RM="rm -f"}
  135. ])# _LT_FILEUTILS_DEFAULTS
  136. # _LT_SETUP
  137. # ---------
  138. m4_defun([_LT_SETUP],
  139. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  140. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  141. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  142. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  143. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  144. dnl
  145. _LT_DECL([], [host_alias], [0], [The host system])dnl
  146. _LT_DECL([], [host], [0])dnl
  147. _LT_DECL([], [host_os], [0])dnl
  148. dnl
  149. _LT_DECL([], [build_alias], [0], [The build system])dnl
  150. _LT_DECL([], [build], [0])dnl
  151. _LT_DECL([], [build_os], [0])dnl
  152. dnl
  153. AC_REQUIRE([AC_PROG_CC])dnl
  154. AC_REQUIRE([LT_PATH_LD])dnl
  155. AC_REQUIRE([LT_PATH_NM])dnl
  156. dnl
  157. AC_REQUIRE([AC_PROG_LN_S])dnl
  158. test -z "$LN_S" && LN_S="ln -s"
  159. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  160. dnl
  161. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  162. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  163. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  164. dnl
  165. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  166. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  167. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  168. m4_require([_LT_CMD_RELOAD])dnl
  169. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  170. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  171. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  172. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  173. m4_require([_LT_WITH_SYSROOT])dnl
  174. _LT_CONFIG_LIBTOOL_INIT([
  175. # See if we are running on zsh, and set the options which allow our
  176. # commands through without removal of \ escapes INIT.
  177. if test -n "\${ZSH_VERSION+set}" ; then
  178. setopt NO_GLOB_SUBST
  179. fi
  180. ])
  181. if test -n "${ZSH_VERSION+set}" ; then
  182. setopt NO_GLOB_SUBST
  183. fi
  184. _LT_CHECK_OBJDIR
  185. m4_require([_LT_TAG_COMPILER])dnl
  186. case $host_os in
  187. aix3*)
  188. # AIX sometimes has problems with the GCC collect2 program. For some
  189. # reason, if we set the COLLECT_NAMES environment variable, the problems
  190. # vanish in a puff of smoke.
  191. if test "X${COLLECT_NAMES+set}" != Xset; then
  192. COLLECT_NAMES=
  193. export COLLECT_NAMES
  194. fi
  195. ;;
  196. esac
  197. # Global variables:
  198. ofile=libtool
  199. can_build_shared=yes
  200. # All known linkers require a `.a' archive for static linking (except MSVC,
  201. # which needs '.lib').
  202. libext=a
  203. with_gnu_ld="$lt_cv_prog_gnu_ld"
  204. old_CC="$CC"
  205. old_CFLAGS="$CFLAGS"
  206. # Set sane defaults for various variables
  207. test -z "$CC" && CC=cc
  208. test -z "$LTCC" && LTCC=$CC
  209. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  210. test -z "$LD" && LD=ld
  211. test -z "$ac_objext" && ac_objext=o
  212. _LT_CC_BASENAME([$compiler])
  213. # Only perform the check for file, if the check method requires it
  214. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  215. case $deplibs_check_method in
  216. file_magic*)
  217. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  218. _LT_PATH_MAGIC
  219. fi
  220. ;;
  221. esac
  222. # Use C for the default configuration in the libtool script
  223. LT_SUPPORTED_TAG([CC])
  224. _LT_LANG_C_CONFIG
  225. _LT_LANG_DEFAULT_CONFIG
  226. _LT_CONFIG_COMMANDS
  227. ])# _LT_SETUP
  228. # _LT_PREPARE_SED_QUOTE_VARS
  229. # --------------------------
  230. # Define a few sed substitution that help us do robust quoting.
  231. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  232. [# Backslashify metacharacters that are still active within
  233. # double-quoted strings.
  234. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  235. # Same as above, but do not quote variable references.
  236. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  237. # Sed substitution to delay expansion of an escaped shell variable in a
  238. # double_quote_subst'ed string.
  239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  240. # Sed substitution to delay expansion of an escaped single quote.
  241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  242. # Sed substitution to avoid accidental globbing in evaled expressions
  243. no_glob_subst='s/\*/\\\*/g'
  244. ])
  245. # _LT_PROG_LTMAIN
  246. # ---------------
  247. # Note that this code is called both from `configure', and `config.status'
  248. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  249. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  250. # so we pass a copy along to make sure it has a sensible value anyway.
  251. m4_defun([_LT_PROG_LTMAIN],
  252. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  253. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  254. ltmain="$ac_aux_dir/ltmain.sh"
  255. ])# _LT_PROG_LTMAIN
  256. # So that we can recreate a full libtool script including additional
  257. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  258. # in macros and then make a single call at the end using the `libtool'
  259. # label.
  260. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  261. # ----------------------------------------
  262. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  263. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  264. [m4_ifval([$1],
  265. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  266. [$1
  267. ])])])
  268. # Initialize.
  269. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  270. # _LT_CONFIG_LIBTOOL([COMMANDS])
  271. # ------------------------------
  272. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  273. m4_define([_LT_CONFIG_LIBTOOL],
  274. [m4_ifval([$1],
  275. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  276. [$1
  277. ])])])
  278. # Initialize.
  279. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  280. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  281. # -----------------------------------------------------
  282. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  283. [_LT_CONFIG_LIBTOOL([$1])
  284. _LT_CONFIG_LIBTOOL_INIT([$2])
  285. ])
  286. # _LT_FORMAT_COMMENT([COMMENT])
  287. # -----------------------------
  288. # Add leading comment marks to the start of each line, and a trailing
  289. # full-stop to the whole comment if one is not present already.
  290. m4_define([_LT_FORMAT_COMMENT],
  291. [m4_ifval([$1], [
  292. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  293. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  294. )])
  295. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  296. # -------------------------------------------------------------------
  297. # CONFIGNAME is the name given to the value in the libtool script.
  298. # VARNAME is the (base) name used in the configure script.
  299. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  300. # VARNAME. Any other value will be used directly.
  301. m4_define([_LT_DECL],
  302. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  303. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  304. [m4_ifval([$1], [$1], [$2])])
  305. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  306. m4_ifval([$4],
  307. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  308. lt_dict_add_subkey([lt_decl_dict], [$2],
  309. [tagged?], [m4_ifval([$5], [yes], [no])])])
  310. ])
  311. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  312. # --------------------------------------------------------
  313. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  314. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  315. # ------------------------------------------------
  316. m4_define([lt_decl_tag_varnames],
  317. [_lt_decl_filter([tagged?], [yes], $@)])
  318. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  319. # ---------------------------------------------------------
  320. m4_define([_lt_decl_filter],
  321. [m4_case([$#],
  322. [0], [m4_fatal([$0: too few arguments: $#])],
  323. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  324. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  325. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  326. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  327. ])
  328. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  329. # --------------------------------------------------
  330. m4_define([lt_decl_quote_varnames],
  331. [_lt_decl_filter([value], [1], $@)])
  332. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  333. # ---------------------------------------------------
  334. m4_define([lt_decl_dquote_varnames],
  335. [_lt_decl_filter([value], [2], $@)])
  336. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  337. # ---------------------------------------------------
  338. m4_define([lt_decl_varnames_tagged],
  339. [m4_assert([$# <= 2])dnl
  340. _$0(m4_quote(m4_default([$1], [[, ]])),
  341. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  342. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  343. m4_define([_lt_decl_varnames_tagged],
  344. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  345. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  346. # ------------------------------------------------
  347. m4_define([lt_decl_all_varnames],
  348. [_$0(m4_quote(m4_default([$1], [[, ]])),
  349. m4_if([$2], [],
  350. m4_quote(lt_decl_varnames),
  351. m4_quote(m4_shift($@))))[]dnl
  352. ])
  353. m4_define([_lt_decl_all_varnames],
  354. [lt_join($@, lt_decl_varnames_tagged([$1],
  355. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  356. ])
  357. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  358. # ------------------------------------
  359. # Quote a variable value, and forward it to `config.status' so that its
  360. # declaration there will have the same value as in `configure'. VARNAME
  361. # must have a single quote delimited value for this to work.
  362. m4_define([_LT_CONFIG_STATUS_DECLARE],
  363. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  364. # _LT_CONFIG_STATUS_DECLARATIONS
  365. # ------------------------------
  366. # We delimit libtool config variables with single quotes, so when
  367. # we write them to config.status, we have to be sure to quote all
  368. # embedded single quotes properly. In configure, this macro expands
  369. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  370. #
  371. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  372. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  373. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  374. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  375. # _LT_LIBTOOL_TAGS
  376. # ----------------
  377. # Output comment and list of tags supported by the script
  378. m4_defun([_LT_LIBTOOL_TAGS],
  379. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  380. available_tags="_LT_TAGS"dnl
  381. ])
  382. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  383. # -----------------------------------
  384. # Extract the dictionary values for VARNAME (optionally with TAG) and
  385. # expand to a commented shell variable setting:
  386. #
  387. # # Some comment about what VAR is for.
  388. # visible_name=$lt_internal_name
  389. m4_define([_LT_LIBTOOL_DECLARE],
  390. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  391. [description])))[]dnl
  392. m4_pushdef([_libtool_name],
  393. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  394. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  395. [0], [_libtool_name=[$]$1],
  396. [1], [_libtool_name=$lt_[]$1],
  397. [2], [_libtool_name=$lt_[]$1],
  398. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  399. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  400. ])
  401. # _LT_LIBTOOL_CONFIG_VARS
  402. # -----------------------
  403. # Produce commented declarations of non-tagged libtool config variables
  404. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  405. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  406. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  407. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  408. [m4_foreach([_lt_var],
  409. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  410. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  411. # _LT_LIBTOOL_TAG_VARS(TAG)
  412. # -------------------------
  413. m4_define([_LT_LIBTOOL_TAG_VARS],
  414. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  415. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  416. # _LT_TAGVAR(VARNAME, [TAGNAME])
  417. # ------------------------------
  418. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  419. # _LT_CONFIG_COMMANDS
  420. # -------------------
  421. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  422. # variables for single and double quote escaping we saved from calls
  423. # to _LT_DECL, we can put quote escaped variables declarations
  424. # into `config.status', and then the shell code to quote escape them in
  425. # for loops in `config.status'. Finally, any additional code accumulated
  426. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  427. m4_defun([_LT_CONFIG_COMMANDS],
  428. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  429. dnl If the libtool generation code has been placed in $CONFIG_LT,
  430. dnl instead of duplicating it all over again into config.status,
  431. dnl then we will have config.status run $CONFIG_LT later, so it
  432. dnl needs to know what name is stored there:
  433. [AC_CONFIG_COMMANDS([libtool],
  434. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  435. dnl If the libtool generation code is destined for config.status,
  436. dnl expand the accumulated commands and init code now:
  437. [AC_CONFIG_COMMANDS([libtool],
  438. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  439. ])#_LT_CONFIG_COMMANDS
  440. # Initialize.
  441. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  442. [
  443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  444. # if CDPATH is set.
  445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  446. sed_quote_subst='$sed_quote_subst'
  447. double_quote_subst='$double_quote_subst'
  448. delay_variable_subst='$delay_variable_subst'
  449. _LT_CONFIG_STATUS_DECLARATIONS
  450. LTCC='$LTCC'
  451. LTCFLAGS='$LTCFLAGS'
  452. compiler='$compiler_DEFAULT'
  453. # A function that is used when there is no print builtin or printf.
  454. func_fallback_echo ()
  455. {
  456. eval 'cat <<_LTECHO_EOF
  457. \$[]1
  458. _LTECHO_EOF'
  459. }
  460. # Quote evaled strings.
  461. for var in lt_decl_all_varnames([[ \
  462. ]], lt_decl_quote_varnames); do
  463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  464. *[[\\\\\\\`\\"\\\$]]*)
  465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  466. ;;
  467. *)
  468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  469. ;;
  470. esac
  471. done
  472. # Double-quote double-evaled strings.
  473. for var in lt_decl_all_varnames([[ \
  474. ]], lt_decl_dquote_varnames); do
  475. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  476. *[[\\\\\\\`\\"\\\$]]*)
  477. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  478. ;;
  479. *)
  480. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  481. ;;
  482. esac
  483. done
  484. _LT_OUTPUT_LIBTOOL_INIT
  485. ])
  486. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  487. # ------------------------------------
  488. # Generate a child script FILE with all initialization necessary to
  489. # reuse the environment learned by the parent script, and make the
  490. # file executable. If COMMENT is supplied, it is inserted after the
  491. # `#!' sequence but before initialization text begins. After this
  492. # macro, additional text can be appended to FILE to form the body of
  493. # the child script. The macro ends with non-zero status if the
  494. # file could not be fully written (such as if the disk is full).
  495. m4_ifdef([AS_INIT_GENERATED],
  496. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],
  498. [m4_require([AS_PREPARE])]dnl
  499. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  500. [lt_write_fail=0
  501. cat >$1 <<_ASEOF || lt_write_fail=1
  502. #! $SHELL
  503. # Generated by $as_me.
  504. $2
  505. SHELL=\${CONFIG_SHELL-$SHELL}
  506. export SHELL
  507. _ASEOF
  508. cat >>$1 <<\_ASEOF || lt_write_fail=1
  509. AS_SHELL_SANITIZE
  510. _AS_PREPARE
  511. exec AS_MESSAGE_FD>&1
  512. _ASEOF
  513. test $lt_write_fail = 0 && chmod +x $1[]dnl
  514. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  515. # LT_OUTPUT
  516. # ---------
  517. # This macro allows early generation of the libtool script (before
  518. # AC_OUTPUT is called), incase it is used in configure for compilation
  519. # tests.
  520. AC_DEFUN([LT_OUTPUT],
  521. [: ${CONFIG_LT=./config.lt}
  522. AC_MSG_NOTICE([creating $CONFIG_LT])
  523. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  524. [# Run this file to recreate a libtool stub with the current configuration.])
  525. cat >>"$CONFIG_LT" <<\_LTEOF
  526. lt_cl_silent=false
  527. exec AS_MESSAGE_LOG_FD>>config.log
  528. {
  529. echo
  530. AS_BOX([Running $as_me.])
  531. } >&AS_MESSAGE_LOG_FD
  532. lt_cl_help="\
  533. \`$as_me' creates a local libtool stub from the current configuration,
  534. for use in further configure time tests before the real libtool is
  535. generated.
  536. Usage: $[0] [[OPTIONS]]
  537. -h, --help print this help, then exit
  538. -V, --version print version number, then exit
  539. -q, --quiet do not print progress messages
  540. -d, --debug don't remove temporary files
  541. Report bugs to <[email protected]>."
  542. lt_cl_version="\
  543. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  544. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  545. configured by $[0], generated by m4_PACKAGE_STRING.
  546. Copyright (C) 2011 Free Software Foundation, Inc.
  547. This config.lt script is free software; the Free Software Foundation
  548. gives unlimited permision to copy, distribute and modify it."
  549. while test $[#] != 0
  550. do
  551. case $[1] in
  552. --version | --v* | -V )
  553. echo "$lt_cl_version"; exit 0 ;;
  554. --help | --h* | -h )
  555. echo "$lt_cl_help"; exit 0 ;;
  556. --debug | --d* | -d )
  557. debug=: ;;
  558. --quiet | --q* | --silent | --s* | -q )
  559. lt_cl_silent=: ;;
  560. -*) AC_MSG_ERROR([unrecognized option: $[1]
  561. Try \`$[0] --help' for more information.]) ;;
  562. *) AC_MSG_ERROR([unrecognized argument: $[1]
  563. Try \`$[0] --help' for more information.]) ;;
  564. esac
  565. shift
  566. done
  567. if $lt_cl_silent; then
  568. exec AS_MESSAGE_FD>/dev/null
  569. fi
  570. _LTEOF
  571. cat >>"$CONFIG_LT" <<_LTEOF
  572. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  573. _LTEOF
  574. cat >>"$CONFIG_LT" <<\_LTEOF
  575. AC_MSG_NOTICE([creating $ofile])
  576. _LT_OUTPUT_LIBTOOL_COMMANDS
  577. AS_EXIT(0)
  578. _LTEOF
  579. chmod +x "$CONFIG_LT"
  580. # configure is writing to config.log, but config.lt does its own redirection,
  581. # appending to config.log, which fails on DOS, as config.log is still kept
  582. # open by configure. Here we exec the FD to /dev/null, effectively closing
  583. # config.log, so it can be properly (re)opened and appended to by config.lt.
  584. lt_cl_success=:
  585. test "$silent" = yes &&
  586. lt_config_lt_args="$lt_config_lt_args --quiet"
  587. exec AS_MESSAGE_LOG_FD>/dev/null
  588. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  589. exec AS_MESSAGE_LOG_FD>>config.log
  590. $lt_cl_success || AS_EXIT(1)
  591. ])# LT_OUTPUT
  592. # _LT_CONFIG(TAG)
  593. # ---------------
  594. # If TAG is the built-in tag, create an initial libtool script with a
  595. # default configuration from the untagged config vars. Otherwise add code
  596. # to config.status for appending the configuration named by TAG from the
  597. # matching tagged config vars.
  598. m4_defun([_LT_CONFIG],
  599. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  600. _LT_CONFIG_SAVE_COMMANDS([
  601. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  602. m4_if(_LT_TAG, [C], [
  603. # See if we are running on zsh, and set the options which allow our
  604. # commands through without removal of \ escapes.
  605. if test -n "${ZSH_VERSION+set}" ; then
  606. setopt NO_GLOB_SUBST
  607. fi
  608. cfgfile="${ofile}T"
  609. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  610. $RM "$cfgfile"
  611. cat <<_LT_EOF >> "$cfgfile"
  612. #! $SHELL
  613. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  614. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  615. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  616. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  617. #
  618. _LT_COPYING
  619. _LT_LIBTOOL_TAGS
  620. # ### BEGIN LIBTOOL CONFIG
  621. _LT_LIBTOOL_CONFIG_VARS
  622. _LT_LIBTOOL_TAG_VARS
  623. # ### END LIBTOOL CONFIG
  624. _LT_EOF
  625. case $host_os in
  626. aix3*)
  627. cat <<\_LT_EOF >> "$cfgfile"
  628. # AIX sometimes has problems with the GCC collect2 program. For some
  629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  630. # vanish in a puff of smoke.
  631. if test "X${COLLECT_NAMES+set}" != Xset; then
  632. COLLECT_NAMES=
  633. export COLLECT_NAMES
  634. fi
  635. _LT_EOF
  636. ;;
  637. esac
  638. _LT_PROG_LTMAIN
  639. # We use sed instead of cat because bash on DJGPP gets confused if
  640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  641. # text mode, it properly converts lines to CR/LF. This bash problem
  642. # is reportedly fixed, but why not run on old versions too?
  643. sed '$q' "$ltmain" >> "$cfgfile" \
  644. || (rm -f "$cfgfile"; exit 1)
  645. _LT_PROG_REPLACE_SHELLFNS
  646. mv -f "$cfgfile" "$ofile" ||
  647. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  648. chmod +x "$ofile"
  649. ],
  650. [cat <<_LT_EOF >> "$ofile"
  651. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  652. dnl in a comment (ie after a #).
  653. # ### BEGIN LIBTOOL TAG CONFIG: $1
  654. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  655. # ### END LIBTOOL TAG CONFIG: $1
  656. _LT_EOF
  657. ])dnl /m4_if
  658. ],
  659. [m4_if([$1], [], [
  660. PACKAGE='$PACKAGE'
  661. VERSION='$VERSION'
  662. TIMESTAMP='$TIMESTAMP'
  663. RM='$RM'
  664. ofile='$ofile'], [])
  665. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  666. ])# _LT_CONFIG
  667. # LT_SUPPORTED_TAG(TAG)
  668. # ---------------------
  669. # Trace this macro to discover what tags are supported by the libtool
  670. # --tag option, using:
  671. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  672. AC_DEFUN([LT_SUPPORTED_TAG], [])
  673. # C support is built-in for now
  674. m4_define([_LT_LANG_C_enabled], [])
  675. m4_define([_LT_TAGS], [])
  676. # LT_LANG(LANG)
  677. # -------------
  678. # Enable libtool support for the given language if not already enabled.
  679. AC_DEFUN([LT_LANG],
  680. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  681. m4_case([$1],
  682. [C], [_LT_LANG(C)],
  683. [C++], [_LT_LANG(CXX)],
  684. [Go], [_LT_LANG(GO)],
  685. [Java], [_LT_LANG(GCJ)],
  686. [Fortran 77], [_LT_LANG(F77)],
  687. [Fortran], [_LT_LANG(FC)],
  688. [Windows Resource], [_LT_LANG(RC)],
  689. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  690. [_LT_LANG($1)],
  691. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  692. ])# LT_LANG
  693. # _LT_LANG(LANGNAME)
  694. # ------------------
  695. m4_defun([_LT_LANG],
  696. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  697. [LT_SUPPORTED_TAG([$1])dnl
  698. m4_append([_LT_TAGS], [$1 ])dnl
  699. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  700. _LT_LANG_$1_CONFIG($1)])dnl
  701. ])# _LT_LANG
  702. m4_ifndef([AC_PROG_GO], [
  703. # NOTE: This macro has been submitted for inclusion into #
  704. # GNU Autoconf as AC_PROG_GO. When it is available in #
  705. # a released version of Autoconf we should remove this #
  706. # macro and use it instead. #
  707. m4_defun([AC_PROG_GO],
  708. [AC_LANG_PUSH(Go)dnl
  709. AC_ARG_VAR([GOC], [Go compiler command])dnl
  710. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  711. _AC_ARG_VAR_LDFLAGS()dnl
  712. AC_CHECK_TOOL(GOC, gccgo)
  713. if test -z "$GOC"; then
  714. if test -n "$ac_tool_prefix"; then
  715. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  716. fi
  717. fi
  718. if test -z "$GOC"; then
  719. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  720. fi
  721. ])#m4_defun
  722. ])#m4_ifndef
  723. # _LT_LANG_DEFAULT_CONFIG
  724. # -----------------------
  725. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  726. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  727. [LT_LANG(CXX)],
  728. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  729. AC_PROVIDE_IFELSE([AC_PROG_F77],
  730. [LT_LANG(F77)],
  731. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  732. AC_PROVIDE_IFELSE([AC_PROG_FC],
  733. [LT_LANG(FC)],
  734. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  735. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  736. dnl pulling things in needlessly.
  737. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  738. [LT_LANG(GCJ)],
  739. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  740. [LT_LANG(GCJ)],
  741. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  742. [LT_LANG(GCJ)],
  743. [m4_ifdef([AC_PROG_GCJ],
  744. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  745. m4_ifdef([A][M_PROG_GCJ],
  746. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  747. m4_ifdef([LT_PROG_GCJ],
  748. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  749. AC_PROVIDE_IFELSE([AC_PROG_GO],
  750. [LT_LANG(GO)],
  751. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  752. AC_PROVIDE_IFELSE([LT_PROG_RC],
  753. [LT_LANG(RC)],
  754. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  755. ])# _LT_LANG_DEFAULT_CONFIG
  756. # Obsolete macros:
  757. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  758. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  759. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  760. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  761. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  762. dnl aclocal-1.4 backwards compatibility:
  763. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  764. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  768. # _LT_TAG_COMPILER
  769. # ----------------
  770. m4_defun([_LT_TAG_COMPILER],
  771. [AC_REQUIRE([AC_PROG_CC])dnl
  772. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  773. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  774. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  775. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  776. # If no C compiler was specified, use CC.
  777. LTCC=${LTCC-"$CC"}
  778. # If no C compiler flags were specified, use CFLAGS.
  779. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  780. # Allow CC to be a program name with arguments.
  781. compiler=$CC
  782. ])# _LT_TAG_COMPILER
  783. # _LT_COMPILER_BOILERPLATE
  784. # ------------------------
  785. # Check for compiler boilerplate output or warnings with
  786. # the simple compiler test code.
  787. m4_defun([_LT_COMPILER_BOILERPLATE],
  788. [m4_require([_LT_DECL_SED])dnl
  789. ac_outfile=conftest.$ac_objext
  790. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  791. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  792. _lt_compiler_boilerplate=`cat conftest.err`
  793. $RM conftest*
  794. ])# _LT_COMPILER_BOILERPLATE
  795. # _LT_LINKER_BOILERPLATE
  796. # ----------------------
  797. # Check for linker boilerplate output or warnings with
  798. # the simple link test code.
  799. m4_defun([_LT_LINKER_BOILERPLATE],
  800. [m4_require([_LT_DECL_SED])dnl
  801. ac_outfile=conftest.$ac_objext
  802. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  803. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  804. _lt_linker_boilerplate=`cat conftest.err`
  805. $RM -r conftest*
  806. ])# _LT_LINKER_BOILERPLATE
  807. # _LT_REQUIRED_DARWIN_CHECKS
  808. # -------------------------
  809. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  810. case $host_os in
  811. rhapsody* | darwin*)
  812. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  813. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  814. AC_CHECK_TOOL([LIPO], [lipo], [:])
  815. AC_CHECK_TOOL([OTOOL], [otool], [:])
  816. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  817. _LT_DECL([], [DSYMUTIL], [1],
  818. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  819. _LT_DECL([], [NMEDIT], [1],
  820. [Tool to change global to local symbols on Mac OS X])
  821. _LT_DECL([], [LIPO], [1],
  822. [Tool to manipulate fat objects and archives on Mac OS X])
  823. _LT_DECL([], [OTOOL], [1],
  824. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  825. _LT_DECL([], [OTOOL64], [1],
  826. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  827. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  828. [lt_cv_apple_cc_single_mod=no
  829. if test -z "${LT_MULTI_MODULE}"; then
  830. # By default we will add the -single_module flag. You can override
  831. # by either setting the environment variable LT_MULTI_MODULE
  832. # non-empty at configure time, or by adding -multi_module to the
  833. # link flags.
  834. rm -rf libconftest.dylib*
  835. echo "int foo(void){return 1;}" > conftest.c
  836. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  837. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  838. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  839. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  840. _lt_result=$?
  841. # If there is a non-empty error log, and "single_module"
  842. # appears in it, assume the flag caused a linker warning
  843. if test -s conftest.err && $GREP single_module conftest.err; then
  844. cat conftest.err >&AS_MESSAGE_LOG_FD
  845. # Otherwise, if the output was created with a 0 exit code from
  846. # the compiler, it worked.
  847. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  848. lt_cv_apple_cc_single_mod=yes
  849. else
  850. cat conftest.err >&AS_MESSAGE_LOG_FD
  851. fi
  852. rm -rf libconftest.dylib*
  853. rm -f conftest.*
  854. fi])
  855. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  856. [lt_cv_ld_exported_symbols_list],
  857. [lt_cv_ld_exported_symbols_list=no
  858. save_LDFLAGS=$LDFLAGS
  859. echo "_main" > conftest.sym
  860. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  861. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  862. [lt_cv_ld_exported_symbols_list=yes],
  863. [lt_cv_ld_exported_symbols_list=no])
  864. LDFLAGS="$save_LDFLAGS"
  865. ])
  866. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  867. [lt_cv_ld_force_load=no
  868. cat > conftest.c << _LT_EOF
  869. int forced_loaded() { return 2;}
  870. _LT_EOF
  871. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  872. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  873. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  874. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  875. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  876. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  877. cat > conftest.c << _LT_EOF
  878. int main() { return 0;}
  879. _LT_EOF
  880. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  881. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  882. _lt_result=$?
  883. if test -s conftest.err && $GREP force_load conftest.err; then
  884. cat conftest.err >&AS_MESSAGE_LOG_FD
  885. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  886. lt_cv_ld_force_load=yes
  887. else
  888. cat conftest.err >&AS_MESSAGE_LOG_FD
  889. fi
  890. rm -f conftest.err libconftest.a conftest conftest.c
  891. rm -rf conftest.dSYM
  892. ])
  893. case $host_os in
  894. rhapsody* | darwin1.[[012]])
  895. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  896. darwin1.*)
  897. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  898. darwin*) # darwin 5.x on
  899. # if running on 10.5 or later, the deployment target defaults
  900. # to the OS version, if on x86, and 10.4, the deployment
  901. # target defaults to 10.4. Don't you love it?
  902. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  903. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  904. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  905. 10.[[012]]*)
  906. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  907. 10.*)
  908. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  909. esac
  910. ;;
  911. esac
  912. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  913. _lt_dar_single_mod='$single_module'
  914. fi
  915. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  916. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  917. else
  918. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  919. fi
  920. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  921. _lt_dsymutil='~$DSYMUTIL $lib || :'
  922. else
  923. _lt_dsymutil=
  924. fi
  925. ;;
  926. esac
  927. ])
  928. # _LT_DARWIN_LINKER_FEATURES([TAG])
  929. # ---------------------------------
  930. # Checks for linker and compiler features on darwin
  931. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  932. [
  933. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  934. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  935. _LT_TAGVAR(hardcode_direct, $1)=no
  936. _LT_TAGVAR(hardcode_automatic, $1)=yes
  937. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  938. if test "$lt_cv_ld_force_load" = "yes"; then
  939. _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\"`'
  940. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  941. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  942. else
  943. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  944. fi
  945. _LT_TAGVAR(link_all_deplibs, $1)=yes
  946. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  947. case $cc_basename in
  948. ifort*) _lt_dar_can_shared=yes ;;
  949. *) _lt_dar_can_shared=$GCC ;;
  950. esac
  951. if test "$_lt_dar_can_shared" = "yes"; then
  952. output_verbose_link_cmd=func_echo_all
  953. _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}"
  954. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  955. _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}"
  956. _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}"
  957. m4_if([$1], [CXX],
  958. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  959. _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}"
  960. _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}"
  961. fi
  962. ],[])
  963. else
  964. _LT_TAGVAR(ld_shlibs, $1)=no
  965. fi
  966. ])
  967. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  968. # ----------------------------------
  969. # Links a minimal program and checks the executable
  970. # for the system default hardcoded library path. In most cases,
  971. # this is /usr/lib:/lib, but when the MPI compilers are used
  972. # the location of the communication and MPI libs are included too.
  973. # If we don't find anything, use the default library path according
  974. # to the aix ld manual.
  975. # Store the results from the different compilers for each TAGNAME.
  976. # Allow to override them for all tags through lt_cv_aix_libpath.
  977. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  978. [m4_require([_LT_DECL_SED])dnl
  979. if test "${lt_cv_aix_libpath+set}" = set; then
  980. aix_libpath=$lt_cv_aix_libpath
  981. else
  982. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  983. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  984. lt_aix_libpath_sed='[
  985. /Import File Strings/,/^$/ {
  986. /^0/ {
  987. s/^0 *\([^ ]*\) *$/\1/
  988. p
  989. }
  990. }]'
  991. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  992. # Check for a 64-bit object if we didn't find anything.
  993. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  994. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  995. fi],[])
  996. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  997. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  998. fi
  999. ])
  1000. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1001. fi
  1002. ])# _LT_SYS_MODULE_PATH_AIX
  1003. # _LT_SHELL_INIT(ARG)
  1004. # -------------------
  1005. m4_define([_LT_SHELL_INIT],
  1006. [m4_divert_text([M4SH-INIT], [$1
  1007. ])])# _LT_SHELL_INIT
  1008. # _LT_PROG_ECHO_BACKSLASH
  1009. # -----------------------
  1010. # Find how we can fake an echo command that does not interpret backslash.
  1011. # In particular, with Autoconf 2.60 or later we add some code to the start
  1012. # of the generated configure script which will find a shell with a builtin
  1013. # printf (which we can use as an echo command).
  1014. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1015. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1016. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. AC_MSG_CHECKING([how to print strings])
  1019. # Test print first, because it will be a builtin if present.
  1020. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1021. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1022. ECHO='print -r --'
  1023. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1024. ECHO='printf %s\n'
  1025. else
  1026. # Use this function as a fallback that always works.
  1027. func_fallback_echo ()
  1028. {
  1029. eval 'cat <<_LTECHO_EOF
  1030. $[]1
  1031. _LTECHO_EOF'
  1032. }
  1033. ECHO='func_fallback_echo'
  1034. fi
  1035. # func_echo_all arg...
  1036. # Invoke $ECHO with all args, space-separated.
  1037. func_echo_all ()
  1038. {
  1039. $ECHO "$*"
  1040. }
  1041. case "$ECHO" in
  1042. printf*) AC_MSG_RESULT([printf]) ;;
  1043. print*) AC_MSG_RESULT([print -r]) ;;
  1044. *) AC_MSG_RESULT([cat]) ;;
  1045. esac
  1046. m4_ifdef([_AS_DETECT_SUGGESTED],
  1047. [_AS_DETECT_SUGGESTED([
  1048. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1049. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1050. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. PATH=/empty FPATH=/empty; export PATH FPATH
  1053. test "X`printf %s $ECHO`" = "X$ECHO" \
  1054. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1055. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1056. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1057. ])# _LT_PROG_ECHO_BACKSLASH
  1058. # _LT_WITH_SYSROOT
  1059. # ----------------
  1060. AC_DEFUN([_LT_WITH_SYSROOT],
  1061. [AC_MSG_CHECKING([for sysroot])
  1062. AC_ARG_WITH([sysroot],
  1063. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1064. (or the compiler's sysroot if not specified).],
  1065. [], [with_sysroot=no])
  1066. dnl lt_sysroot will always be passed unquoted. We quote it here
  1067. dnl in case the user passed a directory name.
  1068. lt_sysroot=
  1069. case ${with_sysroot} in #(
  1070. yes)
  1071. if test "$GCC" = yes; then
  1072. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1073. fi
  1074. ;; #(
  1075. /*)
  1076. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1077. ;; #(
  1078. no|'')
  1079. ;; #(
  1080. *)
  1081. AC_MSG_RESULT([${with_sysroot}])
  1082. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1083. ;;
  1084. esac
  1085. AC_MSG_RESULT([${lt_sysroot:-no}])
  1086. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1087. [dependent libraries, and in which our libraries should be installed.])])
  1088. # _LT_ENABLE_LOCK
  1089. # ---------------
  1090. m4_defun([_LT_ENABLE_LOCK],
  1091. [AC_ARG_ENABLE([libtool-lock],
  1092. [AS_HELP_STRING([--disable-libtool-lock],
  1093. [avoid locking (might break parallel builds)])])
  1094. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1095. # Some flags need to be propagated to the compiler or linker for good
  1096. # libtool support.
  1097. case $host in
  1098. ia64-*-hpux*)
  1099. # Find out which ABI we are using.
  1100. echo 'int i;' > conftest.$ac_ext
  1101. if AC_TRY_EVAL(ac_compile); then
  1102. case `/usr/bin/file conftest.$ac_objext` in
  1103. *ELF-32*)
  1104. HPUX_IA64_MODE="32"
  1105. ;;
  1106. *ELF-64*)
  1107. HPUX_IA64_MODE="64"
  1108. ;;
  1109. esac
  1110. fi
  1111. rm -rf conftest*
  1112. ;;
  1113. *-*-irix6*)
  1114. # Find out which ABI we are using.
  1115. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1116. if AC_TRY_EVAL(ac_compile); then
  1117. if test "$lt_cv_prog_gnu_ld" = yes; then
  1118. case `/usr/bin/file conftest.$ac_objext` in
  1119. *32-bit*)
  1120. LD="${LD-ld} -melf32bsmip"
  1121. ;;
  1122. *N32*)
  1123. LD="${LD-ld} -melf32bmipn32"
  1124. ;;
  1125. *64-bit*)
  1126. LD="${LD-ld} -melf64bmip"
  1127. ;;
  1128. esac
  1129. else
  1130. case `/usr/bin/file conftest.$ac_objext` in
  1131. *32-bit*)
  1132. LD="${LD-ld} -32"
  1133. ;;
  1134. *N32*)
  1135. LD="${LD-ld} -n32"
  1136. ;;
  1137. *64-bit*)
  1138. LD="${LD-ld} -64"
  1139. ;;
  1140. esac
  1141. fi
  1142. fi
  1143. rm -rf conftest*
  1144. ;;
  1145. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1146. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1147. # Find out which ABI we are using.
  1148. echo 'int i;' > conftest.$ac_ext
  1149. if AC_TRY_EVAL(ac_compile); then
  1150. case `/usr/bin/file conftest.o` in
  1151. *32-bit*)
  1152. case $host in
  1153. x86_64-*kfreebsd*-gnu)
  1154. LD="${LD-ld} -m elf_i386_fbsd"
  1155. ;;
  1156. x86_64-*linux*)
  1157. LD="${LD-ld} -m elf_i386"
  1158. ;;
  1159. powerpc64le-*linux*)
  1160. LD="${LD-ld} -m elf32lppclinux"
  1161. ;;
  1162. powerpc64-*linux*)
  1163. LD="${LD-ld} -m elf32ppclinux"
  1164. ;;
  1165. s390x-*linux*)
  1166. LD="${LD-ld} -m elf_s390"
  1167. ;;
  1168. sparc64-*linux*)
  1169. LD="${LD-ld} -m elf32_sparc"
  1170. ;;
  1171. esac
  1172. ;;
  1173. *64-bit*)
  1174. case $host in
  1175. x86_64-*kfreebsd*-gnu)
  1176. LD="${LD-ld} -m elf_x86_64_fbsd"
  1177. ;;
  1178. x86_64-*linux*)
  1179. LD="${LD-ld} -m elf_x86_64"
  1180. ;;
  1181. powerpcle-*linux*)
  1182. LD="${LD-ld} -m elf64lppc"
  1183. ;;
  1184. powerpc-*linux*)
  1185. LD="${LD-ld} -m elf64ppc"
  1186. ;;
  1187. s390*-*linux*|s390*-*tpf*)
  1188. LD="${LD-ld} -m elf64_s390"
  1189. ;;
  1190. sparc*-*linux*)
  1191. LD="${LD-ld} -m elf64_sparc"
  1192. ;;
  1193. esac
  1194. ;;
  1195. esac
  1196. fi
  1197. rm -rf conftest*
  1198. ;;
  1199. *-*-sco3.2v5*)
  1200. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1201. SAVE_CFLAGS="$CFLAGS"
  1202. CFLAGS="$CFLAGS -belf"
  1203. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1204. [AC_LANG_PUSH(C)
  1205. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1206. AC_LANG_POP])
  1207. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1208. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1209. CFLAGS="$SAVE_CFLAGS"
  1210. fi
  1211. ;;
  1212. *-*solaris*)
  1213. # Find out which ABI we are using.
  1214. echo 'int i;' > conftest.$ac_ext
  1215. if AC_TRY_EVAL(ac_compile); then
  1216. case `/usr/bin/file conftest.o` in
  1217. *64-bit*)
  1218. case $lt_cv_prog_gnu_ld in
  1219. yes*)
  1220. case $host in
  1221. i?86-*-solaris*)
  1222. LD="${LD-ld} -m elf_x86_64"
  1223. ;;
  1224. sparc*-*-solaris*)
  1225. LD="${LD-ld} -m elf64_sparc"
  1226. ;;
  1227. esac
  1228. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1229. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1230. LD="${LD-ld}_sol2"
  1231. fi
  1232. ;;
  1233. *)
  1234. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1235. LD="${LD-ld} -64"
  1236. fi
  1237. ;;
  1238. esac
  1239. ;;
  1240. esac
  1241. fi
  1242. rm -rf conftest*
  1243. ;;
  1244. esac
  1245. need_locks="$enable_libtool_lock"
  1246. ])# _LT_ENABLE_LOCK
  1247. # _LT_PROG_AR
  1248. # -----------
  1249. m4_defun([_LT_PROG_AR],
  1250. [AC_CHECK_TOOLS(AR, [ar], false)
  1251. : ${AR=ar}
  1252. : ${AR_FLAGS=cru}
  1253. _LT_DECL([], [AR], [1], [The archiver])
  1254. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1255. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1256. [lt_cv_ar_at_file=no
  1257. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1258. [echo conftest.$ac_objext > conftest.lst
  1259. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1260. AC_TRY_EVAL([lt_ar_try])
  1261. if test "$ac_status" -eq 0; then
  1262. # Ensure the archiver fails upon bogus file names.
  1263. rm -f conftest.$ac_objext libconftest.a
  1264. AC_TRY_EVAL([lt_ar_try])
  1265. if test "$ac_status" -ne 0; then
  1266. lt_cv_ar_at_file=@
  1267. fi
  1268. fi
  1269. rm -f conftest.* libconftest.a
  1270. ])
  1271. ])
  1272. if test "x$lt_cv_ar_at_file" = xno; then
  1273. archiver_list_spec=
  1274. else
  1275. archiver_list_spec=$lt_cv_ar_at_file
  1276. fi
  1277. _LT_DECL([], [archiver_list_spec], [1],
  1278. [How to feed a file listing to the archiver])
  1279. ])# _LT_PROG_AR
  1280. # _LT_CMD_OLD_ARCHIVE
  1281. # -------------------
  1282. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1283. [_LT_PROG_AR
  1284. AC_CHECK_TOOL(STRIP, strip, :)
  1285. test -z "$STRIP" && STRIP=:
  1286. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1287. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1288. test -z "$RANLIB" && RANLIB=:
  1289. _LT_DECL([], [RANLIB], [1],
  1290. [Commands used to install an old-style archive])
  1291. # Determine commands to create old-style static archives.
  1292. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1293. old_postinstall_cmds='chmod 644 $oldlib'
  1294. old_postuninstall_cmds=
  1295. if test -n "$RANLIB"; then
  1296. case $host_os in
  1297. openbsd*)
  1298. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1299. ;;
  1300. *)
  1301. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1302. ;;
  1303. esac
  1304. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1305. fi
  1306. case $host_os in
  1307. darwin*)
  1308. lock_old_archive_extraction=yes ;;
  1309. *)
  1310. lock_old_archive_extraction=no ;;
  1311. esac
  1312. _LT_DECL([], [old_postinstall_cmds], [2])
  1313. _LT_DECL([], [old_postuninstall_cmds], [2])
  1314. _LT_TAGDECL([], [old_archive_cmds], [2],
  1315. [Commands used to build an old-style archive])
  1316. _LT_DECL([], [lock_old_archive_extraction], [0],
  1317. [Whether to use a lock for old archive extraction])
  1318. ])# _LT_CMD_OLD_ARCHIVE
  1319. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1320. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1321. # ----------------------------------------------------------------
  1322. # Check whether the given compiler option works
  1323. AC_DEFUN([_LT_COMPILER_OPTION],
  1324. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1325. m4_require([_LT_DECL_SED])dnl
  1326. AC_CACHE_CHECK([$1], [$2],
  1327. [$2=no
  1328. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1330. lt_compiler_flag="$3"
  1331. # Insert the option either (1) after the last *FLAGS variable, or
  1332. # (2) before a word containing "conftest.", or (3) at the end.
  1333. # Note that $ac_compile itself does not contain backslashes and begins
  1334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1335. # The option is referenced via a variable to avoid confusing sed.
  1336. lt_compile=`echo "$ac_compile" | $SED \
  1337. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1338. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1339. -e 's:$: $lt_compiler_flag:'`
  1340. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1341. (eval "$lt_compile" 2>conftest.err)
  1342. ac_status=$?
  1343. cat conftest.err >&AS_MESSAGE_LOG_FD
  1344. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1345. if (exit $ac_status) && test -s "$ac_outfile"; then
  1346. # The compiler can only warn and ignore the option if not recognized
  1347. # So say no if there are warnings other than the usual output.
  1348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1349. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1350. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1351. $2=yes
  1352. fi
  1353. fi
  1354. $RM conftest*
  1355. ])
  1356. if test x"[$]$2" = xyes; then
  1357. m4_if([$5], , :, [$5])
  1358. else
  1359. m4_if([$6], , :, [$6])
  1360. fi
  1361. ])# _LT_COMPILER_OPTION
  1362. # Old name:
  1363. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1364. dnl aclocal-1.4 backwards compatibility:
  1365. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1366. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1367. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1368. # ----------------------------------------------------
  1369. # Check whether the given linker option works
  1370. AC_DEFUN([_LT_LINKER_OPTION],
  1371. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1372. m4_require([_LT_DECL_SED])dnl
  1373. AC_CACHE_CHECK([$1], [$2],
  1374. [$2=no
  1375. save_LDFLAGS="$LDFLAGS"
  1376. LDFLAGS="$LDFLAGS $3"
  1377. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1378. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1379. # The linker can only warn and ignore the option if not recognized
  1380. # So say no if there are warnings
  1381. if test -s conftest.err; then
  1382. # Append any errors to the config.log.
  1383. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1384. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1385. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1386. if diff conftest.exp conftest.er2 >/dev/null; then
  1387. $2=yes
  1388. fi
  1389. else
  1390. $2=yes
  1391. fi
  1392. fi
  1393. $RM -r conftest*
  1394. LDFLAGS="$save_LDFLAGS"
  1395. ])
  1396. if test x"[$]$2" = xyes; then
  1397. m4_if([$4], , :, [$4])
  1398. else
  1399. m4_if([$5], , :, [$5])
  1400. fi
  1401. ])# _LT_LINKER_OPTION
  1402. # Old name:
  1403. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1404. dnl aclocal-1.4 backwards compatibility:
  1405. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1406. # LT_CMD_MAX_LEN
  1407. #---------------
  1408. AC_DEFUN([LT_CMD_MAX_LEN],
  1409. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1410. # find the maximum length of command line arguments
  1411. AC_MSG_CHECKING([the maximum length of command line arguments])
  1412. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1413. i=0
  1414. teststring="ABCD"
  1415. case $build_os in
  1416. msdosdjgpp*)
  1417. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1418. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1419. # during glob expansion). Even if it were fixed, the result of this
  1420. # check would be larger than it should be.
  1421. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1422. ;;
  1423. gnu*)
  1424. # Under GNU Hurd, this test is not required because there is
  1425. # no limit to the length of command line arguments.
  1426. # Libtool will interpret -1 as no limit whatsoever
  1427. lt_cv_sys_max_cmd_len=-1;
  1428. ;;
  1429. cygwin* | mingw* | cegcc*)
  1430. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1431. # about 5 minutes as the teststring grows exponentially.
  1432. # Worse, since 9x/ME are not pre-emptively multitasking,
  1433. # you end up with a "frozen" computer, even though with patience
  1434. # the test eventually succeeds (with a max line length of 256k).
  1435. # Instead, let's just punt: use the minimum linelength reported by
  1436. # all of the supported platforms: 8192 (on NT/2K/XP).
  1437. lt_cv_sys_max_cmd_len=8192;
  1438. ;;
  1439. mint*)
  1440. # On MiNT this can take a long time and run out of memory.
  1441. lt_cv_sys_max_cmd_len=8192;
  1442. ;;
  1443. amigaos*)
  1444. # On AmigaOS with pdksh, this test takes hours, literally.
  1445. # So we just punt and use a minimum line length of 8192.
  1446. lt_cv_sys_max_cmd_len=8192;
  1447. ;;
  1448. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1449. # This has been around since 386BSD, at least. Likely further.
  1450. if test -x /sbin/sysctl; then
  1451. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1452. elif test -x /usr/sbin/sysctl; then
  1453. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1454. else
  1455. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1456. fi
  1457. # And add a safety zone
  1458. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1459. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1460. ;;
  1461. interix*)
  1462. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1463. lt_cv_sys_max_cmd_len=196608
  1464. ;;
  1465. os2*)
  1466. # The test takes a long time on OS/2.
  1467. lt_cv_sys_max_cmd_len=8192
  1468. ;;
  1469. osf*)
  1470. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1471. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1472. # nice to cause kernel panics so lets avoid the loop below.
  1473. # First set a reasonable default.
  1474. lt_cv_sys_max_cmd_len=16384
  1475. #
  1476. if test -x /sbin/sysconfig; then
  1477. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1478. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1479. esac
  1480. fi
  1481. ;;
  1482. sco3.2v5*)
  1483. lt_cv_sys_max_cmd_len=102400
  1484. ;;
  1485. sysv5* | sco5v6* | sysv4.2uw2*)
  1486. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1487. if test -n "$kargmax"; then
  1488. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1489. else
  1490. lt_cv_sys_max_cmd_len=32768
  1491. fi
  1492. ;;
  1493. *)
  1494. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1495. if test -n "$lt_cv_sys_max_cmd_len"; then
  1496. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1497. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1498. else
  1499. # Make teststring a little bigger before we do anything with it.
  1500. # a 1K string should be a reasonable start.
  1501. for i in 1 2 3 4 5 6 7 8 ; do
  1502. teststring=$teststring$teststring
  1503. done
  1504. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1505. # If test is not a shell built-in, we'll probably end up computing a
  1506. # maximum length that is only half of the actual maximum length, but
  1507. # we can't tell.
  1508. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1509. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1510. test $i != 17 # 1/2 MB should be enough
  1511. do
  1512. i=`expr $i + 1`
  1513. teststring=$teststring$teststring
  1514. done
  1515. # Only check the string length outside the loop.
  1516. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1517. teststring=
  1518. # Add a significant safety factor because C++ compilers can tack on
  1519. # massive amounts of additional arguments before passing them to the
  1520. # linker. It appears as though 1/2 is a usable value.
  1521. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1522. fi
  1523. ;;
  1524. esac
  1525. ])
  1526. if test -n $lt_cv_sys_max_cmd_len ; then
  1527. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1528. else
  1529. AC_MSG_RESULT(none)
  1530. fi
  1531. max_cmd_len=$lt_cv_sys_max_cmd_len
  1532. _LT_DECL([], [max_cmd_len], [0],
  1533. [What is the maximum length of a command?])
  1534. ])# LT_CMD_MAX_LEN
  1535. # Old name:
  1536. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1537. dnl aclocal-1.4 backwards compatibility:
  1538. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1539. # _LT_HEADER_DLFCN
  1540. # ----------------
  1541. m4_defun([_LT_HEADER_DLFCN],
  1542. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1543. ])# _LT_HEADER_DLFCN
  1544. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1545. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1546. # ----------------------------------------------------------------
  1547. m4_defun([_LT_TRY_DLOPEN_SELF],
  1548. [m4_require([_LT_HEADER_DLFCN])dnl
  1549. if test "$cross_compiling" = yes; then :
  1550. [$4]
  1551. else
  1552. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1553. lt_status=$lt_dlunknown
  1554. cat > conftest.$ac_ext <<_LT_EOF
  1555. [#line $LINENO "configure"
  1556. #include "confdefs.h"
  1557. #if HAVE_DLFCN_H
  1558. #include <dlfcn.h>
  1559. #endif
  1560. #include <stdio.h>
  1561. #ifdef RTLD_GLOBAL
  1562. # define LT_DLGLOBAL RTLD_GLOBAL
  1563. #else
  1564. # ifdef DL_GLOBAL
  1565. # define LT_DLGLOBAL DL_GLOBAL
  1566. # else
  1567. # define LT_DLGLOBAL 0
  1568. # endif
  1569. #endif
  1570. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1571. find out it does not work in some platform. */
  1572. #ifndef LT_DLLAZY_OR_NOW
  1573. # ifdef RTLD_LAZY
  1574. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1575. # else
  1576. # ifdef DL_LAZY
  1577. # define LT_DLLAZY_OR_NOW DL_LAZY
  1578. # else
  1579. # ifdef RTLD_NOW
  1580. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1581. # else
  1582. # ifdef DL_NOW
  1583. # define LT_DLLAZY_OR_NOW DL_NOW
  1584. # else
  1585. # define LT_DLLAZY_OR_NOW 0
  1586. # endif
  1587. # endif
  1588. # endif
  1589. # endif
  1590. #endif
  1591. /* When -fvisbility=hidden is used, assume the code has been annotated
  1592. correspondingly for the symbols needed. */
  1593. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1594. int fnord () __attribute__((visibility("default")));
  1595. #endif
  1596. int fnord () { return 42; }
  1597. int main ()
  1598. {
  1599. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1600. int status = $lt_dlunknown;
  1601. if (self)
  1602. {
  1603. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1604. else
  1605. {
  1606. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1607. else puts (dlerror ());
  1608. }
  1609. /* dlclose (self); */
  1610. }
  1611. else
  1612. puts (dlerror ());
  1613. return status;
  1614. }]
  1615. _LT_EOF
  1616. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1617. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1618. lt_status=$?
  1619. case x$lt_status in
  1620. x$lt_dlno_uscore) $1 ;;
  1621. x$lt_dlneed_uscore) $2 ;;
  1622. x$lt_dlunknown|x*) $3 ;;
  1623. esac
  1624. else :
  1625. # compilation failed
  1626. $3
  1627. fi
  1628. fi
  1629. rm -fr conftest*
  1630. ])# _LT_TRY_DLOPEN_SELF
  1631. # LT_SYS_DLOPEN_SELF
  1632. # ------------------
  1633. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1634. [m4_require([_LT_HEADER_DLFCN])dnl
  1635. if test "x$enable_dlopen" != xyes; then
  1636. enable_dlopen=unknown
  1637. enable_dlopen_self=unknown
  1638. enable_dlopen_self_static=unknown
  1639. else
  1640. lt_cv_dlopen=no
  1641. lt_cv_dlopen_libs=
  1642. case $host_os in
  1643. beos*)
  1644. lt_cv_dlopen="load_add_on"
  1645. lt_cv_dlopen_libs=
  1646. lt_cv_dlopen_self=yes
  1647. ;;
  1648. mingw* | pw32* | cegcc*)
  1649. lt_cv_dlopen="LoadLibrary"
  1650. lt_cv_dlopen_libs=
  1651. ;;
  1652. cygwin*)
  1653. lt_cv_dlopen="dlopen"
  1654. lt_cv_dlopen_libs=
  1655. ;;
  1656. darwin*)
  1657. # if libdl is installed we need to link against it
  1658. AC_CHECK_LIB([dl], [dlopen],
  1659. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1660. lt_cv_dlopen="dyld"
  1661. lt_cv_dlopen_libs=
  1662. lt_cv_dlopen_self=yes
  1663. ])
  1664. ;;
  1665. *)
  1666. AC_CHECK_FUNC([shl_load],
  1667. [lt_cv_dlopen="shl_load"],
  1668. [AC_CHECK_LIB([dld], [shl_load],
  1669. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1670. [AC_CHECK_FUNC([dlopen],
  1671. [lt_cv_dlopen="dlopen"],
  1672. [AC_CHECK_LIB([dl], [dlopen],
  1673. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1674. [AC_CHECK_LIB([svld], [dlopen],
  1675. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1676. [AC_CHECK_LIB([dld], [dld_link],
  1677. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1678. ])
  1679. ])
  1680. ])
  1681. ])
  1682. ])
  1683. ;;
  1684. esac
  1685. if test "x$lt_cv_dlopen" != xno; then
  1686. enable_dlopen=yes
  1687. else
  1688. enable_dlopen=no
  1689. fi
  1690. case $lt_cv_dlopen in
  1691. dlopen)
  1692. save_CPPFLAGS="$CPPFLAGS"
  1693. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1694. save_LDFLAGS="$LDFLAGS"
  1695. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1696. save_LIBS="$LIBS"
  1697. LIBS="$lt_cv_dlopen_libs $LIBS"
  1698. AC_CACHE_CHECK([whether a program can dlopen itself],
  1699. lt_cv_dlopen_self, [dnl
  1700. _LT_TRY_DLOPEN_SELF(
  1701. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1702. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1703. ])
  1704. if test "x$lt_cv_dlopen_self" = xyes; then
  1705. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1706. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1707. lt_cv_dlopen_self_static, [dnl
  1708. _LT_TRY_DLOPEN_SELF(
  1709. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1710. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1711. ])
  1712. fi
  1713. CPPFLAGS="$save_CPPFLAGS"
  1714. LDFLAGS="$save_LDFLAGS"
  1715. LIBS="$save_LIBS"
  1716. ;;
  1717. esac
  1718. case $lt_cv_dlopen_self in
  1719. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1720. *) enable_dlopen_self=unknown ;;
  1721. esac
  1722. case $lt_cv_dlopen_self_static in
  1723. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1724. *) enable_dlopen_self_static=unknown ;;
  1725. esac
  1726. fi
  1727. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1728. [Whether dlopen is supported])
  1729. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1730. [Whether dlopen of programs is supported])
  1731. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1732. [Whether dlopen of statically linked programs is supported])
  1733. ])# LT_SYS_DLOPEN_SELF
  1734. # Old name:
  1735. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1736. dnl aclocal-1.4 backwards compatibility:
  1737. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1738. # _LT_COMPILER_C_O([TAGNAME])
  1739. # ---------------------------
  1740. # Check to see if options -c and -o are simultaneously supported by compiler.
  1741. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1742. m4_defun([_LT_COMPILER_C_O],
  1743. [m4_require([_LT_DECL_SED])dnl
  1744. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1745. m4_require([_LT_TAG_COMPILER])dnl
  1746. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1747. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1748. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1749. $RM -r conftest 2>/dev/null
  1750. mkdir conftest
  1751. cd conftest
  1752. mkdir out
  1753. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1754. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1755. # Insert the option either (1) after the last *FLAGS variable, or
  1756. # (2) before a word containing "conftest.", or (3) at the end.
  1757. # Note that $ac_compile itself does not contain backslashes and begins
  1758. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1759. lt_compile=`echo "$ac_compile" | $SED \
  1760. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1761. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1762. -e 's:$: $lt_compiler_flag:'`
  1763. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1764. (eval "$lt_compile" 2>out/conftest.err)
  1765. ac_status=$?
  1766. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1768. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1769. then
  1770. # The compiler can only warn and ignore the option if not recognized
  1771. # So say no if there are warnings
  1772. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1773. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1774. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1775. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1776. fi
  1777. fi
  1778. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1779. $RM conftest*
  1780. # SGI C++ compiler will create directory out/ii_files/ for
  1781. # template instantiation
  1782. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1783. $RM out/* && rmdir out
  1784. cd ..
  1785. $RM -r conftest
  1786. $RM conftest*
  1787. ])
  1788. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1789. [Does compiler simultaneously support -c and -o options?])
  1790. ])# _LT_COMPILER_C_O
  1791. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1792. # ----------------------------------
  1793. # Check to see if we can do hard links to lock some files if needed
  1794. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1795. [m4_require([_LT_ENABLE_LOCK])dnl
  1796. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1797. _LT_COMPILER_C_O([$1])
  1798. hard_links="nottested"
  1799. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1800. # do not overwrite the value of need_locks provided by the user
  1801. AC_MSG_CHECKING([if we can lock with hard links])
  1802. hard_links=yes
  1803. $RM conftest*
  1804. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1805. touch conftest.a
  1806. ln conftest.a conftest.b 2>&5 || hard_links=no
  1807. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1808. AC_MSG_RESULT([$hard_links])
  1809. if test "$hard_links" = no; then
  1810. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1811. need_locks=warn
  1812. fi
  1813. else
  1814. need_locks=no
  1815. fi
  1816. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1817. ])# _LT_COMPILER_FILE_LOCKS
  1818. # _LT_CHECK_OBJDIR
  1819. # ----------------
  1820. m4_defun([_LT_CHECK_OBJDIR],
  1821. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1822. [rm -f .libs 2>/dev/null
  1823. mkdir .libs 2>/dev/null
  1824. if test -d .libs; then
  1825. lt_cv_objdir=.libs
  1826. else
  1827. # MS-DOS does not allow filenames that begin with a dot.
  1828. lt_cv_objdir=_libs
  1829. fi
  1830. rmdir .libs 2>/dev/null])
  1831. objdir=$lt_cv_objdir
  1832. _LT_DECL([], [objdir], [0],
  1833. [The name of the directory that contains temporary libtool files])dnl
  1834. m4_pattern_allow([LT_OBJDIR])dnl
  1835. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1836. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1837. ])# _LT_CHECK_OBJDIR
  1838. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1839. # --------------------------------------
  1840. # Check hardcoding attributes.
  1841. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1842. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1843. _LT_TAGVAR(hardcode_action, $1)=
  1844. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1845. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1846. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1847. # We can hardcode non-existent directories.
  1848. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1849. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1850. # have to relink, otherwise we might link with an installed library
  1851. # when we should be linking with a yet-to-be-installed one
  1852. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1853. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1854. # Linking always hardcodes the temporary library directory.
  1855. _LT_TAGVAR(hardcode_action, $1)=relink
  1856. else
  1857. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1858. _LT_TAGVAR(hardcode_action, $1)=immediate
  1859. fi
  1860. else
  1861. # We cannot hardcode anything, or else we can only hardcode existing
  1862. # directories.
  1863. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1864. fi
  1865. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1866. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1867. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1868. # Fast installation is not supported
  1869. enable_fast_install=no
  1870. elif test "$shlibpath_overrides_runpath" = yes ||
  1871. test "$enable_shared" = no; then
  1872. # Fast installation is not necessary
  1873. enable_fast_install=needless
  1874. fi
  1875. _LT_TAGDECL([], [hardcode_action], [0],
  1876. [How to hardcode a shared library path into an executable])
  1877. ])# _LT_LINKER_HARDCODE_LIBPATH
  1878. # _LT_CMD_STRIPLIB
  1879. # ----------------
  1880. m4_defun([_LT_CMD_STRIPLIB],
  1881. [m4_require([_LT_DECL_EGREP])
  1882. striplib=
  1883. old_striplib=
  1884. AC_MSG_CHECKING([whether stripping libraries is possible])
  1885. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1886. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1887. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1888. AC_MSG_RESULT([yes])
  1889. else
  1890. # FIXME - insert some real tests, host_os isn't really good enough
  1891. case $host_os in
  1892. darwin*)
  1893. if test -n "$STRIP" ; then
  1894. striplib="$STRIP -x"
  1895. old_striplib="$STRIP -S"
  1896. AC_MSG_RESULT([yes])
  1897. else
  1898. AC_MSG_RESULT([no])
  1899. fi
  1900. ;;
  1901. *)
  1902. AC_MSG_RESULT([no])
  1903. ;;
  1904. esac
  1905. fi
  1906. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1907. _LT_DECL([], [striplib], [1])
  1908. ])# _LT_CMD_STRIPLIB
  1909. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1910. # -----------------------------
  1911. # PORTME Fill in your ld.so characteristics
  1912. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1913. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1914. m4_require([_LT_DECL_EGREP])dnl
  1915. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1916. m4_require([_LT_DECL_OBJDUMP])dnl
  1917. m4_require([_LT_DECL_SED])dnl
  1918. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1919. AC_MSG_CHECKING([dynamic linker characteristics])
  1920. m4_if([$1],
  1921. [], [
  1922. if test "$GCC" = yes; then
  1923. case $host_os in
  1924. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1925. *) lt_awk_arg="/^libraries:/" ;;
  1926. esac
  1927. case $host_os in
  1928. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1929. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1930. esac
  1931. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1932. case $lt_search_path_spec in
  1933. *\;*)
  1934. # if the path contains ";" then we assume it to be the separator
  1935. # otherwise default to the standard path separator (i.e. ":") - it is
  1936. # assumed that no part of a normal pathname contains ";" but that should
  1937. # okay in the real world where ";" in dirpaths is itself problematic.
  1938. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1939. ;;
  1940. *)
  1941. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1942. ;;
  1943. esac
  1944. # Ok, now we have the path, separated by spaces, we can step through it
  1945. # and add multilib dir if necessary.
  1946. lt_tmp_lt_search_path_spec=
  1947. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1948. for lt_sys_path in $lt_search_path_spec; do
  1949. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1950. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1951. else
  1952. test -d "$lt_sys_path" && \
  1953. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1954. fi
  1955. done
  1956. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1957. BEGIN {RS=" "; FS="/|\n";} {
  1958. lt_foo="";
  1959. lt_count=0;
  1960. for (lt_i = NF; lt_i > 0; lt_i--) {
  1961. if ($lt_i != "" && $lt_i != ".") {
  1962. if ($lt_i == "..") {
  1963. lt_count++;
  1964. } else {
  1965. if (lt_count == 0) {
  1966. lt_foo="/" $lt_i lt_foo;
  1967. } else {
  1968. lt_count--;
  1969. }
  1970. }
  1971. }
  1972. }
  1973. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1974. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1975. }'`
  1976. # AWK program above erroneously prepends '/' to C:/dos/paths
  1977. # for these hosts.
  1978. case $host_os in
  1979. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1980. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1981. esac
  1982. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1983. else
  1984. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1985. fi])
  1986. library_names_spec=
  1987. libname_spec='lib$name'
  1988. soname_spec=
  1989. shrext_cmds=".so"
  1990. postinstall_cmds=
  1991. postuninstall_cmds=
  1992. finish_cmds=
  1993. finish_eval=
  1994. shlibpath_var=
  1995. shlibpath_overrides_runpath=unknown
  1996. version_type=none
  1997. dynamic_linker="$host_os ld.so"
  1998. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1999. need_lib_prefix=unknown
  2000. hardcode_into_libs=no
  2001. # when you set need_version to no, make sure it does not cause -set_version
  2002. # flags to be left without arguments
  2003. need_version=unknown
  2004. case $host_os in
  2005. aix3*)
  2006. version_type=linux # correct to gnu/linux during the next big refactor
  2007. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2008. shlibpath_var=LIBPATH
  2009. # AIX 3 has no versioning support, so we append a major version to the name.
  2010. soname_spec='${libname}${release}${shared_ext}$major'
  2011. ;;
  2012. aix[[4-9]]*)
  2013. version_type=linux # correct to gnu/linux during the next big refactor
  2014. need_lib_prefix=no
  2015. need_version=no
  2016. hardcode_into_libs=yes
  2017. if test "$host_cpu" = ia64; then
  2018. # AIX 5 supports IA64
  2019. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2020. shlibpath_var=LD_LIBRARY_PATH
  2021. else
  2022. # With GCC up to 2.95.x, collect2 would create an import file
  2023. # for dependence libraries. The import file would start with
  2024. # the line `#! .'. This would cause the generated library to
  2025. # depend on `.', always an invalid library. This was fixed in
  2026. # development snapshots of GCC prior to 3.0.
  2027. case $host_os in
  2028. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2029. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2030. echo ' yes '
  2031. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2032. :
  2033. else
  2034. can_build_shared=no
  2035. fi
  2036. ;;
  2037. esac
  2038. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2039. # soname into executable. Probably we can add versioning support to
  2040. # collect2, so additional links can be useful in future.
  2041. if test "$aix_use_runtimelinking" = yes; then
  2042. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2043. # instead of lib<name>.a to let people know that these are not
  2044. # typical AIX shared libraries.
  2045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2046. else
  2047. # We preserve .a as extension for shared libraries through AIX4.2
  2048. # and later when we are not doing run time linking.
  2049. library_names_spec='${libname}${release}.a $libname.a'
  2050. soname_spec='${libname}${release}${shared_ext}$major'
  2051. fi
  2052. shlibpath_var=LIBPATH
  2053. fi
  2054. ;;
  2055. amigaos*)
  2056. case $host_cpu in
  2057. powerpc)
  2058. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2059. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2061. ;;
  2062. m68k)
  2063. library_names_spec='$libname.ixlibrary $libname.a'
  2064. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2065. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2066. ;;
  2067. esac
  2068. ;;
  2069. beos*)
  2070. library_names_spec='${libname}${shared_ext}'
  2071. dynamic_linker="$host_os ld.so"
  2072. shlibpath_var=LIBRARY_PATH
  2073. ;;
  2074. bsdi[[45]]*)
  2075. version_type=linux # correct to gnu/linux during the next big refactor
  2076. need_version=no
  2077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2078. soname_spec='${libname}${release}${shared_ext}$major'
  2079. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2080. shlibpath_var=LD_LIBRARY_PATH
  2081. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2082. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2083. # the default ld.so.conf also contains /usr/contrib/lib and
  2084. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2085. # libtool to hard-code these into programs
  2086. ;;
  2087. cygwin* | mingw* | pw32* | cegcc*)
  2088. version_type=windows
  2089. shrext_cmds=".dll"
  2090. need_version=no
  2091. need_lib_prefix=no
  2092. case $GCC,$cc_basename in
  2093. yes,*)
  2094. # gcc
  2095. library_names_spec='$libname.dll.a'
  2096. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2097. postinstall_cmds='base_file=`basename \${file}`~
  2098. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2099. dldir=$destdir/`dirname \$dlpath`~
  2100. test -d \$dldir || mkdir -p \$dldir~
  2101. $install_prog $dir/$dlname \$dldir/$dlname~
  2102. chmod a+x \$dldir/$dlname~
  2103. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2104. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2105. fi'
  2106. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2107. dlpath=$dir/\$dldll~
  2108. $RM \$dlpath'
  2109. shlibpath_overrides_runpath=yes
  2110. case $host_os in
  2111. cygwin*)
  2112. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2113. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2114. m4_if([$1], [],[
  2115. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2116. ;;
  2117. mingw* | cegcc*)
  2118. # MinGW DLLs use traditional 'lib' prefix
  2119. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2120. ;;
  2121. pw32*)
  2122. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2123. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2124. ;;
  2125. esac
  2126. dynamic_linker='Win32 ld.exe'
  2127. ;;
  2128. *,cl*)
  2129. # Native MSVC
  2130. libname_spec='$name'
  2131. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2132. library_names_spec='${libname}.dll.lib'
  2133. case $build_os in
  2134. mingw*)
  2135. sys_lib_search_path_spec=
  2136. lt_save_ifs=$IFS
  2137. IFS=';'
  2138. for lt_path in $LIB
  2139. do
  2140. IFS=$lt_save_ifs
  2141. # Let DOS variable expansion print the short 8.3 style file name.
  2142. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2143. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2144. done
  2145. IFS=$lt_save_ifs
  2146. # Convert to MSYS style.
  2147. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2148. ;;
  2149. cygwin*)
  2150. # Convert to unix form, then to dos form, then back to unix form
  2151. # but this time dos style (no spaces!) so that the unix form looks
  2152. # like /cygdrive/c/PROGRA~1:/cygdr...
  2153. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2154. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2155. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2156. ;;
  2157. *)
  2158. sys_lib_search_path_spec="$LIB"
  2159. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2160. # It is most probably a Windows format PATH.
  2161. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2162. else
  2163. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2164. fi
  2165. # FIXME: find the short name or the path components, as spaces are
  2166. # common. (e.g. "Program Files" -> "PROGRA~1")
  2167. ;;
  2168. esac
  2169. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2170. postinstall_cmds='base_file=`basename \${file}`~
  2171. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2172. dldir=$destdir/`dirname \$dlpath`~
  2173. test -d \$dldir || mkdir -p \$dldir~
  2174. $install_prog $dir/$dlname \$dldir/$dlname'
  2175. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2176. dlpath=$dir/\$dldll~
  2177. $RM \$dlpath'
  2178. shlibpath_overrides_runpath=yes
  2179. dynamic_linker='Win32 link.exe'
  2180. ;;
  2181. *)
  2182. # Assume MSVC wrapper
  2183. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2184. dynamic_linker='Win32 ld.exe'
  2185. ;;
  2186. esac
  2187. # FIXME: first we should search . and the directory the executable is in
  2188. shlibpath_var=PATH
  2189. ;;
  2190. darwin* | rhapsody*)
  2191. dynamic_linker="$host_os dyld"
  2192. version_type=darwin
  2193. need_lib_prefix=no
  2194. need_version=no
  2195. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2196. soname_spec='${libname}${release}${major}$shared_ext'
  2197. shlibpath_overrides_runpath=yes
  2198. shlibpath_var=DYLD_LIBRARY_PATH
  2199. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2200. m4_if([$1], [],[
  2201. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2202. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2203. ;;
  2204. dgux*)
  2205. version_type=linux # correct to gnu/linux during the next big refactor
  2206. need_lib_prefix=no
  2207. need_version=no
  2208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2209. soname_spec='${libname}${release}${shared_ext}$major'
  2210. shlibpath_var=LD_LIBRARY_PATH
  2211. ;;
  2212. freebsd* | dragonfly*)
  2213. # DragonFly does not have aout. When/if they implement a new
  2214. # versioning mechanism, adjust this.
  2215. if test -x /usr/bin/objformat; then
  2216. objformat=`/usr/bin/objformat`
  2217. else
  2218. case $host_os in
  2219. freebsd[[23]].*) objformat=aout ;;
  2220. *) objformat=elf ;;
  2221. esac
  2222. fi
  2223. version_type=freebsd-$objformat
  2224. case $version_type in
  2225. freebsd-elf*)
  2226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2227. need_version=no
  2228. need_lib_prefix=no
  2229. ;;
  2230. freebsd-*)
  2231. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2232. need_version=yes
  2233. ;;
  2234. esac
  2235. shlibpath_var=LD_LIBRARY_PATH
  2236. case $host_os in
  2237. freebsd2.*)
  2238. shlibpath_overrides_runpath=yes
  2239. ;;
  2240. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2241. shlibpath_overrides_runpath=yes
  2242. hardcode_into_libs=yes
  2243. ;;
  2244. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2245. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2246. shlibpath_overrides_runpath=no
  2247. hardcode_into_libs=yes
  2248. ;;
  2249. *) # from 4.6 on, and DragonFly
  2250. shlibpath_overrides_runpath=yes
  2251. hardcode_into_libs=yes
  2252. ;;
  2253. esac
  2254. ;;
  2255. gnu*)
  2256. version_type=linux # correct to gnu/linux during the next big refactor
  2257. need_lib_prefix=no
  2258. need_version=no
  2259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2260. soname_spec='${libname}${release}${shared_ext}$major'
  2261. shlibpath_var=LD_LIBRARY_PATH
  2262. shlibpath_overrides_runpath=no
  2263. hardcode_into_libs=yes
  2264. ;;
  2265. haiku*)
  2266. version_type=linux # correct to gnu/linux during the next big refactor
  2267. need_lib_prefix=no
  2268. need_version=no
  2269. dynamic_linker="$host_os runtime_loader"
  2270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2271. soname_spec='${libname}${release}${shared_ext}$major'
  2272. shlibpath_var=LIBRARY_PATH
  2273. shlibpath_overrides_runpath=yes
  2274. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2275. hardcode_into_libs=yes
  2276. ;;
  2277. hpux9* | hpux10* | hpux11*)
  2278. # Give a soname corresponding to the major version so that dld.sl refuses to
  2279. # link against other versions.
  2280. version_type=sunos
  2281. need_lib_prefix=no
  2282. need_version=no
  2283. case $host_cpu in
  2284. ia64*)
  2285. shrext_cmds='.so'
  2286. hardcode_into_libs=yes
  2287. dynamic_linker="$host_os dld.so"
  2288. shlibpath_var=LD_LIBRARY_PATH
  2289. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2291. soname_spec='${libname}${release}${shared_ext}$major'
  2292. if test "X$HPUX_IA64_MODE" = X32; then
  2293. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2294. else
  2295. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2296. fi
  2297. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2298. ;;
  2299. hppa*64*)
  2300. shrext_cmds='.sl'
  2301. hardcode_into_libs=yes
  2302. dynamic_linker="$host_os dld.sl"
  2303. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2304. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2306. soname_spec='${libname}${release}${shared_ext}$major'
  2307. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2308. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2309. ;;
  2310. *)
  2311. shrext_cmds='.sl'
  2312. dynamic_linker="$host_os dld.sl"
  2313. shlibpath_var=SHLIB_PATH
  2314. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2316. soname_spec='${libname}${release}${shared_ext}$major'
  2317. ;;
  2318. esac
  2319. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2320. postinstall_cmds='chmod 555 $lib'
  2321. # or fails outright, so override atomically:
  2322. install_override_mode=555
  2323. ;;
  2324. interix[[3-9]]*)
  2325. version_type=linux # correct to gnu/linux during the next big refactor
  2326. need_lib_prefix=no
  2327. need_version=no
  2328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2329. soname_spec='${libname}${release}${shared_ext}$major'
  2330. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2331. shlibpath_var=LD_LIBRARY_PATH
  2332. shlibpath_overrides_runpath=no
  2333. hardcode_into_libs=yes
  2334. ;;
  2335. irix5* | irix6* | nonstopux*)
  2336. case $host_os in
  2337. nonstopux*) version_type=nonstopux ;;
  2338. *)
  2339. if test "$lt_cv_prog_gnu_ld" = yes; then
  2340. version_type=linux # correct to gnu/linux during the next big refactor
  2341. else
  2342. version_type=irix
  2343. fi ;;
  2344. esac
  2345. need_lib_prefix=no
  2346. need_version=no
  2347. soname_spec='${libname}${release}${shared_ext}$major'
  2348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2349. case $host_os in
  2350. irix5* | nonstopux*)
  2351. libsuff= shlibsuff=
  2352. ;;
  2353. *)
  2354. case $LD in # libtool.m4 will add one of these switches to LD
  2355. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2356. libsuff= shlibsuff= libmagic=32-bit;;
  2357. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2358. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2359. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2360. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2361. *) libsuff= shlibsuff= libmagic=never-match;;
  2362. esac
  2363. ;;
  2364. esac
  2365. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2366. shlibpath_overrides_runpath=no
  2367. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2368. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2369. hardcode_into_libs=yes
  2370. ;;
  2371. # No shared lib support for Linux oldld, aout, or coff.
  2372. linux*oldld* | linux*aout* | linux*coff*)
  2373. dynamic_linker=no
  2374. ;;
  2375. # This must be glibc/ELF.
  2376. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2377. version_type=linux # correct to gnu/linux during the next big refactor
  2378. need_lib_prefix=no
  2379. need_version=no
  2380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2381. soname_spec='${libname}${release}${shared_ext}$major'
  2382. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2383. shlibpath_var=LD_LIBRARY_PATH
  2384. shlibpath_overrides_runpath=no
  2385. # Some binutils ld are patched to set DT_RUNPATH
  2386. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2387. [lt_cv_shlibpath_overrides_runpath=no
  2388. save_LDFLAGS=$LDFLAGS
  2389. save_libdir=$libdir
  2390. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2391. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2392. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2393. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2394. [lt_cv_shlibpath_overrides_runpath=yes])])
  2395. LDFLAGS=$save_LDFLAGS
  2396. libdir=$save_libdir
  2397. ])
  2398. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2399. # This implies no fast_install, which is unacceptable.
  2400. # Some rework will be needed to allow for fast_install
  2401. # before this can be enabled.
  2402. hardcode_into_libs=yes
  2403. # Add ABI-specific directories to the system library path.
  2404. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2405. # Append ld.so.conf contents to the search path
  2406. if test -f /etc/ld.so.conf; then
  2407. 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' ' '`
  2408. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2409. fi
  2410. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2411. # powerpc, because MkLinux only supported shared libraries with the
  2412. # GNU dynamic linker. Since this was broken with cross compilers,
  2413. # most powerpc-linux boxes support dynamic linking these days and
  2414. # people can always --disable-shared, the test was removed, and we
  2415. # assume the GNU/Linux dynamic linker is in use.
  2416. dynamic_linker='GNU/Linux ld.so'
  2417. ;;
  2418. netbsd*)
  2419. version_type=sunos
  2420. need_lib_prefix=no
  2421. need_version=no
  2422. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2424. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2425. dynamic_linker='NetBSD (a.out) ld.so'
  2426. else
  2427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2428. soname_spec='${libname}${release}${shared_ext}$major'
  2429. dynamic_linker='NetBSD ld.elf_so'
  2430. fi
  2431. shlibpath_var=LD_LIBRARY_PATH
  2432. shlibpath_overrides_runpath=yes
  2433. hardcode_into_libs=yes
  2434. ;;
  2435. newsos6)
  2436. version_type=linux # correct to gnu/linux during the next big refactor
  2437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2438. shlibpath_var=LD_LIBRARY_PATH
  2439. shlibpath_overrides_runpath=yes
  2440. ;;
  2441. *nto* | *qnx*)
  2442. version_type=qnx
  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. shlibpath_var=LD_LIBRARY_PATH
  2448. shlibpath_overrides_runpath=no
  2449. hardcode_into_libs=yes
  2450. dynamic_linker='ldqnx.so'
  2451. ;;
  2452. openbsd*)
  2453. version_type=sunos
  2454. sys_lib_dlsearch_path_spec="/usr/lib"
  2455. need_lib_prefix=no
  2456. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2457. case $host_os in
  2458. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2459. *) need_version=no ;;
  2460. esac
  2461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2462. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2463. shlibpath_var=LD_LIBRARY_PATH
  2464. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2465. case $host_os in
  2466. openbsd2.[[89]] | openbsd2.[[89]].*)
  2467. shlibpath_overrides_runpath=no
  2468. ;;
  2469. *)
  2470. shlibpath_overrides_runpath=yes
  2471. ;;
  2472. esac
  2473. else
  2474. shlibpath_overrides_runpath=yes
  2475. fi
  2476. ;;
  2477. os2*)
  2478. libname_spec='$name'
  2479. shrext_cmds=".dll"
  2480. need_lib_prefix=no
  2481. library_names_spec='$libname${shared_ext} $libname.a'
  2482. dynamic_linker='OS/2 ld.exe'
  2483. shlibpath_var=LIBPATH
  2484. ;;
  2485. osf3* | osf4* | osf5*)
  2486. version_type=osf
  2487. need_lib_prefix=no
  2488. need_version=no
  2489. soname_spec='${libname}${release}${shared_ext}$major'
  2490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2491. shlibpath_var=LD_LIBRARY_PATH
  2492. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2493. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2494. ;;
  2495. rdos*)
  2496. dynamic_linker=no
  2497. ;;
  2498. solaris*)
  2499. version_type=linux # correct to gnu/linux during the next big refactor
  2500. need_lib_prefix=no
  2501. need_version=no
  2502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2503. soname_spec='${libname}${release}${shared_ext}$major'
  2504. shlibpath_var=LD_LIBRARY_PATH
  2505. shlibpath_overrides_runpath=yes
  2506. hardcode_into_libs=yes
  2507. # ldd complains unless libraries are executable
  2508. postinstall_cmds='chmod +x $lib'
  2509. ;;
  2510. sunos4*)
  2511. version_type=sunos
  2512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2513. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2514. shlibpath_var=LD_LIBRARY_PATH
  2515. shlibpath_overrides_runpath=yes
  2516. if test "$with_gnu_ld" = yes; then
  2517. need_lib_prefix=no
  2518. fi
  2519. need_version=yes
  2520. ;;
  2521. sysv4 | sysv4.3*)
  2522. version_type=linux # correct to gnu/linux during the next big refactor
  2523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2524. soname_spec='${libname}${release}${shared_ext}$major'
  2525. shlibpath_var=LD_LIBRARY_PATH
  2526. case $host_vendor in
  2527. sni)
  2528. shlibpath_overrides_runpath=no
  2529. need_lib_prefix=no
  2530. runpath_var=LD_RUN_PATH
  2531. ;;
  2532. siemens)
  2533. need_lib_prefix=no
  2534. ;;
  2535. motorola)
  2536. need_lib_prefix=no
  2537. need_version=no
  2538. shlibpath_overrides_runpath=no
  2539. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2540. ;;
  2541. esac
  2542. ;;
  2543. sysv4*MP*)
  2544. if test -d /usr/nec ;then
  2545. version_type=linux # correct to gnu/linux during the next big refactor
  2546. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2547. soname_spec='$libname${shared_ext}.$major'
  2548. shlibpath_var=LD_LIBRARY_PATH
  2549. fi
  2550. ;;
  2551. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2552. version_type=freebsd-elf
  2553. need_lib_prefix=no
  2554. need_version=no
  2555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2556. soname_spec='${libname}${release}${shared_ext}$major'
  2557. shlibpath_var=LD_LIBRARY_PATH
  2558. shlibpath_overrides_runpath=yes
  2559. hardcode_into_libs=yes
  2560. if test "$with_gnu_ld" = yes; then
  2561. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2562. else
  2563. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2564. case $host_os in
  2565. sco3.2v5*)
  2566. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2567. ;;
  2568. esac
  2569. fi
  2570. sys_lib_dlsearch_path_spec='/usr/lib'
  2571. ;;
  2572. tpf*)
  2573. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2574. version_type=linux # correct to gnu/linux during the next big refactor
  2575. need_lib_prefix=no
  2576. need_version=no
  2577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2578. shlibpath_var=LD_LIBRARY_PATH
  2579. shlibpath_overrides_runpath=no
  2580. hardcode_into_libs=yes
  2581. ;;
  2582. uts4*)
  2583. version_type=linux # correct to gnu/linux during the next big refactor
  2584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2585. soname_spec='${libname}${release}${shared_ext}$major'
  2586. shlibpath_var=LD_LIBRARY_PATH
  2587. ;;
  2588. *)
  2589. dynamic_linker=no
  2590. ;;
  2591. esac
  2592. AC_MSG_RESULT([$dynamic_linker])
  2593. test "$dynamic_linker" = no && can_build_shared=no
  2594. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2595. if test "$GCC" = yes; then
  2596. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2597. fi
  2598. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2599. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2600. fi
  2601. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2602. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2603. fi
  2604. _LT_DECL([], [variables_saved_for_relink], [1],
  2605. [Variables whose values should be saved in libtool wrapper scripts and
  2606. restored at link time])
  2607. _LT_DECL([], [need_lib_prefix], [0],
  2608. [Do we need the "lib" prefix for modules?])
  2609. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2610. _LT_DECL([], [version_type], [0], [Library versioning type])
  2611. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2612. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2613. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2614. [Is shlibpath searched before the hard-coded library search path?])
  2615. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2616. _LT_DECL([], [library_names_spec], [1],
  2617. [[List of archive names. First name is the real one, the rest are links.
  2618. The last name is the one that the linker finds with -lNAME]])
  2619. _LT_DECL([], [soname_spec], [1],
  2620. [[The coded name of the library, if different from the real name]])
  2621. _LT_DECL([], [install_override_mode], [1],
  2622. [Permission mode override for installation of shared libraries])
  2623. _LT_DECL([], [postinstall_cmds], [2],
  2624. [Command to use after installation of a shared archive])
  2625. _LT_DECL([], [postuninstall_cmds], [2],
  2626. [Command to use after uninstallation of a shared archive])
  2627. _LT_DECL([], [finish_cmds], [2],
  2628. [Commands used to finish a libtool library installation in a directory])
  2629. _LT_DECL([], [finish_eval], [1],
  2630. [[As "finish_cmds", except a single script fragment to be evaled but
  2631. not shown]])
  2632. _LT_DECL([], [hardcode_into_libs], [0],
  2633. [Whether we should hardcode library paths into libraries])
  2634. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2635. [Compile-time system search path for libraries])
  2636. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2637. [Run-time system search path for libraries])
  2638. ])# _LT_SYS_DYNAMIC_LINKER
  2639. # _LT_PATH_TOOL_PREFIX(TOOL)
  2640. # --------------------------
  2641. # find a file program which can recognize shared library
  2642. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2643. [m4_require([_LT_DECL_EGREP])dnl
  2644. AC_MSG_CHECKING([for $1])
  2645. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2646. [case $MAGIC_CMD in
  2647. [[\\/*] | ?:[\\/]*])
  2648. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2649. ;;
  2650. *)
  2651. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2652. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2653. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2654. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2655. dnl not every word. This closes a longstanding sh security hole.
  2656. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2657. for ac_dir in $ac_dummy; do
  2658. IFS="$lt_save_ifs"
  2659. test -z "$ac_dir" && ac_dir=.
  2660. if test -f $ac_dir/$1; then
  2661. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2662. if test -n "$file_magic_test_file"; then
  2663. case $deplibs_check_method in
  2664. "file_magic "*)
  2665. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2666. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2667. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2668. $EGREP "$file_magic_regex" > /dev/null; then
  2669. :
  2670. else
  2671. cat <<_LT_EOF 1>&2
  2672. *** Warning: the command libtool uses to detect shared libraries,
  2673. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2674. *** The result is that libtool may fail to recognize shared libraries
  2675. *** as such. This will affect the creation of libtool libraries that
  2676. *** depend on shared libraries, but programs linked with such libtool
  2677. *** libraries will work regardless of this problem. Nevertheless, you
  2678. *** may want to report the problem to your system manager and/or to
  2679. *** [email protected]
  2680. _LT_EOF
  2681. fi ;;
  2682. esac
  2683. fi
  2684. break
  2685. fi
  2686. done
  2687. IFS="$lt_save_ifs"
  2688. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2689. ;;
  2690. esac])
  2691. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2692. if test -n "$MAGIC_CMD"; then
  2693. AC_MSG_RESULT($MAGIC_CMD)
  2694. else
  2695. AC_MSG_RESULT(no)
  2696. fi
  2697. _LT_DECL([], [MAGIC_CMD], [0],
  2698. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2699. ])# _LT_PATH_TOOL_PREFIX
  2700. # Old name:
  2701. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2702. dnl aclocal-1.4 backwards compatibility:
  2703. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2704. # _LT_PATH_MAGIC
  2705. # --------------
  2706. # find a file program which can recognize a shared library
  2707. m4_defun([_LT_PATH_MAGIC],
  2708. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2709. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2710. if test -n "$ac_tool_prefix"; then
  2711. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2712. else
  2713. MAGIC_CMD=:
  2714. fi
  2715. fi
  2716. ])# _LT_PATH_MAGIC
  2717. # LT_PATH_LD
  2718. # ----------
  2719. # find the pathname to the GNU or non-GNU linker
  2720. AC_DEFUN([LT_PATH_LD],
  2721. [AC_REQUIRE([AC_PROG_CC])dnl
  2722. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2723. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2724. m4_require([_LT_DECL_SED])dnl
  2725. m4_require([_LT_DECL_EGREP])dnl
  2726. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2727. AC_ARG_WITH([gnu-ld],
  2728. [AS_HELP_STRING([--with-gnu-ld],
  2729. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2730. [test "$withval" = no || with_gnu_ld=yes],
  2731. [with_gnu_ld=no])dnl
  2732. ac_prog=ld
  2733. if test "$GCC" = yes; then
  2734. # Check if gcc -print-prog-name=ld gives a path.
  2735. AC_MSG_CHECKING([for ld used by $CC])
  2736. case $host in
  2737. *-*-mingw*)
  2738. # gcc leaves a trailing carriage return which upsets mingw
  2739. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2740. *)
  2741. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2742. esac
  2743. case $ac_prog in
  2744. # Accept absolute paths.
  2745. [[\\/]]* | ?:[[\\/]]*)
  2746. re_direlt='/[[^/]][[^/]]*/\.\./'
  2747. # Canonicalize the pathname of ld
  2748. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2749. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2750. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2751. done
  2752. test -z "$LD" && LD="$ac_prog"
  2753. ;;
  2754. "")
  2755. # If it fails, then pretend we aren't using GCC.
  2756. ac_prog=ld
  2757. ;;
  2758. *)
  2759. # If it is relative, then search for the first ld in PATH.
  2760. with_gnu_ld=unknown
  2761. ;;
  2762. esac
  2763. elif test "$with_gnu_ld" = yes; then
  2764. AC_MSG_CHECKING([for GNU ld])
  2765. else
  2766. AC_MSG_CHECKING([for non-GNU ld])
  2767. fi
  2768. AC_CACHE_VAL(lt_cv_path_LD,
  2769. [if test -z "$LD"; then
  2770. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2771. for ac_dir in $PATH; do
  2772. IFS="$lt_save_ifs"
  2773. test -z "$ac_dir" && ac_dir=.
  2774. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2775. lt_cv_path_LD="$ac_dir/$ac_prog"
  2776. # Check to see if the program is GNU ld. I'd rather use --version,
  2777. # but apparently some variants of GNU ld only accept -v.
  2778. # Break only if it was the GNU/non-GNU ld that we prefer.
  2779. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2780. *GNU* | *'with BFD'*)
  2781. test "$with_gnu_ld" != no && break
  2782. ;;
  2783. *)
  2784. test "$with_gnu_ld" != yes && break
  2785. ;;
  2786. esac
  2787. fi
  2788. done
  2789. IFS="$lt_save_ifs"
  2790. else
  2791. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2792. fi])
  2793. LD="$lt_cv_path_LD"
  2794. if test -n "$LD"; then
  2795. AC_MSG_RESULT($LD)
  2796. else
  2797. AC_MSG_RESULT(no)
  2798. fi
  2799. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2800. _LT_PATH_LD_GNU
  2801. AC_SUBST([LD])
  2802. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2803. ])# LT_PATH_LD
  2804. # Old names:
  2805. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2806. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2807. dnl aclocal-1.4 backwards compatibility:
  2808. dnl AC_DEFUN([AM_PROG_LD], [])
  2809. dnl AC_DEFUN([AC_PROG_LD], [])
  2810. # _LT_PATH_LD_GNU
  2811. #- --------------
  2812. m4_defun([_LT_PATH_LD_GNU],
  2813. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2814. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2815. case `$LD -v 2>&1 </dev/null` in
  2816. *GNU* | *'with BFD'*)
  2817. lt_cv_prog_gnu_ld=yes
  2818. ;;
  2819. *)
  2820. lt_cv_prog_gnu_ld=no
  2821. ;;
  2822. esac])
  2823. with_gnu_ld=$lt_cv_prog_gnu_ld
  2824. ])# _LT_PATH_LD_GNU
  2825. # _LT_CMD_RELOAD
  2826. # --------------
  2827. # find reload flag for linker
  2828. # -- PORTME Some linkers may need a different reload flag.
  2829. m4_defun([_LT_CMD_RELOAD],
  2830. [AC_CACHE_CHECK([for $LD option to reload object files],
  2831. lt_cv_ld_reload_flag,
  2832. [lt_cv_ld_reload_flag='-r'])
  2833. reload_flag=$lt_cv_ld_reload_flag
  2834. case $reload_flag in
  2835. "" | " "*) ;;
  2836. *) reload_flag=" $reload_flag" ;;
  2837. esac
  2838. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2839. case $host_os in
  2840. cygwin* | mingw* | pw32* | cegcc*)
  2841. if test "$GCC" != yes; then
  2842. reload_cmds=false
  2843. fi
  2844. ;;
  2845. darwin*)
  2846. if test "$GCC" = yes; then
  2847. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2848. else
  2849. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2850. fi
  2851. ;;
  2852. esac
  2853. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2854. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2855. ])# _LT_CMD_RELOAD
  2856. # _LT_CHECK_MAGIC_METHOD
  2857. # ----------------------
  2858. # how to check for library dependencies
  2859. # -- PORTME fill in with the dynamic library characteristics
  2860. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2861. [m4_require([_LT_DECL_EGREP])
  2862. m4_require([_LT_DECL_OBJDUMP])
  2863. AC_CACHE_CHECK([how to recognize dependent libraries],
  2864. lt_cv_deplibs_check_method,
  2865. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2866. lt_cv_file_magic_test_file=
  2867. lt_cv_deplibs_check_method='unknown'
  2868. # Need to set the preceding variable on all platforms that support
  2869. # interlibrary dependencies.
  2870. # 'none' -- dependencies not supported.
  2871. # `unknown' -- same as none, but documents that we really don't know.
  2872. # 'pass_all' -- all dependencies passed with no checks.
  2873. # 'test_compile' -- check by making test program.
  2874. # 'file_magic [[regex]]' -- check by looking for files in library path
  2875. # which responds to the $file_magic_cmd with a given extended regex.
  2876. # If you have `file' or equivalent on your system and you're not sure
  2877. # whether `pass_all' will *always* work, you probably want this one.
  2878. case $host_os in
  2879. aix[[4-9]]*)
  2880. lt_cv_deplibs_check_method=pass_all
  2881. ;;
  2882. beos*)
  2883. lt_cv_deplibs_check_method=pass_all
  2884. ;;
  2885. bsdi[[45]]*)
  2886. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2887. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2888. lt_cv_file_magic_test_file=/shlib/libc.so
  2889. ;;
  2890. cygwin*)
  2891. # func_win32_libid is a shell function defined in ltmain.sh
  2892. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2893. lt_cv_file_magic_cmd='func_win32_libid'
  2894. ;;
  2895. mingw* | pw32*)
  2896. # Base MSYS/MinGW do not provide the 'file' command needed by
  2897. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2898. # unless we find 'file', for example because we are cross-compiling.
  2899. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2900. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2901. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2902. lt_cv_file_magic_cmd='func_win32_libid'
  2903. else
  2904. # Keep this pattern in sync with the one in func_win32_libid.
  2905. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2906. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2907. fi
  2908. ;;
  2909. cegcc*)
  2910. # use the weaker test based on 'objdump'. See mingw*.
  2911. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2912. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2913. ;;
  2914. darwin* | rhapsody*)
  2915. lt_cv_deplibs_check_method=pass_all
  2916. ;;
  2917. freebsd* | dragonfly*)
  2918. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2919. case $host_cpu in
  2920. i*86 )
  2921. # Not sure whether the presence of OpenBSD here was a mistake.
  2922. # Let's accept both of them until this is cleared up.
  2923. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2924. lt_cv_file_magic_cmd=/usr/bin/file
  2925. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2926. ;;
  2927. esac
  2928. else
  2929. lt_cv_deplibs_check_method=pass_all
  2930. fi
  2931. ;;
  2932. gnu*)
  2933. lt_cv_deplibs_check_method=pass_all
  2934. ;;
  2935. haiku*)
  2936. lt_cv_deplibs_check_method=pass_all
  2937. ;;
  2938. hpux10.20* | hpux11*)
  2939. lt_cv_file_magic_cmd=/usr/bin/file
  2940. case $host_cpu in
  2941. ia64*)
  2942. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2943. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2944. ;;
  2945. hppa*64*)
  2946. [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]']
  2947. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2948. ;;
  2949. *)
  2950. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2951. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2952. ;;
  2953. esac
  2954. ;;
  2955. interix[[3-9]]*)
  2956. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2957. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2958. ;;
  2959. irix5* | irix6* | nonstopux*)
  2960. case $LD in
  2961. *-32|*"-32 ") libmagic=32-bit;;
  2962. *-n32|*"-n32 ") libmagic=N32;;
  2963. *-64|*"-64 ") libmagic=64-bit;;
  2964. *) libmagic=never-match;;
  2965. esac
  2966. lt_cv_deplibs_check_method=pass_all
  2967. ;;
  2968. # This must be glibc/ELF.
  2969. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2970. lt_cv_deplibs_check_method=pass_all
  2971. ;;
  2972. netbsd*)
  2973. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2974. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2975. else
  2976. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2977. fi
  2978. ;;
  2979. newos6*)
  2980. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2981. lt_cv_file_magic_cmd=/usr/bin/file
  2982. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2983. ;;
  2984. *nto* | *qnx*)
  2985. lt_cv_deplibs_check_method=pass_all
  2986. ;;
  2987. openbsd*)
  2988. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2989. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2990. else
  2991. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2992. fi
  2993. ;;
  2994. osf3* | osf4* | osf5*)
  2995. lt_cv_deplibs_check_method=pass_all
  2996. ;;
  2997. rdos*)
  2998. lt_cv_deplibs_check_method=pass_all
  2999. ;;
  3000. solaris*)
  3001. lt_cv_deplibs_check_method=pass_all
  3002. ;;
  3003. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3004. lt_cv_deplibs_check_method=pass_all
  3005. ;;
  3006. sysv4 | sysv4.3*)
  3007. case $host_vendor in
  3008. motorola)
  3009. 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]]'
  3010. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3011. ;;
  3012. ncr)
  3013. lt_cv_deplibs_check_method=pass_all
  3014. ;;
  3015. sequent)
  3016. lt_cv_file_magic_cmd='/bin/file'
  3017. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3018. ;;
  3019. sni)
  3020. lt_cv_file_magic_cmd='/bin/file'
  3021. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3022. lt_cv_file_magic_test_file=/lib/libc.so
  3023. ;;
  3024. siemens)
  3025. lt_cv_deplibs_check_method=pass_all
  3026. ;;
  3027. pc)
  3028. lt_cv_deplibs_check_method=pass_all
  3029. ;;
  3030. esac
  3031. ;;
  3032. tpf*)
  3033. lt_cv_deplibs_check_method=pass_all
  3034. ;;
  3035. esac
  3036. ])
  3037. file_magic_glob=
  3038. want_nocaseglob=no
  3039. if test "$build" = "$host"; then
  3040. case $host_os in
  3041. mingw* | pw32*)
  3042. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3043. want_nocaseglob=yes
  3044. else
  3045. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3046. fi
  3047. ;;
  3048. esac
  3049. fi
  3050. file_magic_cmd=$lt_cv_file_magic_cmd
  3051. deplibs_check_method=$lt_cv_deplibs_check_method
  3052. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3053. _LT_DECL([], [deplibs_check_method], [1],
  3054. [Method to check whether dependent libraries are shared objects])
  3055. _LT_DECL([], [file_magic_cmd], [1],
  3056. [Command to use when deplibs_check_method = "file_magic"])
  3057. _LT_DECL([], [file_magic_glob], [1],
  3058. [How to find potential files when deplibs_check_method = "file_magic"])
  3059. _LT_DECL([], [want_nocaseglob], [1],
  3060. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3061. ])# _LT_CHECK_MAGIC_METHOD
  3062. # LT_PATH_NM
  3063. # ----------
  3064. # find the pathname to a BSD- or MS-compatible name lister
  3065. AC_DEFUN([LT_PATH_NM],
  3066. [AC_REQUIRE([AC_PROG_CC])dnl
  3067. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3068. [if test -n "$NM"; then
  3069. # Let the user override the test.
  3070. lt_cv_path_NM="$NM"
  3071. else
  3072. lt_nm_to_check="${ac_tool_prefix}nm"
  3073. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3074. lt_nm_to_check="$lt_nm_to_check nm"
  3075. fi
  3076. for lt_tmp_nm in $lt_nm_to_check; do
  3077. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3078. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3079. IFS="$lt_save_ifs"
  3080. test -z "$ac_dir" && ac_dir=.
  3081. tmp_nm="$ac_dir/$lt_tmp_nm"
  3082. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3083. # Check to see if the nm accepts a BSD-compat flag.
  3084. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3085. # nm: unknown option "B" ignored
  3086. # Tru64's nm complains that /dev/null is an invalid object file
  3087. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3088. */dev/null* | *'Invalid file or object type'*)
  3089. lt_cv_path_NM="$tmp_nm -B"
  3090. break
  3091. ;;
  3092. *)
  3093. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3094. */dev/null*)
  3095. lt_cv_path_NM="$tmp_nm -p"
  3096. break
  3097. ;;
  3098. *)
  3099. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3100. continue # so that we can try to find one that supports BSD flags
  3101. ;;
  3102. esac
  3103. ;;
  3104. esac
  3105. fi
  3106. done
  3107. IFS="$lt_save_ifs"
  3108. done
  3109. : ${lt_cv_path_NM=no}
  3110. fi])
  3111. if test "$lt_cv_path_NM" != "no"; then
  3112. NM="$lt_cv_path_NM"
  3113. else
  3114. # Didn't find any BSD compatible name lister, look for dumpbin.
  3115. if test -n "$DUMPBIN"; then :
  3116. # Let the user override the test.
  3117. else
  3118. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3119. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3120. *COFF*)
  3121. DUMPBIN="$DUMPBIN -symbols"
  3122. ;;
  3123. *)
  3124. DUMPBIN=:
  3125. ;;
  3126. esac
  3127. fi
  3128. AC_SUBST([DUMPBIN])
  3129. if test "$DUMPBIN" != ":"; then
  3130. NM="$DUMPBIN"
  3131. fi
  3132. fi
  3133. test -z "$NM" && NM=nm
  3134. AC_SUBST([NM])
  3135. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3136. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3137. [lt_cv_nm_interface="BSD nm"
  3138. echo "int some_variable = 0;" > conftest.$ac_ext
  3139. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3140. (eval "$ac_compile" 2>conftest.err)
  3141. cat conftest.err >&AS_MESSAGE_LOG_FD
  3142. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3143. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3144. cat conftest.err >&AS_MESSAGE_LOG_FD
  3145. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3146. cat conftest.out >&AS_MESSAGE_LOG_FD
  3147. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3148. lt_cv_nm_interface="MS dumpbin"
  3149. fi
  3150. rm -f conftest*])
  3151. ])# LT_PATH_NM
  3152. # Old names:
  3153. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3154. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3155. dnl aclocal-1.4 backwards compatibility:
  3156. dnl AC_DEFUN([AM_PROG_NM], [])
  3157. dnl AC_DEFUN([AC_PROG_NM], [])
  3158. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3159. # --------------------------------
  3160. # how to determine the name of the shared library
  3161. # associated with a specific link library.
  3162. # -- PORTME fill in with the dynamic library characteristics
  3163. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3164. [m4_require([_LT_DECL_EGREP])
  3165. m4_require([_LT_DECL_OBJDUMP])
  3166. m4_require([_LT_DECL_DLLTOOL])
  3167. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3168. lt_cv_sharedlib_from_linklib_cmd,
  3169. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3170. case $host_os in
  3171. cygwin* | mingw* | pw32* | cegcc*)
  3172. # two different shell functions defined in ltmain.sh
  3173. # decide which to use based on capabilities of $DLLTOOL
  3174. case `$DLLTOOL --help 2>&1` in
  3175. *--identify-strict*)
  3176. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3177. ;;
  3178. *)
  3179. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3180. ;;
  3181. esac
  3182. ;;
  3183. *)
  3184. # fallback: assume linklib IS sharedlib
  3185. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3186. ;;
  3187. esac
  3188. ])
  3189. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3190. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3191. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3192. [Command to associate shared and link libraries])
  3193. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3194. # _LT_PATH_MANIFEST_TOOL
  3195. # ----------------------
  3196. # locate the manifest tool
  3197. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3198. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3199. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3200. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3201. [lt_cv_path_mainfest_tool=no
  3202. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3203. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3204. cat conftest.err >&AS_MESSAGE_LOG_FD
  3205. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3206. lt_cv_path_mainfest_tool=yes
  3207. fi
  3208. rm -f conftest*])
  3209. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3210. MANIFEST_TOOL=:
  3211. fi
  3212. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3213. ])# _LT_PATH_MANIFEST_TOOL
  3214. # LT_LIB_M
  3215. # --------
  3216. # check for math library
  3217. AC_DEFUN([LT_LIB_M],
  3218. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3219. LIBM=
  3220. case $host in
  3221. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3222. # These system don't have libm, or don't need it
  3223. ;;
  3224. *-ncr-sysv4.3*)
  3225. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3226. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3227. ;;
  3228. *)
  3229. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3230. ;;
  3231. esac
  3232. AC_SUBST([LIBM])
  3233. ])# LT_LIB_M
  3234. # Old name:
  3235. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3236. dnl aclocal-1.4 backwards compatibility:
  3237. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3238. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3239. # -------------------------------
  3240. m4_defun([_LT_COMPILER_NO_RTTI],
  3241. [m4_require([_LT_TAG_COMPILER])dnl
  3242. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3243. if test "$GCC" = yes; then
  3244. case $cc_basename in
  3245. nvcc*)
  3246. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3247. *)
  3248. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3249. esac
  3250. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3251. lt_cv_prog_compiler_rtti_exceptions,
  3252. [-fno-rtti -fno-exceptions], [],
  3253. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3254. fi
  3255. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3256. [Compiler flag to turn off builtin functions])
  3257. ])# _LT_COMPILER_NO_RTTI
  3258. # _LT_CMD_GLOBAL_SYMBOLS
  3259. # ----------------------
  3260. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3261. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3262. AC_REQUIRE([AC_PROG_CC])dnl
  3263. AC_REQUIRE([AC_PROG_AWK])dnl
  3264. AC_REQUIRE([LT_PATH_NM])dnl
  3265. AC_REQUIRE([LT_PATH_LD])dnl
  3266. m4_require([_LT_DECL_SED])dnl
  3267. m4_require([_LT_DECL_EGREP])dnl
  3268. m4_require([_LT_TAG_COMPILER])dnl
  3269. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3270. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3271. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3272. [
  3273. # These are sane defaults that work on at least a few old systems.
  3274. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3275. # Character class describing NM global symbol codes.
  3276. symcode='[[BCDEGRST]]'
  3277. # Regexp to match symbols that can be accessed directly from C.
  3278. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3279. # Define system-specific variables.
  3280. case $host_os in
  3281. aix*)
  3282. symcode='[[BCDT]]'
  3283. ;;
  3284. cygwin* | mingw* | pw32* | cegcc*)
  3285. symcode='[[ABCDGISTW]]'
  3286. ;;
  3287. hpux*)
  3288. if test "$host_cpu" = ia64; then
  3289. symcode='[[ABCDEGRST]]'
  3290. fi
  3291. ;;
  3292. irix* | nonstopux*)
  3293. symcode='[[BCDEGRST]]'
  3294. ;;
  3295. osf*)
  3296. symcode='[[BCDEGQRST]]'
  3297. ;;
  3298. solaris*)
  3299. symcode='[[BDRT]]'
  3300. ;;
  3301. sco3.2v5*)
  3302. symcode='[[DT]]'
  3303. ;;
  3304. sysv4.2uw2*)
  3305. symcode='[[DT]]'
  3306. ;;
  3307. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3308. symcode='[[ABDT]]'
  3309. ;;
  3310. sysv4)
  3311. symcode='[[DFNSTU]]'
  3312. ;;
  3313. esac
  3314. # If we're using GNU nm, then use its standard symbol codes.
  3315. case `$NM -V 2>&1` in
  3316. *GNU* | *'with BFD'*)
  3317. symcode='[[ABCDGIRSTW]]' ;;
  3318. esac
  3319. # Transform an extracted symbol line into a proper C declaration.
  3320. # Some systems (esp. on ia64) link data and code symbols differently,
  3321. # so use this general approach.
  3322. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3323. # Transform an extracted symbol line into symbol name and symbol address
  3324. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3325. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3326. # Handle CRLF in mingw tool chain
  3327. opt_cr=
  3328. case $build_os in
  3329. mingw*)
  3330. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3331. ;;
  3332. esac
  3333. # Try without a prefix underscore, then with it.
  3334. for ac_symprfx in "" "_"; do
  3335. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3336. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3337. # Write the raw and C identifiers.
  3338. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3339. # Fake it for dumpbin and say T for any non-static function
  3340. # and D for any global variable.
  3341. # Also find C++ and __fastcall symbols from MSVC++,
  3342. # which start with @ or ?.
  3343. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3344. " {last_section=section; section=\$ 3};"\
  3345. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3346. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3347. " \$ 0!~/External *\|/{next};"\
  3348. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3349. " {if(hide[section]) next};"\
  3350. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3351. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3352. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3353. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3354. " ' prfx=^$ac_symprfx]"
  3355. else
  3356. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3357. fi
  3358. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3359. # Check to see that the pipe works correctly.
  3360. pipe_works=no
  3361. rm -f conftest*
  3362. cat > conftest.$ac_ext <<_LT_EOF
  3363. #ifdef __cplusplus
  3364. extern "C" {
  3365. #endif
  3366. char nm_test_var;
  3367. void nm_test_func(void);
  3368. void nm_test_func(void){}
  3369. #ifdef __cplusplus
  3370. }
  3371. #endif
  3372. int main(){nm_test_var='a';nm_test_func();return(0);}
  3373. _LT_EOF
  3374. if AC_TRY_EVAL(ac_compile); then
  3375. # Now try to grab the symbols.
  3376. nlist=conftest.nm
  3377. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3378. # Try sorting and uniquifying the output.
  3379. if sort "$nlist" | uniq > "$nlist"T; then
  3380. mv -f "$nlist"T "$nlist"
  3381. else
  3382. rm -f "$nlist"T
  3383. fi
  3384. # Make sure that we snagged all the symbols we need.
  3385. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3386. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3387. cat <<_LT_EOF > conftest.$ac_ext
  3388. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3389. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3390. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3391. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3392. # define LT@&t@_DLSYM_CONST
  3393. #elif defined(__osf__)
  3394. /* This system does not cope well with relocations in const data. */
  3395. # define LT@&t@_DLSYM_CONST
  3396. #else
  3397. # define LT@&t@_DLSYM_CONST const
  3398. #endif
  3399. #ifdef __cplusplus
  3400. extern "C" {
  3401. #endif
  3402. _LT_EOF
  3403. # Now generate the symbol file.
  3404. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3405. cat <<_LT_EOF >> conftest.$ac_ext
  3406. /* The mapping between symbol names and symbols. */
  3407. LT@&t@_DLSYM_CONST struct {
  3408. const char *name;
  3409. void *address;
  3410. }
  3411. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3412. {
  3413. { "@PROGRAM@", (void *) 0 },
  3414. _LT_EOF
  3415. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3416. cat <<\_LT_EOF >> conftest.$ac_ext
  3417. {0, (void *) 0}
  3418. };
  3419. /* This works around a problem in FreeBSD linker */
  3420. #ifdef FREEBSD_WORKAROUND
  3421. static const void *lt_preloaded_setup() {
  3422. return lt__PROGRAM__LTX_preloaded_symbols;
  3423. }
  3424. #endif
  3425. #ifdef __cplusplus
  3426. }
  3427. #endif
  3428. _LT_EOF
  3429. # Now try linking the two files.
  3430. mv conftest.$ac_objext conftstm.$ac_objext
  3431. lt_globsym_save_LIBS=$LIBS
  3432. lt_globsym_save_CFLAGS=$CFLAGS
  3433. LIBS="conftstm.$ac_objext"
  3434. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3435. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3436. pipe_works=yes
  3437. fi
  3438. LIBS=$lt_globsym_save_LIBS
  3439. CFLAGS=$lt_globsym_save_CFLAGS
  3440. else
  3441. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3442. fi
  3443. else
  3444. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3445. fi
  3446. else
  3447. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3448. fi
  3449. else
  3450. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3451. cat conftest.$ac_ext >&5
  3452. fi
  3453. rm -rf conftest* conftst*
  3454. # Do not use the global_symbol_pipe unless it works.
  3455. if test "$pipe_works" = yes; then
  3456. break
  3457. else
  3458. lt_cv_sys_global_symbol_pipe=
  3459. fi
  3460. done
  3461. ])
  3462. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3463. lt_cv_sys_global_symbol_to_cdecl=
  3464. fi
  3465. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3466. AC_MSG_RESULT(failed)
  3467. else
  3468. AC_MSG_RESULT(ok)
  3469. fi
  3470. # Response file support.
  3471. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3472. nm_file_list_spec='@'
  3473. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3474. nm_file_list_spec='@'
  3475. fi
  3476. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3477. [Take the output of nm and produce a listing of raw symbols and C names])
  3478. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3479. [Transform the output of nm in a proper C declaration])
  3480. _LT_DECL([global_symbol_to_c_name_address],
  3481. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3482. [Transform the output of nm in a C name address pair])
  3483. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3484. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3485. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3486. _LT_DECL([], [nm_file_list_spec], [1],
  3487. [Specify filename containing input files for $NM])
  3488. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3489. # _LT_COMPILER_PIC([TAGNAME])
  3490. # ---------------------------
  3491. m4_defun([_LT_COMPILER_PIC],
  3492. [m4_require([_LT_TAG_COMPILER])dnl
  3493. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3494. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3495. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3496. m4_if([$1], [CXX], [
  3497. # C++ specific cases for pic, static, wl, etc.
  3498. if test "$GXX" = yes; then
  3499. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3500. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3501. case $host_os in
  3502. aix*)
  3503. # All AIX code is PIC.
  3504. if test "$host_cpu" = ia64; then
  3505. # AIX 5 now supports IA64 processor
  3506. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3507. fi
  3508. ;;
  3509. amigaos*)
  3510. case $host_cpu in
  3511. powerpc)
  3512. # see comment about AmigaOS4 .so support
  3513. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3514. ;;
  3515. m68k)
  3516. # FIXME: we need at least 68020 code to build shared libraries, but
  3517. # adding the `-m68020' flag to GCC prevents building anything better,
  3518. # like `-m68040'.
  3519. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3520. ;;
  3521. esac
  3522. ;;
  3523. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3524. # PIC is the default for these OSes.
  3525. ;;
  3526. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3527. # This hack is so that the source file can tell whether it is being
  3528. # built for inclusion in a dll (and should export symbols for example).
  3529. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3530. # (--disable-auto-import) libraries
  3531. m4_if([$1], [GCJ], [],
  3532. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3533. ;;
  3534. darwin* | rhapsody*)
  3535. # PIC is the default on this platform
  3536. # Common symbols not allowed in MH_DYLIB files
  3537. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3538. ;;
  3539. *djgpp*)
  3540. # DJGPP does not support shared libraries at all
  3541. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3542. ;;
  3543. haiku*)
  3544. # PIC is the default for Haiku.
  3545. # The "-static" flag exists, but is broken.
  3546. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3547. ;;
  3548. interix[[3-9]]*)
  3549. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3550. # Instead, we relocate shared libraries at runtime.
  3551. ;;
  3552. sysv4*MP*)
  3553. if test -d /usr/nec; then
  3554. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3555. fi
  3556. ;;
  3557. hpux*)
  3558. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3559. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3560. # sets the default TLS model and affects inlining.
  3561. case $host_cpu in
  3562. hppa*64*)
  3563. ;;
  3564. *)
  3565. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3566. ;;
  3567. esac
  3568. ;;
  3569. *qnx* | *nto*)
  3570. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3571. # it will coredump.
  3572. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3573. ;;
  3574. *)
  3575. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3576. ;;
  3577. esac
  3578. else
  3579. case $host_os in
  3580. aix[[4-9]]*)
  3581. # All AIX code is PIC.
  3582. if test "$host_cpu" = ia64; then
  3583. # AIX 5 now supports IA64 processor
  3584. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3585. else
  3586. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3587. fi
  3588. ;;
  3589. chorus*)
  3590. case $cc_basename in
  3591. cxch68*)
  3592. # Green Hills C++ Compiler
  3593. # _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"
  3594. ;;
  3595. esac
  3596. ;;
  3597. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3598. # This hack is so that the source file can tell whether it is being
  3599. # built for inclusion in a dll (and should export symbols for example).
  3600. m4_if([$1], [GCJ], [],
  3601. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3602. ;;
  3603. dgux*)
  3604. case $cc_basename in
  3605. ec++*)
  3606. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3607. ;;
  3608. ghcx*)
  3609. # Green Hills C++ Compiler
  3610. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3611. ;;
  3612. *)
  3613. ;;
  3614. esac
  3615. ;;
  3616. freebsd* | dragonfly*)
  3617. # FreeBSD uses GNU C++
  3618. ;;
  3619. hpux9* | hpux10* | hpux11*)
  3620. case $cc_basename in
  3621. CC*)
  3622. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3623. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3624. if test "$host_cpu" != ia64; then
  3625. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3626. fi
  3627. ;;
  3628. aCC*)
  3629. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3630. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3631. case $host_cpu in
  3632. hppa*64*|ia64*)
  3633. # +Z the default
  3634. ;;
  3635. *)
  3636. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3637. ;;
  3638. esac
  3639. ;;
  3640. *)
  3641. ;;
  3642. esac
  3643. ;;
  3644. interix*)
  3645. # This is c89, which is MS Visual C++ (no shared libs)
  3646. # Anyone wants to do a port?
  3647. ;;
  3648. irix5* | irix6* | nonstopux*)
  3649. case $cc_basename in
  3650. CC*)
  3651. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3652. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3653. # CC pic flag -KPIC is the default.
  3654. ;;
  3655. *)
  3656. ;;
  3657. esac
  3658. ;;
  3659. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3660. case $cc_basename in
  3661. KCC*)
  3662. # KAI C++ Compiler
  3663. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3664. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3665. ;;
  3666. ecpc* )
  3667. # old Intel C++ for x86_64 which still supported -KPIC.
  3668. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3669. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3670. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3671. ;;
  3672. icpc* )
  3673. # Intel C++, used to be incompatible with GCC.
  3674. # ICC 10 doesn't accept -KPIC any more.
  3675. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3676. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3677. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3678. ;;
  3679. pgCC* | pgcpp*)
  3680. # Portland Group C++ compiler
  3681. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3682. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3683. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3684. ;;
  3685. cxx*)
  3686. # Compaq C++
  3687. # Make sure the PIC flag is empty. It appears that all Alpha
  3688. # Linux and Compaq Tru64 Unix objects are PIC.
  3689. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3690. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3691. ;;
  3692. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3693. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3694. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3695. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3696. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3697. ;;
  3698. *)
  3699. case `$CC -V 2>&1 | sed 5q` in
  3700. *Sun\ C*)
  3701. # Sun C++ 5.9
  3702. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3703. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3704. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3705. ;;
  3706. esac
  3707. ;;
  3708. esac
  3709. ;;
  3710. lynxos*)
  3711. ;;
  3712. m88k*)
  3713. ;;
  3714. mvs*)
  3715. case $cc_basename in
  3716. cxx*)
  3717. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3718. ;;
  3719. *)
  3720. ;;
  3721. esac
  3722. ;;
  3723. netbsd*)
  3724. ;;
  3725. *qnx* | *nto*)
  3726. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3727. # it will coredump.
  3728. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3729. ;;
  3730. osf3* | osf4* | osf5*)
  3731. case $cc_basename in
  3732. KCC*)
  3733. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3734. ;;
  3735. RCC*)
  3736. # Rational C++ 2.4.1
  3737. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3738. ;;
  3739. cxx*)
  3740. # Digital/Compaq C++
  3741. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3742. # Make sure the PIC flag is empty. It appears that all Alpha
  3743. # Linux and Compaq Tru64 Unix objects are PIC.
  3744. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3745. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3746. ;;
  3747. *)
  3748. ;;
  3749. esac
  3750. ;;
  3751. psos*)
  3752. ;;
  3753. solaris*)
  3754. case $cc_basename in
  3755. CC* | sunCC*)
  3756. # Sun C++ 4.2, 5.x and Centerline C++
  3757. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3758. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3759. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3760. ;;
  3761. gcx*)
  3762. # Green Hills C++ Compiler
  3763. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3764. ;;
  3765. *)
  3766. ;;
  3767. esac
  3768. ;;
  3769. sunos4*)
  3770. case $cc_basename in
  3771. CC*)
  3772. # Sun C++ 4.x
  3773. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3774. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3775. ;;
  3776. lcc*)
  3777. # Lucid
  3778. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3779. ;;
  3780. *)
  3781. ;;
  3782. esac
  3783. ;;
  3784. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3785. case $cc_basename in
  3786. CC*)
  3787. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3788. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3789. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3790. ;;
  3791. esac
  3792. ;;
  3793. tandem*)
  3794. case $cc_basename in
  3795. NCC*)
  3796. # NonStop-UX NCC 3.20
  3797. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3798. ;;
  3799. *)
  3800. ;;
  3801. esac
  3802. ;;
  3803. vxworks*)
  3804. ;;
  3805. *)
  3806. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3807. ;;
  3808. esac
  3809. fi
  3810. ],
  3811. [
  3812. if test "$GCC" = yes; then
  3813. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3814. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3815. case $host_os in
  3816. aix*)
  3817. # All AIX code is PIC.
  3818. if test "$host_cpu" = ia64; then
  3819. # AIX 5 now supports IA64 processor
  3820. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3821. fi
  3822. ;;
  3823. amigaos*)
  3824. case $host_cpu in
  3825. powerpc)
  3826. # see comment about AmigaOS4 .so support
  3827. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3828. ;;
  3829. m68k)
  3830. # FIXME: we need at least 68020 code to build shared libraries, but
  3831. # adding the `-m68020' flag to GCC prevents building anything better,
  3832. # like `-m68040'.
  3833. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3834. ;;
  3835. esac
  3836. ;;
  3837. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3838. # PIC is the default for these OSes.
  3839. ;;
  3840. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3841. # This hack is so that the source file can tell whether it is being
  3842. # built for inclusion in a dll (and should export symbols for example).
  3843. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3844. # (--disable-auto-import) libraries
  3845. m4_if([$1], [GCJ], [],
  3846. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3847. ;;
  3848. darwin* | rhapsody*)
  3849. # PIC is the default on this platform
  3850. # Common symbols not allowed in MH_DYLIB files
  3851. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3852. ;;
  3853. haiku*)
  3854. # PIC is the default for Haiku.
  3855. # The "-static" flag exists, but is broken.
  3856. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3857. ;;
  3858. hpux*)
  3859. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3860. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3861. # sets the default TLS model and affects inlining.
  3862. case $host_cpu in
  3863. hppa*64*)
  3864. # +Z the default
  3865. ;;
  3866. *)
  3867. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3868. ;;
  3869. esac
  3870. ;;
  3871. interix[[3-9]]*)
  3872. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3873. # Instead, we relocate shared libraries at runtime.
  3874. ;;
  3875. msdosdjgpp*)
  3876. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3877. # on systems that don't support them.
  3878. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3879. enable_shared=no
  3880. ;;
  3881. *nto* | *qnx*)
  3882. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3883. # it will coredump.
  3884. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3885. ;;
  3886. sysv4*MP*)
  3887. if test -d /usr/nec; then
  3888. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3889. fi
  3890. ;;
  3891. *)
  3892. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3893. ;;
  3894. esac
  3895. case $cc_basename in
  3896. nvcc*) # Cuda Compiler Driver 2.2
  3897. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3898. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3899. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3900. fi
  3901. ;;
  3902. esac
  3903. else
  3904. # PORTME Check for flag to pass linker flags through the system compiler.
  3905. case $host_os in
  3906. aix*)
  3907. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3908. if test "$host_cpu" = ia64; then
  3909. # AIX 5 now supports IA64 processor
  3910. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3911. else
  3912. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3913. fi
  3914. ;;
  3915. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3916. # This hack is so that the source file can tell whether it is being
  3917. # built for inclusion in a dll (and should export symbols for example).
  3918. m4_if([$1], [GCJ], [],
  3919. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3920. ;;
  3921. hpux9* | hpux10* | hpux11*)
  3922. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3923. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3924. # not for PA HP-UX.
  3925. case $host_cpu in
  3926. hppa*64*|ia64*)
  3927. # +Z the default
  3928. ;;
  3929. *)
  3930. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3931. ;;
  3932. esac
  3933. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3934. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3935. ;;
  3936. irix5* | irix6* | nonstopux*)
  3937. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3938. # PIC (with -KPIC) is the default.
  3939. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3940. ;;
  3941. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3942. case $cc_basename in
  3943. # old Intel for x86_64 which still supported -KPIC.
  3944. ecc*)
  3945. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3946. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3947. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3948. ;;
  3949. # icc used to be incompatible with GCC.
  3950. # ICC 10 doesn't accept -KPIC any more.
  3951. icc* | ifort*)
  3952. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3953. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3954. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3955. ;;
  3956. # Lahey Fortran 8.1.
  3957. lf95*)
  3958. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3959. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3960. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3961. ;;
  3962. nagfor*)
  3963. # NAG Fortran compiler
  3964. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3965. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3966. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3967. ;;
  3968. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3969. # Portland Group compilers (*not* the Pentium gcc compiler,
  3970. # which looks to be a dead project)
  3971. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3972. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3973. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3974. ;;
  3975. ccc*)
  3976. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3977. # All Alpha code is PIC.
  3978. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3979. ;;
  3980. xl* | bgxl* | bgf* | mpixl*)
  3981. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3982. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3983. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3984. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3985. ;;
  3986. *)
  3987. case `$CC -V 2>&1 | sed 5q` in
  3988. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3989. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3990. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3991. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3992. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3993. ;;
  3994. *Sun\ F* | *Sun*Fortran*)
  3995. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3996. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3997. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3998. ;;
  3999. *Sun\ C*)
  4000. # Sun C 5.9
  4001. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4002. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4003. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4004. ;;
  4005. *Intel*\ [[CF]]*Compiler*)
  4006. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4007. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4008. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4009. ;;
  4010. *Portland\ Group*)
  4011. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4012. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4013. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4014. ;;
  4015. esac
  4016. ;;
  4017. esac
  4018. ;;
  4019. newsos6)
  4020. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4021. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4022. ;;
  4023. *nto* | *qnx*)
  4024. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4025. # it will coredump.
  4026. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4027. ;;
  4028. osf3* | osf4* | osf5*)
  4029. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4030. # All OSF/1 code is PIC.
  4031. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4032. ;;
  4033. rdos*)
  4034. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4035. ;;
  4036. solaris*)
  4037. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4038. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4039. case $cc_basename in
  4040. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4041. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4042. *)
  4043. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4044. esac
  4045. ;;
  4046. sunos4*)
  4047. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4048. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4049. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4050. ;;
  4051. sysv4 | sysv4.2uw2* | sysv4.3*)
  4052. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4053. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4054. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4055. ;;
  4056. sysv4*MP*)
  4057. if test -d /usr/nec ;then
  4058. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4059. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4060. fi
  4061. ;;
  4062. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4063. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4064. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4065. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4066. ;;
  4067. unicos*)
  4068. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4069. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4070. ;;
  4071. uts4*)
  4072. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4073. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4074. ;;
  4075. *)
  4076. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4077. ;;
  4078. esac
  4079. fi
  4080. ])
  4081. case $host_os in
  4082. # For platforms which do not support PIC, -DPIC is meaningless:
  4083. *djgpp*)
  4084. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4085. ;;
  4086. *)
  4087. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4088. ;;
  4089. esac
  4090. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4091. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4092. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4093. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4094. #
  4095. # Check to make sure the PIC flag actually works.
  4096. #
  4097. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4098. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4099. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4100. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4101. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4102. "" | " "*) ;;
  4103. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4104. esac],
  4105. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4106. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4107. fi
  4108. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4109. [Additional compiler flags for building library objects])
  4110. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4111. [How to pass a linker flag through the compiler])
  4112. #
  4113. # Check to make sure the static flag actually works.
  4114. #
  4115. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4116. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4117. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4118. $lt_tmp_static_flag,
  4119. [],
  4120. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4121. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4122. [Compiler flag to prevent dynamic linking])
  4123. ])# _LT_COMPILER_PIC
  4124. # _LT_LINKER_SHLIBS([TAGNAME])
  4125. # ----------------------------
  4126. # See if the linker supports building shared libraries.
  4127. m4_defun([_LT_LINKER_SHLIBS],
  4128. [AC_REQUIRE([LT_PATH_LD])dnl
  4129. AC_REQUIRE([LT_PATH_NM])dnl
  4130. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4131. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4132. m4_require([_LT_DECL_EGREP])dnl
  4133. m4_require([_LT_DECL_SED])dnl
  4134. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4135. m4_require([_LT_TAG_COMPILER])dnl
  4136. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4137. m4_if([$1], [CXX], [
  4138. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4139. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4140. case $host_os in
  4141. aix[[4-9]]*)
  4142. # If we're using GNU nm, then we don't want the "-C" option.
  4143. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4144. # Also, AIX nm treats weak defined symbols like other global defined
  4145. # symbols, whereas GNU nm marks them as "W".
  4146. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4147. _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'
  4148. else
  4149. _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'
  4150. fi
  4151. ;;
  4152. pw32*)
  4153. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4154. ;;
  4155. cygwin* | mingw* | cegcc*)
  4156. case $cc_basename in
  4157. cl*)
  4158. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4159. ;;
  4160. *)
  4161. _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'
  4162. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4163. ;;
  4164. esac
  4165. ;;
  4166. *)
  4167. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4168. ;;
  4169. esac
  4170. ], [
  4171. runpath_var=
  4172. _LT_TAGVAR(allow_undefined_flag, $1)=
  4173. _LT_TAGVAR(always_export_symbols, $1)=no
  4174. _LT_TAGVAR(archive_cmds, $1)=
  4175. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4176. _LT_TAGVAR(compiler_needs_object, $1)=no
  4177. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4178. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4179. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4180. _LT_TAGVAR(hardcode_automatic, $1)=no
  4181. _LT_TAGVAR(hardcode_direct, $1)=no
  4182. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4183. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4184. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4185. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4186. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4187. _LT_TAGVAR(inherit_rpath, $1)=no
  4188. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4189. _LT_TAGVAR(module_cmds, $1)=
  4190. _LT_TAGVAR(module_expsym_cmds, $1)=
  4191. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4192. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4193. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4194. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4195. # include_expsyms should be a list of space-separated symbols to be *always*
  4196. # included in the symbol list
  4197. _LT_TAGVAR(include_expsyms, $1)=
  4198. # exclude_expsyms can be an extended regexp of symbols to exclude
  4199. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4200. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4201. # as well as any symbol that contains `d'.
  4202. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4203. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4204. # platforms (ab)use it in PIC code, but their linkers get confused if
  4205. # the symbol is explicitly referenced. Since portable code cannot
  4206. # rely on this symbol name, it's probably fine to never include it in
  4207. # preloaded symbol tables.
  4208. # Exclude shared library initialization/finalization symbols.
  4209. dnl Note also adjust exclude_expsyms for C++ above.
  4210. extract_expsyms_cmds=
  4211. case $host_os in
  4212. cygwin* | mingw* | pw32* | cegcc*)
  4213. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4214. # When not using gcc, we currently assume that we are using
  4215. # Microsoft Visual C++.
  4216. if test "$GCC" != yes; then
  4217. with_gnu_ld=no
  4218. fi
  4219. ;;
  4220. interix*)
  4221. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4222. with_gnu_ld=yes
  4223. ;;
  4224. openbsd*)
  4225. with_gnu_ld=no
  4226. ;;
  4227. esac
  4228. _LT_TAGVAR(ld_shlibs, $1)=yes
  4229. # On some targets, GNU ld is compatible enough with the native linker
  4230. # that we're better off using the native interface for both.
  4231. lt_use_gnu_ld_interface=no
  4232. if test "$with_gnu_ld" = yes; then
  4233. case $host_os in
  4234. aix*)
  4235. # The AIX port of GNU ld has always aspired to compatibility
  4236. # with the native linker. However, as the warning in the GNU ld
  4237. # block says, versions before 2.19.5* couldn't really create working
  4238. # shared libraries, regardless of the interface used.
  4239. case `$LD -v 2>&1` in
  4240. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4241. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4242. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4243. *)
  4244. lt_use_gnu_ld_interface=yes
  4245. ;;
  4246. esac
  4247. ;;
  4248. *)
  4249. lt_use_gnu_ld_interface=yes
  4250. ;;
  4251. esac
  4252. fi
  4253. if test "$lt_use_gnu_ld_interface" = yes; then
  4254. # If archive_cmds runs LD, not CC, wlarc should be empty
  4255. wlarc='${wl}'
  4256. # Set some defaults for GNU ld with shared library support. These
  4257. # are reset later if shared libraries are not supported. Putting them
  4258. # here allows them to be overridden if necessary.
  4259. runpath_var=LD_RUN_PATH
  4260. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4261. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4262. # ancient GNU ld didn't support --whole-archive et. al.
  4263. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4264. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4265. else
  4266. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4267. fi
  4268. supports_anon_versioning=no
  4269. case `$LD -v 2>&1` in
  4270. *GNU\ gold*) supports_anon_versioning=yes ;;
  4271. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4272. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4273. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4274. *\ 2.11.*) ;; # other 2.11 versions
  4275. *) supports_anon_versioning=yes ;;
  4276. esac
  4277. # See if GNU ld supports shared libraries.
  4278. case $host_os in
  4279. aix[[3-9]]*)
  4280. # On AIX/PPC, the GNU linker is very broken
  4281. if test "$host_cpu" != ia64; then
  4282. _LT_TAGVAR(ld_shlibs, $1)=no
  4283. cat <<_LT_EOF 1>&2
  4284. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4285. *** to be unable to reliably create shared libraries on AIX.
  4286. *** Therefore, libtool is disabling shared libraries support. If you
  4287. *** really care for shared libraries, you may want to install binutils
  4288. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4289. *** You will then need to restart the configuration process.
  4290. _LT_EOF
  4291. fi
  4292. ;;
  4293. amigaos*)
  4294. case $host_cpu in
  4295. powerpc)
  4296. # see comment about AmigaOS4 .so support
  4297. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4298. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4299. ;;
  4300. m68k)
  4301. _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)'
  4302. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4303. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4304. ;;
  4305. esac
  4306. ;;
  4307. beos*)
  4308. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4309. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4310. # Joseph Beckenbach <[email protected]> says some releases of gcc
  4311. # support --undefined. This deserves some investigation. FIXME
  4312. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4313. else
  4314. _LT_TAGVAR(ld_shlibs, $1)=no
  4315. fi
  4316. ;;
  4317. cygwin* | mingw* | pw32* | cegcc*)
  4318. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4319. # as there is no search path for DLLs.
  4320. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4321. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4322. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4323. _LT_TAGVAR(always_export_symbols, $1)=no
  4324. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4325. _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'
  4326. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4327. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4328. _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'
  4329. # If the export-symbols file already is a .def file (1st line
  4330. # is EXPORTS), use it as is; otherwise, prepend...
  4331. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4332. cp $export_symbols $output_objdir/$soname.def;
  4333. else
  4334. echo EXPORTS > $output_objdir/$soname.def;
  4335. cat $export_symbols >> $output_objdir/$soname.def;
  4336. fi~
  4337. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4338. else
  4339. _LT_TAGVAR(ld_shlibs, $1)=no
  4340. fi
  4341. ;;
  4342. haiku*)
  4343. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4344. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4345. ;;
  4346. interix[[3-9]]*)
  4347. _LT_TAGVAR(hardcode_direct, $1)=no
  4348. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4350. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4351. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4352. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4353. # default) and relocated if they conflict, which is a slow very memory
  4354. # consuming and fragmenting process. To avoid this, we pick a random,
  4355. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4356. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4357. _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'
  4358. _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'
  4359. ;;
  4360. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4361. tmp_diet=no
  4362. if test "$host_os" = linux-dietlibc; then
  4363. case $cc_basename in
  4364. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4365. esac
  4366. fi
  4367. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4368. && test "$tmp_diet" = no
  4369. then
  4370. tmp_addflag=' $pic_flag'
  4371. tmp_sharedflag='-shared'
  4372. case $cc_basename,$host_cpu in
  4373. pgcc*) # Portland Group C compiler
  4374. _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'
  4375. tmp_addflag=' $pic_flag'
  4376. ;;
  4377. pgf77* | pgf90* | pgf95* | pgfortran*)
  4378. # Portland Group f77 and f90 compilers
  4379. _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'
  4380. tmp_addflag=' $pic_flag -Mnomain' ;;
  4381. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4382. tmp_addflag=' -i_dynamic' ;;
  4383. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4384. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4385. ifc* | ifort*) # Intel Fortran compiler
  4386. tmp_addflag=' -nofor_main' ;;
  4387. lf95*) # Lahey Fortran 8.1
  4388. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4389. tmp_sharedflag='--shared' ;;
  4390. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4391. tmp_sharedflag='-qmkshrobj'
  4392. tmp_addflag= ;;
  4393. nvcc*) # Cuda Compiler Driver 2.2
  4394. _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'
  4395. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4396. ;;
  4397. esac
  4398. case `$CC -V 2>&1 | sed 5q` in
  4399. *Sun\ C*) # Sun C 5.9
  4400. _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'
  4401. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4402. tmp_sharedflag='-G' ;;
  4403. *Sun\ F*) # Sun Fortran 8.3
  4404. tmp_sharedflag='-G' ;;
  4405. esac
  4406. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4407. if test "x$supports_anon_versioning" = xyes; then
  4408. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4409. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4410. echo "local: *; };" >> $output_objdir/$libname.ver~
  4411. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4412. fi
  4413. case $cc_basename in
  4414. xlf* | bgf* | bgxlf* | mpixlf*)
  4415. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4416. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4417. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4418. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4419. if test "x$supports_anon_versioning" = xyes; then
  4420. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4421. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4422. echo "local: *; };" >> $output_objdir/$libname.ver~
  4423. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4424. fi
  4425. ;;
  4426. esac
  4427. else
  4428. _LT_TAGVAR(ld_shlibs, $1)=no
  4429. fi
  4430. ;;
  4431. netbsd*)
  4432. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4433. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4434. wlarc=
  4435. else
  4436. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4437. _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'
  4438. fi
  4439. ;;
  4440. solaris*)
  4441. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4442. _LT_TAGVAR(ld_shlibs, $1)=no
  4443. cat <<_LT_EOF 1>&2
  4444. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4445. *** create shared libraries on Solaris systems. Therefore, libtool
  4446. *** is disabling shared libraries support. We urge you to upgrade GNU
  4447. *** binutils to release 2.9.1 or newer. Another option is to modify
  4448. *** your PATH or compiler configuration so that the native linker is
  4449. *** used, and then restart.
  4450. _LT_EOF
  4451. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4452. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4453. _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'
  4454. else
  4455. _LT_TAGVAR(ld_shlibs, $1)=no
  4456. fi
  4457. ;;
  4458. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4459. case `$LD -v 2>&1` in
  4460. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4461. _LT_TAGVAR(ld_shlibs, $1)=no
  4462. cat <<_LT_EOF 1>&2
  4463. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4464. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4465. *** is disabling shared libraries support. We urge you to upgrade GNU
  4466. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4467. *** your PATH or compiler configuration so that the native linker is
  4468. *** used, and then restart.
  4469. _LT_EOF
  4470. ;;
  4471. *)
  4472. # For security reasons, it is highly recommended that you always
  4473. # use absolute paths for naming shared libraries, and exclude the
  4474. # DT_RUNPATH tag from executables and libraries. But doing so
  4475. # requires that you compile everything twice, which is a pain.
  4476. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4477. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4478. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4479. _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'
  4480. else
  4481. _LT_TAGVAR(ld_shlibs, $1)=no
  4482. fi
  4483. ;;
  4484. esac
  4485. ;;
  4486. sunos4*)
  4487. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4488. wlarc=
  4489. _LT_TAGVAR(hardcode_direct, $1)=yes
  4490. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4491. ;;
  4492. *)
  4493. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4494. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4495. _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'
  4496. else
  4497. _LT_TAGVAR(ld_shlibs, $1)=no
  4498. fi
  4499. ;;
  4500. esac
  4501. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4502. runpath_var=
  4503. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4504. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4505. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4506. fi
  4507. else
  4508. # PORTME fill in a description of your system's linker (not GNU ld)
  4509. case $host_os in
  4510. aix3*)
  4511. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4512. _LT_TAGVAR(always_export_symbols, $1)=yes
  4513. _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'
  4514. # Note: this linker hardcodes the directories in LIBPATH if there
  4515. # are no directories specified by -L.
  4516. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4517. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4518. # Neither direct hardcoding nor static linking is supported with a
  4519. # broken collect2.
  4520. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4521. fi
  4522. ;;
  4523. aix[[4-9]]*)
  4524. if test "$host_cpu" = ia64; then
  4525. # On IA64, the linker does run time linking by default, so we don't
  4526. # have to do anything special.
  4527. aix_use_runtimelinking=no
  4528. exp_sym_flag='-Bexport'
  4529. no_entry_flag=""
  4530. else
  4531. # If we're using GNU nm, then we don't want the "-C" option.
  4532. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4533. # Also, AIX nm treats weak defined symbols like other global
  4534. # defined symbols, whereas GNU nm marks them as "W".
  4535. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4536. _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'
  4537. else
  4538. _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'
  4539. fi
  4540. aix_use_runtimelinking=no
  4541. # Test if we are trying to use run time linking or normal
  4542. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4543. # need to do runtime linking.
  4544. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4545. for ld_flag in $LDFLAGS; do
  4546. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4547. aix_use_runtimelinking=yes
  4548. break
  4549. fi
  4550. done
  4551. ;;
  4552. esac
  4553. exp_sym_flag='-bexport'
  4554. no_entry_flag='-bnoentry'
  4555. fi
  4556. # When large executables or shared objects are built, AIX ld can
  4557. # have problems creating the table of contents. If linking a library
  4558. # or program results in "error TOC overflow" add -mminimal-toc to
  4559. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4560. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4561. _LT_TAGVAR(archive_cmds, $1)=''
  4562. _LT_TAGVAR(hardcode_direct, $1)=yes
  4563. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4564. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4565. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4566. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4567. if test "$GCC" = yes; then
  4568. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4569. # We only want to do this on AIX 4.2 and lower, the check
  4570. # below for broken collect2 doesn't work under 4.3+
  4571. collect2name=`${CC} -print-prog-name=collect2`
  4572. if test -f "$collect2name" &&
  4573. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4574. then
  4575. # We have reworked collect2
  4576. :
  4577. else
  4578. # We have old collect2
  4579. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4580. # It fails to find uninstalled libraries when the uninstalled
  4581. # path is not listed in the libpath. Setting hardcode_minus_L
  4582. # to unsupported forces relinking
  4583. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4584. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4585. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4586. fi
  4587. ;;
  4588. esac
  4589. shared_flag='-shared'
  4590. if test "$aix_use_runtimelinking" = yes; then
  4591. shared_flag="$shared_flag "'${wl}-G'
  4592. fi
  4593. else
  4594. # not using gcc
  4595. if test "$host_cpu" = ia64; then
  4596. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4597. # chokes on -Wl,-G. The following line is correct:
  4598. shared_flag='-G'
  4599. else
  4600. if test "$aix_use_runtimelinking" = yes; then
  4601. shared_flag='${wl}-G'
  4602. else
  4603. shared_flag='${wl}-bM:SRE'
  4604. fi
  4605. fi
  4606. fi
  4607. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4608. # It seems that -bexpall does not export symbols beginning with
  4609. # underscore (_), so it is better to generate a list of symbols to export.
  4610. _LT_TAGVAR(always_export_symbols, $1)=yes
  4611. if test "$aix_use_runtimelinking" = yes; then
  4612. # Warning - without using the other runtime loading flags (-brtl),
  4613. # -berok will link without error, but may produce a broken library.
  4614. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4615. # Determine the default libpath from the value encoded in an
  4616. # empty executable.
  4617. _LT_SYS_MODULE_PATH_AIX([$1])
  4618. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4619. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4620. else
  4621. if test "$host_cpu" = ia64; then
  4622. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4623. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4624. _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"
  4625. else
  4626. # Determine the default libpath from the value encoded in an
  4627. # empty executable.
  4628. _LT_SYS_MODULE_PATH_AIX([$1])
  4629. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4630. # Warning - without using the other run time loading flags,
  4631. # -berok will link without error, but may produce a broken library.
  4632. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4633. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4634. if test "$with_gnu_ld" = yes; then
  4635. # We only use this code for GNU lds that support --whole-archive.
  4636. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4637. else
  4638. # Exported symbols can be pulled into shared objects from archives
  4639. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4640. fi
  4641. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4642. # This is similar to how AIX traditionally builds its shared libraries.
  4643. _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'
  4644. fi
  4645. fi
  4646. ;;
  4647. amigaos*)
  4648. case $host_cpu in
  4649. powerpc)
  4650. # see comment about AmigaOS4 .so support
  4651. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4652. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4653. ;;
  4654. m68k)
  4655. _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)'
  4656. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4657. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4658. ;;
  4659. esac
  4660. ;;
  4661. bsdi[[45]]*)
  4662. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4663. ;;
  4664. cygwin* | mingw* | pw32* | cegcc*)
  4665. # When not using gcc, we currently assume that we are using
  4666. # Microsoft Visual C++.
  4667. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4668. # no search path for DLLs.
  4669. case $cc_basename in
  4670. cl*)
  4671. # Native MSVC
  4672. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4673. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4674. _LT_TAGVAR(always_export_symbols, $1)=yes
  4675. _LT_TAGVAR(file_list_spec, $1)='@'
  4676. # Tell ltmain to make .lib files, not .a files.
  4677. libext=lib
  4678. # Tell ltmain to make .dll files, not .so files.
  4679. shrext_cmds=".dll"
  4680. # FIXME: Setting linknames here is a bad hack.
  4681. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4682. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4683. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4684. else
  4685. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4686. fi~
  4687. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4688. linknames='
  4689. # The linker will not automatically build a static lib if we build a DLL.
  4690. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4691. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4692. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4693. _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'
  4694. # Don't use ranlib
  4695. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4696. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4697. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4698. case $lt_outputfile in
  4699. *.exe|*.EXE) ;;
  4700. *)
  4701. lt_outputfile="$lt_outputfile.exe"
  4702. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4703. ;;
  4704. esac~
  4705. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4706. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4707. $RM "$lt_outputfile.manifest";
  4708. fi'
  4709. ;;
  4710. *)
  4711. # Assume MSVC wrapper
  4712. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4713. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4714. # Tell ltmain to make .lib files, not .a files.
  4715. libext=lib
  4716. # Tell ltmain to make .dll files, not .so files.
  4717. shrext_cmds=".dll"
  4718. # FIXME: Setting linknames here is a bad hack.
  4719. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4720. # The linker will automatically build a .lib file if we build a DLL.
  4721. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4722. # FIXME: Should let the user specify the lib program.
  4723. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4724. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4725. ;;
  4726. esac
  4727. ;;
  4728. darwin* | rhapsody*)
  4729. _LT_DARWIN_LINKER_FEATURES($1)
  4730. ;;
  4731. dgux*)
  4732. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4733. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4734. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4735. ;;
  4736. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4737. # support. Future versions do this automatically, but an explicit c++rt0.o
  4738. # does not break anything, and helps significantly (at the cost of a little
  4739. # extra space).
  4740. freebsd2.2*)
  4741. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4742. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4743. _LT_TAGVAR(hardcode_direct, $1)=yes
  4744. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4745. ;;
  4746. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4747. freebsd2.*)
  4748. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4749. _LT_TAGVAR(hardcode_direct, $1)=yes
  4750. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4751. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4752. ;;
  4753. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4754. freebsd* | dragonfly*)
  4755. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4756. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4757. _LT_TAGVAR(hardcode_direct, $1)=yes
  4758. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4759. ;;
  4760. hpux9*)
  4761. if test "$GCC" = yes; then
  4762. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4763. else
  4764. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4765. fi
  4766. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4767. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4768. _LT_TAGVAR(hardcode_direct, $1)=yes
  4769. # hardcode_minus_L: Not really in the search PATH,
  4770. # but as the default location of the library.
  4771. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4772. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4773. ;;
  4774. hpux10*)
  4775. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4776. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4777. else
  4778. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4779. fi
  4780. if test "$with_gnu_ld" = no; then
  4781. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4782. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4783. _LT_TAGVAR(hardcode_direct, $1)=yes
  4784. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4785. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4786. # hardcode_minus_L: Not really in the search PATH,
  4787. # but as the default location of the library.
  4788. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4789. fi
  4790. ;;
  4791. hpux11*)
  4792. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4793. case $host_cpu in
  4794. hppa*64*)
  4795. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4796. ;;
  4797. ia64*)
  4798. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4799. ;;
  4800. *)
  4801. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4802. ;;
  4803. esac
  4804. else
  4805. case $host_cpu in
  4806. hppa*64*)
  4807. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4808. ;;
  4809. ia64*)
  4810. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4811. ;;
  4812. *)
  4813. m4_if($1, [], [
  4814. # Older versions of the 11.00 compiler do not understand -b yet
  4815. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4816. _LT_LINKER_OPTION([if $CC understands -b],
  4817. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4818. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4819. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4820. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4821. ;;
  4822. esac
  4823. fi
  4824. if test "$with_gnu_ld" = no; then
  4825. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4826. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4827. case $host_cpu in
  4828. hppa*64*|ia64*)
  4829. _LT_TAGVAR(hardcode_direct, $1)=no
  4830. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4831. ;;
  4832. *)
  4833. _LT_TAGVAR(hardcode_direct, $1)=yes
  4834. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4835. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4836. # hardcode_minus_L: Not really in the search PATH,
  4837. # but as the default location of the library.
  4838. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4839. ;;
  4840. esac
  4841. fi
  4842. ;;
  4843. irix5* | irix6* | nonstopux*)
  4844. if test "$GCC" = yes; then
  4845. _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'
  4846. # Try to use the -exported_symbol ld option, if it does not
  4847. # work, assume that -exports_file does not work either and
  4848. # implicitly export all symbols.
  4849. # This should be the same for all languages, so no per-tag cache variable.
  4850. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4851. [lt_cv_irix_exported_symbol],
  4852. [save_LDFLAGS="$LDFLAGS"
  4853. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4854. AC_LINK_IFELSE(
  4855. [AC_LANG_SOURCE(
  4856. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4857. [C++], [[int foo (void) { return 0; }]],
  4858. [Fortran 77], [[
  4859. subroutine foo
  4860. end]],
  4861. [Fortran], [[
  4862. subroutine foo
  4863. end]])])],
  4864. [lt_cv_irix_exported_symbol=yes],
  4865. [lt_cv_irix_exported_symbol=no])
  4866. LDFLAGS="$save_LDFLAGS"])
  4867. if test "$lt_cv_irix_exported_symbol" = yes; then
  4868. _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'
  4869. fi
  4870. else
  4871. _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'
  4872. _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'
  4873. fi
  4874. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4875. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4876. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4877. _LT_TAGVAR(inherit_rpath, $1)=yes
  4878. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4879. ;;
  4880. netbsd*)
  4881. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4882. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4883. else
  4884. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4885. fi
  4886. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4887. _LT_TAGVAR(hardcode_direct, $1)=yes
  4888. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4889. ;;
  4890. newsos6)
  4891. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4892. _LT_TAGVAR(hardcode_direct, $1)=yes
  4893. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4894. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4895. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4896. ;;
  4897. *nto* | *qnx*)
  4898. ;;
  4899. openbsd*)
  4900. if test -f /usr/libexec/ld.so; then
  4901. _LT_TAGVAR(hardcode_direct, $1)=yes
  4902. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4903. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4904. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4905. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4906. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4907. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4908. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4909. else
  4910. case $host_os in
  4911. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4912. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4913. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4914. ;;
  4915. *)
  4916. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4917. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4918. ;;
  4919. esac
  4920. fi
  4921. else
  4922. _LT_TAGVAR(ld_shlibs, $1)=no
  4923. fi
  4924. ;;
  4925. os2*)
  4926. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4927. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4928. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4929. _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'
  4930. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4931. ;;
  4932. osf3*)
  4933. if test "$GCC" = yes; then
  4934. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4935. _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'
  4936. else
  4937. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4938. _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'
  4939. fi
  4940. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4941. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4942. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4943. ;;
  4944. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4945. if test "$GCC" = yes; then
  4946. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4947. _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'
  4948. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4949. else
  4950. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4951. _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'
  4952. _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~
  4953. $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'
  4954. # Both c and cxx compiler support -rpath directly
  4955. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4956. fi
  4957. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4958. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4959. ;;
  4960. solaris*)
  4961. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4962. if test "$GCC" = yes; then
  4963. wlarc='${wl}'
  4964. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4965. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4966. $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'
  4967. else
  4968. case `$CC -V 2>&1` in
  4969. *"Compilers 5.0"*)
  4970. wlarc=''
  4971. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4972. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4973. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4974. ;;
  4975. *)
  4976. wlarc='${wl}'
  4977. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4978. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4979. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4980. ;;
  4981. esac
  4982. fi
  4983. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4984. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4985. case $host_os in
  4986. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4987. *)
  4988. # The compiler driver will combine and reorder linker options,
  4989. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4990. # but is careful enough not to reorder.
  4991. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4992. if test "$GCC" = yes; then
  4993. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4994. else
  4995. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4996. fi
  4997. ;;
  4998. esac
  4999. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5000. ;;
  5001. sunos4*)
  5002. if test "x$host_vendor" = xsequent; then
  5003. # Use $CC to link under sequent, because it throws in some extra .o
  5004. # files that make .init and .fini sections work.
  5005. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5006. else
  5007. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5008. fi
  5009. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5010. _LT_TAGVAR(hardcode_direct, $1)=yes
  5011. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5012. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5013. ;;
  5014. sysv4)
  5015. case $host_vendor in
  5016. sni)
  5017. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5018. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5019. ;;
  5020. siemens)
  5021. ## LD is ld it makes a PLAMLIB
  5022. ## CC just makes a GrossModule.
  5023. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5024. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5025. _LT_TAGVAR(hardcode_direct, $1)=no
  5026. ;;
  5027. motorola)
  5028. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5029. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5030. ;;
  5031. esac
  5032. runpath_var='LD_RUN_PATH'
  5033. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5034. ;;
  5035. sysv4.3*)
  5036. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5037. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5038. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5039. ;;
  5040. sysv4*MP*)
  5041. if test -d /usr/nec; then
  5042. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5043. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5044. runpath_var=LD_RUN_PATH
  5045. hardcode_runpath_var=yes
  5046. _LT_TAGVAR(ld_shlibs, $1)=yes
  5047. fi
  5048. ;;
  5049. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5050. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5051. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5052. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5053. runpath_var='LD_RUN_PATH'
  5054. if test "$GCC" = yes; then
  5055. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5056. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5057. else
  5058. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5059. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5060. fi
  5061. ;;
  5062. sysv5* | sco3.2v5* | sco5v6*)
  5063. # Note: We can NOT use -z defs as we might desire, because we do not
  5064. # link with -lc, and that would cause any symbols used from libc to
  5065. # always be unresolved, which means just about no library would
  5066. # ever link correctly. If we're not using GNU ld we use -z text
  5067. # though, which does catch some bad symbols but isn't as heavy-handed
  5068. # as -z defs.
  5069. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5070. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5071. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5072. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5073. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5074. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5075. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5076. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5077. runpath_var='LD_RUN_PATH'
  5078. if test "$GCC" = yes; then
  5079. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5080. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5081. else
  5082. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5083. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5084. fi
  5085. ;;
  5086. uts4*)
  5087. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5088. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5089. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5090. ;;
  5091. *)
  5092. _LT_TAGVAR(ld_shlibs, $1)=no
  5093. ;;
  5094. esac
  5095. if test x$host_vendor = xsni; then
  5096. case $host in
  5097. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5098. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5099. ;;
  5100. esac
  5101. fi
  5102. fi
  5103. ])
  5104. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5105. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5106. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5107. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5108. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5109. _LT_DECL([], [extract_expsyms_cmds], [2],
  5110. [The commands to extract the exported symbol list from a shared archive])
  5111. #
  5112. # Do we need to explicitly link libc?
  5113. #
  5114. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5115. x|xyes)
  5116. # Assume -lc should be added
  5117. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5118. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5119. case $_LT_TAGVAR(archive_cmds, $1) in
  5120. *'~'*)
  5121. # FIXME: we may have to deal with multi-command sequences.
  5122. ;;
  5123. '$CC '*)
  5124. # Test whether the compiler implicitly links with -lc since on some
  5125. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5126. # to ld, don't add -lc before -lgcc.
  5127. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5128. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5129. [$RM conftest*
  5130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5131. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5132. soname=conftest
  5133. lib=conftest
  5134. libobjs=conftest.$ac_objext
  5135. deplibs=
  5136. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5137. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5138. compiler_flags=-v
  5139. linker_flags=-v
  5140. verstring=
  5141. output_objdir=.
  5142. libname=conftest
  5143. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5144. _LT_TAGVAR(allow_undefined_flag, $1)=
  5145. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5146. then
  5147. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5148. else
  5149. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5150. fi
  5151. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5152. else
  5153. cat conftest.err 1>&5
  5154. fi
  5155. $RM conftest*
  5156. ])
  5157. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5158. ;;
  5159. esac
  5160. fi
  5161. ;;
  5162. esac
  5163. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5164. [Whether or not to add -lc for building shared libraries])
  5165. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5166. [enable_shared_with_static_runtimes], [0],
  5167. [Whether or not to disallow shared libs when runtime libs are static])
  5168. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5169. [Compiler flag to allow reflexive dlopens])
  5170. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5171. [Compiler flag to generate shared objects directly from archives])
  5172. _LT_TAGDECL([], [compiler_needs_object], [1],
  5173. [Whether the compiler copes with passing no objects directly])
  5174. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5175. [Create an old-style archive from a shared archive])
  5176. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5177. [Create a temporary old-style archive to link instead of a shared archive])
  5178. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5179. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5180. _LT_TAGDECL([], [module_cmds], [2],
  5181. [Commands used to build a loadable module if different from building
  5182. a shared archive.])
  5183. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5184. _LT_TAGDECL([], [with_gnu_ld], [1],
  5185. [Whether we are building with GNU ld or not])
  5186. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5187. [Flag that allows shared libraries with undefined symbols to be built])
  5188. _LT_TAGDECL([], [no_undefined_flag], [1],
  5189. [Flag that enforces no undefined symbols])
  5190. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5191. [Flag to hardcode $libdir into a binary during linking.
  5192. This must work even if $libdir does not exist])
  5193. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5194. [Whether we need a single "-rpath" flag with a separated argument])
  5195. _LT_TAGDECL([], [hardcode_direct], [0],
  5196. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5197. DIR into the resulting binary])
  5198. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5199. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5200. DIR into the resulting binary and the resulting library dependency is
  5201. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5202. library is relocated])
  5203. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5204. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5205. into the resulting binary])
  5206. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5207. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5208. into the resulting binary])
  5209. _LT_TAGDECL([], [hardcode_automatic], [0],
  5210. [Set to "yes" if building a shared library automatically hardcodes DIR
  5211. into the library and all subsequent libraries and executables linked
  5212. against it])
  5213. _LT_TAGDECL([], [inherit_rpath], [0],
  5214. [Set to yes if linker adds runtime paths of dependent libraries
  5215. to runtime path list])
  5216. _LT_TAGDECL([], [link_all_deplibs], [0],
  5217. [Whether libtool must link a program against all its dependency libraries])
  5218. _LT_TAGDECL([], [always_export_symbols], [0],
  5219. [Set to "yes" if exported symbols are required])
  5220. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5221. [The commands to list exported symbols])
  5222. _LT_TAGDECL([], [exclude_expsyms], [1],
  5223. [Symbols that should not be listed in the preloaded symbols])
  5224. _LT_TAGDECL([], [include_expsyms], [1],
  5225. [Symbols that must always be exported])
  5226. _LT_TAGDECL([], [prelink_cmds], [2],
  5227. [Commands necessary for linking programs (against libraries) with templates])
  5228. _LT_TAGDECL([], [postlink_cmds], [2],
  5229. [Commands necessary for finishing linking programs])
  5230. _LT_TAGDECL([], [file_list_spec], [1],
  5231. [Specify filename containing input files])
  5232. dnl FIXME: Not yet implemented
  5233. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5234. dnl [Compiler flag to generate thread safe objects])
  5235. ])# _LT_LINKER_SHLIBS
  5236. # _LT_LANG_C_CONFIG([TAG])
  5237. # ------------------------
  5238. # Ensure that the configuration variables for a C compiler are suitably
  5239. # defined. These variables are subsequently used by _LT_CONFIG to write
  5240. # the compiler configuration to `libtool'.
  5241. m4_defun([_LT_LANG_C_CONFIG],
  5242. [m4_require([_LT_DECL_EGREP])dnl
  5243. lt_save_CC="$CC"
  5244. AC_LANG_PUSH(C)
  5245. # Source file extension for C test sources.
  5246. ac_ext=c
  5247. # Object file extension for compiled C test sources.
  5248. objext=o
  5249. _LT_TAGVAR(objext, $1)=$objext
  5250. # Code to be used in simple compile tests
  5251. lt_simple_compile_test_code="int some_variable = 0;"
  5252. # Code to be used in simple link tests
  5253. lt_simple_link_test_code='int main(){return(0);}'
  5254. _LT_TAG_COMPILER
  5255. # Save the default compiler, since it gets overwritten when the other
  5256. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5257. compiler_DEFAULT=$CC
  5258. # save warnings/boilerplate of simple test code
  5259. _LT_COMPILER_BOILERPLATE
  5260. _LT_LINKER_BOILERPLATE
  5261. if test -n "$compiler"; then
  5262. _LT_COMPILER_NO_RTTI($1)
  5263. _LT_COMPILER_PIC($1)
  5264. _LT_COMPILER_C_O($1)
  5265. _LT_COMPILER_FILE_LOCKS($1)
  5266. _LT_LINKER_SHLIBS($1)
  5267. _LT_SYS_DYNAMIC_LINKER($1)
  5268. _LT_LINKER_HARDCODE_LIBPATH($1)
  5269. LT_SYS_DLOPEN_SELF
  5270. _LT_CMD_STRIPLIB
  5271. # Report which library types will actually be built
  5272. AC_MSG_CHECKING([if libtool supports shared libraries])
  5273. AC_MSG_RESULT([$can_build_shared])
  5274. AC_MSG_CHECKING([whether to build shared libraries])
  5275. test "$can_build_shared" = "no" && enable_shared=no
  5276. # On AIX, shared libraries and static libraries use the same namespace, and
  5277. # are all built from PIC.
  5278. case $host_os in
  5279. aix3*)
  5280. test "$enable_shared" = yes && enable_static=no
  5281. if test -n "$RANLIB"; then
  5282. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5283. postinstall_cmds='$RANLIB $lib'
  5284. fi
  5285. ;;
  5286. aix[[4-9]]*)
  5287. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5288. test "$enable_shared" = yes && enable_static=no
  5289. fi
  5290. ;;
  5291. esac
  5292. AC_MSG_RESULT([$enable_shared])
  5293. AC_MSG_CHECKING([whether to build static libraries])
  5294. # Make sure either enable_shared or enable_static is yes.
  5295. test "$enable_shared" = yes || enable_static=yes
  5296. AC_MSG_RESULT([$enable_static])
  5297. _LT_CONFIG($1)
  5298. fi
  5299. AC_LANG_POP
  5300. CC="$lt_save_CC"
  5301. ])# _LT_LANG_C_CONFIG
  5302. # _LT_LANG_CXX_CONFIG([TAG])
  5303. # --------------------------
  5304. # Ensure that the configuration variables for a C++ compiler are suitably
  5305. # defined. These variables are subsequently used by _LT_CONFIG to write
  5306. # the compiler configuration to `libtool'.
  5307. m4_defun([_LT_LANG_CXX_CONFIG],
  5308. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5309. m4_require([_LT_DECL_EGREP])dnl
  5310. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5311. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5312. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5313. (test "X$CXX" != "Xg++"))) ; then
  5314. AC_PROG_CXXCPP
  5315. else
  5316. _lt_caught_CXX_error=yes
  5317. fi
  5318. AC_LANG_PUSH(C++)
  5319. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5320. _LT_TAGVAR(allow_undefined_flag, $1)=
  5321. _LT_TAGVAR(always_export_symbols, $1)=no
  5322. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5323. _LT_TAGVAR(compiler_needs_object, $1)=no
  5324. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5325. _LT_TAGVAR(hardcode_direct, $1)=no
  5326. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5327. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5328. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5329. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5330. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5331. _LT_TAGVAR(hardcode_automatic, $1)=no
  5332. _LT_TAGVAR(inherit_rpath, $1)=no
  5333. _LT_TAGVAR(module_cmds, $1)=
  5334. _LT_TAGVAR(module_expsym_cmds, $1)=
  5335. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5336. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5337. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5338. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5339. _LT_TAGVAR(no_undefined_flag, $1)=
  5340. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5341. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5342. # Source file extension for C++ test sources.
  5343. ac_ext=cpp
  5344. # Object file extension for compiled C++ test sources.
  5345. objext=o
  5346. _LT_TAGVAR(objext, $1)=$objext
  5347. # No sense in running all these tests if we already determined that
  5348. # the CXX compiler isn't working. Some variables (like enable_shared)
  5349. # are currently assumed to apply to all compilers on this platform,
  5350. # and will be corrupted by setting them based on a non-working compiler.
  5351. if test "$_lt_caught_CXX_error" != yes; then
  5352. # Code to be used in simple compile tests
  5353. lt_simple_compile_test_code="int some_variable = 0;"
  5354. # Code to be used in simple link tests
  5355. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5356. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5357. _LT_TAG_COMPILER
  5358. # save warnings/boilerplate of simple test code
  5359. _LT_COMPILER_BOILERPLATE
  5360. _LT_LINKER_BOILERPLATE
  5361. # Allow CC to be a program name with arguments.
  5362. lt_save_CC=$CC
  5363. lt_save_CFLAGS=$CFLAGS
  5364. lt_save_LD=$LD
  5365. lt_save_GCC=$GCC
  5366. GCC=$GXX
  5367. lt_save_with_gnu_ld=$with_gnu_ld
  5368. lt_save_path_LD=$lt_cv_path_LD
  5369. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5370. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5371. else
  5372. $as_unset lt_cv_prog_gnu_ld
  5373. fi
  5374. if test -n "${lt_cv_path_LDCXX+set}"; then
  5375. lt_cv_path_LD=$lt_cv_path_LDCXX
  5376. else
  5377. $as_unset lt_cv_path_LD
  5378. fi
  5379. test -z "${LDCXX+set}" || LD=$LDCXX
  5380. CC=${CXX-"c++"}
  5381. CFLAGS=$CXXFLAGS
  5382. compiler=$CC
  5383. _LT_TAGVAR(compiler, $1)=$CC
  5384. _LT_CC_BASENAME([$compiler])
  5385. if test -n "$compiler"; then
  5386. # We don't want -fno-exception when compiling C++ code, so set the
  5387. # no_builtin_flag separately
  5388. if test "$GXX" = yes; then
  5389. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5390. else
  5391. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5392. fi
  5393. if test "$GXX" = yes; then
  5394. # Set up default GNU C++ configuration
  5395. LT_PATH_LD
  5396. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5397. # archiving commands below assume that GNU ld is being used.
  5398. if test "$with_gnu_ld" = yes; then
  5399. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5400. _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'
  5401. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5402. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5403. # If archive_cmds runs LD, not CC, wlarc should be empty
  5404. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5405. # investigate it a little bit more. (MM)
  5406. wlarc='${wl}'
  5407. # ancient GNU ld didn't support --whole-archive et. al.
  5408. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5409. $GREP 'no-whole-archive' > /dev/null; then
  5410. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5411. else
  5412. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5413. fi
  5414. else
  5415. with_gnu_ld=no
  5416. wlarc=
  5417. # A generic and very simple default shared library creation
  5418. # command for GNU C++ for the case where it uses the native
  5419. # linker, instead of GNU ld. If possible, this setting should
  5420. # overridden to take advantage of the native linker features on
  5421. # the platform it is being used on.
  5422. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5423. fi
  5424. # Commands to make compiler produce verbose output that lists
  5425. # what "hidden" libraries, object files and flags are used when
  5426. # linking a shared library.
  5427. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5428. else
  5429. GXX=no
  5430. with_gnu_ld=no
  5431. wlarc=
  5432. fi
  5433. # PORTME: fill in a description of your system's C++ link characteristics
  5434. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5435. _LT_TAGVAR(ld_shlibs, $1)=yes
  5436. case $host_os in
  5437. aix3*)
  5438. # FIXME: insert proper C++ library support
  5439. _LT_TAGVAR(ld_shlibs, $1)=no
  5440. ;;
  5441. aix[[4-9]]*)
  5442. if test "$host_cpu" = ia64; then
  5443. # On IA64, the linker does run time linking by default, so we don't
  5444. # have to do anything special.
  5445. aix_use_runtimelinking=no
  5446. exp_sym_flag='-Bexport'
  5447. no_entry_flag=""
  5448. else
  5449. aix_use_runtimelinking=no
  5450. # Test if we are trying to use run time linking or normal
  5451. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5452. # need to do runtime linking.
  5453. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5454. for ld_flag in $LDFLAGS; do
  5455. case $ld_flag in
  5456. *-brtl*)
  5457. aix_use_runtimelinking=yes
  5458. break
  5459. ;;
  5460. esac
  5461. done
  5462. ;;
  5463. esac
  5464. exp_sym_flag='-bexport'
  5465. no_entry_flag='-bnoentry'
  5466. fi
  5467. # When large executables or shared objects are built, AIX ld can
  5468. # have problems creating the table of contents. If linking a library
  5469. # or program results in "error TOC overflow" add -mminimal-toc to
  5470. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5471. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5472. _LT_TAGVAR(archive_cmds, $1)=''
  5473. _LT_TAGVAR(hardcode_direct, $1)=yes
  5474. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5475. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5476. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5477. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5478. if test "$GXX" = yes; then
  5479. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5480. # We only want to do this on AIX 4.2 and lower, the check
  5481. # below for broken collect2 doesn't work under 4.3+
  5482. collect2name=`${CC} -print-prog-name=collect2`
  5483. if test -f "$collect2name" &&
  5484. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5485. then
  5486. # We have reworked collect2
  5487. :
  5488. else
  5489. # We have old collect2
  5490. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5491. # It fails to find uninstalled libraries when the uninstalled
  5492. # path is not listed in the libpath. Setting hardcode_minus_L
  5493. # to unsupported forces relinking
  5494. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5495. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5496. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5497. fi
  5498. esac
  5499. shared_flag='-shared'
  5500. if test "$aix_use_runtimelinking" = yes; then
  5501. shared_flag="$shared_flag "'${wl}-G'
  5502. fi
  5503. else
  5504. # not using gcc
  5505. if test "$host_cpu" = ia64; then
  5506. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5507. # chokes on -Wl,-G. The following line is correct:
  5508. shared_flag='-G'
  5509. else
  5510. if test "$aix_use_runtimelinking" = yes; then
  5511. shared_flag='${wl}-G'
  5512. else
  5513. shared_flag='${wl}-bM:SRE'
  5514. fi
  5515. fi
  5516. fi
  5517. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5518. # It seems that -bexpall does not export symbols beginning with
  5519. # underscore (_), so it is better to generate a list of symbols to
  5520. # export.
  5521. _LT_TAGVAR(always_export_symbols, $1)=yes
  5522. if test "$aix_use_runtimelinking" = yes; then
  5523. # Warning - without using the other runtime loading flags (-brtl),
  5524. # -berok will link without error, but may produce a broken library.
  5525. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5526. # Determine the default libpath from the value encoded in an empty
  5527. # executable.
  5528. _LT_SYS_MODULE_PATH_AIX([$1])
  5529. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5530. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5531. else
  5532. if test "$host_cpu" = ia64; then
  5533. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5534. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5535. _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"
  5536. else
  5537. # Determine the default libpath from the value encoded in an
  5538. # empty executable.
  5539. _LT_SYS_MODULE_PATH_AIX([$1])
  5540. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5541. # Warning - without using the other run time loading flags,
  5542. # -berok will link without error, but may produce a broken library.
  5543. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5544. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5545. if test "$with_gnu_ld" = yes; then
  5546. # We only use this code for GNU lds that support --whole-archive.
  5547. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5548. else
  5549. # Exported symbols can be pulled into shared objects from archives
  5550. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5551. fi
  5552. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5553. # This is similar to how AIX traditionally builds its shared
  5554. # libraries.
  5555. _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'
  5556. fi
  5557. fi
  5558. ;;
  5559. beos*)
  5560. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5561. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5562. # Joseph Beckenbach <[email protected]> says some releases of gcc
  5563. # support --undefined. This deserves some investigation. FIXME
  5564. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5565. else
  5566. _LT_TAGVAR(ld_shlibs, $1)=no
  5567. fi
  5568. ;;
  5569. chorus*)
  5570. case $cc_basename in
  5571. *)
  5572. # FIXME: insert proper C++ library support
  5573. _LT_TAGVAR(ld_shlibs, $1)=no
  5574. ;;
  5575. esac
  5576. ;;
  5577. cygwin* | mingw* | pw32* | cegcc*)
  5578. case $GXX,$cc_basename in
  5579. ,cl* | no,cl*)
  5580. # Native MSVC
  5581. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5582. # no search path for DLLs.
  5583. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5584. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5585. _LT_TAGVAR(always_export_symbols, $1)=yes
  5586. _LT_TAGVAR(file_list_spec, $1)='@'
  5587. # Tell ltmain to make .lib files, not .a files.
  5588. libext=lib
  5589. # Tell ltmain to make .dll files, not .so files.
  5590. shrext_cmds=".dll"
  5591. # FIXME: Setting linknames here is a bad hack.
  5592. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5593. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5594. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5595. else
  5596. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5597. fi~
  5598. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5599. linknames='
  5600. # The linker will not automatically build a static lib if we build a DLL.
  5601. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5602. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5603. # Don't use ranlib
  5604. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5605. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5606. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5607. case $lt_outputfile in
  5608. *.exe|*.EXE) ;;
  5609. *)
  5610. lt_outputfile="$lt_outputfile.exe"
  5611. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5612. ;;
  5613. esac~
  5614. func_to_tool_file "$lt_outputfile"~
  5615. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5616. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5617. $RM "$lt_outputfile.manifest";
  5618. fi'
  5619. ;;
  5620. *)
  5621. # g++
  5622. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5623. # as there is no search path for DLLs.
  5624. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5625. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5626. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5627. _LT_TAGVAR(always_export_symbols, $1)=no
  5628. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5629. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5630. _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'
  5631. # If the export-symbols file already is a .def file (1st line
  5632. # is EXPORTS), use it as is; otherwise, prepend...
  5633. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5634. cp $export_symbols $output_objdir/$soname.def;
  5635. else
  5636. echo EXPORTS > $output_objdir/$soname.def;
  5637. cat $export_symbols >> $output_objdir/$soname.def;
  5638. fi~
  5639. $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'
  5640. else
  5641. _LT_TAGVAR(ld_shlibs, $1)=no
  5642. fi
  5643. ;;
  5644. esac
  5645. ;;
  5646. darwin* | rhapsody*)
  5647. _LT_DARWIN_LINKER_FEATURES($1)
  5648. ;;
  5649. dgux*)
  5650. case $cc_basename in
  5651. ec++*)
  5652. # FIXME: insert proper C++ library support
  5653. _LT_TAGVAR(ld_shlibs, $1)=no
  5654. ;;
  5655. ghcx*)
  5656. # Green Hills C++ Compiler
  5657. # FIXME: insert proper C++ library support
  5658. _LT_TAGVAR(ld_shlibs, $1)=no
  5659. ;;
  5660. *)
  5661. # FIXME: insert proper C++ library support
  5662. _LT_TAGVAR(ld_shlibs, $1)=no
  5663. ;;
  5664. esac
  5665. ;;
  5666. freebsd2.*)
  5667. # C++ shared libraries reported to be fairly broken before
  5668. # switch to ELF
  5669. _LT_TAGVAR(ld_shlibs, $1)=no
  5670. ;;
  5671. freebsd-elf*)
  5672. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5673. ;;
  5674. freebsd* | dragonfly*)
  5675. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5676. # conventions
  5677. _LT_TAGVAR(ld_shlibs, $1)=yes
  5678. ;;
  5679. gnu*)
  5680. ;;
  5681. haiku*)
  5682. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5683. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5684. ;;
  5685. hpux9*)
  5686. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5687. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5688. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5689. _LT_TAGVAR(hardcode_direct, $1)=yes
  5690. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5691. # but as the default
  5692. # location of the library.
  5693. case $cc_basename in
  5694. CC*)
  5695. # FIXME: insert proper C++ library support
  5696. _LT_TAGVAR(ld_shlibs, $1)=no
  5697. ;;
  5698. aCC*)
  5699. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5700. # Commands to make compiler produce verbose output that lists
  5701. # what "hidden" libraries, object files and flags are used when
  5702. # linking a shared library.
  5703. #
  5704. # There doesn't appear to be a way to prevent this compiler from
  5705. # explicitly linking system object files so we need to strip them
  5706. # from the output so that they don't get included in the library
  5707. # dependencies.
  5708. 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"'
  5709. ;;
  5710. *)
  5711. if test "$GXX" = yes; then
  5712. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5713. else
  5714. # FIXME: insert proper C++ library support
  5715. _LT_TAGVAR(ld_shlibs, $1)=no
  5716. fi
  5717. ;;
  5718. esac
  5719. ;;
  5720. hpux10*|hpux11*)
  5721. if test $with_gnu_ld = no; then
  5722. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5723. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5724. case $host_cpu in
  5725. hppa*64*|ia64*)
  5726. ;;
  5727. *)
  5728. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5729. ;;
  5730. esac
  5731. fi
  5732. case $host_cpu in
  5733. hppa*64*|ia64*)
  5734. _LT_TAGVAR(hardcode_direct, $1)=no
  5735. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5736. ;;
  5737. *)
  5738. _LT_TAGVAR(hardcode_direct, $1)=yes
  5739. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5740. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5741. # but as the default
  5742. # location of the library.
  5743. ;;
  5744. esac
  5745. case $cc_basename in
  5746. CC*)
  5747. # FIXME: insert proper C++ library support
  5748. _LT_TAGVAR(ld_shlibs, $1)=no
  5749. ;;
  5750. aCC*)
  5751. case $host_cpu in
  5752. hppa*64*)
  5753. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5754. ;;
  5755. ia64*)
  5756. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5757. ;;
  5758. *)
  5759. _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'
  5760. ;;
  5761. esac
  5762. # Commands to make compiler produce verbose output that lists
  5763. # what "hidden" libraries, object files and flags are used when
  5764. # linking a shared library.
  5765. #
  5766. # There doesn't appear to be a way to prevent this compiler from
  5767. # explicitly linking system object files so we need to strip them
  5768. # from the output so that they don't get included in the library
  5769. # dependencies.
  5770. output_verbose_link_cmd='templist=`($CC -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"'
  5771. ;;
  5772. *)
  5773. if test "$GXX" = yes; then
  5774. if test $with_gnu_ld = no; then
  5775. case $host_cpu in
  5776. hppa*64*)
  5777. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5778. ;;
  5779. ia64*)
  5780. _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'
  5781. ;;
  5782. *)
  5783. _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'
  5784. ;;
  5785. esac
  5786. fi
  5787. else
  5788. # FIXME: insert proper C++ library support
  5789. _LT_TAGVAR(ld_shlibs, $1)=no
  5790. fi
  5791. ;;
  5792. esac
  5793. ;;
  5794. interix[[3-9]]*)
  5795. _LT_TAGVAR(hardcode_direct, $1)=no
  5796. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5797. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5798. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5799. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5800. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5801. # default) and relocated if they conflict, which is a slow very memory
  5802. # consuming and fragmenting process. To avoid this, we pick a random,
  5803. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5804. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5805. _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'
  5806. _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'
  5807. ;;
  5808. irix5* | irix6*)
  5809. case $cc_basename in
  5810. CC*)
  5811. # SGI C++
  5812. _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'
  5813. # Archives containing C++ object files must be created using
  5814. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5815. # necessary to make sure instantiated templates are included
  5816. # in the archive.
  5817. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5818. ;;
  5819. *)
  5820. if test "$GXX" = yes; then
  5821. if test "$with_gnu_ld" = no; then
  5822. _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'
  5823. else
  5824. _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'
  5825. fi
  5826. fi
  5827. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5828. ;;
  5829. esac
  5830. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5831. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5832. _LT_TAGVAR(inherit_rpath, $1)=yes
  5833. ;;
  5834. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5835. case $cc_basename in
  5836. KCC*)
  5837. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5838. # KCC will only create a shared library if the output file
  5839. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5840. # to its proper name (with version) after linking.
  5841. _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'
  5842. _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'
  5843. # Commands to make compiler produce verbose output that lists
  5844. # what "hidden" libraries, object files and flags are used when
  5845. # linking a shared library.
  5846. #
  5847. # There doesn't appear to be a way to prevent this compiler from
  5848. # explicitly linking system object files so we need to strip them
  5849. # from the output so that they don't get included in the library
  5850. # dependencies.
  5851. 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"'
  5852. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5853. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5854. # Archives containing C++ object files must be created using
  5855. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5856. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5857. ;;
  5858. icpc* | ecpc* )
  5859. # Intel C++
  5860. with_gnu_ld=yes
  5861. # version 8.0 and above of icpc choke on multiply defined symbols
  5862. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5863. # earlier do not add the objects themselves.
  5864. case `$CC -V 2>&1` in
  5865. *"Version 7."*)
  5866. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5867. _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'
  5868. ;;
  5869. *) # Version 8.0 or newer
  5870. tmp_idyn=
  5871. case $host_cpu in
  5872. ia64*) tmp_idyn=' -i_dynamic';;
  5873. esac
  5874. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5875. _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'
  5876. ;;
  5877. esac
  5878. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5879. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5880. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5881. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5882. ;;
  5883. pgCC* | pgcpp*)
  5884. # Portland Group C++ compiler
  5885. case `$CC -V` in
  5886. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5887. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5888. rm -rf $tpldir~
  5889. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5890. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5891. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5892. rm -rf $tpldir~
  5893. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5894. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5895. $RANLIB $oldlib'
  5896. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5897. rm -rf $tpldir~
  5898. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5899. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5900. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5901. rm -rf $tpldir~
  5902. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5903. $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'
  5904. ;;
  5905. *) # Version 6 and above use weak symbols
  5906. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5907. _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'
  5908. ;;
  5909. esac
  5910. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5911. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5912. _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'
  5913. ;;
  5914. cxx*)
  5915. # Compaq C++
  5916. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5917. _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'
  5918. runpath_var=LD_RUN_PATH
  5919. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5920. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5921. # Commands to make compiler produce verbose output that lists
  5922. # what "hidden" libraries, object files and flags are used when
  5923. # linking a shared library.
  5924. #
  5925. # There doesn't appear to be a way to prevent this compiler from
  5926. # explicitly linking system object files so we need to strip them
  5927. # from the output so that they don't get included in the library
  5928. # dependencies.
  5929. 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'
  5930. ;;
  5931. xl* | mpixl* | bgxl*)
  5932. # IBM XL 8.0 on PPC, with GNU ld
  5933. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5934. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5935. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5936. if test "x$supports_anon_versioning" = xyes; then
  5937. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5938. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5939. echo "local: *; };" >> $output_objdir/$libname.ver~
  5940. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5941. fi
  5942. ;;
  5943. *)
  5944. case `$CC -V 2>&1 | sed 5q` in
  5945. *Sun\ C*)
  5946. # Sun C++ 5.9
  5947. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5948. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5949. _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'
  5950. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5951. _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'
  5952. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5953. # Not sure whether something based on
  5954. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5955. # would be better.
  5956. output_verbose_link_cmd='func_echo_all'
  5957. # Archives containing C++ object files must be created using
  5958. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5959. # necessary to make sure instantiated templates are included
  5960. # in the archive.
  5961. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5962. ;;
  5963. esac
  5964. ;;
  5965. esac
  5966. ;;
  5967. lynxos*)
  5968. # FIXME: insert proper C++ library support
  5969. _LT_TAGVAR(ld_shlibs, $1)=no
  5970. ;;
  5971. m88k*)
  5972. # FIXME: insert proper C++ library support
  5973. _LT_TAGVAR(ld_shlibs, $1)=no
  5974. ;;
  5975. mvs*)
  5976. case $cc_basename in
  5977. cxx*)
  5978. # FIXME: insert proper C++ library support
  5979. _LT_TAGVAR(ld_shlibs, $1)=no
  5980. ;;
  5981. *)
  5982. # FIXME: insert proper C++ library support
  5983. _LT_TAGVAR(ld_shlibs, $1)=no
  5984. ;;
  5985. esac
  5986. ;;
  5987. netbsd*)
  5988. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5989. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5990. wlarc=
  5991. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5992. _LT_TAGVAR(hardcode_direct, $1)=yes
  5993. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5994. fi
  5995. # Workaround some broken pre-1.5 toolchains
  5996. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5997. ;;
  5998. *nto* | *qnx*)
  5999. _LT_TAGVAR(ld_shlibs, $1)=yes
  6000. ;;
  6001. openbsd2*)
  6002. # C++ shared libraries are fairly broken
  6003. _LT_TAGVAR(ld_shlibs, $1)=no
  6004. ;;
  6005. openbsd*)
  6006. if test -f /usr/libexec/ld.so; then
  6007. _LT_TAGVAR(hardcode_direct, $1)=yes
  6008. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6009. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6010. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6011. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6012. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6013. _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'
  6014. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6015. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6016. fi
  6017. output_verbose_link_cmd=func_echo_all
  6018. else
  6019. _LT_TAGVAR(ld_shlibs, $1)=no
  6020. fi
  6021. ;;
  6022. osf3* | osf4* | osf5*)
  6023. case $cc_basename in
  6024. KCC*)
  6025. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6026. # KCC will only create a shared library if the output file
  6027. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6028. # to its proper name (with version) after linking.
  6029. _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'
  6030. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6031. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6032. # Archives containing C++ object files must be created using
  6033. # the KAI C++ compiler.
  6034. case $host in
  6035. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6036. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6037. esac
  6038. ;;
  6039. RCC*)
  6040. # Rational C++ 2.4.1
  6041. # FIXME: insert proper C++ library support
  6042. _LT_TAGVAR(ld_shlibs, $1)=no
  6043. ;;
  6044. cxx*)
  6045. case $host in
  6046. osf3*)
  6047. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6048. _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'
  6049. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6050. ;;
  6051. *)
  6052. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6053. _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'
  6054. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6055. echo "-hidden">> $lib.exp~
  6056. $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~
  6057. $RM $lib.exp'
  6058. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6059. ;;
  6060. esac
  6061. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6062. # Commands to make compiler produce verbose output that lists
  6063. # what "hidden" libraries, object files and flags are used when
  6064. # linking a shared library.
  6065. #
  6066. # There doesn't appear to be a way to prevent this compiler from
  6067. # explicitly linking system object files so we need to strip them
  6068. # from the output so that they don't get included in the library
  6069. # dependencies.
  6070. 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"'
  6071. ;;
  6072. *)
  6073. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6074. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6075. case $host in
  6076. osf3*)
  6077. _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'
  6078. ;;
  6079. *)
  6080. _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'
  6081. ;;
  6082. esac
  6083. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6084. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6085. # Commands to make compiler produce verbose output that lists
  6086. # what "hidden" libraries, object files and flags are used when
  6087. # linking a shared library.
  6088. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6089. else
  6090. # FIXME: insert proper C++ library support
  6091. _LT_TAGVAR(ld_shlibs, $1)=no
  6092. fi
  6093. ;;
  6094. esac
  6095. ;;
  6096. psos*)
  6097. # FIXME: insert proper C++ library support
  6098. _LT_TAGVAR(ld_shlibs, $1)=no
  6099. ;;
  6100. sunos4*)
  6101. case $cc_basename in
  6102. CC*)
  6103. # Sun C++ 4.x
  6104. # FIXME: insert proper C++ library support
  6105. _LT_TAGVAR(ld_shlibs, $1)=no
  6106. ;;
  6107. lcc*)
  6108. # Lucid
  6109. # FIXME: insert proper C++ library support
  6110. _LT_TAGVAR(ld_shlibs, $1)=no
  6111. ;;
  6112. *)
  6113. # FIXME: insert proper C++ library support
  6114. _LT_TAGVAR(ld_shlibs, $1)=no
  6115. ;;
  6116. esac
  6117. ;;
  6118. solaris*)
  6119. case $cc_basename in
  6120. CC* | sunCC*)
  6121. # Sun C++ 4.2, 5.x and Centerline C++
  6122. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6123. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6124. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6125. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6126. $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'
  6127. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6128. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6129. case $host_os in
  6130. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6131. *)
  6132. # The compiler driver will combine and reorder linker options,
  6133. # but understands `-z linker_flag'.
  6134. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6135. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6136. ;;
  6137. esac
  6138. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6139. output_verbose_link_cmd='func_echo_all'
  6140. # Archives containing C++ object files must be created using
  6141. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6142. # necessary to make sure instantiated templates are included
  6143. # in the archive.
  6144. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6145. ;;
  6146. gcx*)
  6147. # Green Hills C++ Compiler
  6148. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6149. # The C++ compiler must be used to create the archive.
  6150. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6151. ;;
  6152. *)
  6153. # GNU C++ compiler with Solaris linker
  6154. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6155. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6156. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6157. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6158. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6159. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6160. # Commands to make compiler produce verbose output that lists
  6161. # what "hidden" libraries, object files and flags are used when
  6162. # linking a shared library.
  6163. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6164. else
  6165. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6166. # platform.
  6167. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6168. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6169. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6170. # Commands to make compiler produce verbose output that lists
  6171. # what "hidden" libraries, object files and flags are used when
  6172. # linking a shared library.
  6173. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6174. fi
  6175. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6176. case $host_os in
  6177. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6178. *)
  6179. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6180. ;;
  6181. esac
  6182. fi
  6183. ;;
  6184. esac
  6185. ;;
  6186. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6187. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6188. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6189. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6190. runpath_var='LD_RUN_PATH'
  6191. case $cc_basename in
  6192. CC*)
  6193. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6194. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6195. ;;
  6196. *)
  6197. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6198. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6199. ;;
  6200. esac
  6201. ;;
  6202. sysv5* | sco3.2v5* | sco5v6*)
  6203. # Note: We can NOT use -z defs as we might desire, because we do not
  6204. # link with -lc, and that would cause any symbols used from libc to
  6205. # always be unresolved, which means just about no library would
  6206. # ever link correctly. If we're not using GNU ld we use -z text
  6207. # though, which does catch some bad symbols but isn't as heavy-handed
  6208. # as -z defs.
  6209. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6210. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6211. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6212. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6213. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6214. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6215. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6216. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6217. runpath_var='LD_RUN_PATH'
  6218. case $cc_basename in
  6219. CC*)
  6220. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6221. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6222. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6223. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6224. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6225. '"$_LT_TAGVAR(reload_cmds, $1)"
  6226. ;;
  6227. *)
  6228. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6229. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6230. ;;
  6231. esac
  6232. ;;
  6233. tandem*)
  6234. case $cc_basename in
  6235. NCC*)
  6236. # NonStop-UX NCC 3.20
  6237. # FIXME: insert proper C++ library support
  6238. _LT_TAGVAR(ld_shlibs, $1)=no
  6239. ;;
  6240. *)
  6241. # FIXME: insert proper C++ library support
  6242. _LT_TAGVAR(ld_shlibs, $1)=no
  6243. ;;
  6244. esac
  6245. ;;
  6246. vxworks*)
  6247. # FIXME: insert proper C++ library support
  6248. _LT_TAGVAR(ld_shlibs, $1)=no
  6249. ;;
  6250. *)
  6251. # FIXME: insert proper C++ library support
  6252. _LT_TAGVAR(ld_shlibs, $1)=no
  6253. ;;
  6254. esac
  6255. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6256. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6257. _LT_TAGVAR(GCC, $1)="$GXX"
  6258. _LT_TAGVAR(LD, $1)="$LD"
  6259. ## CAVEAT EMPTOR:
  6260. ## There is no encapsulation within the following macros, do not change
  6261. ## the running order or otherwise move them around unless you know exactly
  6262. ## what you are doing...
  6263. _LT_SYS_HIDDEN_LIBDEPS($1)
  6264. _LT_COMPILER_PIC($1)
  6265. _LT_COMPILER_C_O($1)
  6266. _LT_COMPILER_FILE_LOCKS($1)
  6267. _LT_LINKER_SHLIBS($1)
  6268. _LT_SYS_DYNAMIC_LINKER($1)
  6269. _LT_LINKER_HARDCODE_LIBPATH($1)
  6270. _LT_CONFIG($1)
  6271. fi # test -n "$compiler"
  6272. CC=$lt_save_CC
  6273. CFLAGS=$lt_save_CFLAGS
  6274. LDCXX=$LD
  6275. LD=$lt_save_LD
  6276. GCC=$lt_save_GCC
  6277. with_gnu_ld=$lt_save_with_gnu_ld
  6278. lt_cv_path_LDCXX=$lt_cv_path_LD
  6279. lt_cv_path_LD=$lt_save_path_LD
  6280. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6281. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6282. fi # test "$_lt_caught_CXX_error" != yes
  6283. AC_LANG_POP
  6284. ])# _LT_LANG_CXX_CONFIG
  6285. # _LT_FUNC_STRIPNAME_CNF
  6286. # ----------------------
  6287. # func_stripname_cnf prefix suffix name
  6288. # strip PREFIX and SUFFIX off of NAME.
  6289. # PREFIX and SUFFIX must not contain globbing or regex special
  6290. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6291. # dot (in which case that matches only a dot).
  6292. #
  6293. # This function is identical to the (non-XSI) version of func_stripname,
  6294. # except this one can be used by m4 code that may be executed by configure,
  6295. # rather than the libtool script.
  6296. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6297. AC_REQUIRE([_LT_DECL_SED])
  6298. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6299. func_stripname_cnf ()
  6300. {
  6301. case ${2} in
  6302. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6303. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6304. esac
  6305. } # func_stripname_cnf
  6306. ])# _LT_FUNC_STRIPNAME_CNF
  6307. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6308. # ---------------------------------
  6309. # Figure out "hidden" library dependencies from verbose
  6310. # compiler output when linking a shared library.
  6311. # Parse the compiler output and extract the necessary
  6312. # objects, libraries and library flags.
  6313. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6314. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6315. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6316. # Dependencies to place before and after the object being linked:
  6317. _LT_TAGVAR(predep_objects, $1)=
  6318. _LT_TAGVAR(postdep_objects, $1)=
  6319. _LT_TAGVAR(predeps, $1)=
  6320. _LT_TAGVAR(postdeps, $1)=
  6321. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6322. dnl we can't use the lt_simple_compile_test_code here,
  6323. dnl because it contains code intended for an executable,
  6324. dnl not a library. It's possible we should let each
  6325. dnl tag define a new lt_????_link_test_code variable,
  6326. dnl but it's only used here...
  6327. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6328. int a;
  6329. void foo (void) { a = 0; }
  6330. _LT_EOF
  6331. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6332. class Foo
  6333. {
  6334. public:
  6335. Foo (void) { a = 0; }
  6336. private:
  6337. int a;
  6338. };
  6339. _LT_EOF
  6340. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6341. subroutine foo
  6342. implicit none
  6343. integer*4 a
  6344. a=0
  6345. return
  6346. end
  6347. _LT_EOF
  6348. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6349. subroutine foo
  6350. implicit none
  6351. integer a
  6352. a=0
  6353. return
  6354. end
  6355. _LT_EOF
  6356. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6357. public class foo {
  6358. private int a;
  6359. public void bar (void) {
  6360. a = 0;
  6361. }
  6362. };
  6363. _LT_EOF
  6364. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6365. package foo
  6366. func foo() {
  6367. }
  6368. _LT_EOF
  6369. ])
  6370. _lt_libdeps_save_CFLAGS=$CFLAGS
  6371. case "$CC $CFLAGS " in #(
  6372. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6373. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6374. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6375. esac
  6376. dnl Parse the compiler output and extract the necessary
  6377. dnl objects, libraries and library flags.
  6378. if AC_TRY_EVAL(ac_compile); then
  6379. # Parse the compiler output and extract the necessary
  6380. # objects, libraries and library flags.
  6381. # Sentinel used to keep track of whether or not we are before
  6382. # the conftest object file.
  6383. pre_test_object_deps_done=no
  6384. for p in `eval "$output_verbose_link_cmd"`; do
  6385. case ${prev}${p} in
  6386. -L* | -R* | -l*)
  6387. # Some compilers place space between "-{L,R}" and the path.
  6388. # Remove the space.
  6389. if test $p = "-L" ||
  6390. test $p = "-R"; then
  6391. prev=$p
  6392. continue
  6393. fi
  6394. # Expand the sysroot to ease extracting the directories later.
  6395. if test -z "$prev"; then
  6396. case $p in
  6397. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6398. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6399. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6400. esac
  6401. fi
  6402. case $p in
  6403. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6404. esac
  6405. if test "$pre_test_object_deps_done" = no; then
  6406. case ${prev} in
  6407. -L | -R)
  6408. # Internal compiler library paths should come after those
  6409. # provided the user. The postdeps already come after the
  6410. # user supplied libs so there is no need to process them.
  6411. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6412. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6413. else
  6414. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6415. fi
  6416. ;;
  6417. # The "-l" case would never come before the object being
  6418. # linked, so don't bother handling this case.
  6419. esac
  6420. else
  6421. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6422. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6423. else
  6424. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6425. fi
  6426. fi
  6427. prev=
  6428. ;;
  6429. *.lto.$objext) ;; # Ignore GCC LTO objects
  6430. *.$objext)
  6431. # This assumes that the test object file only shows up
  6432. # once in the compiler output.
  6433. if test "$p" = "conftest.$objext"; then
  6434. pre_test_object_deps_done=yes
  6435. continue
  6436. fi
  6437. if test "$pre_test_object_deps_done" = no; then
  6438. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6439. _LT_TAGVAR(predep_objects, $1)="$p"
  6440. else
  6441. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6442. fi
  6443. else
  6444. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6445. _LT_TAGVAR(postdep_objects, $1)="$p"
  6446. else
  6447. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6448. fi
  6449. fi
  6450. ;;
  6451. *) ;; # Ignore the rest.
  6452. esac
  6453. done
  6454. # Clean up.
  6455. rm -f a.out a.exe
  6456. else
  6457. echo "libtool.m4: error: problem compiling $1 test program"
  6458. fi
  6459. $RM -f confest.$objext
  6460. CFLAGS=$_lt_libdeps_save_CFLAGS
  6461. # PORTME: override above test on systems where it is broken
  6462. m4_if([$1], [CXX],
  6463. [case $host_os in
  6464. interix[[3-9]]*)
  6465. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6466. # hack all around it, let's just trust "g++" to DTRT.
  6467. _LT_TAGVAR(predep_objects,$1)=
  6468. _LT_TAGVAR(postdep_objects,$1)=
  6469. _LT_TAGVAR(postdeps,$1)=
  6470. ;;
  6471. linux*)
  6472. case `$CC -V 2>&1 | sed 5q` in
  6473. *Sun\ C*)
  6474. # Sun C++ 5.9
  6475. # The more standards-conforming stlport4 library is
  6476. # incompatible with the Cstd library. Avoid specifying
  6477. # it if it's in CXXFLAGS. Ignore libCrun as
  6478. # -library=stlport4 depends on it.
  6479. case " $CXX $CXXFLAGS " in
  6480. *" -library=stlport4 "*)
  6481. solaris_use_stlport4=yes
  6482. ;;
  6483. esac
  6484. if test "$solaris_use_stlport4" != yes; then
  6485. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6486. fi
  6487. ;;
  6488. esac
  6489. ;;
  6490. solaris*)
  6491. case $cc_basename in
  6492. CC* | sunCC*)
  6493. # The more standards-conforming stlport4 library is
  6494. # incompatible with the Cstd library. Avoid specifying
  6495. # it if it's in CXXFLAGS. Ignore libCrun as
  6496. # -library=stlport4 depends on it.
  6497. case " $CXX $CXXFLAGS " in
  6498. *" -library=stlport4 "*)
  6499. solaris_use_stlport4=yes
  6500. ;;
  6501. esac
  6502. # Adding this requires a known-good setup of shared libraries for
  6503. # Sun compiler versions before 5.6, else PIC objects from an old
  6504. # archive will be linked into the output, leading to subtle bugs.
  6505. if test "$solaris_use_stlport4" != yes; then
  6506. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6507. fi
  6508. ;;
  6509. esac
  6510. ;;
  6511. esac
  6512. ])
  6513. case " $_LT_TAGVAR(postdeps, $1) " in
  6514. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6515. esac
  6516. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6517. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6518. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6519. fi
  6520. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6521. [The directories searched by this compiler when creating a shared library])
  6522. _LT_TAGDECL([], [predep_objects], [1],
  6523. [Dependencies to place before and after the objects being linked to
  6524. create a shared library])
  6525. _LT_TAGDECL([], [postdep_objects], [1])
  6526. _LT_TAGDECL([], [predeps], [1])
  6527. _LT_TAGDECL([], [postdeps], [1])
  6528. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6529. [The library search path used internally by the compiler when linking
  6530. a shared library])
  6531. ])# _LT_SYS_HIDDEN_LIBDEPS
  6532. # _LT_LANG_F77_CONFIG([TAG])
  6533. # --------------------------
  6534. # Ensure that the configuration variables for a Fortran 77 compiler are
  6535. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6536. # to write the compiler configuration to `libtool'.
  6537. m4_defun([_LT_LANG_F77_CONFIG],
  6538. [AC_LANG_PUSH(Fortran 77)
  6539. if test -z "$F77" || test "X$F77" = "Xno"; then
  6540. _lt_disable_F77=yes
  6541. fi
  6542. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6543. _LT_TAGVAR(allow_undefined_flag, $1)=
  6544. _LT_TAGVAR(always_export_symbols, $1)=no
  6545. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6546. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6547. _LT_TAGVAR(hardcode_direct, $1)=no
  6548. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6549. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6550. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6551. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6552. _LT_TAGVAR(hardcode_automatic, $1)=no
  6553. _LT_TAGVAR(inherit_rpath, $1)=no
  6554. _LT_TAGVAR(module_cmds, $1)=
  6555. _LT_TAGVAR(module_expsym_cmds, $1)=
  6556. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6557. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6558. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6559. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6560. _LT_TAGVAR(no_undefined_flag, $1)=
  6561. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6562. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6563. # Source file extension for f77 test sources.
  6564. ac_ext=f
  6565. # Object file extension for compiled f77 test sources.
  6566. objext=o
  6567. _LT_TAGVAR(objext, $1)=$objext
  6568. # No sense in running all these tests if we already determined that
  6569. # the F77 compiler isn't working. Some variables (like enable_shared)
  6570. # are currently assumed to apply to all compilers on this platform,
  6571. # and will be corrupted by setting them based on a non-working compiler.
  6572. if test "$_lt_disable_F77" != yes; then
  6573. # Code to be used in simple compile tests
  6574. lt_simple_compile_test_code="\
  6575. subroutine t
  6576. return
  6577. end
  6578. "
  6579. # Code to be used in simple link tests
  6580. lt_simple_link_test_code="\
  6581. program t
  6582. end
  6583. "
  6584. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6585. _LT_TAG_COMPILER
  6586. # save warnings/boilerplate of simple test code
  6587. _LT_COMPILER_BOILERPLATE
  6588. _LT_LINKER_BOILERPLATE
  6589. # Allow CC to be a program name with arguments.
  6590. lt_save_CC="$CC"
  6591. lt_save_GCC=$GCC
  6592. lt_save_CFLAGS=$CFLAGS
  6593. CC=${F77-"f77"}
  6594. CFLAGS=$FFLAGS
  6595. compiler=$CC
  6596. _LT_TAGVAR(compiler, $1)=$CC
  6597. _LT_CC_BASENAME([$compiler])
  6598. GCC=$G77
  6599. if test -n "$compiler"; then
  6600. AC_MSG_CHECKING([if libtool supports shared libraries])
  6601. AC_MSG_RESULT([$can_build_shared])
  6602. AC_MSG_CHECKING([whether to build shared libraries])
  6603. test "$can_build_shared" = "no" && enable_shared=no
  6604. # On AIX, shared libraries and static libraries use the same namespace, and
  6605. # are all built from PIC.
  6606. case $host_os in
  6607. aix3*)
  6608. test "$enable_shared" = yes && enable_static=no
  6609. if test -n "$RANLIB"; then
  6610. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6611. postinstall_cmds='$RANLIB $lib'
  6612. fi
  6613. ;;
  6614. aix[[4-9]]*)
  6615. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6616. test "$enable_shared" = yes && enable_static=no
  6617. fi
  6618. ;;
  6619. esac
  6620. AC_MSG_RESULT([$enable_shared])
  6621. AC_MSG_CHECKING([whether to build static libraries])
  6622. # Make sure either enable_shared or enable_static is yes.
  6623. test "$enable_shared" = yes || enable_static=yes
  6624. AC_MSG_RESULT([$enable_static])
  6625. _LT_TAGVAR(GCC, $1)="$G77"
  6626. _LT_TAGVAR(LD, $1)="$LD"
  6627. ## CAVEAT EMPTOR:
  6628. ## There is no encapsulation within the following macros, do not change
  6629. ## the running order or otherwise move them around unless you know exactly
  6630. ## what you are doing...
  6631. _LT_COMPILER_PIC($1)
  6632. _LT_COMPILER_C_O($1)
  6633. _LT_COMPILER_FILE_LOCKS($1)
  6634. _LT_LINKER_SHLIBS($1)
  6635. _LT_SYS_DYNAMIC_LINKER($1)
  6636. _LT_LINKER_HARDCODE_LIBPATH($1)
  6637. _LT_CONFIG($1)
  6638. fi # test -n "$compiler"
  6639. GCC=$lt_save_GCC
  6640. CC="$lt_save_CC"
  6641. CFLAGS="$lt_save_CFLAGS"
  6642. fi # test "$_lt_disable_F77" != yes
  6643. AC_LANG_POP
  6644. ])# _LT_LANG_F77_CONFIG
  6645. # _LT_LANG_FC_CONFIG([TAG])
  6646. # -------------------------
  6647. # Ensure that the configuration variables for a Fortran compiler are
  6648. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6649. # to write the compiler configuration to `libtool'.
  6650. m4_defun([_LT_LANG_FC_CONFIG],
  6651. [AC_LANG_PUSH(Fortran)
  6652. if test -z "$FC" || test "X$FC" = "Xno"; then
  6653. _lt_disable_FC=yes
  6654. fi
  6655. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6656. _LT_TAGVAR(allow_undefined_flag, $1)=
  6657. _LT_TAGVAR(always_export_symbols, $1)=no
  6658. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6659. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6660. _LT_TAGVAR(hardcode_direct, $1)=no
  6661. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6662. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6663. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6664. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6665. _LT_TAGVAR(hardcode_automatic, $1)=no
  6666. _LT_TAGVAR(inherit_rpath, $1)=no
  6667. _LT_TAGVAR(module_cmds, $1)=
  6668. _LT_TAGVAR(module_expsym_cmds, $1)=
  6669. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6670. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6671. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6672. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6673. _LT_TAGVAR(no_undefined_flag, $1)=
  6674. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6675. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6676. # Source file extension for fc test sources.
  6677. ac_ext=${ac_fc_srcext-f}
  6678. # Object file extension for compiled fc test sources.
  6679. objext=o
  6680. _LT_TAGVAR(objext, $1)=$objext
  6681. # No sense in running all these tests if we already determined that
  6682. # the FC compiler isn't working. Some variables (like enable_shared)
  6683. # are currently assumed to apply to all compilers on this platform,
  6684. # and will be corrupted by setting them based on a non-working compiler.
  6685. if test "$_lt_disable_FC" != yes; then
  6686. # Code to be used in simple compile tests
  6687. lt_simple_compile_test_code="\
  6688. subroutine t
  6689. return
  6690. end
  6691. "
  6692. # Code to be used in simple link tests
  6693. lt_simple_link_test_code="\
  6694. program t
  6695. end
  6696. "
  6697. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6698. _LT_TAG_COMPILER
  6699. # save warnings/boilerplate of simple test code
  6700. _LT_COMPILER_BOILERPLATE
  6701. _LT_LINKER_BOILERPLATE
  6702. # Allow CC to be a program name with arguments.
  6703. lt_save_CC="$CC"
  6704. lt_save_GCC=$GCC
  6705. lt_save_CFLAGS=$CFLAGS
  6706. CC=${FC-"f95"}
  6707. CFLAGS=$FCFLAGS
  6708. compiler=$CC
  6709. GCC=$ac_cv_fc_compiler_gnu
  6710. _LT_TAGVAR(compiler, $1)=$CC
  6711. _LT_CC_BASENAME([$compiler])
  6712. if test -n "$compiler"; then
  6713. AC_MSG_CHECKING([if libtool supports shared libraries])
  6714. AC_MSG_RESULT([$can_build_shared])
  6715. AC_MSG_CHECKING([whether to build shared libraries])
  6716. test "$can_build_shared" = "no" && enable_shared=no
  6717. # On AIX, shared libraries and static libraries use the same namespace, and
  6718. # are all built from PIC.
  6719. case $host_os in
  6720. aix3*)
  6721. test "$enable_shared" = yes && enable_static=no
  6722. if test -n "$RANLIB"; then
  6723. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6724. postinstall_cmds='$RANLIB $lib'
  6725. fi
  6726. ;;
  6727. aix[[4-9]]*)
  6728. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6729. test "$enable_shared" = yes && enable_static=no
  6730. fi
  6731. ;;
  6732. esac
  6733. AC_MSG_RESULT([$enable_shared])
  6734. AC_MSG_CHECKING([whether to build static libraries])
  6735. # Make sure either enable_shared or enable_static is yes.
  6736. test "$enable_shared" = yes || enable_static=yes
  6737. AC_MSG_RESULT([$enable_static])
  6738. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6739. _LT_TAGVAR(LD, $1)="$LD"
  6740. ## CAVEAT EMPTOR:
  6741. ## There is no encapsulation within the following macros, do not change
  6742. ## the running order or otherwise move them around unless you know exactly
  6743. ## what you are doing...
  6744. _LT_SYS_HIDDEN_LIBDEPS($1)
  6745. _LT_COMPILER_PIC($1)
  6746. _LT_COMPILER_C_O($1)
  6747. _LT_COMPILER_FILE_LOCKS($1)
  6748. _LT_LINKER_SHLIBS($1)
  6749. _LT_SYS_DYNAMIC_LINKER($1)
  6750. _LT_LINKER_HARDCODE_LIBPATH($1)
  6751. _LT_CONFIG($1)
  6752. fi # test -n "$compiler"
  6753. GCC=$lt_save_GCC
  6754. CC=$lt_save_CC
  6755. CFLAGS=$lt_save_CFLAGS
  6756. fi # test "$_lt_disable_FC" != yes
  6757. AC_LANG_POP
  6758. ])# _LT_LANG_FC_CONFIG
  6759. # _LT_LANG_GCJ_CONFIG([TAG])
  6760. # --------------------------
  6761. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6762. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6763. # to write the compiler configuration to `libtool'.
  6764. m4_defun([_LT_LANG_GCJ_CONFIG],
  6765. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6766. AC_LANG_SAVE
  6767. # Source file extension for Java test sources.
  6768. ac_ext=java
  6769. # Object file extension for compiled Java test sources.
  6770. objext=o
  6771. _LT_TAGVAR(objext, $1)=$objext
  6772. # Code to be used in simple compile tests
  6773. lt_simple_compile_test_code="class foo {}"
  6774. # Code to be used in simple link tests
  6775. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6776. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6777. _LT_TAG_COMPILER
  6778. # save warnings/boilerplate of simple test code
  6779. _LT_COMPILER_BOILERPLATE
  6780. _LT_LINKER_BOILERPLATE
  6781. # Allow CC to be a program name with arguments.
  6782. lt_save_CC=$CC
  6783. lt_save_CFLAGS=$CFLAGS
  6784. lt_save_GCC=$GCC
  6785. GCC=yes
  6786. CC=${GCJ-"gcj"}
  6787. CFLAGS=$GCJFLAGS
  6788. compiler=$CC
  6789. _LT_TAGVAR(compiler, $1)=$CC
  6790. _LT_TAGVAR(LD, $1)="$LD"
  6791. _LT_CC_BASENAME([$compiler])
  6792. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6793. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6794. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6795. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6796. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6797. if test -n "$compiler"; then
  6798. _LT_COMPILER_NO_RTTI($1)
  6799. _LT_COMPILER_PIC($1)
  6800. _LT_COMPILER_C_O($1)
  6801. _LT_COMPILER_FILE_LOCKS($1)
  6802. _LT_LINKER_SHLIBS($1)
  6803. _LT_LINKER_HARDCODE_LIBPATH($1)
  6804. _LT_CONFIG($1)
  6805. fi
  6806. AC_LANG_RESTORE
  6807. GCC=$lt_save_GCC
  6808. CC=$lt_save_CC
  6809. CFLAGS=$lt_save_CFLAGS
  6810. ])# _LT_LANG_GCJ_CONFIG
  6811. # _LT_LANG_GO_CONFIG([TAG])
  6812. # --------------------------
  6813. # Ensure that the configuration variables for the GNU Go compiler
  6814. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6815. # to write the compiler configuration to `libtool'.
  6816. m4_defun([_LT_LANG_GO_CONFIG],
  6817. [AC_REQUIRE([LT_PROG_GO])dnl
  6818. AC_LANG_SAVE
  6819. # Source file extension for Go test sources.
  6820. ac_ext=go
  6821. # Object file extension for compiled Go test sources.
  6822. objext=o
  6823. _LT_TAGVAR(objext, $1)=$objext
  6824. # Code to be used in simple compile tests
  6825. lt_simple_compile_test_code="package main; func main() { }"
  6826. # Code to be used in simple link tests
  6827. lt_simple_link_test_code='package main; func main() { }'
  6828. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6829. _LT_TAG_COMPILER
  6830. # save warnings/boilerplate of simple test code
  6831. _LT_COMPILER_BOILERPLATE
  6832. _LT_LINKER_BOILERPLATE
  6833. # Allow CC to be a program name with arguments.
  6834. lt_save_CC=$CC
  6835. lt_save_CFLAGS=$CFLAGS
  6836. lt_save_GCC=$GCC
  6837. GCC=yes
  6838. CC=${GOC-"gccgo"}
  6839. CFLAGS=$GOFLAGS
  6840. compiler=$CC
  6841. _LT_TAGVAR(compiler, $1)=$CC
  6842. _LT_TAGVAR(LD, $1)="$LD"
  6843. _LT_CC_BASENAME([$compiler])
  6844. # Go did not exist at the time GCC didn't implicitly link libc in.
  6845. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6846. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6847. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6848. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6849. if test -n "$compiler"; then
  6850. _LT_COMPILER_NO_RTTI($1)
  6851. _LT_COMPILER_PIC($1)
  6852. _LT_COMPILER_C_O($1)
  6853. _LT_COMPILER_FILE_LOCKS($1)
  6854. _LT_LINKER_SHLIBS($1)
  6855. _LT_LINKER_HARDCODE_LIBPATH($1)
  6856. _LT_CONFIG($1)
  6857. fi
  6858. AC_LANG_RESTORE
  6859. GCC=$lt_save_GCC
  6860. CC=$lt_save_CC
  6861. CFLAGS=$lt_save_CFLAGS
  6862. ])# _LT_LANG_GO_CONFIG
  6863. # _LT_LANG_RC_CONFIG([TAG])
  6864. # -------------------------
  6865. # Ensure that the configuration variables for the Windows resource compiler
  6866. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6867. # to write the compiler configuration to `libtool'.
  6868. m4_defun([_LT_LANG_RC_CONFIG],
  6869. [AC_REQUIRE([LT_PROG_RC])dnl
  6870. AC_LANG_SAVE
  6871. # Source file extension for RC test sources.
  6872. ac_ext=rc
  6873. # Object file extension for compiled RC test sources.
  6874. objext=o
  6875. _LT_TAGVAR(objext, $1)=$objext
  6876. # Code to be used in simple compile tests
  6877. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6878. # Code to be used in simple link tests
  6879. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6880. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6881. _LT_TAG_COMPILER
  6882. # save warnings/boilerplate of simple test code
  6883. _LT_COMPILER_BOILERPLATE
  6884. _LT_LINKER_BOILERPLATE
  6885. # Allow CC to be a program name with arguments.
  6886. lt_save_CC="$CC"
  6887. lt_save_CFLAGS=$CFLAGS
  6888. lt_save_GCC=$GCC
  6889. GCC=
  6890. CC=${RC-"windres"}
  6891. CFLAGS=
  6892. compiler=$CC
  6893. _LT_TAGVAR(compiler, $1)=$CC
  6894. _LT_CC_BASENAME([$compiler])
  6895. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6896. if test -n "$compiler"; then
  6897. :
  6898. _LT_CONFIG($1)
  6899. fi
  6900. GCC=$lt_save_GCC
  6901. AC_LANG_RESTORE
  6902. CC=$lt_save_CC
  6903. CFLAGS=$lt_save_CFLAGS
  6904. ])# _LT_LANG_RC_CONFIG
  6905. # LT_PROG_GCJ
  6906. # -----------
  6907. AC_DEFUN([LT_PROG_GCJ],
  6908. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6909. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6910. [AC_CHECK_TOOL(GCJ, gcj,)
  6911. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6912. AC_SUBST(GCJFLAGS)])])[]dnl
  6913. ])
  6914. # Old name:
  6915. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6916. dnl aclocal-1.4 backwards compatibility:
  6917. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6918. # LT_PROG_GO
  6919. # ----------
  6920. AC_DEFUN([LT_PROG_GO],
  6921. [AC_CHECK_TOOL(GOC, gccgo,)
  6922. ])
  6923. # LT_PROG_RC
  6924. # ----------
  6925. AC_DEFUN([LT_PROG_RC],
  6926. [AC_CHECK_TOOL(RC, windres,)
  6927. ])
  6928. # Old name:
  6929. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6930. dnl aclocal-1.4 backwards compatibility:
  6931. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6932. # _LT_DECL_EGREP
  6933. # --------------
  6934. # If we don't have a new enough Autoconf to choose the best grep
  6935. # available, choose the one first in the user's PATH.
  6936. m4_defun([_LT_DECL_EGREP],
  6937. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6938. AC_REQUIRE([AC_PROG_FGREP])dnl
  6939. test -z "$GREP" && GREP=grep
  6940. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6941. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6942. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6943. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6944. AC_SUBST([GREP])
  6945. ])
  6946. # _LT_DECL_OBJDUMP
  6947. # --------------
  6948. # If we don't have a new enough Autoconf to choose the best objdump
  6949. # available, choose the one first in the user's PATH.
  6950. m4_defun([_LT_DECL_OBJDUMP],
  6951. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6952. test -z "$OBJDUMP" && OBJDUMP=objdump
  6953. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6954. AC_SUBST([OBJDUMP])
  6955. ])
  6956. # _LT_DECL_DLLTOOL
  6957. # ----------------
  6958. # Ensure DLLTOOL variable is set.
  6959. m4_defun([_LT_DECL_DLLTOOL],
  6960. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6961. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6962. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6963. AC_SUBST([DLLTOOL])
  6964. ])
  6965. # _LT_DECL_SED
  6966. # ------------
  6967. # Check for a fully-functional sed program, that truncates
  6968. # as few characters as possible. Prefer GNU sed if found.
  6969. m4_defun([_LT_DECL_SED],
  6970. [AC_PROG_SED
  6971. test -z "$SED" && SED=sed
  6972. Xsed="$SED -e 1s/^X//"
  6973. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6974. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6975. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6976. ])# _LT_DECL_SED
  6977. m4_ifndef([AC_PROG_SED], [
  6978. # NOTE: This macro has been submitted for inclusion into #
  6979. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6980. # a released version of Autoconf we should remove this #
  6981. # macro and use it instead. #
  6982. m4_defun([AC_PROG_SED],
  6983. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6984. AC_CACHE_VAL(lt_cv_path_SED,
  6985. [# Loop through the user's path and test for sed and gsed.
  6986. # Then use that list of sed's as ones to test for truncation.
  6987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6988. for as_dir in $PATH
  6989. do
  6990. IFS=$as_save_IFS
  6991. test -z "$as_dir" && as_dir=.
  6992. for lt_ac_prog in sed gsed; do
  6993. for ac_exec_ext in '' $ac_executable_extensions; do
  6994. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6995. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6996. fi
  6997. done
  6998. done
  6999. done
  7000. IFS=$as_save_IFS
  7001. lt_ac_max=0
  7002. lt_ac_count=0
  7003. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7004. # along with /bin/sed that truncates output.
  7005. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7006. test ! -f $lt_ac_sed && continue
  7007. cat /dev/null > conftest.in
  7008. lt_ac_count=0
  7009. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7010. # Check for GNU sed and select it if it is found.
  7011. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7012. lt_cv_path_SED=$lt_ac_sed
  7013. break
  7014. fi
  7015. while true; do
  7016. cat conftest.in conftest.in >conftest.tmp
  7017. mv conftest.tmp conftest.in
  7018. cp conftest.in conftest.nl
  7019. echo >>conftest.nl
  7020. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7021. cmp -s conftest.out conftest.nl || break
  7022. # 10000 chars as input seems more than enough
  7023. test $lt_ac_count -gt 10 && break
  7024. lt_ac_count=`expr $lt_ac_count + 1`
  7025. if test $lt_ac_count -gt $lt_ac_max; then
  7026. lt_ac_max=$lt_ac_count
  7027. lt_cv_path_SED=$lt_ac_sed
  7028. fi
  7029. done
  7030. done
  7031. ])
  7032. SED=$lt_cv_path_SED
  7033. AC_SUBST([SED])
  7034. AC_MSG_RESULT([$SED])
  7035. ])#AC_PROG_SED
  7036. ])#m4_ifndef
  7037. # Old name:
  7038. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7039. dnl aclocal-1.4 backwards compatibility:
  7040. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7041. # _LT_CHECK_SHELL_FEATURES
  7042. # ------------------------
  7043. # Find out whether the shell is Bourne or XSI compatible,
  7044. # or has some other useful features.
  7045. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7046. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7047. # Try some XSI features
  7048. xsi_shell=no
  7049. ( _lt_dummy="a/b/c"
  7050. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7051. = c,a/b,b/c, \
  7052. && eval 'test $(( 1 + 1 )) -eq 2 \
  7053. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7054. && xsi_shell=yes
  7055. AC_MSG_RESULT([$xsi_shell])
  7056. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7057. AC_MSG_CHECKING([whether the shell understands "+="])
  7058. lt_shell_append=no
  7059. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7060. >/dev/null 2>&1 \
  7061. && lt_shell_append=yes
  7062. AC_MSG_RESULT([$lt_shell_append])
  7063. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7064. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7065. lt_unset=unset
  7066. else
  7067. lt_unset=false
  7068. fi
  7069. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7070. # test EBCDIC or ASCII
  7071. case `echo X|tr X '\101'` in
  7072. A) # ASCII based system
  7073. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7074. lt_SP2NL='tr \040 \012'
  7075. lt_NL2SP='tr \015\012 \040\040'
  7076. ;;
  7077. *) # EBCDIC based system
  7078. lt_SP2NL='tr \100 \n'
  7079. lt_NL2SP='tr \r\n \100\100'
  7080. ;;
  7081. esac
  7082. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7083. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7084. ])# _LT_CHECK_SHELL_FEATURES
  7085. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7086. # ------------------------------------------------------
  7087. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7088. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7089. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7090. [dnl {
  7091. sed -e '/^$1 ()$/,/^} # $1 /c\
  7092. $1 ()\
  7093. {\
  7094. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7095. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7096. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7097. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7098. test 0 -eq $? || _lt_function_replace_fail=:
  7099. ])
  7100. # _LT_PROG_REPLACE_SHELLFNS
  7101. # -------------------------
  7102. # Replace existing portable implementations of several shell functions with
  7103. # equivalent extended shell implementations where those features are available..
  7104. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7105. [if test x"$xsi_shell" = xyes; then
  7106. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7107. case ${1} in
  7108. */*) func_dirname_result="${1%/*}${2}" ;;
  7109. * ) func_dirname_result="${3}" ;;
  7110. esac])
  7111. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7112. func_basename_result="${1##*/}"])
  7113. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7114. case ${1} in
  7115. */*) func_dirname_result="${1%/*}${2}" ;;
  7116. * ) func_dirname_result="${3}" ;;
  7117. esac
  7118. func_basename_result="${1##*/}"])
  7119. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7120. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7121. # positional parameters, so assign one to ordinary parameter first.
  7122. func_stripname_result=${3}
  7123. func_stripname_result=${func_stripname_result#"${1}"}
  7124. func_stripname_result=${func_stripname_result%"${2}"}])
  7125. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7126. func_split_long_opt_name=${1%%=*}
  7127. func_split_long_opt_arg=${1#*=}])
  7128. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7129. func_split_short_opt_arg=${1#??}
  7130. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7131. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7132. case ${1} in
  7133. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7134. *) func_lo2o_result=${1} ;;
  7135. esac])
  7136. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7137. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7138. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7139. fi
  7140. if test x"$lt_shell_append" = xyes; then
  7141. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7142. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7143. func_quote_for_eval "${2}"
  7144. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7145. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7146. # Save a `func_append' function call where possible by direct use of '+='
  7147. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7148. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7149. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7150. test 0 -eq $? || _lt_function_replace_fail=:
  7151. else
  7152. # Save a `func_append' function call even when '+=' is not available
  7153. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7154. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7155. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7156. test 0 -eq $? || _lt_function_replace_fail=:
  7157. fi
  7158. if test x"$_lt_function_replace_fail" = x":"; then
  7159. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7160. fi
  7161. ])
  7162. # _LT_PATH_CONVERSION_FUNCTIONS
  7163. # -----------------------------
  7164. # Determine which file name conversion functions should be used by
  7165. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7166. # for certain cross-compile configurations and native mingw.
  7167. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7168. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7169. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7170. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7171. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7172. [case $host in
  7173. *-*-mingw* )
  7174. case $build in
  7175. *-*-mingw* ) # actually msys
  7176. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7177. ;;
  7178. *-*-cygwin* )
  7179. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7180. ;;
  7181. * ) # otherwise, assume *nix
  7182. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7183. ;;
  7184. esac
  7185. ;;
  7186. *-*-cygwin* )
  7187. case $build in
  7188. *-*-mingw* ) # actually msys
  7189. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7190. ;;
  7191. *-*-cygwin* )
  7192. lt_cv_to_host_file_cmd=func_convert_file_noop
  7193. ;;
  7194. * ) # otherwise, assume *nix
  7195. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7196. ;;
  7197. esac
  7198. ;;
  7199. * ) # unhandled hosts (and "normal" native builds)
  7200. lt_cv_to_host_file_cmd=func_convert_file_noop
  7201. ;;
  7202. esac
  7203. ])
  7204. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7205. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7206. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7207. [0], [convert $build file names to $host format])dnl
  7208. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7209. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7210. [#assume ordinary cross tools, or native build.
  7211. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7212. case $host in
  7213. *-*-mingw* )
  7214. case $build in
  7215. *-*-mingw* ) # actually msys
  7216. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7217. ;;
  7218. esac
  7219. ;;
  7220. esac
  7221. ])
  7222. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7223. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7224. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7225. [0], [convert $build files to toolchain format])dnl
  7226. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7227. # Helper functions for option handling. -*- Autoconf -*-
  7228. #
  7229. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7230. # Inc.
  7231. # Written by Gary V. Vaughan, 2004
  7232. #
  7233. # This file is free software; the Free Software Foundation gives
  7234. # unlimited permission to copy and/or distribute it, with or without
  7235. # modifications, as long as this notice is preserved.
  7236. # serial 7 ltoptions.m4
  7237. # This is to help aclocal find these macros, as it can't see m4_define.
  7238. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7239. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7240. # ------------------------------------------
  7241. m4_define([_LT_MANGLE_OPTION],
  7242. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7243. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7244. # ---------------------------------------
  7245. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7246. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7247. # saved as a flag.
  7248. m4_define([_LT_SET_OPTION],
  7249. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7250. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7251. _LT_MANGLE_DEFUN([$1], [$2]),
  7252. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7253. ])
  7254. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7255. # ------------------------------------------------------------
  7256. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7257. m4_define([_LT_IF_OPTION],
  7258. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7259. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7260. # -------------------------------------------------------
  7261. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7262. # are set.
  7263. m4_define([_LT_UNLESS_OPTIONS],
  7264. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7265. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7266. [m4_define([$0_found])])])[]dnl
  7267. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7268. ])[]dnl
  7269. ])
  7270. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7271. # ----------------------------------------
  7272. # OPTION-LIST is a space-separated list of Libtool options associated
  7273. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7274. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7275. # the unknown option and exit.
  7276. m4_defun([_LT_SET_OPTIONS],
  7277. [# Set options
  7278. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7279. [_LT_SET_OPTION([$1], _LT_Option)])
  7280. m4_if([$1],[LT_INIT],[
  7281. dnl
  7282. dnl Simply set some default values (i.e off) if boolean options were not
  7283. dnl specified:
  7284. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7285. ])
  7286. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7287. ])
  7288. dnl
  7289. dnl If no reference was made to various pairs of opposing options, then
  7290. dnl we run the default mode handler for the pair. For example, if neither
  7291. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7292. dnl archives by default:
  7293. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7294. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7295. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7296. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7297. [_LT_ENABLE_FAST_INSTALL])
  7298. ])
  7299. ])# _LT_SET_OPTIONS
  7300. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7301. # -----------------------------------------
  7302. m4_define([_LT_MANGLE_DEFUN],
  7303. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7304. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7305. # -----------------------------------------------
  7306. m4_define([LT_OPTION_DEFINE],
  7307. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7308. ])# LT_OPTION_DEFINE
  7309. # dlopen
  7310. # ------
  7311. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7312. ])
  7313. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7314. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7315. AC_DIAGNOSE([obsolete],
  7316. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7317. put the `dlopen' option into LT_INIT's first parameter.])
  7318. ])
  7319. dnl aclocal-1.4 backwards compatibility:
  7320. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7321. # win32-dll
  7322. # ---------
  7323. # Declare package support for building win32 dll's.
  7324. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7325. [enable_win32_dll=yes
  7326. case $host in
  7327. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7328. AC_CHECK_TOOL(AS, as, false)
  7329. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7330. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7331. ;;
  7332. esac
  7333. test -z "$AS" && AS=as
  7334. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7335. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7336. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7337. test -z "$OBJDUMP" && OBJDUMP=objdump
  7338. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7339. ])# win32-dll
  7340. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7341. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7342. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7343. AC_DIAGNOSE([obsolete],
  7344. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7345. put the `win32-dll' option into LT_INIT's first parameter.])
  7346. ])
  7347. dnl aclocal-1.4 backwards compatibility:
  7348. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7349. # _LT_ENABLE_SHARED([DEFAULT])
  7350. # ----------------------------
  7351. # implement the --enable-shared flag, and supports the `shared' and
  7352. # `disable-shared' LT_INIT options.
  7353. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7354. m4_define([_LT_ENABLE_SHARED],
  7355. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7356. AC_ARG_ENABLE([shared],
  7357. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7358. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7359. [p=${PACKAGE-default}
  7360. case $enableval in
  7361. yes) enable_shared=yes ;;
  7362. no) enable_shared=no ;;
  7363. *)
  7364. enable_shared=no
  7365. # Look at the argument we got. We use all the common list separators.
  7366. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7367. for pkg in $enableval; do
  7368. IFS="$lt_save_ifs"
  7369. if test "X$pkg" = "X$p"; then
  7370. enable_shared=yes
  7371. fi
  7372. done
  7373. IFS="$lt_save_ifs"
  7374. ;;
  7375. esac],
  7376. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7377. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7378. [Whether or not to build shared libraries])
  7379. ])# _LT_ENABLE_SHARED
  7380. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7381. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7382. # Old names:
  7383. AC_DEFUN([AC_ENABLE_SHARED],
  7384. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7385. ])
  7386. AC_DEFUN([AC_DISABLE_SHARED],
  7387. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7388. ])
  7389. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7390. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7391. dnl aclocal-1.4 backwards compatibility:
  7392. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7393. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7394. # _LT_ENABLE_STATIC([DEFAULT])
  7395. # ----------------------------
  7396. # implement the --enable-static flag, and support the `static' and
  7397. # `disable-static' LT_INIT options.
  7398. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7399. m4_define([_LT_ENABLE_STATIC],
  7400. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7401. AC_ARG_ENABLE([static],
  7402. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7403. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7404. [p=${PACKAGE-default}
  7405. case $enableval in
  7406. yes) enable_static=yes ;;
  7407. no) enable_static=no ;;
  7408. *)
  7409. enable_static=no
  7410. # Look at the argument we got. We use all the common list separators.
  7411. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7412. for pkg in $enableval; do
  7413. IFS="$lt_save_ifs"
  7414. if test "X$pkg" = "X$p"; then
  7415. enable_static=yes
  7416. fi
  7417. done
  7418. IFS="$lt_save_ifs"
  7419. ;;
  7420. esac],
  7421. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7422. _LT_DECL([build_old_libs], [enable_static], [0],
  7423. [Whether or not to build static libraries])
  7424. ])# _LT_ENABLE_STATIC
  7425. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7426. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7427. # Old names:
  7428. AC_DEFUN([AC_ENABLE_STATIC],
  7429. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7430. ])
  7431. AC_DEFUN([AC_DISABLE_STATIC],
  7432. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7433. ])
  7434. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7435. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7436. dnl aclocal-1.4 backwards compatibility:
  7437. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7438. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7439. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7440. # ----------------------------------
  7441. # implement the --enable-fast-install flag, and support the `fast-install'
  7442. # and `disable-fast-install' LT_INIT options.
  7443. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7444. m4_define([_LT_ENABLE_FAST_INSTALL],
  7445. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7446. AC_ARG_ENABLE([fast-install],
  7447. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7448. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7449. [p=${PACKAGE-default}
  7450. case $enableval in
  7451. yes) enable_fast_install=yes ;;
  7452. no) enable_fast_install=no ;;
  7453. *)
  7454. enable_fast_install=no
  7455. # Look at the argument we got. We use all the common list separators.
  7456. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7457. for pkg in $enableval; do
  7458. IFS="$lt_save_ifs"
  7459. if test "X$pkg" = "X$p"; then
  7460. enable_fast_install=yes
  7461. fi
  7462. done
  7463. IFS="$lt_save_ifs"
  7464. ;;
  7465. esac],
  7466. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7467. _LT_DECL([fast_install], [enable_fast_install], [0],
  7468. [Whether or not to optimize for fast installation])dnl
  7469. ])# _LT_ENABLE_FAST_INSTALL
  7470. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7471. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7472. # Old names:
  7473. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7474. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7475. AC_DIAGNOSE([obsolete],
  7476. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7477. the `fast-install' option into LT_INIT's first parameter.])
  7478. ])
  7479. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7480. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7481. AC_DIAGNOSE([obsolete],
  7482. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7483. the `disable-fast-install' option into LT_INIT's first parameter.])
  7484. ])
  7485. dnl aclocal-1.4 backwards compatibility:
  7486. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7487. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7488. # _LT_WITH_PIC([MODE])
  7489. # --------------------
  7490. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7491. # LT_INIT options.
  7492. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7493. m4_define([_LT_WITH_PIC],
  7494. [AC_ARG_WITH([pic],
  7495. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7496. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7497. [lt_p=${PACKAGE-default}
  7498. case $withval in
  7499. yes|no) pic_mode=$withval ;;
  7500. *)
  7501. pic_mode=default
  7502. # Look at the argument we got. We use all the common list separators.
  7503. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7504. for lt_pkg in $withval; do
  7505. IFS="$lt_save_ifs"
  7506. if test "X$lt_pkg" = "X$lt_p"; then
  7507. pic_mode=yes
  7508. fi
  7509. done
  7510. IFS="$lt_save_ifs"
  7511. ;;
  7512. esac],
  7513. [pic_mode=default])
  7514. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7515. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7516. ])# _LT_WITH_PIC
  7517. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7518. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7519. # Old name:
  7520. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7521. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7522. AC_DIAGNOSE([obsolete],
  7523. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7524. put the `pic-only' option into LT_INIT's first parameter.])
  7525. ])
  7526. dnl aclocal-1.4 backwards compatibility:
  7527. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7528. m4_define([_LTDL_MODE], [])
  7529. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7530. [m4_define([_LTDL_MODE], [nonrecursive])])
  7531. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7532. [m4_define([_LTDL_MODE], [recursive])])
  7533. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7534. [m4_define([_LTDL_MODE], [subproject])])
  7535. m4_define([_LTDL_TYPE], [])
  7536. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7537. [m4_define([_LTDL_TYPE], [installable])])
  7538. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7539. [m4_define([_LTDL_TYPE], [convenience])])
  7540. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7541. #
  7542. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7543. # Written by Gary V. Vaughan, 2004
  7544. #
  7545. # This file is free software; the Free Software Foundation gives
  7546. # unlimited permission to copy and/or distribute it, with or without
  7547. # modifications, as long as this notice is preserved.
  7548. # serial 6 ltsugar.m4
  7549. # This is to help aclocal find these macros, as it can't see m4_define.
  7550. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7551. # lt_join(SEP, ARG1, [ARG2...])
  7552. # -----------------------------
  7553. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7554. # associated separator.
  7555. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7556. # versions in m4sugar had bugs.
  7557. m4_define([lt_join],
  7558. [m4_if([$#], [1], [],
  7559. [$#], [2], [[$2]],
  7560. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7561. m4_define([_lt_join],
  7562. [m4_if([$#$2], [2], [],
  7563. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7564. # lt_car(LIST)
  7565. # lt_cdr(LIST)
  7566. # ------------
  7567. # Manipulate m4 lists.
  7568. # These macros are necessary as long as will still need to support
  7569. # Autoconf-2.59 which quotes differently.
  7570. m4_define([lt_car], [[$1]])
  7571. m4_define([lt_cdr],
  7572. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7573. [$#], 1, [],
  7574. [m4_dquote(m4_shift($@))])])
  7575. m4_define([lt_unquote], $1)
  7576. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7577. # ------------------------------------------
  7578. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7579. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7580. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7581. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7582. # than defined and empty).
  7583. #
  7584. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7585. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7586. m4_define([lt_append],
  7587. [m4_define([$1],
  7588. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7589. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7590. # ----------------------------------------------------------
  7591. # Produce a SEP delimited list of all paired combinations of elements of
  7592. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7593. # has the form PREFIXmINFIXSUFFIXn.
  7594. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7595. m4_define([lt_combine],
  7596. [m4_if(m4_eval([$# > 3]), [1],
  7597. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7598. [[m4_foreach([_Lt_prefix], [$2],
  7599. [m4_foreach([_Lt_suffix],
  7600. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7601. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7602. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7603. # -----------------------------------------------------------------------
  7604. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7605. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7606. m4_define([lt_if_append_uniq],
  7607. [m4_ifdef([$1],
  7608. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7609. [lt_append([$1], [$2], [$3])$4],
  7610. [$5])],
  7611. [lt_append([$1], [$2], [$3])$4])])
  7612. # lt_dict_add(DICT, KEY, VALUE)
  7613. # -----------------------------
  7614. m4_define([lt_dict_add],
  7615. [m4_define([$1($2)], [$3])])
  7616. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7617. # --------------------------------------------
  7618. m4_define([lt_dict_add_subkey],
  7619. [m4_define([$1($2:$3)], [$4])])
  7620. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7621. # ----------------------------------
  7622. m4_define([lt_dict_fetch],
  7623. [m4_ifval([$3],
  7624. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7625. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7626. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7627. # -----------------------------------------------------------------
  7628. m4_define([lt_if_dict_fetch],
  7629. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7630. [$5],
  7631. [$6])])
  7632. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7633. # --------------------------------------------------------------
  7634. m4_define([lt_dict_filter],
  7635. [m4_if([$5], [], [],
  7636. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7637. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7638. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7639. ])
  7640. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7641. #
  7642. # Copyright (C) 2004 Free Software Foundation, Inc.
  7643. # Written by Scott James Remnant, 2004
  7644. #
  7645. # This file is free software; the Free Software Foundation gives
  7646. # unlimited permission to copy and/or distribute it, with or without
  7647. # modifications, as long as this notice is preserved.
  7648. # @configure_input@
  7649. # serial 3337 ltversion.m4
  7650. # This file is part of GNU Libtool
  7651. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7652. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7653. AC_DEFUN([LTVERSION_VERSION],
  7654. [macro_version='2.4.2'
  7655. macro_revision='1.3337'
  7656. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7657. _LT_DECL(, macro_revision, 0)
  7658. ])
  7659. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7660. #
  7661. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7662. # Written by Scott James Remnant, 2004.
  7663. #
  7664. # This file is free software; the Free Software Foundation gives
  7665. # unlimited permission to copy and/or distribute it, with or without
  7666. # modifications, as long as this notice is preserved.
  7667. # serial 5 lt~obsolete.m4
  7668. # These exist entirely to fool aclocal when bootstrapping libtool.
  7669. #
  7670. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7671. # which have later been changed to m4_define as they aren't part of the
  7672. # exported API, or moved to Autoconf or Automake where they belong.
  7673. #
  7674. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7675. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7676. # using a macro with the same name in our local m4/libtool.m4 it'll
  7677. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7678. # and doesn't know about Autoconf macros at all.)
  7679. #
  7680. # So we provide this file, which has a silly filename so it's always
  7681. # included after everything else. This provides aclocal with the
  7682. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7683. # because those macros already exist, or will be overwritten later.
  7684. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7685. #
  7686. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7687. # Yes, that means every name once taken will need to remain here until
  7688. # we give up compatibility with versions before 1.7, at which point
  7689. # we need to keep only those names which we still refer to.
  7690. # This is to help aclocal find these macros, as it can't see m4_define.
  7691. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7692. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7693. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7694. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7695. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7696. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7697. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7698. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7699. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7700. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7701. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7702. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7703. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7704. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7705. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7706. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7707. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7708. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7709. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7710. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7711. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7712. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7713. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7714. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7715. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7716. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7717. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7718. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7719. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7720. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7721. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7722. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7723. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7724. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7725. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7726. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7727. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7728. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7729. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7730. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7731. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7732. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7733. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7734. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7735. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7736. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7737. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7738. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7739. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7740. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7741. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7742. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7743. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7744. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7745. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7746. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7747. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7748. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7749. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7750. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7751. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7752. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7753. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  7754. #
  7755. # This file is free software; the Free Software Foundation
  7756. # gives unlimited permission to copy and/or distribute it,
  7757. # with or without modifications, as long as this notice is preserved.
  7758. # AM_AUTOMAKE_VERSION(VERSION)
  7759. # ----------------------------
  7760. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7761. # generated from the m4 files accompanying Automake X.Y.
  7762. # (This private macro should not be called outside this file.)
  7763. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7764. [am__api_version='1.13'
  7765. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7766. dnl require some minimum version. Point them to the right macro.
  7767. m4_if([$1], [1.13.4], [],
  7768. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7769. ])
  7770. # _AM_AUTOCONF_VERSION(VERSION)
  7771. # -----------------------------
  7772. # aclocal traces this macro to find the Autoconf version.
  7773. # This is a private macro too. Using m4_define simplifies
  7774. # the logic in aclocal, which can simply ignore this definition.
  7775. m4_define([_AM_AUTOCONF_VERSION], [])
  7776. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7777. # -------------------------------
  7778. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7779. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7780. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7781. [AM_AUTOMAKE_VERSION([1.13.4])dnl
  7782. m4_ifndef([AC_AUTOCONF_VERSION],
  7783. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7784. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7785. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7786. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  7787. #
  7788. # This file is free software; the Free Software Foundation
  7789. # gives unlimited permission to copy and/or distribute it,
  7790. # with or without modifications, as long as this notice is preserved.
  7791. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7792. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  7793. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  7794. #
  7795. # Of course, Automake must honor this variable whenever it calls a
  7796. # tool from the auxiliary directory. The problem is that $srcdir (and
  7797. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7798. # depending on how configure is run. This is pretty annoying, since
  7799. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7800. # source directory, any form will work fine, but in subdirectories a
  7801. # relative path needs to be adjusted first.
  7802. #
  7803. # $ac_aux_dir/missing
  7804. # fails when called from a subdirectory if $ac_aux_dir is relative
  7805. # $top_srcdir/$ac_aux_dir/missing
  7806. # fails if $ac_aux_dir is absolute,
  7807. # fails when called from a subdirectory in a VPATH build with
  7808. # a relative $ac_aux_dir
  7809. #
  7810. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7811. # are both prefixed by $srcdir. In an in-source build this is usually
  7812. # harmless because $srcdir is '.', but things will broke when you
  7813. # start a VPATH build or use an absolute $srcdir.
  7814. #
  7815. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7816. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7817. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7818. # and then we would define $MISSING as
  7819. # MISSING="\${SHELL} $am_aux_dir/missing"
  7820. # This will work as long as MISSING is not called from configure, because
  7821. # unfortunately $(top_srcdir) has no meaning in configure.
  7822. # However there are other variables, like CC, which are often used in
  7823. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7824. #
  7825. # Another solution, used here, is to always expand $ac_aux_dir to an
  7826. # absolute PATH. The drawback is that using absolute paths prevent a
  7827. # configured tree to be moved without reconfiguration.
  7828. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7829. [dnl Rely on autoconf to set up CDPATH properly.
  7830. AC_PREREQ([2.50])dnl
  7831. # expand $ac_aux_dir to an absolute path
  7832. am_aux_dir=`cd $ac_aux_dir && pwd`
  7833. ])
  7834. # AM_CONDITIONAL -*- Autoconf -*-
  7835. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  7836. #
  7837. # This file is free software; the Free Software Foundation
  7838. # gives unlimited permission to copy and/or distribute it,
  7839. # with or without modifications, as long as this notice is preserved.
  7840. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7841. # -------------------------------------
  7842. # Define a conditional.
  7843. AC_DEFUN([AM_CONDITIONAL],
  7844. [AC_PREREQ([2.52])dnl
  7845. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7846. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7847. AC_SUBST([$1_TRUE])dnl
  7848. AC_SUBST([$1_FALSE])dnl
  7849. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7850. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7851. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7852. if $2; then
  7853. $1_TRUE=
  7854. $1_FALSE='#'
  7855. else
  7856. $1_TRUE='#'
  7857. $1_FALSE=
  7858. fi
  7859. AC_CONFIG_COMMANDS_PRE(
  7860. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7861. AC_MSG_ERROR([[conditional "$1" was never defined.
  7862. Usually this means the macro was only invoked conditionally.]])
  7863. fi])])
  7864. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  7865. #
  7866. # This file is free software; the Free Software Foundation
  7867. # gives unlimited permission to copy and/or distribute it,
  7868. # with or without modifications, as long as this notice is preserved.
  7869. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  7870. # written in clear, in which case automake, when reading aclocal.m4,
  7871. # will think it sees a *use*, and therefore will trigger all it's
  7872. # C support machinery. Also note that it means that autoscan, seeing
  7873. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7874. # _AM_DEPENDENCIES(NAME)
  7875. # ----------------------
  7876. # See how the compiler implements dependency checking.
  7877. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  7878. # We try a few techniques and use that to set a single cache variable.
  7879. #
  7880. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7881. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7882. # dependency, and given that the user is not expected to run this macro,
  7883. # just rely on AC_PROG_CC.
  7884. AC_DEFUN([_AM_DEPENDENCIES],
  7885. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7886. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7887. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7888. AC_REQUIRE([AM_DEP_TRACK])dnl
  7889. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  7890. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  7891. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7892. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  7893. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  7894. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7895. [depcc="$$1" am_compiler_list=])
  7896. AC_CACHE_CHECK([dependency style of $depcc],
  7897. [am_cv_$1_dependencies_compiler_type],
  7898. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7899. # We make a subdir and do the tests there. Otherwise we can end up
  7900. # making bogus files that we don't know about and never remove. For
  7901. # instance it was reported that on HP-UX the gcc test will end up
  7902. # making a dummy file named 'D' -- because '-MD' means "put the output
  7903. # in D".
  7904. rm -rf conftest.dir
  7905. mkdir conftest.dir
  7906. # Copy depcomp to subdir because otherwise we won't find it if we're
  7907. # using a relative directory.
  7908. cp "$am_depcomp" conftest.dir
  7909. cd conftest.dir
  7910. # We will build objects and dependencies in a subdirectory because
  7911. # it helps to detect inapplicable dependency modes. For instance
  7912. # both Tru64's cc and ICC support -MD to output dependencies as a
  7913. # side effect of compilation, but ICC will put the dependencies in
  7914. # the current directory while Tru64 will put them in the object
  7915. # directory.
  7916. mkdir sub
  7917. am_cv_$1_dependencies_compiler_type=none
  7918. if test "$am_compiler_list" = ""; then
  7919. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7920. fi
  7921. am__universal=false
  7922. m4_case([$1], [CC],
  7923. [case " $depcc " in #(
  7924. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7925. esac],
  7926. [CXX],
  7927. [case " $depcc " in #(
  7928. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7929. esac])
  7930. for depmode in $am_compiler_list; do
  7931. # Setup a source with many dependencies, because some compilers
  7932. # like to wrap large dependency lists on column 80 (with \), and
  7933. # we should not choose a depcomp mode which is confused by this.
  7934. #
  7935. # We need to recreate these files for each test, as the compiler may
  7936. # overwrite some of them when testing with obscure command lines.
  7937. # This happens at least with the AIX C compiler.
  7938. : > sub/conftest.c
  7939. for i in 1 2 3 4 5 6; do
  7940. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7941. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7942. # Solaris 10 /bin/sh.
  7943. echo '/* dummy */' > sub/conftst$i.h
  7944. done
  7945. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7946. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7947. # mode. It turns out that the SunPro C++ compiler does not properly
  7948. # handle '-M -o', and we need to detect this. Also, some Intel
  7949. # versions had trouble with output in subdirs.
  7950. am__obj=sub/conftest.${OBJEXT-o}
  7951. am__minus_obj="-o $am__obj"
  7952. case $depmode in
  7953. gcc)
  7954. # This depmode causes a compiler race in universal mode.
  7955. test "$am__universal" = false || continue
  7956. ;;
  7957. nosideeffect)
  7958. # After this tag, mechanisms are not by side-effect, so they'll
  7959. # only be used when explicitly requested.
  7960. if test "x$enable_dependency_tracking" = xyes; then
  7961. continue
  7962. else
  7963. break
  7964. fi
  7965. ;;
  7966. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7967. # This compiler won't grok '-c -o', but also, the minuso test has
  7968. # not run yet. These depmodes are late enough in the game, and
  7969. # so weak that their functioning should not be impacted.
  7970. am__obj=conftest.${OBJEXT-o}
  7971. am__minus_obj=
  7972. ;;
  7973. none) break ;;
  7974. esac
  7975. if depmode=$depmode \
  7976. source=sub/conftest.c object=$am__obj \
  7977. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7978. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7979. >/dev/null 2>conftest.err &&
  7980. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7981. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7982. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7983. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7984. # icc doesn't choke on unknown options, it will just issue warnings
  7985. # or remarks (even with -Werror). So we grep stderr for any message
  7986. # that says an option was ignored or not supported.
  7987. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7988. # icc: Command line warning: ignoring option '-M'; no argument required
  7989. # The diagnosis changed in icc 8.0:
  7990. # icc: Command line remark: option '-MP' not supported
  7991. if (grep 'ignoring option' conftest.err ||
  7992. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7993. am_cv_$1_dependencies_compiler_type=$depmode
  7994. break
  7995. fi
  7996. fi
  7997. done
  7998. cd ..
  7999. rm -rf conftest.dir
  8000. else
  8001. am_cv_$1_dependencies_compiler_type=none
  8002. fi
  8003. ])
  8004. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8005. AM_CONDITIONAL([am__fastdep$1], [
  8006. test "x$enable_dependency_tracking" != xno \
  8007. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8008. ])
  8009. # AM_SET_DEPDIR
  8010. # -------------
  8011. # Choose a directory name for dependency files.
  8012. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8013. AC_DEFUN([AM_SET_DEPDIR],
  8014. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8015. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8016. ])
  8017. # AM_DEP_TRACK
  8018. # ------------
  8019. AC_DEFUN([AM_DEP_TRACK],
  8020. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8021. AS_HELP_STRING(
  8022. [--enable-dependency-tracking],
  8023. [do not reject slow dependency extractors])
  8024. AS_HELP_STRING(
  8025. [--disable-dependency-tracking],
  8026. [speeds up one-time build])])
  8027. if test "x$enable_dependency_tracking" != xno; then
  8028. am_depcomp="$ac_aux_dir/depcomp"
  8029. AMDEPBACKSLASH='\'
  8030. am__nodep='_no'
  8031. fi
  8032. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8033. AC_SUBST([AMDEPBACKSLASH])dnl
  8034. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8035. AC_SUBST([am__nodep])dnl
  8036. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8037. ])
  8038. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8039. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  8040. #
  8041. # This file is free software; the Free Software Foundation
  8042. # gives unlimited permission to copy and/or distribute it,
  8043. # with or without modifications, as long as this notice is preserved.
  8044. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8045. # ------------------------------
  8046. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8047. [{
  8048. # Older Autoconf quotes --file arguments for eval, but not when files
  8049. # are listed without --file. Let's play safe and only enable the eval
  8050. # if we detect the quoting.
  8051. case $CONFIG_FILES in
  8052. *\'*) eval set x "$CONFIG_FILES" ;;
  8053. *) set x $CONFIG_FILES ;;
  8054. esac
  8055. shift
  8056. for mf
  8057. do
  8058. # Strip MF so we end up with the name of the file.
  8059. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8060. # Check whether this is an Automake generated Makefile or not.
  8061. # We used to match only the files named 'Makefile.in', but
  8062. # some people rename them; so instead we look at the file content.
  8063. # Grep'ing the first line is not enough: some people post-process
  8064. # each Makefile.in and add a new line on top of each file to say so.
  8065. # Grep'ing the whole file is not good either: AIX grep has a line
  8066. # limit of 2048, but all sed's we know have understand at least 4000.
  8067. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8068. dirpart=`AS_DIRNAME("$mf")`
  8069. else
  8070. continue
  8071. fi
  8072. # Extract the definition of DEPDIR, am__include, and am__quote
  8073. # from the Makefile without running 'make'.
  8074. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8075. test -z "$DEPDIR" && continue
  8076. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8077. test -z "$am__include" && continue
  8078. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8079. # Find all dependency output files, they are included files with
  8080. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8081. # simplest approach to changing $(DEPDIR) to its actual value in the
  8082. # expansion.
  8083. for file in `sed -n "
  8084. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8085. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  8086. # Make sure the directory exists.
  8087. test -f "$dirpart/$file" && continue
  8088. fdir=`AS_DIRNAME(["$file"])`
  8089. AS_MKDIR_P([$dirpart/$fdir])
  8090. # echo "creating $dirpart/$file"
  8091. echo '# dummy' > "$dirpart/$file"
  8092. done
  8093. done
  8094. }
  8095. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8096. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8097. # -----------------------------
  8098. # This macro should only be invoked once -- use via AC_REQUIRE.
  8099. #
  8100. # This code is only required when automatic dependency tracking
  8101. # is enabled. FIXME. This creates each '.P' file that we will
  8102. # need in order to bootstrap the dependency handling code.
  8103. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8104. [AC_CONFIG_COMMANDS([depfiles],
  8105. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8106. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8107. ])
  8108. # Do all the work for Automake. -*- Autoconf -*-
  8109. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8110. #
  8111. # This file is free software; the Free Software Foundation
  8112. # gives unlimited permission to copy and/or distribute it,
  8113. # with or without modifications, as long as this notice is preserved.
  8114. # This macro actually does too much. Some checks are only needed if
  8115. # your package does certain things. But this isn't really a big deal.
  8116. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8117. # AM_INIT_AUTOMAKE([OPTIONS])
  8118. # -----------------------------------------------
  8119. # The call with PACKAGE and VERSION arguments is the old style
  8120. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8121. # and VERSION should now be passed to AC_INIT and removed from
  8122. # the call to AM_INIT_AUTOMAKE.
  8123. # We support both call styles for the transition. After
  8124. # the next Automake release, Autoconf can make the AC_INIT
  8125. # arguments mandatory, and then we can depend on a new Autoconf
  8126. # release and drop the old call support.
  8127. AC_DEFUN([AM_INIT_AUTOMAKE],
  8128. [AC_PREREQ([2.65])dnl
  8129. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8130. dnl the ones we care about.
  8131. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8132. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8133. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8134. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8135. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8136. # is not polluted with repeated "-I."
  8137. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8138. # test to see if srcdir already configured
  8139. if test -f $srcdir/config.status; then
  8140. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8141. fi
  8142. fi
  8143. # test whether we have cygpath
  8144. if test -z "$CYGPATH_W"; then
  8145. if (cygpath --version) >/dev/null 2>/dev/null; then
  8146. CYGPATH_W='cygpath -w'
  8147. else
  8148. CYGPATH_W=echo
  8149. fi
  8150. fi
  8151. AC_SUBST([CYGPATH_W])
  8152. # Define the identity of the package.
  8153. dnl Distinguish between old-style and new-style calls.
  8154. m4_ifval([$2],
  8155. [AC_DIAGNOSE([obsolete],
  8156. [$0: two- and three-arguments forms are deprecated.])
  8157. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8158. AC_SUBST([PACKAGE], [$1])dnl
  8159. AC_SUBST([VERSION], [$2])],
  8160. [_AM_SET_OPTIONS([$1])dnl
  8161. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8162. m4_if(
  8163. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8164. [ok:ok],,
  8165. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8166. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8167. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8168. _AM_IF_OPTION([no-define],,
  8169. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8170. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8171. # Some tools Automake needs.
  8172. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8173. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8174. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8175. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8176. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8177. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8178. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8179. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8180. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8181. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8182. # For better backward compatibility. To be removed once Automake 1.9.x
  8183. # dies out for good. For more background, see:
  8184. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8185. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8186. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8187. # We need awk for the "check" target. The system "awk" is bad on
  8188. # some platforms.
  8189. AC_REQUIRE([AC_PROG_AWK])dnl
  8190. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8191. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8192. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8193. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8194. [_AM_PROG_TAR([v7])])])
  8195. _AM_IF_OPTION([no-dependencies],,
  8196. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8197. [_AM_DEPENDENCIES([CC])],
  8198. [m4_define([AC_PROG_CC],
  8199. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8200. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8201. [_AM_DEPENDENCIES([CXX])],
  8202. [m4_define([AC_PROG_CXX],
  8203. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8204. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8205. [_AM_DEPENDENCIES([OBJC])],
  8206. [m4_define([AC_PROG_OBJC],
  8207. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8208. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8209. [_AM_DEPENDENCIES([OBJCXX])],
  8210. [m4_define([AC_PROG_OBJCXX],
  8211. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8212. ])
  8213. AC_REQUIRE([AM_SILENT_RULES])dnl
  8214. dnl The testsuite driver may need to know about EXEEXT, so add the
  8215. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8216. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8217. AC_CONFIG_COMMANDS_PRE(dnl
  8218. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8219. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8220. ])
  8221. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8222. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8223. dnl mangled by Autoconf and run in a shell conditional statement.
  8224. m4_define([_AC_COMPILER_EXEEXT],
  8225. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8226. # When config.status generates a header, we must update the stamp-h file.
  8227. # This file resides in the same directory as the config header
  8228. # that is generated. The stamp files are numbered to have different names.
  8229. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8230. # loop where config.status creates the headers, so we can generate
  8231. # our stamp files there.
  8232. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8233. [# Compute $1's index in $config_headers.
  8234. _am_arg=$1
  8235. _am_stamp_count=1
  8236. for _am_header in $config_headers :; do
  8237. case $_am_header in
  8238. $_am_arg | $_am_arg:* )
  8239. break ;;
  8240. * )
  8241. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8242. esac
  8243. done
  8244. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8245. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8246. #
  8247. # This file is free software; the Free Software Foundation
  8248. # gives unlimited permission to copy and/or distribute it,
  8249. # with or without modifications, as long as this notice is preserved.
  8250. # AM_PROG_INSTALL_SH
  8251. # ------------------
  8252. # Define $install_sh.
  8253. AC_DEFUN([AM_PROG_INSTALL_SH],
  8254. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8255. if test x"${install_sh}" != xset; then
  8256. case $am_aux_dir in
  8257. *\ * | *\ *)
  8258. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8259. *)
  8260. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8261. esac
  8262. fi
  8263. AC_SUBST([install_sh])])
  8264. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  8265. #
  8266. # This file is free software; the Free Software Foundation
  8267. # gives unlimited permission to copy and/or distribute it,
  8268. # with or without modifications, as long as this notice is preserved.
  8269. # Check whether the underlying file-system supports filenames
  8270. # with a leading dot. For instance MS-DOS doesn't.
  8271. AC_DEFUN([AM_SET_LEADING_DOT],
  8272. [rm -rf .tst 2>/dev/null
  8273. mkdir .tst 2>/dev/null
  8274. if test -d .tst; then
  8275. am__leading_dot=.
  8276. else
  8277. am__leading_dot=_
  8278. fi
  8279. rmdir .tst 2>/dev/null
  8280. AC_SUBST([am__leading_dot])])
  8281. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8282. # From Jim Meyering
  8283. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8284. #
  8285. # This file is free software; the Free Software Foundation
  8286. # gives unlimited permission to copy and/or distribute it,
  8287. # with or without modifications, as long as this notice is preserved.
  8288. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8289. # ----------------------------------
  8290. # Control maintainer-specific portions of Makefiles.
  8291. # Default is to disable them, unless 'enable' is passed literally.
  8292. # For symmetry, 'disable' may be passed as well. Anyway, the user
  8293. # can override the default with the --enable/--disable switch.
  8294. AC_DEFUN([AM_MAINTAINER_MODE],
  8295. [m4_case(m4_default([$1], [disable]),
  8296. [enable], [m4_define([am_maintainer_other], [disable])],
  8297. [disable], [m4_define([am_maintainer_other], [enable])],
  8298. [m4_define([am_maintainer_other], [enable])
  8299. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8300. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8301. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8302. AC_ARG_ENABLE([maintainer-mode],
  8303. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  8304. am_maintainer_other[ make rules and dependencies not useful
  8305. (and sometimes confusing) to the casual installer])],
  8306. [USE_MAINTAINER_MODE=$enableval],
  8307. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8308. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8309. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8310. MAINT=$MAINTAINER_MODE_TRUE
  8311. AC_SUBST([MAINT])dnl
  8312. ]
  8313. )
  8314. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8315. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8316. #
  8317. # This file is free software; the Free Software Foundation
  8318. # gives unlimited permission to copy and/or distribute it,
  8319. # with or without modifications, as long as this notice is preserved.
  8320. # AM_MAKE_INCLUDE()
  8321. # -----------------
  8322. # Check to see how make treats includes.
  8323. AC_DEFUN([AM_MAKE_INCLUDE],
  8324. [am_make=${MAKE-make}
  8325. cat > confinc << 'END'
  8326. am__doit:
  8327. @echo this is the am__doit target
  8328. .PHONY: am__doit
  8329. END
  8330. # If we don't find an include directive, just comment out the code.
  8331. AC_MSG_CHECKING([for style of include used by $am_make])
  8332. am__include="#"
  8333. am__quote=
  8334. _am_result=none
  8335. # First try GNU make style include.
  8336. echo "include confinc" > confmf
  8337. # Ignore all kinds of additional output from 'make'.
  8338. case `$am_make -s -f confmf 2> /dev/null` in #(
  8339. *the\ am__doit\ target*)
  8340. am__include=include
  8341. am__quote=
  8342. _am_result=GNU
  8343. ;;
  8344. esac
  8345. # Now try BSD make style include.
  8346. if test "$am__include" = "#"; then
  8347. echo '.include "confinc"' > confmf
  8348. case `$am_make -s -f confmf 2> /dev/null` in #(
  8349. *the\ am__doit\ target*)
  8350. am__include=.include
  8351. am__quote="\""
  8352. _am_result=BSD
  8353. ;;
  8354. esac
  8355. fi
  8356. AC_SUBST([am__include])
  8357. AC_SUBST([am__quote])
  8358. AC_MSG_RESULT([$_am_result])
  8359. rm -f confinc confmf
  8360. ])
  8361. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  8362. #
  8363. # This file is free software; the Free Software Foundation
  8364. # gives unlimited permission to copy and/or distribute it,
  8365. # with or without modifications, as long as this notice is preserved.
  8366. # AM_PROG_CC_C_O
  8367. # --------------
  8368. # Like AC_PROG_CC_C_O, but changed for automake.
  8369. AC_DEFUN([AM_PROG_CC_C_O],
  8370. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8371. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8372. AC_REQUIRE_AUX_FILE([compile])dnl
  8373. # FIXME: we rely on the cache variable name because
  8374. # there is no other way.
  8375. set dummy $CC
  8376. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8377. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8378. if test "$am_t" != yes; then
  8379. # Losing compiler, so override with the script.
  8380. # FIXME: It is wrong to rewrite CC.
  8381. # But if we don't then we get into trouble of one sort or another.
  8382. # A longer-term fix would be to have automake use am__CC in this case,
  8383. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8384. CC="$am_aux_dir/compile $CC"
  8385. fi
  8386. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8387. dnl setting of CC.
  8388. m4_define([AC_PROG_CC],
  8389. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8390. ])
  8391. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8392. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  8393. #
  8394. # This file is free software; the Free Software Foundation
  8395. # gives unlimited permission to copy and/or distribute it,
  8396. # with or without modifications, as long as this notice is preserved.
  8397. # AM_MISSING_PROG(NAME, PROGRAM)
  8398. # ------------------------------
  8399. AC_DEFUN([AM_MISSING_PROG],
  8400. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8401. $1=${$1-"${am_missing_run}$2"}
  8402. AC_SUBST($1)])
  8403. # AM_MISSING_HAS_RUN
  8404. # ------------------
  8405. # Define MISSING if not defined so far and test if it is modern enough.
  8406. # If it is, set am_missing_run to use it, otherwise, to nothing.
  8407. AC_DEFUN([AM_MISSING_HAS_RUN],
  8408. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8409. AC_REQUIRE_AUX_FILE([missing])dnl
  8410. if test x"${MISSING+set}" != xset; then
  8411. case $am_aux_dir in
  8412. *\ * | *\ *)
  8413. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8414. *)
  8415. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8416. esac
  8417. fi
  8418. # Use eval to expand $SHELL
  8419. if eval "$MISSING --is-lightweight"; then
  8420. am_missing_run="$MISSING "
  8421. else
  8422. am_missing_run=
  8423. AC_MSG_WARN(['missing' script is too old or missing])
  8424. fi
  8425. ])
  8426. # Helper functions for option handling. -*- Autoconf -*-
  8427. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8428. #
  8429. # This file is free software; the Free Software Foundation
  8430. # gives unlimited permission to copy and/or distribute it,
  8431. # with or without modifications, as long as this notice is preserved.
  8432. # _AM_MANGLE_OPTION(NAME)
  8433. # -----------------------
  8434. AC_DEFUN([_AM_MANGLE_OPTION],
  8435. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8436. # _AM_SET_OPTION(NAME)
  8437. # --------------------
  8438. # Set option NAME. Presently that only means defining a flag for this option.
  8439. AC_DEFUN([_AM_SET_OPTION],
  8440. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  8441. # _AM_SET_OPTIONS(OPTIONS)
  8442. # ------------------------
  8443. # OPTIONS is a space-separated list of Automake options.
  8444. AC_DEFUN([_AM_SET_OPTIONS],
  8445. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8446. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8447. # -------------------------------------------
  8448. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8449. AC_DEFUN([_AM_IF_OPTION],
  8450. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8451. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8452. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8453. #
  8454. # This file is free software; the Free Software Foundation
  8455. # gives unlimited permission to copy and/or distribute it,
  8456. # with or without modifications, as long as this notice is preserved.
  8457. # AM_SANITY_CHECK
  8458. # ---------------
  8459. AC_DEFUN([AM_SANITY_CHECK],
  8460. [AC_MSG_CHECKING([whether build environment is sane])
  8461. # Reject unsafe characters in $srcdir or the absolute working directory
  8462. # name. Accept space and tab only in the latter.
  8463. am_lf='
  8464. '
  8465. case `pwd` in
  8466. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8467. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8468. esac
  8469. case $srcdir in
  8470. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8471. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  8472. esac
  8473. # Do 'set' in a subshell so we don't clobber the current shell's
  8474. # arguments. Must try -L first in case configure is actually a
  8475. # symlink; some systems play weird games with the mod time of symlinks
  8476. # (eg FreeBSD returns the mod time of the symlink's containing
  8477. # directory).
  8478. if (
  8479. am_has_slept=no
  8480. for am_try in 1 2; do
  8481. echo "timestamp, slept: $am_has_slept" > conftest.file
  8482. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8483. if test "$[*]" = "X"; then
  8484. # -L didn't work.
  8485. set X `ls -t "$srcdir/configure" conftest.file`
  8486. fi
  8487. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8488. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8489. # If neither matched, then we have a broken ls. This can happen
  8490. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8491. # broken ls alias from the environment. This has actually
  8492. # happened. Such a system could not be considered "sane".
  8493. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8494. alias in your environment])
  8495. fi
  8496. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  8497. break
  8498. fi
  8499. # Just in case.
  8500. sleep 1
  8501. am_has_slept=yes
  8502. done
  8503. test "$[2]" = conftest.file
  8504. )
  8505. then
  8506. # Ok.
  8507. :
  8508. else
  8509. AC_MSG_ERROR([newly created file is older than distributed files!
  8510. Check your system clock])
  8511. fi
  8512. AC_MSG_RESULT([yes])
  8513. # If we didn't sleep, we still need to ensure time stamps of config.status and
  8514. # generated files are strictly newer.
  8515. am_sleep_pid=
  8516. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  8517. ( sleep 1 ) &
  8518. am_sleep_pid=$!
  8519. fi
  8520. AC_CONFIG_COMMANDS_PRE(
  8521. [AC_MSG_CHECKING([that generated files are newer than configure])
  8522. if test -n "$am_sleep_pid"; then
  8523. # Hide warnings about reused PIDs.
  8524. wait $am_sleep_pid 2>/dev/null
  8525. fi
  8526. AC_MSG_RESULT([done])])
  8527. rm -f conftest.file
  8528. ])
  8529. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  8530. #
  8531. # This file is free software; the Free Software Foundation
  8532. # gives unlimited permission to copy and/or distribute it,
  8533. # with or without modifications, as long as this notice is preserved.
  8534. # AM_SILENT_RULES([DEFAULT])
  8535. # --------------------------
  8536. # Enable less verbose build rules; with the default set to DEFAULT
  8537. # ("yes" being less verbose, "no" or empty being verbose).
  8538. AC_DEFUN([AM_SILENT_RULES],
  8539. [AC_ARG_ENABLE([silent-rules], [dnl
  8540. AS_HELP_STRING(
  8541. [--enable-silent-rules],
  8542. [less verbose build output (undo: "make V=1")])
  8543. AS_HELP_STRING(
  8544. [--disable-silent-rules],
  8545. [verbose build output (undo: "make V=0")])dnl
  8546. ])
  8547. case $enable_silent_rules in @%:@ (((
  8548. yes) AM_DEFAULT_VERBOSITY=0;;
  8549. no) AM_DEFAULT_VERBOSITY=1;;
  8550. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  8551. esac
  8552. dnl
  8553. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  8554. dnl do not support nested variable expansions.
  8555. dnl See automake bug#9928 and bug#10237.
  8556. am_make=${MAKE-make}
  8557. AC_CACHE_CHECK([whether $am_make supports nested variables],
  8558. [am_cv_make_support_nested_variables],
  8559. [if AS_ECHO([['TRUE=$(BAR$(V))
  8560. BAR0=false
  8561. BAR1=true
  8562. V=1
  8563. am__doit:
  8564. @$(TRUE)
  8565. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  8566. am_cv_make_support_nested_variables=yes
  8567. else
  8568. am_cv_make_support_nested_variables=no
  8569. fi])
  8570. if test $am_cv_make_support_nested_variables = yes; then
  8571. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  8572. AM_V='$(V)'
  8573. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8574. else
  8575. AM_V=$AM_DEFAULT_VERBOSITY
  8576. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8577. fi
  8578. AC_SUBST([AM_V])dnl
  8579. AM_SUBST_NOTMAKE([AM_V])dnl
  8580. AC_SUBST([AM_DEFAULT_V])dnl
  8581. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  8582. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  8583. AM_BACKSLASH='\'
  8584. AC_SUBST([AM_BACKSLASH])dnl
  8585. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  8586. ])
  8587. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8588. #
  8589. # This file is free software; the Free Software Foundation
  8590. # gives unlimited permission to copy and/or distribute it,
  8591. # with or without modifications, as long as this notice is preserved.
  8592. # AM_PROG_INSTALL_STRIP
  8593. # ---------------------
  8594. # One issue with vendor 'install' (even GNU) is that you can't
  8595. # specify the program used to strip binaries. This is especially
  8596. # annoying in cross-compiling environments, where the build's strip
  8597. # is unlikely to handle the host's binaries.
  8598. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8599. # always use install-sh in "make install-strip", and initialize
  8600. # STRIPPROG with the value of the STRIP variable (set by the user).
  8601. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8602. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8603. # Installed binaries are usually stripped using 'strip' when the user
  8604. # run "make install-strip". However 'strip' might not be the right
  8605. # tool to use in cross-compilation environments, therefore Automake
  8606. # will honor the 'STRIP' environment variable to overrule this program.
  8607. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  8608. if test "$cross_compiling" != no; then
  8609. AC_CHECK_TOOL([STRIP], [strip], :)
  8610. fi
  8611. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8612. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8613. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  8614. #
  8615. # This file is free software; the Free Software Foundation
  8616. # gives unlimited permission to copy and/or distribute it,
  8617. # with or without modifications, as long as this notice is preserved.
  8618. # _AM_SUBST_NOTMAKE(VARIABLE)
  8619. # ---------------------------
  8620. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8621. # This macro is traced by Automake.
  8622. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8623. # AM_SUBST_NOTMAKE(VARIABLE)
  8624. # --------------------------
  8625. # Public sister of _AM_SUBST_NOTMAKE.
  8626. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8627. # Check how to create a tarball. -*- Autoconf -*-
  8628. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  8629. #
  8630. # This file is free software; the Free Software Foundation
  8631. # gives unlimited permission to copy and/or distribute it,
  8632. # with or without modifications, as long as this notice is preserved.
  8633. # _AM_PROG_TAR(FORMAT)
  8634. # --------------------
  8635. # Check how to create a tarball in format FORMAT.
  8636. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  8637. #
  8638. # Substitute a variable $(am__tar) that is a command
  8639. # writing to stdout a FORMAT-tarball containing the directory
  8640. # $tardir.
  8641. # tardir=directory && $(am__tar) > result.tar
  8642. #
  8643. # Substitute a variable $(am__untar) that extract such
  8644. # a tarball read from stdin.
  8645. # $(am__untar) < result.tar
  8646. #
  8647. AC_DEFUN([_AM_PROG_TAR],
  8648. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8649. # in the wild :-( We should find a proper way to deprecate it ...
  8650. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8651. # We'll loop over all known methods to create a tar archive until one works.
  8652. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8653. m4_if([$1], [v7],
  8654. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8655. [m4_case([$1],
  8656. [ustar],
  8657. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  8658. # There is notably a 21 bits limit for the UID and the GID. In fact,
  8659. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  8660. # and bug#13588).
  8661. am_max_uid=2097151 # 2^21 - 1
  8662. am_max_gid=$am_max_uid
  8663. # The $UID and $GID variables are not portable, so we need to resort
  8664. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  8665. # below are definitely unexpected, so allow the users to see them
  8666. # (that is, avoid stderr redirection).
  8667. am_uid=`id -u || echo unknown`
  8668. am_gid=`id -g || echo unknown`
  8669. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  8670. if test $am_uid -le $am_max_uid; then
  8671. AC_MSG_RESULT([yes])
  8672. else
  8673. AC_MSG_RESULT([no])
  8674. _am_tools=none
  8675. fi
  8676. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  8677. if test $am_gid -le $am_max_gid; then
  8678. AC_MSG_RESULT([yes])
  8679. else
  8680. AC_MSG_RESULT([no])
  8681. _am_tools=none
  8682. fi],
  8683. [pax],
  8684. [],
  8685. [m4_fatal([Unknown tar format])])
  8686. AC_MSG_CHECKING([how to create a $1 tar archive])
  8687. # Go ahead even if we have the value already cached. We do so because we
  8688. # need to set the values for the 'am__tar' and 'am__untar' variables.
  8689. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8690. for _am_tool in $_am_tools; do
  8691. case $_am_tool in
  8692. gnutar)
  8693. for _am_tar in tar gnutar gtar; do
  8694. AM_RUN_LOG([$_am_tar --version]) && break
  8695. done
  8696. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8697. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8698. am__untar="$_am_tar -xf -"
  8699. ;;
  8700. plaintar)
  8701. # Must skip GNU tar: if it does not support --format= it doesn't create
  8702. # ustar tarball either.
  8703. (tar --version) >/dev/null 2>&1 && continue
  8704. am__tar='tar chf - "$$tardir"'
  8705. am__tar_='tar chf - "$tardir"'
  8706. am__untar='tar xf -'
  8707. ;;
  8708. pax)
  8709. am__tar='pax -L -x $1 -w "$$tardir"'
  8710. am__tar_='pax -L -x $1 -w "$tardir"'
  8711. am__untar='pax -r'
  8712. ;;
  8713. cpio)
  8714. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8715. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8716. am__untar='cpio -i -H $1 -d'
  8717. ;;
  8718. none)
  8719. am__tar=false
  8720. am__tar_=false
  8721. am__untar=false
  8722. ;;
  8723. esac
  8724. # If the value was cached, stop now. We just wanted to have am__tar
  8725. # and am__untar set.
  8726. test -n "${am_cv_prog_tar_$1}" && break
  8727. # tar/untar a dummy directory, and stop if the command works.
  8728. rm -rf conftest.dir
  8729. mkdir conftest.dir
  8730. echo GrepMe > conftest.dir/file
  8731. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8732. rm -rf conftest.dir
  8733. if test -s conftest.tar; then
  8734. AM_RUN_LOG([$am__untar <conftest.tar])
  8735. AM_RUN_LOG([cat conftest.dir/file])
  8736. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8737. fi
  8738. done
  8739. rm -rf conftest.dir
  8740. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8741. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8742. AC_SUBST([am__tar])
  8743. AC_SUBST([am__untar])
  8744. ]) # _AM_PROG_TAR