You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

aclocal.m4 340KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668
  1. # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12. #
  13. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15. # Foundation, Inc.
  16. # Written by Gordon Matzigkeit, 1996
  17. #
  18. # This file is free software; the Free Software Foundation gives
  19. # unlimited permission to copy and/or distribute it, with or without
  20. # modifications, as long as this notice is preserved.
  21. m4_define([_LT_COPYING], [dnl
  22. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  24. # Foundation, Inc.
  25. # Written by Gordon Matzigkeit, 1996
  26. #
  27. # This file is part of GNU Libtool.
  28. #
  29. # GNU Libtool is free software; you can redistribute it and/or
  30. # modify it under the terms of the GNU General Public License as
  31. # published by the Free Software Foundation; either version 2 of
  32. # the License, or (at your option) any later version.
  33. #
  34. # As a special exception to the GNU General Public License,
  35. # if you distribute this file as part of a program or library that
  36. # is built using GNU Libtool, you may include this file under the
  37. # same distribution terms that you use for the rest of that program.
  38. #
  39. # GNU Libtool is distributed in the hope that it will be useful,
  40. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42. # GNU General Public License for more details.
  43. #
  44. # You should have received a copy of the GNU General Public License
  45. # along with GNU Libtool; see the file COPYING. If not, a copy
  46. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  47. # obtained by writing to the Free Software Foundation, Inc.,
  48. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  49. ])
  50. # serial 57 LT_INIT
  51. # LT_PREREQ(VERSION)
  52. # ------------------
  53. # Complain and exit if this libtool version is less that VERSION.
  54. m4_defun([LT_PREREQ],
  55. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  56. [m4_default([$3],
  57. [m4_fatal([Libtool version $1 or higher is required],
  58. 63)])],
  59. [$2])])
  60. # _LT_CHECK_BUILDDIR
  61. # ------------------
  62. # Complain if the absolute build directory name contains unusual characters
  63. m4_defun([_LT_CHECK_BUILDDIR],
  64. [case `pwd` in
  65. *\ * | *\ *)
  66. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  67. esac
  68. ])
  69. # LT_INIT([OPTIONS])
  70. # ------------------
  71. AC_DEFUN([LT_INIT],
  72. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  73. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  74. AC_BEFORE([$0], [LT_LANG])dnl
  75. AC_BEFORE([$0], [LT_OUTPUT])dnl
  76. AC_BEFORE([$0], [LTDL_INIT])dnl
  77. m4_require([_LT_CHECK_BUILDDIR])dnl
  78. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  79. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  80. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  81. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  82. dnl unless we require an AC_DEFUNed macro:
  83. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  84. AC_REQUIRE([LTSUGAR_VERSION])dnl
  85. AC_REQUIRE([LTVERSION_VERSION])dnl
  86. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  87. m4_require([_LT_PROG_LTMAIN])dnl
  88. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  89. dnl Parse OPTIONS
  90. _LT_SET_OPTIONS([$0], [$1])
  91. # This can be used to rebuild libtool when needed
  92. LIBTOOL_DEPS="$ltmain"
  93. # Always use our own libtool.
  94. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  95. AC_SUBST(LIBTOOL)dnl
  96. _LT_SETUP
  97. # Only expand once:
  98. m4_define([LT_INIT])
  99. ])# LT_INIT
  100. # Old names:
  101. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  102. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  103. dnl aclocal-1.4 backwards compatibility:
  104. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  105. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  106. # _LT_CC_BASENAME(CC)
  107. # -------------------
  108. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  109. m4_defun([_LT_CC_BASENAME],
  110. [for cc_temp in $1""; do
  111. case $cc_temp in
  112. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  113. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  114. \-*) ;;
  115. *) break;;
  116. esac
  117. done
  118. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  119. ])
  120. # _LT_FILEUTILS_DEFAULTS
  121. # ----------------------
  122. # It is okay to use these file commands and assume they have been set
  123. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  124. m4_defun([_LT_FILEUTILS_DEFAULTS],
  125. [: ${CP="cp -f"}
  126. : ${MV="mv -f"}
  127. : ${RM="rm -f"}
  128. ])# _LT_FILEUTILS_DEFAULTS
  129. # _LT_SETUP
  130. # ---------
  131. m4_defun([_LT_SETUP],
  132. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  133. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  134. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  135. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  136. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  137. dnl
  138. _LT_DECL([], [host_alias], [0], [The host system])dnl
  139. _LT_DECL([], [host], [0])dnl
  140. _LT_DECL([], [host_os], [0])dnl
  141. dnl
  142. _LT_DECL([], [build_alias], [0], [The build system])dnl
  143. _LT_DECL([], [build], [0])dnl
  144. _LT_DECL([], [build_os], [0])dnl
  145. dnl
  146. AC_REQUIRE([AC_PROG_CC])dnl
  147. AC_REQUIRE([LT_PATH_LD])dnl
  148. AC_REQUIRE([LT_PATH_NM])dnl
  149. dnl
  150. AC_REQUIRE([AC_PROG_LN_S])dnl
  151. test -z "$LN_S" && LN_S="ln -s"
  152. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  153. dnl
  154. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  155. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  156. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  157. dnl
  158. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  159. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  160. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  161. m4_require([_LT_CMD_RELOAD])dnl
  162. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  163. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  164. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  165. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  166. m4_require([_LT_WITH_SYSROOT])dnl
  167. _LT_CONFIG_LIBTOOL_INIT([
  168. # See if we are running on zsh, and set the options which allow our
  169. # commands through without removal of \ escapes INIT.
  170. if test -n "\${ZSH_VERSION+set}" ; then
  171. setopt NO_GLOB_SUBST
  172. fi
  173. ])
  174. if test -n "${ZSH_VERSION+set}" ; then
  175. setopt NO_GLOB_SUBST
  176. fi
  177. _LT_CHECK_OBJDIR
  178. m4_require([_LT_TAG_COMPILER])dnl
  179. case $host_os in
  180. aix3*)
  181. # AIX sometimes has problems with the GCC collect2 program. For some
  182. # reason, if we set the COLLECT_NAMES environment variable, the problems
  183. # vanish in a puff of smoke.
  184. if test "X${COLLECT_NAMES+set}" != Xset; then
  185. COLLECT_NAMES=
  186. export COLLECT_NAMES
  187. fi
  188. ;;
  189. esac
  190. # Global variables:
  191. ofile=libtool
  192. can_build_shared=yes
  193. # All known linkers require a `.a' archive for static linking (except MSVC,
  194. # which needs '.lib').
  195. libext=a
  196. with_gnu_ld="$lt_cv_prog_gnu_ld"
  197. old_CC="$CC"
  198. old_CFLAGS="$CFLAGS"
  199. # Set sane defaults for various variables
  200. test -z "$CC" && CC=cc
  201. test -z "$LTCC" && LTCC=$CC
  202. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  203. test -z "$LD" && LD=ld
  204. test -z "$ac_objext" && ac_objext=o
  205. _LT_CC_BASENAME([$compiler])
  206. # Only perform the check for file, if the check method requires it
  207. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  208. case $deplibs_check_method in
  209. file_magic*)
  210. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  211. _LT_PATH_MAGIC
  212. fi
  213. ;;
  214. esac
  215. # Use C for the default configuration in the libtool script
  216. LT_SUPPORTED_TAG([CC])
  217. _LT_LANG_C_CONFIG
  218. _LT_LANG_DEFAULT_CONFIG
  219. _LT_CONFIG_COMMANDS
  220. ])# _LT_SETUP
  221. # _LT_PREPARE_SED_QUOTE_VARS
  222. # --------------------------
  223. # Define a few sed substitution that help us do robust quoting.
  224. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  225. [# Backslashify metacharacters that are still active within
  226. # double-quoted strings.
  227. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  228. # Same as above, but do not quote variable references.
  229. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  230. # Sed substitution to delay expansion of an escaped shell variable in a
  231. # double_quote_subst'ed string.
  232. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  233. # Sed substitution to delay expansion of an escaped single quote.
  234. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  235. # Sed substitution to avoid accidental globbing in evaled expressions
  236. no_glob_subst='s/\*/\\\*/g'
  237. ])
  238. # _LT_PROG_LTMAIN
  239. # ---------------
  240. # Note that this code is called both from `configure', and `config.status'
  241. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  242. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  243. # so we pass a copy along to make sure it has a sensible value anyway.
  244. m4_defun([_LT_PROG_LTMAIN],
  245. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  246. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  247. ltmain="$ac_aux_dir/ltmain.sh"
  248. ])# _LT_PROG_LTMAIN
  249. # So that we can recreate a full libtool script including additional
  250. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  251. # in macros and then make a single call at the end using the `libtool'
  252. # label.
  253. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  254. # ----------------------------------------
  255. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  256. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  257. [m4_ifval([$1],
  258. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  259. [$1
  260. ])])])
  261. # Initialize.
  262. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  263. # _LT_CONFIG_LIBTOOL([COMMANDS])
  264. # ------------------------------
  265. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  266. m4_define([_LT_CONFIG_LIBTOOL],
  267. [m4_ifval([$1],
  268. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  269. [$1
  270. ])])])
  271. # Initialize.
  272. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  273. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  274. # -----------------------------------------------------
  275. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  276. [_LT_CONFIG_LIBTOOL([$1])
  277. _LT_CONFIG_LIBTOOL_INIT([$2])
  278. ])
  279. # _LT_FORMAT_COMMENT([COMMENT])
  280. # -----------------------------
  281. # Add leading comment marks to the start of each line, and a trailing
  282. # full-stop to the whole comment if one is not present already.
  283. m4_define([_LT_FORMAT_COMMENT],
  284. [m4_ifval([$1], [
  285. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  286. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  287. )])
  288. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  289. # -------------------------------------------------------------------
  290. # CONFIGNAME is the name given to the value in the libtool script.
  291. # VARNAME is the (base) name used in the configure script.
  292. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  293. # VARNAME. Any other value will be used directly.
  294. m4_define([_LT_DECL],
  295. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  296. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  297. [m4_ifval([$1], [$1], [$2])])
  298. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  299. m4_ifval([$4],
  300. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  301. lt_dict_add_subkey([lt_decl_dict], [$2],
  302. [tagged?], [m4_ifval([$5], [yes], [no])])])
  303. ])
  304. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  305. # --------------------------------------------------------
  306. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  307. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  308. # ------------------------------------------------
  309. m4_define([lt_decl_tag_varnames],
  310. [_lt_decl_filter([tagged?], [yes], $@)])
  311. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  312. # ---------------------------------------------------------
  313. m4_define([_lt_decl_filter],
  314. [m4_case([$#],
  315. [0], [m4_fatal([$0: too few arguments: $#])],
  316. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  317. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  318. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  319. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  320. ])
  321. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  322. # --------------------------------------------------
  323. m4_define([lt_decl_quote_varnames],
  324. [_lt_decl_filter([value], [1], $@)])
  325. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  326. # ---------------------------------------------------
  327. m4_define([lt_decl_dquote_varnames],
  328. [_lt_decl_filter([value], [2], $@)])
  329. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  330. # ---------------------------------------------------
  331. m4_define([lt_decl_varnames_tagged],
  332. [m4_assert([$# <= 2])dnl
  333. _$0(m4_quote(m4_default([$1], [[, ]])),
  334. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  335. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  336. m4_define([_lt_decl_varnames_tagged],
  337. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  338. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  339. # ------------------------------------------------
  340. m4_define([lt_decl_all_varnames],
  341. [_$0(m4_quote(m4_default([$1], [[, ]])),
  342. m4_if([$2], [],
  343. m4_quote(lt_decl_varnames),
  344. m4_quote(m4_shift($@))))[]dnl
  345. ])
  346. m4_define([_lt_decl_all_varnames],
  347. [lt_join($@, lt_decl_varnames_tagged([$1],
  348. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  349. ])
  350. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  351. # ------------------------------------
  352. # Quote a variable value, and forward it to `config.status' so that its
  353. # declaration there will have the same value as in `configure'. VARNAME
  354. # must have a single quote delimited value for this to work.
  355. m4_define([_LT_CONFIG_STATUS_DECLARE],
  356. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  357. # _LT_CONFIG_STATUS_DECLARATIONS
  358. # ------------------------------
  359. # We delimit libtool config variables with single quotes, so when
  360. # we write them to config.status, we have to be sure to quote all
  361. # embedded single quotes properly. In configure, this macro expands
  362. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  363. #
  364. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  365. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  366. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  367. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  368. # _LT_LIBTOOL_TAGS
  369. # ----------------
  370. # Output comment and list of tags supported by the script
  371. m4_defun([_LT_LIBTOOL_TAGS],
  372. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  373. available_tags="_LT_TAGS"dnl
  374. ])
  375. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  376. # -----------------------------------
  377. # Extract the dictionary values for VARNAME (optionally with TAG) and
  378. # expand to a commented shell variable setting:
  379. #
  380. # # Some comment about what VAR is for.
  381. # visible_name=$lt_internal_name
  382. m4_define([_LT_LIBTOOL_DECLARE],
  383. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  384. [description])))[]dnl
  385. m4_pushdef([_libtool_name],
  386. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  387. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  388. [0], [_libtool_name=[$]$1],
  389. [1], [_libtool_name=$lt_[]$1],
  390. [2], [_libtool_name=$lt_[]$1],
  391. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  392. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  393. ])
  394. # _LT_LIBTOOL_CONFIG_VARS
  395. # -----------------------
  396. # Produce commented declarations of non-tagged libtool config variables
  397. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  398. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  399. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  400. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  401. [m4_foreach([_lt_var],
  402. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  403. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  404. # _LT_LIBTOOL_TAG_VARS(TAG)
  405. # -------------------------
  406. m4_define([_LT_LIBTOOL_TAG_VARS],
  407. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  408. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  409. # _LT_TAGVAR(VARNAME, [TAGNAME])
  410. # ------------------------------
  411. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  412. # _LT_CONFIG_COMMANDS
  413. # -------------------
  414. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  415. # variables for single and double quote escaping we saved from calls
  416. # to _LT_DECL, we can put quote escaped variables declarations
  417. # into `config.status', and then the shell code to quote escape them in
  418. # for loops in `config.status'. Finally, any additional code accumulated
  419. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  420. m4_defun([_LT_CONFIG_COMMANDS],
  421. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  422. dnl If the libtool generation code has been placed in $CONFIG_LT,
  423. dnl instead of duplicating it all over again into config.status,
  424. dnl then we will have config.status run $CONFIG_LT later, so it
  425. dnl needs to know what name is stored there:
  426. [AC_CONFIG_COMMANDS([libtool],
  427. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  428. dnl If the libtool generation code is destined for config.status,
  429. dnl expand the accumulated commands and init code now:
  430. [AC_CONFIG_COMMANDS([libtool],
  431. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  432. ])#_LT_CONFIG_COMMANDS
  433. # Initialize.
  434. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  435. [
  436. # The HP-UX ksh and POSIX shell print the target directory to stdout
  437. # if CDPATH is set.
  438. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  439. sed_quote_subst='$sed_quote_subst'
  440. double_quote_subst='$double_quote_subst'
  441. delay_variable_subst='$delay_variable_subst'
  442. _LT_CONFIG_STATUS_DECLARATIONS
  443. LTCC='$LTCC'
  444. LTCFLAGS='$LTCFLAGS'
  445. compiler='$compiler_DEFAULT'
  446. # A function that is used when there is no print builtin or printf.
  447. func_fallback_echo ()
  448. {
  449. eval 'cat <<_LTECHO_EOF
  450. \$[]1
  451. _LTECHO_EOF'
  452. }
  453. # Quote evaled strings.
  454. for var in lt_decl_all_varnames([[ \
  455. ]], lt_decl_quote_varnames); do
  456. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  457. *[[\\\\\\\`\\"\\\$]]*)
  458. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  459. ;;
  460. *)
  461. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  462. ;;
  463. esac
  464. done
  465. # Double-quote double-evaled strings.
  466. for var in lt_decl_all_varnames([[ \
  467. ]], lt_decl_dquote_varnames); do
  468. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  469. *[[\\\\\\\`\\"\\\$]]*)
  470. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  471. ;;
  472. *)
  473. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  474. ;;
  475. esac
  476. done
  477. _LT_OUTPUT_LIBTOOL_INIT
  478. ])
  479. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  480. # ------------------------------------
  481. # Generate a child script FILE with all initialization necessary to
  482. # reuse the environment learned by the parent script, and make the
  483. # file executable. If COMMENT is supplied, it is inserted after the
  484. # `#!' sequence but before initialization text begins. After this
  485. # macro, additional text can be appended to FILE to form the body of
  486. # the child script. The macro ends with non-zero status if the
  487. # file could not be fully written (such as if the disk is full).
  488. m4_ifdef([AS_INIT_GENERATED],
  489. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  490. [m4_defun([_LT_GENERATED_FILE_INIT],
  491. [m4_require([AS_PREPARE])]dnl
  492. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  493. [lt_write_fail=0
  494. cat >$1 <<_ASEOF || lt_write_fail=1
  495. #! $SHELL
  496. # Generated by $as_me.
  497. $2
  498. SHELL=\${CONFIG_SHELL-$SHELL}
  499. export SHELL
  500. _ASEOF
  501. cat >>$1 <<\_ASEOF || lt_write_fail=1
  502. AS_SHELL_SANITIZE
  503. _AS_PREPARE
  504. exec AS_MESSAGE_FD>&1
  505. _ASEOF
  506. test $lt_write_fail = 0 && chmod +x $1[]dnl
  507. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  508. # LT_OUTPUT
  509. # ---------
  510. # This macro allows early generation of the libtool script (before
  511. # AC_OUTPUT is called), incase it is used in configure for compilation
  512. # tests.
  513. AC_DEFUN([LT_OUTPUT],
  514. [: ${CONFIG_LT=./config.lt}
  515. AC_MSG_NOTICE([creating $CONFIG_LT])
  516. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  517. [# Run this file to recreate a libtool stub with the current configuration.])
  518. cat >>"$CONFIG_LT" <<\_LTEOF
  519. lt_cl_silent=false
  520. exec AS_MESSAGE_LOG_FD>>config.log
  521. {
  522. echo
  523. AS_BOX([Running $as_me.])
  524. } >&AS_MESSAGE_LOG_FD
  525. lt_cl_help="\
  526. \`$as_me' creates a local libtool stub from the current configuration,
  527. for use in further configure time tests before the real libtool is
  528. generated.
  529. Usage: $[0] [[OPTIONS]]
  530. -h, --help print this help, then exit
  531. -V, --version print version number, then exit
  532. -q, --quiet do not print progress messages
  533. -d, --debug don't remove temporary files
  534. Report bugs to <bug-libtool@gnu.org>."
  535. lt_cl_version="\
  536. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  537. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  538. configured by $[0], generated by m4_PACKAGE_STRING.
  539. Copyright (C) 2011 Free Software Foundation, Inc.
  540. This config.lt script is free software; the Free Software Foundation
  541. gives unlimited permision to copy, distribute and modify it."
  542. while test $[#] != 0
  543. do
  544. case $[1] in
  545. --version | --v* | -V )
  546. echo "$lt_cl_version"; exit 0 ;;
  547. --help | --h* | -h )
  548. echo "$lt_cl_help"; exit 0 ;;
  549. --debug | --d* | -d )
  550. debug=: ;;
  551. --quiet | --q* | --silent | --s* | -q )
  552. lt_cl_silent=: ;;
  553. -*) AC_MSG_ERROR([unrecognized option: $[1]
  554. Try \`$[0] --help' for more information.]) ;;
  555. *) AC_MSG_ERROR([unrecognized argument: $[1]
  556. Try \`$[0] --help' for more information.]) ;;
  557. esac
  558. shift
  559. done
  560. if $lt_cl_silent; then
  561. exec AS_MESSAGE_FD>/dev/null
  562. fi
  563. _LTEOF
  564. cat >>"$CONFIG_LT" <<_LTEOF
  565. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  566. _LTEOF
  567. cat >>"$CONFIG_LT" <<\_LTEOF
  568. AC_MSG_NOTICE([creating $ofile])
  569. _LT_OUTPUT_LIBTOOL_COMMANDS
  570. AS_EXIT(0)
  571. _LTEOF
  572. chmod +x "$CONFIG_LT"
  573. # configure is writing to config.log, but config.lt does its own redirection,
  574. # appending to config.log, which fails on DOS, as config.log is still kept
  575. # open by configure. Here we exec the FD to /dev/null, effectively closing
  576. # config.log, so it can be properly (re)opened and appended to by config.lt.
  577. lt_cl_success=:
  578. test "$silent" = yes &&
  579. lt_config_lt_args="$lt_config_lt_args --quiet"
  580. exec AS_MESSAGE_LOG_FD>/dev/null
  581. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  582. exec AS_MESSAGE_LOG_FD>>config.log
  583. $lt_cl_success || AS_EXIT(1)
  584. ])# LT_OUTPUT
  585. # _LT_CONFIG(TAG)
  586. # ---------------
  587. # If TAG is the built-in tag, create an initial libtool script with a
  588. # default configuration from the untagged config vars. Otherwise add code
  589. # to config.status for appending the configuration named by TAG from the
  590. # matching tagged config vars.
  591. m4_defun([_LT_CONFIG],
  592. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  593. _LT_CONFIG_SAVE_COMMANDS([
  594. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  595. m4_if(_LT_TAG, [C], [
  596. # See if we are running on zsh, and set the options which allow our
  597. # commands through without removal of \ escapes.
  598. if test -n "${ZSH_VERSION+set}" ; then
  599. setopt NO_GLOB_SUBST
  600. fi
  601. cfgfile="${ofile}T"
  602. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  603. $RM "$cfgfile"
  604. cat <<_LT_EOF >> "$cfgfile"
  605. #! $SHELL
  606. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  607. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  608. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  609. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  610. #
  611. _LT_COPYING
  612. _LT_LIBTOOL_TAGS
  613. # ### BEGIN LIBTOOL CONFIG
  614. _LT_LIBTOOL_CONFIG_VARS
  615. _LT_LIBTOOL_TAG_VARS
  616. # ### END LIBTOOL CONFIG
  617. _LT_EOF
  618. case $host_os in
  619. aix3*)
  620. cat <<\_LT_EOF >> "$cfgfile"
  621. # AIX sometimes has problems with the GCC collect2 program. For some
  622. # reason, if we set the COLLECT_NAMES environment variable, the problems
  623. # vanish in a puff of smoke.
  624. if test "X${COLLECT_NAMES+set}" != Xset; then
  625. COLLECT_NAMES=
  626. export COLLECT_NAMES
  627. fi
  628. _LT_EOF
  629. ;;
  630. esac
  631. _LT_PROG_LTMAIN
  632. # We use sed instead of cat because bash on DJGPP gets confused if
  633. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  634. # text mode, it properly converts lines to CR/LF. This bash problem
  635. # is reportedly fixed, but why not run on old versions too?
  636. sed '$q' "$ltmain" >> "$cfgfile" \
  637. || (rm -f "$cfgfile"; exit 1)
  638. _LT_PROG_REPLACE_SHELLFNS
  639. mv -f "$cfgfile" "$ofile" ||
  640. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  641. chmod +x "$ofile"
  642. ],
  643. [cat <<_LT_EOF >> "$ofile"
  644. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  645. dnl in a comment (ie after a #).
  646. # ### BEGIN LIBTOOL TAG CONFIG: $1
  647. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  648. # ### END LIBTOOL TAG CONFIG: $1
  649. _LT_EOF
  650. ])dnl /m4_if
  651. ],
  652. [m4_if([$1], [], [
  653. PACKAGE='$PACKAGE'
  654. VERSION='$VERSION'
  655. TIMESTAMP='$TIMESTAMP'
  656. RM='$RM'
  657. ofile='$ofile'], [])
  658. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  659. ])# _LT_CONFIG
  660. # LT_SUPPORTED_TAG(TAG)
  661. # ---------------------
  662. # Trace this macro to discover what tags are supported by the libtool
  663. # --tag option, using:
  664. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  665. AC_DEFUN([LT_SUPPORTED_TAG], [])
  666. # C support is built-in for now
  667. m4_define([_LT_LANG_C_enabled], [])
  668. m4_define([_LT_TAGS], [])
  669. # LT_LANG(LANG)
  670. # -------------
  671. # Enable libtool support for the given language if not already enabled.
  672. AC_DEFUN([LT_LANG],
  673. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  674. m4_case([$1],
  675. [C], [_LT_LANG(C)],
  676. [C++], [_LT_LANG(CXX)],
  677. [Go], [_LT_LANG(GO)],
  678. [Java], [_LT_LANG(GCJ)],
  679. [Fortran 77], [_LT_LANG(F77)],
  680. [Fortran], [_LT_LANG(FC)],
  681. [Windows Resource], [_LT_LANG(RC)],
  682. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  683. [_LT_LANG($1)],
  684. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  685. ])# LT_LANG
  686. # _LT_LANG(LANGNAME)
  687. # ------------------
  688. m4_defun([_LT_LANG],
  689. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  690. [LT_SUPPORTED_TAG([$1])dnl
  691. m4_append([_LT_TAGS], [$1 ])dnl
  692. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  693. _LT_LANG_$1_CONFIG($1)])dnl
  694. ])# _LT_LANG
  695. m4_ifndef([AC_PROG_GO], [
  696. # NOTE: This macro has been submitted for inclusion into #
  697. # GNU Autoconf as AC_PROG_GO. When it is available in #
  698. # a released version of Autoconf we should remove this #
  699. # macro and use it instead. #
  700. m4_defun([AC_PROG_GO],
  701. [AC_LANG_PUSH(Go)dnl
  702. AC_ARG_VAR([GOC], [Go compiler command])dnl
  703. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  704. _AC_ARG_VAR_LDFLAGS()dnl
  705. AC_CHECK_TOOL(GOC, gccgo)
  706. if test -z "$GOC"; then
  707. if test -n "$ac_tool_prefix"; then
  708. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  709. fi
  710. fi
  711. if test -z "$GOC"; then
  712. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  713. fi
  714. ])#m4_defun
  715. ])#m4_ifndef
  716. # _LT_LANG_DEFAULT_CONFIG
  717. # -----------------------
  718. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  719. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  720. [LT_LANG(CXX)],
  721. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  722. AC_PROVIDE_IFELSE([AC_PROG_F77],
  723. [LT_LANG(F77)],
  724. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  725. AC_PROVIDE_IFELSE([AC_PROG_FC],
  726. [LT_LANG(FC)],
  727. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  728. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  729. dnl pulling things in needlessly.
  730. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  731. [LT_LANG(GCJ)],
  732. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  733. [LT_LANG(GCJ)],
  734. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  735. [LT_LANG(GCJ)],
  736. [m4_ifdef([AC_PROG_GCJ],
  737. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  738. m4_ifdef([A][M_PROG_GCJ],
  739. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  740. m4_ifdef([LT_PROG_GCJ],
  741. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  742. AC_PROVIDE_IFELSE([AC_PROG_GO],
  743. [LT_LANG(GO)],
  744. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  745. AC_PROVIDE_IFELSE([LT_PROG_RC],
  746. [LT_LANG(RC)],
  747. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  748. ])# _LT_LANG_DEFAULT_CONFIG
  749. # Obsolete macros:
  750. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  751. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  752. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  753. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  754. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  755. dnl aclocal-1.4 backwards compatibility:
  756. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  757. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  758. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  759. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  760. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  761. # _LT_TAG_COMPILER
  762. # ----------------
  763. m4_defun([_LT_TAG_COMPILER],
  764. [AC_REQUIRE([AC_PROG_CC])dnl
  765. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  766. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  767. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  768. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  769. # If no C compiler was specified, use CC.
  770. LTCC=${LTCC-"$CC"}
  771. # If no C compiler flags were specified, use CFLAGS.
  772. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  773. # Allow CC to be a program name with arguments.
  774. compiler=$CC
  775. ])# _LT_TAG_COMPILER
  776. # _LT_COMPILER_BOILERPLATE
  777. # ------------------------
  778. # Check for compiler boilerplate output or warnings with
  779. # the simple compiler test code.
  780. m4_defun([_LT_COMPILER_BOILERPLATE],
  781. [m4_require([_LT_DECL_SED])dnl
  782. ac_outfile=conftest.$ac_objext
  783. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  784. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  785. _lt_compiler_boilerplate=`cat conftest.err`
  786. $RM conftest*
  787. ])# _LT_COMPILER_BOILERPLATE
  788. # _LT_LINKER_BOILERPLATE
  789. # ----------------------
  790. # Check for linker boilerplate output or warnings with
  791. # the simple link test code.
  792. m4_defun([_LT_LINKER_BOILERPLATE],
  793. [m4_require([_LT_DECL_SED])dnl
  794. ac_outfile=conftest.$ac_objext
  795. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  796. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  797. _lt_linker_boilerplate=`cat conftest.err`
  798. $RM -r conftest*
  799. ])# _LT_LINKER_BOILERPLATE
  800. # _LT_REQUIRED_DARWIN_CHECKS
  801. # -------------------------
  802. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  803. case $host_os in
  804. rhapsody* | darwin*)
  805. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  806. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  807. AC_CHECK_TOOL([LIPO], [lipo], [:])
  808. AC_CHECK_TOOL([OTOOL], [otool], [:])
  809. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  810. _LT_DECL([], [DSYMUTIL], [1],
  811. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  812. _LT_DECL([], [NMEDIT], [1],
  813. [Tool to change global to local symbols on Mac OS X])
  814. _LT_DECL([], [LIPO], [1],
  815. [Tool to manipulate fat objects and archives on Mac OS X])
  816. _LT_DECL([], [OTOOL], [1],
  817. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  818. _LT_DECL([], [OTOOL64], [1],
  819. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  820. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  821. [lt_cv_apple_cc_single_mod=no
  822. if test -z "${LT_MULTI_MODULE}"; then
  823. # By default we will add the -single_module flag. You can override
  824. # by either setting the environment variable LT_MULTI_MODULE
  825. # non-empty at configure time, or by adding -multi_module to the
  826. # link flags.
  827. rm -rf libconftest.dylib*
  828. echo "int foo(void){return 1;}" > conftest.c
  829. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  830. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  831. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  832. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  833. _lt_result=$?
  834. # If there is a non-empty error log, and "single_module"
  835. # appears in it, assume the flag caused a linker warning
  836. if test -s conftest.err && $GREP single_module conftest.err; then
  837. cat conftest.err >&AS_MESSAGE_LOG_FD
  838. # Otherwise, if the output was created with a 0 exit code from
  839. # the compiler, it worked.
  840. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  841. lt_cv_apple_cc_single_mod=yes
  842. else
  843. cat conftest.err >&AS_MESSAGE_LOG_FD
  844. fi
  845. rm -rf libconftest.dylib*
  846. rm -f conftest.*
  847. fi])
  848. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  849. [lt_cv_ld_exported_symbols_list],
  850. [lt_cv_ld_exported_symbols_list=no
  851. save_LDFLAGS=$LDFLAGS
  852. echo "_main" > conftest.sym
  853. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  854. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  855. [lt_cv_ld_exported_symbols_list=yes],
  856. [lt_cv_ld_exported_symbols_list=no])
  857. LDFLAGS="$save_LDFLAGS"
  858. ])
  859. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  860. [lt_cv_ld_force_load=no
  861. cat > conftest.c << _LT_EOF
  862. int forced_loaded() { return 2;}
  863. _LT_EOF
  864. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  865. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  866. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  867. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  868. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  869. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  870. cat > conftest.c << _LT_EOF
  871. int main() { return 0;}
  872. _LT_EOF
  873. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  874. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  875. _lt_result=$?
  876. if test -s conftest.err && $GREP force_load conftest.err; then
  877. cat conftest.err >&AS_MESSAGE_LOG_FD
  878. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  879. lt_cv_ld_force_load=yes
  880. else
  881. cat conftest.err >&AS_MESSAGE_LOG_FD
  882. fi
  883. rm -f conftest.err libconftest.a conftest conftest.c
  884. rm -rf conftest.dSYM
  885. ])
  886. case $host_os in
  887. rhapsody* | darwin1.[[012]])
  888. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  889. darwin1.*)
  890. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  891. darwin*) # darwin 5.x on
  892. # if running on 10.5 or later, the deployment target defaults
  893. # to the OS version, if on x86, and 10.4, the deployment
  894. # target defaults to 10.4. Don't you love it?
  895. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  896. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  897. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  898. 10.[[012]]*)
  899. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  900. 10.*)
  901. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  902. esac
  903. ;;
  904. esac
  905. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  906. _lt_dar_single_mod='$single_module'
  907. fi
  908. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  909. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  910. else
  911. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  912. fi
  913. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  914. _lt_dsymutil='~$DSYMUTIL $lib || :'
  915. else
  916. _lt_dsymutil=
  917. fi
  918. ;;
  919. esac
  920. ])
  921. # _LT_DARWIN_LINKER_FEATURES([TAG])
  922. # ---------------------------------
  923. # Checks for linker and compiler features on darwin
  924. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  925. [
  926. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  927. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  928. _LT_TAGVAR(hardcode_direct, $1)=no
  929. _LT_TAGVAR(hardcode_automatic, $1)=yes
  930. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  931. if test "$lt_cv_ld_force_load" = "yes"; then
  932. _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\"`'
  933. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  934. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  935. else
  936. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  937. fi
  938. _LT_TAGVAR(link_all_deplibs, $1)=yes
  939. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  940. case $cc_basename in
  941. ifort*) _lt_dar_can_shared=yes ;;
  942. *) _lt_dar_can_shared=$GCC ;;
  943. esac
  944. if test "$_lt_dar_can_shared" = "yes"; then
  945. output_verbose_link_cmd=func_echo_all
  946. _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}"
  947. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  948. _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}"
  949. _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}"
  950. m4_if([$1], [CXX],
  951. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  952. _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}"
  953. _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}"
  954. fi
  955. ],[])
  956. else
  957. _LT_TAGVAR(ld_shlibs, $1)=no
  958. fi
  959. ])
  960. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  961. # ----------------------------------
  962. # Links a minimal program and checks the executable
  963. # for the system default hardcoded library path. In most cases,
  964. # this is /usr/lib:/lib, but when the MPI compilers are used
  965. # the location of the communication and MPI libs are included too.
  966. # If we don't find anything, use the default library path according
  967. # to the aix ld manual.
  968. # Store the results from the different compilers for each TAGNAME.
  969. # Allow to override them for all tags through lt_cv_aix_libpath.
  970. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  971. [m4_require([_LT_DECL_SED])dnl
  972. if test "${lt_cv_aix_libpath+set}" = set; then
  973. aix_libpath=$lt_cv_aix_libpath
  974. else
  975. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  976. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  977. lt_aix_libpath_sed='[
  978. /Import File Strings/,/^$/ {
  979. /^0/ {
  980. s/^0 *\([^ ]*\) *$/\1/
  981. p
  982. }
  983. }]'
  984. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  985. # Check for a 64-bit object if we didn't find anything.
  986. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  987. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  988. fi],[])
  989. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  990. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  991. fi
  992. ])
  993. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  994. fi
  995. ])# _LT_SYS_MODULE_PATH_AIX
  996. # _LT_SHELL_INIT(ARG)
  997. # -------------------
  998. m4_define([_LT_SHELL_INIT],
  999. [m4_divert_text([M4SH-INIT], [$1
  1000. ])])# _LT_SHELL_INIT
  1001. # _LT_PROG_ECHO_BACKSLASH
  1002. # -----------------------
  1003. # Find how we can fake an echo command that does not interpret backslash.
  1004. # In particular, with Autoconf 2.60 or later we add some code to the start
  1005. # of the generated configure script which will find a shell with a builtin
  1006. # printf (which we can use as an echo command).
  1007. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1008. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1009. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1010. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1011. AC_MSG_CHECKING([how to print strings])
  1012. # Test print first, because it will be a builtin if present.
  1013. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1014. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1015. ECHO='print -r --'
  1016. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1017. ECHO='printf %s\n'
  1018. else
  1019. # Use this function as a fallback that always works.
  1020. func_fallback_echo ()
  1021. {
  1022. eval 'cat <<_LTECHO_EOF
  1023. $[]1
  1024. _LTECHO_EOF'
  1025. }
  1026. ECHO='func_fallback_echo'
  1027. fi
  1028. # func_echo_all arg...
  1029. # Invoke $ECHO with all args, space-separated.
  1030. func_echo_all ()
  1031. {
  1032. $ECHO "$*"
  1033. }
  1034. case "$ECHO" in
  1035. printf*) AC_MSG_RESULT([printf]) ;;
  1036. print*) AC_MSG_RESULT([print -r]) ;;
  1037. *) AC_MSG_RESULT([cat]) ;;
  1038. esac
  1039. m4_ifdef([_AS_DETECT_SUGGESTED],
  1040. [_AS_DETECT_SUGGESTED([
  1041. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1042. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1043. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1044. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1045. PATH=/empty FPATH=/empty; export PATH FPATH
  1046. test "X`printf %s $ECHO`" = "X$ECHO" \
  1047. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1048. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1049. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1050. ])# _LT_PROG_ECHO_BACKSLASH
  1051. # _LT_WITH_SYSROOT
  1052. # ----------------
  1053. AC_DEFUN([_LT_WITH_SYSROOT],
  1054. [AC_MSG_CHECKING([for sysroot])
  1055. AC_ARG_WITH([sysroot],
  1056. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1057. (or the compiler's sysroot if not specified).],
  1058. [], [with_sysroot=no])
  1059. dnl lt_sysroot will always be passed unquoted. We quote it here
  1060. dnl in case the user passed a directory name.
  1061. lt_sysroot=
  1062. case ${with_sysroot} in #(
  1063. yes)
  1064. if test "$GCC" = yes; then
  1065. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1066. fi
  1067. ;; #(
  1068. /*)
  1069. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1070. ;; #(
  1071. no|'')
  1072. ;; #(
  1073. *)
  1074. AC_MSG_RESULT([${with_sysroot}])
  1075. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1076. ;;
  1077. esac
  1078. AC_MSG_RESULT([${lt_sysroot:-no}])
  1079. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1080. [dependent libraries, and in which our libraries should be installed.])])
  1081. # _LT_ENABLE_LOCK
  1082. # ---------------
  1083. m4_defun([_LT_ENABLE_LOCK],
  1084. [AC_ARG_ENABLE([libtool-lock],
  1085. [AS_HELP_STRING([--disable-libtool-lock],
  1086. [avoid locking (might break parallel builds)])])
  1087. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1088. # Some flags need to be propagated to the compiler or linker for good
  1089. # libtool support.
  1090. case $host in
  1091. ia64-*-hpux*)
  1092. # Find out which ABI we are using.
  1093. echo 'int i;' > conftest.$ac_ext
  1094. if AC_TRY_EVAL(ac_compile); then
  1095. case `/usr/bin/file conftest.$ac_objext` in
  1096. *ELF-32*)
  1097. HPUX_IA64_MODE="32"
  1098. ;;
  1099. *ELF-64*)
  1100. HPUX_IA64_MODE="64"
  1101. ;;
  1102. esac
  1103. fi
  1104. rm -rf conftest*
  1105. ;;
  1106. *-*-irix6*)
  1107. # Find out which ABI we are using.
  1108. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1109. if AC_TRY_EVAL(ac_compile); then
  1110. if test "$lt_cv_prog_gnu_ld" = yes; then
  1111. case `/usr/bin/file conftest.$ac_objext` in
  1112. *32-bit*)
  1113. LD="${LD-ld} -melf32bsmip"
  1114. ;;
  1115. *N32*)
  1116. LD="${LD-ld} -melf32bmipn32"
  1117. ;;
  1118. *64-bit*)
  1119. LD="${LD-ld} -melf64bmip"
  1120. ;;
  1121. esac
  1122. else
  1123. case `/usr/bin/file conftest.$ac_objext` in
  1124. *32-bit*)
  1125. LD="${LD-ld} -32"
  1126. ;;
  1127. *N32*)
  1128. LD="${LD-ld} -n32"
  1129. ;;
  1130. *64-bit*)
  1131. LD="${LD-ld} -64"
  1132. ;;
  1133. esac
  1134. fi
  1135. fi
  1136. rm -rf conftest*
  1137. ;;
  1138. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1139. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1140. # Find out which ABI we are using.
  1141. echo 'int i;' > conftest.$ac_ext
  1142. if AC_TRY_EVAL(ac_compile); then
  1143. case `/usr/bin/file conftest.o` in
  1144. *32-bit*)
  1145. case $host in
  1146. x86_64-*kfreebsd*-gnu)
  1147. LD="${LD-ld} -m elf_i386_fbsd"
  1148. ;;
  1149. x86_64-*linux*)
  1150. LD="${LD-ld} -m elf_i386"
  1151. ;;
  1152. ppc64-*linux*|powerpc64-*linux*)
  1153. LD="${LD-ld} -m elf32ppclinux"
  1154. ;;
  1155. s390x-*linux*)
  1156. LD="${LD-ld} -m elf_s390"
  1157. ;;
  1158. sparc64-*linux*)
  1159. LD="${LD-ld} -m elf32_sparc"
  1160. ;;
  1161. esac
  1162. ;;
  1163. *64-bit*)
  1164. case $host in
  1165. x86_64-*kfreebsd*-gnu)
  1166. LD="${LD-ld} -m elf_x86_64_fbsd"
  1167. ;;
  1168. x86_64-*linux*)
  1169. LD="${LD-ld} -m elf_x86_64"
  1170. ;;
  1171. ppc*-*linux*|powerpc*-*linux*)
  1172. LD="${LD-ld} -m elf64ppc"
  1173. ;;
  1174. s390*-*linux*|s390*-*tpf*)
  1175. LD="${LD-ld} -m elf64_s390"
  1176. ;;
  1177. sparc*-*linux*)
  1178. LD="${LD-ld} -m elf64_sparc"
  1179. ;;
  1180. esac
  1181. ;;
  1182. esac
  1183. fi
  1184. rm -rf conftest*
  1185. ;;
  1186. *-*-sco3.2v5*)
  1187. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1188. SAVE_CFLAGS="$CFLAGS"
  1189. CFLAGS="$CFLAGS -belf"
  1190. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1191. [AC_LANG_PUSH(C)
  1192. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1193. AC_LANG_POP])
  1194. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1195. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1196. CFLAGS="$SAVE_CFLAGS"
  1197. fi
  1198. ;;
  1199. *-*solaris*)
  1200. # Find out which ABI we are using.
  1201. echo 'int i;' > conftest.$ac_ext
  1202. if AC_TRY_EVAL(ac_compile); then
  1203. case `/usr/bin/file conftest.o` in
  1204. *64-bit*)
  1205. case $lt_cv_prog_gnu_ld in
  1206. yes*)
  1207. case $host in
  1208. i?86-*-solaris*)
  1209. LD="${LD-ld} -m elf_x86_64"
  1210. ;;
  1211. sparc*-*-solaris*)
  1212. LD="${LD-ld} -m elf64_sparc"
  1213. ;;
  1214. esac
  1215. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1216. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1217. LD="${LD-ld}_sol2"
  1218. fi
  1219. ;;
  1220. *)
  1221. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1222. LD="${LD-ld} -64"
  1223. fi
  1224. ;;
  1225. esac
  1226. ;;
  1227. esac
  1228. fi
  1229. rm -rf conftest*
  1230. ;;
  1231. esac
  1232. need_locks="$enable_libtool_lock"
  1233. ])# _LT_ENABLE_LOCK
  1234. # _LT_PROG_AR
  1235. # -----------
  1236. m4_defun([_LT_PROG_AR],
  1237. [AC_CHECK_TOOLS(AR, [ar], false)
  1238. : ${AR=ar}
  1239. : ${AR_FLAGS=cru}
  1240. _LT_DECL([], [AR], [1], [The archiver])
  1241. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1242. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1243. [lt_cv_ar_at_file=no
  1244. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1245. [echo conftest.$ac_objext > conftest.lst
  1246. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1247. AC_TRY_EVAL([lt_ar_try])
  1248. if test "$ac_status" -eq 0; then
  1249. # Ensure the archiver fails upon bogus file names.
  1250. rm -f conftest.$ac_objext libconftest.a
  1251. AC_TRY_EVAL([lt_ar_try])
  1252. if test "$ac_status" -ne 0; then
  1253. lt_cv_ar_at_file=@
  1254. fi
  1255. fi
  1256. rm -f conftest.* libconftest.a
  1257. ])
  1258. ])
  1259. if test "x$lt_cv_ar_at_file" = xno; then
  1260. archiver_list_spec=
  1261. else
  1262. archiver_list_spec=$lt_cv_ar_at_file
  1263. fi
  1264. _LT_DECL([], [archiver_list_spec], [1],
  1265. [How to feed a file listing to the archiver])
  1266. ])# _LT_PROG_AR
  1267. # _LT_CMD_OLD_ARCHIVE
  1268. # -------------------
  1269. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1270. [_LT_PROG_AR
  1271. AC_CHECK_TOOL(STRIP, strip, :)
  1272. test -z "$STRIP" && STRIP=:
  1273. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1274. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1275. test -z "$RANLIB" && RANLIB=:
  1276. _LT_DECL([], [RANLIB], [1],
  1277. [Commands used to install an old-style archive])
  1278. # Determine commands to create old-style static archives.
  1279. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1280. old_postinstall_cmds='chmod 644 $oldlib'
  1281. old_postuninstall_cmds=
  1282. if test -n "$RANLIB"; then
  1283. case $host_os in
  1284. openbsd*)
  1285. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1286. ;;
  1287. *)
  1288. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1289. ;;
  1290. esac
  1291. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1292. fi
  1293. case $host_os in
  1294. darwin*)
  1295. lock_old_archive_extraction=yes ;;
  1296. *)
  1297. lock_old_archive_extraction=no ;;
  1298. esac
  1299. _LT_DECL([], [old_postinstall_cmds], [2])
  1300. _LT_DECL([], [old_postuninstall_cmds], [2])
  1301. _LT_TAGDECL([], [old_archive_cmds], [2],
  1302. [Commands used to build an old-style archive])
  1303. _LT_DECL([], [lock_old_archive_extraction], [0],
  1304. [Whether to use a lock for old archive extraction])
  1305. ])# _LT_CMD_OLD_ARCHIVE
  1306. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1307. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1308. # ----------------------------------------------------------------
  1309. # Check whether the given compiler option works
  1310. AC_DEFUN([_LT_COMPILER_OPTION],
  1311. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1312. m4_require([_LT_DECL_SED])dnl
  1313. AC_CACHE_CHECK([$1], [$2],
  1314. [$2=no
  1315. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1316. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1317. lt_compiler_flag="$3"
  1318. # Insert the option either (1) after the last *FLAGS variable, or
  1319. # (2) before a word containing "conftest.", or (3) at the end.
  1320. # Note that $ac_compile itself does not contain backslashes and begins
  1321. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1322. # The option is referenced via a variable to avoid confusing sed.
  1323. lt_compile=`echo "$ac_compile" | $SED \
  1324. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1325. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1326. -e 's:$: $lt_compiler_flag:'`
  1327. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1328. (eval "$lt_compile" 2>conftest.err)
  1329. ac_status=$?
  1330. cat conftest.err >&AS_MESSAGE_LOG_FD
  1331. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1332. if (exit $ac_status) && test -s "$ac_outfile"; then
  1333. # The compiler can only warn and ignore the option if not recognized
  1334. # So say no if there are warnings other than the usual output.
  1335. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1336. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1337. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1338. $2=yes
  1339. fi
  1340. fi
  1341. $RM conftest*
  1342. ])
  1343. if test x"[$]$2" = xyes; then
  1344. m4_if([$5], , :, [$5])
  1345. else
  1346. m4_if([$6], , :, [$6])
  1347. fi
  1348. ])# _LT_COMPILER_OPTION
  1349. # Old name:
  1350. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1351. dnl aclocal-1.4 backwards compatibility:
  1352. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1353. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1354. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1355. # ----------------------------------------------------
  1356. # Check whether the given linker option works
  1357. AC_DEFUN([_LT_LINKER_OPTION],
  1358. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1359. m4_require([_LT_DECL_SED])dnl
  1360. AC_CACHE_CHECK([$1], [$2],
  1361. [$2=no
  1362. save_LDFLAGS="$LDFLAGS"
  1363. LDFLAGS="$LDFLAGS $3"
  1364. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1365. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1366. # The linker can only warn and ignore the option if not recognized
  1367. # So say no if there are warnings
  1368. if test -s conftest.err; then
  1369. # Append any errors to the config.log.
  1370. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1371. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1373. if diff conftest.exp conftest.er2 >/dev/null; then
  1374. $2=yes
  1375. fi
  1376. else
  1377. $2=yes
  1378. fi
  1379. fi
  1380. $RM -r conftest*
  1381. LDFLAGS="$save_LDFLAGS"
  1382. ])
  1383. if test x"[$]$2" = xyes; then
  1384. m4_if([$4], , :, [$4])
  1385. else
  1386. m4_if([$5], , :, [$5])
  1387. fi
  1388. ])# _LT_LINKER_OPTION
  1389. # Old name:
  1390. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1391. dnl aclocal-1.4 backwards compatibility:
  1392. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1393. # LT_CMD_MAX_LEN
  1394. #---------------
  1395. AC_DEFUN([LT_CMD_MAX_LEN],
  1396. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1397. # find the maximum length of command line arguments
  1398. AC_MSG_CHECKING([the maximum length of command line arguments])
  1399. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1400. i=0
  1401. teststring="ABCD"
  1402. case $build_os in
  1403. msdosdjgpp*)
  1404. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1405. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1406. # during glob expansion). Even if it were fixed, the result of this
  1407. # check would be larger than it should be.
  1408. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1409. ;;
  1410. gnu*)
  1411. # Under GNU Hurd, this test is not required because there is
  1412. # no limit to the length of command line arguments.
  1413. # Libtool will interpret -1 as no limit whatsoever
  1414. lt_cv_sys_max_cmd_len=-1;
  1415. ;;
  1416. cygwin* | mingw* | cegcc*)
  1417. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1418. # about 5 minutes as the teststring grows exponentially.
  1419. # Worse, since 9x/ME are not pre-emptively multitasking,
  1420. # you end up with a "frozen" computer, even though with patience
  1421. # the test eventually succeeds (with a max line length of 256k).
  1422. # Instead, let's just punt: use the minimum linelength reported by
  1423. # all of the supported platforms: 8192 (on NT/2K/XP).
  1424. lt_cv_sys_max_cmd_len=8192;
  1425. ;;
  1426. mint*)
  1427. # On MiNT this can take a long time and run out of memory.
  1428. lt_cv_sys_max_cmd_len=8192;
  1429. ;;
  1430. amigaos*)
  1431. # On AmigaOS with pdksh, this test takes hours, literally.
  1432. # So we just punt and use a minimum line length of 8192.
  1433. lt_cv_sys_max_cmd_len=8192;
  1434. ;;
  1435. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1436. # This has been around since 386BSD, at least. Likely further.
  1437. if test -x /sbin/sysctl; then
  1438. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1439. elif test -x /usr/sbin/sysctl; then
  1440. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1441. else
  1442. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1443. fi
  1444. # And add a safety zone
  1445. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1446. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1447. ;;
  1448. interix*)
  1449. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1450. lt_cv_sys_max_cmd_len=196608
  1451. ;;
  1452. os2*)
  1453. # The test takes a long time on OS/2.
  1454. lt_cv_sys_max_cmd_len=8192
  1455. ;;
  1456. osf*)
  1457. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1458. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1459. # nice to cause kernel panics so lets avoid the loop below.
  1460. # First set a reasonable default.
  1461. lt_cv_sys_max_cmd_len=16384
  1462. #
  1463. if test -x /sbin/sysconfig; then
  1464. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1465. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1466. esac
  1467. fi
  1468. ;;
  1469. sco3.2v5*)
  1470. lt_cv_sys_max_cmd_len=102400
  1471. ;;
  1472. sysv5* | sco5v6* | sysv4.2uw2*)
  1473. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1474. if test -n "$kargmax"; then
  1475. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1476. else
  1477. lt_cv_sys_max_cmd_len=32768
  1478. fi
  1479. ;;
  1480. *)
  1481. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1482. if test -n "$lt_cv_sys_max_cmd_len"; then
  1483. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1484. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1485. else
  1486. # Make teststring a little bigger before we do anything with it.
  1487. # a 1K string should be a reasonable start.
  1488. for i in 1 2 3 4 5 6 7 8 ; do
  1489. teststring=$teststring$teststring
  1490. done
  1491. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1492. # If test is not a shell built-in, we'll probably end up computing a
  1493. # maximum length that is only half of the actual maximum length, but
  1494. # we can't tell.
  1495. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1496. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1497. test $i != 17 # 1/2 MB should be enough
  1498. do
  1499. i=`expr $i + 1`
  1500. teststring=$teststring$teststring
  1501. done
  1502. # Only check the string length outside the loop.
  1503. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1504. teststring=
  1505. # Add a significant safety factor because C++ compilers can tack on
  1506. # massive amounts of additional arguments before passing them to the
  1507. # linker. It appears as though 1/2 is a usable value.
  1508. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1509. fi
  1510. ;;
  1511. esac
  1512. ])
  1513. if test -n $lt_cv_sys_max_cmd_len ; then
  1514. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1515. else
  1516. AC_MSG_RESULT(none)
  1517. fi
  1518. max_cmd_len=$lt_cv_sys_max_cmd_len
  1519. _LT_DECL([], [max_cmd_len], [0],
  1520. [What is the maximum length of a command?])
  1521. ])# LT_CMD_MAX_LEN
  1522. # Old name:
  1523. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1524. dnl aclocal-1.4 backwards compatibility:
  1525. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1526. # _LT_HEADER_DLFCN
  1527. # ----------------
  1528. m4_defun([_LT_HEADER_DLFCN],
  1529. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1530. ])# _LT_HEADER_DLFCN
  1531. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1532. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1533. # ----------------------------------------------------------------
  1534. m4_defun([_LT_TRY_DLOPEN_SELF],
  1535. [m4_require([_LT_HEADER_DLFCN])dnl
  1536. if test "$cross_compiling" = yes; then :
  1537. [$4]
  1538. else
  1539. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1540. lt_status=$lt_dlunknown
  1541. cat > conftest.$ac_ext <<_LT_EOF
  1542. [#line $LINENO "configure"
  1543. #include "confdefs.h"
  1544. #if HAVE_DLFCN_H
  1545. #include <dlfcn.h>
  1546. #endif
  1547. #include <stdio.h>
  1548. #ifdef RTLD_GLOBAL
  1549. # define LT_DLGLOBAL RTLD_GLOBAL
  1550. #else
  1551. # ifdef DL_GLOBAL
  1552. # define LT_DLGLOBAL DL_GLOBAL
  1553. # else
  1554. # define LT_DLGLOBAL 0
  1555. # endif
  1556. #endif
  1557. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1558. find out it does not work in some platform. */
  1559. #ifndef LT_DLLAZY_OR_NOW
  1560. # ifdef RTLD_LAZY
  1561. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1562. # else
  1563. # ifdef DL_LAZY
  1564. # define LT_DLLAZY_OR_NOW DL_LAZY
  1565. # else
  1566. # ifdef RTLD_NOW
  1567. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1568. # else
  1569. # ifdef DL_NOW
  1570. # define LT_DLLAZY_OR_NOW DL_NOW
  1571. # else
  1572. # define LT_DLLAZY_OR_NOW 0
  1573. # endif
  1574. # endif
  1575. # endif
  1576. # endif
  1577. #endif
  1578. /* When -fvisbility=hidden is used, assume the code has been annotated
  1579. correspondingly for the symbols needed. */
  1580. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1581. int fnord () __attribute__((visibility("default")));
  1582. #endif
  1583. int fnord () { return 42; }
  1584. int main ()
  1585. {
  1586. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1587. int status = $lt_dlunknown;
  1588. if (self)
  1589. {
  1590. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1591. else
  1592. {
  1593. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1594. else puts (dlerror ());
  1595. }
  1596. /* dlclose (self); */
  1597. }
  1598. else
  1599. puts (dlerror ());
  1600. return status;
  1601. }]
  1602. _LT_EOF
  1603. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1604. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1605. lt_status=$?
  1606. case x$lt_status in
  1607. x$lt_dlno_uscore) $1 ;;
  1608. x$lt_dlneed_uscore) $2 ;;
  1609. x$lt_dlunknown|x*) $3 ;;
  1610. esac
  1611. else :
  1612. # compilation failed
  1613. $3
  1614. fi
  1615. fi
  1616. rm -fr conftest*
  1617. ])# _LT_TRY_DLOPEN_SELF
  1618. # LT_SYS_DLOPEN_SELF
  1619. # ------------------
  1620. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1621. [m4_require([_LT_HEADER_DLFCN])dnl
  1622. if test "x$enable_dlopen" != xyes; then
  1623. enable_dlopen=unknown
  1624. enable_dlopen_self=unknown
  1625. enable_dlopen_self_static=unknown
  1626. else
  1627. lt_cv_dlopen=no
  1628. lt_cv_dlopen_libs=
  1629. case $host_os in
  1630. beos*)
  1631. lt_cv_dlopen="load_add_on"
  1632. lt_cv_dlopen_libs=
  1633. lt_cv_dlopen_self=yes
  1634. ;;
  1635. mingw* | pw32* | cegcc*)
  1636. lt_cv_dlopen="LoadLibrary"
  1637. lt_cv_dlopen_libs=
  1638. ;;
  1639. cygwin*)
  1640. lt_cv_dlopen="dlopen"
  1641. lt_cv_dlopen_libs=
  1642. ;;
  1643. darwin*)
  1644. # if libdl is installed we need to link against it
  1645. AC_CHECK_LIB([dl], [dlopen],
  1646. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1647. lt_cv_dlopen="dyld"
  1648. lt_cv_dlopen_libs=
  1649. lt_cv_dlopen_self=yes
  1650. ])
  1651. ;;
  1652. *)
  1653. AC_CHECK_FUNC([shl_load],
  1654. [lt_cv_dlopen="shl_load"],
  1655. [AC_CHECK_LIB([dld], [shl_load],
  1656. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1657. [AC_CHECK_FUNC([dlopen],
  1658. [lt_cv_dlopen="dlopen"],
  1659. [AC_CHECK_LIB([dl], [dlopen],
  1660. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1661. [AC_CHECK_LIB([svld], [dlopen],
  1662. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1663. [AC_CHECK_LIB([dld], [dld_link],
  1664. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1665. ])
  1666. ])
  1667. ])
  1668. ])
  1669. ])
  1670. ;;
  1671. esac
  1672. if test "x$lt_cv_dlopen" != xno; then
  1673. enable_dlopen=yes
  1674. else
  1675. enable_dlopen=no
  1676. fi
  1677. case $lt_cv_dlopen in
  1678. dlopen)
  1679. save_CPPFLAGS="$CPPFLAGS"
  1680. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1681. save_LDFLAGS="$LDFLAGS"
  1682. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1683. save_LIBS="$LIBS"
  1684. LIBS="$lt_cv_dlopen_libs $LIBS"
  1685. AC_CACHE_CHECK([whether a program can dlopen itself],
  1686. lt_cv_dlopen_self, [dnl
  1687. _LT_TRY_DLOPEN_SELF(
  1688. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1689. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1690. ])
  1691. if test "x$lt_cv_dlopen_self" = xyes; then
  1692. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1693. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1694. lt_cv_dlopen_self_static, [dnl
  1695. _LT_TRY_DLOPEN_SELF(
  1696. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1697. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1698. ])
  1699. fi
  1700. CPPFLAGS="$save_CPPFLAGS"
  1701. LDFLAGS="$save_LDFLAGS"
  1702. LIBS="$save_LIBS"
  1703. ;;
  1704. esac
  1705. case $lt_cv_dlopen_self in
  1706. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1707. *) enable_dlopen_self=unknown ;;
  1708. esac
  1709. case $lt_cv_dlopen_self_static in
  1710. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1711. *) enable_dlopen_self_static=unknown ;;
  1712. esac
  1713. fi
  1714. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1715. [Whether dlopen is supported])
  1716. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1717. [Whether dlopen of programs is supported])
  1718. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1719. [Whether dlopen of statically linked programs is supported])
  1720. ])# LT_SYS_DLOPEN_SELF
  1721. # Old name:
  1722. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1723. dnl aclocal-1.4 backwards compatibility:
  1724. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1725. # _LT_COMPILER_C_O([TAGNAME])
  1726. # ---------------------------
  1727. # Check to see if options -c and -o are simultaneously supported by compiler.
  1728. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1729. m4_defun([_LT_COMPILER_C_O],
  1730. [m4_require([_LT_DECL_SED])dnl
  1731. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1732. m4_require([_LT_TAG_COMPILER])dnl
  1733. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1734. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1735. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1736. $RM -r conftest 2>/dev/null
  1737. mkdir conftest
  1738. cd conftest
  1739. mkdir out
  1740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1742. # Insert the option either (1) after the last *FLAGS variable, or
  1743. # (2) before a word containing "conftest.", or (3) at the end.
  1744. # Note that $ac_compile itself does not contain backslashes and begins
  1745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1746. lt_compile=`echo "$ac_compile" | $SED \
  1747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1748. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1749. -e 's:$: $lt_compiler_flag:'`
  1750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1751. (eval "$lt_compile" 2>out/conftest.err)
  1752. ac_status=$?
  1753. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1754. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1756. then
  1757. # The compiler can only warn and ignore the option if not recognized
  1758. # So say no if there are warnings
  1759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1762. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1763. fi
  1764. fi
  1765. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1766. $RM conftest*
  1767. # SGI C++ compiler will create directory out/ii_files/ for
  1768. # template instantiation
  1769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1770. $RM out/* && rmdir out
  1771. cd ..
  1772. $RM -r conftest
  1773. $RM conftest*
  1774. ])
  1775. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1776. [Does compiler simultaneously support -c and -o options?])
  1777. ])# _LT_COMPILER_C_O
  1778. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1779. # ----------------------------------
  1780. # Check to see if we can do hard links to lock some files if needed
  1781. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1782. [m4_require([_LT_ENABLE_LOCK])dnl
  1783. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1784. _LT_COMPILER_C_O([$1])
  1785. hard_links="nottested"
  1786. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1787. # do not overwrite the value of need_locks provided by the user
  1788. AC_MSG_CHECKING([if we can lock with hard links])
  1789. hard_links=yes
  1790. $RM conftest*
  1791. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1792. touch conftest.a
  1793. ln conftest.a conftest.b 2>&5 || hard_links=no
  1794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1795. AC_MSG_RESULT([$hard_links])
  1796. if test "$hard_links" = no; then
  1797. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1798. need_locks=warn
  1799. fi
  1800. else
  1801. need_locks=no
  1802. fi
  1803. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1804. ])# _LT_COMPILER_FILE_LOCKS
  1805. # _LT_CHECK_OBJDIR
  1806. # ----------------
  1807. m4_defun([_LT_CHECK_OBJDIR],
  1808. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1809. [rm -f .libs 2>/dev/null
  1810. mkdir .libs 2>/dev/null
  1811. if test -d .libs; then
  1812. lt_cv_objdir=.libs
  1813. else
  1814. # MS-DOS does not allow filenames that begin with a dot.
  1815. lt_cv_objdir=_libs
  1816. fi
  1817. rmdir .libs 2>/dev/null])
  1818. objdir=$lt_cv_objdir
  1819. _LT_DECL([], [objdir], [0],
  1820. [The name of the directory that contains temporary libtool files])dnl
  1821. m4_pattern_allow([LT_OBJDIR])dnl
  1822. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1823. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1824. ])# _LT_CHECK_OBJDIR
  1825. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1826. # --------------------------------------
  1827. # Check hardcoding attributes.
  1828. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1829. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1830. _LT_TAGVAR(hardcode_action, $1)=
  1831. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1832. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1833. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1834. # We can hardcode non-existent directories.
  1835. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1836. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1837. # have to relink, otherwise we might link with an installed library
  1838. # when we should be linking with a yet-to-be-installed one
  1839. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1840. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1841. # Linking always hardcodes the temporary library directory.
  1842. _LT_TAGVAR(hardcode_action, $1)=relink
  1843. else
  1844. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1845. _LT_TAGVAR(hardcode_action, $1)=immediate
  1846. fi
  1847. else
  1848. # We cannot hardcode anything, or else we can only hardcode existing
  1849. # directories.
  1850. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1851. fi
  1852. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1853. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1854. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1855. # Fast installation is not supported
  1856. enable_fast_install=no
  1857. elif test "$shlibpath_overrides_runpath" = yes ||
  1858. test "$enable_shared" = no; then
  1859. # Fast installation is not necessary
  1860. enable_fast_install=needless
  1861. fi
  1862. _LT_TAGDECL([], [hardcode_action], [0],
  1863. [How to hardcode a shared library path into an executable])
  1864. ])# _LT_LINKER_HARDCODE_LIBPATH
  1865. # _LT_CMD_STRIPLIB
  1866. # ----------------
  1867. m4_defun([_LT_CMD_STRIPLIB],
  1868. [m4_require([_LT_DECL_EGREP])
  1869. striplib=
  1870. old_striplib=
  1871. AC_MSG_CHECKING([whether stripping libraries is possible])
  1872. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1873. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1874. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1875. AC_MSG_RESULT([yes])
  1876. else
  1877. # FIXME - insert some real tests, host_os isn't really good enough
  1878. case $host_os in
  1879. darwin*)
  1880. if test -n "$STRIP" ; then
  1881. striplib="$STRIP -x"
  1882. old_striplib="$STRIP -S"
  1883. AC_MSG_RESULT([yes])
  1884. else
  1885. AC_MSG_RESULT([no])
  1886. fi
  1887. ;;
  1888. *)
  1889. AC_MSG_RESULT([no])
  1890. ;;
  1891. esac
  1892. fi
  1893. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1894. _LT_DECL([], [striplib], [1])
  1895. ])# _LT_CMD_STRIPLIB
  1896. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1897. # -----------------------------
  1898. # PORTME Fill in your ld.so characteristics
  1899. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1900. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1901. m4_require([_LT_DECL_EGREP])dnl
  1902. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1903. m4_require([_LT_DECL_OBJDUMP])dnl
  1904. m4_require([_LT_DECL_SED])dnl
  1905. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1906. AC_MSG_CHECKING([dynamic linker characteristics])
  1907. m4_if([$1],
  1908. [], [
  1909. if test "$GCC" = yes; then
  1910. case $host_os in
  1911. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1912. *) lt_awk_arg="/^libraries:/" ;;
  1913. esac
  1914. case $host_os in
  1915. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1916. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1917. esac
  1918. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1919. case $lt_search_path_spec in
  1920. *\;*)
  1921. # if the path contains ";" then we assume it to be the separator
  1922. # otherwise default to the standard path separator (i.e. ":") - it is
  1923. # assumed that no part of a normal pathname contains ";" but that should
  1924. # okay in the real world where ";" in dirpaths is itself problematic.
  1925. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1926. ;;
  1927. *)
  1928. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1929. ;;
  1930. esac
  1931. # Ok, now we have the path, separated by spaces, we can step through it
  1932. # and add multilib dir if necessary.
  1933. lt_tmp_lt_search_path_spec=
  1934. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1935. for lt_sys_path in $lt_search_path_spec; do
  1936. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1937. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1938. else
  1939. test -d "$lt_sys_path" && \
  1940. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1941. fi
  1942. done
  1943. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1944. BEGIN {RS=" "; FS="/|\n";} {
  1945. lt_foo="";
  1946. lt_count=0;
  1947. for (lt_i = NF; lt_i > 0; lt_i--) {
  1948. if ($lt_i != "" && $lt_i != ".") {
  1949. if ($lt_i == "..") {
  1950. lt_count++;
  1951. } else {
  1952. if (lt_count == 0) {
  1953. lt_foo="/" $lt_i lt_foo;
  1954. } else {
  1955. lt_count--;
  1956. }
  1957. }
  1958. }
  1959. }
  1960. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1961. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1962. }'`
  1963. # AWK program above erroneously prepends '/' to C:/dos/paths
  1964. # for these hosts.
  1965. case $host_os in
  1966. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1967. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1968. esac
  1969. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1970. else
  1971. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1972. fi])
  1973. library_names_spec=
  1974. libname_spec='lib$name'
  1975. soname_spec=
  1976. shrext_cmds=".so"
  1977. postinstall_cmds=
  1978. postuninstall_cmds=
  1979. finish_cmds=
  1980. finish_eval=
  1981. shlibpath_var=
  1982. shlibpath_overrides_runpath=unknown
  1983. version_type=none
  1984. dynamic_linker="$host_os ld.so"
  1985. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1986. need_lib_prefix=unknown
  1987. hardcode_into_libs=no
  1988. # when you set need_version to no, make sure it does not cause -set_version
  1989. # flags to be left without arguments
  1990. need_version=unknown
  1991. case $host_os in
  1992. aix3*)
  1993. version_type=linux # correct to gnu/linux during the next big refactor
  1994. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1995. shlibpath_var=LIBPATH
  1996. # AIX 3 has no versioning support, so we append a major version to the name.
  1997. soname_spec='${libname}${release}${shared_ext}$major'
  1998. ;;
  1999. aix[[4-9]]*)
  2000. version_type=linux # correct to gnu/linux during the next big refactor
  2001. need_lib_prefix=no
  2002. need_version=no
  2003. hardcode_into_libs=yes
  2004. if test "$host_cpu" = ia64; then
  2005. # AIX 5 supports IA64
  2006. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2007. shlibpath_var=LD_LIBRARY_PATH
  2008. else
  2009. # With GCC up to 2.95.x, collect2 would create an import file
  2010. # for dependence libraries. The import file would start with
  2011. # the line `#! .'. This would cause the generated library to
  2012. # depend on `.', always an invalid library. This was fixed in
  2013. # development snapshots of GCC prior to 3.0.
  2014. case $host_os in
  2015. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2016. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2017. echo ' yes '
  2018. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2019. :
  2020. else
  2021. can_build_shared=no
  2022. fi
  2023. ;;
  2024. esac
  2025. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2026. # soname into executable. Probably we can add versioning support to
  2027. # collect2, so additional links can be useful in future.
  2028. if test "$aix_use_runtimelinking" = yes; then
  2029. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2030. # instead of lib<name>.a to let people know that these are not
  2031. # typical AIX shared libraries.
  2032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2033. else
  2034. # We preserve .a as extension for shared libraries through AIX4.2
  2035. # and later when we are not doing run time linking.
  2036. library_names_spec='${libname}${release}.a $libname.a'
  2037. soname_spec='${libname}${release}${shared_ext}$major'
  2038. fi
  2039. shlibpath_var=LIBPATH
  2040. fi
  2041. ;;
  2042. amigaos*)
  2043. case $host_cpu in
  2044. powerpc)
  2045. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2046. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2048. ;;
  2049. m68k)
  2050. library_names_spec='$libname.ixlibrary $libname.a'
  2051. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2052. 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'
  2053. ;;
  2054. esac
  2055. ;;
  2056. beos*)
  2057. library_names_spec='${libname}${shared_ext}'
  2058. dynamic_linker="$host_os ld.so"
  2059. shlibpath_var=LIBRARY_PATH
  2060. ;;
  2061. bsdi[[45]]*)
  2062. version_type=linux # correct to gnu/linux during the next big refactor
  2063. need_version=no
  2064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2065. soname_spec='${libname}${release}${shared_ext}$major'
  2066. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2067. shlibpath_var=LD_LIBRARY_PATH
  2068. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2069. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2070. # the default ld.so.conf also contains /usr/contrib/lib and
  2071. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2072. # libtool to hard-code these into programs
  2073. ;;
  2074. cygwin* | mingw* | pw32* | cegcc*)
  2075. version_type=windows
  2076. shrext_cmds=".dll"
  2077. need_version=no
  2078. need_lib_prefix=no
  2079. case $GCC,$cc_basename in
  2080. yes,*)
  2081. # gcc
  2082. library_names_spec='$libname.dll.a'
  2083. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2084. postinstall_cmds='base_file=`basename \${file}`~
  2085. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2086. dldir=$destdir/`dirname \$dlpath`~
  2087. test -d \$dldir || mkdir -p \$dldir~
  2088. $install_prog $dir/$dlname \$dldir/$dlname~
  2089. chmod a+x \$dldir/$dlname~
  2090. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2091. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2092. fi'
  2093. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2094. dlpath=$dir/\$dldll~
  2095. $RM \$dlpath'
  2096. shlibpath_overrides_runpath=yes
  2097. case $host_os in
  2098. cygwin*)
  2099. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2100. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2101. m4_if([$1], [],[
  2102. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2103. ;;
  2104. mingw* | cegcc*)
  2105. # MinGW DLLs use traditional 'lib' prefix
  2106. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2107. ;;
  2108. pw32*)
  2109. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2110. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2111. ;;
  2112. esac
  2113. dynamic_linker='Win32 ld.exe'
  2114. ;;
  2115. *,cl*)
  2116. # Native MSVC
  2117. libname_spec='$name'
  2118. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2119. library_names_spec='${libname}.dll.lib'
  2120. case $build_os in
  2121. mingw*)
  2122. sys_lib_search_path_spec=
  2123. lt_save_ifs=$IFS
  2124. IFS=';'
  2125. for lt_path in $LIB
  2126. do
  2127. IFS=$lt_save_ifs
  2128. # Let DOS variable expansion print the short 8.3 style file name.
  2129. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2130. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2131. done
  2132. IFS=$lt_save_ifs
  2133. # Convert to MSYS style.
  2134. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2135. ;;
  2136. cygwin*)
  2137. # Convert to unix form, then to dos form, then back to unix form
  2138. # but this time dos style (no spaces!) so that the unix form looks
  2139. # like /cygdrive/c/PROGRA~1:/cygdr...
  2140. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2141. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2142. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2143. ;;
  2144. *)
  2145. sys_lib_search_path_spec="$LIB"
  2146. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2147. # It is most probably a Windows format PATH.
  2148. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2149. else
  2150. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2151. fi
  2152. # FIXME: find the short name or the path components, as spaces are
  2153. # common. (e.g. "Program Files" -> "PROGRA~1")
  2154. ;;
  2155. esac
  2156. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2157. postinstall_cmds='base_file=`basename \${file}`~
  2158. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2159. dldir=$destdir/`dirname \$dlpath`~
  2160. test -d \$dldir || mkdir -p \$dldir~
  2161. $install_prog $dir/$dlname \$dldir/$dlname'
  2162. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2163. dlpath=$dir/\$dldll~
  2164. $RM \$dlpath'
  2165. shlibpath_overrides_runpath=yes
  2166. dynamic_linker='Win32 link.exe'
  2167. ;;
  2168. *)
  2169. # Assume MSVC wrapper
  2170. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2171. dynamic_linker='Win32 ld.exe'
  2172. ;;
  2173. esac
  2174. # FIXME: first we should search . and the directory the executable is in
  2175. shlibpath_var=PATH
  2176. ;;
  2177. darwin* | rhapsody*)
  2178. dynamic_linker="$host_os dyld"
  2179. version_type=darwin
  2180. need_lib_prefix=no
  2181. need_version=no
  2182. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2183. soname_spec='${libname}${release}${major}$shared_ext'
  2184. shlibpath_overrides_runpath=yes
  2185. shlibpath_var=DYLD_LIBRARY_PATH
  2186. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2187. m4_if([$1], [],[
  2188. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2189. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2190. ;;
  2191. dgux*)
  2192. version_type=linux # correct to gnu/linux during the next big refactor
  2193. need_lib_prefix=no
  2194. need_version=no
  2195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2196. soname_spec='${libname}${release}${shared_ext}$major'
  2197. shlibpath_var=LD_LIBRARY_PATH
  2198. ;;
  2199. freebsd* | dragonfly*)
  2200. # DragonFly does not have aout. When/if they implement a new
  2201. # versioning mechanism, adjust this.
  2202. if test -x /usr/bin/objformat; then
  2203. objformat=`/usr/bin/objformat`
  2204. else
  2205. case $host_os in
  2206. freebsd[[23]].*) objformat=aout ;;
  2207. *) objformat=elf ;;
  2208. esac
  2209. fi
  2210. version_type=freebsd-$objformat
  2211. case $version_type in
  2212. freebsd-elf*)
  2213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2214. need_version=no
  2215. need_lib_prefix=no
  2216. ;;
  2217. freebsd-*)
  2218. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2219. need_version=yes
  2220. ;;
  2221. esac
  2222. shlibpath_var=LD_LIBRARY_PATH
  2223. case $host_os in
  2224. freebsd2.*)
  2225. shlibpath_overrides_runpath=yes
  2226. ;;
  2227. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2228. shlibpath_overrides_runpath=yes
  2229. hardcode_into_libs=yes
  2230. ;;
  2231. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2232. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2233. shlibpath_overrides_runpath=no
  2234. hardcode_into_libs=yes
  2235. ;;
  2236. *) # from 4.6 on, and DragonFly
  2237. shlibpath_overrides_runpath=yes
  2238. hardcode_into_libs=yes
  2239. ;;
  2240. esac
  2241. ;;
  2242. gnu*)
  2243. version_type=linux # correct to gnu/linux during the next big refactor
  2244. need_lib_prefix=no
  2245. need_version=no
  2246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2247. soname_spec='${libname}${release}${shared_ext}$major'
  2248. shlibpath_var=LD_LIBRARY_PATH
  2249. shlibpath_overrides_runpath=no
  2250. hardcode_into_libs=yes
  2251. ;;
  2252. haiku*)
  2253. version_type=linux # correct to gnu/linux during the next big refactor
  2254. need_lib_prefix=no
  2255. need_version=no
  2256. dynamic_linker="$host_os runtime_loader"
  2257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2258. soname_spec='${libname}${release}${shared_ext}$major'
  2259. shlibpath_var=LIBRARY_PATH
  2260. shlibpath_overrides_runpath=yes
  2261. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2262. hardcode_into_libs=yes
  2263. ;;
  2264. hpux9* | hpux10* | hpux11*)
  2265. # Give a soname corresponding to the major version so that dld.sl refuses to
  2266. # link against other versions.
  2267. version_type=sunos
  2268. need_lib_prefix=no
  2269. need_version=no
  2270. case $host_cpu in
  2271. ia64*)
  2272. shrext_cmds='.so'
  2273. hardcode_into_libs=yes
  2274. dynamic_linker="$host_os dld.so"
  2275. shlibpath_var=LD_LIBRARY_PATH
  2276. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2278. soname_spec='${libname}${release}${shared_ext}$major'
  2279. if test "X$HPUX_IA64_MODE" = X32; then
  2280. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2281. else
  2282. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2283. fi
  2284. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2285. ;;
  2286. hppa*64*)
  2287. shrext_cmds='.sl'
  2288. hardcode_into_libs=yes
  2289. dynamic_linker="$host_os dld.sl"
  2290. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2291. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2293. soname_spec='${libname}${release}${shared_ext}$major'
  2294. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2295. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2296. ;;
  2297. *)
  2298. shrext_cmds='.sl'
  2299. dynamic_linker="$host_os dld.sl"
  2300. shlibpath_var=SHLIB_PATH
  2301. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2303. soname_spec='${libname}${release}${shared_ext}$major'
  2304. ;;
  2305. esac
  2306. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2307. postinstall_cmds='chmod 555 $lib'
  2308. # or fails outright, so override atomically:
  2309. install_override_mode=555
  2310. ;;
  2311. interix[[3-9]]*)
  2312. version_type=linux # correct to gnu/linux during the next big refactor
  2313. need_lib_prefix=no
  2314. need_version=no
  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. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2318. shlibpath_var=LD_LIBRARY_PATH
  2319. shlibpath_overrides_runpath=no
  2320. hardcode_into_libs=yes
  2321. ;;
  2322. irix5* | irix6* | nonstopux*)
  2323. case $host_os in
  2324. nonstopux*) version_type=nonstopux ;;
  2325. *)
  2326. if test "$lt_cv_prog_gnu_ld" = yes; then
  2327. version_type=linux # correct to gnu/linux during the next big refactor
  2328. else
  2329. version_type=irix
  2330. fi ;;
  2331. esac
  2332. need_lib_prefix=no
  2333. need_version=no
  2334. soname_spec='${libname}${release}${shared_ext}$major'
  2335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2336. case $host_os in
  2337. irix5* | nonstopux*)
  2338. libsuff= shlibsuff=
  2339. ;;
  2340. *)
  2341. case $LD in # libtool.m4 will add one of these switches to LD
  2342. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2343. libsuff= shlibsuff= libmagic=32-bit;;
  2344. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2345. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2346. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2347. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2348. *) libsuff= shlibsuff= libmagic=never-match;;
  2349. esac
  2350. ;;
  2351. esac
  2352. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2353. shlibpath_overrides_runpath=no
  2354. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2355. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2356. hardcode_into_libs=yes
  2357. ;;
  2358. # No shared lib support for Linux oldld, aout, or coff.
  2359. linux*oldld* | linux*aout* | linux*coff*)
  2360. dynamic_linker=no
  2361. ;;
  2362. # This must be glibc/ELF.
  2363. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2364. version_type=linux # correct to gnu/linux during the next big refactor
  2365. need_lib_prefix=no
  2366. need_version=no
  2367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2368. soname_spec='${libname}${release}${shared_ext}$major'
  2369. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2370. shlibpath_var=LD_LIBRARY_PATH
  2371. shlibpath_overrides_runpath=no
  2372. # Some binutils ld are patched to set DT_RUNPATH
  2373. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2374. [lt_cv_shlibpath_overrides_runpath=no
  2375. save_LDFLAGS=$LDFLAGS
  2376. save_libdir=$libdir
  2377. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2378. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2379. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2380. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2381. [lt_cv_shlibpath_overrides_runpath=yes])])
  2382. LDFLAGS=$save_LDFLAGS
  2383. libdir=$save_libdir
  2384. ])
  2385. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2386. # This implies no fast_install, which is unacceptable.
  2387. # Some rework will be needed to allow for fast_install
  2388. # before this can be enabled.
  2389. hardcode_into_libs=yes
  2390. # Append ld.so.conf contents to the search path
  2391. if test -f /etc/ld.so.conf; then
  2392. 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' ' '`
  2393. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2394. fi
  2395. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2396. # powerpc, because MkLinux only supported shared libraries with the
  2397. # GNU dynamic linker. Since this was broken with cross compilers,
  2398. # most powerpc-linux boxes support dynamic linking these days and
  2399. # people can always --disable-shared, the test was removed, and we
  2400. # assume the GNU/Linux dynamic linker is in use.
  2401. dynamic_linker='GNU/Linux ld.so'
  2402. ;;
  2403. netbsdelf*-gnu)
  2404. version_type=linux
  2405. need_lib_prefix=no
  2406. need_version=no
  2407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2408. soname_spec='${libname}${release}${shared_ext}$major'
  2409. shlibpath_var=LD_LIBRARY_PATH
  2410. shlibpath_overrides_runpath=no
  2411. hardcode_into_libs=yes
  2412. dynamic_linker='NetBSD ld.elf_so'
  2413. ;;
  2414. netbsd*)
  2415. version_type=sunos
  2416. need_lib_prefix=no
  2417. need_version=no
  2418. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2421. dynamic_linker='NetBSD (a.out) ld.so'
  2422. else
  2423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2424. soname_spec='${libname}${release}${shared_ext}$major'
  2425. dynamic_linker='NetBSD ld.elf_so'
  2426. fi
  2427. shlibpath_var=LD_LIBRARY_PATH
  2428. shlibpath_overrides_runpath=yes
  2429. hardcode_into_libs=yes
  2430. ;;
  2431. newsos6)
  2432. version_type=linux # correct to gnu/linux during the next big refactor
  2433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2434. shlibpath_var=LD_LIBRARY_PATH
  2435. shlibpath_overrides_runpath=yes
  2436. ;;
  2437. *nto* | *qnx*)
  2438. version_type=qnx
  2439. need_lib_prefix=no
  2440. need_version=no
  2441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2442. soname_spec='${libname}${release}${shared_ext}$major'
  2443. shlibpath_var=LD_LIBRARY_PATH
  2444. shlibpath_overrides_runpath=no
  2445. hardcode_into_libs=yes
  2446. dynamic_linker='ldqnx.so'
  2447. ;;
  2448. openbsd*)
  2449. version_type=sunos
  2450. sys_lib_dlsearch_path_spec="/usr/lib"
  2451. need_lib_prefix=no
  2452. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2453. case $host_os in
  2454. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2455. *) need_version=no ;;
  2456. esac
  2457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2458. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2459. shlibpath_var=LD_LIBRARY_PATH
  2460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2461. case $host_os in
  2462. openbsd2.[[89]] | openbsd2.[[89]].*)
  2463. shlibpath_overrides_runpath=no
  2464. ;;
  2465. *)
  2466. shlibpath_overrides_runpath=yes
  2467. ;;
  2468. esac
  2469. else
  2470. shlibpath_overrides_runpath=yes
  2471. fi
  2472. ;;
  2473. os2*)
  2474. libname_spec='$name'
  2475. shrext_cmds=".dll"
  2476. need_lib_prefix=no
  2477. library_names_spec='$libname${shared_ext} $libname.a'
  2478. dynamic_linker='OS/2 ld.exe'
  2479. shlibpath_var=LIBPATH
  2480. ;;
  2481. osf3* | osf4* | osf5*)
  2482. version_type=osf
  2483. need_lib_prefix=no
  2484. need_version=no
  2485. soname_spec='${libname}${release}${shared_ext}$major'
  2486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2487. shlibpath_var=LD_LIBRARY_PATH
  2488. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2489. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2490. ;;
  2491. rdos*)
  2492. dynamic_linker=no
  2493. ;;
  2494. solaris*)
  2495. version_type=linux # correct to gnu/linux during the next big refactor
  2496. need_lib_prefix=no
  2497. need_version=no
  2498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2499. soname_spec='${libname}${release}${shared_ext}$major'
  2500. shlibpath_var=LD_LIBRARY_PATH
  2501. shlibpath_overrides_runpath=yes
  2502. hardcode_into_libs=yes
  2503. # ldd complains unless libraries are executable
  2504. postinstall_cmds='chmod +x $lib'
  2505. ;;
  2506. sunos4*)
  2507. version_type=sunos
  2508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2509. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2510. shlibpath_var=LD_LIBRARY_PATH
  2511. shlibpath_overrides_runpath=yes
  2512. if test "$with_gnu_ld" = yes; then
  2513. need_lib_prefix=no
  2514. fi
  2515. need_version=yes
  2516. ;;
  2517. sysv4 | sysv4.3*)
  2518. version_type=linux # correct to gnu/linux during the next big refactor
  2519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2520. soname_spec='${libname}${release}${shared_ext}$major'
  2521. shlibpath_var=LD_LIBRARY_PATH
  2522. case $host_vendor in
  2523. sni)
  2524. shlibpath_overrides_runpath=no
  2525. need_lib_prefix=no
  2526. runpath_var=LD_RUN_PATH
  2527. ;;
  2528. siemens)
  2529. need_lib_prefix=no
  2530. ;;
  2531. motorola)
  2532. need_lib_prefix=no
  2533. need_version=no
  2534. shlibpath_overrides_runpath=no
  2535. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2536. ;;
  2537. esac
  2538. ;;
  2539. sysv4*MP*)
  2540. if test -d /usr/nec ;then
  2541. version_type=linux # correct to gnu/linux during the next big refactor
  2542. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2543. soname_spec='$libname${shared_ext}.$major'
  2544. shlibpath_var=LD_LIBRARY_PATH
  2545. fi
  2546. ;;
  2547. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2548. version_type=freebsd-elf
  2549. need_lib_prefix=no
  2550. need_version=no
  2551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2552. soname_spec='${libname}${release}${shared_ext}$major'
  2553. shlibpath_var=LD_LIBRARY_PATH
  2554. shlibpath_overrides_runpath=yes
  2555. hardcode_into_libs=yes
  2556. if test "$with_gnu_ld" = yes; then
  2557. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2558. else
  2559. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2560. case $host_os in
  2561. sco3.2v5*)
  2562. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2563. ;;
  2564. esac
  2565. fi
  2566. sys_lib_dlsearch_path_spec='/usr/lib'
  2567. ;;
  2568. tpf*)
  2569. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2570. version_type=linux # correct to gnu/linux during the next big refactor
  2571. need_lib_prefix=no
  2572. need_version=no
  2573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2574. shlibpath_var=LD_LIBRARY_PATH
  2575. shlibpath_overrides_runpath=no
  2576. hardcode_into_libs=yes
  2577. ;;
  2578. uts4*)
  2579. version_type=linux # correct to gnu/linux during the next big refactor
  2580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2581. soname_spec='${libname}${release}${shared_ext}$major'
  2582. shlibpath_var=LD_LIBRARY_PATH
  2583. ;;
  2584. *)
  2585. dynamic_linker=no
  2586. ;;
  2587. esac
  2588. AC_MSG_RESULT([$dynamic_linker])
  2589. test "$dynamic_linker" = no && can_build_shared=no
  2590. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2591. if test "$GCC" = yes; then
  2592. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2593. fi
  2594. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2595. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2596. fi
  2597. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2598. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2599. fi
  2600. _LT_DECL([], [variables_saved_for_relink], [1],
  2601. [Variables whose values should be saved in libtool wrapper scripts and
  2602. restored at link time])
  2603. _LT_DECL([], [need_lib_prefix], [0],
  2604. [Do we need the "lib" prefix for modules?])
  2605. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2606. _LT_DECL([], [version_type], [0], [Library versioning type])
  2607. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2608. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2609. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2610. [Is shlibpath searched before the hard-coded library search path?])
  2611. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2612. _LT_DECL([], [library_names_spec], [1],
  2613. [[List of archive names. First name is the real one, the rest are links.
  2614. The last name is the one that the linker finds with -lNAME]])
  2615. _LT_DECL([], [soname_spec], [1],
  2616. [[The coded name of the library, if different from the real name]])
  2617. _LT_DECL([], [install_override_mode], [1],
  2618. [Permission mode override for installation of shared libraries])
  2619. _LT_DECL([], [postinstall_cmds], [2],
  2620. [Command to use after installation of a shared archive])
  2621. _LT_DECL([], [postuninstall_cmds], [2],
  2622. [Command to use after uninstallation of a shared archive])
  2623. _LT_DECL([], [finish_cmds], [2],
  2624. [Commands used to finish a libtool library installation in a directory])
  2625. _LT_DECL([], [finish_eval], [1],
  2626. [[As "finish_cmds", except a single script fragment to be evaled but
  2627. not shown]])
  2628. _LT_DECL([], [hardcode_into_libs], [0],
  2629. [Whether we should hardcode library paths into libraries])
  2630. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2631. [Compile-time system search path for libraries])
  2632. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2633. [Run-time system search path for libraries])
  2634. ])# _LT_SYS_DYNAMIC_LINKER
  2635. # _LT_PATH_TOOL_PREFIX(TOOL)
  2636. # --------------------------
  2637. # find a file program which can recognize shared library
  2638. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2639. [m4_require([_LT_DECL_EGREP])dnl
  2640. AC_MSG_CHECKING([for $1])
  2641. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2642. [case $MAGIC_CMD in
  2643. [[\\/*] | ?:[\\/]*])
  2644. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2645. ;;
  2646. *)
  2647. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2648. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2649. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2650. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2651. dnl not every word. This closes a longstanding sh security hole.
  2652. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2653. for ac_dir in $ac_dummy; do
  2654. IFS="$lt_save_ifs"
  2655. test -z "$ac_dir" && ac_dir=.
  2656. if test -f $ac_dir/$1; then
  2657. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2658. if test -n "$file_magic_test_file"; then
  2659. case $deplibs_check_method in
  2660. "file_magic "*)
  2661. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2662. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2663. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2664. $EGREP "$file_magic_regex" > /dev/null; then
  2665. :
  2666. else
  2667. cat <<_LT_EOF 1>&2
  2668. *** Warning: the command libtool uses to detect shared libraries,
  2669. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2670. *** The result is that libtool may fail to recognize shared libraries
  2671. *** as such. This will affect the creation of libtool libraries that
  2672. *** depend on shared libraries, but programs linked with such libtool
  2673. *** libraries will work regardless of this problem. Nevertheless, you
  2674. *** may want to report the problem to your system manager and/or to
  2675. *** bug-libtool@gnu.org
  2676. _LT_EOF
  2677. fi ;;
  2678. esac
  2679. fi
  2680. break
  2681. fi
  2682. done
  2683. IFS="$lt_save_ifs"
  2684. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2685. ;;
  2686. esac])
  2687. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2688. if test -n "$MAGIC_CMD"; then
  2689. AC_MSG_RESULT($MAGIC_CMD)
  2690. else
  2691. AC_MSG_RESULT(no)
  2692. fi
  2693. _LT_DECL([], [MAGIC_CMD], [0],
  2694. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2695. ])# _LT_PATH_TOOL_PREFIX
  2696. # Old name:
  2697. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2698. dnl aclocal-1.4 backwards compatibility:
  2699. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2700. # _LT_PATH_MAGIC
  2701. # --------------
  2702. # find a file program which can recognize a shared library
  2703. m4_defun([_LT_PATH_MAGIC],
  2704. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2705. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2706. if test -n "$ac_tool_prefix"; then
  2707. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2708. else
  2709. MAGIC_CMD=:
  2710. fi
  2711. fi
  2712. ])# _LT_PATH_MAGIC
  2713. # LT_PATH_LD
  2714. # ----------
  2715. # find the pathname to the GNU or non-GNU linker
  2716. AC_DEFUN([LT_PATH_LD],
  2717. [AC_REQUIRE([AC_PROG_CC])dnl
  2718. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2719. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2720. m4_require([_LT_DECL_SED])dnl
  2721. m4_require([_LT_DECL_EGREP])dnl
  2722. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2723. AC_ARG_WITH([gnu-ld],
  2724. [AS_HELP_STRING([--with-gnu-ld],
  2725. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2726. [test "$withval" = no || with_gnu_ld=yes],
  2727. [with_gnu_ld=no])dnl
  2728. ac_prog=ld
  2729. if test "$GCC" = yes; then
  2730. # Check if gcc -print-prog-name=ld gives a path.
  2731. AC_MSG_CHECKING([for ld used by $CC])
  2732. case $host in
  2733. *-*-mingw*)
  2734. # gcc leaves a trailing carriage return which upsets mingw
  2735. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2736. *)
  2737. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2738. esac
  2739. case $ac_prog in
  2740. # Accept absolute paths.
  2741. [[\\/]]* | ?:[[\\/]]*)
  2742. re_direlt='/[[^/]][[^/]]*/\.\./'
  2743. # Canonicalize the pathname of ld
  2744. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2745. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2746. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2747. done
  2748. test -z "$LD" && LD="$ac_prog"
  2749. ;;
  2750. "")
  2751. # If it fails, then pretend we aren't using GCC.
  2752. ac_prog=ld
  2753. ;;
  2754. *)
  2755. # If it is relative, then search for the first ld in PATH.
  2756. with_gnu_ld=unknown
  2757. ;;
  2758. esac
  2759. elif test "$with_gnu_ld" = yes; then
  2760. AC_MSG_CHECKING([for GNU ld])
  2761. else
  2762. AC_MSG_CHECKING([for non-GNU ld])
  2763. fi
  2764. AC_CACHE_VAL(lt_cv_path_LD,
  2765. [if test -z "$LD"; then
  2766. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2767. for ac_dir in $PATH; do
  2768. IFS="$lt_save_ifs"
  2769. test -z "$ac_dir" && ac_dir=.
  2770. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2771. lt_cv_path_LD="$ac_dir/$ac_prog"
  2772. # Check to see if the program is GNU ld. I'd rather use --version,
  2773. # but apparently some variants of GNU ld only accept -v.
  2774. # Break only if it was the GNU/non-GNU ld that we prefer.
  2775. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2776. *GNU* | *'with BFD'*)
  2777. test "$with_gnu_ld" != no && break
  2778. ;;
  2779. *)
  2780. test "$with_gnu_ld" != yes && break
  2781. ;;
  2782. esac
  2783. fi
  2784. done
  2785. IFS="$lt_save_ifs"
  2786. else
  2787. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2788. fi])
  2789. LD="$lt_cv_path_LD"
  2790. if test -n "$LD"; then
  2791. AC_MSG_RESULT($LD)
  2792. else
  2793. AC_MSG_RESULT(no)
  2794. fi
  2795. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2796. _LT_PATH_LD_GNU
  2797. AC_SUBST([LD])
  2798. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2799. ])# LT_PATH_LD
  2800. # Old names:
  2801. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2802. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2803. dnl aclocal-1.4 backwards compatibility:
  2804. dnl AC_DEFUN([AM_PROG_LD], [])
  2805. dnl AC_DEFUN([AC_PROG_LD], [])
  2806. # _LT_PATH_LD_GNU
  2807. #- --------------
  2808. m4_defun([_LT_PATH_LD_GNU],
  2809. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2810. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2811. case `$LD -v 2>&1 </dev/null` in
  2812. *GNU* | *'with BFD'*)
  2813. lt_cv_prog_gnu_ld=yes
  2814. ;;
  2815. *)
  2816. lt_cv_prog_gnu_ld=no
  2817. ;;
  2818. esac])
  2819. with_gnu_ld=$lt_cv_prog_gnu_ld
  2820. ])# _LT_PATH_LD_GNU
  2821. # _LT_CMD_RELOAD
  2822. # --------------
  2823. # find reload flag for linker
  2824. # -- PORTME Some linkers may need a different reload flag.
  2825. m4_defun([_LT_CMD_RELOAD],
  2826. [AC_CACHE_CHECK([for $LD option to reload object files],
  2827. lt_cv_ld_reload_flag,
  2828. [lt_cv_ld_reload_flag='-r'])
  2829. reload_flag=$lt_cv_ld_reload_flag
  2830. case $reload_flag in
  2831. "" | " "*) ;;
  2832. *) reload_flag=" $reload_flag" ;;
  2833. esac
  2834. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2835. case $host_os in
  2836. cygwin* | mingw* | pw32* | cegcc*)
  2837. if test "$GCC" != yes; then
  2838. reload_cmds=false
  2839. fi
  2840. ;;
  2841. darwin*)
  2842. if test "$GCC" = yes; then
  2843. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2844. else
  2845. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2846. fi
  2847. ;;
  2848. esac
  2849. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2850. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2851. ])# _LT_CMD_RELOAD
  2852. # _LT_CHECK_MAGIC_METHOD
  2853. # ----------------------
  2854. # how to check for library dependencies
  2855. # -- PORTME fill in with the dynamic library characteristics
  2856. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2857. [m4_require([_LT_DECL_EGREP])
  2858. m4_require([_LT_DECL_OBJDUMP])
  2859. AC_CACHE_CHECK([how to recognize dependent libraries],
  2860. lt_cv_deplibs_check_method,
  2861. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2862. lt_cv_file_magic_test_file=
  2863. lt_cv_deplibs_check_method='unknown'
  2864. # Need to set the preceding variable on all platforms that support
  2865. # interlibrary dependencies.
  2866. # 'none' -- dependencies not supported.
  2867. # `unknown' -- same as none, but documents that we really don't know.
  2868. # 'pass_all' -- all dependencies passed with no checks.
  2869. # 'test_compile' -- check by making test program.
  2870. # 'file_magic [[regex]]' -- check by looking for files in library path
  2871. # which responds to the $file_magic_cmd with a given extended regex.
  2872. # If you have `file' or equivalent on your system and you're not sure
  2873. # whether `pass_all' will *always* work, you probably want this one.
  2874. case $host_os in
  2875. aix[[4-9]]*)
  2876. lt_cv_deplibs_check_method=pass_all
  2877. ;;
  2878. beos*)
  2879. lt_cv_deplibs_check_method=pass_all
  2880. ;;
  2881. bsdi[[45]]*)
  2882. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2883. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2884. lt_cv_file_magic_test_file=/shlib/libc.so
  2885. ;;
  2886. cygwin*)
  2887. # func_win32_libid is a shell function defined in ltmain.sh
  2888. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2889. lt_cv_file_magic_cmd='func_win32_libid'
  2890. ;;
  2891. mingw* | pw32*)
  2892. # Base MSYS/MinGW do not provide the 'file' command needed by
  2893. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2894. # unless we find 'file', for example because we are cross-compiling.
  2895. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2896. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2897. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2898. lt_cv_file_magic_cmd='func_win32_libid'
  2899. else
  2900. # Keep this pattern in sync with the one in func_win32_libid.
  2901. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2902. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2903. fi
  2904. ;;
  2905. cegcc*)
  2906. # use the weaker test based on 'objdump'. See mingw*.
  2907. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2908. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2909. ;;
  2910. darwin* | rhapsody*)
  2911. lt_cv_deplibs_check_method=pass_all
  2912. ;;
  2913. freebsd* | dragonfly*)
  2914. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2915. case $host_cpu in
  2916. i*86 )
  2917. # Not sure whether the presence of OpenBSD here was a mistake.
  2918. # Let's accept both of them until this is cleared up.
  2919. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2920. lt_cv_file_magic_cmd=/usr/bin/file
  2921. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2922. ;;
  2923. esac
  2924. else
  2925. lt_cv_deplibs_check_method=pass_all
  2926. fi
  2927. ;;
  2928. gnu*)
  2929. lt_cv_deplibs_check_method=pass_all
  2930. ;;
  2931. haiku*)
  2932. lt_cv_deplibs_check_method=pass_all
  2933. ;;
  2934. hpux10.20* | hpux11*)
  2935. lt_cv_file_magic_cmd=/usr/bin/file
  2936. case $host_cpu in
  2937. ia64*)
  2938. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2939. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2940. ;;
  2941. hppa*64*)
  2942. [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]']
  2943. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2944. ;;
  2945. *)
  2946. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2947. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2948. ;;
  2949. esac
  2950. ;;
  2951. interix[[3-9]]*)
  2952. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2953. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2954. ;;
  2955. irix5* | irix6* | nonstopux*)
  2956. case $LD in
  2957. *-32|*"-32 ") libmagic=32-bit;;
  2958. *-n32|*"-n32 ") libmagic=N32;;
  2959. *-64|*"-64 ") libmagic=64-bit;;
  2960. *) libmagic=never-match;;
  2961. esac
  2962. lt_cv_deplibs_check_method=pass_all
  2963. ;;
  2964. # This must be glibc/ELF.
  2965. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2966. lt_cv_deplibs_check_method=pass_all
  2967. ;;
  2968. netbsd* | netbsdelf*-gnu)
  2969. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2970. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2971. else
  2972. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2973. fi
  2974. ;;
  2975. newos6*)
  2976. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2977. lt_cv_file_magic_cmd=/usr/bin/file
  2978. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2979. ;;
  2980. *nto* | *qnx*)
  2981. lt_cv_deplibs_check_method=pass_all
  2982. ;;
  2983. openbsd*)
  2984. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2985. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2986. else
  2987. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2988. fi
  2989. ;;
  2990. osf3* | osf4* | osf5*)
  2991. lt_cv_deplibs_check_method=pass_all
  2992. ;;
  2993. rdos*)
  2994. lt_cv_deplibs_check_method=pass_all
  2995. ;;
  2996. solaris*)
  2997. lt_cv_deplibs_check_method=pass_all
  2998. ;;
  2999. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3000. lt_cv_deplibs_check_method=pass_all
  3001. ;;
  3002. sysv4 | sysv4.3*)
  3003. case $host_vendor in
  3004. motorola)
  3005. 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]]'
  3006. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3007. ;;
  3008. ncr)
  3009. lt_cv_deplibs_check_method=pass_all
  3010. ;;
  3011. sequent)
  3012. lt_cv_file_magic_cmd='/bin/file'
  3013. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3014. ;;
  3015. sni)
  3016. lt_cv_file_magic_cmd='/bin/file'
  3017. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3018. lt_cv_file_magic_test_file=/lib/libc.so
  3019. ;;
  3020. siemens)
  3021. lt_cv_deplibs_check_method=pass_all
  3022. ;;
  3023. pc)
  3024. lt_cv_deplibs_check_method=pass_all
  3025. ;;
  3026. esac
  3027. ;;
  3028. tpf*)
  3029. lt_cv_deplibs_check_method=pass_all
  3030. ;;
  3031. esac
  3032. ])
  3033. file_magic_glob=
  3034. want_nocaseglob=no
  3035. if test "$build" = "$host"; then
  3036. case $host_os in
  3037. mingw* | pw32*)
  3038. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3039. want_nocaseglob=yes
  3040. else
  3041. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3042. fi
  3043. ;;
  3044. esac
  3045. fi
  3046. file_magic_cmd=$lt_cv_file_magic_cmd
  3047. deplibs_check_method=$lt_cv_deplibs_check_method
  3048. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3049. _LT_DECL([], [deplibs_check_method], [1],
  3050. [Method to check whether dependent libraries are shared objects])
  3051. _LT_DECL([], [file_magic_cmd], [1],
  3052. [Command to use when deplibs_check_method = "file_magic"])
  3053. _LT_DECL([], [file_magic_glob], [1],
  3054. [How to find potential files when deplibs_check_method = "file_magic"])
  3055. _LT_DECL([], [want_nocaseglob], [1],
  3056. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3057. ])# _LT_CHECK_MAGIC_METHOD
  3058. # LT_PATH_NM
  3059. # ----------
  3060. # find the pathname to a BSD- or MS-compatible name lister
  3061. AC_DEFUN([LT_PATH_NM],
  3062. [AC_REQUIRE([AC_PROG_CC])dnl
  3063. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3064. [if test -n "$NM"; then
  3065. # Let the user override the test.
  3066. lt_cv_path_NM="$NM"
  3067. else
  3068. lt_nm_to_check="${ac_tool_prefix}nm"
  3069. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3070. lt_nm_to_check="$lt_nm_to_check nm"
  3071. fi
  3072. for lt_tmp_nm in $lt_nm_to_check; do
  3073. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3074. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3075. IFS="$lt_save_ifs"
  3076. test -z "$ac_dir" && ac_dir=.
  3077. tmp_nm="$ac_dir/$lt_tmp_nm"
  3078. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3079. # Check to see if the nm accepts a BSD-compat flag.
  3080. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3081. # nm: unknown option "B" ignored
  3082. # Tru64's nm complains that /dev/null is an invalid object file
  3083. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3084. */dev/null* | *'Invalid file or object type'*)
  3085. lt_cv_path_NM="$tmp_nm -B"
  3086. break
  3087. ;;
  3088. *)
  3089. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3090. */dev/null*)
  3091. lt_cv_path_NM="$tmp_nm -p"
  3092. break
  3093. ;;
  3094. *)
  3095. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3096. continue # so that we can try to find one that supports BSD flags
  3097. ;;
  3098. esac
  3099. ;;
  3100. esac
  3101. fi
  3102. done
  3103. IFS="$lt_save_ifs"
  3104. done
  3105. : ${lt_cv_path_NM=no}
  3106. fi])
  3107. if test "$lt_cv_path_NM" != "no"; then
  3108. NM="$lt_cv_path_NM"
  3109. else
  3110. # Didn't find any BSD compatible name lister, look for dumpbin.
  3111. if test -n "$DUMPBIN"; then :
  3112. # Let the user override the test.
  3113. else
  3114. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3115. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3116. *COFF*)
  3117. DUMPBIN="$DUMPBIN -symbols"
  3118. ;;
  3119. *)
  3120. DUMPBIN=:
  3121. ;;
  3122. esac
  3123. fi
  3124. AC_SUBST([DUMPBIN])
  3125. if test "$DUMPBIN" != ":"; then
  3126. NM="$DUMPBIN"
  3127. fi
  3128. fi
  3129. test -z "$NM" && NM=nm
  3130. AC_SUBST([NM])
  3131. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3132. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3133. [lt_cv_nm_interface="BSD nm"
  3134. echo "int some_variable = 0;" > conftest.$ac_ext
  3135. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3136. (eval "$ac_compile" 2>conftest.err)
  3137. cat conftest.err >&AS_MESSAGE_LOG_FD
  3138. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3139. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3140. cat conftest.err >&AS_MESSAGE_LOG_FD
  3141. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3142. cat conftest.out >&AS_MESSAGE_LOG_FD
  3143. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3144. lt_cv_nm_interface="MS dumpbin"
  3145. fi
  3146. rm -f conftest*])
  3147. ])# LT_PATH_NM
  3148. # Old names:
  3149. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3150. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3151. dnl aclocal-1.4 backwards compatibility:
  3152. dnl AC_DEFUN([AM_PROG_NM], [])
  3153. dnl AC_DEFUN([AC_PROG_NM], [])
  3154. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3155. # --------------------------------
  3156. # how to determine the name of the shared library
  3157. # associated with a specific link library.
  3158. # -- PORTME fill in with the dynamic library characteristics
  3159. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3160. [m4_require([_LT_DECL_EGREP])
  3161. m4_require([_LT_DECL_OBJDUMP])
  3162. m4_require([_LT_DECL_DLLTOOL])
  3163. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3164. lt_cv_sharedlib_from_linklib_cmd,
  3165. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3166. case $host_os in
  3167. cygwin* | mingw* | pw32* | cegcc*)
  3168. # two different shell functions defined in ltmain.sh
  3169. # decide which to use based on capabilities of $DLLTOOL
  3170. case `$DLLTOOL --help 2>&1` in
  3171. *--identify-strict*)
  3172. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3173. ;;
  3174. *)
  3175. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3176. ;;
  3177. esac
  3178. ;;
  3179. *)
  3180. # fallback: assume linklib IS sharedlib
  3181. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3182. ;;
  3183. esac
  3184. ])
  3185. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3186. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3187. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3188. [Command to associate shared and link libraries])
  3189. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3190. # _LT_PATH_MANIFEST_TOOL
  3191. # ----------------------
  3192. # locate the manifest tool
  3193. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3194. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3195. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3196. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3197. [lt_cv_path_mainfest_tool=no
  3198. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3199. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3200. cat conftest.err >&AS_MESSAGE_LOG_FD
  3201. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3202. lt_cv_path_mainfest_tool=yes
  3203. fi
  3204. rm -f conftest*])
  3205. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3206. MANIFEST_TOOL=:
  3207. fi
  3208. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3209. ])# _LT_PATH_MANIFEST_TOOL
  3210. # LT_LIB_M
  3211. # --------
  3212. # check for math library
  3213. AC_DEFUN([LT_LIB_M],
  3214. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3215. LIBM=
  3216. case $host in
  3217. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3218. # These system don't have libm, or don't need it
  3219. ;;
  3220. *-ncr-sysv4.3*)
  3221. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3222. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3223. ;;
  3224. *)
  3225. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3226. ;;
  3227. esac
  3228. AC_SUBST([LIBM])
  3229. ])# LT_LIB_M
  3230. # Old name:
  3231. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3232. dnl aclocal-1.4 backwards compatibility:
  3233. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3234. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3235. # -------------------------------
  3236. m4_defun([_LT_COMPILER_NO_RTTI],
  3237. [m4_require([_LT_TAG_COMPILER])dnl
  3238. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3239. if test "$GCC" = yes; then
  3240. case $cc_basename in
  3241. nvcc*)
  3242. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3243. *)
  3244. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3245. esac
  3246. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3247. lt_cv_prog_compiler_rtti_exceptions,
  3248. [-fno-rtti -fno-exceptions], [],
  3249. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3250. fi
  3251. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3252. [Compiler flag to turn off builtin functions])
  3253. ])# _LT_COMPILER_NO_RTTI
  3254. # _LT_CMD_GLOBAL_SYMBOLS
  3255. # ----------------------
  3256. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3257. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3258. AC_REQUIRE([AC_PROG_CC])dnl
  3259. AC_REQUIRE([AC_PROG_AWK])dnl
  3260. AC_REQUIRE([LT_PATH_NM])dnl
  3261. AC_REQUIRE([LT_PATH_LD])dnl
  3262. m4_require([_LT_DECL_SED])dnl
  3263. m4_require([_LT_DECL_EGREP])dnl
  3264. m4_require([_LT_TAG_COMPILER])dnl
  3265. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3266. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3267. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3268. [
  3269. # These are sane defaults that work on at least a few old systems.
  3270. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3271. # Character class describing NM global symbol codes.
  3272. symcode='[[BCDEGRST]]'
  3273. # Regexp to match symbols that can be accessed directly from C.
  3274. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3275. # Define system-specific variables.
  3276. case $host_os in
  3277. aix*)
  3278. symcode='[[BCDT]]'
  3279. ;;
  3280. cygwin* | mingw* | pw32* | cegcc*)
  3281. symcode='[[ABCDGISTW]]'
  3282. ;;
  3283. hpux*)
  3284. if test "$host_cpu" = ia64; then
  3285. symcode='[[ABCDEGRST]]'
  3286. fi
  3287. ;;
  3288. irix* | nonstopux*)
  3289. symcode='[[BCDEGRST]]'
  3290. ;;
  3291. osf*)
  3292. symcode='[[BCDEGQRST]]'
  3293. ;;
  3294. solaris*)
  3295. symcode='[[BDRT]]'
  3296. ;;
  3297. sco3.2v5*)
  3298. symcode='[[DT]]'
  3299. ;;
  3300. sysv4.2uw2*)
  3301. symcode='[[DT]]'
  3302. ;;
  3303. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3304. symcode='[[ABDT]]'
  3305. ;;
  3306. sysv4)
  3307. symcode='[[DFNSTU]]'
  3308. ;;
  3309. esac
  3310. # If we're using GNU nm, then use its standard symbol codes.
  3311. case `$NM -V 2>&1` in
  3312. *GNU* | *'with BFD'*)
  3313. symcode='[[ABCDGIRSTW]]' ;;
  3314. esac
  3315. # Transform an extracted symbol line into a proper C declaration.
  3316. # Some systems (esp. on ia64) link data and code symbols differently,
  3317. # so use this general approach.
  3318. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3319. # Transform an extracted symbol line into symbol name and symbol address
  3320. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3321. 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'"
  3322. # Handle CRLF in mingw tool chain
  3323. opt_cr=
  3324. case $build_os in
  3325. mingw*)
  3326. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3327. ;;
  3328. esac
  3329. # Try without a prefix underscore, then with it.
  3330. for ac_symprfx in "" "_"; do
  3331. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3332. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3333. # Write the raw and C identifiers.
  3334. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3335. # Fake it for dumpbin and say T for any non-static function
  3336. # and D for any global variable.
  3337. # Also find C++ and __fastcall symbols from MSVC++,
  3338. # which start with @ or ?.
  3339. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3340. " {last_section=section; section=\$ 3};"\
  3341. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3342. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3343. " \$ 0!~/External *\|/{next};"\
  3344. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3345. " {if(hide[section]) next};"\
  3346. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3347. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3348. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3349. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3350. " ' prfx=^$ac_symprfx]"
  3351. else
  3352. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3353. fi
  3354. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3355. # Check to see that the pipe works correctly.
  3356. pipe_works=no
  3357. rm -f conftest*
  3358. cat > conftest.$ac_ext <<_LT_EOF
  3359. #ifdef __cplusplus
  3360. extern "C" {
  3361. #endif
  3362. char nm_test_var;
  3363. void nm_test_func(void);
  3364. void nm_test_func(void){}
  3365. #ifdef __cplusplus
  3366. }
  3367. #endif
  3368. int main(){nm_test_var='a';nm_test_func();return(0);}
  3369. _LT_EOF
  3370. if AC_TRY_EVAL(ac_compile); then
  3371. # Now try to grab the symbols.
  3372. nlist=conftest.nm
  3373. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3374. # Try sorting and uniquifying the output.
  3375. if sort "$nlist" | uniq > "$nlist"T; then
  3376. mv -f "$nlist"T "$nlist"
  3377. else
  3378. rm -f "$nlist"T
  3379. fi
  3380. # Make sure that we snagged all the symbols we need.
  3381. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3382. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3383. cat <<_LT_EOF > conftest.$ac_ext
  3384. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3385. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3386. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3387. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3388. # define LT@&t@_DLSYM_CONST
  3389. #elif defined(__osf__)
  3390. /* This system does not cope well with relocations in const data. */
  3391. # define LT@&t@_DLSYM_CONST
  3392. #else
  3393. # define LT@&t@_DLSYM_CONST const
  3394. #endif
  3395. #ifdef __cplusplus
  3396. extern "C" {
  3397. #endif
  3398. _LT_EOF
  3399. # Now generate the symbol file.
  3400. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3401. cat <<_LT_EOF >> conftest.$ac_ext
  3402. /* The mapping between symbol names and symbols. */
  3403. LT@&t@_DLSYM_CONST struct {
  3404. const char *name;
  3405. void *address;
  3406. }
  3407. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3408. {
  3409. { "@PROGRAM@", (void *) 0 },
  3410. _LT_EOF
  3411. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3412. cat <<\_LT_EOF >> conftest.$ac_ext
  3413. {0, (void *) 0}
  3414. };
  3415. /* This works around a problem in FreeBSD linker */
  3416. #ifdef FREEBSD_WORKAROUND
  3417. static const void *lt_preloaded_setup() {
  3418. return lt__PROGRAM__LTX_preloaded_symbols;
  3419. }
  3420. #endif
  3421. #ifdef __cplusplus
  3422. }
  3423. #endif
  3424. _LT_EOF
  3425. # Now try linking the two files.
  3426. mv conftest.$ac_objext conftstm.$ac_objext
  3427. lt_globsym_save_LIBS=$LIBS
  3428. lt_globsym_save_CFLAGS=$CFLAGS
  3429. LIBS="conftstm.$ac_objext"
  3430. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3431. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3432. pipe_works=yes
  3433. fi
  3434. LIBS=$lt_globsym_save_LIBS
  3435. CFLAGS=$lt_globsym_save_CFLAGS
  3436. else
  3437. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3438. fi
  3439. else
  3440. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3441. fi
  3442. else
  3443. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3444. fi
  3445. else
  3446. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3447. cat conftest.$ac_ext >&5
  3448. fi
  3449. rm -rf conftest* conftst*
  3450. # Do not use the global_symbol_pipe unless it works.
  3451. if test "$pipe_works" = yes; then
  3452. break
  3453. else
  3454. lt_cv_sys_global_symbol_pipe=
  3455. fi
  3456. done
  3457. ])
  3458. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3459. lt_cv_sys_global_symbol_to_cdecl=
  3460. fi
  3461. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3462. AC_MSG_RESULT(failed)
  3463. else
  3464. AC_MSG_RESULT(ok)
  3465. fi
  3466. # Response file support.
  3467. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3468. nm_file_list_spec='@'
  3469. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3470. nm_file_list_spec='@'
  3471. fi
  3472. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3473. [Take the output of nm and produce a listing of raw symbols and C names])
  3474. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3475. [Transform the output of nm in a proper C declaration])
  3476. _LT_DECL([global_symbol_to_c_name_address],
  3477. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3478. [Transform the output of nm in a C name address pair])
  3479. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3480. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3481. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3482. _LT_DECL([], [nm_file_list_spec], [1],
  3483. [Specify filename containing input files for $NM])
  3484. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3485. # _LT_COMPILER_PIC([TAGNAME])
  3486. # ---------------------------
  3487. m4_defun([_LT_COMPILER_PIC],
  3488. [m4_require([_LT_TAG_COMPILER])dnl
  3489. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3490. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3491. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3492. m4_if([$1], [CXX], [
  3493. # C++ specific cases for pic, static, wl, etc.
  3494. if test "$GXX" = yes; then
  3495. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3496. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3497. case $host_os in
  3498. aix*)
  3499. # All AIX code is PIC.
  3500. if test "$host_cpu" = ia64; then
  3501. # AIX 5 now supports IA64 processor
  3502. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3503. fi
  3504. ;;
  3505. amigaos*)
  3506. case $host_cpu in
  3507. powerpc)
  3508. # see comment about AmigaOS4 .so support
  3509. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3510. ;;
  3511. m68k)
  3512. # FIXME: we need at least 68020 code to build shared libraries, but
  3513. # adding the `-m68020' flag to GCC prevents building anything better,
  3514. # like `-m68040'.
  3515. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3516. ;;
  3517. esac
  3518. ;;
  3519. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3520. # PIC is the default for these OSes.
  3521. ;;
  3522. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3523. # This hack is so that the source file can tell whether it is being
  3524. # built for inclusion in a dll (and should export symbols for example).
  3525. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3526. # (--disable-auto-import) libraries
  3527. m4_if([$1], [GCJ], [],
  3528. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3529. ;;
  3530. darwin* | rhapsody*)
  3531. # PIC is the default on this platform
  3532. # Common symbols not allowed in MH_DYLIB files
  3533. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3534. ;;
  3535. *djgpp*)
  3536. # DJGPP does not support shared libraries at all
  3537. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3538. ;;
  3539. haiku*)
  3540. # PIC is the default for Haiku.
  3541. # The "-static" flag exists, but is broken.
  3542. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3543. ;;
  3544. interix[[3-9]]*)
  3545. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3546. # Instead, we relocate shared libraries at runtime.
  3547. ;;
  3548. sysv4*MP*)
  3549. if test -d /usr/nec; then
  3550. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3551. fi
  3552. ;;
  3553. hpux*)
  3554. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3555. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3556. # sets the default TLS model and affects inlining.
  3557. case $host_cpu in
  3558. hppa*64*)
  3559. ;;
  3560. *)
  3561. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3562. ;;
  3563. esac
  3564. ;;
  3565. *qnx* | *nto*)
  3566. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3567. # it will coredump.
  3568. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3569. ;;
  3570. *)
  3571. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3572. ;;
  3573. esac
  3574. else
  3575. case $host_os in
  3576. aix[[4-9]]*)
  3577. # All AIX code is PIC.
  3578. if test "$host_cpu" = ia64; then
  3579. # AIX 5 now supports IA64 processor
  3580. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3581. else
  3582. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3583. fi
  3584. ;;
  3585. chorus*)
  3586. case $cc_basename in
  3587. cxch68*)
  3588. # Green Hills C++ Compiler
  3589. # _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"
  3590. ;;
  3591. esac
  3592. ;;
  3593. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3594. # This hack is so that the source file can tell whether it is being
  3595. # built for inclusion in a dll (and should export symbols for example).
  3596. m4_if([$1], [GCJ], [],
  3597. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3598. ;;
  3599. dgux*)
  3600. case $cc_basename in
  3601. ec++*)
  3602. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3603. ;;
  3604. ghcx*)
  3605. # Green Hills C++ Compiler
  3606. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3607. ;;
  3608. *)
  3609. ;;
  3610. esac
  3611. ;;
  3612. freebsd* | dragonfly*)
  3613. # FreeBSD uses GNU C++
  3614. ;;
  3615. hpux9* | hpux10* | hpux11*)
  3616. case $cc_basename in
  3617. CC*)
  3618. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3619. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3620. if test "$host_cpu" != ia64; then
  3621. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3622. fi
  3623. ;;
  3624. aCC*)
  3625. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3626. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3627. case $host_cpu in
  3628. hppa*64*|ia64*)
  3629. # +Z the default
  3630. ;;
  3631. *)
  3632. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3633. ;;
  3634. esac
  3635. ;;
  3636. *)
  3637. ;;
  3638. esac
  3639. ;;
  3640. interix*)
  3641. # This is c89, which is MS Visual C++ (no shared libs)
  3642. # Anyone wants to do a port?
  3643. ;;
  3644. irix5* | irix6* | nonstopux*)
  3645. case $cc_basename in
  3646. CC*)
  3647. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3648. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3649. # CC pic flag -KPIC is the default.
  3650. ;;
  3651. *)
  3652. ;;
  3653. esac
  3654. ;;
  3655. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3656. case $cc_basename in
  3657. KCC*)
  3658. # KAI C++ Compiler
  3659. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3660. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3661. ;;
  3662. ecpc* )
  3663. # old Intel C++ for x86_64 which still supported -KPIC.
  3664. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3665. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3666. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3667. ;;
  3668. icpc* )
  3669. # Intel C++, used to be incompatible with GCC.
  3670. # ICC 10 doesn't accept -KPIC any more.
  3671. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3672. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3673. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3674. ;;
  3675. pgCC* | pgcpp*)
  3676. # Portland Group C++ compiler
  3677. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3678. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3679. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3680. ;;
  3681. cxx*)
  3682. # Compaq C++
  3683. # Make sure the PIC flag is empty. It appears that all Alpha
  3684. # Linux and Compaq Tru64 Unix objects are PIC.
  3685. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3686. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3687. ;;
  3688. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3689. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3690. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3691. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3692. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3693. ;;
  3694. *)
  3695. case `$CC -V 2>&1 | sed 5q` in
  3696. *Sun\ C*)
  3697. # Sun C++ 5.9
  3698. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3699. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3700. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3701. ;;
  3702. esac
  3703. ;;
  3704. esac
  3705. ;;
  3706. lynxos*)
  3707. ;;
  3708. m88k*)
  3709. ;;
  3710. mvs*)
  3711. case $cc_basename in
  3712. cxx*)
  3713. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3714. ;;
  3715. *)
  3716. ;;
  3717. esac
  3718. ;;
  3719. netbsd* | netbsdelf*-gnu)
  3720. ;;
  3721. *qnx* | *nto*)
  3722. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3723. # it will coredump.
  3724. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3725. ;;
  3726. osf3* | osf4* | osf5*)
  3727. case $cc_basename in
  3728. KCC*)
  3729. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3730. ;;
  3731. RCC*)
  3732. # Rational C++ 2.4.1
  3733. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3734. ;;
  3735. cxx*)
  3736. # Digital/Compaq C++
  3737. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3738. # Make sure the PIC flag is empty. It appears that all Alpha
  3739. # Linux and Compaq Tru64 Unix objects are PIC.
  3740. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3741. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3742. ;;
  3743. *)
  3744. ;;
  3745. esac
  3746. ;;
  3747. psos*)
  3748. ;;
  3749. solaris*)
  3750. case $cc_basename in
  3751. CC* | sunCC*)
  3752. # Sun C++ 4.2, 5.x and Centerline C++
  3753. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3754. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3755. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3756. ;;
  3757. gcx*)
  3758. # Green Hills C++ Compiler
  3759. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3760. ;;
  3761. *)
  3762. ;;
  3763. esac
  3764. ;;
  3765. sunos4*)
  3766. case $cc_basename in
  3767. CC*)
  3768. # Sun C++ 4.x
  3769. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3770. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3771. ;;
  3772. lcc*)
  3773. # Lucid
  3774. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3775. ;;
  3776. *)
  3777. ;;
  3778. esac
  3779. ;;
  3780. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3781. case $cc_basename in
  3782. CC*)
  3783. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3784. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3785. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3786. ;;
  3787. esac
  3788. ;;
  3789. tandem*)
  3790. case $cc_basename in
  3791. NCC*)
  3792. # NonStop-UX NCC 3.20
  3793. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3794. ;;
  3795. *)
  3796. ;;
  3797. esac
  3798. ;;
  3799. vxworks*)
  3800. ;;
  3801. *)
  3802. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3803. ;;
  3804. esac
  3805. fi
  3806. ],
  3807. [
  3808. if test "$GCC" = yes; then
  3809. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3810. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3811. case $host_os in
  3812. aix*)
  3813. # All AIX code is PIC.
  3814. if test "$host_cpu" = ia64; then
  3815. # AIX 5 now supports IA64 processor
  3816. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3817. fi
  3818. ;;
  3819. amigaos*)
  3820. case $host_cpu in
  3821. powerpc)
  3822. # see comment about AmigaOS4 .so support
  3823. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3824. ;;
  3825. m68k)
  3826. # FIXME: we need at least 68020 code to build shared libraries, but
  3827. # adding the `-m68020' flag to GCC prevents building anything better,
  3828. # like `-m68040'.
  3829. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3830. ;;
  3831. esac
  3832. ;;
  3833. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3834. # PIC is the default for these OSes.
  3835. ;;
  3836. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3837. # This hack is so that the source file can tell whether it is being
  3838. # built for inclusion in a dll (and should export symbols for example).
  3839. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3840. # (--disable-auto-import) libraries
  3841. m4_if([$1], [GCJ], [],
  3842. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3843. ;;
  3844. darwin* | rhapsody*)
  3845. # PIC is the default on this platform
  3846. # Common symbols not allowed in MH_DYLIB files
  3847. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3848. ;;
  3849. haiku*)
  3850. # PIC is the default for Haiku.
  3851. # The "-static" flag exists, but is broken.
  3852. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3853. ;;
  3854. hpux*)
  3855. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3856. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3857. # sets the default TLS model and affects inlining.
  3858. case $host_cpu in
  3859. hppa*64*)
  3860. # +Z the default
  3861. ;;
  3862. *)
  3863. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3864. ;;
  3865. esac
  3866. ;;
  3867. interix[[3-9]]*)
  3868. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3869. # Instead, we relocate shared libraries at runtime.
  3870. ;;
  3871. msdosdjgpp*)
  3872. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3873. # on systems that don't support them.
  3874. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3875. enable_shared=no
  3876. ;;
  3877. *nto* | *qnx*)
  3878. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3879. # it will coredump.
  3880. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3881. ;;
  3882. sysv4*MP*)
  3883. if test -d /usr/nec; then
  3884. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3885. fi
  3886. ;;
  3887. *)
  3888. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3889. ;;
  3890. esac
  3891. case $cc_basename in
  3892. nvcc*) # Cuda Compiler Driver 2.2
  3893. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3894. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3895. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3896. fi
  3897. ;;
  3898. esac
  3899. else
  3900. # PORTME Check for flag to pass linker flags through the system compiler.
  3901. case $host_os in
  3902. aix*)
  3903. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3904. if test "$host_cpu" = ia64; then
  3905. # AIX 5 now supports IA64 processor
  3906. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3907. else
  3908. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3909. fi
  3910. ;;
  3911. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3912. # This hack is so that the source file can tell whether it is being
  3913. # built for inclusion in a dll (and should export symbols for example).
  3914. m4_if([$1], [GCJ], [],
  3915. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3916. ;;
  3917. hpux9* | hpux10* | hpux11*)
  3918. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3919. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3920. # not for PA HP-UX.
  3921. case $host_cpu in
  3922. hppa*64*|ia64*)
  3923. # +Z the default
  3924. ;;
  3925. *)
  3926. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3927. ;;
  3928. esac
  3929. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3930. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3931. ;;
  3932. irix5* | irix6* | nonstopux*)
  3933. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3934. # PIC (with -KPIC) is the default.
  3935. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3936. ;;
  3937. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3938. case $cc_basename in
  3939. # old Intel for x86_64 which still supported -KPIC.
  3940. ecc*)
  3941. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3942. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3943. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3944. ;;
  3945. # icc used to be incompatible with GCC.
  3946. # ICC 10 doesn't accept -KPIC any more.
  3947. icc* | ifort*)
  3948. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3949. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3950. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3951. ;;
  3952. # Lahey Fortran 8.1.
  3953. lf95*)
  3954. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3955. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3956. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3957. ;;
  3958. nagfor*)
  3959. # NAG Fortran compiler
  3960. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3961. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3962. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3963. ;;
  3964. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3965. # Portland Group compilers (*not* the Pentium gcc compiler,
  3966. # which looks to be a dead project)
  3967. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3968. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3969. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3970. ;;
  3971. ccc*)
  3972. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3973. # All Alpha code is PIC.
  3974. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3975. ;;
  3976. xl* | bgxl* | bgf* | mpixl*)
  3977. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3978. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3979. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3980. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3981. ;;
  3982. *)
  3983. case `$CC -V 2>&1 | sed 5q` in
  3984. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3985. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3986. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3987. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3988. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3989. ;;
  3990. *Sun\ F* | *Sun*Fortran*)
  3991. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3992. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3993. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3994. ;;
  3995. *Sun\ C*)
  3996. # Sun C 5.9
  3997. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3998. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3999. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4000. ;;
  4001. *Intel*\ [[CF]]*Compiler*)
  4002. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4003. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4004. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4005. ;;
  4006. *Portland\ Group*)
  4007. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4008. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4009. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4010. ;;
  4011. esac
  4012. ;;
  4013. esac
  4014. ;;
  4015. newsos6)
  4016. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4017. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4018. ;;
  4019. *nto* | *qnx*)
  4020. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4021. # it will coredump.
  4022. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4023. ;;
  4024. osf3* | osf4* | osf5*)
  4025. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4026. # All OSF/1 code is PIC.
  4027. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4028. ;;
  4029. rdos*)
  4030. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4031. ;;
  4032. solaris*)
  4033. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4034. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4035. case $cc_basename in
  4036. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4037. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4038. *)
  4039. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4040. esac
  4041. ;;
  4042. sunos4*)
  4043. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4044. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4045. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4046. ;;
  4047. sysv4 | sysv4.2uw2* | sysv4.3*)
  4048. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4049. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4050. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4051. ;;
  4052. sysv4*MP*)
  4053. if test -d /usr/nec ;then
  4054. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4055. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4056. fi
  4057. ;;
  4058. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4059. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4060. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4061. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4062. ;;
  4063. unicos*)
  4064. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4065. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4066. ;;
  4067. uts4*)
  4068. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4069. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4070. ;;
  4071. *)
  4072. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4073. ;;
  4074. esac
  4075. fi
  4076. ])
  4077. case $host_os in
  4078. # For platforms which do not support PIC, -DPIC is meaningless:
  4079. *djgpp*)
  4080. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4081. ;;
  4082. *)
  4083. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4084. ;;
  4085. esac
  4086. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4087. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4088. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4089. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4090. #
  4091. # Check to make sure the PIC flag actually works.
  4092. #
  4093. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4094. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4095. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4096. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4097. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4098. "" | " "*) ;;
  4099. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4100. esac],
  4101. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4102. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4103. fi
  4104. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4105. [Additional compiler flags for building library objects])
  4106. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4107. [How to pass a linker flag through the compiler])
  4108. #
  4109. # Check to make sure the static flag actually works.
  4110. #
  4111. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4112. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4113. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4114. $lt_tmp_static_flag,
  4115. [],
  4116. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4117. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4118. [Compiler flag to prevent dynamic linking])
  4119. ])# _LT_COMPILER_PIC
  4120. # _LT_LINKER_SHLIBS([TAGNAME])
  4121. # ----------------------------
  4122. # See if the linker supports building shared libraries.
  4123. m4_defun([_LT_LINKER_SHLIBS],
  4124. [AC_REQUIRE([LT_PATH_LD])dnl
  4125. AC_REQUIRE([LT_PATH_NM])dnl
  4126. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4127. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4128. m4_require([_LT_DECL_EGREP])dnl
  4129. m4_require([_LT_DECL_SED])dnl
  4130. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4131. m4_require([_LT_TAG_COMPILER])dnl
  4132. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4133. m4_if([$1], [CXX], [
  4134. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4135. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4136. case $host_os in
  4137. aix[[4-9]]*)
  4138. # If we're using GNU nm, then we don't want the "-C" option.
  4139. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4140. # Also, AIX nm treats weak defined symbols like other global defined
  4141. # symbols, whereas GNU nm marks them as "W".
  4142. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4143. _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'
  4144. else
  4145. _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'
  4146. fi
  4147. ;;
  4148. pw32*)
  4149. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4150. ;;
  4151. cygwin* | mingw* | cegcc*)
  4152. case $cc_basename in
  4153. cl*)
  4154. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4155. ;;
  4156. *)
  4157. _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'
  4158. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4159. ;;
  4160. esac
  4161. ;;
  4162. linux* | k*bsd*-gnu | gnu*)
  4163. _LT_TAGVAR(link_all_deplibs, $1)=no
  4164. ;;
  4165. *)
  4166. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4167. ;;
  4168. esac
  4169. ], [
  4170. runpath_var=
  4171. _LT_TAGVAR(allow_undefined_flag, $1)=
  4172. _LT_TAGVAR(always_export_symbols, $1)=no
  4173. _LT_TAGVAR(archive_cmds, $1)=
  4174. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4175. _LT_TAGVAR(compiler_needs_object, $1)=no
  4176. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4177. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4178. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4179. _LT_TAGVAR(hardcode_automatic, $1)=no
  4180. _LT_TAGVAR(hardcode_direct, $1)=no
  4181. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4182. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4183. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4184. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4185. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4186. _LT_TAGVAR(inherit_rpath, $1)=no
  4187. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4188. _LT_TAGVAR(module_cmds, $1)=
  4189. _LT_TAGVAR(module_expsym_cmds, $1)=
  4190. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4191. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4192. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4193. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4194. # include_expsyms should be a list of space-separated symbols to be *always*
  4195. # included in the symbol list
  4196. _LT_TAGVAR(include_expsyms, $1)=
  4197. # exclude_expsyms can be an extended regexp of symbols to exclude
  4198. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4199. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4200. # as well as any symbol that contains `d'.
  4201. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4202. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4203. # platforms (ab)use it in PIC code, but their linkers get confused if
  4204. # the symbol is explicitly referenced. Since portable code cannot
  4205. # rely on this symbol name, it's probably fine to never include it in
  4206. # preloaded symbol tables.
  4207. # Exclude shared library initialization/finalization symbols.
  4208. dnl Note also adjust exclude_expsyms for C++ above.
  4209. extract_expsyms_cmds=
  4210. case $host_os in
  4211. cygwin* | mingw* | pw32* | cegcc*)
  4212. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4213. # When not using gcc, we currently assume that we are using
  4214. # Microsoft Visual C++.
  4215. if test "$GCC" != yes; then
  4216. with_gnu_ld=no
  4217. fi
  4218. ;;
  4219. interix*)
  4220. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4221. with_gnu_ld=yes
  4222. ;;
  4223. openbsd*)
  4224. with_gnu_ld=no
  4225. ;;
  4226. linux* | k*bsd*-gnu | gnu*)
  4227. _LT_TAGVAR(link_all_deplibs, $1)=no
  4228. ;;
  4229. esac
  4230. _LT_TAGVAR(ld_shlibs, $1)=yes
  4231. # On some targets, GNU ld is compatible enough with the native linker
  4232. # that we're better off using the native interface for both.
  4233. lt_use_gnu_ld_interface=no
  4234. if test "$with_gnu_ld" = yes; then
  4235. case $host_os in
  4236. aix*)
  4237. # The AIX port of GNU ld has always aspired to compatibility
  4238. # with the native linker. However, as the warning in the GNU ld
  4239. # block says, versions before 2.19.5* couldn't really create working
  4240. # shared libraries, regardless of the interface used.
  4241. case `$LD -v 2>&1` in
  4242. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4243. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4244. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4245. *)
  4246. lt_use_gnu_ld_interface=yes
  4247. ;;
  4248. esac
  4249. ;;
  4250. *)
  4251. lt_use_gnu_ld_interface=yes
  4252. ;;
  4253. esac
  4254. fi
  4255. if test "$lt_use_gnu_ld_interface" = yes; then
  4256. # If archive_cmds runs LD, not CC, wlarc should be empty
  4257. wlarc='${wl}'
  4258. # Set some defaults for GNU ld with shared library support. These
  4259. # are reset later if shared libraries are not supported. Putting them
  4260. # here allows them to be overridden if necessary.
  4261. runpath_var=LD_RUN_PATH
  4262. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4263. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4264. # ancient GNU ld didn't support --whole-archive et. al.
  4265. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4266. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4267. else
  4268. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4269. fi
  4270. supports_anon_versioning=no
  4271. case `$LD -v 2>&1` in
  4272. *GNU\ gold*) supports_anon_versioning=yes ;;
  4273. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4274. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4275. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4276. *\ 2.11.*) ;; # other 2.11 versions
  4277. *) supports_anon_versioning=yes ;;
  4278. esac
  4279. # See if GNU ld supports shared libraries.
  4280. case $host_os in
  4281. aix[[3-9]]*)
  4282. # On AIX/PPC, the GNU linker is very broken
  4283. if test "$host_cpu" != ia64; then
  4284. _LT_TAGVAR(ld_shlibs, $1)=no
  4285. cat <<_LT_EOF 1>&2
  4286. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4287. *** to be unable to reliably create shared libraries on AIX.
  4288. *** Therefore, libtool is disabling shared libraries support. If you
  4289. *** really care for shared libraries, you may want to install binutils
  4290. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4291. *** You will then need to restart the configuration process.
  4292. _LT_EOF
  4293. fi
  4294. ;;
  4295. amigaos*)
  4296. case $host_cpu in
  4297. powerpc)
  4298. # see comment about AmigaOS4 .so support
  4299. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4300. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4301. ;;
  4302. m68k)
  4303. _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)'
  4304. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4305. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4306. ;;
  4307. esac
  4308. ;;
  4309. beos*)
  4310. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4311. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4312. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4313. # support --undefined. This deserves some investigation. FIXME
  4314. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4315. else
  4316. _LT_TAGVAR(ld_shlibs, $1)=no
  4317. fi
  4318. ;;
  4319. cygwin* | mingw* | pw32* | cegcc*)
  4320. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4321. # as there is no search path for DLLs.
  4322. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4323. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4324. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4325. _LT_TAGVAR(always_export_symbols, $1)=no
  4326. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4327. _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'
  4328. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4329. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4330. _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'
  4331. # If the export-symbols file already is a .def file (1st line
  4332. # is EXPORTS), use it as is; otherwise, prepend...
  4333. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4334. cp $export_symbols $output_objdir/$soname.def;
  4335. else
  4336. echo EXPORTS > $output_objdir/$soname.def;
  4337. cat $export_symbols >> $output_objdir/$soname.def;
  4338. fi~
  4339. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4340. else
  4341. _LT_TAGVAR(ld_shlibs, $1)=no
  4342. fi
  4343. ;;
  4344. haiku*)
  4345. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4346. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4347. ;;
  4348. interix[[3-9]]*)
  4349. _LT_TAGVAR(hardcode_direct, $1)=no
  4350. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4351. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4352. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4353. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4354. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4355. # default) and relocated if they conflict, which is a slow very memory
  4356. # consuming and fragmenting process. To avoid this, we pick a random,
  4357. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4358. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4359. _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'
  4360. _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'
  4361. ;;
  4362. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4363. tmp_diet=no
  4364. if test "$host_os" = linux-dietlibc; then
  4365. case $cc_basename in
  4366. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4367. esac
  4368. fi
  4369. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4370. && test "$tmp_diet" = no
  4371. then
  4372. tmp_addflag=' $pic_flag'
  4373. tmp_sharedflag='-shared'
  4374. case $cc_basename,$host_cpu in
  4375. pgcc*) # Portland Group C compiler
  4376. _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'
  4377. tmp_addflag=' $pic_flag'
  4378. ;;
  4379. pgf77* | pgf90* | pgf95* | pgfortran*)
  4380. # Portland Group f77 and f90 compilers
  4381. _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'
  4382. tmp_addflag=' $pic_flag -Mnomain' ;;
  4383. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4384. tmp_addflag=' -i_dynamic' ;;
  4385. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4386. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4387. ifc* | ifort*) # Intel Fortran compiler
  4388. tmp_addflag=' -nofor_main' ;;
  4389. lf95*) # Lahey Fortran 8.1
  4390. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4391. tmp_sharedflag='--shared' ;;
  4392. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4393. tmp_sharedflag='-qmkshrobj'
  4394. tmp_addflag= ;;
  4395. nvcc*) # Cuda Compiler Driver 2.2
  4396. _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'
  4397. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4398. ;;
  4399. esac
  4400. case `$CC -V 2>&1 | sed 5q` in
  4401. *Sun\ C*) # Sun C 5.9
  4402. _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'
  4403. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4404. tmp_sharedflag='-G' ;;
  4405. *Sun\ F*) # Sun Fortran 8.3
  4406. tmp_sharedflag='-G' ;;
  4407. esac
  4408. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4409. if test "x$supports_anon_versioning" = xyes; then
  4410. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4411. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4412. echo "local: *; };" >> $output_objdir/$libname.ver~
  4413. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4414. fi
  4415. case $cc_basename in
  4416. xlf* | bgf* | bgxlf* | mpixlf*)
  4417. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4418. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4419. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4420. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4421. if test "x$supports_anon_versioning" = xyes; then
  4422. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4423. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4424. echo "local: *; };" >> $output_objdir/$libname.ver~
  4425. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4426. fi
  4427. ;;
  4428. esac
  4429. else
  4430. _LT_TAGVAR(ld_shlibs, $1)=no
  4431. fi
  4432. ;;
  4433. netbsd* | netbsdelf*-gnu)
  4434. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4435. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4436. wlarc=
  4437. else
  4438. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4439. _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'
  4440. fi
  4441. ;;
  4442. solaris*)
  4443. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4444. _LT_TAGVAR(ld_shlibs, $1)=no
  4445. cat <<_LT_EOF 1>&2
  4446. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4447. *** create shared libraries on Solaris systems. Therefore, libtool
  4448. *** is disabling shared libraries support. We urge you to upgrade GNU
  4449. *** binutils to release 2.9.1 or newer. Another option is to modify
  4450. *** your PATH or compiler configuration so that the native linker is
  4451. *** used, and then restart.
  4452. _LT_EOF
  4453. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4454. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4455. _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'
  4456. else
  4457. _LT_TAGVAR(ld_shlibs, $1)=no
  4458. fi
  4459. ;;
  4460. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4461. case `$LD -v 2>&1` in
  4462. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4463. _LT_TAGVAR(ld_shlibs, $1)=no
  4464. cat <<_LT_EOF 1>&2
  4465. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4466. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4467. *** is disabling shared libraries support. We urge you to upgrade GNU
  4468. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4469. *** your PATH or compiler configuration so that the native linker is
  4470. *** used, and then restart.
  4471. _LT_EOF
  4472. ;;
  4473. *)
  4474. # For security reasons, it is highly recommended that you always
  4475. # use absolute paths for naming shared libraries, and exclude the
  4476. # DT_RUNPATH tag from executables and libraries. But doing so
  4477. # requires that you compile everything twice, which is a pain.
  4478. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4479. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4480. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4481. _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'
  4482. else
  4483. _LT_TAGVAR(ld_shlibs, $1)=no
  4484. fi
  4485. ;;
  4486. esac
  4487. ;;
  4488. sunos4*)
  4489. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4490. wlarc=
  4491. _LT_TAGVAR(hardcode_direct, $1)=yes
  4492. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4493. ;;
  4494. *)
  4495. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4496. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4497. _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'
  4498. else
  4499. _LT_TAGVAR(ld_shlibs, $1)=no
  4500. fi
  4501. ;;
  4502. esac
  4503. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4504. runpath_var=
  4505. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4506. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4507. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4508. fi
  4509. else
  4510. # PORTME fill in a description of your system's linker (not GNU ld)
  4511. case $host_os in
  4512. aix3*)
  4513. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4514. _LT_TAGVAR(always_export_symbols, $1)=yes
  4515. _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'
  4516. # Note: this linker hardcodes the directories in LIBPATH if there
  4517. # are no directories specified by -L.
  4518. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4519. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4520. # Neither direct hardcoding nor static linking is supported with a
  4521. # broken collect2.
  4522. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4523. fi
  4524. ;;
  4525. aix[[4-9]]*)
  4526. if test "$host_cpu" = ia64; then
  4527. # On IA64, the linker does run time linking by default, so we don't
  4528. # have to do anything special.
  4529. aix_use_runtimelinking=no
  4530. exp_sym_flag='-Bexport'
  4531. no_entry_flag=""
  4532. else
  4533. # If we're using GNU nm, then we don't want the "-C" option.
  4534. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4535. # Also, AIX nm treats weak defined symbols like other global
  4536. # defined symbols, whereas GNU nm marks them as "W".
  4537. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4538. _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'
  4539. else
  4540. _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'
  4541. fi
  4542. aix_use_runtimelinking=no
  4543. # Test if we are trying to use run time linking or normal
  4544. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4545. # need to do runtime linking.
  4546. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4547. for ld_flag in $LDFLAGS; do
  4548. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4549. aix_use_runtimelinking=yes
  4550. break
  4551. fi
  4552. done
  4553. ;;
  4554. esac
  4555. exp_sym_flag='-bexport'
  4556. no_entry_flag='-bnoentry'
  4557. fi
  4558. # When large executables or shared objects are built, AIX ld can
  4559. # have problems creating the table of contents. If linking a library
  4560. # or program results in "error TOC overflow" add -mminimal-toc to
  4561. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4562. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4563. _LT_TAGVAR(archive_cmds, $1)=''
  4564. _LT_TAGVAR(hardcode_direct, $1)=yes
  4565. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4566. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4567. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4568. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4569. if test "$GCC" = yes; then
  4570. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4571. # We only want to do this on AIX 4.2 and lower, the check
  4572. # below for broken collect2 doesn't work under 4.3+
  4573. collect2name=`${CC} -print-prog-name=collect2`
  4574. if test -f "$collect2name" &&
  4575. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4576. then
  4577. # We have reworked collect2
  4578. :
  4579. else
  4580. # We have old collect2
  4581. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4582. # It fails to find uninstalled libraries when the uninstalled
  4583. # path is not listed in the libpath. Setting hardcode_minus_L
  4584. # to unsupported forces relinking
  4585. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4586. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4587. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4588. fi
  4589. ;;
  4590. esac
  4591. shared_flag='-shared'
  4592. if test "$aix_use_runtimelinking" = yes; then
  4593. shared_flag="$shared_flag "'${wl}-G'
  4594. fi
  4595. _LT_TAGVAR(link_all_deplibs, $1)=no
  4596. else
  4597. # not using gcc
  4598. if test "$host_cpu" = ia64; then
  4599. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4600. # chokes on -Wl,-G. The following line is correct:
  4601. shared_flag='-G'
  4602. else
  4603. if test "$aix_use_runtimelinking" = yes; then
  4604. shared_flag='${wl}-G'
  4605. else
  4606. shared_flag='${wl}-bM:SRE'
  4607. fi
  4608. fi
  4609. fi
  4610. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4611. # It seems that -bexpall does not export symbols beginning with
  4612. # underscore (_), so it is better to generate a list of symbols to export.
  4613. _LT_TAGVAR(always_export_symbols, $1)=yes
  4614. if test "$aix_use_runtimelinking" = yes; then
  4615. # Warning - without using the other runtime loading flags (-brtl),
  4616. # -berok will link without error, but may produce a broken library.
  4617. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4618. # Determine the default libpath from the value encoded in an
  4619. # empty executable.
  4620. _LT_SYS_MODULE_PATH_AIX([$1])
  4621. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4622. _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"
  4623. else
  4624. if test "$host_cpu" = ia64; then
  4625. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4626. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4627. _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"
  4628. else
  4629. # Determine the default libpath from the value encoded in an
  4630. # empty executable.
  4631. _LT_SYS_MODULE_PATH_AIX([$1])
  4632. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4633. # Warning - without using the other run time loading flags,
  4634. # -berok will link without error, but may produce a broken library.
  4635. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4636. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4637. if test "$with_gnu_ld" = yes; then
  4638. # We only use this code for GNU lds that support --whole-archive.
  4639. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4640. else
  4641. # Exported symbols can be pulled into shared objects from archives
  4642. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4643. fi
  4644. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4645. # This is similar to how AIX traditionally builds its shared libraries.
  4646. _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'
  4647. fi
  4648. fi
  4649. ;;
  4650. amigaos*)
  4651. case $host_cpu in
  4652. powerpc)
  4653. # see comment about AmigaOS4 .so support
  4654. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4655. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4656. ;;
  4657. m68k)
  4658. _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)'
  4659. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4660. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4661. ;;
  4662. esac
  4663. ;;
  4664. bsdi[[45]]*)
  4665. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4666. ;;
  4667. cygwin* | mingw* | pw32* | cegcc*)
  4668. # When not using gcc, we currently assume that we are using
  4669. # Microsoft Visual C++.
  4670. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4671. # no search path for DLLs.
  4672. case $cc_basename in
  4673. cl*)
  4674. # Native MSVC
  4675. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4676. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4677. _LT_TAGVAR(always_export_symbols, $1)=yes
  4678. _LT_TAGVAR(file_list_spec, $1)='@'
  4679. # Tell ltmain to make .lib files, not .a files.
  4680. libext=lib
  4681. # Tell ltmain to make .dll files, not .so files.
  4682. shrext_cmds=".dll"
  4683. # FIXME: Setting linknames here is a bad hack.
  4684. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4685. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4686. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4687. else
  4688. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4689. fi~
  4690. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4691. linknames='
  4692. # The linker will not automatically build a static lib if we build a DLL.
  4693. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4694. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4695. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4696. _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'
  4697. # Don't use ranlib
  4698. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4699. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4700. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4701. case $lt_outputfile in
  4702. *.exe|*.EXE) ;;
  4703. *)
  4704. lt_outputfile="$lt_outputfile.exe"
  4705. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4706. ;;
  4707. esac~
  4708. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4709. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4710. $RM "$lt_outputfile.manifest";
  4711. fi'
  4712. ;;
  4713. *)
  4714. # Assume MSVC wrapper
  4715. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4716. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4717. # Tell ltmain to make .lib files, not .a files.
  4718. libext=lib
  4719. # Tell ltmain to make .dll files, not .so files.
  4720. shrext_cmds=".dll"
  4721. # FIXME: Setting linknames here is a bad hack.
  4722. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4723. # The linker will automatically build a .lib file if we build a DLL.
  4724. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4725. # FIXME: Should let the user specify the lib program.
  4726. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4727. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4728. ;;
  4729. esac
  4730. ;;
  4731. darwin* | rhapsody*)
  4732. _LT_DARWIN_LINKER_FEATURES($1)
  4733. ;;
  4734. dgux*)
  4735. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4736. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4737. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4738. ;;
  4739. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4740. # support. Future versions do this automatically, but an explicit c++rt0.o
  4741. # does not break anything, and helps significantly (at the cost of a little
  4742. # extra space).
  4743. freebsd2.2*)
  4744. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4745. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4746. _LT_TAGVAR(hardcode_direct, $1)=yes
  4747. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4748. ;;
  4749. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4750. freebsd2.*)
  4751. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4752. _LT_TAGVAR(hardcode_direct, $1)=yes
  4753. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4754. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4755. ;;
  4756. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4757. freebsd* | dragonfly*)
  4758. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4759. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4760. _LT_TAGVAR(hardcode_direct, $1)=yes
  4761. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4762. ;;
  4763. hpux9*)
  4764. if test "$GCC" = yes; then
  4765. _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'
  4766. else
  4767. _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'
  4768. fi
  4769. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4770. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4771. _LT_TAGVAR(hardcode_direct, $1)=yes
  4772. # hardcode_minus_L: Not really in the search PATH,
  4773. # but as the default location of the library.
  4774. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4775. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4776. ;;
  4777. hpux10*)
  4778. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4779. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4780. else
  4781. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4782. fi
  4783. if test "$with_gnu_ld" = no; then
  4784. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4785. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4786. _LT_TAGVAR(hardcode_direct, $1)=yes
  4787. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4788. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4789. # hardcode_minus_L: Not really in the search PATH,
  4790. # but as the default location of the library.
  4791. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4792. fi
  4793. ;;
  4794. hpux11*)
  4795. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4796. case $host_cpu in
  4797. hppa*64*)
  4798. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4799. ;;
  4800. ia64*)
  4801. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4802. ;;
  4803. *)
  4804. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4805. ;;
  4806. esac
  4807. else
  4808. case $host_cpu in
  4809. hppa*64*)
  4810. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4811. ;;
  4812. ia64*)
  4813. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4814. ;;
  4815. *)
  4816. m4_if($1, [], [
  4817. # Older versions of the 11.00 compiler do not understand -b yet
  4818. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4819. _LT_LINKER_OPTION([if $CC understands -b],
  4820. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4821. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4822. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4823. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4824. ;;
  4825. esac
  4826. fi
  4827. if test "$with_gnu_ld" = no; then
  4828. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4829. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4830. case $host_cpu in
  4831. hppa*64*|ia64*)
  4832. _LT_TAGVAR(hardcode_direct, $1)=no
  4833. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4834. ;;
  4835. *)
  4836. _LT_TAGVAR(hardcode_direct, $1)=yes
  4837. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4838. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4839. # hardcode_minus_L: Not really in the search PATH,
  4840. # but as the default location of the library.
  4841. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4842. ;;
  4843. esac
  4844. fi
  4845. ;;
  4846. irix5* | irix6* | nonstopux*)
  4847. if test "$GCC" = yes; then
  4848. _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'
  4849. # Try to use the -exported_symbol ld option, if it does not
  4850. # work, assume that -exports_file does not work either and
  4851. # implicitly export all symbols.
  4852. # This should be the same for all languages, so no per-tag cache variable.
  4853. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4854. [lt_cv_irix_exported_symbol],
  4855. [save_LDFLAGS="$LDFLAGS"
  4856. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4857. AC_LINK_IFELSE(
  4858. [AC_LANG_SOURCE(
  4859. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4860. [C++], [[int foo (void) { return 0; }]],
  4861. [Fortran 77], [[
  4862. subroutine foo
  4863. end]],
  4864. [Fortran], [[
  4865. subroutine foo
  4866. end]])])],
  4867. [lt_cv_irix_exported_symbol=yes],
  4868. [lt_cv_irix_exported_symbol=no])
  4869. LDFLAGS="$save_LDFLAGS"])
  4870. if test "$lt_cv_irix_exported_symbol" = yes; then
  4871. _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'
  4872. fi
  4873. else
  4874. _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'
  4875. _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'
  4876. fi
  4877. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4878. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4879. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4880. _LT_TAGVAR(inherit_rpath, $1)=yes
  4881. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4882. ;;
  4883. netbsd* | netbsdelf*-gnu)
  4884. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4885. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4886. else
  4887. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4888. fi
  4889. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4890. _LT_TAGVAR(hardcode_direct, $1)=yes
  4891. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4892. ;;
  4893. newsos6)
  4894. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4895. _LT_TAGVAR(hardcode_direct, $1)=yes
  4896. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4897. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4898. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4899. ;;
  4900. *nto* | *qnx*)
  4901. ;;
  4902. openbsd*)
  4903. if test -f /usr/libexec/ld.so; then
  4904. _LT_TAGVAR(hardcode_direct, $1)=yes
  4905. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4906. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4907. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4908. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4909. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4910. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4911. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4912. else
  4913. case $host_os in
  4914. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4915. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4916. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4917. ;;
  4918. *)
  4919. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4920. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4921. ;;
  4922. esac
  4923. fi
  4924. else
  4925. _LT_TAGVAR(ld_shlibs, $1)=no
  4926. fi
  4927. ;;
  4928. os2*)
  4929. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4930. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4931. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4932. _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'
  4933. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4934. ;;
  4935. osf3*)
  4936. if test "$GCC" = yes; then
  4937. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4938. _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'
  4939. else
  4940. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4941. _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'
  4942. fi
  4943. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4944. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4945. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4946. ;;
  4947. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4948. if test "$GCC" = yes; then
  4949. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4950. _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'
  4951. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4952. else
  4953. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4954. _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'
  4955. _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~
  4956. $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'
  4957. # Both c and cxx compiler support -rpath directly
  4958. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4959. fi
  4960. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4961. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4962. ;;
  4963. solaris*)
  4964. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4965. if test "$GCC" = yes; then
  4966. wlarc='${wl}'
  4967. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4968. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4969. $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'
  4970. else
  4971. case `$CC -V 2>&1` in
  4972. *"Compilers 5.0"*)
  4973. wlarc=''
  4974. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4975. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4976. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4977. ;;
  4978. *)
  4979. wlarc='${wl}'
  4980. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4981. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4982. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4983. ;;
  4984. esac
  4985. fi
  4986. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4987. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4988. case $host_os in
  4989. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4990. *)
  4991. # The compiler driver will combine and reorder linker options,
  4992. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4993. # but is careful enough not to reorder.
  4994. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4995. if test "$GCC" = yes; then
  4996. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4997. else
  4998. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4999. fi
  5000. ;;
  5001. esac
  5002. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5003. ;;
  5004. sunos4*)
  5005. if test "x$host_vendor" = xsequent; then
  5006. # Use $CC to link under sequent, because it throws in some extra .o
  5007. # files that make .init and .fini sections work.
  5008. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5009. else
  5010. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5011. fi
  5012. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5013. _LT_TAGVAR(hardcode_direct, $1)=yes
  5014. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5015. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5016. ;;
  5017. sysv4)
  5018. case $host_vendor in
  5019. sni)
  5020. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5021. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5022. ;;
  5023. siemens)
  5024. ## LD is ld it makes a PLAMLIB
  5025. ## CC just makes a GrossModule.
  5026. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5027. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5028. _LT_TAGVAR(hardcode_direct, $1)=no
  5029. ;;
  5030. motorola)
  5031. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5032. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5033. ;;
  5034. esac
  5035. runpath_var='LD_RUN_PATH'
  5036. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5037. ;;
  5038. sysv4.3*)
  5039. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5040. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5041. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5042. ;;
  5043. sysv4*MP*)
  5044. if test -d /usr/nec; then
  5045. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5046. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5047. runpath_var=LD_RUN_PATH
  5048. hardcode_runpath_var=yes
  5049. _LT_TAGVAR(ld_shlibs, $1)=yes
  5050. fi
  5051. ;;
  5052. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5053. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5054. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5055. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5056. runpath_var='LD_RUN_PATH'
  5057. if test "$GCC" = yes; then
  5058. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5059. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5060. else
  5061. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5062. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5063. fi
  5064. ;;
  5065. sysv5* | sco3.2v5* | sco5v6*)
  5066. # Note: We can NOT use -z defs as we might desire, because we do not
  5067. # link with -lc, and that would cause any symbols used from libc to
  5068. # always be unresolved, which means just about no library would
  5069. # ever link correctly. If we're not using GNU ld we use -z text
  5070. # though, which does catch some bad symbols but isn't as heavy-handed
  5071. # as -z defs.
  5072. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5073. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5074. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5075. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5076. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5077. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5078. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5079. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5080. runpath_var='LD_RUN_PATH'
  5081. if test "$GCC" = yes; then
  5082. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5083. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5084. else
  5085. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5086. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5087. fi
  5088. ;;
  5089. uts4*)
  5090. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5091. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5092. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5093. ;;
  5094. *)
  5095. _LT_TAGVAR(ld_shlibs, $1)=no
  5096. ;;
  5097. esac
  5098. if test x$host_vendor = xsni; then
  5099. case $host in
  5100. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5101. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5102. ;;
  5103. esac
  5104. fi
  5105. fi
  5106. ])
  5107. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5108. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5109. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5110. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5111. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5112. _LT_DECL([], [extract_expsyms_cmds], [2],
  5113. [The commands to extract the exported symbol list from a shared archive])
  5114. #
  5115. # Do we need to explicitly link libc?
  5116. #
  5117. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5118. x|xyes)
  5119. # Assume -lc should be added
  5120. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5121. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5122. case $_LT_TAGVAR(archive_cmds, $1) in
  5123. *'~'*)
  5124. # FIXME: we may have to deal with multi-command sequences.
  5125. ;;
  5126. '$CC '*)
  5127. # Test whether the compiler implicitly links with -lc since on some
  5128. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5129. # to ld, don't add -lc before -lgcc.
  5130. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5131. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5132. [$RM conftest*
  5133. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5134. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5135. soname=conftest
  5136. lib=conftest
  5137. libobjs=conftest.$ac_objext
  5138. deplibs=
  5139. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5140. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5141. compiler_flags=-v
  5142. linker_flags=-v
  5143. verstring=
  5144. output_objdir=.
  5145. libname=conftest
  5146. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5147. _LT_TAGVAR(allow_undefined_flag, $1)=
  5148. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5149. then
  5150. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5151. else
  5152. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5153. fi
  5154. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5155. else
  5156. cat conftest.err 1>&5
  5157. fi
  5158. $RM conftest*
  5159. ])
  5160. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5161. ;;
  5162. esac
  5163. fi
  5164. ;;
  5165. esac
  5166. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5167. [Whether or not to add -lc for building shared libraries])
  5168. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5169. [enable_shared_with_static_runtimes], [0],
  5170. [Whether or not to disallow shared libs when runtime libs are static])
  5171. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5172. [Compiler flag to allow reflexive dlopens])
  5173. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5174. [Compiler flag to generate shared objects directly from archives])
  5175. _LT_TAGDECL([], [compiler_needs_object], [1],
  5176. [Whether the compiler copes with passing no objects directly])
  5177. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5178. [Create an old-style archive from a shared archive])
  5179. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5180. [Create a temporary old-style archive to link instead of a shared archive])
  5181. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5182. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5183. _LT_TAGDECL([], [module_cmds], [2],
  5184. [Commands used to build a loadable module if different from building
  5185. a shared archive.])
  5186. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5187. _LT_TAGDECL([], [with_gnu_ld], [1],
  5188. [Whether we are building with GNU ld or not])
  5189. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5190. [Flag that allows shared libraries with undefined symbols to be built])
  5191. _LT_TAGDECL([], [no_undefined_flag], [1],
  5192. [Flag that enforces no undefined symbols])
  5193. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5194. [Flag to hardcode $libdir into a binary during linking.
  5195. This must work even if $libdir does not exist])
  5196. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5197. [Whether we need a single "-rpath" flag with a separated argument])
  5198. _LT_TAGDECL([], [hardcode_direct], [0],
  5199. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5200. DIR into the resulting binary])
  5201. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5202. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5203. DIR into the resulting binary and the resulting library dependency is
  5204. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5205. library is relocated])
  5206. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5207. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5208. into the resulting binary])
  5209. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5210. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5211. into the resulting binary])
  5212. _LT_TAGDECL([], [hardcode_automatic], [0],
  5213. [Set to "yes" if building a shared library automatically hardcodes DIR
  5214. into the library and all subsequent libraries and executables linked
  5215. against it])
  5216. _LT_TAGDECL([], [inherit_rpath], [0],
  5217. [Set to yes if linker adds runtime paths of dependent libraries
  5218. to runtime path list])
  5219. _LT_TAGDECL([], [link_all_deplibs], [0],
  5220. [Whether libtool must link a program against all its dependency libraries])
  5221. _LT_TAGDECL([], [always_export_symbols], [0],
  5222. [Set to "yes" if exported symbols are required])
  5223. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5224. [The commands to list exported symbols])
  5225. _LT_TAGDECL([], [exclude_expsyms], [1],
  5226. [Symbols that should not be listed in the preloaded symbols])
  5227. _LT_TAGDECL([], [include_expsyms], [1],
  5228. [Symbols that must always be exported])
  5229. _LT_TAGDECL([], [prelink_cmds], [2],
  5230. [Commands necessary for linking programs (against libraries) with templates])
  5231. _LT_TAGDECL([], [postlink_cmds], [2],
  5232. [Commands necessary for finishing linking programs])
  5233. _LT_TAGDECL([], [file_list_spec], [1],
  5234. [Specify filename containing input files])
  5235. dnl FIXME: Not yet implemented
  5236. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5237. dnl [Compiler flag to generate thread safe objects])
  5238. ])# _LT_LINKER_SHLIBS
  5239. # _LT_LANG_C_CONFIG([TAG])
  5240. # ------------------------
  5241. # Ensure that the configuration variables for a C compiler are suitably
  5242. # defined. These variables are subsequently used by _LT_CONFIG to write
  5243. # the compiler configuration to `libtool'.
  5244. m4_defun([_LT_LANG_C_CONFIG],
  5245. [m4_require([_LT_DECL_EGREP])dnl
  5246. lt_save_CC="$CC"
  5247. AC_LANG_PUSH(C)
  5248. # Source file extension for C test sources.
  5249. ac_ext=c
  5250. # Object file extension for compiled C test sources.
  5251. objext=o
  5252. _LT_TAGVAR(objext, $1)=$objext
  5253. # Code to be used in simple compile tests
  5254. lt_simple_compile_test_code="int some_variable = 0;"
  5255. # Code to be used in simple link tests
  5256. lt_simple_link_test_code='int main(){return(0);}'
  5257. _LT_TAG_COMPILER
  5258. # Save the default compiler, since it gets overwritten when the other
  5259. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5260. compiler_DEFAULT=$CC
  5261. # save warnings/boilerplate of simple test code
  5262. _LT_COMPILER_BOILERPLATE
  5263. _LT_LINKER_BOILERPLATE
  5264. if test -n "$compiler"; then
  5265. _LT_COMPILER_NO_RTTI($1)
  5266. _LT_COMPILER_PIC($1)
  5267. _LT_COMPILER_C_O($1)
  5268. _LT_COMPILER_FILE_LOCKS($1)
  5269. _LT_LINKER_SHLIBS($1)
  5270. _LT_SYS_DYNAMIC_LINKER($1)
  5271. _LT_LINKER_HARDCODE_LIBPATH($1)
  5272. LT_SYS_DLOPEN_SELF
  5273. _LT_CMD_STRIPLIB
  5274. # Report which library types will actually be built
  5275. AC_MSG_CHECKING([if libtool supports shared libraries])
  5276. AC_MSG_RESULT([$can_build_shared])
  5277. AC_MSG_CHECKING([whether to build shared libraries])
  5278. test "$can_build_shared" = "no" && enable_shared=no
  5279. # On AIX, shared libraries and static libraries use the same namespace, and
  5280. # are all built from PIC.
  5281. case $host_os in
  5282. aix3*)
  5283. test "$enable_shared" = yes && enable_static=no
  5284. if test -n "$RANLIB"; then
  5285. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5286. postinstall_cmds='$RANLIB $lib'
  5287. fi
  5288. ;;
  5289. aix[[4-9]]*)
  5290. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5291. test "$enable_shared" = yes && enable_static=no
  5292. fi
  5293. ;;
  5294. esac
  5295. AC_MSG_RESULT([$enable_shared])
  5296. AC_MSG_CHECKING([whether to build static libraries])
  5297. # Make sure either enable_shared or enable_static is yes.
  5298. test "$enable_shared" = yes || enable_static=yes
  5299. AC_MSG_RESULT([$enable_static])
  5300. _LT_CONFIG($1)
  5301. fi
  5302. AC_LANG_POP
  5303. CC="$lt_save_CC"
  5304. ])# _LT_LANG_C_CONFIG
  5305. # _LT_LANG_CXX_CONFIG([TAG])
  5306. # --------------------------
  5307. # Ensure that the configuration variables for a C++ compiler are suitably
  5308. # defined. These variables are subsequently used by _LT_CONFIG to write
  5309. # the compiler configuration to `libtool'.
  5310. m4_defun([_LT_LANG_CXX_CONFIG],
  5311. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5312. m4_require([_LT_DECL_EGREP])dnl
  5313. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5314. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5315. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5316. (test "X$CXX" != "Xg++"))) ; then
  5317. AC_PROG_CXXCPP
  5318. else
  5319. _lt_caught_CXX_error=yes
  5320. fi
  5321. AC_LANG_PUSH(C++)
  5322. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5323. _LT_TAGVAR(allow_undefined_flag, $1)=
  5324. _LT_TAGVAR(always_export_symbols, $1)=no
  5325. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5326. _LT_TAGVAR(compiler_needs_object, $1)=no
  5327. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5328. _LT_TAGVAR(hardcode_direct, $1)=no
  5329. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5330. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5331. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5332. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5333. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5334. _LT_TAGVAR(hardcode_automatic, $1)=no
  5335. _LT_TAGVAR(inherit_rpath, $1)=no
  5336. _LT_TAGVAR(module_cmds, $1)=
  5337. _LT_TAGVAR(module_expsym_cmds, $1)=
  5338. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5339. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5340. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5341. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5342. _LT_TAGVAR(no_undefined_flag, $1)=
  5343. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5344. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5345. # Source file extension for C++ test sources.
  5346. ac_ext=cpp
  5347. # Object file extension for compiled C++ test sources.
  5348. objext=o
  5349. _LT_TAGVAR(objext, $1)=$objext
  5350. # No sense in running all these tests if we already determined that
  5351. # the CXX compiler isn't working. Some variables (like enable_shared)
  5352. # are currently assumed to apply to all compilers on this platform,
  5353. # and will be corrupted by setting them based on a non-working compiler.
  5354. if test "$_lt_caught_CXX_error" != yes; then
  5355. # Code to be used in simple compile tests
  5356. lt_simple_compile_test_code="int some_variable = 0;"
  5357. # Code to be used in simple link tests
  5358. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5359. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5360. _LT_TAG_COMPILER
  5361. # save warnings/boilerplate of simple test code
  5362. _LT_COMPILER_BOILERPLATE
  5363. _LT_LINKER_BOILERPLATE
  5364. # Allow CC to be a program name with arguments.
  5365. lt_save_CC=$CC
  5366. lt_save_CFLAGS=$CFLAGS
  5367. lt_save_LD=$LD
  5368. lt_save_GCC=$GCC
  5369. GCC=$GXX
  5370. lt_save_with_gnu_ld=$with_gnu_ld
  5371. lt_save_path_LD=$lt_cv_path_LD
  5372. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5373. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5374. else
  5375. $as_unset lt_cv_prog_gnu_ld
  5376. fi
  5377. if test -n "${lt_cv_path_LDCXX+set}"; then
  5378. lt_cv_path_LD=$lt_cv_path_LDCXX
  5379. else
  5380. $as_unset lt_cv_path_LD
  5381. fi
  5382. test -z "${LDCXX+set}" || LD=$LDCXX
  5383. CC=${CXX-"c++"}
  5384. CFLAGS=$CXXFLAGS
  5385. compiler=$CC
  5386. _LT_TAGVAR(compiler, $1)=$CC
  5387. _LT_CC_BASENAME([$compiler])
  5388. if test -n "$compiler"; then
  5389. # We don't want -fno-exception when compiling C++ code, so set the
  5390. # no_builtin_flag separately
  5391. if test "$GXX" = yes; then
  5392. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5393. else
  5394. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5395. fi
  5396. if test "$GXX" = yes; then
  5397. # Set up default GNU C++ configuration
  5398. LT_PATH_LD
  5399. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5400. # archiving commands below assume that GNU ld is being used.
  5401. if test "$with_gnu_ld" = yes; then
  5402. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5403. _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'
  5404. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5405. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5406. # If archive_cmds runs LD, not CC, wlarc should be empty
  5407. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5408. # investigate it a little bit more. (MM)
  5409. wlarc='${wl}'
  5410. # ancient GNU ld didn't support --whole-archive et. al.
  5411. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5412. $GREP 'no-whole-archive' > /dev/null; then
  5413. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5414. else
  5415. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5416. fi
  5417. else
  5418. with_gnu_ld=no
  5419. wlarc=
  5420. # A generic and very simple default shared library creation
  5421. # command for GNU C++ for the case where it uses the native
  5422. # linker, instead of GNU ld. If possible, this setting should
  5423. # overridden to take advantage of the native linker features on
  5424. # the platform it is being used on.
  5425. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5426. fi
  5427. # Commands to make compiler produce verbose output that lists
  5428. # what "hidden" libraries, object files and flags are used when
  5429. # linking a shared library.
  5430. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5431. else
  5432. GXX=no
  5433. with_gnu_ld=no
  5434. wlarc=
  5435. fi
  5436. # PORTME: fill in a description of your system's C++ link characteristics
  5437. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5438. _LT_TAGVAR(ld_shlibs, $1)=yes
  5439. case $host_os in
  5440. aix3*)
  5441. # FIXME: insert proper C++ library support
  5442. _LT_TAGVAR(ld_shlibs, $1)=no
  5443. ;;
  5444. aix[[4-9]]*)
  5445. if test "$host_cpu" = ia64; then
  5446. # On IA64, the linker does run time linking by default, so we don't
  5447. # have to do anything special.
  5448. aix_use_runtimelinking=no
  5449. exp_sym_flag='-Bexport'
  5450. no_entry_flag=""
  5451. else
  5452. aix_use_runtimelinking=no
  5453. # Test if we are trying to use run time linking or normal
  5454. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5455. # need to do runtime linking.
  5456. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5457. for ld_flag in $LDFLAGS; do
  5458. case $ld_flag in
  5459. *-brtl*)
  5460. aix_use_runtimelinking=yes
  5461. break
  5462. ;;
  5463. esac
  5464. done
  5465. ;;
  5466. esac
  5467. exp_sym_flag='-bexport'
  5468. no_entry_flag='-bnoentry'
  5469. fi
  5470. # When large executables or shared objects are built, AIX ld can
  5471. # have problems creating the table of contents. If linking a library
  5472. # or program results in "error TOC overflow" add -mminimal-toc to
  5473. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5474. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5475. _LT_TAGVAR(archive_cmds, $1)=''
  5476. _LT_TAGVAR(hardcode_direct, $1)=yes
  5477. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5478. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5479. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5480. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5481. if test "$GXX" = yes; then
  5482. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5483. # We only want to do this on AIX 4.2 and lower, the check
  5484. # below for broken collect2 doesn't work under 4.3+
  5485. collect2name=`${CC} -print-prog-name=collect2`
  5486. if test -f "$collect2name" &&
  5487. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5488. then
  5489. # We have reworked collect2
  5490. :
  5491. else
  5492. # We have old collect2
  5493. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5494. # It fails to find uninstalled libraries when the uninstalled
  5495. # path is not listed in the libpath. Setting hardcode_minus_L
  5496. # to unsupported forces relinking
  5497. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5498. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5499. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5500. fi
  5501. esac
  5502. shared_flag='-shared'
  5503. if test "$aix_use_runtimelinking" = yes; then
  5504. shared_flag="$shared_flag "'${wl}-G'
  5505. fi
  5506. else
  5507. # not using gcc
  5508. if test "$host_cpu" = ia64; then
  5509. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5510. # chokes on -Wl,-G. The following line is correct:
  5511. shared_flag='-G'
  5512. else
  5513. if test "$aix_use_runtimelinking" = yes; then
  5514. shared_flag='${wl}-G'
  5515. else
  5516. shared_flag='${wl}-bM:SRE'
  5517. fi
  5518. fi
  5519. fi
  5520. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5521. # It seems that -bexpall does not export symbols beginning with
  5522. # underscore (_), so it is better to generate a list of symbols to
  5523. # export.
  5524. _LT_TAGVAR(always_export_symbols, $1)=yes
  5525. if test "$aix_use_runtimelinking" = yes; then
  5526. # Warning - without using the other runtime loading flags (-brtl),
  5527. # -berok will link without error, but may produce a broken library.
  5528. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5529. # Determine the default libpath from the value encoded in an empty
  5530. # executable.
  5531. _LT_SYS_MODULE_PATH_AIX([$1])
  5532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5533. _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"
  5534. else
  5535. if test "$host_cpu" = ia64; then
  5536. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5537. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5538. _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"
  5539. else
  5540. # Determine the default libpath from the value encoded in an
  5541. # empty executable.
  5542. _LT_SYS_MODULE_PATH_AIX([$1])
  5543. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5544. # Warning - without using the other run time loading flags,
  5545. # -berok will link without error, but may produce a broken library.
  5546. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5547. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5548. if test "$with_gnu_ld" = yes; then
  5549. # We only use this code for GNU lds that support --whole-archive.
  5550. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5551. else
  5552. # Exported symbols can be pulled into shared objects from archives
  5553. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5554. fi
  5555. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5556. # This is similar to how AIX traditionally builds its shared
  5557. # libraries.
  5558. _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'
  5559. fi
  5560. fi
  5561. ;;
  5562. beos*)
  5563. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5564. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5565. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5566. # support --undefined. This deserves some investigation. FIXME
  5567. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5568. else
  5569. _LT_TAGVAR(ld_shlibs, $1)=no
  5570. fi
  5571. ;;
  5572. chorus*)
  5573. case $cc_basename in
  5574. *)
  5575. # FIXME: insert proper C++ library support
  5576. _LT_TAGVAR(ld_shlibs, $1)=no
  5577. ;;
  5578. esac
  5579. ;;
  5580. cygwin* | mingw* | pw32* | cegcc*)
  5581. case $GXX,$cc_basename in
  5582. ,cl* | no,cl*)
  5583. # Native MSVC
  5584. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5585. # no search path for DLLs.
  5586. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5587. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5588. _LT_TAGVAR(always_export_symbols, $1)=yes
  5589. _LT_TAGVAR(file_list_spec, $1)='@'
  5590. # Tell ltmain to make .lib files, not .a files.
  5591. libext=lib
  5592. # Tell ltmain to make .dll files, not .so files.
  5593. shrext_cmds=".dll"
  5594. # FIXME: Setting linknames here is a bad hack.
  5595. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5596. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5597. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5598. else
  5599. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5600. fi~
  5601. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5602. linknames='
  5603. # The linker will not automatically build a static lib if we build a DLL.
  5604. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5605. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5606. # Don't use ranlib
  5607. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5608. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5609. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5610. case $lt_outputfile in
  5611. *.exe|*.EXE) ;;
  5612. *)
  5613. lt_outputfile="$lt_outputfile.exe"
  5614. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5615. ;;
  5616. esac~
  5617. func_to_tool_file "$lt_outputfile"~
  5618. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5619. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5620. $RM "$lt_outputfile.manifest";
  5621. fi'
  5622. ;;
  5623. *)
  5624. # g++
  5625. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5626. # as there is no search path for DLLs.
  5627. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5628. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5629. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5630. _LT_TAGVAR(always_export_symbols, $1)=no
  5631. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5632. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5633. _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'
  5634. # If the export-symbols file already is a .def file (1st line
  5635. # is EXPORTS), use it as is; otherwise, prepend...
  5636. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5637. cp $export_symbols $output_objdir/$soname.def;
  5638. else
  5639. echo EXPORTS > $output_objdir/$soname.def;
  5640. cat $export_symbols >> $output_objdir/$soname.def;
  5641. fi~
  5642. $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'
  5643. else
  5644. _LT_TAGVAR(ld_shlibs, $1)=no
  5645. fi
  5646. ;;
  5647. esac
  5648. ;;
  5649. darwin* | rhapsody*)
  5650. _LT_DARWIN_LINKER_FEATURES($1)
  5651. ;;
  5652. dgux*)
  5653. case $cc_basename in
  5654. ec++*)
  5655. # FIXME: insert proper C++ library support
  5656. _LT_TAGVAR(ld_shlibs, $1)=no
  5657. ;;
  5658. ghcx*)
  5659. # Green Hills C++ Compiler
  5660. # FIXME: insert proper C++ library support
  5661. _LT_TAGVAR(ld_shlibs, $1)=no
  5662. ;;
  5663. *)
  5664. # FIXME: insert proper C++ library support
  5665. _LT_TAGVAR(ld_shlibs, $1)=no
  5666. ;;
  5667. esac
  5668. ;;
  5669. freebsd2.*)
  5670. # C++ shared libraries reported to be fairly broken before
  5671. # switch to ELF
  5672. _LT_TAGVAR(ld_shlibs, $1)=no
  5673. ;;
  5674. freebsd-elf*)
  5675. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5676. ;;
  5677. freebsd* | dragonfly*)
  5678. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5679. # conventions
  5680. _LT_TAGVAR(ld_shlibs, $1)=yes
  5681. ;;
  5682. gnu*)
  5683. ;;
  5684. haiku*)
  5685. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5686. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5687. ;;
  5688. hpux9*)
  5689. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5690. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5691. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5692. _LT_TAGVAR(hardcode_direct, $1)=yes
  5693. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5694. # but as the default
  5695. # location of the library.
  5696. case $cc_basename in
  5697. CC*)
  5698. # FIXME: insert proper C++ library support
  5699. _LT_TAGVAR(ld_shlibs, $1)=no
  5700. ;;
  5701. aCC*)
  5702. _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'
  5703. # Commands to make compiler produce verbose output that lists
  5704. # what "hidden" libraries, object files and flags are used when
  5705. # linking a shared library.
  5706. #
  5707. # There doesn't appear to be a way to prevent this compiler from
  5708. # explicitly linking system object files so we need to strip them
  5709. # from the output so that they don't get included in the library
  5710. # dependencies.
  5711. 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"'
  5712. ;;
  5713. *)
  5714. if test "$GXX" = yes; then
  5715. _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'
  5716. else
  5717. # FIXME: insert proper C++ library support
  5718. _LT_TAGVAR(ld_shlibs, $1)=no
  5719. fi
  5720. ;;
  5721. esac
  5722. ;;
  5723. hpux10*|hpux11*)
  5724. if test $with_gnu_ld = no; then
  5725. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5726. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5727. case $host_cpu in
  5728. hppa*64*|ia64*)
  5729. ;;
  5730. *)
  5731. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5732. ;;
  5733. esac
  5734. fi
  5735. case $host_cpu in
  5736. hppa*64*|ia64*)
  5737. _LT_TAGVAR(hardcode_direct, $1)=no
  5738. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5739. ;;
  5740. *)
  5741. _LT_TAGVAR(hardcode_direct, $1)=yes
  5742. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5743. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5744. # but as the default
  5745. # location of the library.
  5746. ;;
  5747. esac
  5748. case $cc_basename in
  5749. CC*)
  5750. # FIXME: insert proper C++ library support
  5751. _LT_TAGVAR(ld_shlibs, $1)=no
  5752. ;;
  5753. aCC*)
  5754. case $host_cpu in
  5755. hppa*64*)
  5756. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5757. ;;
  5758. ia64*)
  5759. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5760. ;;
  5761. *)
  5762. _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'
  5763. ;;
  5764. esac
  5765. # Commands to make compiler produce verbose output that lists
  5766. # what "hidden" libraries, object files and flags are used when
  5767. # linking a shared library.
  5768. #
  5769. # There doesn't appear to be a way to prevent this compiler from
  5770. # explicitly linking system object files so we need to strip them
  5771. # from the output so that they don't get included in the library
  5772. # dependencies.
  5773. 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"'
  5774. ;;
  5775. *)
  5776. if test "$GXX" = yes; then
  5777. if test $with_gnu_ld = no; then
  5778. case $host_cpu in
  5779. hppa*64*)
  5780. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5781. ;;
  5782. ia64*)
  5783. _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'
  5784. ;;
  5785. *)
  5786. _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'
  5787. ;;
  5788. esac
  5789. fi
  5790. else
  5791. # FIXME: insert proper C++ library support
  5792. _LT_TAGVAR(ld_shlibs, $1)=no
  5793. fi
  5794. ;;
  5795. esac
  5796. ;;
  5797. interix[[3-9]]*)
  5798. _LT_TAGVAR(hardcode_direct, $1)=no
  5799. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5800. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5801. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5802. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5803. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5804. # default) and relocated if they conflict, which is a slow very memory
  5805. # consuming and fragmenting process. To avoid this, we pick a random,
  5806. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5807. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5808. _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'
  5809. _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'
  5810. ;;
  5811. irix5* | irix6*)
  5812. case $cc_basename in
  5813. CC*)
  5814. # SGI C++
  5815. _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'
  5816. # Archives containing C++ object files must be created using
  5817. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5818. # necessary to make sure instantiated templates are included
  5819. # in the archive.
  5820. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5821. ;;
  5822. *)
  5823. if test "$GXX" = yes; then
  5824. if test "$with_gnu_ld" = no; then
  5825. _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'
  5826. else
  5827. _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'
  5828. fi
  5829. fi
  5830. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5831. ;;
  5832. esac
  5833. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5834. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5835. _LT_TAGVAR(inherit_rpath, $1)=yes
  5836. ;;
  5837. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5838. case $cc_basename in
  5839. KCC*)
  5840. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5841. # KCC will only create a shared library if the output file
  5842. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5843. # to its proper name (with version) after linking.
  5844. _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'
  5845. _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'
  5846. # Commands to make compiler produce verbose output that lists
  5847. # what "hidden" libraries, object files and flags are used when
  5848. # linking a shared library.
  5849. #
  5850. # There doesn't appear to be a way to prevent this compiler from
  5851. # explicitly linking system object files so we need to strip them
  5852. # from the output so that they don't get included in the library
  5853. # dependencies.
  5854. 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"'
  5855. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5856. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5857. # Archives containing C++ object files must be created using
  5858. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5859. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5860. ;;
  5861. icpc* | ecpc* )
  5862. # Intel C++
  5863. with_gnu_ld=yes
  5864. # version 8.0 and above of icpc choke on multiply defined symbols
  5865. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5866. # earlier do not add the objects themselves.
  5867. case `$CC -V 2>&1` in
  5868. *"Version 7."*)
  5869. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5870. _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'
  5871. ;;
  5872. *) # Version 8.0 or newer
  5873. tmp_idyn=
  5874. case $host_cpu in
  5875. ia64*) tmp_idyn=' -i_dynamic';;
  5876. esac
  5877. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5878. _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'
  5879. ;;
  5880. esac
  5881. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5882. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5883. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5884. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5885. ;;
  5886. pgCC* | pgcpp*)
  5887. # Portland Group C++ compiler
  5888. case `$CC -V` in
  5889. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5890. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5891. rm -rf $tpldir~
  5892. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5893. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5894. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5895. rm -rf $tpldir~
  5896. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5897. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5898. $RANLIB $oldlib'
  5899. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5900. rm -rf $tpldir~
  5901. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5902. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5903. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5904. rm -rf $tpldir~
  5905. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5906. $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'
  5907. ;;
  5908. *) # Version 6 and above use weak symbols
  5909. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5910. _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'
  5911. ;;
  5912. esac
  5913. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5914. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5915. _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'
  5916. ;;
  5917. cxx*)
  5918. # Compaq C++
  5919. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5920. _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'
  5921. runpath_var=LD_RUN_PATH
  5922. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5923. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5924. # Commands to make compiler produce verbose output that lists
  5925. # what "hidden" libraries, object files and flags are used when
  5926. # linking a shared library.
  5927. #
  5928. # There doesn't appear to be a way to prevent this compiler from
  5929. # explicitly linking system object files so we need to strip them
  5930. # from the output so that they don't get included in the library
  5931. # dependencies.
  5932. 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'
  5933. ;;
  5934. xl* | mpixl* | bgxl*)
  5935. # IBM XL 8.0 on PPC, with GNU ld
  5936. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5937. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5938. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5939. if test "x$supports_anon_versioning" = xyes; then
  5940. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5941. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5942. echo "local: *; };" >> $output_objdir/$libname.ver~
  5943. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5944. fi
  5945. ;;
  5946. *)
  5947. case `$CC -V 2>&1 | sed 5q` in
  5948. *Sun\ C*)
  5949. # Sun C++ 5.9
  5950. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5951. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5952. _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'
  5953. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5954. _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'
  5955. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5956. # Not sure whether something based on
  5957. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5958. # would be better.
  5959. output_verbose_link_cmd='func_echo_all'
  5960. # Archives containing C++ object files must be created using
  5961. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5962. # necessary to make sure instantiated templates are included
  5963. # in the archive.
  5964. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5965. ;;
  5966. esac
  5967. ;;
  5968. esac
  5969. ;;
  5970. lynxos*)
  5971. # FIXME: insert proper C++ library support
  5972. _LT_TAGVAR(ld_shlibs, $1)=no
  5973. ;;
  5974. m88k*)
  5975. # FIXME: insert proper C++ library support
  5976. _LT_TAGVAR(ld_shlibs, $1)=no
  5977. ;;
  5978. mvs*)
  5979. case $cc_basename in
  5980. cxx*)
  5981. # FIXME: insert proper C++ library support
  5982. _LT_TAGVAR(ld_shlibs, $1)=no
  5983. ;;
  5984. *)
  5985. # FIXME: insert proper C++ library support
  5986. _LT_TAGVAR(ld_shlibs, $1)=no
  5987. ;;
  5988. esac
  5989. ;;
  5990. netbsd*)
  5991. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5992. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5993. wlarc=
  5994. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5995. _LT_TAGVAR(hardcode_direct, $1)=yes
  5996. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5997. fi
  5998. # Workaround some broken pre-1.5 toolchains
  5999. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6000. ;;
  6001. *nto* | *qnx*)
  6002. _LT_TAGVAR(ld_shlibs, $1)=yes
  6003. ;;
  6004. openbsd2*)
  6005. # C++ shared libraries are fairly broken
  6006. _LT_TAGVAR(ld_shlibs, $1)=no
  6007. ;;
  6008. openbsd*)
  6009. if test -f /usr/libexec/ld.so; then
  6010. _LT_TAGVAR(hardcode_direct, $1)=yes
  6011. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6012. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6013. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6014. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6015. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6016. _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'
  6017. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6018. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6019. fi
  6020. output_verbose_link_cmd=func_echo_all
  6021. else
  6022. _LT_TAGVAR(ld_shlibs, $1)=no
  6023. fi
  6024. ;;
  6025. osf3* | osf4* | osf5*)
  6026. case $cc_basename in
  6027. KCC*)
  6028. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6029. # KCC will only create a shared library if the output file
  6030. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6031. # to its proper name (with version) after linking.
  6032. _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'
  6033. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6034. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6035. # Archives containing C++ object files must be created using
  6036. # the KAI C++ compiler.
  6037. case $host in
  6038. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6039. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6040. esac
  6041. ;;
  6042. RCC*)
  6043. # Rational C++ 2.4.1
  6044. # FIXME: insert proper C++ library support
  6045. _LT_TAGVAR(ld_shlibs, $1)=no
  6046. ;;
  6047. cxx*)
  6048. case $host in
  6049. osf3*)
  6050. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6051. _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'
  6052. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6053. ;;
  6054. *)
  6055. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6056. _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'
  6057. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6058. echo "-hidden">> $lib.exp~
  6059. $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~
  6060. $RM $lib.exp'
  6061. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6062. ;;
  6063. esac
  6064. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6065. # Commands to make compiler produce verbose output that lists
  6066. # what "hidden" libraries, object files and flags are used when
  6067. # linking a shared library.
  6068. #
  6069. # There doesn't appear to be a way to prevent this compiler from
  6070. # explicitly linking system object files so we need to strip them
  6071. # from the output so that they don't get included in the library
  6072. # dependencies.
  6073. 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"'
  6074. ;;
  6075. *)
  6076. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6077. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6078. case $host in
  6079. osf3*)
  6080. _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'
  6081. ;;
  6082. *)
  6083. _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'
  6084. ;;
  6085. esac
  6086. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6087. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6088. # Commands to make compiler produce verbose output that lists
  6089. # what "hidden" libraries, object files and flags are used when
  6090. # linking a shared library.
  6091. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6092. else
  6093. # FIXME: insert proper C++ library support
  6094. _LT_TAGVAR(ld_shlibs, $1)=no
  6095. fi
  6096. ;;
  6097. esac
  6098. ;;
  6099. psos*)
  6100. # FIXME: insert proper C++ library support
  6101. _LT_TAGVAR(ld_shlibs, $1)=no
  6102. ;;
  6103. sunos4*)
  6104. case $cc_basename in
  6105. CC*)
  6106. # Sun C++ 4.x
  6107. # FIXME: insert proper C++ library support
  6108. _LT_TAGVAR(ld_shlibs, $1)=no
  6109. ;;
  6110. lcc*)
  6111. # Lucid
  6112. # FIXME: insert proper C++ library support
  6113. _LT_TAGVAR(ld_shlibs, $1)=no
  6114. ;;
  6115. *)
  6116. # FIXME: insert proper C++ library support
  6117. _LT_TAGVAR(ld_shlibs, $1)=no
  6118. ;;
  6119. esac
  6120. ;;
  6121. solaris*)
  6122. case $cc_basename in
  6123. CC* | sunCC*)
  6124. # Sun C++ 4.2, 5.x and Centerline C++
  6125. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6126. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6127. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6128. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6129. $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'
  6130. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6131. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6132. case $host_os in
  6133. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6134. *)
  6135. # The compiler driver will combine and reorder linker options,
  6136. # but understands `-z linker_flag'.
  6137. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6138. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6139. ;;
  6140. esac
  6141. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6142. output_verbose_link_cmd='func_echo_all'
  6143. # Archives containing C++ object files must be created using
  6144. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6145. # necessary to make sure instantiated templates are included
  6146. # in the archive.
  6147. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6148. ;;
  6149. gcx*)
  6150. # Green Hills C++ Compiler
  6151. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6152. # The C++ compiler must be used to create the archive.
  6153. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6154. ;;
  6155. *)
  6156. # GNU C++ compiler with Solaris linker
  6157. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6158. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6159. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6160. _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'
  6161. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6162. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6163. # Commands to make compiler produce verbose output that lists
  6164. # what "hidden" libraries, object files and flags are used when
  6165. # linking a shared library.
  6166. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6167. else
  6168. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6169. # platform.
  6170. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6171. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6172. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6173. # Commands to make compiler produce verbose output that lists
  6174. # what "hidden" libraries, object files and flags are used when
  6175. # linking a shared library.
  6176. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6177. fi
  6178. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6179. case $host_os in
  6180. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6181. *)
  6182. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6183. ;;
  6184. esac
  6185. fi
  6186. ;;
  6187. esac
  6188. ;;
  6189. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6190. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6191. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6192. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6193. runpath_var='LD_RUN_PATH'
  6194. case $cc_basename in
  6195. CC*)
  6196. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6197. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6198. ;;
  6199. *)
  6200. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6201. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6202. ;;
  6203. esac
  6204. ;;
  6205. sysv5* | sco3.2v5* | sco5v6*)
  6206. # Note: We can NOT use -z defs as we might desire, because we do not
  6207. # link with -lc, and that would cause any symbols used from libc to
  6208. # always be unresolved, which means just about no library would
  6209. # ever link correctly. If we're not using GNU ld we use -z text
  6210. # though, which does catch some bad symbols but isn't as heavy-handed
  6211. # as -z defs.
  6212. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6213. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6214. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6215. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6216. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6217. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6218. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6219. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6220. runpath_var='LD_RUN_PATH'
  6221. case $cc_basename in
  6222. CC*)
  6223. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6224. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6225. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6226. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6227. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6228. '"$_LT_TAGVAR(reload_cmds, $1)"
  6229. ;;
  6230. *)
  6231. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6232. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6233. ;;
  6234. esac
  6235. ;;
  6236. tandem*)
  6237. case $cc_basename in
  6238. NCC*)
  6239. # NonStop-UX NCC 3.20
  6240. # FIXME: insert proper C++ library support
  6241. _LT_TAGVAR(ld_shlibs, $1)=no
  6242. ;;
  6243. *)
  6244. # FIXME: insert proper C++ library support
  6245. _LT_TAGVAR(ld_shlibs, $1)=no
  6246. ;;
  6247. esac
  6248. ;;
  6249. vxworks*)
  6250. # FIXME: insert proper C++ library support
  6251. _LT_TAGVAR(ld_shlibs, $1)=no
  6252. ;;
  6253. *)
  6254. # FIXME: insert proper C++ library support
  6255. _LT_TAGVAR(ld_shlibs, $1)=no
  6256. ;;
  6257. esac
  6258. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6259. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6260. _LT_TAGVAR(GCC, $1)="$GXX"
  6261. _LT_TAGVAR(LD, $1)="$LD"
  6262. ## CAVEAT EMPTOR:
  6263. ## There is no encapsulation within the following macros, do not change
  6264. ## the running order or otherwise move them around unless you know exactly
  6265. ## what you are doing...
  6266. _LT_SYS_HIDDEN_LIBDEPS($1)
  6267. _LT_COMPILER_PIC($1)
  6268. _LT_COMPILER_C_O($1)
  6269. _LT_COMPILER_FILE_LOCKS($1)
  6270. _LT_LINKER_SHLIBS($1)
  6271. _LT_SYS_DYNAMIC_LINKER($1)
  6272. _LT_LINKER_HARDCODE_LIBPATH($1)
  6273. _LT_CONFIG($1)
  6274. fi # test -n "$compiler"
  6275. CC=$lt_save_CC
  6276. CFLAGS=$lt_save_CFLAGS
  6277. LDCXX=$LD
  6278. LD=$lt_save_LD
  6279. GCC=$lt_save_GCC
  6280. with_gnu_ld=$lt_save_with_gnu_ld
  6281. lt_cv_path_LDCXX=$lt_cv_path_LD
  6282. lt_cv_path_LD=$lt_save_path_LD
  6283. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6284. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6285. fi # test "$_lt_caught_CXX_error" != yes
  6286. AC_LANG_POP
  6287. ])# _LT_LANG_CXX_CONFIG
  6288. # _LT_FUNC_STRIPNAME_CNF
  6289. # ----------------------
  6290. # func_stripname_cnf prefix suffix name
  6291. # strip PREFIX and SUFFIX off of NAME.
  6292. # PREFIX and SUFFIX must not contain globbing or regex special
  6293. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6294. # dot (in which case that matches only a dot).
  6295. #
  6296. # This function is identical to the (non-XSI) version of func_stripname,
  6297. # except this one can be used by m4 code that may be executed by configure,
  6298. # rather than the libtool script.
  6299. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6300. AC_REQUIRE([_LT_DECL_SED])
  6301. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6302. func_stripname_cnf ()
  6303. {
  6304. case ${2} in
  6305. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6306. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6307. esac
  6308. } # func_stripname_cnf
  6309. ])# _LT_FUNC_STRIPNAME_CNF
  6310. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6311. # ---------------------------------
  6312. # Figure out "hidden" library dependencies from verbose
  6313. # compiler output when linking a shared library.
  6314. # Parse the compiler output and extract the necessary
  6315. # objects, libraries and library flags.
  6316. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6317. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6318. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6319. # Dependencies to place before and after the object being linked:
  6320. _LT_TAGVAR(predep_objects, $1)=
  6321. _LT_TAGVAR(postdep_objects, $1)=
  6322. _LT_TAGVAR(predeps, $1)=
  6323. _LT_TAGVAR(postdeps, $1)=
  6324. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6325. dnl we can't use the lt_simple_compile_test_code here,
  6326. dnl because it contains code intended for an executable,
  6327. dnl not a library. It's possible we should let each
  6328. dnl tag define a new lt_????_link_test_code variable,
  6329. dnl but it's only used here...
  6330. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6331. int a;
  6332. void foo (void) { a = 0; }
  6333. _LT_EOF
  6334. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6335. class Foo
  6336. {
  6337. public:
  6338. Foo (void) { a = 0; }
  6339. private:
  6340. int a;
  6341. };
  6342. _LT_EOF
  6343. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6344. subroutine foo
  6345. implicit none
  6346. integer*4 a
  6347. a=0
  6348. return
  6349. end
  6350. _LT_EOF
  6351. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6352. subroutine foo
  6353. implicit none
  6354. integer a
  6355. a=0
  6356. return
  6357. end
  6358. _LT_EOF
  6359. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6360. public class foo {
  6361. private int a;
  6362. public void bar (void) {
  6363. a = 0;
  6364. }
  6365. };
  6366. _LT_EOF
  6367. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6368. package foo
  6369. func foo() {
  6370. }
  6371. _LT_EOF
  6372. ])
  6373. _lt_libdeps_save_CFLAGS=$CFLAGS
  6374. case "$CC $CFLAGS " in #(
  6375. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6376. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6377. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6378. esac
  6379. dnl Parse the compiler output and extract the necessary
  6380. dnl objects, libraries and library flags.
  6381. if AC_TRY_EVAL(ac_compile); then
  6382. # Parse the compiler output and extract the necessary
  6383. # objects, libraries and library flags.
  6384. # Sentinel used to keep track of whether or not we are before
  6385. # the conftest object file.
  6386. pre_test_object_deps_done=no
  6387. for p in `eval "$output_verbose_link_cmd"`; do
  6388. case ${prev}${p} in
  6389. -L* | -R* | -l*)
  6390. # Some compilers place space between "-{L,R}" and the path.
  6391. # Remove the space.
  6392. if test $p = "-L" ||
  6393. test $p = "-R"; then
  6394. prev=$p
  6395. continue
  6396. fi
  6397. # Expand the sysroot to ease extracting the directories later.
  6398. if test -z "$prev"; then
  6399. case $p in
  6400. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6401. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6402. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6403. esac
  6404. fi
  6405. case $p in
  6406. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6407. esac
  6408. if test "$pre_test_object_deps_done" = no; then
  6409. case ${prev} in
  6410. -L | -R)
  6411. # Internal compiler library paths should come after those
  6412. # provided the user. The postdeps already come after the
  6413. # user supplied libs so there is no need to process them.
  6414. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6415. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6416. else
  6417. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6418. fi
  6419. ;;
  6420. # The "-l" case would never come before the object being
  6421. # linked, so don't bother handling this case.
  6422. esac
  6423. else
  6424. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6425. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6426. else
  6427. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6428. fi
  6429. fi
  6430. prev=
  6431. ;;
  6432. *.lto.$objext) ;; # Ignore GCC LTO objects
  6433. *.$objext)
  6434. # This assumes that the test object file only shows up
  6435. # once in the compiler output.
  6436. if test "$p" = "conftest.$objext"; then
  6437. pre_test_object_deps_done=yes
  6438. continue
  6439. fi
  6440. if test "$pre_test_object_deps_done" = no; then
  6441. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6442. _LT_TAGVAR(predep_objects, $1)="$p"
  6443. else
  6444. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6445. fi
  6446. else
  6447. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6448. _LT_TAGVAR(postdep_objects, $1)="$p"
  6449. else
  6450. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6451. fi
  6452. fi
  6453. ;;
  6454. *) ;; # Ignore the rest.
  6455. esac
  6456. done
  6457. # Clean up.
  6458. rm -f a.out a.exe
  6459. else
  6460. echo "libtool.m4: error: problem compiling $1 test program"
  6461. fi
  6462. $RM -f confest.$objext
  6463. CFLAGS=$_lt_libdeps_save_CFLAGS
  6464. # PORTME: override above test on systems where it is broken
  6465. m4_if([$1], [CXX],
  6466. [case $host_os in
  6467. interix[[3-9]]*)
  6468. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6469. # hack all around it, let's just trust "g++" to DTRT.
  6470. _LT_TAGVAR(predep_objects,$1)=
  6471. _LT_TAGVAR(postdep_objects,$1)=
  6472. _LT_TAGVAR(postdeps,$1)=
  6473. ;;
  6474. linux*)
  6475. case `$CC -V 2>&1 | sed 5q` in
  6476. *Sun\ C*)
  6477. # Sun C++ 5.9
  6478. # The more standards-conforming stlport4 library is
  6479. # incompatible with the Cstd library. Avoid specifying
  6480. # it if it's in CXXFLAGS. Ignore libCrun as
  6481. # -library=stlport4 depends on it.
  6482. case " $CXX $CXXFLAGS " in
  6483. *" -library=stlport4 "*)
  6484. solaris_use_stlport4=yes
  6485. ;;
  6486. esac
  6487. if test "$solaris_use_stlport4" != yes; then
  6488. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6489. fi
  6490. ;;
  6491. esac
  6492. ;;
  6493. solaris*)
  6494. case $cc_basename in
  6495. CC* | sunCC*)
  6496. # The more standards-conforming stlport4 library is
  6497. # incompatible with the Cstd library. Avoid specifying
  6498. # it if it's in CXXFLAGS. Ignore libCrun as
  6499. # -library=stlport4 depends on it.
  6500. case " $CXX $CXXFLAGS " in
  6501. *" -library=stlport4 "*)
  6502. solaris_use_stlport4=yes
  6503. ;;
  6504. esac
  6505. # Adding this requires a known-good setup of shared libraries for
  6506. # Sun compiler versions before 5.6, else PIC objects from an old
  6507. # archive will be linked into the output, leading to subtle bugs.
  6508. if test "$solaris_use_stlport4" != yes; then
  6509. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6510. fi
  6511. ;;
  6512. esac
  6513. ;;
  6514. esac
  6515. ])
  6516. case " $_LT_TAGVAR(postdeps, $1) " in
  6517. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6518. esac
  6519. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6520. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6521. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6522. fi
  6523. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6524. [The directories searched by this compiler when creating a shared library])
  6525. _LT_TAGDECL([], [predep_objects], [1],
  6526. [Dependencies to place before and after the objects being linked to
  6527. create a shared library])
  6528. _LT_TAGDECL([], [postdep_objects], [1])
  6529. _LT_TAGDECL([], [predeps], [1])
  6530. _LT_TAGDECL([], [postdeps], [1])
  6531. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6532. [The library search path used internally by the compiler when linking
  6533. a shared library])
  6534. ])# _LT_SYS_HIDDEN_LIBDEPS
  6535. # _LT_LANG_F77_CONFIG([TAG])
  6536. # --------------------------
  6537. # Ensure that the configuration variables for a Fortran 77 compiler are
  6538. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6539. # to write the compiler configuration to `libtool'.
  6540. m4_defun([_LT_LANG_F77_CONFIG],
  6541. [AC_LANG_PUSH(Fortran 77)
  6542. if test -z "$F77" || test "X$F77" = "Xno"; then
  6543. _lt_disable_F77=yes
  6544. fi
  6545. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6546. _LT_TAGVAR(allow_undefined_flag, $1)=
  6547. _LT_TAGVAR(always_export_symbols, $1)=no
  6548. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6549. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6550. _LT_TAGVAR(hardcode_direct, $1)=no
  6551. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6552. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6553. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6554. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6555. _LT_TAGVAR(hardcode_automatic, $1)=no
  6556. _LT_TAGVAR(inherit_rpath, $1)=no
  6557. _LT_TAGVAR(module_cmds, $1)=
  6558. _LT_TAGVAR(module_expsym_cmds, $1)=
  6559. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6560. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6561. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6562. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6563. _LT_TAGVAR(no_undefined_flag, $1)=
  6564. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6565. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6566. # Source file extension for f77 test sources.
  6567. ac_ext=f
  6568. # Object file extension for compiled f77 test sources.
  6569. objext=o
  6570. _LT_TAGVAR(objext, $1)=$objext
  6571. # No sense in running all these tests if we already determined that
  6572. # the F77 compiler isn't working. Some variables (like enable_shared)
  6573. # are currently assumed to apply to all compilers on this platform,
  6574. # and will be corrupted by setting them based on a non-working compiler.
  6575. if test "$_lt_disable_F77" != yes; then
  6576. # Code to be used in simple compile tests
  6577. lt_simple_compile_test_code="\
  6578. subroutine t
  6579. return
  6580. end
  6581. "
  6582. # Code to be used in simple link tests
  6583. lt_simple_link_test_code="\
  6584. program t
  6585. end
  6586. "
  6587. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6588. _LT_TAG_COMPILER
  6589. # save warnings/boilerplate of simple test code
  6590. _LT_COMPILER_BOILERPLATE
  6591. _LT_LINKER_BOILERPLATE
  6592. # Allow CC to be a program name with arguments.
  6593. lt_save_CC="$CC"
  6594. lt_save_GCC=$GCC
  6595. lt_save_CFLAGS=$CFLAGS
  6596. CC=${F77-"f77"}
  6597. CFLAGS=$FFLAGS
  6598. compiler=$CC
  6599. _LT_TAGVAR(compiler, $1)=$CC
  6600. _LT_CC_BASENAME([$compiler])
  6601. GCC=$G77
  6602. if test -n "$compiler"; then
  6603. AC_MSG_CHECKING([if libtool supports shared libraries])
  6604. AC_MSG_RESULT([$can_build_shared])
  6605. AC_MSG_CHECKING([whether to build shared libraries])
  6606. test "$can_build_shared" = "no" && enable_shared=no
  6607. # On AIX, shared libraries and static libraries use the same namespace, and
  6608. # are all built from PIC.
  6609. case $host_os in
  6610. aix3*)
  6611. test "$enable_shared" = yes && enable_static=no
  6612. if test -n "$RANLIB"; then
  6613. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6614. postinstall_cmds='$RANLIB $lib'
  6615. fi
  6616. ;;
  6617. aix[[4-9]]*)
  6618. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6619. test "$enable_shared" = yes && enable_static=no
  6620. fi
  6621. ;;
  6622. esac
  6623. AC_MSG_RESULT([$enable_shared])
  6624. AC_MSG_CHECKING([whether to build static libraries])
  6625. # Make sure either enable_shared or enable_static is yes.
  6626. test "$enable_shared" = yes || enable_static=yes
  6627. AC_MSG_RESULT([$enable_static])
  6628. _LT_TAGVAR(GCC, $1)="$G77"
  6629. _LT_TAGVAR(LD, $1)="$LD"
  6630. ## CAVEAT EMPTOR:
  6631. ## There is no encapsulation within the following macros, do not change
  6632. ## the running order or otherwise move them around unless you know exactly
  6633. ## what you are doing...
  6634. _LT_COMPILER_PIC($1)
  6635. _LT_COMPILER_C_O($1)
  6636. _LT_COMPILER_FILE_LOCKS($1)
  6637. _LT_LINKER_SHLIBS($1)
  6638. _LT_SYS_DYNAMIC_LINKER($1)
  6639. _LT_LINKER_HARDCODE_LIBPATH($1)
  6640. _LT_CONFIG($1)
  6641. fi # test -n "$compiler"
  6642. GCC=$lt_save_GCC
  6643. CC="$lt_save_CC"
  6644. CFLAGS="$lt_save_CFLAGS"
  6645. fi # test "$_lt_disable_F77" != yes
  6646. AC_LANG_POP
  6647. ])# _LT_LANG_F77_CONFIG
  6648. # _LT_LANG_FC_CONFIG([TAG])
  6649. # -------------------------
  6650. # Ensure that the configuration variables for a Fortran compiler are
  6651. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6652. # to write the compiler configuration to `libtool'.
  6653. m4_defun([_LT_LANG_FC_CONFIG],
  6654. [AC_LANG_PUSH(Fortran)
  6655. if test -z "$FC" || test "X$FC" = "Xno"; then
  6656. _lt_disable_FC=yes
  6657. fi
  6658. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6659. _LT_TAGVAR(allow_undefined_flag, $1)=
  6660. _LT_TAGVAR(always_export_symbols, $1)=no
  6661. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6662. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6663. _LT_TAGVAR(hardcode_direct, $1)=no
  6664. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6665. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6666. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6667. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6668. _LT_TAGVAR(hardcode_automatic, $1)=no
  6669. _LT_TAGVAR(inherit_rpath, $1)=no
  6670. _LT_TAGVAR(module_cmds, $1)=
  6671. _LT_TAGVAR(module_expsym_cmds, $1)=
  6672. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6673. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6674. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6675. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6676. _LT_TAGVAR(no_undefined_flag, $1)=
  6677. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6678. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6679. # Source file extension for fc test sources.
  6680. ac_ext=${ac_fc_srcext-f}
  6681. # Object file extension for compiled fc test sources.
  6682. objext=o
  6683. _LT_TAGVAR(objext, $1)=$objext
  6684. # No sense in running all these tests if we already determined that
  6685. # the FC compiler isn't working. Some variables (like enable_shared)
  6686. # are currently assumed to apply to all compilers on this platform,
  6687. # and will be corrupted by setting them based on a non-working compiler.
  6688. if test "$_lt_disable_FC" != yes; then
  6689. # Code to be used in simple compile tests
  6690. lt_simple_compile_test_code="\
  6691. subroutine t
  6692. return
  6693. end
  6694. "
  6695. # Code to be used in simple link tests
  6696. lt_simple_link_test_code="\
  6697. program t
  6698. end
  6699. "
  6700. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6701. _LT_TAG_COMPILER
  6702. # save warnings/boilerplate of simple test code
  6703. _LT_COMPILER_BOILERPLATE
  6704. _LT_LINKER_BOILERPLATE
  6705. # Allow CC to be a program name with arguments.
  6706. lt_save_CC="$CC"
  6707. lt_save_GCC=$GCC
  6708. lt_save_CFLAGS=$CFLAGS
  6709. CC=${FC-"f95"}
  6710. CFLAGS=$FCFLAGS
  6711. compiler=$CC
  6712. GCC=$ac_cv_fc_compiler_gnu
  6713. _LT_TAGVAR(compiler, $1)=$CC
  6714. _LT_CC_BASENAME([$compiler])
  6715. if test -n "$compiler"; then
  6716. AC_MSG_CHECKING([if libtool supports shared libraries])
  6717. AC_MSG_RESULT([$can_build_shared])
  6718. AC_MSG_CHECKING([whether to build shared libraries])
  6719. test "$can_build_shared" = "no" && enable_shared=no
  6720. # On AIX, shared libraries and static libraries use the same namespace, and
  6721. # are all built from PIC.
  6722. case $host_os in
  6723. aix3*)
  6724. test "$enable_shared" = yes && enable_static=no
  6725. if test -n "$RANLIB"; then
  6726. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6727. postinstall_cmds='$RANLIB $lib'
  6728. fi
  6729. ;;
  6730. aix[[4-9]]*)
  6731. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6732. test "$enable_shared" = yes && enable_static=no
  6733. fi
  6734. ;;
  6735. esac
  6736. AC_MSG_RESULT([$enable_shared])
  6737. AC_MSG_CHECKING([whether to build static libraries])
  6738. # Make sure either enable_shared or enable_static is yes.
  6739. test "$enable_shared" = yes || enable_static=yes
  6740. AC_MSG_RESULT([$enable_static])
  6741. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6742. _LT_TAGVAR(LD, $1)="$LD"
  6743. ## CAVEAT EMPTOR:
  6744. ## There is no encapsulation within the following macros, do not change
  6745. ## the running order or otherwise move them around unless you know exactly
  6746. ## what you are doing...
  6747. _LT_SYS_HIDDEN_LIBDEPS($1)
  6748. _LT_COMPILER_PIC($1)
  6749. _LT_COMPILER_C_O($1)
  6750. _LT_COMPILER_FILE_LOCKS($1)
  6751. _LT_LINKER_SHLIBS($1)
  6752. _LT_SYS_DYNAMIC_LINKER($1)
  6753. _LT_LINKER_HARDCODE_LIBPATH($1)
  6754. _LT_CONFIG($1)
  6755. fi # test -n "$compiler"
  6756. GCC=$lt_save_GCC
  6757. CC=$lt_save_CC
  6758. CFLAGS=$lt_save_CFLAGS
  6759. fi # test "$_lt_disable_FC" != yes
  6760. AC_LANG_POP
  6761. ])# _LT_LANG_FC_CONFIG
  6762. # _LT_LANG_GCJ_CONFIG([TAG])
  6763. # --------------------------
  6764. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6765. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6766. # to write the compiler configuration to `libtool'.
  6767. m4_defun([_LT_LANG_GCJ_CONFIG],
  6768. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6769. AC_LANG_SAVE
  6770. # Source file extension for Java test sources.
  6771. ac_ext=java
  6772. # Object file extension for compiled Java test sources.
  6773. objext=o
  6774. _LT_TAGVAR(objext, $1)=$objext
  6775. # Code to be used in simple compile tests
  6776. lt_simple_compile_test_code="class foo {}"
  6777. # Code to be used in simple link tests
  6778. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6779. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6780. _LT_TAG_COMPILER
  6781. # save warnings/boilerplate of simple test code
  6782. _LT_COMPILER_BOILERPLATE
  6783. _LT_LINKER_BOILERPLATE
  6784. # Allow CC to be a program name with arguments.
  6785. lt_save_CC=$CC
  6786. lt_save_CFLAGS=$CFLAGS
  6787. lt_save_GCC=$GCC
  6788. GCC=yes
  6789. CC=${GCJ-"gcj"}
  6790. CFLAGS=$GCJFLAGS
  6791. compiler=$CC
  6792. _LT_TAGVAR(compiler, $1)=$CC
  6793. _LT_TAGVAR(LD, $1)="$LD"
  6794. _LT_CC_BASENAME([$compiler])
  6795. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6796. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6797. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6798. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6799. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6800. if test -n "$compiler"; then
  6801. _LT_COMPILER_NO_RTTI($1)
  6802. _LT_COMPILER_PIC($1)
  6803. _LT_COMPILER_C_O($1)
  6804. _LT_COMPILER_FILE_LOCKS($1)
  6805. _LT_LINKER_SHLIBS($1)
  6806. _LT_LINKER_HARDCODE_LIBPATH($1)
  6807. _LT_CONFIG($1)
  6808. fi
  6809. AC_LANG_RESTORE
  6810. GCC=$lt_save_GCC
  6811. CC=$lt_save_CC
  6812. CFLAGS=$lt_save_CFLAGS
  6813. ])# _LT_LANG_GCJ_CONFIG
  6814. # _LT_LANG_GO_CONFIG([TAG])
  6815. # --------------------------
  6816. # Ensure that the configuration variables for the GNU Go compiler
  6817. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6818. # to write the compiler configuration to `libtool'.
  6819. m4_defun([_LT_LANG_GO_CONFIG],
  6820. [AC_REQUIRE([LT_PROG_GO])dnl
  6821. AC_LANG_SAVE
  6822. # Source file extension for Go test sources.
  6823. ac_ext=go
  6824. # Object file extension for compiled Go test sources.
  6825. objext=o
  6826. _LT_TAGVAR(objext, $1)=$objext
  6827. # Code to be used in simple compile tests
  6828. lt_simple_compile_test_code="package main; func main() { }"
  6829. # Code to be used in simple link tests
  6830. lt_simple_link_test_code='package main; func main() { }'
  6831. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6832. _LT_TAG_COMPILER
  6833. # save warnings/boilerplate of simple test code
  6834. _LT_COMPILER_BOILERPLATE
  6835. _LT_LINKER_BOILERPLATE
  6836. # Allow CC to be a program name with arguments.
  6837. lt_save_CC=$CC
  6838. lt_save_CFLAGS=$CFLAGS
  6839. lt_save_GCC=$GCC
  6840. GCC=yes
  6841. CC=${GOC-"gccgo"}
  6842. CFLAGS=$GOFLAGS
  6843. compiler=$CC
  6844. _LT_TAGVAR(compiler, $1)=$CC
  6845. _LT_TAGVAR(LD, $1)="$LD"
  6846. _LT_CC_BASENAME([$compiler])
  6847. # Go did not exist at the time GCC didn't implicitly link libc in.
  6848. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6849. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6850. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6851. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6852. if test -n "$compiler"; then
  6853. _LT_COMPILER_NO_RTTI($1)
  6854. _LT_COMPILER_PIC($1)
  6855. _LT_COMPILER_C_O($1)
  6856. _LT_COMPILER_FILE_LOCKS($1)
  6857. _LT_LINKER_SHLIBS($1)
  6858. _LT_LINKER_HARDCODE_LIBPATH($1)
  6859. _LT_CONFIG($1)
  6860. fi
  6861. AC_LANG_RESTORE
  6862. GCC=$lt_save_GCC
  6863. CC=$lt_save_CC
  6864. CFLAGS=$lt_save_CFLAGS
  6865. ])# _LT_LANG_GO_CONFIG
  6866. # _LT_LANG_RC_CONFIG([TAG])
  6867. # -------------------------
  6868. # Ensure that the configuration variables for the Windows resource compiler
  6869. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6870. # to write the compiler configuration to `libtool'.
  6871. m4_defun([_LT_LANG_RC_CONFIG],
  6872. [AC_REQUIRE([LT_PROG_RC])dnl
  6873. AC_LANG_SAVE
  6874. # Source file extension for RC test sources.
  6875. ac_ext=rc
  6876. # Object file extension for compiled RC test sources.
  6877. objext=o
  6878. _LT_TAGVAR(objext, $1)=$objext
  6879. # Code to be used in simple compile tests
  6880. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6881. # Code to be used in simple link tests
  6882. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6883. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6884. _LT_TAG_COMPILER
  6885. # save warnings/boilerplate of simple test code
  6886. _LT_COMPILER_BOILERPLATE
  6887. _LT_LINKER_BOILERPLATE
  6888. # Allow CC to be a program name with arguments.
  6889. lt_save_CC="$CC"
  6890. lt_save_CFLAGS=$CFLAGS
  6891. lt_save_GCC=$GCC
  6892. GCC=
  6893. CC=${RC-"windres"}
  6894. CFLAGS=
  6895. compiler=$CC
  6896. _LT_TAGVAR(compiler, $1)=$CC
  6897. _LT_CC_BASENAME([$compiler])
  6898. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6899. if test -n "$compiler"; then
  6900. :
  6901. _LT_CONFIG($1)
  6902. fi
  6903. GCC=$lt_save_GCC
  6904. AC_LANG_RESTORE
  6905. CC=$lt_save_CC
  6906. CFLAGS=$lt_save_CFLAGS
  6907. ])# _LT_LANG_RC_CONFIG
  6908. # LT_PROG_GCJ
  6909. # -----------
  6910. AC_DEFUN([LT_PROG_GCJ],
  6911. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6912. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6913. [AC_CHECK_TOOL(GCJ, gcj,)
  6914. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6915. AC_SUBST(GCJFLAGS)])])[]dnl
  6916. ])
  6917. # Old name:
  6918. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6919. dnl aclocal-1.4 backwards compatibility:
  6920. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6921. # LT_PROG_GO
  6922. # ----------
  6923. AC_DEFUN([LT_PROG_GO],
  6924. [AC_CHECK_TOOL(GOC, gccgo,)
  6925. ])
  6926. # LT_PROG_RC
  6927. # ----------
  6928. AC_DEFUN([LT_PROG_RC],
  6929. [AC_CHECK_TOOL(RC, windres,)
  6930. ])
  6931. # Old name:
  6932. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6933. dnl aclocal-1.4 backwards compatibility:
  6934. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6935. # _LT_DECL_EGREP
  6936. # --------------
  6937. # If we don't have a new enough Autoconf to choose the best grep
  6938. # available, choose the one first in the user's PATH.
  6939. m4_defun([_LT_DECL_EGREP],
  6940. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6941. AC_REQUIRE([AC_PROG_FGREP])dnl
  6942. test -z "$GREP" && GREP=grep
  6943. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6944. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6945. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6946. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6947. AC_SUBST([GREP])
  6948. ])
  6949. # _LT_DECL_OBJDUMP
  6950. # --------------
  6951. # If we don't have a new enough Autoconf to choose the best objdump
  6952. # available, choose the one first in the user's PATH.
  6953. m4_defun([_LT_DECL_OBJDUMP],
  6954. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6955. test -z "$OBJDUMP" && OBJDUMP=objdump
  6956. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6957. AC_SUBST([OBJDUMP])
  6958. ])
  6959. # _LT_DECL_DLLTOOL
  6960. # ----------------
  6961. # Ensure DLLTOOL variable is set.
  6962. m4_defun([_LT_DECL_DLLTOOL],
  6963. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6964. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6965. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6966. AC_SUBST([DLLTOOL])
  6967. ])
  6968. # _LT_DECL_SED
  6969. # ------------
  6970. # Check for a fully-functional sed program, that truncates
  6971. # as few characters as possible. Prefer GNU sed if found.
  6972. m4_defun([_LT_DECL_SED],
  6973. [AC_PROG_SED
  6974. test -z "$SED" && SED=sed
  6975. Xsed="$SED -e 1s/^X//"
  6976. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6977. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6978. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6979. ])# _LT_DECL_SED
  6980. m4_ifndef([AC_PROG_SED], [
  6981. # NOTE: This macro has been submitted for inclusion into #
  6982. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6983. # a released version of Autoconf we should remove this #
  6984. # macro and use it instead. #
  6985. m4_defun([AC_PROG_SED],
  6986. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6987. AC_CACHE_VAL(lt_cv_path_SED,
  6988. [# Loop through the user's path and test for sed and gsed.
  6989. # Then use that list of sed's as ones to test for truncation.
  6990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6991. for as_dir in $PATH
  6992. do
  6993. IFS=$as_save_IFS
  6994. test -z "$as_dir" && as_dir=.
  6995. for lt_ac_prog in sed gsed; do
  6996. for ac_exec_ext in '' $ac_executable_extensions; do
  6997. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6998. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6999. fi
  7000. done
  7001. done
  7002. done
  7003. IFS=$as_save_IFS
  7004. lt_ac_max=0
  7005. lt_ac_count=0
  7006. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7007. # along with /bin/sed that truncates output.
  7008. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7009. test ! -f $lt_ac_sed && continue
  7010. cat /dev/null > conftest.in
  7011. lt_ac_count=0
  7012. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7013. # Check for GNU sed and select it if it is found.
  7014. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7015. lt_cv_path_SED=$lt_ac_sed
  7016. break
  7017. fi
  7018. while true; do
  7019. cat conftest.in conftest.in >conftest.tmp
  7020. mv conftest.tmp conftest.in
  7021. cp conftest.in conftest.nl
  7022. echo >>conftest.nl
  7023. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7024. cmp -s conftest.out conftest.nl || break
  7025. # 10000 chars as input seems more than enough
  7026. test $lt_ac_count -gt 10 && break
  7027. lt_ac_count=`expr $lt_ac_count + 1`
  7028. if test $lt_ac_count -gt $lt_ac_max; then
  7029. lt_ac_max=$lt_ac_count
  7030. lt_cv_path_SED=$lt_ac_sed
  7031. fi
  7032. done
  7033. done
  7034. ])
  7035. SED=$lt_cv_path_SED
  7036. AC_SUBST([SED])
  7037. AC_MSG_RESULT([$SED])
  7038. ])#AC_PROG_SED
  7039. ])#m4_ifndef
  7040. # Old name:
  7041. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7042. dnl aclocal-1.4 backwards compatibility:
  7043. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7044. # _LT_CHECK_SHELL_FEATURES
  7045. # ------------------------
  7046. # Find out whether the shell is Bourne or XSI compatible,
  7047. # or has some other useful features.
  7048. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7049. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7050. # Try some XSI features
  7051. xsi_shell=no
  7052. ( _lt_dummy="a/b/c"
  7053. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7054. = c,a/b,b/c, \
  7055. && eval 'test $(( 1 + 1 )) -eq 2 \
  7056. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7057. && xsi_shell=yes
  7058. AC_MSG_RESULT([$xsi_shell])
  7059. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7060. AC_MSG_CHECKING([whether the shell understands "+="])
  7061. lt_shell_append=no
  7062. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7063. >/dev/null 2>&1 \
  7064. && lt_shell_append=yes
  7065. AC_MSG_RESULT([$lt_shell_append])
  7066. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7067. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7068. lt_unset=unset
  7069. else
  7070. lt_unset=false
  7071. fi
  7072. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7073. # test EBCDIC or ASCII
  7074. case `echo X|tr X '\101'` in
  7075. A) # ASCII based system
  7076. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7077. lt_SP2NL='tr \040 \012'
  7078. lt_NL2SP='tr \015\012 \040\040'
  7079. ;;
  7080. *) # EBCDIC based system
  7081. lt_SP2NL='tr \100 \n'
  7082. lt_NL2SP='tr \r\n \100\100'
  7083. ;;
  7084. esac
  7085. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7086. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7087. ])# _LT_CHECK_SHELL_FEATURES
  7088. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7089. # ------------------------------------------------------
  7090. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7091. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7092. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7093. [dnl {
  7094. sed -e '/^$1 ()$/,/^} # $1 /c\
  7095. $1 ()\
  7096. {\
  7097. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7098. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7099. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7100. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7101. test 0 -eq $? || _lt_function_replace_fail=:
  7102. ])
  7103. # _LT_PROG_REPLACE_SHELLFNS
  7104. # -------------------------
  7105. # Replace existing portable implementations of several shell functions with
  7106. # equivalent extended shell implementations where those features are available..
  7107. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7108. [if test x"$xsi_shell" = xyes; then
  7109. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7110. case ${1} in
  7111. */*) func_dirname_result="${1%/*}${2}" ;;
  7112. * ) func_dirname_result="${3}" ;;
  7113. esac])
  7114. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7115. func_basename_result="${1##*/}"])
  7116. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7117. case ${1} in
  7118. */*) func_dirname_result="${1%/*}${2}" ;;
  7119. * ) func_dirname_result="${3}" ;;
  7120. esac
  7121. func_basename_result="${1##*/}"])
  7122. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7123. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7124. # positional parameters, so assign one to ordinary parameter first.
  7125. func_stripname_result=${3}
  7126. func_stripname_result=${func_stripname_result#"${1}"}
  7127. func_stripname_result=${func_stripname_result%"${2}"}])
  7128. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7129. func_split_long_opt_name=${1%%=*}
  7130. func_split_long_opt_arg=${1#*=}])
  7131. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7132. func_split_short_opt_arg=${1#??}
  7133. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7134. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7135. case ${1} in
  7136. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7137. *) func_lo2o_result=${1} ;;
  7138. esac])
  7139. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7140. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7141. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7142. fi
  7143. if test x"$lt_shell_append" = xyes; then
  7144. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7145. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7146. func_quote_for_eval "${2}"
  7147. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7148. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7149. # Save a `func_append' function call where possible by direct use of '+='
  7150. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7151. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7152. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7153. test 0 -eq $? || _lt_function_replace_fail=:
  7154. else
  7155. # Save a `func_append' function call even when '+=' is not available
  7156. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7157. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7158. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7159. test 0 -eq $? || _lt_function_replace_fail=:
  7160. fi
  7161. if test x"$_lt_function_replace_fail" = x":"; then
  7162. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7163. fi
  7164. ])
  7165. # _LT_PATH_CONVERSION_FUNCTIONS
  7166. # -----------------------------
  7167. # Determine which file name conversion functions should be used by
  7168. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7169. # for certain cross-compile configurations and native mingw.
  7170. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7171. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7172. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7173. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7174. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7175. [case $host in
  7176. *-*-mingw* )
  7177. case $build in
  7178. *-*-mingw* ) # actually msys
  7179. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7180. ;;
  7181. *-*-cygwin* )
  7182. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7183. ;;
  7184. * ) # otherwise, assume *nix
  7185. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7186. ;;
  7187. esac
  7188. ;;
  7189. *-*-cygwin* )
  7190. case $build in
  7191. *-*-mingw* ) # actually msys
  7192. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7193. ;;
  7194. *-*-cygwin* )
  7195. lt_cv_to_host_file_cmd=func_convert_file_noop
  7196. ;;
  7197. * ) # otherwise, assume *nix
  7198. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7199. ;;
  7200. esac
  7201. ;;
  7202. * ) # unhandled hosts (and "normal" native builds)
  7203. lt_cv_to_host_file_cmd=func_convert_file_noop
  7204. ;;
  7205. esac
  7206. ])
  7207. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7208. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7209. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7210. [0], [convert $build file names to $host format])dnl
  7211. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7212. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7213. [#assume ordinary cross tools, or native build.
  7214. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7215. case $host in
  7216. *-*-mingw* )
  7217. case $build in
  7218. *-*-mingw* ) # actually msys
  7219. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7220. ;;
  7221. esac
  7222. ;;
  7223. esac
  7224. ])
  7225. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7226. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7227. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7228. [0], [convert $build files to toolchain format])dnl
  7229. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7230. # Helper functions for option handling. -*- Autoconf -*-
  7231. #
  7232. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7233. # Inc.
  7234. # Written by Gary V. Vaughan, 2004
  7235. #
  7236. # This file is free software; the Free Software Foundation gives
  7237. # unlimited permission to copy and/or distribute it, with or without
  7238. # modifications, as long as this notice is preserved.
  7239. # serial 7 ltoptions.m4
  7240. # This is to help aclocal find these macros, as it can't see m4_define.
  7241. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7242. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7243. # ------------------------------------------
  7244. m4_define([_LT_MANGLE_OPTION],
  7245. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7246. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7247. # ---------------------------------------
  7248. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7249. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7250. # saved as a flag.
  7251. m4_define([_LT_SET_OPTION],
  7252. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7253. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7254. _LT_MANGLE_DEFUN([$1], [$2]),
  7255. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7256. ])
  7257. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7258. # ------------------------------------------------------------
  7259. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7260. m4_define([_LT_IF_OPTION],
  7261. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7262. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7263. # -------------------------------------------------------
  7264. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7265. # are set.
  7266. m4_define([_LT_UNLESS_OPTIONS],
  7267. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7268. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7269. [m4_define([$0_found])])])[]dnl
  7270. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7271. ])[]dnl
  7272. ])
  7273. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7274. # ----------------------------------------
  7275. # OPTION-LIST is a space-separated list of Libtool options associated
  7276. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7277. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7278. # the unknown option and exit.
  7279. m4_defun([_LT_SET_OPTIONS],
  7280. [# Set options
  7281. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7282. [_LT_SET_OPTION([$1], _LT_Option)])
  7283. m4_if([$1],[LT_INIT],[
  7284. dnl
  7285. dnl Simply set some default values (i.e off) if boolean options were not
  7286. dnl specified:
  7287. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7288. ])
  7289. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7290. ])
  7291. dnl
  7292. dnl If no reference was made to various pairs of opposing options, then
  7293. dnl we run the default mode handler for the pair. For example, if neither
  7294. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7295. dnl archives by default:
  7296. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7297. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7298. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7299. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7300. [_LT_ENABLE_FAST_INSTALL])
  7301. ])
  7302. ])# _LT_SET_OPTIONS
  7303. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7304. # -----------------------------------------
  7305. m4_define([_LT_MANGLE_DEFUN],
  7306. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7307. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7308. # -----------------------------------------------
  7309. m4_define([LT_OPTION_DEFINE],
  7310. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7311. ])# LT_OPTION_DEFINE
  7312. # dlopen
  7313. # ------
  7314. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7315. ])
  7316. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7317. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7318. AC_DIAGNOSE([obsolete],
  7319. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7320. put the `dlopen' option into LT_INIT's first parameter.])
  7321. ])
  7322. dnl aclocal-1.4 backwards compatibility:
  7323. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7324. # win32-dll
  7325. # ---------
  7326. # Declare package support for building win32 dll's.
  7327. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7328. [enable_win32_dll=yes
  7329. case $host in
  7330. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7331. AC_CHECK_TOOL(AS, as, false)
  7332. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7333. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7334. ;;
  7335. esac
  7336. test -z "$AS" && AS=as
  7337. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7338. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7339. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7340. test -z "$OBJDUMP" && OBJDUMP=objdump
  7341. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7342. ])# win32-dll
  7343. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7344. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7345. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7346. AC_DIAGNOSE([obsolete],
  7347. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7348. put the `win32-dll' option into LT_INIT's first parameter.])
  7349. ])
  7350. dnl aclocal-1.4 backwards compatibility:
  7351. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7352. # _LT_ENABLE_SHARED([DEFAULT])
  7353. # ----------------------------
  7354. # implement the --enable-shared flag, and supports the `shared' and
  7355. # `disable-shared' LT_INIT options.
  7356. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7357. m4_define([_LT_ENABLE_SHARED],
  7358. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7359. AC_ARG_ENABLE([shared],
  7360. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7361. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7362. [p=${PACKAGE-default}
  7363. case $enableval in
  7364. yes) enable_shared=yes ;;
  7365. no) enable_shared=no ;;
  7366. *)
  7367. enable_shared=no
  7368. # Look at the argument we got. We use all the common list separators.
  7369. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7370. for pkg in $enableval; do
  7371. IFS="$lt_save_ifs"
  7372. if test "X$pkg" = "X$p"; then
  7373. enable_shared=yes
  7374. fi
  7375. done
  7376. IFS="$lt_save_ifs"
  7377. ;;
  7378. esac],
  7379. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7380. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7381. [Whether or not to build shared libraries])
  7382. ])# _LT_ENABLE_SHARED
  7383. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7384. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7385. # Old names:
  7386. AC_DEFUN([AC_ENABLE_SHARED],
  7387. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7388. ])
  7389. AC_DEFUN([AC_DISABLE_SHARED],
  7390. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7391. ])
  7392. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7393. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7394. dnl aclocal-1.4 backwards compatibility:
  7395. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7396. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7397. # _LT_ENABLE_STATIC([DEFAULT])
  7398. # ----------------------------
  7399. # implement the --enable-static flag, and support the `static' and
  7400. # `disable-static' LT_INIT options.
  7401. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7402. m4_define([_LT_ENABLE_STATIC],
  7403. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7404. AC_ARG_ENABLE([static],
  7405. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7406. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7407. [p=${PACKAGE-default}
  7408. case $enableval in
  7409. yes) enable_static=yes ;;
  7410. no) enable_static=no ;;
  7411. *)
  7412. enable_static=no
  7413. # Look at the argument we got. We use all the common list separators.
  7414. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7415. for pkg in $enableval; do
  7416. IFS="$lt_save_ifs"
  7417. if test "X$pkg" = "X$p"; then
  7418. enable_static=yes
  7419. fi
  7420. done
  7421. IFS="$lt_save_ifs"
  7422. ;;
  7423. esac],
  7424. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7425. _LT_DECL([build_old_libs], [enable_static], [0],
  7426. [Whether or not to build static libraries])
  7427. ])# _LT_ENABLE_STATIC
  7428. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7429. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7430. # Old names:
  7431. AC_DEFUN([AC_ENABLE_STATIC],
  7432. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7433. ])
  7434. AC_DEFUN([AC_DISABLE_STATIC],
  7435. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7436. ])
  7437. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7438. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7439. dnl aclocal-1.4 backwards compatibility:
  7440. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7441. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7442. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7443. # ----------------------------------
  7444. # implement the --enable-fast-install flag, and support the `fast-install'
  7445. # and `disable-fast-install' LT_INIT options.
  7446. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7447. m4_define([_LT_ENABLE_FAST_INSTALL],
  7448. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7449. AC_ARG_ENABLE([fast-install],
  7450. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7451. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7452. [p=${PACKAGE-default}
  7453. case $enableval in
  7454. yes) enable_fast_install=yes ;;
  7455. no) enable_fast_install=no ;;
  7456. *)
  7457. enable_fast_install=no
  7458. # Look at the argument we got. We use all the common list separators.
  7459. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7460. for pkg in $enableval; do
  7461. IFS="$lt_save_ifs"
  7462. if test "X$pkg" = "X$p"; then
  7463. enable_fast_install=yes
  7464. fi
  7465. done
  7466. IFS="$lt_save_ifs"
  7467. ;;
  7468. esac],
  7469. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7470. _LT_DECL([fast_install], [enable_fast_install], [0],
  7471. [Whether or not to optimize for fast installation])dnl
  7472. ])# _LT_ENABLE_FAST_INSTALL
  7473. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7474. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7475. # Old names:
  7476. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7477. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7478. AC_DIAGNOSE([obsolete],
  7479. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7480. the `fast-install' option into LT_INIT's first parameter.])
  7481. ])
  7482. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7483. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7484. AC_DIAGNOSE([obsolete],
  7485. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7486. the `disable-fast-install' option into LT_INIT's first parameter.])
  7487. ])
  7488. dnl aclocal-1.4 backwards compatibility:
  7489. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7490. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7491. # _LT_WITH_PIC([MODE])
  7492. # --------------------
  7493. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7494. # LT_INIT options.
  7495. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7496. m4_define([_LT_WITH_PIC],
  7497. [AC_ARG_WITH([pic],
  7498. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7499. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7500. [lt_p=${PACKAGE-default}
  7501. case $withval in
  7502. yes|no) pic_mode=$withval ;;
  7503. *)
  7504. pic_mode=default
  7505. # Look at the argument we got. We use all the common list separators.
  7506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7507. for lt_pkg in $withval; do
  7508. IFS="$lt_save_ifs"
  7509. if test "X$lt_pkg" = "X$lt_p"; then
  7510. pic_mode=yes
  7511. fi
  7512. done
  7513. IFS="$lt_save_ifs"
  7514. ;;
  7515. esac],
  7516. [pic_mode=default])
  7517. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7518. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7519. ])# _LT_WITH_PIC
  7520. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7521. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7522. # Old name:
  7523. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7524. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7525. AC_DIAGNOSE([obsolete],
  7526. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7527. put the `pic-only' option into LT_INIT's first parameter.])
  7528. ])
  7529. dnl aclocal-1.4 backwards compatibility:
  7530. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7531. m4_define([_LTDL_MODE], [])
  7532. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7533. [m4_define([_LTDL_MODE], [nonrecursive])])
  7534. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7535. [m4_define([_LTDL_MODE], [recursive])])
  7536. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7537. [m4_define([_LTDL_MODE], [subproject])])
  7538. m4_define([_LTDL_TYPE], [])
  7539. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7540. [m4_define([_LTDL_TYPE], [installable])])
  7541. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7542. [m4_define([_LTDL_TYPE], [convenience])])
  7543. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7544. #
  7545. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7546. # Written by Gary V. Vaughan, 2004
  7547. #
  7548. # This file is free software; the Free Software Foundation gives
  7549. # unlimited permission to copy and/or distribute it, with or without
  7550. # modifications, as long as this notice is preserved.
  7551. # serial 6 ltsugar.m4
  7552. # This is to help aclocal find these macros, as it can't see m4_define.
  7553. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7554. # lt_join(SEP, ARG1, [ARG2...])
  7555. # -----------------------------
  7556. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7557. # associated separator.
  7558. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7559. # versions in m4sugar had bugs.
  7560. m4_define([lt_join],
  7561. [m4_if([$#], [1], [],
  7562. [$#], [2], [[$2]],
  7563. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7564. m4_define([_lt_join],
  7565. [m4_if([$#$2], [2], [],
  7566. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7567. # lt_car(LIST)
  7568. # lt_cdr(LIST)
  7569. # ------------
  7570. # Manipulate m4 lists.
  7571. # These macros are necessary as long as will still need to support
  7572. # Autoconf-2.59 which quotes differently.
  7573. m4_define([lt_car], [[$1]])
  7574. m4_define([lt_cdr],
  7575. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7576. [$#], 1, [],
  7577. [m4_dquote(m4_shift($@))])])
  7578. m4_define([lt_unquote], $1)
  7579. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7580. # ------------------------------------------
  7581. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7582. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7583. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7584. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7585. # than defined and empty).
  7586. #
  7587. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7588. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7589. m4_define([lt_append],
  7590. [m4_define([$1],
  7591. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7592. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7593. # ----------------------------------------------------------
  7594. # Produce a SEP delimited list of all paired combinations of elements of
  7595. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7596. # has the form PREFIXmINFIXSUFFIXn.
  7597. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7598. m4_define([lt_combine],
  7599. [m4_if(m4_eval([$# > 3]), [1],
  7600. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7601. [[m4_foreach([_Lt_prefix], [$2],
  7602. [m4_foreach([_Lt_suffix],
  7603. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7604. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7605. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7606. # -----------------------------------------------------------------------
  7607. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7608. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7609. m4_define([lt_if_append_uniq],
  7610. [m4_ifdef([$1],
  7611. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7612. [lt_append([$1], [$2], [$3])$4],
  7613. [$5])],
  7614. [lt_append([$1], [$2], [$3])$4])])
  7615. # lt_dict_add(DICT, KEY, VALUE)
  7616. # -----------------------------
  7617. m4_define([lt_dict_add],
  7618. [m4_define([$1($2)], [$3])])
  7619. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7620. # --------------------------------------------
  7621. m4_define([lt_dict_add_subkey],
  7622. [m4_define([$1($2:$3)], [$4])])
  7623. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7624. # ----------------------------------
  7625. m4_define([lt_dict_fetch],
  7626. [m4_ifval([$3],
  7627. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7628. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7629. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7630. # -----------------------------------------------------------------
  7631. m4_define([lt_if_dict_fetch],
  7632. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7633. [$5],
  7634. [$6])])
  7635. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7636. # --------------------------------------------------------------
  7637. m4_define([lt_dict_filter],
  7638. [m4_if([$5], [], [],
  7639. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7640. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7641. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7642. ])
  7643. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7644. #
  7645. # Copyright (C) 2004 Free Software Foundation, Inc.
  7646. # Written by Scott James Remnant, 2004
  7647. #
  7648. # This file is free software; the Free Software Foundation gives
  7649. # unlimited permission to copy and/or distribute it, with or without
  7650. # modifications, as long as this notice is preserved.
  7651. # @configure_input@
  7652. # serial 3337 ltversion.m4
  7653. # This file is part of GNU Libtool
  7654. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7655. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7656. AC_DEFUN([LTVERSION_VERSION],
  7657. [macro_version='2.4.2'
  7658. macro_revision='1.3337'
  7659. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7660. _LT_DECL(, macro_revision, 0)
  7661. ])
  7662. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7663. #
  7664. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7665. # Written by Scott James Remnant, 2004.
  7666. #
  7667. # This file is free software; the Free Software Foundation gives
  7668. # unlimited permission to copy and/or distribute it, with or without
  7669. # modifications, as long as this notice is preserved.
  7670. # serial 5 lt~obsolete.m4
  7671. # These exist entirely to fool aclocal when bootstrapping libtool.
  7672. #
  7673. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7674. # which have later been changed to m4_define as they aren't part of the
  7675. # exported API, or moved to Autoconf or Automake where they belong.
  7676. #
  7677. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7678. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7679. # using a macro with the same name in our local m4/libtool.m4 it'll
  7680. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7681. # and doesn't know about Autoconf macros at all.)
  7682. #
  7683. # So we provide this file, which has a silly filename so it's always
  7684. # included after everything else. This provides aclocal with the
  7685. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7686. # because those macros already exist, or will be overwritten later.
  7687. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7688. #
  7689. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7690. # Yes, that means every name once taken will need to remain here until
  7691. # we give up compatibility with versions before 1.7, at which point
  7692. # we need to keep only those names which we still refer to.
  7693. # This is to help aclocal find these macros, as it can't see m4_define.
  7694. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7695. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7696. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7697. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7698. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7699. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7700. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7701. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7702. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7703. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7704. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7705. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7706. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7707. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7708. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7709. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7710. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7711. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7712. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7713. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7714. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7715. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7716. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7717. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7718. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7719. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7720. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7721. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7722. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7723. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7724. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7725. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7726. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7727. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7728. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7729. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7730. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7731. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7732. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7733. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7734. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7735. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7736. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7737. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7738. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7739. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7740. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7741. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7742. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7743. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7744. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7745. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7746. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7747. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7748. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7749. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7750. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7751. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7752. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7753. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7754. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7755. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7756. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  7757. # serial 1 (pkg-config-0.24)
  7758. #
  7759. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  7760. #
  7761. # This program is free software; you can redistribute it and/or modify
  7762. # it under the terms of the GNU General Public License as published by
  7763. # the Free Software Foundation; either version 2 of the License, or
  7764. # (at your option) any later version.
  7765. #
  7766. # This program is distributed in the hope that it will be useful, but
  7767. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7768. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7769. # General Public License for more details.
  7770. #
  7771. # You should have received a copy of the GNU General Public License
  7772. # along with this program; if not, write to the Free Software
  7773. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7774. #
  7775. # As a special exception to the GNU General Public License, if you
  7776. # distribute this file as part of a program that contains a
  7777. # configuration script generated by Autoconf, you may include it under
  7778. # the same distribution terms that you use for the rest of that program.
  7779. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  7780. # ----------------------------------
  7781. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  7782. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  7783. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  7784. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  7785. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  7786. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  7787. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  7788. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  7789. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  7790. fi
  7791. if test -n "$PKG_CONFIG"; then
  7792. _pkg_min_version=m4_default([$1], [0.9.0])
  7793. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  7794. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  7795. AC_MSG_RESULT([yes])
  7796. else
  7797. AC_MSG_RESULT([no])
  7798. PKG_CONFIG=""
  7799. fi
  7800. fi[]dnl
  7801. ])# PKG_PROG_PKG_CONFIG
  7802. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  7803. #
  7804. # Check to see whether a particular set of modules exists. Similar
  7805. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  7806. #
  7807. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7808. # only at the first occurence in configure.ac, so if the first place
  7809. # it's called might be skipped (such as if it is within an "if", you
  7810. # have to call PKG_CHECK_EXISTS manually
  7811. # --------------------------------------------------------------
  7812. AC_DEFUN([PKG_CHECK_EXISTS],
  7813. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7814. if test -n "$PKG_CONFIG" && \
  7815. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  7816. m4_default([$2], [:])
  7817. m4_ifvaln([$3], [else
  7818. $3])dnl
  7819. fi])
  7820. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  7821. # ---------------------------------------------
  7822. m4_define([_PKG_CONFIG],
  7823. [if test -n "$$1"; then
  7824. pkg_cv_[]$1="$$1"
  7825. elif test -n "$PKG_CONFIG"; then
  7826. PKG_CHECK_EXISTS([$3],
  7827. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  7828. test "x$?" != "x0" && pkg_failed=yes ],
  7829. [pkg_failed=yes])
  7830. else
  7831. pkg_failed=untried
  7832. fi[]dnl
  7833. ])# _PKG_CONFIG
  7834. # _PKG_SHORT_ERRORS_SUPPORTED
  7835. # -----------------------------
  7836. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  7837. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7838. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7839. _pkg_short_errors_supported=yes
  7840. else
  7841. _pkg_short_errors_supported=no
  7842. fi[]dnl
  7843. ])# _PKG_SHORT_ERRORS_SUPPORTED
  7844. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  7845. # [ACTION-IF-NOT-FOUND])
  7846. #
  7847. #
  7848. # Note that if there is a possibility the first call to
  7849. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  7850. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  7851. #
  7852. #
  7853. # --------------------------------------------------------------
  7854. AC_DEFUN([PKG_CHECK_MODULES],
  7855. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7856. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  7857. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  7858. pkg_failed=no
  7859. AC_MSG_CHECKING([for $1])
  7860. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  7861. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  7862. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  7863. and $1[]_LIBS to avoid the need to call pkg-config.
  7864. See the pkg-config man page for more details.])
  7865. if test $pkg_failed = yes; then
  7866. AC_MSG_RESULT([no])
  7867. _PKG_SHORT_ERRORS_SUPPORTED
  7868. if test $_pkg_short_errors_supported = yes; then
  7869. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  7870. else
  7871. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  7872. fi
  7873. # Put the nasty error message in config.log where it belongs
  7874. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  7875. m4_default([$4], [AC_MSG_ERROR(
  7876. [Package requirements ($2) were not met:
  7877. $$1_PKG_ERRORS
  7878. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7879. installed software in a non-standard prefix.
  7880. _PKG_TEXT])[]dnl
  7881. ])
  7882. elif test $pkg_failed = untried; then
  7883. AC_MSG_RESULT([no])
  7884. m4_default([$4], [AC_MSG_FAILURE(
  7885. [The pkg-config script could not be found or is too old. Make sure it
  7886. is in your PATH or set the PKG_CONFIG environment variable to the full
  7887. path to pkg-config.
  7888. _PKG_TEXT
  7889. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  7890. ])
  7891. else
  7892. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  7893. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  7894. AC_MSG_RESULT([yes])
  7895. $3
  7896. fi[]dnl
  7897. ])# PKG_CHECK_MODULES
  7898. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  7899. #
  7900. # This file is free software; the Free Software Foundation
  7901. # gives unlimited permission to copy and/or distribute it,
  7902. # with or without modifications, as long as this notice is preserved.
  7903. # AM_AUTOMAKE_VERSION(VERSION)
  7904. # ----------------------------
  7905. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7906. # generated from the m4 files accompanying Automake X.Y.
  7907. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  7908. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7909. # -------------------------------
  7910. # Call AM_AUTOMAKE_VERSION so it can be traced.
  7911. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  7912. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7913. [AM_AUTOMAKE_VERSION([1.9.6])])
  7914. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7915. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7916. #
  7917. # This file is free software; the Free Software Foundation
  7918. # gives unlimited permission to copy and/or distribute it,
  7919. # with or without modifications, as long as this notice is preserved.
  7920. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7921. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7922. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7923. #
  7924. # Of course, Automake must honor this variable whenever it calls a
  7925. # tool from the auxiliary directory. The problem is that $srcdir (and
  7926. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7927. # depending on how configure is run. This is pretty annoying, since
  7928. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7929. # source directory, any form will work fine, but in subdirectories a
  7930. # relative path needs to be adjusted first.
  7931. #
  7932. # $ac_aux_dir/missing
  7933. # fails when called from a subdirectory if $ac_aux_dir is relative
  7934. # $top_srcdir/$ac_aux_dir/missing
  7935. # fails if $ac_aux_dir is absolute,
  7936. # fails when called from a subdirectory in a VPATH build with
  7937. # a relative $ac_aux_dir
  7938. #
  7939. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7940. # are both prefixed by $srcdir. In an in-source build this is usually
  7941. # harmless because $srcdir is `.', but things will broke when you
  7942. # start a VPATH build or use an absolute $srcdir.
  7943. #
  7944. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7945. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7946. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7947. # and then we would define $MISSING as
  7948. # MISSING="\${SHELL} $am_aux_dir/missing"
  7949. # This will work as long as MISSING is not called from configure, because
  7950. # unfortunately $(top_srcdir) has no meaning in configure.
  7951. # However there are other variables, like CC, which are often used in
  7952. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7953. #
  7954. # Another solution, used here, is to always expand $ac_aux_dir to an
  7955. # absolute PATH. The drawback is that using absolute paths prevent a
  7956. # configured tree to be moved without reconfiguration.
  7957. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7958. [dnl Rely on autoconf to set up CDPATH properly.
  7959. AC_PREREQ([2.50])dnl
  7960. # expand $ac_aux_dir to an absolute path
  7961. am_aux_dir=`cd $ac_aux_dir && pwd`
  7962. ])
  7963. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
  7964. # Free Software Foundation, Inc.
  7965. #
  7966. # This file is free software; the Free Software Foundation
  7967. # gives unlimited permission to copy and/or distribute it,
  7968. # with or without modifications, as long as this notice is preserved.
  7969. # serial 4
  7970. # This was merged into AC_PROG_CC in Autoconf.
  7971. AU_DEFUN([AM_PROG_CC_STDC],
  7972. [AC_PROG_CC
  7973. AC_DIAGNOSE([obsolete], [$0:
  7974. your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
  7975. `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
  7976. you adjust the code. You can also remove the above call to
  7977. AC_PROG_CC if you already called it elsewhere.])
  7978. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  7979. ])
  7980. AU_DEFUN([fp_PROG_CC_STDC])
  7981. # AM_CONDITIONAL -*- Autoconf -*-
  7982. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  7983. # Free Software Foundation, Inc.
  7984. #
  7985. # This file is free software; the Free Software Foundation
  7986. # gives unlimited permission to copy and/or distribute it,
  7987. # with or without modifications, as long as this notice is preserved.
  7988. # serial 7
  7989. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7990. # -------------------------------------
  7991. # Define a conditional.
  7992. AC_DEFUN([AM_CONDITIONAL],
  7993. [AC_PREREQ(2.52)dnl
  7994. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7995. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7996. AC_SUBST([$1_TRUE])
  7997. AC_SUBST([$1_FALSE])
  7998. if $2; then
  7999. $1_TRUE=
  8000. $1_FALSE='#'
  8001. else
  8002. $1_TRUE='#'
  8003. $1_FALSE=
  8004. fi
  8005. AC_CONFIG_COMMANDS_PRE(
  8006. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8007. AC_MSG_ERROR([[conditional "$1" was never defined.
  8008. Usually this means the macro was only invoked conditionally.]])
  8009. fi])])
  8010. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  8011. # Free Software Foundation, Inc.
  8012. #
  8013. # This file is free software; the Free Software Foundation
  8014. # gives unlimited permission to copy and/or distribute it,
  8015. # with or without modifications, as long as this notice is preserved.
  8016. # serial 8
  8017. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8018. # written in clear, in which case automake, when reading aclocal.m4,
  8019. # will think it sees a *use*, and therefore will trigger all it's
  8020. # C support machinery. Also note that it means that autoscan, seeing
  8021. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8022. # _AM_DEPENDENCIES(NAME)
  8023. # ----------------------
  8024. # See how the compiler implements dependency checking.
  8025. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  8026. # We try a few techniques and use that to set a single cache variable.
  8027. #
  8028. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8029. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8030. # dependency, and given that the user is not expected to run this macro,
  8031. # just rely on AC_PROG_CC.
  8032. AC_DEFUN([_AM_DEPENDENCIES],
  8033. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  8034. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8035. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8036. AC_REQUIRE([AM_DEP_TRACK])dnl
  8037. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8038. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8039. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8040. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8041. [depcc="$$1" am_compiler_list=])
  8042. AC_CACHE_CHECK([dependency style of $depcc],
  8043. [am_cv_$1_dependencies_compiler_type],
  8044. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8045. # We make a subdir and do the tests there. Otherwise we can end up
  8046. # making bogus files that we don't know about and never remove. For
  8047. # instance it was reported that on HP-UX the gcc test will end up
  8048. # making a dummy file named `D' -- because `-MD' means `put the output
  8049. # in D'.
  8050. mkdir conftest.dir
  8051. # Copy depcomp to subdir because otherwise we won't find it if we're
  8052. # using a relative directory.
  8053. cp "$am_depcomp" conftest.dir
  8054. cd conftest.dir
  8055. # We will build objects and dependencies in a subdirectory because
  8056. # it helps to detect inapplicable dependency modes. For instance
  8057. # both Tru64's cc and ICC support -MD to output dependencies as a
  8058. # side effect of compilation, but ICC will put the dependencies in
  8059. # the current directory while Tru64 will put them in the object
  8060. # directory.
  8061. mkdir sub
  8062. am_cv_$1_dependencies_compiler_type=none
  8063. if test "$am_compiler_list" = ""; then
  8064. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8065. fi
  8066. for depmode in $am_compiler_list; do
  8067. # Setup a source with many dependencies, because some compilers
  8068. # like to wrap large dependency lists on column 80 (with \), and
  8069. # we should not choose a depcomp mode which is confused by this.
  8070. #
  8071. # We need to recreate these files for each test, as the compiler may
  8072. # overwrite some of them when testing with obscure command lines.
  8073. # This happens at least with the AIX C compiler.
  8074. : > sub/conftest.c
  8075. for i in 1 2 3 4 5 6; do
  8076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8077. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8078. # Solaris 8's {/usr,}/bin/sh.
  8079. touch sub/conftst$i.h
  8080. done
  8081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8082. case $depmode in
  8083. nosideeffect)
  8084. # after this tag, mechanisms are not by side-effect, so they'll
  8085. # only be used when explicitly requested
  8086. if test "x$enable_dependency_tracking" = xyes; then
  8087. continue
  8088. else
  8089. break
  8090. fi
  8091. ;;
  8092. none) break ;;
  8093. esac
  8094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8095. # mode. It turns out that the SunPro C++ compiler does not properly
  8096. # handle `-M -o', and we need to detect this.
  8097. if depmode=$depmode \
  8098. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8099. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8100. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8101. >/dev/null 2>conftest.err &&
  8102. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8103. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8104. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8105. # icc doesn't choke on unknown options, it will just issue warnings
  8106. # or remarks (even with -Werror). So we grep stderr for any message
  8107. # that says an option was ignored or not supported.
  8108. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8109. # icc: Command line warning: ignoring option '-M'; no argument required
  8110. # The diagnosis changed in icc 8.0:
  8111. # icc: Command line remark: option '-MP' not supported
  8112. if (grep 'ignoring option' conftest.err ||
  8113. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8114. am_cv_$1_dependencies_compiler_type=$depmode
  8115. break
  8116. fi
  8117. fi
  8118. done
  8119. cd ..
  8120. rm -rf conftest.dir
  8121. else
  8122. am_cv_$1_dependencies_compiler_type=none
  8123. fi
  8124. ])
  8125. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8126. AM_CONDITIONAL([am__fastdep$1], [
  8127. test "x$enable_dependency_tracking" != xno \
  8128. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8129. ])
  8130. # AM_SET_DEPDIR
  8131. # -------------
  8132. # Choose a directory name for dependency files.
  8133. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8134. AC_DEFUN([AM_SET_DEPDIR],
  8135. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8136. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8137. ])
  8138. # AM_DEP_TRACK
  8139. # ------------
  8140. AC_DEFUN([AM_DEP_TRACK],
  8141. [AC_ARG_ENABLE(dependency-tracking,
  8142. [ --disable-dependency-tracking speeds up one-time build
  8143. --enable-dependency-tracking do not reject slow dependency extractors])
  8144. if test "x$enable_dependency_tracking" != xno; then
  8145. am_depcomp="$ac_aux_dir/depcomp"
  8146. AMDEPBACKSLASH='\'
  8147. fi
  8148. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8149. AC_SUBST([AMDEPBACKSLASH])
  8150. ])
  8151. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8152. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  8153. # Free Software Foundation, Inc.
  8154. #
  8155. # This file is free software; the Free Software Foundation
  8156. # gives unlimited permission to copy and/or distribute it,
  8157. # with or without modifications, as long as this notice is preserved.
  8158. #serial 3
  8159. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8160. # ------------------------------
  8161. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8162. [for mf in $CONFIG_FILES; do
  8163. # Strip MF so we end up with the name of the file.
  8164. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8165. # Check whether this is an Automake generated Makefile or not.
  8166. # We used to match only the files named `Makefile.in', but
  8167. # some people rename them; so instead we look at the file content.
  8168. # Grep'ing the first line is not enough: some people post-process
  8169. # each Makefile.in and add a new line on top of each file to say so.
  8170. # So let's grep whole file.
  8171. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  8172. dirpart=`AS_DIRNAME("$mf")`
  8173. else
  8174. continue
  8175. fi
  8176. # Extract the definition of DEPDIR, am__include, and am__quote
  8177. # from the Makefile without running `make'.
  8178. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8179. test -z "$DEPDIR" && continue
  8180. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8181. test -z "am__include" && continue
  8182. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8183. # When using ansi2knr, U may be empty or an underscore; expand it
  8184. U=`sed -n 's/^U = //p' < "$mf"`
  8185. # Find all dependency output files, they are included files with
  8186. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8187. # simplest approach to changing $(DEPDIR) to its actual value in the
  8188. # expansion.
  8189. for file in `sed -n "
  8190. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8191. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8192. # Make sure the directory exists.
  8193. test -f "$dirpart/$file" && continue
  8194. fdir=`AS_DIRNAME(["$file"])`
  8195. AS_MKDIR_P([$dirpart/$fdir])
  8196. # echo "creating $dirpart/$file"
  8197. echo '# dummy' > "$dirpart/$file"
  8198. done
  8199. done
  8200. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8201. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8202. # -----------------------------
  8203. # This macro should only be invoked once -- use via AC_REQUIRE.
  8204. #
  8205. # This code is only required when automatic dependency tracking
  8206. # is enabled. FIXME. This creates each `.P' file that we will
  8207. # need in order to bootstrap the dependency handling code.
  8208. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8209. [AC_CONFIG_COMMANDS([depfiles],
  8210. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8211. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8212. ])
  8213. # Do all the work for Automake. -*- Autoconf -*-
  8214. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  8215. # Free Software Foundation, Inc.
  8216. #
  8217. # This file is free software; the Free Software Foundation
  8218. # gives unlimited permission to copy and/or distribute it,
  8219. # with or without modifications, as long as this notice is preserved.
  8220. # serial 12
  8221. # This macro actually does too much. Some checks are only needed if
  8222. # your package does certain things. But this isn't really a big deal.
  8223. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8224. # AM_INIT_AUTOMAKE([OPTIONS])
  8225. # -----------------------------------------------
  8226. # The call with PACKAGE and VERSION arguments is the old style
  8227. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8228. # and VERSION should now be passed to AC_INIT and removed from
  8229. # the call to AM_INIT_AUTOMAKE.
  8230. # We support both call styles for the transition. After
  8231. # the next Automake release, Autoconf can make the AC_INIT
  8232. # arguments mandatory, and then we can depend on a new Autoconf
  8233. # release and drop the old call support.
  8234. AC_DEFUN([AM_INIT_AUTOMAKE],
  8235. [AC_PREREQ([2.58])dnl
  8236. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8237. dnl the ones we care about.
  8238. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8239. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8240. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8241. # test to see if srcdir already configured
  8242. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  8243. test -f $srcdir/config.status; then
  8244. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8245. fi
  8246. # test whether we have cygpath
  8247. if test -z "$CYGPATH_W"; then
  8248. if (cygpath --version) >/dev/null 2>/dev/null; then
  8249. CYGPATH_W='cygpath -w'
  8250. else
  8251. CYGPATH_W=echo
  8252. fi
  8253. fi
  8254. AC_SUBST([CYGPATH_W])
  8255. # Define the identity of the package.
  8256. dnl Distinguish between old-style and new-style calls.
  8257. m4_ifval([$2],
  8258. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8259. AC_SUBST([PACKAGE], [$1])dnl
  8260. AC_SUBST([VERSION], [$2])],
  8261. [_AM_SET_OPTIONS([$1])dnl
  8262. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8263. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8264. _AM_IF_OPTION([no-define],,
  8265. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8266. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8267. # Some tools Automake needs.
  8268. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8269. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8270. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8271. AM_MISSING_PROG(AUTOCONF, autoconf)
  8272. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8273. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8274. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8275. AM_PROG_INSTALL_SH
  8276. AM_PROG_INSTALL_STRIP
  8277. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8278. # We need awk for the "check" target. The system "awk" is bad on
  8279. # some platforms.
  8280. AC_REQUIRE([AC_PROG_AWK])dnl
  8281. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8282. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8283. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8284. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8285. [_AM_PROG_TAR([v7])])])
  8286. _AM_IF_OPTION([no-dependencies],,
  8287. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8288. [_AM_DEPENDENCIES(CC)],
  8289. [define([AC_PROG_CC],
  8290. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8291. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8292. [_AM_DEPENDENCIES(CXX)],
  8293. [define([AC_PROG_CXX],
  8294. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8295. ])
  8296. ])
  8297. # When config.status generates a header, we must update the stamp-h file.
  8298. # This file resides in the same directory as the config header
  8299. # that is generated. The stamp files are numbered to have different names.
  8300. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8301. # loop where config.status creates the headers, so we can generate
  8302. # our stamp files there.
  8303. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8304. [# Compute $1's index in $config_headers.
  8305. _am_stamp_count=1
  8306. for _am_header in $config_headers :; do
  8307. case $_am_header in
  8308. $1 | $1:* )
  8309. break ;;
  8310. * )
  8311. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8312. esac
  8313. done
  8314. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  8315. # Copyright (C) 2001, 2003, 2005 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_PROG_INSTALL_SH
  8321. # ------------------
  8322. # Define $install_sh.
  8323. AC_DEFUN([AM_PROG_INSTALL_SH],
  8324. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8325. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  8326. AC_SUBST(install_sh)])
  8327. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8328. #
  8329. # This file is free software; the Free Software Foundation
  8330. # gives unlimited permission to copy and/or distribute it,
  8331. # with or without modifications, as long as this notice is preserved.
  8332. # serial 2
  8333. # Check whether the underlying file-system supports filenames
  8334. # with a leading dot. For instance MS-DOS doesn't.
  8335. AC_DEFUN([AM_SET_LEADING_DOT],
  8336. [rm -rf .tst 2>/dev/null
  8337. mkdir .tst 2>/dev/null
  8338. if test -d .tst; then
  8339. am__leading_dot=.
  8340. else
  8341. am__leading_dot=_
  8342. fi
  8343. rmdir .tst 2>/dev/null
  8344. AC_SUBST([am__leading_dot])])
  8345. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8346. # From Jim Meyering
  8347. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  8348. # Free Software Foundation, Inc.
  8349. #
  8350. # This file is free software; the Free Software Foundation
  8351. # gives unlimited permission to copy and/or distribute it,
  8352. # with or without modifications, as long as this notice is preserved.
  8353. # serial 4
  8354. AC_DEFUN([AM_MAINTAINER_MODE],
  8355. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8356. dnl maintainer-mode is disabled by default
  8357. AC_ARG_ENABLE(maintainer-mode,
  8358. [ --enable-maintainer-mode enable make rules and dependencies not useful
  8359. (and sometimes confusing) to the casual installer],
  8360. USE_MAINTAINER_MODE=$enableval,
  8361. USE_MAINTAINER_MODE=no)
  8362. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8363. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  8364. MAINT=$MAINTAINER_MODE_TRUE
  8365. AC_SUBST(MAINT)dnl
  8366. ]
  8367. )
  8368. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  8369. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8370. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  8371. #
  8372. # This file is free software; the Free Software Foundation
  8373. # gives unlimited permission to copy and/or distribute it,
  8374. # with or without modifications, as long as this notice is preserved.
  8375. # serial 3
  8376. # AM_MAKE_INCLUDE()
  8377. # -----------------
  8378. # Check to see how make treats includes.
  8379. AC_DEFUN([AM_MAKE_INCLUDE],
  8380. [am_make=${MAKE-make}
  8381. cat > confinc << 'END'
  8382. am__doit:
  8383. @echo done
  8384. .PHONY: am__doit
  8385. END
  8386. # If we don't find an include directive, just comment out the code.
  8387. AC_MSG_CHECKING([for style of include used by $am_make])
  8388. am__include="#"
  8389. am__quote=
  8390. _am_result=none
  8391. # First try GNU make style include.
  8392. echo "include confinc" > confmf
  8393. # We grep out `Entering directory' and `Leaving directory'
  8394. # messages which can occur if `w' ends up in MAKEFLAGS.
  8395. # In particular we don't look at `^make:' because GNU make might
  8396. # be invoked under some other name (usually "gmake"), in which
  8397. # case it prints its new name instead of `make'.
  8398. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  8399. am__include=include
  8400. am__quote=
  8401. _am_result=GNU
  8402. fi
  8403. # Now try BSD make style include.
  8404. if test "$am__include" = "#"; then
  8405. echo '.include "confinc"' > confmf
  8406. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  8407. am__include=.include
  8408. am__quote="\""
  8409. _am_result=BSD
  8410. fi
  8411. fi
  8412. AC_SUBST([am__include])
  8413. AC_SUBST([am__quote])
  8414. AC_MSG_RESULT([$_am_result])
  8415. rm -f confinc confmf
  8416. ])
  8417. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8418. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  8419. # Free Software Foundation, Inc.
  8420. #
  8421. # This file is free software; the Free Software Foundation
  8422. # gives unlimited permission to copy and/or distribute it,
  8423. # with or without modifications, as long as this notice is preserved.
  8424. # serial 4
  8425. # AM_MISSING_PROG(NAME, PROGRAM)
  8426. # ------------------------------
  8427. AC_DEFUN([AM_MISSING_PROG],
  8428. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8429. $1=${$1-"${am_missing_run}$2"}
  8430. AC_SUBST($1)])
  8431. # AM_MISSING_HAS_RUN
  8432. # ------------------
  8433. # Define MISSING if not defined so far and test if it supports --run.
  8434. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8435. AC_DEFUN([AM_MISSING_HAS_RUN],
  8436. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8437. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  8438. # Use eval to expand $SHELL
  8439. if eval "$MISSING --run true"; then
  8440. am_missing_run="$MISSING --run "
  8441. else
  8442. am_missing_run=
  8443. AC_MSG_WARN([`missing' script is too old or missing])
  8444. fi
  8445. ])
  8446. # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  8447. #
  8448. # This file is free software; the Free Software Foundation
  8449. # gives unlimited permission to copy and/or distribute it,
  8450. # with or without modifications, as long as this notice is preserved.
  8451. # AM_PROG_MKDIR_P
  8452. # ---------------
  8453. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  8454. #
  8455. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  8456. # created by `make install' are always world readable, even if the
  8457. # installer happens to have an overly restrictive umask (e.g. 077).
  8458. # This was a mistake. There are at least two reasons why we must not
  8459. # use `-m 0755':
  8460. # - it causes special bits like SGID to be ignored,
  8461. # - it may be too restrictive (some setups expect 775 directories).
  8462. #
  8463. # Do not use -m 0755 and let people choose whatever they expect by
  8464. # setting umask.
  8465. #
  8466. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  8467. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  8468. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  8469. # concurrently, both version can detect that a/ is missing, but only
  8470. # one can create it and the other will error out. Consequently we
  8471. # restrict ourselves to GNU make (using the --version option ensures
  8472. # this.)
  8473. AC_DEFUN([AM_PROG_MKDIR_P],
  8474. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  8475. # We used to keeping the `.' as first argument, in order to
  8476. # allow $(mkdir_p) to be used without argument. As in
  8477. # $(mkdir_p) $(somedir)
  8478. # where $(somedir) is conditionally defined. However this is wrong
  8479. # for two reasons:
  8480. # 1. if the package is installed by a user who cannot write `.'
  8481. # make install will fail,
  8482. # 2. the above comment should most certainly read
  8483. # $(mkdir_p) $(DESTDIR)$(somedir)
  8484. # so it does not work when $(somedir) is undefined and
  8485. # $(DESTDIR) is not.
  8486. # To support the latter case, we have to write
  8487. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  8488. # so the `.' trick is pointless.
  8489. mkdir_p='mkdir -p --'
  8490. else
  8491. # On NextStep and OpenStep, the `mkdir' command does not
  8492. # recognize any option. It will interpret all options as
  8493. # directories to create, and then abort because `.' already
  8494. # exists.
  8495. for d in ./-p ./--version;
  8496. do
  8497. test -d $d && rmdir $d
  8498. done
  8499. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  8500. if test -f "$ac_aux_dir/mkinstalldirs"; then
  8501. mkdir_p='$(mkinstalldirs)'
  8502. else
  8503. mkdir_p='$(install_sh) -d'
  8504. fi
  8505. fi
  8506. AC_SUBST([mkdir_p])])
  8507. # Helper functions for option handling. -*- Autoconf -*-
  8508. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  8509. #
  8510. # This file is free software; the Free Software Foundation
  8511. # gives unlimited permission to copy and/or distribute it,
  8512. # with or without modifications, as long as this notice is preserved.
  8513. # serial 3
  8514. # _AM_MANGLE_OPTION(NAME)
  8515. # -----------------------
  8516. AC_DEFUN([_AM_MANGLE_OPTION],
  8517. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8518. # _AM_SET_OPTION(NAME)
  8519. # ------------------------------
  8520. # Set option NAME. Presently that only means defining a flag for this option.
  8521. AC_DEFUN([_AM_SET_OPTION],
  8522. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8523. # _AM_SET_OPTIONS(OPTIONS)
  8524. # ----------------------------------
  8525. # OPTIONS is a space-separated list of Automake options.
  8526. AC_DEFUN([_AM_SET_OPTIONS],
  8527. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8528. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8529. # -------------------------------------------
  8530. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8531. AC_DEFUN([_AM_IF_OPTION],
  8532. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8533. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8534. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  8535. # Free Software Foundation, Inc.
  8536. #
  8537. # This file is free software; the Free Software Foundation
  8538. # gives unlimited permission to copy and/or distribute it,
  8539. # with or without modifications, as long as this notice is preserved.
  8540. # serial 4
  8541. # AM_SANITY_CHECK
  8542. # ---------------
  8543. AC_DEFUN([AM_SANITY_CHECK],
  8544. [AC_MSG_CHECKING([whether build environment is sane])
  8545. # Just in case
  8546. sleep 1
  8547. echo timestamp > conftest.file
  8548. # Do `set' in a subshell so we don't clobber the current shell's
  8549. # arguments. Must try -L first in case configure is actually a
  8550. # symlink; some systems play weird games with the mod time of symlinks
  8551. # (eg FreeBSD returns the mod time of the symlink's containing
  8552. # directory).
  8553. if (
  8554. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  8555. if test "$[*]" = "X"; then
  8556. # -L didn't work.
  8557. set X `ls -t $srcdir/configure conftest.file`
  8558. fi
  8559. rm -f conftest.file
  8560. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8561. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8562. # If neither matched, then we have a broken ls. This can happen
  8563. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8564. # broken ls alias from the environment. This has actually
  8565. # happened. Such a system could not be considered "sane".
  8566. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8567. alias in your environment])
  8568. fi
  8569. test "$[2]" = conftest.file
  8570. )
  8571. then
  8572. # Ok.
  8573. :
  8574. else
  8575. AC_MSG_ERROR([newly created file is older than distributed files!
  8576. Check your system clock])
  8577. fi
  8578. AC_MSG_RESULT(yes)])
  8579. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8580. #
  8581. # This file is free software; the Free Software Foundation
  8582. # gives unlimited permission to copy and/or distribute it,
  8583. # with or without modifications, as long as this notice is preserved.
  8584. # AM_PROG_INSTALL_STRIP
  8585. # ---------------------
  8586. # One issue with vendor `install' (even GNU) is that you can't
  8587. # specify the program used to strip binaries. This is especially
  8588. # annoying in cross-compiling environments, where the build's strip
  8589. # is unlikely to handle the host's binaries.
  8590. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8591. # always use install-sh in `make install-strip', and initialize
  8592. # STRIPPROG with the value of the STRIP variable (set by the user).
  8593. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8594. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8595. # Installed binaries are usually stripped using `strip' when the user
  8596. # run `make install-strip'. However `strip' might not be the right
  8597. # tool to use in cross-compilation environments, therefore Automake
  8598. # will honor the `STRIP' environment variable to overrule this program.
  8599. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8600. if test "$cross_compiling" != no; then
  8601. AC_CHECK_TOOL([STRIP], [strip], :)
  8602. fi
  8603. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  8604. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8605. # Check how to create a tarball. -*- Autoconf -*-
  8606. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8607. #
  8608. # This file is free software; the Free Software Foundation
  8609. # gives unlimited permission to copy and/or distribute it,
  8610. # with or without modifications, as long as this notice is preserved.
  8611. # serial 2
  8612. # _AM_PROG_TAR(FORMAT)
  8613. # --------------------
  8614. # Check how to create a tarball in format FORMAT.
  8615. # FORMAT should be one of `v7', `ustar', or `pax'.
  8616. #
  8617. # Substitute a variable $(am__tar) that is a command
  8618. # writing to stdout a FORMAT-tarball containing the directory
  8619. # $tardir.
  8620. # tardir=directory && $(am__tar) > result.tar
  8621. #
  8622. # Substitute a variable $(am__untar) that extract such
  8623. # a tarball read from stdin.
  8624. # $(am__untar) < result.tar
  8625. AC_DEFUN([_AM_PROG_TAR],
  8626. [# Always define AMTAR for backward compatibility.
  8627. AM_MISSING_PROG([AMTAR], [tar])
  8628. m4_if([$1], [v7],
  8629. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8630. [m4_case([$1], [ustar],, [pax],,
  8631. [m4_fatal([Unknown tar format])])
  8632. AC_MSG_CHECKING([how to create a $1 tar archive])
  8633. # Loop over all known methods to create a tar archive until one works.
  8634. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8635. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8636. # Do not fold the above two line into one, because Tru64 sh and
  8637. # Solaris sh will not grok spaces in the rhs of `-'.
  8638. for _am_tool in $_am_tools
  8639. do
  8640. case $_am_tool in
  8641. gnutar)
  8642. for _am_tar in tar gnutar gtar;
  8643. do
  8644. AM_RUN_LOG([$_am_tar --version]) && break
  8645. done
  8646. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8647. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8648. am__untar="$_am_tar -xf -"
  8649. ;;
  8650. plaintar)
  8651. # Must skip GNU tar: if it does not support --format= it doesn't create
  8652. # ustar tarball either.
  8653. (tar --version) >/dev/null 2>&1 && continue
  8654. am__tar='tar chf - "$$tardir"'
  8655. am__tar_='tar chf - "$tardir"'
  8656. am__untar='tar xf -'
  8657. ;;
  8658. pax)
  8659. am__tar='pax -L -x $1 -w "$$tardir"'
  8660. am__tar_='pax -L -x $1 -w "$tardir"'
  8661. am__untar='pax -r'
  8662. ;;
  8663. cpio)
  8664. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8665. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8666. am__untar='cpio -i -H $1 -d'
  8667. ;;
  8668. none)
  8669. am__tar=false
  8670. am__tar_=false
  8671. am__untar=false
  8672. ;;
  8673. esac
  8674. # If the value was cached, stop now. We just wanted to have am__tar
  8675. # and am__untar set.
  8676. test -n "${am_cv_prog_tar_$1}" && break
  8677. # tar/untar a dummy directory, and stop if the command works
  8678. rm -rf conftest.dir
  8679. mkdir conftest.dir
  8680. echo GrepMe > conftest.dir/file
  8681. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8682. rm -rf conftest.dir
  8683. if test -s conftest.tar; then
  8684. AM_RUN_LOG([$am__untar <conftest.tar])
  8685. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8686. fi
  8687. done
  8688. rm -rf conftest.dir
  8689. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8690. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8691. AC_SUBST([am__tar])
  8692. AC_SUBST([am__untar])
  8693. ]) # _AM_PROG_TAR