aclocal.m4 310 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939
  1. # generated automatically by aclocal 1.11 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  14. [m4_warning([this file was generated for autoconf 2.63.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. # 2006, 2007, 2008 Free Software Foundation, Inc.
  22. # Written by Gordon Matzigkeit, 1996
  23. #
  24. # This file is free software; the Free Software Foundation gives
  25. # unlimited permission to copy and/or distribute it, with or without
  26. # modifications, as long as this notice is preserved.
  27. m4_define([_LT_COPYING], [dnl
  28. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  29. # 2006, 2007, 2008 Free Software Foundation, Inc.
  30. # Written by Gordon Matzigkeit, 1996
  31. #
  32. # This file is part of GNU Libtool.
  33. #
  34. # GNU Libtool is free software; you can redistribute it and/or
  35. # modify it under the terms of the GNU General Public License as
  36. # published by the Free Software Foundation; either version 2 of
  37. # the License, or (at your option) any later version.
  38. #
  39. # As a special exception to the GNU General Public License,
  40. # if you distribute this file as part of a program or library that
  41. # is built using GNU Libtool, you may include this file under the
  42. # same distribution terms that you use for the rest of that program.
  43. #
  44. # GNU Libtool is distributed in the hope that it will be useful,
  45. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  46. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  47. # GNU General Public License for more details.
  48. #
  49. # You should have received a copy of the GNU General Public License
  50. # along with GNU Libtool; see the file COPYING. If not, a copy
  51. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  52. # obtained by writing to the Free Software Foundation, Inc.,
  53. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  54. ])
  55. # serial 56 LT_INIT
  56. # LT_PREREQ(VERSION)
  57. # ------------------
  58. # Complain and exit if this libtool version is less that VERSION.
  59. m4_defun([LT_PREREQ],
  60. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  61. [m4_default([$3],
  62. [m4_fatal([Libtool version $1 or higher is required],
  63. 63)])],
  64. [$2])])
  65. # _LT_CHECK_BUILDDIR
  66. # ------------------
  67. # Complain if the absolute build directory name contains unusual characters
  68. m4_defun([_LT_CHECK_BUILDDIR],
  69. [case `pwd` in
  70. *\ * | *\ *)
  71. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  72. esac
  73. ])
  74. # LT_INIT([OPTIONS])
  75. # ------------------
  76. AC_DEFUN([LT_INIT],
  77. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  78. AC_BEFORE([$0], [LT_LANG])dnl
  79. AC_BEFORE([$0], [LT_OUTPUT])dnl
  80. AC_BEFORE([$0], [LTDL_INIT])dnl
  81. m4_require([_LT_CHECK_BUILDDIR])dnl
  82. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  83. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  84. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  85. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  86. dnl unless we require an AC_DEFUNed macro:
  87. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  88. AC_REQUIRE([LTSUGAR_VERSION])dnl
  89. AC_REQUIRE([LTVERSION_VERSION])dnl
  90. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  91. m4_require([_LT_PROG_LTMAIN])dnl
  92. dnl Parse OPTIONS
  93. _LT_SET_OPTIONS([$0], [$1])
  94. # This can be used to rebuild libtool when needed
  95. LIBTOOL_DEPS="$ltmain"
  96. # Always use our own libtool.
  97. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  98. AC_SUBST(LIBTOOL)dnl
  99. _LT_SETUP
  100. # Only expand once:
  101. m4_define([LT_INIT])
  102. ])# LT_INIT
  103. # Old names:
  104. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  105. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  106. dnl aclocal-1.4 backwards compatibility:
  107. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  108. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  109. # _LT_CC_BASENAME(CC)
  110. # -------------------
  111. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  112. m4_defun([_LT_CC_BASENAME],
  113. [for cc_temp in $1""; do
  114. case $cc_temp in
  115. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  116. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  117. \-*) ;;
  118. *) break;;
  119. esac
  120. done
  121. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  122. ])
  123. # _LT_FILEUTILS_DEFAULTS
  124. # ----------------------
  125. # It is okay to use these file commands and assume they have been set
  126. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  127. m4_defun([_LT_FILEUTILS_DEFAULTS],
  128. [: ${CP="cp -f"}
  129. : ${MV="mv -f"}
  130. : ${RM="rm -f"}
  131. ])# _LT_FILEUTILS_DEFAULTS
  132. # _LT_SETUP
  133. # ---------
  134. m4_defun([_LT_SETUP],
  135. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  136. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  137. _LT_DECL([], [host_alias], [0], [The host system])dnl
  138. _LT_DECL([], [host], [0])dnl
  139. _LT_DECL([], [host_os], [0])dnl
  140. dnl
  141. _LT_DECL([], [build_alias], [0], [The build system])dnl
  142. _LT_DECL([], [build], [0])dnl
  143. _LT_DECL([], [build_os], [0])dnl
  144. dnl
  145. AC_REQUIRE([AC_PROG_CC])dnl
  146. AC_REQUIRE([LT_PATH_LD])dnl
  147. AC_REQUIRE([LT_PATH_NM])dnl
  148. dnl
  149. AC_REQUIRE([AC_PROG_LN_S])dnl
  150. test -z "$LN_S" && LN_S="ln -s"
  151. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  152. dnl
  153. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  154. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  155. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  156. dnl
  157. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  158. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  159. m4_require([_LT_CMD_RELOAD])dnl
  160. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  161. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  162. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  163. _LT_CONFIG_LIBTOOL_INIT([
  164. # See if we are running on zsh, and set the options which allow our
  165. # commands through without removal of \ escapes INIT.
  166. if test -n "\${ZSH_VERSION+set}" ; then
  167. setopt NO_GLOB_SUBST
  168. fi
  169. ])
  170. if test -n "${ZSH_VERSION+set}" ; then
  171. setopt NO_GLOB_SUBST
  172. fi
  173. _LT_CHECK_OBJDIR
  174. m4_require([_LT_TAG_COMPILER])dnl
  175. _LT_PROG_ECHO_BACKSLASH
  176. case $host_os in
  177. aix3*)
  178. # AIX sometimes has problems with the GCC collect2 program. For some
  179. # reason, if we set the COLLECT_NAMES environment variable, the problems
  180. # vanish in a puff of smoke.
  181. if test "X${COLLECT_NAMES+set}" != Xset; then
  182. COLLECT_NAMES=
  183. export COLLECT_NAMES
  184. fi
  185. ;;
  186. esac
  187. # Sed substitution that helps us do robust quoting. It backslashifies
  188. # metacharacters that are still active within double-quoted strings.
  189. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  190. # Same as above, but do not quote variable references.
  191. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  192. # Sed substitution to delay expansion of an escaped shell variable in a
  193. # double_quote_subst'ed string.
  194. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  195. # Sed substitution to delay expansion of an escaped single quote.
  196. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  197. # Sed substitution to avoid accidental globbing in evaled expressions
  198. no_glob_subst='s/\*/\\\*/g'
  199. # Global variables:
  200. ofile=libtool
  201. can_build_shared=yes
  202. # All known linkers require a `.a' archive for static linking (except MSVC,
  203. # which needs '.lib').
  204. libext=a
  205. with_gnu_ld="$lt_cv_prog_gnu_ld"
  206. old_CC="$CC"
  207. old_CFLAGS="$CFLAGS"
  208. # Set sane defaults for various variables
  209. test -z "$CC" && CC=cc
  210. test -z "$LTCC" && LTCC=$CC
  211. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  212. test -z "$LD" && LD=ld
  213. test -z "$ac_objext" && ac_objext=o
  214. _LT_CC_BASENAME([$compiler])
  215. # Only perform the check for file, if the check method requires it
  216. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  217. case $deplibs_check_method in
  218. file_magic*)
  219. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  220. _LT_PATH_MAGIC
  221. fi
  222. ;;
  223. esac
  224. # Use C for the default configuration in the libtool script
  225. LT_SUPPORTED_TAG([CC])
  226. _LT_LANG_C_CONFIG
  227. _LT_LANG_DEFAULT_CONFIG
  228. _LT_CONFIG_COMMANDS
  229. ])# _LT_SETUP
  230. # _LT_PROG_LTMAIN
  231. # ---------------
  232. # Note that this code is called both from `configure', and `config.status'
  233. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  234. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  235. # so we pass a copy along to make sure it has a sensible value anyway.
  236. m4_defun([_LT_PROG_LTMAIN],
  237. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  238. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  239. ltmain="$ac_aux_dir/ltmain.sh"
  240. ])# _LT_PROG_LTMAIN
  241. # So that we can recreate a full libtool script including additional
  242. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  243. # in macros and then make a single call at the end using the `libtool'
  244. # label.
  245. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  246. # ----------------------------------------
  247. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  248. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  249. [m4_ifval([$1],
  250. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  251. [$1
  252. ])])])
  253. # Initialize.
  254. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  255. # _LT_CONFIG_LIBTOOL([COMMANDS])
  256. # ------------------------------
  257. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  258. m4_define([_LT_CONFIG_LIBTOOL],
  259. [m4_ifval([$1],
  260. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  261. [$1
  262. ])])])
  263. # Initialize.
  264. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  265. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  266. # -----------------------------------------------------
  267. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  268. [_LT_CONFIG_LIBTOOL([$1])
  269. _LT_CONFIG_LIBTOOL_INIT([$2])
  270. ])
  271. # _LT_FORMAT_COMMENT([COMMENT])
  272. # -----------------------------
  273. # Add leading comment marks to the start of each line, and a trailing
  274. # full-stop to the whole comment if one is not present already.
  275. m4_define([_LT_FORMAT_COMMENT],
  276. [m4_ifval([$1], [
  277. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  278. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  279. )])
  280. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  281. # -------------------------------------------------------------------
  282. # CONFIGNAME is the name given to the value in the libtool script.
  283. # VARNAME is the (base) name used in the configure script.
  284. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  285. # VARNAME. Any other value will be used directly.
  286. m4_define([_LT_DECL],
  287. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  288. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  289. [m4_ifval([$1], [$1], [$2])])
  290. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  291. m4_ifval([$4],
  292. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  293. lt_dict_add_subkey([lt_decl_dict], [$2],
  294. [tagged?], [m4_ifval([$5], [yes], [no])])])
  295. ])
  296. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  297. # --------------------------------------------------------
  298. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  299. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  300. # ------------------------------------------------
  301. m4_define([lt_decl_tag_varnames],
  302. [_lt_decl_filter([tagged?], [yes], $@)])
  303. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  304. # ---------------------------------------------------------
  305. m4_define([_lt_decl_filter],
  306. [m4_case([$#],
  307. [0], [m4_fatal([$0: too few arguments: $#])],
  308. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  309. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  310. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  311. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  312. ])
  313. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  314. # --------------------------------------------------
  315. m4_define([lt_decl_quote_varnames],
  316. [_lt_decl_filter([value], [1], $@)])
  317. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  318. # ---------------------------------------------------
  319. m4_define([lt_decl_dquote_varnames],
  320. [_lt_decl_filter([value], [2], $@)])
  321. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  322. # ---------------------------------------------------
  323. m4_define([lt_decl_varnames_tagged],
  324. [m4_assert([$# <= 2])dnl
  325. _$0(m4_quote(m4_default([$1], [[, ]])),
  326. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  327. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  328. m4_define([_lt_decl_varnames_tagged],
  329. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  330. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  331. # ------------------------------------------------
  332. m4_define([lt_decl_all_varnames],
  333. [_$0(m4_quote(m4_default([$1], [[, ]])),
  334. m4_if([$2], [],
  335. m4_quote(lt_decl_varnames),
  336. m4_quote(m4_shift($@))))[]dnl
  337. ])
  338. m4_define([_lt_decl_all_varnames],
  339. [lt_join($@, lt_decl_varnames_tagged([$1],
  340. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  341. ])
  342. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  343. # ------------------------------------
  344. # Quote a variable value, and forward it to `config.status' so that its
  345. # declaration there will have the same value as in `configure'. VARNAME
  346. # must have a single quote delimited value for this to work.
  347. m4_define([_LT_CONFIG_STATUS_DECLARE],
  348. [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  349. # _LT_CONFIG_STATUS_DECLARATIONS
  350. # ------------------------------
  351. # We delimit libtool config variables with single quotes, so when
  352. # we write them to config.status, we have to be sure to quote all
  353. # embedded single quotes properly. In configure, this macro expands
  354. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  355. #
  356. # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  357. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  358. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  359. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  360. # _LT_LIBTOOL_TAGS
  361. # ----------------
  362. # Output comment and list of tags supported by the script
  363. m4_defun([_LT_LIBTOOL_TAGS],
  364. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  365. available_tags="_LT_TAGS"dnl
  366. ])
  367. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  368. # -----------------------------------
  369. # Extract the dictionary values for VARNAME (optionally with TAG) and
  370. # expand to a commented shell variable setting:
  371. #
  372. # # Some comment about what VAR is for.
  373. # visible_name=$lt_internal_name
  374. m4_define([_LT_LIBTOOL_DECLARE],
  375. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  376. [description])))[]dnl
  377. m4_pushdef([_libtool_name],
  378. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  379. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  380. [0], [_libtool_name=[$]$1],
  381. [1], [_libtool_name=$lt_[]$1],
  382. [2], [_libtool_name=$lt_[]$1],
  383. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  384. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  385. ])
  386. # _LT_LIBTOOL_CONFIG_VARS
  387. # -----------------------
  388. # Produce commented declarations of non-tagged libtool config variables
  389. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  390. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  391. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  392. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  393. [m4_foreach([_lt_var],
  394. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  395. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  396. # _LT_LIBTOOL_TAG_VARS(TAG)
  397. # -------------------------
  398. m4_define([_LT_LIBTOOL_TAG_VARS],
  399. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  400. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  401. # _LT_TAGVAR(VARNAME, [TAGNAME])
  402. # ------------------------------
  403. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  404. # _LT_CONFIG_COMMANDS
  405. # -------------------
  406. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  407. # variables for single and double quote escaping we saved from calls
  408. # to _LT_DECL, we can put quote escaped variables declarations
  409. # into `config.status', and then the shell code to quote escape them in
  410. # for loops in `config.status'. Finally, any additional code accumulated
  411. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  412. m4_defun([_LT_CONFIG_COMMANDS],
  413. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  414. dnl If the libtool generation code has been placed in $CONFIG_LT,
  415. dnl instead of duplicating it all over again into config.status,
  416. dnl then we will have config.status run $CONFIG_LT later, so it
  417. dnl needs to know what name is stored there:
  418. [AC_CONFIG_COMMANDS([libtool],
  419. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  420. dnl If the libtool generation code is destined for config.status,
  421. dnl expand the accumulated commands and init code now:
  422. [AC_CONFIG_COMMANDS([libtool],
  423. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  424. ])#_LT_CONFIG_COMMANDS
  425. # Initialize.
  426. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  427. [
  428. # The HP-UX ksh and POSIX shell print the target directory to stdout
  429. # if CDPATH is set.
  430. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  431. sed_quote_subst='$sed_quote_subst'
  432. double_quote_subst='$double_quote_subst'
  433. delay_variable_subst='$delay_variable_subst'
  434. _LT_CONFIG_STATUS_DECLARATIONS
  435. LTCC='$LTCC'
  436. LTCFLAGS='$LTCFLAGS'
  437. compiler='$compiler_DEFAULT'
  438. # Quote evaled strings.
  439. for var in lt_decl_all_varnames([[ \
  440. ]], lt_decl_quote_varnames); do
  441. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  442. *[[\\\\\\\`\\"\\\$]]*)
  443. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  444. ;;
  445. *)
  446. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  447. ;;
  448. esac
  449. done
  450. # Double-quote double-evaled strings.
  451. for var in lt_decl_all_varnames([[ \
  452. ]], lt_decl_dquote_varnames); do
  453. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  454. *[[\\\\\\\`\\"\\\$]]*)
  455. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  456. ;;
  457. *)
  458. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  459. ;;
  460. esac
  461. done
  462. # Fix-up fallback echo if it was mangled by the above quoting rules.
  463. case \$lt_ECHO in
  464. *'\\\[$]0 --fallback-echo"')dnl "
  465. lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  466. ;;
  467. esac
  468. _LT_OUTPUT_LIBTOOL_INIT
  469. ])
  470. # LT_OUTPUT
  471. # ---------
  472. # This macro allows early generation of the libtool script (before
  473. # AC_OUTPUT is called), incase it is used in configure for compilation
  474. # tests.
  475. AC_DEFUN([LT_OUTPUT],
  476. [: ${CONFIG_LT=./config.lt}
  477. AC_MSG_NOTICE([creating $CONFIG_LT])
  478. cat >"$CONFIG_LT" <<_LTEOF
  479. #! $SHELL
  480. # Generated by $as_me.
  481. # Run this file to recreate a libtool stub with the current configuration.
  482. lt_cl_silent=false
  483. SHELL=\${CONFIG_SHELL-$SHELL}
  484. _LTEOF
  485. cat >>"$CONFIG_LT" <<\_LTEOF
  486. AS_SHELL_SANITIZE
  487. _AS_PREPARE
  488. exec AS_MESSAGE_FD>&1
  489. exec AS_MESSAGE_LOG_FD>>config.log
  490. {
  491. echo
  492. AS_BOX([Running $as_me.])
  493. } >&AS_MESSAGE_LOG_FD
  494. lt_cl_help="\
  495. \`$as_me' creates a local libtool stub from the current configuration,
  496. for use in further configure time tests before the real libtool is
  497. generated.
  498. Usage: $[0] [[OPTIONS]]
  499. -h, --help print this help, then exit
  500. -V, --version print version number, then exit
  501. -q, --quiet do not print progress messages
  502. -d, --debug don't remove temporary files
  503. Report bugs to <bug-libtool@gnu.org>."
  504. lt_cl_version="\
  505. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  506. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  507. configured by $[0], generated by m4_PACKAGE_STRING.
  508. Copyright (C) 2008 Free Software Foundation, Inc.
  509. This config.lt script is free software; the Free Software Foundation
  510. gives unlimited permision to copy, distribute and modify it."
  511. while test $[#] != 0
  512. do
  513. case $[1] in
  514. --version | --v* | -V )
  515. echo "$lt_cl_version"; exit 0 ;;
  516. --help | --h* | -h )
  517. echo "$lt_cl_help"; exit 0 ;;
  518. --debug | --d* | -d )
  519. debug=: ;;
  520. --quiet | --q* | --silent | --s* | -q )
  521. lt_cl_silent=: ;;
  522. -*) AC_MSG_ERROR([unrecognized option: $[1]
  523. Try \`$[0] --help' for more information.]) ;;
  524. *) AC_MSG_ERROR([unrecognized argument: $[1]
  525. Try \`$[0] --help' for more information.]) ;;
  526. esac
  527. shift
  528. done
  529. if $lt_cl_silent; then
  530. exec AS_MESSAGE_FD>/dev/null
  531. fi
  532. _LTEOF
  533. cat >>"$CONFIG_LT" <<_LTEOF
  534. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  535. _LTEOF
  536. cat >>"$CONFIG_LT" <<\_LTEOF
  537. AC_MSG_NOTICE([creating $ofile])
  538. _LT_OUTPUT_LIBTOOL_COMMANDS
  539. AS_EXIT(0)
  540. _LTEOF
  541. chmod +x "$CONFIG_LT"
  542. # configure is writing to config.log, but config.lt does its own redirection,
  543. # appending to config.log, which fails on DOS, as config.log is still kept
  544. # open by configure. Here we exec the FD to /dev/null, effectively closing
  545. # config.log, so it can be properly (re)opened and appended to by config.lt.
  546. if test "$no_create" != yes; then
  547. lt_cl_success=:
  548. test "$silent" = yes &&
  549. lt_config_lt_args="$lt_config_lt_args --quiet"
  550. exec AS_MESSAGE_LOG_FD>/dev/null
  551. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  552. exec AS_MESSAGE_LOG_FD>>config.log
  553. $lt_cl_success || AS_EXIT(1)
  554. fi
  555. ])# LT_OUTPUT
  556. # _LT_CONFIG(TAG)
  557. # ---------------
  558. # If TAG is the built-in tag, create an initial libtool script with a
  559. # default configuration from the untagged config vars. Otherwise add code
  560. # to config.status for appending the configuration named by TAG from the
  561. # matching tagged config vars.
  562. m4_defun([_LT_CONFIG],
  563. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  564. _LT_CONFIG_SAVE_COMMANDS([
  565. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  566. m4_if(_LT_TAG, [C], [
  567. # See if we are running on zsh, and set the options which allow our
  568. # commands through without removal of \ escapes.
  569. if test -n "${ZSH_VERSION+set}" ; then
  570. setopt NO_GLOB_SUBST
  571. fi
  572. cfgfile="${ofile}T"
  573. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  574. $RM "$cfgfile"
  575. cat <<_LT_EOF >> "$cfgfile"
  576. #! $SHELL
  577. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  578. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  579. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  580. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  581. #
  582. _LT_COPYING
  583. _LT_LIBTOOL_TAGS
  584. # ### BEGIN LIBTOOL CONFIG
  585. _LT_LIBTOOL_CONFIG_VARS
  586. _LT_LIBTOOL_TAG_VARS
  587. # ### END LIBTOOL CONFIG
  588. _LT_EOF
  589. case $host_os in
  590. aix3*)
  591. cat <<\_LT_EOF >> "$cfgfile"
  592. # AIX sometimes has problems with the GCC collect2 program. For some
  593. # reason, if we set the COLLECT_NAMES environment variable, the problems
  594. # vanish in a puff of smoke.
  595. if test "X${COLLECT_NAMES+set}" != Xset; then
  596. COLLECT_NAMES=
  597. export COLLECT_NAMES
  598. fi
  599. _LT_EOF
  600. ;;
  601. esac
  602. _LT_PROG_LTMAIN
  603. # We use sed instead of cat because bash on DJGPP gets confused if
  604. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  605. # text mode, it properly converts lines to CR/LF. This bash problem
  606. # is reportedly fixed, but why not run on old versions too?
  607. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  608. || (rm -f "$cfgfile"; exit 1)
  609. _LT_PROG_XSI_SHELLFNS
  610. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  611. || (rm -f "$cfgfile"; exit 1)
  612. mv -f "$cfgfile" "$ofile" ||
  613. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  614. chmod +x "$ofile"
  615. ],
  616. [cat <<_LT_EOF >> "$ofile"
  617. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  618. dnl in a comment (ie after a #).
  619. # ### BEGIN LIBTOOL TAG CONFIG: $1
  620. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  621. # ### END LIBTOOL TAG CONFIG: $1
  622. _LT_EOF
  623. ])dnl /m4_if
  624. ],
  625. [m4_if([$1], [], [
  626. PACKAGE='$PACKAGE'
  627. VERSION='$VERSION'
  628. TIMESTAMP='$TIMESTAMP'
  629. RM='$RM'
  630. ofile='$ofile'], [])
  631. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  632. ])# _LT_CONFIG
  633. # LT_SUPPORTED_TAG(TAG)
  634. # ---------------------
  635. # Trace this macro to discover what tags are supported by the libtool
  636. # --tag option, using:
  637. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  638. AC_DEFUN([LT_SUPPORTED_TAG], [])
  639. # C support is built-in for now
  640. m4_define([_LT_LANG_C_enabled], [])
  641. m4_define([_LT_TAGS], [])
  642. # LT_LANG(LANG)
  643. # -------------
  644. # Enable libtool support for the given language if not already enabled.
  645. AC_DEFUN([LT_LANG],
  646. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  647. m4_case([$1],
  648. [C], [_LT_LANG(C)],
  649. [C++], [_LT_LANG(CXX)],
  650. [Java], [_LT_LANG(GCJ)],
  651. [Fortran 77], [_LT_LANG(F77)],
  652. [Fortran], [_LT_LANG(FC)],
  653. [Windows Resource], [_LT_LANG(RC)],
  654. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  655. [_LT_LANG($1)],
  656. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  657. ])# LT_LANG
  658. # _LT_LANG(LANGNAME)
  659. # ------------------
  660. m4_defun([_LT_LANG],
  661. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  662. [LT_SUPPORTED_TAG([$1])dnl
  663. m4_append([_LT_TAGS], [$1 ])dnl
  664. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  665. _LT_LANG_$1_CONFIG($1)])dnl
  666. ])# _LT_LANG
  667. # _LT_LANG_DEFAULT_CONFIG
  668. # -----------------------
  669. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  670. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  671. [LT_LANG(CXX)],
  672. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  673. AC_PROVIDE_IFELSE([AC_PROG_F77],
  674. [LT_LANG(F77)],
  675. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  676. AC_PROVIDE_IFELSE([AC_PROG_FC],
  677. [LT_LANG(FC)],
  678. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  679. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  680. dnl pulling things in needlessly.
  681. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  682. [LT_LANG(GCJ)],
  683. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  684. [LT_LANG(GCJ)],
  685. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  686. [LT_LANG(GCJ)],
  687. [m4_ifdef([AC_PROG_GCJ],
  688. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  689. m4_ifdef([A][M_PROG_GCJ],
  690. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  691. m4_ifdef([LT_PROG_GCJ],
  692. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  693. AC_PROVIDE_IFELSE([LT_PROG_RC],
  694. [LT_LANG(RC)],
  695. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  696. ])# _LT_LANG_DEFAULT_CONFIG
  697. # Obsolete macros:
  698. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  699. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  700. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  701. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  702. dnl aclocal-1.4 backwards compatibility:
  703. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  704. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  705. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  706. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  707. # _LT_TAG_COMPILER
  708. # ----------------
  709. m4_defun([_LT_TAG_COMPILER],
  710. [AC_REQUIRE([AC_PROG_CC])dnl
  711. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  712. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  713. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  714. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  715. # If no C compiler was specified, use CC.
  716. LTCC=${LTCC-"$CC"}
  717. # If no C compiler flags were specified, use CFLAGS.
  718. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  719. # Allow CC to be a program name with arguments.
  720. compiler=$CC
  721. ])# _LT_TAG_COMPILER
  722. # _LT_COMPILER_BOILERPLATE
  723. # ------------------------
  724. # Check for compiler boilerplate output or warnings with
  725. # the simple compiler test code.
  726. m4_defun([_LT_COMPILER_BOILERPLATE],
  727. [m4_require([_LT_DECL_SED])dnl
  728. ac_outfile=conftest.$ac_objext
  729. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  730. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  731. _lt_compiler_boilerplate=`cat conftest.err`
  732. $RM conftest*
  733. ])# _LT_COMPILER_BOILERPLATE
  734. # _LT_LINKER_BOILERPLATE
  735. # ----------------------
  736. # Check for linker boilerplate output or warnings with
  737. # the simple link test code.
  738. m4_defun([_LT_LINKER_BOILERPLATE],
  739. [m4_require([_LT_DECL_SED])dnl
  740. ac_outfile=conftest.$ac_objext
  741. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  743. _lt_linker_boilerplate=`cat conftest.err`
  744. $RM -r conftest*
  745. ])# _LT_LINKER_BOILERPLATE
  746. # _LT_REQUIRED_DARWIN_CHECKS
  747. # -------------------------
  748. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  749. case $host_os in
  750. rhapsody* | darwin*)
  751. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  752. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  753. AC_CHECK_TOOL([LIPO], [lipo], [:])
  754. AC_CHECK_TOOL([OTOOL], [otool], [:])
  755. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  756. _LT_DECL([], [DSYMUTIL], [1],
  757. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  758. _LT_DECL([], [NMEDIT], [1],
  759. [Tool to change global to local symbols on Mac OS X])
  760. _LT_DECL([], [LIPO], [1],
  761. [Tool to manipulate fat objects and archives on Mac OS X])
  762. _LT_DECL([], [OTOOL], [1],
  763. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  764. _LT_DECL([], [OTOOL64], [1],
  765. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  766. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  767. [lt_cv_apple_cc_single_mod=no
  768. if test -z "${LT_MULTI_MODULE}"; then
  769. # By default we will add the -single_module flag. You can override
  770. # by either setting the environment variable LT_MULTI_MODULE
  771. # non-empty at configure time, or by adding -multi_module to the
  772. # link flags.
  773. rm -rf libconftest.dylib*
  774. echo "int foo(void){return 1;}" > conftest.c
  775. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  776. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  777. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  778. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  779. _lt_result=$?
  780. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  781. lt_cv_apple_cc_single_mod=yes
  782. else
  783. cat conftest.err >&AS_MESSAGE_LOG_FD
  784. fi
  785. rm -rf libconftest.dylib*
  786. rm -f conftest.*
  787. fi])
  788. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  789. [lt_cv_ld_exported_symbols_list],
  790. [lt_cv_ld_exported_symbols_list=no
  791. save_LDFLAGS=$LDFLAGS
  792. echo "_main" > conftest.sym
  793. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  794. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  795. [lt_cv_ld_exported_symbols_list=yes],
  796. [lt_cv_ld_exported_symbols_list=no])
  797. LDFLAGS="$save_LDFLAGS"
  798. ])
  799. case $host_os in
  800. rhapsody* | darwin1.[[012]])
  801. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  802. darwin1.*)
  803. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  804. darwin*) # darwin 5.x on
  805. # if running on 10.5 or later, the deployment target defaults
  806. # to the OS version, if on x86, and 10.4, the deployment
  807. # target defaults to 10.4. Don't you love it?
  808. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  809. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  810. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  811. 10.[[012]]*)
  812. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  813. 10.*)
  814. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  815. esac
  816. ;;
  817. esac
  818. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  819. _lt_dar_single_mod='$single_module'
  820. fi
  821. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  822. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  823. else
  824. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  825. fi
  826. if test "$DSYMUTIL" != ":"; then
  827. _lt_dsymutil='~$DSYMUTIL $lib || :'
  828. else
  829. _lt_dsymutil=
  830. fi
  831. ;;
  832. esac
  833. ])
  834. # _LT_DARWIN_LINKER_FEATURES
  835. # --------------------------
  836. # Checks for linker and compiler features on darwin
  837. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  838. [
  839. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  840. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  841. _LT_TAGVAR(hardcode_direct, $1)=no
  842. _LT_TAGVAR(hardcode_automatic, $1)=yes
  843. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  844. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  845. _LT_TAGVAR(link_all_deplibs, $1)=yes
  846. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  847. case $cc_basename in
  848. ifort*) _lt_dar_can_shared=yes ;;
  849. *) _lt_dar_can_shared=$GCC ;;
  850. esac
  851. if test "$_lt_dar_can_shared" = "yes"; then
  852. output_verbose_link_cmd=echo
  853. _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}"
  854. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  855. _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}"
  856. _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}"
  857. m4_if([$1], [CXX],
  858. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  859. _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}"
  860. _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}"
  861. fi
  862. ],[])
  863. else
  864. _LT_TAGVAR(ld_shlibs, $1)=no
  865. fi
  866. ])
  867. # _LT_SYS_MODULE_PATH_AIX
  868. # -----------------------
  869. # Links a minimal program and checks the executable
  870. # for the system default hardcoded library path. In most cases,
  871. # this is /usr/lib:/lib, but when the MPI compilers are used
  872. # the location of the communication and MPI libs are included too.
  873. # If we don't find anything, use the default library path according
  874. # to the aix ld manual.
  875. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  876. [m4_require([_LT_DECL_SED])dnl
  877. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  878. lt_aix_libpath_sed='
  879. /Import File Strings/,/^$/ {
  880. /^0/ {
  881. s/^0 *\(.*\)$/\1/
  882. p
  883. }
  884. }'
  885. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  886. # Check for a 64-bit object if we didn't find anything.
  887. if test -z "$aix_libpath"; then
  888. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  889. fi],[])
  890. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  891. ])# _LT_SYS_MODULE_PATH_AIX
  892. # _LT_SHELL_INIT(ARG)
  893. # -------------------
  894. m4_define([_LT_SHELL_INIT],
  895. [ifdef([AC_DIVERSION_NOTICE],
  896. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  897. [AC_DIVERT_PUSH(NOTICE)])
  898. $1
  899. AC_DIVERT_POP
  900. ])# _LT_SHELL_INIT
  901. # _LT_PROG_ECHO_BACKSLASH
  902. # -----------------------
  903. # Add some code to the start of the generated configure script which
  904. # will find an echo command which doesn't interpret backslashes.
  905. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  906. [_LT_SHELL_INIT([
  907. # Check that we are running under the correct shell.
  908. SHELL=${CONFIG_SHELL-/bin/sh}
  909. case X$lt_ECHO in
  910. X*--fallback-echo)
  911. # Remove one level of quotation (which was required for Make).
  912. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  913. ;;
  914. esac
  915. ECHO=${lt_ECHO-echo}
  916. if test "X[$]1" = X--no-reexec; then
  917. # Discard the --no-reexec flag, and continue.
  918. shift
  919. elif test "X[$]1" = X--fallback-echo; then
  920. # Avoid inline document here, it may be left over
  921. :
  922. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  923. # Yippee, $ECHO works!
  924. :
  925. else
  926. # Restart under the correct shell.
  927. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  928. fi
  929. if test "X[$]1" = X--fallback-echo; then
  930. # used as fallback echo
  931. shift
  932. cat <<_LT_EOF
  933. [$]*
  934. _LT_EOF
  935. exit 0
  936. fi
  937. # The HP-UX ksh and POSIX shell print the target directory to stdout
  938. # if CDPATH is set.
  939. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  940. if test -z "$lt_ECHO"; then
  941. if test "X${echo_test_string+set}" != Xset; then
  942. # find a string as large as possible, as long as the shell can cope with it
  943. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  944. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  945. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  946. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  947. then
  948. break
  949. fi
  950. done
  951. fi
  952. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  953. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  954. test "X$echo_testing_string" = "X$echo_test_string"; then
  955. :
  956. else
  957. # The Solaris, AIX, and Digital Unix default echo programs unquote
  958. # backslashes. This makes it impossible to quote backslashes using
  959. # echo "$something" | sed 's/\\/\\\\/g'
  960. #
  961. # So, first we look for a working echo in the user's PATH.
  962. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  963. for dir in $PATH /usr/ucb; do
  964. IFS="$lt_save_ifs"
  965. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  966. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  967. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  968. test "X$echo_testing_string" = "X$echo_test_string"; then
  969. ECHO="$dir/echo"
  970. break
  971. fi
  972. done
  973. IFS="$lt_save_ifs"
  974. if test "X$ECHO" = Xecho; then
  975. # We didn't find a better echo, so look for alternatives.
  976. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  977. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  978. test "X$echo_testing_string" = "X$echo_test_string"; then
  979. # This shell has a builtin print -r that does the trick.
  980. ECHO='print -r'
  981. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  982. test "X$CONFIG_SHELL" != X/bin/ksh; then
  983. # If we have ksh, try running configure again with it.
  984. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  985. export ORIGINAL_CONFIG_SHELL
  986. CONFIG_SHELL=/bin/ksh
  987. export CONFIG_SHELL
  988. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  989. else
  990. # Try using printf.
  991. ECHO='printf %s\n'
  992. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  993. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  994. test "X$echo_testing_string" = "X$echo_test_string"; then
  995. # Cool, printf works
  996. :
  997. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  998. test "X$echo_testing_string" = 'X\t' &&
  999. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1000. test "X$echo_testing_string" = "X$echo_test_string"; then
  1001. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1002. export CONFIG_SHELL
  1003. SHELL="$CONFIG_SHELL"
  1004. export SHELL
  1005. ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1006. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1007. test "X$echo_testing_string" = 'X\t' &&
  1008. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1009. test "X$echo_testing_string" = "X$echo_test_string"; then
  1010. ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1011. else
  1012. # maybe with a smaller string...
  1013. prev=:
  1014. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1015. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1016. then
  1017. break
  1018. fi
  1019. prev="$cmd"
  1020. done
  1021. if test "$prev" != 'sed 50q "[$]0"'; then
  1022. echo_test_string=`eval $prev`
  1023. export echo_test_string
  1024. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1025. else
  1026. # Oops. We lost completely, so just stick with echo.
  1027. ECHO=echo
  1028. fi
  1029. fi
  1030. fi
  1031. fi
  1032. fi
  1033. fi
  1034. # Copy echo and quote the copy suitably for passing to libtool from
  1035. # the Makefile, instead of quoting the original, which is used later.
  1036. lt_ECHO=$ECHO
  1037. if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1038. lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1039. fi
  1040. AC_SUBST(lt_ECHO)
  1041. ])
  1042. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1043. _LT_DECL([], [ECHO], [1],
  1044. [An echo program that does not interpret backslashes])
  1045. ])# _LT_PROG_ECHO_BACKSLASH
  1046. # _LT_ENABLE_LOCK
  1047. # ---------------
  1048. m4_defun([_LT_ENABLE_LOCK],
  1049. [AC_ARG_ENABLE([libtool-lock],
  1050. [AS_HELP_STRING([--disable-libtool-lock],
  1051. [avoid locking (might break parallel builds)])])
  1052. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1053. # Some flags need to be propagated to the compiler or linker for good
  1054. # libtool support.
  1055. case $host in
  1056. ia64-*-hpux*)
  1057. # Find out which ABI we are using.
  1058. echo 'int i;' > conftest.$ac_ext
  1059. if AC_TRY_EVAL(ac_compile); then
  1060. case `/usr/bin/file conftest.$ac_objext` in
  1061. *ELF-32*)
  1062. HPUX_IA64_MODE="32"
  1063. ;;
  1064. *ELF-64*)
  1065. HPUX_IA64_MODE="64"
  1066. ;;
  1067. esac
  1068. fi
  1069. rm -rf conftest*
  1070. ;;
  1071. *-*-irix6*)
  1072. # Find out which ABI we are using.
  1073. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1074. if AC_TRY_EVAL(ac_compile); then
  1075. if test "$lt_cv_prog_gnu_ld" = yes; then
  1076. case `/usr/bin/file conftest.$ac_objext` in
  1077. *32-bit*)
  1078. LD="${LD-ld} -melf32bsmip"
  1079. ;;
  1080. *N32*)
  1081. LD="${LD-ld} -melf32bmipn32"
  1082. ;;
  1083. *64-bit*)
  1084. LD="${LD-ld} -melf64bmip"
  1085. ;;
  1086. esac
  1087. else
  1088. case `/usr/bin/file conftest.$ac_objext` in
  1089. *32-bit*)
  1090. LD="${LD-ld} -32"
  1091. ;;
  1092. *N32*)
  1093. LD="${LD-ld} -n32"
  1094. ;;
  1095. *64-bit*)
  1096. LD="${LD-ld} -64"
  1097. ;;
  1098. esac
  1099. fi
  1100. fi
  1101. rm -rf conftest*
  1102. ;;
  1103. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1104. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1105. # Find out which ABI we are using.
  1106. echo 'int i;' > conftest.$ac_ext
  1107. if AC_TRY_EVAL(ac_compile); then
  1108. case `/usr/bin/file conftest.o` in
  1109. *32-bit*)
  1110. case $host in
  1111. x86_64-*kfreebsd*-gnu)
  1112. LD="${LD-ld} -m elf_i386_fbsd"
  1113. ;;
  1114. x86_64-*linux*)
  1115. LD="${LD-ld} -m elf_i386"
  1116. ;;
  1117. ppc64-*linux*|powerpc64-*linux*)
  1118. LD="${LD-ld} -m elf32ppclinux"
  1119. ;;
  1120. s390x-*linux*)
  1121. LD="${LD-ld} -m elf_s390"
  1122. ;;
  1123. sparc64-*linux*)
  1124. LD="${LD-ld} -m elf32_sparc"
  1125. ;;
  1126. esac
  1127. ;;
  1128. *64-bit*)
  1129. case $host in
  1130. x86_64-*kfreebsd*-gnu)
  1131. LD="${LD-ld} -m elf_x86_64_fbsd"
  1132. ;;
  1133. x86_64-*linux*)
  1134. LD="${LD-ld} -m elf_x86_64"
  1135. ;;
  1136. ppc*-*linux*|powerpc*-*linux*)
  1137. LD="${LD-ld} -m elf64ppc"
  1138. ;;
  1139. s390*-*linux*|s390*-*tpf*)
  1140. LD="${LD-ld} -m elf64_s390"
  1141. ;;
  1142. sparc*-*linux*)
  1143. LD="${LD-ld} -m elf64_sparc"
  1144. ;;
  1145. esac
  1146. ;;
  1147. esac
  1148. fi
  1149. rm -rf conftest*
  1150. ;;
  1151. *-*-sco3.2v5*)
  1152. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1153. SAVE_CFLAGS="$CFLAGS"
  1154. CFLAGS="$CFLAGS -belf"
  1155. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1156. [AC_LANG_PUSH(C)
  1157. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1158. AC_LANG_POP])
  1159. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1160. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1161. CFLAGS="$SAVE_CFLAGS"
  1162. fi
  1163. ;;
  1164. sparc*-*solaris*)
  1165. # Find out which ABI we are using.
  1166. echo 'int i;' > conftest.$ac_ext
  1167. if AC_TRY_EVAL(ac_compile); then
  1168. case `/usr/bin/file conftest.o` in
  1169. *64-bit*)
  1170. case $lt_cv_prog_gnu_ld in
  1171. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1172. *)
  1173. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1174. LD="${LD-ld} -64"
  1175. fi
  1176. ;;
  1177. esac
  1178. ;;
  1179. esac
  1180. fi
  1181. rm -rf conftest*
  1182. ;;
  1183. esac
  1184. need_locks="$enable_libtool_lock"
  1185. ])# _LT_ENABLE_LOCK
  1186. # _LT_CMD_OLD_ARCHIVE
  1187. # -------------------
  1188. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1189. [AC_CHECK_TOOL(AR, ar, false)
  1190. test -z "$AR" && AR=ar
  1191. test -z "$AR_FLAGS" && AR_FLAGS=cru
  1192. _LT_DECL([], [AR], [1], [The archiver])
  1193. _LT_DECL([], [AR_FLAGS], [1])
  1194. AC_CHECK_TOOL(STRIP, strip, :)
  1195. test -z "$STRIP" && STRIP=:
  1196. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1197. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1198. test -z "$RANLIB" && RANLIB=:
  1199. _LT_DECL([], [RANLIB], [1],
  1200. [Commands used to install an old-style archive])
  1201. # Determine commands to create old-style static archives.
  1202. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1203. old_postinstall_cmds='chmod 644 $oldlib'
  1204. old_postuninstall_cmds=
  1205. if test -n "$RANLIB"; then
  1206. case $host_os in
  1207. openbsd*)
  1208. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1209. ;;
  1210. *)
  1211. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1212. ;;
  1213. esac
  1214. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1215. fi
  1216. _LT_DECL([], [old_postinstall_cmds], [2])
  1217. _LT_DECL([], [old_postuninstall_cmds], [2])
  1218. _LT_TAGDECL([], [old_archive_cmds], [2],
  1219. [Commands used to build an old-style archive])
  1220. ])# _LT_CMD_OLD_ARCHIVE
  1221. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1222. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1223. # ----------------------------------------------------------------
  1224. # Check whether the given compiler option works
  1225. AC_DEFUN([_LT_COMPILER_OPTION],
  1226. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1227. m4_require([_LT_DECL_SED])dnl
  1228. AC_CACHE_CHECK([$1], [$2],
  1229. [$2=no
  1230. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1231. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1232. lt_compiler_flag="$3"
  1233. # Insert the option either (1) after the last *FLAGS variable, or
  1234. # (2) before a word containing "conftest.", or (3) at the end.
  1235. # Note that $ac_compile itself does not contain backslashes and begins
  1236. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1237. # The option is referenced via a variable to avoid confusing sed.
  1238. lt_compile=`echo "$ac_compile" | $SED \
  1239. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1240. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1241. -e 's:$: $lt_compiler_flag:'`
  1242. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1243. (eval "$lt_compile" 2>conftest.err)
  1244. ac_status=$?
  1245. cat conftest.err >&AS_MESSAGE_LOG_FD
  1246. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1247. if (exit $ac_status) && test -s "$ac_outfile"; then
  1248. # The compiler can only warn and ignore the option if not recognized
  1249. # So say no if there are warnings other than the usual output.
  1250. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1251. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1252. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1253. $2=yes
  1254. fi
  1255. fi
  1256. $RM conftest*
  1257. ])
  1258. if test x"[$]$2" = xyes; then
  1259. m4_if([$5], , :, [$5])
  1260. else
  1261. m4_if([$6], , :, [$6])
  1262. fi
  1263. ])# _LT_COMPILER_OPTION
  1264. # Old name:
  1265. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1266. dnl aclocal-1.4 backwards compatibility:
  1267. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1268. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1269. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1270. # ----------------------------------------------------
  1271. # Check whether the given linker option works
  1272. AC_DEFUN([_LT_LINKER_OPTION],
  1273. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1274. m4_require([_LT_DECL_SED])dnl
  1275. AC_CACHE_CHECK([$1], [$2],
  1276. [$2=no
  1277. save_LDFLAGS="$LDFLAGS"
  1278. LDFLAGS="$LDFLAGS $3"
  1279. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1280. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1281. # The linker can only warn and ignore the option if not recognized
  1282. # So say no if there are warnings
  1283. if test -s conftest.err; then
  1284. # Append any errors to the config.log.
  1285. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1286. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1287. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1288. if diff conftest.exp conftest.er2 >/dev/null; then
  1289. $2=yes
  1290. fi
  1291. else
  1292. $2=yes
  1293. fi
  1294. fi
  1295. $RM -r conftest*
  1296. LDFLAGS="$save_LDFLAGS"
  1297. ])
  1298. if test x"[$]$2" = xyes; then
  1299. m4_if([$4], , :, [$4])
  1300. else
  1301. m4_if([$5], , :, [$5])
  1302. fi
  1303. ])# _LT_LINKER_OPTION
  1304. # Old name:
  1305. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1306. dnl aclocal-1.4 backwards compatibility:
  1307. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1308. # LT_CMD_MAX_LEN
  1309. #---------------
  1310. AC_DEFUN([LT_CMD_MAX_LEN],
  1311. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1312. # find the maximum length of command line arguments
  1313. AC_MSG_CHECKING([the maximum length of command line arguments])
  1314. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1315. i=0
  1316. teststring="ABCD"
  1317. case $build_os in
  1318. msdosdjgpp*)
  1319. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1320. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1321. # during glob expansion). Even if it were fixed, the result of this
  1322. # check would be larger than it should be.
  1323. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1324. ;;
  1325. gnu*)
  1326. # Under GNU Hurd, this test is not required because there is
  1327. # no limit to the length of command line arguments.
  1328. # Libtool will interpret -1 as no limit whatsoever
  1329. lt_cv_sys_max_cmd_len=-1;
  1330. ;;
  1331. cygwin* | mingw* | cegcc*)
  1332. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1333. # about 5 minutes as the teststring grows exponentially.
  1334. # Worse, since 9x/ME are not pre-emptively multitasking,
  1335. # you end up with a "frozen" computer, even though with patience
  1336. # the test eventually succeeds (with a max line length of 256k).
  1337. # Instead, let's just punt: use the minimum linelength reported by
  1338. # all of the supported platforms: 8192 (on NT/2K/XP).
  1339. lt_cv_sys_max_cmd_len=8192;
  1340. ;;
  1341. amigaos*)
  1342. # On AmigaOS with pdksh, this test takes hours, literally.
  1343. # So we just punt and use a minimum line length of 8192.
  1344. lt_cv_sys_max_cmd_len=8192;
  1345. ;;
  1346. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1347. # This has been around since 386BSD, at least. Likely further.
  1348. if test -x /sbin/sysctl; then
  1349. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1350. elif test -x /usr/sbin/sysctl; then
  1351. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1352. else
  1353. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1354. fi
  1355. # And add a safety zone
  1356. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1357. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1358. ;;
  1359. interix*)
  1360. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1361. lt_cv_sys_max_cmd_len=196608
  1362. ;;
  1363. osf*)
  1364. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1365. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1366. # nice to cause kernel panics so lets avoid the loop below.
  1367. # First set a reasonable default.
  1368. lt_cv_sys_max_cmd_len=16384
  1369. #
  1370. if test -x /sbin/sysconfig; then
  1371. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1372. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1373. esac
  1374. fi
  1375. ;;
  1376. sco3.2v5*)
  1377. lt_cv_sys_max_cmd_len=102400
  1378. ;;
  1379. sysv5* | sco5v6* | sysv4.2uw2*)
  1380. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1381. if test -n "$kargmax"; then
  1382. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1383. else
  1384. lt_cv_sys_max_cmd_len=32768
  1385. fi
  1386. ;;
  1387. *)
  1388. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1389. if test -n "$lt_cv_sys_max_cmd_len"; then
  1390. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1391. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1392. else
  1393. # Make teststring a little bigger before we do anything with it.
  1394. # a 1K string should be a reasonable start.
  1395. for i in 1 2 3 4 5 6 7 8 ; do
  1396. teststring=$teststring$teststring
  1397. done
  1398. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1399. # If test is not a shell built-in, we'll probably end up computing a
  1400. # maximum length that is only half of the actual maximum length, but
  1401. # we can't tell.
  1402. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1403. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1404. test $i != 17 # 1/2 MB should be enough
  1405. do
  1406. i=`expr $i + 1`
  1407. teststring=$teststring$teststring
  1408. done
  1409. # Only check the string length outside the loop.
  1410. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1411. teststring=
  1412. # Add a significant safety factor because C++ compilers can tack on
  1413. # massive amounts of additional arguments before passing them to the
  1414. # linker. It appears as though 1/2 is a usable value.
  1415. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1416. fi
  1417. ;;
  1418. esac
  1419. ])
  1420. if test -n $lt_cv_sys_max_cmd_len ; then
  1421. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1422. else
  1423. AC_MSG_RESULT(none)
  1424. fi
  1425. max_cmd_len=$lt_cv_sys_max_cmd_len
  1426. _LT_DECL([], [max_cmd_len], [0],
  1427. [What is the maximum length of a command?])
  1428. ])# LT_CMD_MAX_LEN
  1429. # Old name:
  1430. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1431. dnl aclocal-1.4 backwards compatibility:
  1432. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1433. # _LT_HEADER_DLFCN
  1434. # ----------------
  1435. m4_defun([_LT_HEADER_DLFCN],
  1436. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1437. ])# _LT_HEADER_DLFCN
  1438. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1439. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1440. # ----------------------------------------------------------------
  1441. m4_defun([_LT_TRY_DLOPEN_SELF],
  1442. [m4_require([_LT_HEADER_DLFCN])dnl
  1443. if test "$cross_compiling" = yes; then :
  1444. [$4]
  1445. else
  1446. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1447. lt_status=$lt_dlunknown
  1448. cat > conftest.$ac_ext <<_LT_EOF
  1449. [#line __oline__ "configure"
  1450. #include "confdefs.h"
  1451. #if HAVE_DLFCN_H
  1452. #include <dlfcn.h>
  1453. #endif
  1454. #include <stdio.h>
  1455. #ifdef RTLD_GLOBAL
  1456. # define LT_DLGLOBAL RTLD_GLOBAL
  1457. #else
  1458. # ifdef DL_GLOBAL
  1459. # define LT_DLGLOBAL DL_GLOBAL
  1460. # else
  1461. # define LT_DLGLOBAL 0
  1462. # endif
  1463. #endif
  1464. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1465. find out it does not work in some platform. */
  1466. #ifndef LT_DLLAZY_OR_NOW
  1467. # ifdef RTLD_LAZY
  1468. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1469. # else
  1470. # ifdef DL_LAZY
  1471. # define LT_DLLAZY_OR_NOW DL_LAZY
  1472. # else
  1473. # ifdef RTLD_NOW
  1474. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1475. # else
  1476. # ifdef DL_NOW
  1477. # define LT_DLLAZY_OR_NOW DL_NOW
  1478. # else
  1479. # define LT_DLLAZY_OR_NOW 0
  1480. # endif
  1481. # endif
  1482. # endif
  1483. # endif
  1484. #endif
  1485. void fnord() { int i=42;}
  1486. int main ()
  1487. {
  1488. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1489. int status = $lt_dlunknown;
  1490. if (self)
  1491. {
  1492. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1493. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1494. /* dlclose (self); */
  1495. }
  1496. else
  1497. puts (dlerror ());
  1498. return status;
  1499. }]
  1500. _LT_EOF
  1501. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1502. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1503. lt_status=$?
  1504. case x$lt_status in
  1505. x$lt_dlno_uscore) $1 ;;
  1506. x$lt_dlneed_uscore) $2 ;;
  1507. x$lt_dlunknown|x*) $3 ;;
  1508. esac
  1509. else :
  1510. # compilation failed
  1511. $3
  1512. fi
  1513. fi
  1514. rm -fr conftest*
  1515. ])# _LT_TRY_DLOPEN_SELF
  1516. # LT_SYS_DLOPEN_SELF
  1517. # ------------------
  1518. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1519. [m4_require([_LT_HEADER_DLFCN])dnl
  1520. if test "x$enable_dlopen" != xyes; then
  1521. enable_dlopen=unknown
  1522. enable_dlopen_self=unknown
  1523. enable_dlopen_self_static=unknown
  1524. else
  1525. lt_cv_dlopen=no
  1526. lt_cv_dlopen_libs=
  1527. case $host_os in
  1528. beos*)
  1529. lt_cv_dlopen="load_add_on"
  1530. lt_cv_dlopen_libs=
  1531. lt_cv_dlopen_self=yes
  1532. ;;
  1533. mingw* | pw32* | cegcc*)
  1534. lt_cv_dlopen="LoadLibrary"
  1535. lt_cv_dlopen_libs=
  1536. ;;
  1537. cygwin*)
  1538. lt_cv_dlopen="dlopen"
  1539. lt_cv_dlopen_libs=
  1540. ;;
  1541. darwin*)
  1542. # if libdl is installed we need to link against it
  1543. AC_CHECK_LIB([dl], [dlopen],
  1544. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1545. lt_cv_dlopen="dyld"
  1546. lt_cv_dlopen_libs=
  1547. lt_cv_dlopen_self=yes
  1548. ])
  1549. ;;
  1550. *)
  1551. AC_CHECK_FUNC([shl_load],
  1552. [lt_cv_dlopen="shl_load"],
  1553. [AC_CHECK_LIB([dld], [shl_load],
  1554. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1555. [AC_CHECK_FUNC([dlopen],
  1556. [lt_cv_dlopen="dlopen"],
  1557. [AC_CHECK_LIB([dl], [dlopen],
  1558. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1559. [AC_CHECK_LIB([svld], [dlopen],
  1560. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1561. [AC_CHECK_LIB([dld], [dld_link],
  1562. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1563. ])
  1564. ])
  1565. ])
  1566. ])
  1567. ])
  1568. ;;
  1569. esac
  1570. if test "x$lt_cv_dlopen" != xno; then
  1571. enable_dlopen=yes
  1572. else
  1573. enable_dlopen=no
  1574. fi
  1575. case $lt_cv_dlopen in
  1576. dlopen)
  1577. save_CPPFLAGS="$CPPFLAGS"
  1578. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1579. save_LDFLAGS="$LDFLAGS"
  1580. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1581. save_LIBS="$LIBS"
  1582. LIBS="$lt_cv_dlopen_libs $LIBS"
  1583. AC_CACHE_CHECK([whether a program can dlopen itself],
  1584. lt_cv_dlopen_self, [dnl
  1585. _LT_TRY_DLOPEN_SELF(
  1586. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1587. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1588. ])
  1589. if test "x$lt_cv_dlopen_self" = xyes; then
  1590. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1591. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1592. lt_cv_dlopen_self_static, [dnl
  1593. _LT_TRY_DLOPEN_SELF(
  1594. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1595. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1596. ])
  1597. fi
  1598. CPPFLAGS="$save_CPPFLAGS"
  1599. LDFLAGS="$save_LDFLAGS"
  1600. LIBS="$save_LIBS"
  1601. ;;
  1602. esac
  1603. case $lt_cv_dlopen_self in
  1604. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1605. *) enable_dlopen_self=unknown ;;
  1606. esac
  1607. case $lt_cv_dlopen_self_static in
  1608. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1609. *) enable_dlopen_self_static=unknown ;;
  1610. esac
  1611. fi
  1612. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1613. [Whether dlopen is supported])
  1614. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1615. [Whether dlopen of programs is supported])
  1616. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1617. [Whether dlopen of statically linked programs is supported])
  1618. ])# LT_SYS_DLOPEN_SELF
  1619. # Old name:
  1620. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1621. dnl aclocal-1.4 backwards compatibility:
  1622. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1623. # _LT_COMPILER_C_O([TAGNAME])
  1624. # ---------------------------
  1625. # Check to see if options -c and -o are simultaneously supported by compiler.
  1626. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1627. m4_defun([_LT_COMPILER_C_O],
  1628. [m4_require([_LT_DECL_SED])dnl
  1629. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1630. m4_require([_LT_TAG_COMPILER])dnl
  1631. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1632. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1633. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1634. $RM -r conftest 2>/dev/null
  1635. mkdir conftest
  1636. cd conftest
  1637. mkdir out
  1638. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1639. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1640. # Insert the option either (1) after the last *FLAGS variable, or
  1641. # (2) before a word containing "conftest.", or (3) at the end.
  1642. # Note that $ac_compile itself does not contain backslashes and begins
  1643. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1644. lt_compile=`echo "$ac_compile" | $SED \
  1645. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1646. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1647. -e 's:$: $lt_compiler_flag:'`
  1648. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1649. (eval "$lt_compile" 2>out/conftest.err)
  1650. ac_status=$?
  1651. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1652. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1653. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1654. then
  1655. # The compiler can only warn and ignore the option if not recognized
  1656. # So say no if there are warnings
  1657. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1658. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1659. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1660. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1661. fi
  1662. fi
  1663. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1664. $RM conftest*
  1665. # SGI C++ compiler will create directory out/ii_files/ for
  1666. # template instantiation
  1667. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1668. $RM out/* && rmdir out
  1669. cd ..
  1670. $RM -r conftest
  1671. $RM conftest*
  1672. ])
  1673. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1674. [Does compiler simultaneously support -c and -o options?])
  1675. ])# _LT_COMPILER_C_O
  1676. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1677. # ----------------------------------
  1678. # Check to see if we can do hard links to lock some files if needed
  1679. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1680. [m4_require([_LT_ENABLE_LOCK])dnl
  1681. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1682. _LT_COMPILER_C_O([$1])
  1683. hard_links="nottested"
  1684. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1685. # do not overwrite the value of need_locks provided by the user
  1686. AC_MSG_CHECKING([if we can lock with hard links])
  1687. hard_links=yes
  1688. $RM conftest*
  1689. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1690. touch conftest.a
  1691. ln conftest.a conftest.b 2>&5 || hard_links=no
  1692. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1693. AC_MSG_RESULT([$hard_links])
  1694. if test "$hard_links" = no; then
  1695. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1696. need_locks=warn
  1697. fi
  1698. else
  1699. need_locks=no
  1700. fi
  1701. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1702. ])# _LT_COMPILER_FILE_LOCKS
  1703. # _LT_CHECK_OBJDIR
  1704. # ----------------
  1705. m4_defun([_LT_CHECK_OBJDIR],
  1706. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1707. [rm -f .libs 2>/dev/null
  1708. mkdir .libs 2>/dev/null
  1709. if test -d .libs; then
  1710. lt_cv_objdir=.libs
  1711. else
  1712. # MS-DOS does not allow filenames that begin with a dot.
  1713. lt_cv_objdir=_libs
  1714. fi
  1715. rmdir .libs 2>/dev/null])
  1716. objdir=$lt_cv_objdir
  1717. _LT_DECL([], [objdir], [0],
  1718. [The name of the directory that contains temporary libtool files])dnl
  1719. m4_pattern_allow([LT_OBJDIR])dnl
  1720. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1721. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1722. ])# _LT_CHECK_OBJDIR
  1723. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1724. # --------------------------------------
  1725. # Check hardcoding attributes.
  1726. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1727. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1728. _LT_TAGVAR(hardcode_action, $1)=
  1729. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1730. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1731. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1732. # We can hardcode non-existent directories.
  1733. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1734. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1735. # have to relink, otherwise we might link with an installed library
  1736. # when we should be linking with a yet-to-be-installed one
  1737. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1738. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1739. # Linking always hardcodes the temporary library directory.
  1740. _LT_TAGVAR(hardcode_action, $1)=relink
  1741. else
  1742. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1743. _LT_TAGVAR(hardcode_action, $1)=immediate
  1744. fi
  1745. else
  1746. # We cannot hardcode anything, or else we can only hardcode existing
  1747. # directories.
  1748. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1749. fi
  1750. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1751. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1752. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1753. # Fast installation is not supported
  1754. enable_fast_install=no
  1755. elif test "$shlibpath_overrides_runpath" = yes ||
  1756. test "$enable_shared" = no; then
  1757. # Fast installation is not necessary
  1758. enable_fast_install=needless
  1759. fi
  1760. _LT_TAGDECL([], [hardcode_action], [0],
  1761. [How to hardcode a shared library path into an executable])
  1762. ])# _LT_LINKER_HARDCODE_LIBPATH
  1763. # _LT_CMD_STRIPLIB
  1764. # ----------------
  1765. m4_defun([_LT_CMD_STRIPLIB],
  1766. [m4_require([_LT_DECL_EGREP])
  1767. striplib=
  1768. old_striplib=
  1769. AC_MSG_CHECKING([whether stripping libraries is possible])
  1770. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1771. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1772. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1773. AC_MSG_RESULT([yes])
  1774. else
  1775. # FIXME - insert some real tests, host_os isn't really good enough
  1776. case $host_os in
  1777. darwin*)
  1778. if test -n "$STRIP" ; then
  1779. striplib="$STRIP -x"
  1780. old_striplib="$STRIP -S"
  1781. AC_MSG_RESULT([yes])
  1782. else
  1783. AC_MSG_RESULT([no])
  1784. fi
  1785. ;;
  1786. *)
  1787. AC_MSG_RESULT([no])
  1788. ;;
  1789. esac
  1790. fi
  1791. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1792. _LT_DECL([], [striplib], [1])
  1793. ])# _LT_CMD_STRIPLIB
  1794. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1795. # -----------------------------
  1796. # PORTME Fill in your ld.so characteristics
  1797. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1798. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1799. m4_require([_LT_DECL_EGREP])dnl
  1800. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1801. m4_require([_LT_DECL_OBJDUMP])dnl
  1802. m4_require([_LT_DECL_SED])dnl
  1803. AC_MSG_CHECKING([dynamic linker characteristics])
  1804. m4_if([$1],
  1805. [], [
  1806. if test "$GCC" = yes; then
  1807. case $host_os in
  1808. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1809. *) lt_awk_arg="/^libraries:/" ;;
  1810. esac
  1811. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1812. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1813. # if the path contains ";" then we assume it to be the separator
  1814. # otherwise default to the standard path separator (i.e. ":") - it is
  1815. # assumed that no part of a normal pathname contains ";" but that should
  1816. # okay in the real world where ";" in dirpaths is itself problematic.
  1817. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1818. else
  1819. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1820. fi
  1821. # Ok, now we have the path, separated by spaces, we can step through it
  1822. # and add multilib dir if necessary.
  1823. lt_tmp_lt_search_path_spec=
  1824. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1825. for lt_sys_path in $lt_search_path_spec; do
  1826. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1827. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1828. else
  1829. test -d "$lt_sys_path" && \
  1830. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1831. fi
  1832. done
  1833. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1834. BEGIN {RS=" "; FS="/|\n";} {
  1835. lt_foo="";
  1836. lt_count=0;
  1837. for (lt_i = NF; lt_i > 0; lt_i--) {
  1838. if ($lt_i != "" && $lt_i != ".") {
  1839. if ($lt_i == "..") {
  1840. lt_count++;
  1841. } else {
  1842. if (lt_count == 0) {
  1843. lt_foo="/" $lt_i lt_foo;
  1844. } else {
  1845. lt_count--;
  1846. }
  1847. }
  1848. }
  1849. }
  1850. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1851. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1852. }'`
  1853. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1854. else
  1855. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1856. fi])
  1857. library_names_spec=
  1858. libname_spec='lib$name'
  1859. soname_spec=
  1860. shrext_cmds=".so"
  1861. postinstall_cmds=
  1862. postuninstall_cmds=
  1863. finish_cmds=
  1864. finish_eval=
  1865. shlibpath_var=
  1866. shlibpath_overrides_runpath=unknown
  1867. version_type=none
  1868. dynamic_linker="$host_os ld.so"
  1869. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1870. need_lib_prefix=unknown
  1871. hardcode_into_libs=no
  1872. # when you set need_version to no, make sure it does not cause -set_version
  1873. # flags to be left without arguments
  1874. need_version=unknown
  1875. case $host_os in
  1876. aix3*)
  1877. version_type=linux
  1878. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1879. shlibpath_var=LIBPATH
  1880. # AIX 3 has no versioning support, so we append a major version to the name.
  1881. soname_spec='${libname}${release}${shared_ext}$major'
  1882. ;;
  1883. aix[[4-9]]*)
  1884. version_type=linux
  1885. need_lib_prefix=no
  1886. need_version=no
  1887. hardcode_into_libs=yes
  1888. if test "$host_cpu" = ia64; then
  1889. # AIX 5 supports IA64
  1890. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1891. shlibpath_var=LD_LIBRARY_PATH
  1892. else
  1893. # With GCC up to 2.95.x, collect2 would create an import file
  1894. # for dependence libraries. The import file would start with
  1895. # the line `#! .'. This would cause the generated library to
  1896. # depend on `.', always an invalid library. This was fixed in
  1897. # development snapshots of GCC prior to 3.0.
  1898. case $host_os in
  1899. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1900. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1901. echo ' yes '
  1902. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  1903. :
  1904. else
  1905. can_build_shared=no
  1906. fi
  1907. ;;
  1908. esac
  1909. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1910. # soname into executable. Probably we can add versioning support to
  1911. # collect2, so additional links can be useful in future.
  1912. if test "$aix_use_runtimelinking" = yes; then
  1913. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1914. # instead of lib<name>.a to let people know that these are not
  1915. # typical AIX shared libraries.
  1916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1917. else
  1918. # We preserve .a as extension for shared libraries through AIX4.2
  1919. # and later when we are not doing run time linking.
  1920. library_names_spec='${libname}${release}.a $libname.a'
  1921. soname_spec='${libname}${release}${shared_ext}$major'
  1922. fi
  1923. shlibpath_var=LIBPATH
  1924. fi
  1925. ;;
  1926. amigaos*)
  1927. case $host_cpu in
  1928. powerpc)
  1929. # Since July 2007 AmigaOS4 officially supports .so libraries.
  1930. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  1931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1932. ;;
  1933. m68k)
  1934. library_names_spec='$libname.ixlibrary $libname.a'
  1935. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1936. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1937. ;;
  1938. esac
  1939. ;;
  1940. beos*)
  1941. library_names_spec='${libname}${shared_ext}'
  1942. dynamic_linker="$host_os ld.so"
  1943. shlibpath_var=LIBRARY_PATH
  1944. ;;
  1945. bsdi[[45]]*)
  1946. version_type=linux
  1947. need_version=no
  1948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1949. soname_spec='${libname}${release}${shared_ext}$major'
  1950. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1951. shlibpath_var=LD_LIBRARY_PATH
  1952. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1953. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1954. # the default ld.so.conf also contains /usr/contrib/lib and
  1955. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1956. # libtool to hard-code these into programs
  1957. ;;
  1958. cygwin* | mingw* | pw32* | cegcc*)
  1959. version_type=windows
  1960. shrext_cmds=".dll"
  1961. need_version=no
  1962. need_lib_prefix=no
  1963. case $GCC,$host_os in
  1964. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1965. library_names_spec='$libname.dll.a'
  1966. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1967. postinstall_cmds='base_file=`basename \${file}`~
  1968. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1969. dldir=$destdir/`dirname \$dlpath`~
  1970. test -d \$dldir || mkdir -p \$dldir~
  1971. $install_prog $dir/$dlname \$dldir/$dlname~
  1972. chmod a+x \$dldir/$dlname~
  1973. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  1974. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  1975. fi'
  1976. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1977. dlpath=$dir/\$dldll~
  1978. $RM \$dlpath'
  1979. shlibpath_overrides_runpath=yes
  1980. case $host_os in
  1981. cygwin*)
  1982. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1983. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1984. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1985. ;;
  1986. mingw* | cegcc*)
  1987. # MinGW DLLs use traditional 'lib' prefix
  1988. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1989. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1990. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1991. # It is most probably a Windows format PATH printed by
  1992. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1993. # path with ; separators, and with drive letters. We can handle the
  1994. # drive letters (cygwin fileutils understands them), so leave them,
  1995. # especially as we might pass files found there to a mingw objdump,
  1996. # which wouldn't understand a cygwinified path. Ahh.
  1997. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1998. else
  1999. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2000. fi
  2001. ;;
  2002. pw32*)
  2003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2004. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2005. ;;
  2006. esac
  2007. ;;
  2008. *)
  2009. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2010. ;;
  2011. esac
  2012. dynamic_linker='Win32 ld.exe'
  2013. # FIXME: first we should search . and the directory the executable is in
  2014. shlibpath_var=PATH
  2015. ;;
  2016. darwin* | rhapsody*)
  2017. dynamic_linker="$host_os dyld"
  2018. version_type=darwin
  2019. need_lib_prefix=no
  2020. need_version=no
  2021. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2022. soname_spec='${libname}${release}${major}$shared_ext'
  2023. shlibpath_overrides_runpath=yes
  2024. shlibpath_var=DYLD_LIBRARY_PATH
  2025. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2026. m4_if([$1], [],[
  2027. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2028. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2029. ;;
  2030. dgux*)
  2031. version_type=linux
  2032. need_lib_prefix=no
  2033. need_version=no
  2034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2035. soname_spec='${libname}${release}${shared_ext}$major'
  2036. shlibpath_var=LD_LIBRARY_PATH
  2037. ;;
  2038. freebsd1*)
  2039. dynamic_linker=no
  2040. ;;
  2041. freebsd* | dragonfly*)
  2042. # DragonFly does not have aout. When/if they implement a new
  2043. # versioning mechanism, adjust this.
  2044. if test -x /usr/bin/objformat; then
  2045. objformat=`/usr/bin/objformat`
  2046. else
  2047. case $host_os in
  2048. freebsd[[123]]*) objformat=aout ;;
  2049. *) objformat=elf ;;
  2050. esac
  2051. fi
  2052. version_type=freebsd-$objformat
  2053. case $version_type in
  2054. freebsd-elf*)
  2055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2056. need_version=no
  2057. need_lib_prefix=no
  2058. ;;
  2059. freebsd-*)
  2060. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2061. need_version=yes
  2062. ;;
  2063. esac
  2064. shlibpath_var=LD_LIBRARY_PATH
  2065. case $host_os in
  2066. freebsd2*)
  2067. shlibpath_overrides_runpath=yes
  2068. ;;
  2069. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2070. shlibpath_overrides_runpath=yes
  2071. hardcode_into_libs=yes
  2072. ;;
  2073. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2074. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2075. shlibpath_overrides_runpath=no
  2076. hardcode_into_libs=yes
  2077. ;;
  2078. *) # from 4.6 on, and DragonFly
  2079. shlibpath_overrides_runpath=yes
  2080. hardcode_into_libs=yes
  2081. ;;
  2082. esac
  2083. ;;
  2084. gnu*)
  2085. version_type=linux
  2086. need_lib_prefix=no
  2087. need_version=no
  2088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2089. soname_spec='${libname}${release}${shared_ext}$major'
  2090. shlibpath_var=LD_LIBRARY_PATH
  2091. hardcode_into_libs=yes
  2092. ;;
  2093. hpux9* | hpux10* | hpux11*)
  2094. # Give a soname corresponding to the major version so that dld.sl refuses to
  2095. # link against other versions.
  2096. version_type=sunos
  2097. need_lib_prefix=no
  2098. need_version=no
  2099. case $host_cpu in
  2100. ia64*)
  2101. shrext_cmds='.so'
  2102. hardcode_into_libs=yes
  2103. dynamic_linker="$host_os dld.so"
  2104. shlibpath_var=LD_LIBRARY_PATH
  2105. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2107. soname_spec='${libname}${release}${shared_ext}$major'
  2108. if test "X$HPUX_IA64_MODE" = X32; then
  2109. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2110. else
  2111. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2112. fi
  2113. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2114. ;;
  2115. hppa*64*)
  2116. shrext_cmds='.sl'
  2117. hardcode_into_libs=yes
  2118. dynamic_linker="$host_os dld.sl"
  2119. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2120. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2122. soname_spec='${libname}${release}${shared_ext}$major'
  2123. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2124. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2125. ;;
  2126. *)
  2127. shrext_cmds='.sl'
  2128. dynamic_linker="$host_os dld.sl"
  2129. shlibpath_var=SHLIB_PATH
  2130. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2132. soname_spec='${libname}${release}${shared_ext}$major'
  2133. ;;
  2134. esac
  2135. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2136. postinstall_cmds='chmod 555 $lib'
  2137. ;;
  2138. interix[[3-9]]*)
  2139. version_type=linux
  2140. need_lib_prefix=no
  2141. need_version=no
  2142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2143. soname_spec='${libname}${release}${shared_ext}$major'
  2144. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2145. shlibpath_var=LD_LIBRARY_PATH
  2146. shlibpath_overrides_runpath=no
  2147. hardcode_into_libs=yes
  2148. ;;
  2149. irix5* | irix6* | nonstopux*)
  2150. case $host_os in
  2151. nonstopux*) version_type=nonstopux ;;
  2152. *)
  2153. if test "$lt_cv_prog_gnu_ld" = yes; then
  2154. version_type=linux
  2155. else
  2156. version_type=irix
  2157. fi ;;
  2158. esac
  2159. need_lib_prefix=no
  2160. need_version=no
  2161. soname_spec='${libname}${release}${shared_ext}$major'
  2162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2163. case $host_os in
  2164. irix5* | nonstopux*)
  2165. libsuff= shlibsuff=
  2166. ;;
  2167. *)
  2168. case $LD in # libtool.m4 will add one of these switches to LD
  2169. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2170. libsuff= shlibsuff= libmagic=32-bit;;
  2171. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2172. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2173. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2174. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2175. *) libsuff= shlibsuff= libmagic=never-match;;
  2176. esac
  2177. ;;
  2178. esac
  2179. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2180. shlibpath_overrides_runpath=no
  2181. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2182. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2183. hardcode_into_libs=yes
  2184. ;;
  2185. # No shared lib support for Linux oldld, aout, or coff.
  2186. linux*oldld* | linux*aout* | linux*coff*)
  2187. dynamic_linker=no
  2188. ;;
  2189. # This must be Linux ELF.
  2190. linux* | k*bsd*-gnu)
  2191. version_type=linux
  2192. need_lib_prefix=no
  2193. need_version=no
  2194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2195. soname_spec='${libname}${release}${shared_ext}$major'
  2196. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2197. shlibpath_var=LD_LIBRARY_PATH
  2198. shlibpath_overrides_runpath=no
  2199. # Some binutils ld are patched to set DT_RUNPATH
  2200. save_LDFLAGS=$LDFLAGS
  2201. save_libdir=$libdir
  2202. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2203. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2204. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2205. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2206. [shlibpath_overrides_runpath=yes])])
  2207. LDFLAGS=$save_LDFLAGS
  2208. libdir=$save_libdir
  2209. # This implies no fast_install, which is unacceptable.
  2210. # Some rework will be needed to allow for fast_install
  2211. # before this can be enabled.
  2212. hardcode_into_libs=yes
  2213. # Add ABI-specific directories to the system library path.
  2214. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2215. # Append ld.so.conf contents to the search path
  2216. if test -f /etc/ld.so.conf; then
  2217. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2218. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2219. fi
  2220. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2221. # powerpc, because MkLinux only supported shared libraries with the
  2222. # GNU dynamic linker. Since this was broken with cross compilers,
  2223. # most powerpc-linux boxes support dynamic linking these days and
  2224. # people can always --disable-shared, the test was removed, and we
  2225. # assume the GNU/Linux dynamic linker is in use.
  2226. dynamic_linker='GNU/Linux ld.so'
  2227. ;;
  2228. netbsd*)
  2229. version_type=sunos
  2230. need_lib_prefix=no
  2231. need_version=no
  2232. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2234. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2235. dynamic_linker='NetBSD (a.out) ld.so'
  2236. else
  2237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2238. soname_spec='${libname}${release}${shared_ext}$major'
  2239. dynamic_linker='NetBSD ld.elf_so'
  2240. fi
  2241. shlibpath_var=LD_LIBRARY_PATH
  2242. shlibpath_overrides_runpath=yes
  2243. hardcode_into_libs=yes
  2244. ;;
  2245. newsos6)
  2246. version_type=linux
  2247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2248. shlibpath_var=LD_LIBRARY_PATH
  2249. shlibpath_overrides_runpath=yes
  2250. ;;
  2251. *nto* | *qnx*)
  2252. version_type=qnx
  2253. need_lib_prefix=no
  2254. need_version=no
  2255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2256. soname_spec='${libname}${release}${shared_ext}$major'
  2257. shlibpath_var=LD_LIBRARY_PATH
  2258. shlibpath_overrides_runpath=no
  2259. hardcode_into_libs=yes
  2260. dynamic_linker='ldqnx.so'
  2261. ;;
  2262. openbsd*)
  2263. version_type=sunos
  2264. sys_lib_dlsearch_path_spec="/usr/lib"
  2265. need_lib_prefix=no
  2266. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2267. case $host_os in
  2268. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2269. *) need_version=no ;;
  2270. esac
  2271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2272. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2273. shlibpath_var=LD_LIBRARY_PATH
  2274. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2275. case $host_os in
  2276. openbsd2.[[89]] | openbsd2.[[89]].*)
  2277. shlibpath_overrides_runpath=no
  2278. ;;
  2279. *)
  2280. shlibpath_overrides_runpath=yes
  2281. ;;
  2282. esac
  2283. else
  2284. shlibpath_overrides_runpath=yes
  2285. fi
  2286. ;;
  2287. os2*)
  2288. libname_spec='$name'
  2289. shrext_cmds=".dll"
  2290. need_lib_prefix=no
  2291. library_names_spec='$libname${shared_ext} $libname.a'
  2292. dynamic_linker='OS/2 ld.exe'
  2293. shlibpath_var=LIBPATH
  2294. ;;
  2295. osf3* | osf4* | osf5*)
  2296. version_type=osf
  2297. need_lib_prefix=no
  2298. need_version=no
  2299. soname_spec='${libname}${release}${shared_ext}$major'
  2300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2301. shlibpath_var=LD_LIBRARY_PATH
  2302. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2303. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2304. ;;
  2305. rdos*)
  2306. dynamic_linker=no
  2307. ;;
  2308. solaris*)
  2309. version_type=linux
  2310. need_lib_prefix=no
  2311. need_version=no
  2312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2313. soname_spec='${libname}${release}${shared_ext}$major'
  2314. shlibpath_var=LD_LIBRARY_PATH
  2315. shlibpath_overrides_runpath=yes
  2316. hardcode_into_libs=yes
  2317. # ldd complains unless libraries are executable
  2318. postinstall_cmds='chmod +x $lib'
  2319. ;;
  2320. sunos4*)
  2321. version_type=sunos
  2322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2323. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2324. shlibpath_var=LD_LIBRARY_PATH
  2325. shlibpath_overrides_runpath=yes
  2326. if test "$with_gnu_ld" = yes; then
  2327. need_lib_prefix=no
  2328. fi
  2329. need_version=yes
  2330. ;;
  2331. sysv4 | sysv4.3*)
  2332. version_type=linux
  2333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2334. soname_spec='${libname}${release}${shared_ext}$major'
  2335. shlibpath_var=LD_LIBRARY_PATH
  2336. case $host_vendor in
  2337. sni)
  2338. shlibpath_overrides_runpath=no
  2339. need_lib_prefix=no
  2340. runpath_var=LD_RUN_PATH
  2341. ;;
  2342. siemens)
  2343. need_lib_prefix=no
  2344. ;;
  2345. motorola)
  2346. need_lib_prefix=no
  2347. need_version=no
  2348. shlibpath_overrides_runpath=no
  2349. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2350. ;;
  2351. esac
  2352. ;;
  2353. sysv4*MP*)
  2354. if test -d /usr/nec ;then
  2355. version_type=linux
  2356. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2357. soname_spec='$libname${shared_ext}.$major'
  2358. shlibpath_var=LD_LIBRARY_PATH
  2359. fi
  2360. ;;
  2361. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2362. version_type=freebsd-elf
  2363. need_lib_prefix=no
  2364. need_version=no
  2365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2366. soname_spec='${libname}${release}${shared_ext}$major'
  2367. shlibpath_var=LD_LIBRARY_PATH
  2368. shlibpath_overrides_runpath=yes
  2369. hardcode_into_libs=yes
  2370. if test "$with_gnu_ld" = yes; then
  2371. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2372. else
  2373. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2374. case $host_os in
  2375. sco3.2v5*)
  2376. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2377. ;;
  2378. esac
  2379. fi
  2380. sys_lib_dlsearch_path_spec='/usr/lib'
  2381. ;;
  2382. tpf*)
  2383. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2384. version_type=linux
  2385. need_lib_prefix=no
  2386. need_version=no
  2387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2388. shlibpath_var=LD_LIBRARY_PATH
  2389. shlibpath_overrides_runpath=no
  2390. hardcode_into_libs=yes
  2391. ;;
  2392. uts4*)
  2393. version_type=linux
  2394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2395. soname_spec='${libname}${release}${shared_ext}$major'
  2396. shlibpath_var=LD_LIBRARY_PATH
  2397. ;;
  2398. *)
  2399. dynamic_linker=no
  2400. ;;
  2401. esac
  2402. AC_MSG_RESULT([$dynamic_linker])
  2403. test "$dynamic_linker" = no && can_build_shared=no
  2404. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2405. if test "$GCC" = yes; then
  2406. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2407. fi
  2408. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2409. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2410. fi
  2411. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2412. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2413. fi
  2414. _LT_DECL([], [variables_saved_for_relink], [1],
  2415. [Variables whose values should be saved in libtool wrapper scripts and
  2416. restored at link time])
  2417. _LT_DECL([], [need_lib_prefix], [0],
  2418. [Do we need the "lib" prefix for modules?])
  2419. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2420. _LT_DECL([], [version_type], [0], [Library versioning type])
  2421. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2422. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2423. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2424. [Is shlibpath searched before the hard-coded library search path?])
  2425. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2426. _LT_DECL([], [library_names_spec], [1],
  2427. [[List of archive names. First name is the real one, the rest are links.
  2428. The last name is the one that the linker finds with -lNAME]])
  2429. _LT_DECL([], [soname_spec], [1],
  2430. [[The coded name of the library, if different from the real name]])
  2431. _LT_DECL([], [postinstall_cmds], [2],
  2432. [Command to use after installation of a shared archive])
  2433. _LT_DECL([], [postuninstall_cmds], [2],
  2434. [Command to use after uninstallation of a shared archive])
  2435. _LT_DECL([], [finish_cmds], [2],
  2436. [Commands used to finish a libtool library installation in a directory])
  2437. _LT_DECL([], [finish_eval], [1],
  2438. [[As "finish_cmds", except a single script fragment to be evaled but
  2439. not shown]])
  2440. _LT_DECL([], [hardcode_into_libs], [0],
  2441. [Whether we should hardcode library paths into libraries])
  2442. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2443. [Compile-time system search path for libraries])
  2444. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2445. [Run-time system search path for libraries])
  2446. ])# _LT_SYS_DYNAMIC_LINKER
  2447. # _LT_PATH_TOOL_PREFIX(TOOL)
  2448. # --------------------------
  2449. # find a file program which can recognize shared library
  2450. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2451. [m4_require([_LT_DECL_EGREP])dnl
  2452. AC_MSG_CHECKING([for $1])
  2453. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2454. [case $MAGIC_CMD in
  2455. [[\\/*] | ?:[\\/]*])
  2456. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2457. ;;
  2458. *)
  2459. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2460. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2461. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2462. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2463. dnl not every word. This closes a longstanding sh security hole.
  2464. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2465. for ac_dir in $ac_dummy; do
  2466. IFS="$lt_save_ifs"
  2467. test -z "$ac_dir" && ac_dir=.
  2468. if test -f $ac_dir/$1; then
  2469. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2470. if test -n "$file_magic_test_file"; then
  2471. case $deplibs_check_method in
  2472. "file_magic "*)
  2473. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2474. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2475. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2476. $EGREP "$file_magic_regex" > /dev/null; then
  2477. :
  2478. else
  2479. cat <<_LT_EOF 1>&2
  2480. *** Warning: the command libtool uses to detect shared libraries,
  2481. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2482. *** The result is that libtool may fail to recognize shared libraries
  2483. *** as such. This will affect the creation of libtool libraries that
  2484. *** depend on shared libraries, but programs linked with such libtool
  2485. *** libraries will work regardless of this problem. Nevertheless, you
  2486. *** may want to report the problem to your system manager and/or to
  2487. *** bug-libtool@gnu.org
  2488. _LT_EOF
  2489. fi ;;
  2490. esac
  2491. fi
  2492. break
  2493. fi
  2494. done
  2495. IFS="$lt_save_ifs"
  2496. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2497. ;;
  2498. esac])
  2499. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2500. if test -n "$MAGIC_CMD"; then
  2501. AC_MSG_RESULT($MAGIC_CMD)
  2502. else
  2503. AC_MSG_RESULT(no)
  2504. fi
  2505. _LT_DECL([], [MAGIC_CMD], [0],
  2506. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2507. ])# _LT_PATH_TOOL_PREFIX
  2508. # Old name:
  2509. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2510. dnl aclocal-1.4 backwards compatibility:
  2511. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2512. # _LT_PATH_MAGIC
  2513. # --------------
  2514. # find a file program which can recognize a shared library
  2515. m4_defun([_LT_PATH_MAGIC],
  2516. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2517. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2518. if test -n "$ac_tool_prefix"; then
  2519. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2520. else
  2521. MAGIC_CMD=:
  2522. fi
  2523. fi
  2524. ])# _LT_PATH_MAGIC
  2525. # LT_PATH_LD
  2526. # ----------
  2527. # find the pathname to the GNU or non-GNU linker
  2528. AC_DEFUN([LT_PATH_LD],
  2529. [AC_REQUIRE([AC_PROG_CC])dnl
  2530. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2531. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2532. m4_require([_LT_DECL_SED])dnl
  2533. m4_require([_LT_DECL_EGREP])dnl
  2534. AC_ARG_WITH([gnu-ld],
  2535. [AS_HELP_STRING([--with-gnu-ld],
  2536. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2537. [test "$withval" = no || with_gnu_ld=yes],
  2538. [with_gnu_ld=no])dnl
  2539. ac_prog=ld
  2540. if test "$GCC" = yes; then
  2541. # Check if gcc -print-prog-name=ld gives a path.
  2542. AC_MSG_CHECKING([for ld used by $CC])
  2543. case $host in
  2544. *-*-mingw*)
  2545. # gcc leaves a trailing carriage return which upsets mingw
  2546. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2547. *)
  2548. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2549. esac
  2550. case $ac_prog in
  2551. # Accept absolute paths.
  2552. [[\\/]]* | ?:[[\\/]]*)
  2553. re_direlt='/[[^/]][[^/]]*/\.\./'
  2554. # Canonicalize the pathname of ld
  2555. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2556. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2557. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2558. done
  2559. test -z "$LD" && LD="$ac_prog"
  2560. ;;
  2561. "")
  2562. # If it fails, then pretend we aren't using GCC.
  2563. ac_prog=ld
  2564. ;;
  2565. *)
  2566. # If it is relative, then search for the first ld in PATH.
  2567. with_gnu_ld=unknown
  2568. ;;
  2569. esac
  2570. elif test "$with_gnu_ld" = yes; then
  2571. AC_MSG_CHECKING([for GNU ld])
  2572. else
  2573. AC_MSG_CHECKING([for non-GNU ld])
  2574. fi
  2575. AC_CACHE_VAL(lt_cv_path_LD,
  2576. [if test -z "$LD"; then
  2577. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2578. for ac_dir in $PATH; do
  2579. IFS="$lt_save_ifs"
  2580. test -z "$ac_dir" && ac_dir=.
  2581. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2582. lt_cv_path_LD="$ac_dir/$ac_prog"
  2583. # Check to see if the program is GNU ld. I'd rather use --version,
  2584. # but apparently some variants of GNU ld only accept -v.
  2585. # Break only if it was the GNU/non-GNU ld that we prefer.
  2586. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2587. *GNU* | *'with BFD'*)
  2588. test "$with_gnu_ld" != no && break
  2589. ;;
  2590. *)
  2591. test "$with_gnu_ld" != yes && break
  2592. ;;
  2593. esac
  2594. fi
  2595. done
  2596. IFS="$lt_save_ifs"
  2597. else
  2598. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2599. fi])
  2600. LD="$lt_cv_path_LD"
  2601. if test -n "$LD"; then
  2602. AC_MSG_RESULT($LD)
  2603. else
  2604. AC_MSG_RESULT(no)
  2605. fi
  2606. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2607. _LT_PATH_LD_GNU
  2608. AC_SUBST([LD])
  2609. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2610. ])# LT_PATH_LD
  2611. # Old names:
  2612. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2613. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2614. dnl aclocal-1.4 backwards compatibility:
  2615. dnl AC_DEFUN([AM_PROG_LD], [])
  2616. dnl AC_DEFUN([AC_PROG_LD], [])
  2617. # _LT_PATH_LD_GNU
  2618. #- --------------
  2619. m4_defun([_LT_PATH_LD_GNU],
  2620. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2621. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2622. case `$LD -v 2>&1 </dev/null` in
  2623. *GNU* | *'with BFD'*)
  2624. lt_cv_prog_gnu_ld=yes
  2625. ;;
  2626. *)
  2627. lt_cv_prog_gnu_ld=no
  2628. ;;
  2629. esac])
  2630. with_gnu_ld=$lt_cv_prog_gnu_ld
  2631. ])# _LT_PATH_LD_GNU
  2632. # _LT_CMD_RELOAD
  2633. # --------------
  2634. # find reload flag for linker
  2635. # -- PORTME Some linkers may need a different reload flag.
  2636. m4_defun([_LT_CMD_RELOAD],
  2637. [AC_CACHE_CHECK([for $LD option to reload object files],
  2638. lt_cv_ld_reload_flag,
  2639. [lt_cv_ld_reload_flag='-r'])
  2640. reload_flag=$lt_cv_ld_reload_flag
  2641. case $reload_flag in
  2642. "" | " "*) ;;
  2643. *) reload_flag=" $reload_flag" ;;
  2644. esac
  2645. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2646. case $host_os in
  2647. darwin*)
  2648. if test "$GCC" = yes; then
  2649. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2650. else
  2651. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2652. fi
  2653. ;;
  2654. esac
  2655. _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2656. _LT_DECL([], [reload_cmds], [2])dnl
  2657. ])# _LT_CMD_RELOAD
  2658. # _LT_CHECK_MAGIC_METHOD
  2659. # ----------------------
  2660. # how to check for library dependencies
  2661. # -- PORTME fill in with the dynamic library characteristics
  2662. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2663. [m4_require([_LT_DECL_EGREP])
  2664. m4_require([_LT_DECL_OBJDUMP])
  2665. AC_CACHE_CHECK([how to recognize dependent libraries],
  2666. lt_cv_deplibs_check_method,
  2667. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2668. lt_cv_file_magic_test_file=
  2669. lt_cv_deplibs_check_method='unknown'
  2670. # Need to set the preceding variable on all platforms that support
  2671. # interlibrary dependencies.
  2672. # 'none' -- dependencies not supported.
  2673. # `unknown' -- same as none, but documents that we really don't know.
  2674. # 'pass_all' -- all dependencies passed with no checks.
  2675. # 'test_compile' -- check by making test program.
  2676. # 'file_magic [[regex]]' -- check by looking for files in library path
  2677. # which responds to the $file_magic_cmd with a given extended regex.
  2678. # If you have `file' or equivalent on your system and you're not sure
  2679. # whether `pass_all' will *always* work, you probably want this one.
  2680. case $host_os in
  2681. aix[[4-9]]*)
  2682. lt_cv_deplibs_check_method=pass_all
  2683. ;;
  2684. beos*)
  2685. lt_cv_deplibs_check_method=pass_all
  2686. ;;
  2687. bsdi[[45]]*)
  2688. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2689. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2690. lt_cv_file_magic_test_file=/shlib/libc.so
  2691. ;;
  2692. cygwin*)
  2693. # func_win32_libid is a shell function defined in ltmain.sh
  2694. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2695. lt_cv_file_magic_cmd='func_win32_libid'
  2696. ;;
  2697. mingw* | pw32*)
  2698. # Base MSYS/MinGW do not provide the 'file' command needed by
  2699. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2700. # unless we find 'file', for example because we are cross-compiling.
  2701. if ( file / ) >/dev/null 2>&1; then
  2702. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2703. lt_cv_file_magic_cmd='func_win32_libid'
  2704. else
  2705. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2706. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2707. fi
  2708. ;;
  2709. cegcc)
  2710. # use the weaker test based on 'objdump'. See mingw*.
  2711. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2712. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2713. ;;
  2714. darwin* | rhapsody*)
  2715. lt_cv_deplibs_check_method=pass_all
  2716. ;;
  2717. freebsd* | dragonfly*)
  2718. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2719. case $host_cpu in
  2720. i*86 )
  2721. # Not sure whether the presence of OpenBSD here was a mistake.
  2722. # Let's accept both of them until this is cleared up.
  2723. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2724. lt_cv_file_magic_cmd=/usr/bin/file
  2725. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2726. ;;
  2727. esac
  2728. else
  2729. lt_cv_deplibs_check_method=pass_all
  2730. fi
  2731. ;;
  2732. gnu*)
  2733. lt_cv_deplibs_check_method=pass_all
  2734. ;;
  2735. hpux10.20* | hpux11*)
  2736. lt_cv_file_magic_cmd=/usr/bin/file
  2737. case $host_cpu in
  2738. ia64*)
  2739. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2740. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2741. ;;
  2742. hppa*64*)
  2743. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  2744. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2745. ;;
  2746. *)
  2747. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2748. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2749. ;;
  2750. esac
  2751. ;;
  2752. interix[[3-9]]*)
  2753. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2754. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2755. ;;
  2756. irix5* | irix6* | nonstopux*)
  2757. case $LD in
  2758. *-32|*"-32 ") libmagic=32-bit;;
  2759. *-n32|*"-n32 ") libmagic=N32;;
  2760. *-64|*"-64 ") libmagic=64-bit;;
  2761. *) libmagic=never-match;;
  2762. esac
  2763. lt_cv_deplibs_check_method=pass_all
  2764. ;;
  2765. # This must be Linux ELF.
  2766. linux* | k*bsd*-gnu)
  2767. lt_cv_deplibs_check_method=pass_all
  2768. ;;
  2769. netbsd*)
  2770. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2771. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2772. else
  2773. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2774. fi
  2775. ;;
  2776. newos6*)
  2777. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2778. lt_cv_file_magic_cmd=/usr/bin/file
  2779. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2780. ;;
  2781. *nto* | *qnx*)
  2782. lt_cv_deplibs_check_method=pass_all
  2783. ;;
  2784. openbsd*)
  2785. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2786. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2787. else
  2788. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2789. fi
  2790. ;;
  2791. osf3* | osf4* | osf5*)
  2792. lt_cv_deplibs_check_method=pass_all
  2793. ;;
  2794. rdos*)
  2795. lt_cv_deplibs_check_method=pass_all
  2796. ;;
  2797. solaris*)
  2798. lt_cv_deplibs_check_method=pass_all
  2799. ;;
  2800. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2801. lt_cv_deplibs_check_method=pass_all
  2802. ;;
  2803. sysv4 | sysv4.3*)
  2804. case $host_vendor in
  2805. motorola)
  2806. 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]]'
  2807. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2808. ;;
  2809. ncr)
  2810. lt_cv_deplibs_check_method=pass_all
  2811. ;;
  2812. sequent)
  2813. lt_cv_file_magic_cmd='/bin/file'
  2814. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2815. ;;
  2816. sni)
  2817. lt_cv_file_magic_cmd='/bin/file'
  2818. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2819. lt_cv_file_magic_test_file=/lib/libc.so
  2820. ;;
  2821. siemens)
  2822. lt_cv_deplibs_check_method=pass_all
  2823. ;;
  2824. pc)
  2825. lt_cv_deplibs_check_method=pass_all
  2826. ;;
  2827. esac
  2828. ;;
  2829. tpf*)
  2830. lt_cv_deplibs_check_method=pass_all
  2831. ;;
  2832. esac
  2833. ])
  2834. file_magic_cmd=$lt_cv_file_magic_cmd
  2835. deplibs_check_method=$lt_cv_deplibs_check_method
  2836. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2837. _LT_DECL([], [deplibs_check_method], [1],
  2838. [Method to check whether dependent libraries are shared objects])
  2839. _LT_DECL([], [file_magic_cmd], [1],
  2840. [Command to use when deplibs_check_method == "file_magic"])
  2841. ])# _LT_CHECK_MAGIC_METHOD
  2842. # LT_PATH_NM
  2843. # ----------
  2844. # find the pathname to a BSD- or MS-compatible name lister
  2845. AC_DEFUN([LT_PATH_NM],
  2846. [AC_REQUIRE([AC_PROG_CC])dnl
  2847. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  2848. [if test -n "$NM"; then
  2849. # Let the user override the test.
  2850. lt_cv_path_NM="$NM"
  2851. else
  2852. lt_nm_to_check="${ac_tool_prefix}nm"
  2853. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2854. lt_nm_to_check="$lt_nm_to_check nm"
  2855. fi
  2856. for lt_tmp_nm in $lt_nm_to_check; do
  2857. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2858. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2859. IFS="$lt_save_ifs"
  2860. test -z "$ac_dir" && ac_dir=.
  2861. tmp_nm="$ac_dir/$lt_tmp_nm"
  2862. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2863. # Check to see if the nm accepts a BSD-compat flag.
  2864. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2865. # nm: unknown option "B" ignored
  2866. # Tru64's nm complains that /dev/null is an invalid object file
  2867. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2868. */dev/null* | *'Invalid file or object type'*)
  2869. lt_cv_path_NM="$tmp_nm -B"
  2870. break
  2871. ;;
  2872. *)
  2873. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2874. */dev/null*)
  2875. lt_cv_path_NM="$tmp_nm -p"
  2876. break
  2877. ;;
  2878. *)
  2879. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2880. continue # so that we can try to find one that supports BSD flags
  2881. ;;
  2882. esac
  2883. ;;
  2884. esac
  2885. fi
  2886. done
  2887. IFS="$lt_save_ifs"
  2888. done
  2889. : ${lt_cv_path_NM=no}
  2890. fi])
  2891. if test "$lt_cv_path_NM" != "no"; then
  2892. NM="$lt_cv_path_NM"
  2893. else
  2894. # Didn't find any BSD compatible name lister, look for dumpbin.
  2895. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  2896. AC_SUBST([DUMPBIN])
  2897. if test "$DUMPBIN" != ":"; then
  2898. NM="$DUMPBIN"
  2899. fi
  2900. fi
  2901. test -z "$NM" && NM=nm
  2902. AC_SUBST([NM])
  2903. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  2904. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  2905. [lt_cv_nm_interface="BSD nm"
  2906. echo "int some_variable = 0;" > conftest.$ac_ext
  2907. (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  2908. (eval "$ac_compile" 2>conftest.err)
  2909. cat conftest.err >&AS_MESSAGE_LOG_FD
  2910. (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  2911. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  2912. cat conftest.err >&AS_MESSAGE_LOG_FD
  2913. (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  2914. cat conftest.out >&AS_MESSAGE_LOG_FD
  2915. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  2916. lt_cv_nm_interface="MS dumpbin"
  2917. fi
  2918. rm -f conftest*])
  2919. ])# LT_PATH_NM
  2920. # Old names:
  2921. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  2922. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  2923. dnl aclocal-1.4 backwards compatibility:
  2924. dnl AC_DEFUN([AM_PROG_NM], [])
  2925. dnl AC_DEFUN([AC_PROG_NM], [])
  2926. # LT_LIB_M
  2927. # --------
  2928. # check for math library
  2929. AC_DEFUN([LT_LIB_M],
  2930. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2931. LIBM=
  2932. case $host in
  2933. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2934. # These system don't have libm, or don't need it
  2935. ;;
  2936. *-ncr-sysv4.3*)
  2937. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2938. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2939. ;;
  2940. *)
  2941. AC_CHECK_LIB(m, cos, LIBM="-lm")
  2942. ;;
  2943. esac
  2944. AC_SUBST([LIBM])
  2945. ])# LT_LIB_M
  2946. # Old name:
  2947. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  2948. dnl aclocal-1.4 backwards compatibility:
  2949. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  2950. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2951. # -------------------------------
  2952. m4_defun([_LT_COMPILER_NO_RTTI],
  2953. [m4_require([_LT_TAG_COMPILER])dnl
  2954. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2955. if test "$GCC" = yes; then
  2956. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2957. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  2958. lt_cv_prog_compiler_rtti_exceptions,
  2959. [-fno-rtti -fno-exceptions], [],
  2960. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  2961. fi
  2962. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  2963. [Compiler flag to turn off builtin functions])
  2964. ])# _LT_COMPILER_NO_RTTI
  2965. # _LT_CMD_GLOBAL_SYMBOLS
  2966. # ----------------------
  2967. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  2968. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2969. AC_REQUIRE([AC_PROG_CC])dnl
  2970. AC_REQUIRE([LT_PATH_NM])dnl
  2971. AC_REQUIRE([LT_PATH_LD])dnl
  2972. m4_require([_LT_DECL_SED])dnl
  2973. m4_require([_LT_DECL_EGREP])dnl
  2974. m4_require([_LT_TAG_COMPILER])dnl
  2975. # Check for command to grab the raw symbol name followed by C symbol from nm.
  2976. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  2977. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  2978. [
  2979. # These are sane defaults that work on at least a few old systems.
  2980. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  2981. # Character class describing NM global symbol codes.
  2982. symcode='[[BCDEGRST]]'
  2983. # Regexp to match symbols that can be accessed directly from C.
  2984. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  2985. # Define system-specific variables.
  2986. case $host_os in
  2987. aix*)
  2988. symcode='[[BCDT]]'
  2989. ;;
  2990. cygwin* | mingw* | pw32* | cegcc*)
  2991. symcode='[[ABCDGISTW]]'
  2992. ;;
  2993. hpux*)
  2994. if test "$host_cpu" = ia64; then
  2995. symcode='[[ABCDEGRST]]'
  2996. fi
  2997. ;;
  2998. irix* | nonstopux*)
  2999. symcode='[[BCDEGRST]]'
  3000. ;;
  3001. osf*)
  3002. symcode='[[BCDEGQRST]]'
  3003. ;;
  3004. solaris*)
  3005. symcode='[[BDRT]]'
  3006. ;;
  3007. sco3.2v5*)
  3008. symcode='[[DT]]'
  3009. ;;
  3010. sysv4.2uw2*)
  3011. symcode='[[DT]]'
  3012. ;;
  3013. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3014. symcode='[[ABDT]]'
  3015. ;;
  3016. sysv4)
  3017. symcode='[[DFNSTU]]'
  3018. ;;
  3019. esac
  3020. # If we're using GNU nm, then use its standard symbol codes.
  3021. case `$NM -V 2>&1` in
  3022. *GNU* | *'with BFD'*)
  3023. symcode='[[ABCDGIRSTW]]' ;;
  3024. esac
  3025. # Transform an extracted symbol line into a proper C declaration.
  3026. # Some systems (esp. on ia64) link data and code symbols differently,
  3027. # so use this general approach.
  3028. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3029. # Transform an extracted symbol line into symbol name and symbol address
  3030. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3031. 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'"
  3032. # Handle CRLF in mingw tool chain
  3033. opt_cr=
  3034. case $build_os in
  3035. mingw*)
  3036. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3037. ;;
  3038. esac
  3039. # Try without a prefix underscore, then with it.
  3040. for ac_symprfx in "" "_"; do
  3041. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3042. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3043. # Write the raw and C identifiers.
  3044. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3045. # Fake it for dumpbin and say T for any non-static function
  3046. # and D for any global variable.
  3047. # Also find C++ and __fastcall symbols from MSVC++,
  3048. # which start with @ or ?.
  3049. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3050. " {last_section=section; section=\$ 3};"\
  3051. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3052. " \$ 0!~/External *\|/{next};"\
  3053. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3054. " {if(hide[section]) next};"\
  3055. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3056. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3057. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3058. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3059. " ' prfx=^$ac_symprfx]"
  3060. else
  3061. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3062. fi
  3063. # Check to see that the pipe works correctly.
  3064. pipe_works=no
  3065. rm -f conftest*
  3066. cat > conftest.$ac_ext <<_LT_EOF
  3067. #ifdef __cplusplus
  3068. extern "C" {
  3069. #endif
  3070. char nm_test_var;
  3071. void nm_test_func(void);
  3072. void nm_test_func(void){}
  3073. #ifdef __cplusplus
  3074. }
  3075. #endif
  3076. int main(){nm_test_var='a';nm_test_func();return(0);}
  3077. _LT_EOF
  3078. if AC_TRY_EVAL(ac_compile); then
  3079. # Now try to grab the symbols.
  3080. nlist=conftest.nm
  3081. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3082. # Try sorting and uniquifying the output.
  3083. if sort "$nlist" | uniq > "$nlist"T; then
  3084. mv -f "$nlist"T "$nlist"
  3085. else
  3086. rm -f "$nlist"T
  3087. fi
  3088. # Make sure that we snagged all the symbols we need.
  3089. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3090. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3091. cat <<_LT_EOF > conftest.$ac_ext
  3092. #ifdef __cplusplus
  3093. extern "C" {
  3094. #endif
  3095. _LT_EOF
  3096. # Now generate the symbol file.
  3097. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3098. cat <<_LT_EOF >> conftest.$ac_ext
  3099. /* The mapping between symbol names and symbols. */
  3100. const struct {
  3101. const char *name;
  3102. void *address;
  3103. }
  3104. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3105. {
  3106. { "@PROGRAM@", (void *) 0 },
  3107. _LT_EOF
  3108. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3109. cat <<\_LT_EOF >> conftest.$ac_ext
  3110. {0, (void *) 0}
  3111. };
  3112. /* This works around a problem in FreeBSD linker */
  3113. #ifdef FREEBSD_WORKAROUND
  3114. static const void *lt_preloaded_setup() {
  3115. return lt__PROGRAM__LTX_preloaded_symbols;
  3116. }
  3117. #endif
  3118. #ifdef __cplusplus
  3119. }
  3120. #endif
  3121. _LT_EOF
  3122. # Now try linking the two files.
  3123. mv conftest.$ac_objext conftstm.$ac_objext
  3124. lt_save_LIBS="$LIBS"
  3125. lt_save_CFLAGS="$CFLAGS"
  3126. LIBS="conftstm.$ac_objext"
  3127. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3128. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3129. pipe_works=yes
  3130. fi
  3131. LIBS="$lt_save_LIBS"
  3132. CFLAGS="$lt_save_CFLAGS"
  3133. else
  3134. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3135. fi
  3136. else
  3137. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3138. fi
  3139. else
  3140. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3141. fi
  3142. else
  3143. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3144. cat conftest.$ac_ext >&5
  3145. fi
  3146. rm -rf conftest* conftst*
  3147. # Do not use the global_symbol_pipe unless it works.
  3148. if test "$pipe_works" = yes; then
  3149. break
  3150. else
  3151. lt_cv_sys_global_symbol_pipe=
  3152. fi
  3153. done
  3154. ])
  3155. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3156. lt_cv_sys_global_symbol_to_cdecl=
  3157. fi
  3158. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3159. AC_MSG_RESULT(failed)
  3160. else
  3161. AC_MSG_RESULT(ok)
  3162. fi
  3163. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3164. [Take the output of nm and produce a listing of raw symbols and C names])
  3165. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3166. [Transform the output of nm in a proper C declaration])
  3167. _LT_DECL([global_symbol_to_c_name_address],
  3168. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3169. [Transform the output of nm in a C name address pair])
  3170. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3171. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3172. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3173. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3174. # _LT_COMPILER_PIC([TAGNAME])
  3175. # ---------------------------
  3176. m4_defun([_LT_COMPILER_PIC],
  3177. [m4_require([_LT_TAG_COMPILER])dnl
  3178. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3179. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3180. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3181. AC_MSG_CHECKING([for $compiler option to produce PIC])
  3182. m4_if([$1], [CXX], [
  3183. # C++ specific cases for pic, static, wl, etc.
  3184. if test "$GXX" = yes; then
  3185. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3186. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3187. case $host_os in
  3188. aix*)
  3189. # All AIX code is PIC.
  3190. if test "$host_cpu" = ia64; then
  3191. # AIX 5 now supports IA64 processor
  3192. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3193. fi
  3194. ;;
  3195. amigaos*)
  3196. case $host_cpu in
  3197. powerpc)
  3198. # see comment about AmigaOS4 .so support
  3199. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3200. ;;
  3201. m68k)
  3202. # FIXME: we need at least 68020 code to build shared libraries, but
  3203. # adding the `-m68020' flag to GCC prevents building anything better,
  3204. # like `-m68040'.
  3205. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3206. ;;
  3207. esac
  3208. ;;
  3209. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3210. # PIC is the default for these OSes.
  3211. ;;
  3212. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3213. # This hack is so that the source file can tell whether it is being
  3214. # built for inclusion in a dll (and should export symbols for example).
  3215. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3216. # (--disable-auto-import) libraries
  3217. m4_if([$1], [GCJ], [],
  3218. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3219. ;;
  3220. darwin* | rhapsody*)
  3221. # PIC is the default on this platform
  3222. # Common symbols not allowed in MH_DYLIB files
  3223. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3224. ;;
  3225. *djgpp*)
  3226. # DJGPP does not support shared libraries at all
  3227. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3228. ;;
  3229. interix[[3-9]]*)
  3230. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3231. # Instead, we relocate shared libraries at runtime.
  3232. ;;
  3233. sysv4*MP*)
  3234. if test -d /usr/nec; then
  3235. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3236. fi
  3237. ;;
  3238. hpux*)
  3239. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3240. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3241. # sets the default TLS model and affects inlining.
  3242. case $host_cpu in
  3243. hppa*64*)
  3244. ;;
  3245. *)
  3246. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3247. ;;
  3248. esac
  3249. ;;
  3250. *qnx* | *nto*)
  3251. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3252. # it will coredump.
  3253. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3254. ;;
  3255. *)
  3256. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3257. ;;
  3258. esac
  3259. else
  3260. case $host_os in
  3261. aix[[4-9]]*)
  3262. # All AIX code is PIC.
  3263. if test "$host_cpu" = ia64; then
  3264. # AIX 5 now supports IA64 processor
  3265. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3266. else
  3267. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3268. fi
  3269. ;;
  3270. chorus*)
  3271. case $cc_basename in
  3272. cxch68*)
  3273. # Green Hills C++ Compiler
  3274. # _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"
  3275. ;;
  3276. esac
  3277. ;;
  3278. dgux*)
  3279. case $cc_basename in
  3280. ec++*)
  3281. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3282. ;;
  3283. ghcx*)
  3284. # Green Hills C++ Compiler
  3285. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3286. ;;
  3287. *)
  3288. ;;
  3289. esac
  3290. ;;
  3291. freebsd* | dragonfly*)
  3292. # FreeBSD uses GNU C++
  3293. ;;
  3294. hpux9* | hpux10* | hpux11*)
  3295. case $cc_basename in
  3296. CC*)
  3297. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3298. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3299. if test "$host_cpu" != ia64; then
  3300. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3301. fi
  3302. ;;
  3303. aCC*)
  3304. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3305. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3306. case $host_cpu in
  3307. hppa*64*|ia64*)
  3308. # +Z the default
  3309. ;;
  3310. *)
  3311. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3312. ;;
  3313. esac
  3314. ;;
  3315. *)
  3316. ;;
  3317. esac
  3318. ;;
  3319. interix*)
  3320. # This is c89, which is MS Visual C++ (no shared libs)
  3321. # Anyone wants to do a port?
  3322. ;;
  3323. irix5* | irix6* | nonstopux*)
  3324. case $cc_basename in
  3325. CC*)
  3326. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3327. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3328. # CC pic flag -KPIC is the default.
  3329. ;;
  3330. *)
  3331. ;;
  3332. esac
  3333. ;;
  3334. linux* | k*bsd*-gnu)
  3335. case $cc_basename in
  3336. KCC*)
  3337. # KAI C++ Compiler
  3338. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3339. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3340. ;;
  3341. ecpc* )
  3342. # old Intel C++ for x86_64 which still supported -KPIC.
  3343. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3344. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3345. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3346. ;;
  3347. icpc* )
  3348. # Intel C++, used to be incompatible with GCC.
  3349. # ICC 10 doesn't accept -KPIC any more.
  3350. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3351. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3352. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3353. ;;
  3354. pgCC* | pgcpp*)
  3355. # Portland Group C++ compiler
  3356. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3357. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3358. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3359. ;;
  3360. cxx*)
  3361. # Compaq C++
  3362. # Make sure the PIC flag is empty. It appears that all Alpha
  3363. # Linux and Compaq Tru64 Unix objects are PIC.
  3364. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3365. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3366. ;;
  3367. xlc* | xlC*)
  3368. # IBM XL 8.0 on PPC
  3369. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3370. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3371. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3372. ;;
  3373. *)
  3374. case `$CC -V 2>&1 | sed 5q` in
  3375. *Sun\ C*)
  3376. # Sun C++ 5.9
  3377. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3378. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3379. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3380. ;;
  3381. esac
  3382. ;;
  3383. esac
  3384. ;;
  3385. lynxos*)
  3386. ;;
  3387. m88k*)
  3388. ;;
  3389. mvs*)
  3390. case $cc_basename in
  3391. cxx*)
  3392. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3393. ;;
  3394. *)
  3395. ;;
  3396. esac
  3397. ;;
  3398. netbsd*)
  3399. ;;
  3400. *qnx* | *nto*)
  3401. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3402. # it will coredump.
  3403. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3404. ;;
  3405. osf3* | osf4* | osf5*)
  3406. case $cc_basename in
  3407. KCC*)
  3408. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3409. ;;
  3410. RCC*)
  3411. # Rational C++ 2.4.1
  3412. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3413. ;;
  3414. cxx*)
  3415. # Digital/Compaq C++
  3416. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3417. # Make sure the PIC flag is empty. It appears that all Alpha
  3418. # Linux and Compaq Tru64 Unix objects are PIC.
  3419. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3420. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3421. ;;
  3422. *)
  3423. ;;
  3424. esac
  3425. ;;
  3426. psos*)
  3427. ;;
  3428. solaris*)
  3429. case $cc_basename in
  3430. CC*)
  3431. # Sun C++ 4.2, 5.x and Centerline C++
  3432. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3433. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3434. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3435. ;;
  3436. gcx*)
  3437. # Green Hills C++ Compiler
  3438. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3439. ;;
  3440. *)
  3441. ;;
  3442. esac
  3443. ;;
  3444. sunos4*)
  3445. case $cc_basename in
  3446. CC*)
  3447. # Sun C++ 4.x
  3448. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3449. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3450. ;;
  3451. lcc*)
  3452. # Lucid
  3453. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3454. ;;
  3455. *)
  3456. ;;
  3457. esac
  3458. ;;
  3459. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3460. case $cc_basename in
  3461. CC*)
  3462. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3463. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3464. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3465. ;;
  3466. esac
  3467. ;;
  3468. tandem*)
  3469. case $cc_basename in
  3470. NCC*)
  3471. # NonStop-UX NCC 3.20
  3472. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3473. ;;
  3474. *)
  3475. ;;
  3476. esac
  3477. ;;
  3478. vxworks*)
  3479. ;;
  3480. *)
  3481. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3482. ;;
  3483. esac
  3484. fi
  3485. ],
  3486. [
  3487. if test "$GCC" = yes; then
  3488. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3489. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3490. case $host_os in
  3491. aix*)
  3492. # All AIX code is PIC.
  3493. if test "$host_cpu" = ia64; then
  3494. # AIX 5 now supports IA64 processor
  3495. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3496. fi
  3497. ;;
  3498. amigaos*)
  3499. case $host_cpu in
  3500. powerpc)
  3501. # see comment about AmigaOS4 .so support
  3502. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3503. ;;
  3504. m68k)
  3505. # FIXME: we need at least 68020 code to build shared libraries, but
  3506. # adding the `-m68020' flag to GCC prevents building anything better,
  3507. # like `-m68040'.
  3508. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3509. ;;
  3510. esac
  3511. ;;
  3512. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3513. # PIC is the default for these OSes.
  3514. ;;
  3515. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3516. # This hack is so that the source file can tell whether it is being
  3517. # built for inclusion in a dll (and should export symbols for example).
  3518. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3519. # (--disable-auto-import) libraries
  3520. m4_if([$1], [GCJ], [],
  3521. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3522. ;;
  3523. darwin* | rhapsody*)
  3524. # PIC is the default on this platform
  3525. # Common symbols not allowed in MH_DYLIB files
  3526. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3527. ;;
  3528. hpux*)
  3529. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3530. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3531. # sets the default TLS model and affects inlining.
  3532. case $host_cpu in
  3533. hppa*64*)
  3534. # +Z the default
  3535. ;;
  3536. *)
  3537. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3538. ;;
  3539. esac
  3540. ;;
  3541. interix[[3-9]]*)
  3542. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3543. # Instead, we relocate shared libraries at runtime.
  3544. ;;
  3545. msdosdjgpp*)
  3546. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3547. # on systems that don't support them.
  3548. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3549. enable_shared=no
  3550. ;;
  3551. *nto* | *qnx*)
  3552. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3553. # it will coredump.
  3554. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3555. ;;
  3556. sysv4*MP*)
  3557. if test -d /usr/nec; then
  3558. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3559. fi
  3560. ;;
  3561. *)
  3562. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3563. ;;
  3564. esac
  3565. else
  3566. # PORTME Check for flag to pass linker flags through the system compiler.
  3567. case $host_os in
  3568. aix*)
  3569. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3570. if test "$host_cpu" = ia64; then
  3571. # AIX 5 now supports IA64 processor
  3572. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3573. else
  3574. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3575. fi
  3576. ;;
  3577. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3578. # This hack is so that the source file can tell whether it is being
  3579. # built for inclusion in a dll (and should export symbols for example).
  3580. m4_if([$1], [GCJ], [],
  3581. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3582. ;;
  3583. hpux9* | hpux10* | hpux11*)
  3584. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3585. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3586. # not for PA HP-UX.
  3587. case $host_cpu in
  3588. hppa*64*|ia64*)
  3589. # +Z the default
  3590. ;;
  3591. *)
  3592. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3593. ;;
  3594. esac
  3595. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3596. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3597. ;;
  3598. irix5* | irix6* | nonstopux*)
  3599. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3600. # PIC (with -KPIC) is the default.
  3601. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3602. ;;
  3603. linux* | k*bsd*-gnu)
  3604. case $cc_basename in
  3605. # old Intel for x86_64 which still supported -KPIC.
  3606. ecc*)
  3607. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3608. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3609. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3610. ;;
  3611. # icc used to be incompatible with GCC.
  3612. # ICC 10 doesn't accept -KPIC any more.
  3613. icc* | ifort*)
  3614. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3615. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3616. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3617. ;;
  3618. # Lahey Fortran 8.1.
  3619. lf95*)
  3620. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3621. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3622. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3623. ;;
  3624. pgcc* | pgf77* | pgf90* | pgf95*)
  3625. # Portland Group compilers (*not* the Pentium gcc compiler,
  3626. # which looks to be a dead project)
  3627. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3628. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3629. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3630. ;;
  3631. ccc*)
  3632. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3633. # All Alpha code is PIC.
  3634. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3635. ;;
  3636. xl*)
  3637. # IBM XL C 8.0/Fortran 10.1 on PPC
  3638. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3639. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3640. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3641. ;;
  3642. *)
  3643. case `$CC -V 2>&1 | sed 5q` in
  3644. *Sun\ C*)
  3645. # Sun C 5.9
  3646. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3647. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3648. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3649. ;;
  3650. *Sun\ F*)
  3651. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3652. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3653. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3654. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3655. ;;
  3656. esac
  3657. ;;
  3658. esac
  3659. ;;
  3660. newsos6)
  3661. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3662. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3663. ;;
  3664. *nto* | *qnx*)
  3665. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3666. # it will coredump.
  3667. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3668. ;;
  3669. osf3* | osf4* | osf5*)
  3670. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3671. # All OSF/1 code is PIC.
  3672. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3673. ;;
  3674. rdos*)
  3675. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3676. ;;
  3677. solaris*)
  3678. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3679. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3680. case $cc_basename in
  3681. f77* | f90* | f95*)
  3682. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  3683. *)
  3684. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  3685. esac
  3686. ;;
  3687. sunos4*)
  3688. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3689. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3690. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3691. ;;
  3692. sysv4 | sysv4.2uw2* | sysv4.3*)
  3693. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3694. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3695. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3696. ;;
  3697. sysv4*MP*)
  3698. if test -d /usr/nec ;then
  3699. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  3700. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3701. fi
  3702. ;;
  3703. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3704. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3705. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3706. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3707. ;;
  3708. unicos*)
  3709. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3710. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3711. ;;
  3712. uts4*)
  3713. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3714. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3715. ;;
  3716. *)
  3717. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3718. ;;
  3719. esac
  3720. fi
  3721. ])
  3722. case $host_os in
  3723. # For platforms which do not support PIC, -DPIC is meaningless:
  3724. *djgpp*)
  3725. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3726. ;;
  3727. *)
  3728. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  3729. ;;
  3730. esac
  3731. AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  3732. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  3733. [How to pass a linker flag through the compiler])
  3734. #
  3735. # Check to make sure the PIC flag actually works.
  3736. #
  3737. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3738. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  3739. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  3740. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  3741. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  3742. "" | " "*) ;;
  3743. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  3744. esac],
  3745. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3746. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  3747. fi
  3748. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  3749. [Additional compiler flags for building library objects])
  3750. #
  3751. # Check to make sure the static flag actually works.
  3752. #
  3753. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  3754. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  3755. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  3756. $lt_tmp_static_flag,
  3757. [],
  3758. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  3759. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  3760. [Compiler flag to prevent dynamic linking])
  3761. ])# _LT_COMPILER_PIC
  3762. # _LT_LINKER_SHLIBS([TAGNAME])
  3763. # ----------------------------
  3764. # See if the linker supports building shared libraries.
  3765. m4_defun([_LT_LINKER_SHLIBS],
  3766. [AC_REQUIRE([LT_PATH_LD])dnl
  3767. AC_REQUIRE([LT_PATH_NM])dnl
  3768. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3769. m4_require([_LT_DECL_EGREP])dnl
  3770. m4_require([_LT_DECL_SED])dnl
  3771. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  3772. m4_require([_LT_TAG_COMPILER])dnl
  3773. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3774. m4_if([$1], [CXX], [
  3775. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3776. case $host_os in
  3777. aix[[4-9]]*)
  3778. # If we're using GNU nm, then we don't want the "-C" option.
  3779. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  3780. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  3781. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  3782. else
  3783. _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'
  3784. fi
  3785. ;;
  3786. pw32*)
  3787. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  3788. ;;
  3789. cygwin* | mingw* | cegcc*)
  3790. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  3791. ;;
  3792. *)
  3793. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3794. ;;
  3795. esac
  3796. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  3797. ], [
  3798. runpath_var=
  3799. _LT_TAGVAR(allow_undefined_flag, $1)=
  3800. _LT_TAGVAR(always_export_symbols, $1)=no
  3801. _LT_TAGVAR(archive_cmds, $1)=
  3802. _LT_TAGVAR(archive_expsym_cmds, $1)=
  3803. _LT_TAGVAR(compiler_needs_object, $1)=no
  3804. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3805. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  3806. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3807. _LT_TAGVAR(hardcode_automatic, $1)=no
  3808. _LT_TAGVAR(hardcode_direct, $1)=no
  3809. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  3810. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3811. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3812. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  3813. _LT_TAGVAR(hardcode_minus_L, $1)=no
  3814. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3815. _LT_TAGVAR(inherit_rpath, $1)=no
  3816. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  3817. _LT_TAGVAR(module_cmds, $1)=
  3818. _LT_TAGVAR(module_expsym_cmds, $1)=
  3819. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  3820. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  3821. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  3822. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  3823. # include_expsyms should be a list of space-separated symbols to be *always*
  3824. # included in the symbol list
  3825. _LT_TAGVAR(include_expsyms, $1)=
  3826. # exclude_expsyms can be an extended regexp of symbols to exclude
  3827. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  3828. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  3829. # as well as any symbol that contains `d'.
  3830. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  3831. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  3832. # platforms (ab)use it in PIC code, but their linkers get confused if
  3833. # the symbol is explicitly referenced. Since portable code cannot
  3834. # rely on this symbol name, it's probably fine to never include it in
  3835. # preloaded symbol tables.
  3836. # Exclude shared library initialization/finalization symbols.
  3837. dnl Note also adjust exclude_expsyms for C++ above.
  3838. extract_expsyms_cmds=
  3839. case $host_os in
  3840. cygwin* | mingw* | pw32* | cegcc*)
  3841. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  3842. # When not using gcc, we currently assume that we are using
  3843. # Microsoft Visual C++.
  3844. if test "$GCC" != yes; then
  3845. with_gnu_ld=no
  3846. fi
  3847. ;;
  3848. interix*)
  3849. # we just hope/assume this is gcc and not c89 (= MSVC++)
  3850. with_gnu_ld=yes
  3851. ;;
  3852. openbsd*)
  3853. with_gnu_ld=no
  3854. ;;
  3855. esac
  3856. _LT_TAGVAR(ld_shlibs, $1)=yes
  3857. if test "$with_gnu_ld" = yes; then
  3858. # If archive_cmds runs LD, not CC, wlarc should be empty
  3859. wlarc='${wl}'
  3860. # Set some defaults for GNU ld with shared library support. These
  3861. # are reset later if shared libraries are not supported. Putting them
  3862. # here allows them to be overridden if necessary.
  3863. runpath_var=LD_RUN_PATH
  3864. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3865. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3866. # ancient GNU ld didn't support --whole-archive et. al.
  3867. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  3868. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3869. else
  3870. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  3871. fi
  3872. supports_anon_versioning=no
  3873. case `$LD -v 2>&1` in
  3874. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  3875. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  3876. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  3877. *\ 2.11.*) ;; # other 2.11 versions
  3878. *) supports_anon_versioning=yes ;;
  3879. esac
  3880. # See if GNU ld supports shared libraries.
  3881. case $host_os in
  3882. aix[[3-9]]*)
  3883. # On AIX/PPC, the GNU linker is very broken
  3884. if test "$host_cpu" != ia64; then
  3885. _LT_TAGVAR(ld_shlibs, $1)=no
  3886. cat <<_LT_EOF 1>&2
  3887. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  3888. *** to be unable to reliably create shared libraries on AIX.
  3889. *** Therefore, libtool is disabling shared libraries support. If you
  3890. *** really care for shared libraries, you may want to modify your PATH
  3891. *** so that a non-GNU linker is found, and then restart.
  3892. _LT_EOF
  3893. fi
  3894. ;;
  3895. amigaos*)
  3896. case $host_cpu in
  3897. powerpc)
  3898. # see comment about AmigaOS4 .so support
  3899. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3900. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  3901. ;;
  3902. m68k)
  3903. _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)'
  3904. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3905. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  3906. ;;
  3907. esac
  3908. ;;
  3909. beos*)
  3910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  3911. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  3912. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3913. # support --undefined. This deserves some investigation. FIXME
  3914. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3915. else
  3916. _LT_TAGVAR(ld_shlibs, $1)=no
  3917. fi
  3918. ;;
  3919. cygwin* | mingw* | pw32* | cegcc*)
  3920. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3921. # as there is no search path for DLLs.
  3922. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3923. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  3924. _LT_TAGVAR(always_export_symbols, $1)=no
  3925. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3926. _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'
  3927. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  3928. _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'
  3929. # If the export-symbols file already is a .def file (1st line
  3930. # is EXPORTS), use it as is; otherwise, prepend...
  3931. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3932. cp $export_symbols $output_objdir/$soname.def;
  3933. else
  3934. echo EXPORTS > $output_objdir/$soname.def;
  3935. cat $export_symbols >> $output_objdir/$soname.def;
  3936. fi~
  3937. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3938. else
  3939. _LT_TAGVAR(ld_shlibs, $1)=no
  3940. fi
  3941. ;;
  3942. interix[[3-9]]*)
  3943. _LT_TAGVAR(hardcode_direct, $1)=no
  3944. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  3945. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3946. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3947. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3948. # Instead, shared libraries are loaded at an image base (0x10000000 by
  3949. # default) and relocated if they conflict, which is a slow very memory
  3950. # consuming and fragmenting process. To avoid this, we pick a random,
  3951. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3952. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3953. _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'
  3954. _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'
  3955. ;;
  3956. gnu* | linux* | tpf* | k*bsd*-gnu)
  3957. tmp_diet=no
  3958. if test "$host_os" = linux-dietlibc; then
  3959. case $cc_basename in
  3960. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  3961. esac
  3962. fi
  3963. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  3964. && test "$tmp_diet" = no
  3965. then
  3966. tmp_addflag=
  3967. tmp_sharedflag='-shared'
  3968. case $cc_basename,$host_cpu in
  3969. pgcc*) # Portland Group C compiler
  3970. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  3971. tmp_addflag=' $pic_flag'
  3972. ;;
  3973. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  3974. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  3975. tmp_addflag=' $pic_flag -Mnomain' ;;
  3976. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  3977. tmp_addflag=' -i_dynamic' ;;
  3978. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  3979. tmp_addflag=' -i_dynamic -nofor_main' ;;
  3980. ifc* | ifort*) # Intel Fortran compiler
  3981. tmp_addflag=' -nofor_main' ;;
  3982. lf95*) # Lahey Fortran 8.1
  3983. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  3984. tmp_sharedflag='--shared' ;;
  3985. xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  3986. tmp_sharedflag='-qmkshrobj'
  3987. tmp_addflag= ;;
  3988. esac
  3989. case `$CC -V 2>&1 | sed 5q` in
  3990. *Sun\ C*) # Sun C 5.9
  3991. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  3992. _LT_TAGVAR(compiler_needs_object, $1)=yes
  3993. tmp_sharedflag='-G' ;;
  3994. *Sun\ F*) # Sun Fortran 8.3
  3995. tmp_sharedflag='-G' ;;
  3996. esac
  3997. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3998. if test "x$supports_anon_versioning" = xyes; then
  3999. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4000. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4001. echo "local: *; };" >> $output_objdir/$libname.ver~
  4002. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4003. fi
  4004. case $cc_basename in
  4005. xlf*)
  4006. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4007. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4008. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4009. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4010. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  4011. if test "x$supports_anon_versioning" = xyes; then
  4012. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4013. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4014. echo "local: *; };" >> $output_objdir/$libname.ver~
  4015. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4016. fi
  4017. ;;
  4018. esac
  4019. else
  4020. _LT_TAGVAR(ld_shlibs, $1)=no
  4021. fi
  4022. ;;
  4023. netbsd*)
  4024. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4025. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4026. wlarc=
  4027. else
  4028. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4029. _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'
  4030. fi
  4031. ;;
  4032. solaris*)
  4033. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4034. _LT_TAGVAR(ld_shlibs, $1)=no
  4035. cat <<_LT_EOF 1>&2
  4036. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4037. *** create shared libraries on Solaris systems. Therefore, libtool
  4038. *** is disabling shared libraries support. We urge you to upgrade GNU
  4039. *** binutils to release 2.9.1 or newer. Another option is to modify
  4040. *** your PATH or compiler configuration so that the native linker is
  4041. *** used, and then restart.
  4042. _LT_EOF
  4043. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4044. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4045. _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'
  4046. else
  4047. _LT_TAGVAR(ld_shlibs, $1)=no
  4048. fi
  4049. ;;
  4050. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4051. case `$LD -v 2>&1` in
  4052. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4053. _LT_TAGVAR(ld_shlibs, $1)=no
  4054. cat <<_LT_EOF 1>&2
  4055. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4056. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4057. *** is disabling shared libraries support. We urge you to upgrade GNU
  4058. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4059. *** your PATH or compiler configuration so that the native linker is
  4060. *** used, and then restart.
  4061. _LT_EOF
  4062. ;;
  4063. *)
  4064. # For security reasons, it is highly recommended that you always
  4065. # use absolute paths for naming shared libraries, and exclude the
  4066. # DT_RUNPATH tag from executables and libraries. But doing so
  4067. # requires that you compile everything twice, which is a pain.
  4068. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4069. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4070. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4071. _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'
  4072. else
  4073. _LT_TAGVAR(ld_shlibs, $1)=no
  4074. fi
  4075. ;;
  4076. esac
  4077. ;;
  4078. sunos4*)
  4079. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4080. wlarc=
  4081. _LT_TAGVAR(hardcode_direct, $1)=yes
  4082. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4083. ;;
  4084. *)
  4085. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4086. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4087. _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'
  4088. else
  4089. _LT_TAGVAR(ld_shlibs, $1)=no
  4090. fi
  4091. ;;
  4092. esac
  4093. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4094. runpath_var=
  4095. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4096. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4097. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4098. fi
  4099. else
  4100. # PORTME fill in a description of your system's linker (not GNU ld)
  4101. case $host_os in
  4102. aix3*)
  4103. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4104. _LT_TAGVAR(always_export_symbols, $1)=yes
  4105. _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'
  4106. # Note: this linker hardcodes the directories in LIBPATH if there
  4107. # are no directories specified by -L.
  4108. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4109. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4110. # Neither direct hardcoding nor static linking is supported with a
  4111. # broken collect2.
  4112. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4113. fi
  4114. ;;
  4115. aix[[4-9]]*)
  4116. if test "$host_cpu" = ia64; then
  4117. # On IA64, the linker does run time linking by default, so we don't
  4118. # have to do anything special.
  4119. aix_use_runtimelinking=no
  4120. exp_sym_flag='-Bexport'
  4121. no_entry_flag=""
  4122. else
  4123. # If we're using GNU nm, then we don't want the "-C" option.
  4124. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4125. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4126. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4127. else
  4128. _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'
  4129. fi
  4130. aix_use_runtimelinking=no
  4131. # Test if we are trying to use run time linking or normal
  4132. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4133. # need to do runtime linking.
  4134. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4135. for ld_flag in $LDFLAGS; do
  4136. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4137. aix_use_runtimelinking=yes
  4138. break
  4139. fi
  4140. done
  4141. ;;
  4142. esac
  4143. exp_sym_flag='-bexport'
  4144. no_entry_flag='-bnoentry'
  4145. fi
  4146. # When large executables or shared objects are built, AIX ld can
  4147. # have problems creating the table of contents. If linking a library
  4148. # or program results in "error TOC overflow" add -mminimal-toc to
  4149. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4150. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4151. _LT_TAGVAR(archive_cmds, $1)=''
  4152. _LT_TAGVAR(hardcode_direct, $1)=yes
  4153. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4154. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4155. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4156. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4157. if test "$GCC" = yes; then
  4158. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4159. # We only want to do this on AIX 4.2 and lower, the check
  4160. # below for broken collect2 doesn't work under 4.3+
  4161. collect2name=`${CC} -print-prog-name=collect2`
  4162. if test -f "$collect2name" &&
  4163. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4164. then
  4165. # We have reworked collect2
  4166. :
  4167. else
  4168. # We have old collect2
  4169. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4170. # It fails to find uninstalled libraries when the uninstalled
  4171. # path is not listed in the libpath. Setting hardcode_minus_L
  4172. # to unsupported forces relinking
  4173. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4174. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4175. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4176. fi
  4177. ;;
  4178. esac
  4179. shared_flag='-shared'
  4180. if test "$aix_use_runtimelinking" = yes; then
  4181. shared_flag="$shared_flag "'${wl}-G'
  4182. fi
  4183. else
  4184. # not using gcc
  4185. if test "$host_cpu" = ia64; then
  4186. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4187. # chokes on -Wl,-G. The following line is correct:
  4188. shared_flag='-G'
  4189. else
  4190. if test "$aix_use_runtimelinking" = yes; then
  4191. shared_flag='${wl}-G'
  4192. else
  4193. shared_flag='${wl}-bM:SRE'
  4194. fi
  4195. fi
  4196. fi
  4197. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4198. # It seems that -bexpall does not export symbols beginning with
  4199. # underscore (_), so it is better to generate a list of symbols to export.
  4200. _LT_TAGVAR(always_export_symbols, $1)=yes
  4201. if test "$aix_use_runtimelinking" = yes; then
  4202. # Warning - without using the other runtime loading flags (-brtl),
  4203. # -berok will link without error, but may produce a broken library.
  4204. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4205. # Determine the default libpath from the value encoded in an
  4206. # empty executable.
  4207. _LT_SYS_MODULE_PATH_AIX
  4208. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4209. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4210. else
  4211. if test "$host_cpu" = ia64; then
  4212. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4213. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4214. _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"
  4215. else
  4216. # Determine the default libpath from the value encoded in an
  4217. # empty executable.
  4218. _LT_SYS_MODULE_PATH_AIX
  4219. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4220. # Warning - without using the other run time loading flags,
  4221. # -berok will link without error, but may produce a broken library.
  4222. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4223. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4224. # Exported symbols can be pulled into shared objects from archives
  4225. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4226. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4227. # This is similar to how AIX traditionally builds its shared libraries.
  4228. _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'
  4229. fi
  4230. fi
  4231. ;;
  4232. amigaos*)
  4233. case $host_cpu in
  4234. powerpc)
  4235. # see comment about AmigaOS4 .so support
  4236. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4237. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4238. ;;
  4239. m68k)
  4240. _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)'
  4241. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4242. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4243. ;;
  4244. esac
  4245. ;;
  4246. bsdi[[45]]*)
  4247. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4248. ;;
  4249. cygwin* | mingw* | pw32* | cegcc*)
  4250. # When not using gcc, we currently assume that we are using
  4251. # Microsoft Visual C++.
  4252. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4253. # no search path for DLLs.
  4254. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4255. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4256. # Tell ltmain to make .lib files, not .a files.
  4257. libext=lib
  4258. # Tell ltmain to make .dll files, not .so files.
  4259. shrext_cmds=".dll"
  4260. # FIXME: Setting linknames here is a bad hack.
  4261. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4262. # The linker will automatically build a .lib file if we build a DLL.
  4263. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4264. # FIXME: Should let the user specify the lib program.
  4265. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4266. _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4267. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4268. ;;
  4269. darwin* | rhapsody*)
  4270. _LT_DARWIN_LINKER_FEATURES($1)
  4271. ;;
  4272. dgux*)
  4273. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4274. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4275. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4276. ;;
  4277. freebsd1*)
  4278. _LT_TAGVAR(ld_shlibs, $1)=no
  4279. ;;
  4280. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4281. # support. Future versions do this automatically, but an explicit c++rt0.o
  4282. # does not break anything, and helps significantly (at the cost of a little
  4283. # extra space).
  4284. freebsd2.2*)
  4285. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4286. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4287. _LT_TAGVAR(hardcode_direct, $1)=yes
  4288. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4289. ;;
  4290. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4291. freebsd2*)
  4292. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4293. _LT_TAGVAR(hardcode_direct, $1)=yes
  4294. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4295. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4296. ;;
  4297. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4298. freebsd* | dragonfly*)
  4299. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4300. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4301. _LT_TAGVAR(hardcode_direct, $1)=yes
  4302. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4303. ;;
  4304. hpux9*)
  4305. if test "$GCC" = yes; then
  4306. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4307. else
  4308. _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'
  4309. fi
  4310. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4311. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4312. _LT_TAGVAR(hardcode_direct, $1)=yes
  4313. # hardcode_minus_L: Not really in the search PATH,
  4314. # but as the default location of the library.
  4315. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4316. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4317. ;;
  4318. hpux10*)
  4319. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4320. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4321. else
  4322. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4323. fi
  4324. if test "$with_gnu_ld" = no; then
  4325. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4326. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4327. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4328. _LT_TAGVAR(hardcode_direct, $1)=yes
  4329. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4330. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4331. # hardcode_minus_L: Not really in the search PATH,
  4332. # but as the default location of the library.
  4333. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4334. fi
  4335. ;;
  4336. hpux11*)
  4337. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4338. case $host_cpu in
  4339. hppa*64*)
  4340. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4341. ;;
  4342. ia64*)
  4343. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4344. ;;
  4345. *)
  4346. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4347. ;;
  4348. esac
  4349. else
  4350. case $host_cpu in
  4351. hppa*64*)
  4352. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4353. ;;
  4354. ia64*)
  4355. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4356. ;;
  4357. *)
  4358. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4359. ;;
  4360. esac
  4361. fi
  4362. if test "$with_gnu_ld" = no; then
  4363. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4364. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4365. case $host_cpu in
  4366. hppa*64*|ia64*)
  4367. _LT_TAGVAR(hardcode_direct, $1)=no
  4368. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4369. ;;
  4370. *)
  4371. _LT_TAGVAR(hardcode_direct, $1)=yes
  4372. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4373. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4374. # hardcode_minus_L: Not really in the search PATH,
  4375. # but as the default location of the library.
  4376. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4377. ;;
  4378. esac
  4379. fi
  4380. ;;
  4381. irix5* | irix6* | nonstopux*)
  4382. if test "$GCC" = yes; then
  4383. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4384. # Try to use the -exported_symbol ld option, if it does not
  4385. # work, assume that -exports_file does not work either and
  4386. # implicitly export all symbols.
  4387. save_LDFLAGS="$LDFLAGS"
  4388. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4389. AC_LINK_IFELSE(int foo(void) {},
  4390. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4391. )
  4392. LDFLAGS="$save_LDFLAGS"
  4393. else
  4394. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  4395. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4396. fi
  4397. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4398. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4399. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4400. _LT_TAGVAR(inherit_rpath, $1)=yes
  4401. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4402. ;;
  4403. netbsd*)
  4404. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4405. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4406. else
  4407. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4408. fi
  4409. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4410. _LT_TAGVAR(hardcode_direct, $1)=yes
  4411. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4412. ;;
  4413. newsos6)
  4414. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4415. _LT_TAGVAR(hardcode_direct, $1)=yes
  4416. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4417. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4418. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4419. ;;
  4420. *nto* | *qnx*)
  4421. ;;
  4422. openbsd*)
  4423. if test -f /usr/libexec/ld.so; then
  4424. _LT_TAGVAR(hardcode_direct, $1)=yes
  4425. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4426. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4427. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4428. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4429. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4430. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4431. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4432. else
  4433. case $host_os in
  4434. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4435. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4436. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4437. ;;
  4438. *)
  4439. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4440. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4441. ;;
  4442. esac
  4443. fi
  4444. else
  4445. _LT_TAGVAR(ld_shlibs, $1)=no
  4446. fi
  4447. ;;
  4448. os2*)
  4449. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4450. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4451. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4452. _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'
  4453. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4454. ;;
  4455. osf3*)
  4456. if test "$GCC" = yes; then
  4457. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4458. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4459. else
  4460. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4461. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  4462. fi
  4463. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4464. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4465. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4466. ;;
  4467. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4468. if test "$GCC" = yes; then
  4469. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4470. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4471. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4472. else
  4473. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4474. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  4475. _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~
  4476. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4477. # Both c and cxx compiler support -rpath directly
  4478. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4479. fi
  4480. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4481. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4482. ;;
  4483. solaris*)
  4484. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4485. if test "$GCC" = yes; then
  4486. wlarc='${wl}'
  4487. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4488. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4489. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4490. else
  4491. case `$CC -V 2>&1` in
  4492. *"Compilers 5.0"*)
  4493. wlarc=''
  4494. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4495. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4496. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4497. ;;
  4498. *)
  4499. wlarc='${wl}'
  4500. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4501. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4502. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4503. ;;
  4504. esac
  4505. fi
  4506. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4507. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4508. case $host_os in
  4509. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4510. *)
  4511. # The compiler driver will combine and reorder linker options,
  4512. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4513. # but is careful enough not to reorder.
  4514. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4515. if test "$GCC" = yes; then
  4516. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4517. else
  4518. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4519. fi
  4520. ;;
  4521. esac
  4522. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4523. ;;
  4524. sunos4*)
  4525. if test "x$host_vendor" = xsequent; then
  4526. # Use $CC to link under sequent, because it throws in some extra .o
  4527. # files that make .init and .fini sections work.
  4528. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4529. else
  4530. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4531. fi
  4532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4533. _LT_TAGVAR(hardcode_direct, $1)=yes
  4534. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4535. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4536. ;;
  4537. sysv4)
  4538. case $host_vendor in
  4539. sni)
  4540. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4541. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  4542. ;;
  4543. siemens)
  4544. ## LD is ld it makes a PLAMLIB
  4545. ## CC just makes a GrossModule.
  4546. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4547. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  4548. _LT_TAGVAR(hardcode_direct, $1)=no
  4549. ;;
  4550. motorola)
  4551. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4552. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  4553. ;;
  4554. esac
  4555. runpath_var='LD_RUN_PATH'
  4556. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4557. ;;
  4558. sysv4.3*)
  4559. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4560. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4561. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  4562. ;;
  4563. sysv4*MP*)
  4564. if test -d /usr/nec; then
  4565. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4566. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4567. runpath_var=LD_RUN_PATH
  4568. hardcode_runpath_var=yes
  4569. _LT_TAGVAR(ld_shlibs, $1)=yes
  4570. fi
  4571. ;;
  4572. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4573. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4574. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4575. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4576. runpath_var='LD_RUN_PATH'
  4577. if test "$GCC" = yes; then
  4578. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4579. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4580. else
  4581. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4582. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4583. fi
  4584. ;;
  4585. sysv5* | sco3.2v5* | sco5v6*)
  4586. # Note: We can NOT use -z defs as we might desire, because we do not
  4587. # link with -lc, and that would cause any symbols used from libc to
  4588. # always be unresolved, which means just about no library would
  4589. # ever link correctly. If we're not using GNU ld we use -z text
  4590. # though, which does catch some bad symbols but isn't as heavy-handed
  4591. # as -z defs.
  4592. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4593. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4594. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4595. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4596. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  4597. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4598. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4599. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4600. runpath_var='LD_RUN_PATH'
  4601. if test "$GCC" = yes; then
  4602. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4603. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4604. else
  4605. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4606. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4607. fi
  4608. ;;
  4609. uts4*)
  4610. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4611. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4612. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4613. ;;
  4614. *)
  4615. _LT_TAGVAR(ld_shlibs, $1)=no
  4616. ;;
  4617. esac
  4618. if test x$host_vendor = xsni; then
  4619. case $host in
  4620. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4621. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  4622. ;;
  4623. esac
  4624. fi
  4625. fi
  4626. ])
  4627. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  4628. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4629. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  4630. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  4631. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  4632. _LT_DECL([], [extract_expsyms_cmds], [2],
  4633. [The commands to extract the exported symbol list from a shared archive])
  4634. #
  4635. # Do we need to explicitly link libc?
  4636. #
  4637. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  4638. x|xyes)
  4639. # Assume -lc should be added
  4640. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4641. if test "$enable_shared" = yes && test "$GCC" = yes; then
  4642. case $_LT_TAGVAR(archive_cmds, $1) in
  4643. *'~'*)
  4644. # FIXME: we may have to deal with multi-command sequences.
  4645. ;;
  4646. '$CC '*)
  4647. # Test whether the compiler implicitly links with -lc since on some
  4648. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  4649. # to ld, don't add -lc before -lgcc.
  4650. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  4651. $RM conftest*
  4652. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4653. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  4654. soname=conftest
  4655. lib=conftest
  4656. libobjs=conftest.$ac_objext
  4657. deplibs=
  4658. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  4659. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  4660. compiler_flags=-v
  4661. linker_flags=-v
  4662. verstring=
  4663. output_objdir=.
  4664. libname=conftest
  4665. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  4666. _LT_TAGVAR(allow_undefined_flag, $1)=
  4667. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  4668. then
  4669. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4670. else
  4671. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4672. fi
  4673. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  4674. else
  4675. cat conftest.err 1>&5
  4676. fi
  4677. $RM conftest*
  4678. AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  4679. ;;
  4680. esac
  4681. fi
  4682. ;;
  4683. esac
  4684. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  4685. [Whether or not to add -lc for building shared libraries])
  4686. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  4687. [enable_shared_with_static_runtimes], [0],
  4688. [Whether or not to disallow shared libs when runtime libs are static])
  4689. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  4690. [Compiler flag to allow reflexive dlopens])
  4691. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  4692. [Compiler flag to generate shared objects directly from archives])
  4693. _LT_TAGDECL([], [compiler_needs_object], [1],
  4694. [Whether the compiler copes with passing no objects directly])
  4695. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  4696. [Create an old-style archive from a shared archive])
  4697. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  4698. [Create a temporary old-style archive to link instead of a shared archive])
  4699. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  4700. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  4701. _LT_TAGDECL([], [module_cmds], [2],
  4702. [Commands used to build a loadable module if different from building
  4703. a shared archive.])
  4704. _LT_TAGDECL([], [module_expsym_cmds], [2])
  4705. _LT_TAGDECL([], [with_gnu_ld], [1],
  4706. [Whether we are building with GNU ld or not])
  4707. _LT_TAGDECL([], [allow_undefined_flag], [1],
  4708. [Flag that allows shared libraries with undefined symbols to be built])
  4709. _LT_TAGDECL([], [no_undefined_flag], [1],
  4710. [Flag that enforces no undefined symbols])
  4711. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  4712. [Flag to hardcode $libdir into a binary during linking.
  4713. This must work even if $libdir does not exist])
  4714. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  4715. [[If ld is used when linking, flag to hardcode $libdir into a binary
  4716. during linking. This must work even if $libdir does not exist]])
  4717. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  4718. [Whether we need a single "-rpath" flag with a separated argument])
  4719. _LT_TAGDECL([], [hardcode_direct], [0],
  4720. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  4721. DIR into the resulting binary])
  4722. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  4723. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  4724. DIR into the resulting binary and the resulting library dependency is
  4725. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  4726. library is relocated])
  4727. _LT_TAGDECL([], [hardcode_minus_L], [0],
  4728. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  4729. into the resulting binary])
  4730. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  4731. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  4732. into the resulting binary])
  4733. _LT_TAGDECL([], [hardcode_automatic], [0],
  4734. [Set to "yes" if building a shared library automatically hardcodes DIR
  4735. into the library and all subsequent libraries and executables linked
  4736. against it])
  4737. _LT_TAGDECL([], [inherit_rpath], [0],
  4738. [Set to yes if linker adds runtime paths of dependent libraries
  4739. to runtime path list])
  4740. _LT_TAGDECL([], [link_all_deplibs], [0],
  4741. [Whether libtool must link a program against all its dependency libraries])
  4742. _LT_TAGDECL([], [fix_srcfile_path], [1],
  4743. [Fix the shell variable $srcfile for the compiler])
  4744. _LT_TAGDECL([], [always_export_symbols], [0],
  4745. [Set to "yes" if exported symbols are required])
  4746. _LT_TAGDECL([], [export_symbols_cmds], [2],
  4747. [The commands to list exported symbols])
  4748. _LT_TAGDECL([], [exclude_expsyms], [1],
  4749. [Symbols that should not be listed in the preloaded symbols])
  4750. _LT_TAGDECL([], [include_expsyms], [1],
  4751. [Symbols that must always be exported])
  4752. _LT_TAGDECL([], [prelink_cmds], [2],
  4753. [Commands necessary for linking programs (against libraries) with templates])
  4754. _LT_TAGDECL([], [file_list_spec], [1],
  4755. [Specify filename containing input files])
  4756. dnl FIXME: Not yet implemented
  4757. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  4758. dnl [Compiler flag to generate thread safe objects])
  4759. ])# _LT_LINKER_SHLIBS
  4760. # _LT_LANG_C_CONFIG([TAG])
  4761. # ------------------------
  4762. # Ensure that the configuration variables for a C compiler are suitably
  4763. # defined. These variables are subsequently used by _LT_CONFIG to write
  4764. # the compiler configuration to `libtool'.
  4765. m4_defun([_LT_LANG_C_CONFIG],
  4766. [m4_require([_LT_DECL_EGREP])dnl
  4767. lt_save_CC="$CC"
  4768. AC_LANG_PUSH(C)
  4769. # Source file extension for C test sources.
  4770. ac_ext=c
  4771. # Object file extension for compiled C test sources.
  4772. objext=o
  4773. _LT_TAGVAR(objext, $1)=$objext
  4774. # Code to be used in simple compile tests
  4775. lt_simple_compile_test_code="int some_variable = 0;"
  4776. # Code to be used in simple link tests
  4777. lt_simple_link_test_code='int main(){return(0);}'
  4778. _LT_TAG_COMPILER
  4779. # Save the default compiler, since it gets overwritten when the other
  4780. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  4781. compiler_DEFAULT=$CC
  4782. # save warnings/boilerplate of simple test code
  4783. _LT_COMPILER_BOILERPLATE
  4784. _LT_LINKER_BOILERPLATE
  4785. if test -n "$compiler"; then
  4786. _LT_COMPILER_NO_RTTI($1)
  4787. _LT_COMPILER_PIC($1)
  4788. _LT_COMPILER_C_O($1)
  4789. _LT_COMPILER_FILE_LOCKS($1)
  4790. _LT_LINKER_SHLIBS($1)
  4791. _LT_SYS_DYNAMIC_LINKER($1)
  4792. _LT_LINKER_HARDCODE_LIBPATH($1)
  4793. LT_SYS_DLOPEN_SELF
  4794. _LT_CMD_STRIPLIB
  4795. # Report which library types will actually be built
  4796. AC_MSG_CHECKING([if libtool supports shared libraries])
  4797. AC_MSG_RESULT([$can_build_shared])
  4798. AC_MSG_CHECKING([whether to build shared libraries])
  4799. test "$can_build_shared" = "no" && enable_shared=no
  4800. # On AIX, shared libraries and static libraries use the same namespace, and
  4801. # are all built from PIC.
  4802. case $host_os in
  4803. aix3*)
  4804. test "$enable_shared" = yes && enable_static=no
  4805. if test -n "$RANLIB"; then
  4806. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4807. postinstall_cmds='$RANLIB $lib'
  4808. fi
  4809. ;;
  4810. aix[[4-9]]*)
  4811. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4812. test "$enable_shared" = yes && enable_static=no
  4813. fi
  4814. ;;
  4815. esac
  4816. AC_MSG_RESULT([$enable_shared])
  4817. AC_MSG_CHECKING([whether to build static libraries])
  4818. # Make sure either enable_shared or enable_static is yes.
  4819. test "$enable_shared" = yes || enable_static=yes
  4820. AC_MSG_RESULT([$enable_static])
  4821. _LT_CONFIG($1)
  4822. fi
  4823. AC_LANG_POP
  4824. CC="$lt_save_CC"
  4825. ])# _LT_LANG_C_CONFIG
  4826. # _LT_PROG_CXX
  4827. # ------------
  4828. # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  4829. # compiler, we have our own version here.
  4830. m4_defun([_LT_PROG_CXX],
  4831. [
  4832. pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  4833. AC_PROG_CXX
  4834. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4835. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4836. (test "X$CXX" != "Xg++"))) ; then
  4837. AC_PROG_CXXCPP
  4838. else
  4839. _lt_caught_CXX_error=yes
  4840. fi
  4841. popdef([AC_MSG_ERROR])
  4842. ])# _LT_PROG_CXX
  4843. dnl aclocal-1.4 backwards compatibility:
  4844. dnl AC_DEFUN([_LT_PROG_CXX], [])
  4845. # _LT_LANG_CXX_CONFIG([TAG])
  4846. # --------------------------
  4847. # Ensure that the configuration variables for a C++ compiler are suitably
  4848. # defined. These variables are subsequently used by _LT_CONFIG to write
  4849. # the compiler configuration to `libtool'.
  4850. m4_defun([_LT_LANG_CXX_CONFIG],
  4851. [AC_REQUIRE([_LT_PROG_CXX])dnl
  4852. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4853. m4_require([_LT_DECL_EGREP])dnl
  4854. AC_LANG_PUSH(C++)
  4855. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4856. _LT_TAGVAR(allow_undefined_flag, $1)=
  4857. _LT_TAGVAR(always_export_symbols, $1)=no
  4858. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4859. _LT_TAGVAR(compiler_needs_object, $1)=no
  4860. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4861. _LT_TAGVAR(hardcode_direct, $1)=no
  4862. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4863. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4864. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4865. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4866. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4867. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4868. _LT_TAGVAR(hardcode_automatic, $1)=no
  4869. _LT_TAGVAR(inherit_rpath, $1)=no
  4870. _LT_TAGVAR(module_cmds, $1)=
  4871. _LT_TAGVAR(module_expsym_cmds, $1)=
  4872. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4873. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4874. _LT_TAGVAR(no_undefined_flag, $1)=
  4875. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4876. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4877. # Source file extension for C++ test sources.
  4878. ac_ext=cpp
  4879. # Object file extension for compiled C++ test sources.
  4880. objext=o
  4881. _LT_TAGVAR(objext, $1)=$objext
  4882. # No sense in running all these tests if we already determined that
  4883. # the CXX compiler isn't working. Some variables (like enable_shared)
  4884. # are currently assumed to apply to all compilers on this platform,
  4885. # and will be corrupted by setting them based on a non-working compiler.
  4886. if test "$_lt_caught_CXX_error" != yes; then
  4887. # Code to be used in simple compile tests
  4888. lt_simple_compile_test_code="int some_variable = 0;"
  4889. # Code to be used in simple link tests
  4890. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  4891. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4892. _LT_TAG_COMPILER
  4893. # save warnings/boilerplate of simple test code
  4894. _LT_COMPILER_BOILERPLATE
  4895. _LT_LINKER_BOILERPLATE
  4896. # Allow CC to be a program name with arguments.
  4897. lt_save_CC=$CC
  4898. lt_save_LD=$LD
  4899. lt_save_GCC=$GCC
  4900. GCC=$GXX
  4901. lt_save_with_gnu_ld=$with_gnu_ld
  4902. lt_save_path_LD=$lt_cv_path_LD
  4903. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4904. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4905. else
  4906. $as_unset lt_cv_prog_gnu_ld
  4907. fi
  4908. if test -n "${lt_cv_path_LDCXX+set}"; then
  4909. lt_cv_path_LD=$lt_cv_path_LDCXX
  4910. else
  4911. $as_unset lt_cv_path_LD
  4912. fi
  4913. test -z "${LDCXX+set}" || LD=$LDCXX
  4914. CC=${CXX-"c++"}
  4915. compiler=$CC
  4916. _LT_TAGVAR(compiler, $1)=$CC
  4917. _LT_CC_BASENAME([$compiler])
  4918. if test -n "$compiler"; then
  4919. # We don't want -fno-exception when compiling C++ code, so set the
  4920. # no_builtin_flag separately
  4921. if test "$GXX" = yes; then
  4922. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4923. else
  4924. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4925. fi
  4926. if test "$GXX" = yes; then
  4927. # Set up default GNU C++ configuration
  4928. LT_PATH_LD
  4929. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4930. # archiving commands below assume that GNU ld is being used.
  4931. if test "$with_gnu_ld" = yes; then
  4932. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4933. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4934. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4935. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4936. # If archive_cmds runs LD, not CC, wlarc should be empty
  4937. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4938. # investigate it a little bit more. (MM)
  4939. wlarc='${wl}'
  4940. # ancient GNU ld didn't support --whole-archive et. al.
  4941. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  4942. $GREP 'no-whole-archive' > /dev/null; then
  4943. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4944. else
  4945. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4946. fi
  4947. else
  4948. with_gnu_ld=no
  4949. wlarc=
  4950. # A generic and very simple default shared library creation
  4951. # command for GNU C++ for the case where it uses the native
  4952. # linker, instead of GNU ld. If possible, this setting should
  4953. # overridden to take advantage of the native linker features on
  4954. # the platform it is being used on.
  4955. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4956. fi
  4957. # Commands to make compiler produce verbose output that lists
  4958. # what "hidden" libraries, object files and flags are used when
  4959. # linking a shared library.
  4960. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  4961. else
  4962. GXX=no
  4963. with_gnu_ld=no
  4964. wlarc=
  4965. fi
  4966. # PORTME: fill in a description of your system's C++ link characteristics
  4967. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4968. _LT_TAGVAR(ld_shlibs, $1)=yes
  4969. case $host_os in
  4970. aix3*)
  4971. # FIXME: insert proper C++ library support
  4972. _LT_TAGVAR(ld_shlibs, $1)=no
  4973. ;;
  4974. aix[[4-9]]*)
  4975. if test "$host_cpu" = ia64; then
  4976. # On IA64, the linker does run time linking by default, so we don't
  4977. # have to do anything special.
  4978. aix_use_runtimelinking=no
  4979. exp_sym_flag='-Bexport'
  4980. no_entry_flag=""
  4981. else
  4982. aix_use_runtimelinking=no
  4983. # Test if we are trying to use run time linking or normal
  4984. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4985. # need to do runtime linking.
  4986. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4987. for ld_flag in $LDFLAGS; do
  4988. case $ld_flag in
  4989. *-brtl*)
  4990. aix_use_runtimelinking=yes
  4991. break
  4992. ;;
  4993. esac
  4994. done
  4995. ;;
  4996. esac
  4997. exp_sym_flag='-bexport'
  4998. no_entry_flag='-bnoentry'
  4999. fi
  5000. # When large executables or shared objects are built, AIX ld can
  5001. # have problems creating the table of contents. If linking a library
  5002. # or program results in "error TOC overflow" add -mminimal-toc to
  5003. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5004. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5005. _LT_TAGVAR(archive_cmds, $1)=''
  5006. _LT_TAGVAR(hardcode_direct, $1)=yes
  5007. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5008. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5009. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5010. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5011. if test "$GXX" = yes; then
  5012. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5013. # We only want to do this on AIX 4.2 and lower, the check
  5014. # below for broken collect2 doesn't work under 4.3+
  5015. collect2name=`${CC} -print-prog-name=collect2`
  5016. if test -f "$collect2name" &&
  5017. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5018. then
  5019. # We have reworked collect2
  5020. :
  5021. else
  5022. # We have old collect2
  5023. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5024. # It fails to find uninstalled libraries when the uninstalled
  5025. # path is not listed in the libpath. Setting hardcode_minus_L
  5026. # to unsupported forces relinking
  5027. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5028. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5029. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5030. fi
  5031. esac
  5032. shared_flag='-shared'
  5033. if test "$aix_use_runtimelinking" = yes; then
  5034. shared_flag="$shared_flag "'${wl}-G'
  5035. fi
  5036. else
  5037. # not using gcc
  5038. if test "$host_cpu" = ia64; then
  5039. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5040. # chokes on -Wl,-G. The following line is correct:
  5041. shared_flag='-G'
  5042. else
  5043. if test "$aix_use_runtimelinking" = yes; then
  5044. shared_flag='${wl}-G'
  5045. else
  5046. shared_flag='${wl}-bM:SRE'
  5047. fi
  5048. fi
  5049. fi
  5050. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5051. # It seems that -bexpall does not export symbols beginning with
  5052. # underscore (_), so it is better to generate a list of symbols to
  5053. # export.
  5054. _LT_TAGVAR(always_export_symbols, $1)=yes
  5055. if test "$aix_use_runtimelinking" = yes; then
  5056. # Warning - without using the other runtime loading flags (-brtl),
  5057. # -berok will link without error, but may produce a broken library.
  5058. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5059. # Determine the default libpath from the value encoded in an empty
  5060. # executable.
  5061. _LT_SYS_MODULE_PATH_AIX
  5062. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5063. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5064. else
  5065. if test "$host_cpu" = ia64; then
  5066. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5067. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5068. _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"
  5069. else
  5070. # Determine the default libpath from the value encoded in an
  5071. # empty executable.
  5072. _LT_SYS_MODULE_PATH_AIX
  5073. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5074. # Warning - without using the other run time loading flags,
  5075. # -berok will link without error, but may produce a broken library.
  5076. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5077. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5078. # Exported symbols can be pulled into shared objects from archives
  5079. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5080. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5081. # This is similar to how AIX traditionally builds its shared
  5082. # libraries.
  5083. _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'
  5084. fi
  5085. fi
  5086. ;;
  5087. beos*)
  5088. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5089. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5090. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5091. # support --undefined. This deserves some investigation. FIXME
  5092. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5093. else
  5094. _LT_TAGVAR(ld_shlibs, $1)=no
  5095. fi
  5096. ;;
  5097. chorus*)
  5098. case $cc_basename in
  5099. *)
  5100. # FIXME: insert proper C++ library support
  5101. _LT_TAGVAR(ld_shlibs, $1)=no
  5102. ;;
  5103. esac
  5104. ;;
  5105. cygwin* | mingw* | pw32* | cegcc*)
  5106. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5107. # as there is no search path for DLLs.
  5108. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5109. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5110. _LT_TAGVAR(always_export_symbols, $1)=no
  5111. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5112. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5113. _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'
  5114. # If the export-symbols file already is a .def file (1st line
  5115. # is EXPORTS), use it as is; otherwise, prepend...
  5116. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5117. cp $export_symbols $output_objdir/$soname.def;
  5118. else
  5119. echo EXPORTS > $output_objdir/$soname.def;
  5120. cat $export_symbols >> $output_objdir/$soname.def;
  5121. fi~
  5122. $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'
  5123. else
  5124. _LT_TAGVAR(ld_shlibs, $1)=no
  5125. fi
  5126. ;;
  5127. darwin* | rhapsody*)
  5128. _LT_DARWIN_LINKER_FEATURES($1)
  5129. ;;
  5130. dgux*)
  5131. case $cc_basename in
  5132. ec++*)
  5133. # FIXME: insert proper C++ library support
  5134. _LT_TAGVAR(ld_shlibs, $1)=no
  5135. ;;
  5136. ghcx*)
  5137. # Green Hills C++ Compiler
  5138. # FIXME: insert proper C++ library support
  5139. _LT_TAGVAR(ld_shlibs, $1)=no
  5140. ;;
  5141. *)
  5142. # FIXME: insert proper C++ library support
  5143. _LT_TAGVAR(ld_shlibs, $1)=no
  5144. ;;
  5145. esac
  5146. ;;
  5147. freebsd[[12]]*)
  5148. # C++ shared libraries reported to be fairly broken before
  5149. # switch to ELF
  5150. _LT_TAGVAR(ld_shlibs, $1)=no
  5151. ;;
  5152. freebsd-elf*)
  5153. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5154. ;;
  5155. freebsd* | dragonfly*)
  5156. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5157. # conventions
  5158. _LT_TAGVAR(ld_shlibs, $1)=yes
  5159. ;;
  5160. gnu*)
  5161. ;;
  5162. hpux9*)
  5163. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5164. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5165. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5166. _LT_TAGVAR(hardcode_direct, $1)=yes
  5167. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5168. # but as the default
  5169. # location of the library.
  5170. case $cc_basename in
  5171. CC*)
  5172. # FIXME: insert proper C++ library support
  5173. _LT_TAGVAR(ld_shlibs, $1)=no
  5174. ;;
  5175. aCC*)
  5176. _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'
  5177. # Commands to make compiler produce verbose output that lists
  5178. # what "hidden" libraries, object files and flags are used when
  5179. # linking a shared library.
  5180. #
  5181. # There doesn't appear to be a way to prevent this compiler from
  5182. # explicitly linking system object files so we need to strip them
  5183. # from the output so that they don't get included in the library
  5184. # dependencies.
  5185. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5186. ;;
  5187. *)
  5188. if test "$GXX" = yes; then
  5189. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5190. else
  5191. # FIXME: insert proper C++ library support
  5192. _LT_TAGVAR(ld_shlibs, $1)=no
  5193. fi
  5194. ;;
  5195. esac
  5196. ;;
  5197. hpux10*|hpux11*)
  5198. if test $with_gnu_ld = no; then
  5199. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5200. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5201. case $host_cpu in
  5202. hppa*64*|ia64*)
  5203. ;;
  5204. *)
  5205. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5206. ;;
  5207. esac
  5208. fi
  5209. case $host_cpu in
  5210. hppa*64*|ia64*)
  5211. _LT_TAGVAR(hardcode_direct, $1)=no
  5212. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5213. ;;
  5214. *)
  5215. _LT_TAGVAR(hardcode_direct, $1)=yes
  5216. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5217. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5218. # but as the default
  5219. # location of the library.
  5220. ;;
  5221. esac
  5222. case $cc_basename in
  5223. CC*)
  5224. # FIXME: insert proper C++ library support
  5225. _LT_TAGVAR(ld_shlibs, $1)=no
  5226. ;;
  5227. aCC*)
  5228. case $host_cpu in
  5229. hppa*64*)
  5230. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5231. ;;
  5232. ia64*)
  5233. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5234. ;;
  5235. *)
  5236. _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'
  5237. ;;
  5238. esac
  5239. # Commands to make compiler produce verbose output that lists
  5240. # what "hidden" libraries, object files and flags are used when
  5241. # linking a shared library.
  5242. #
  5243. # There doesn't appear to be a way to prevent this compiler from
  5244. # explicitly linking system object files so we need to strip them
  5245. # from the output so that they don't get included in the library
  5246. # dependencies.
  5247. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5248. ;;
  5249. *)
  5250. if test "$GXX" = yes; then
  5251. if test $with_gnu_ld = no; then
  5252. case $host_cpu in
  5253. hppa*64*)
  5254. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5255. ;;
  5256. ia64*)
  5257. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5258. ;;
  5259. *)
  5260. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5261. ;;
  5262. esac
  5263. fi
  5264. else
  5265. # FIXME: insert proper C++ library support
  5266. _LT_TAGVAR(ld_shlibs, $1)=no
  5267. fi
  5268. ;;
  5269. esac
  5270. ;;
  5271. interix[[3-9]]*)
  5272. _LT_TAGVAR(hardcode_direct, $1)=no
  5273. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5274. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5275. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5276. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5277. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5278. # default) and relocated if they conflict, which is a slow very memory
  5279. # consuming and fragmenting process. To avoid this, we pick a random,
  5280. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5281. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5282. _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'
  5283. _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'
  5284. ;;
  5285. irix5* | irix6*)
  5286. case $cc_basename in
  5287. CC*)
  5288. # SGI C++
  5289. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5290. # Archives containing C++ object files must be created using
  5291. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5292. # necessary to make sure instantiated templates are included
  5293. # in the archive.
  5294. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5295. ;;
  5296. *)
  5297. if test "$GXX" = yes; then
  5298. if test "$with_gnu_ld" = no; then
  5299. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5300. else
  5301. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  5302. fi
  5303. fi
  5304. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5305. ;;
  5306. esac
  5307. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5308. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5309. _LT_TAGVAR(inherit_rpath, $1)=yes
  5310. ;;
  5311. linux* | k*bsd*-gnu)
  5312. case $cc_basename in
  5313. KCC*)
  5314. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5315. # KCC will only create a shared library if the output file
  5316. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5317. # to its proper name (with version) after linking.
  5318. _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'
  5319. _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'
  5320. # Commands to make compiler produce verbose output that lists
  5321. # what "hidden" libraries, object files and flags are used when
  5322. # linking a shared library.
  5323. #
  5324. # There doesn't appear to be a way to prevent this compiler from
  5325. # explicitly linking system object files so we need to strip them
  5326. # from the output so that they don't get included in the library
  5327. # dependencies.
  5328. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5329. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5330. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5331. # Archives containing C++ object files must be created using
  5332. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5333. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5334. ;;
  5335. icpc* | ecpc* )
  5336. # Intel C++
  5337. with_gnu_ld=yes
  5338. # version 8.0 and above of icpc choke on multiply defined symbols
  5339. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5340. # earlier do not add the objects themselves.
  5341. case `$CC -V 2>&1` in
  5342. *"Version 7."*)
  5343. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5344. _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'
  5345. ;;
  5346. *) # Version 8.0 or newer
  5347. tmp_idyn=
  5348. case $host_cpu in
  5349. ia64*) tmp_idyn=' -i_dynamic';;
  5350. esac
  5351. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5352. _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'
  5353. ;;
  5354. esac
  5355. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5356. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5357. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5358. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5359. ;;
  5360. pgCC* | pgcpp*)
  5361. # Portland Group C++ compiler
  5362. case `$CC -V` in
  5363. *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  5364. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5365. rm -rf $tpldir~
  5366. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5367. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  5368. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5369. rm -rf $tpldir~
  5370. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5371. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  5372. $RANLIB $oldlib'
  5373. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5374. rm -rf $tpldir~
  5375. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5376. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5377. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5378. rm -rf $tpldir~
  5379. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5380. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5381. ;;
  5382. *) # Version 6 will use weak symbols
  5383. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5384. _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'
  5385. ;;
  5386. esac
  5387. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5388. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5389. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5390. ;;
  5391. cxx*)
  5392. # Compaq C++
  5393. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5394. _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'
  5395. runpath_var=LD_RUN_PATH
  5396. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5397. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5398. # Commands to make compiler produce verbose output that lists
  5399. # what "hidden" libraries, object files and flags are used when
  5400. # linking a shared library.
  5401. #
  5402. # There doesn't appear to be a way to prevent this compiler from
  5403. # explicitly linking system object files so we need to strip them
  5404. # from the output so that they don't get included in the library
  5405. # dependencies.
  5406. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5407. ;;
  5408. xl*)
  5409. # IBM XL 8.0 on PPC, with GNU ld
  5410. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5411. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5412. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5413. if test "x$supports_anon_versioning" = xyes; then
  5414. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5415. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5416. echo "local: *; };" >> $output_objdir/$libname.ver~
  5417. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5418. fi
  5419. ;;
  5420. *)
  5421. case `$CC -V 2>&1 | sed 5q` in
  5422. *Sun\ C*)
  5423. # Sun C++ 5.9
  5424. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5425. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5426. _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'
  5427. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5428. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5429. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5430. # Not sure whether something based on
  5431. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5432. # would be better.
  5433. output_verbose_link_cmd='echo'
  5434. # Archives containing C++ object files must be created using
  5435. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5436. # necessary to make sure instantiated templates are included
  5437. # in the archive.
  5438. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5439. ;;
  5440. esac
  5441. ;;
  5442. esac
  5443. ;;
  5444. lynxos*)
  5445. # FIXME: insert proper C++ library support
  5446. _LT_TAGVAR(ld_shlibs, $1)=no
  5447. ;;
  5448. m88k*)
  5449. # FIXME: insert proper C++ library support
  5450. _LT_TAGVAR(ld_shlibs, $1)=no
  5451. ;;
  5452. mvs*)
  5453. case $cc_basename in
  5454. cxx*)
  5455. # FIXME: insert proper C++ library support
  5456. _LT_TAGVAR(ld_shlibs, $1)=no
  5457. ;;
  5458. *)
  5459. # FIXME: insert proper C++ library support
  5460. _LT_TAGVAR(ld_shlibs, $1)=no
  5461. ;;
  5462. esac
  5463. ;;
  5464. netbsd*)
  5465. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5466. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5467. wlarc=
  5468. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5469. _LT_TAGVAR(hardcode_direct, $1)=yes
  5470. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5471. fi
  5472. # Workaround some broken pre-1.5 toolchains
  5473. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5474. ;;
  5475. *nto* | *qnx*)
  5476. _LT_TAGVAR(ld_shlibs, $1)=yes
  5477. ;;
  5478. openbsd2*)
  5479. # C++ shared libraries are fairly broken
  5480. _LT_TAGVAR(ld_shlibs, $1)=no
  5481. ;;
  5482. openbsd*)
  5483. if test -f /usr/libexec/ld.so; then
  5484. _LT_TAGVAR(hardcode_direct, $1)=yes
  5485. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5486. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5487. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5488. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5489. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5490. _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'
  5491. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5492. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5493. fi
  5494. output_verbose_link_cmd=echo
  5495. else
  5496. _LT_TAGVAR(ld_shlibs, $1)=no
  5497. fi
  5498. ;;
  5499. osf3* | osf4* | osf5*)
  5500. case $cc_basename in
  5501. KCC*)
  5502. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5503. # KCC will only create a shared library if the output file
  5504. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5505. # to its proper name (with version) after linking.
  5506. _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'
  5507. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5508. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5509. # Archives containing C++ object files must be created using
  5510. # the KAI C++ compiler.
  5511. case $host in
  5512. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  5513. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  5514. esac
  5515. ;;
  5516. RCC*)
  5517. # Rational C++ 2.4.1
  5518. # FIXME: insert proper C++ library support
  5519. _LT_TAGVAR(ld_shlibs, $1)=no
  5520. ;;
  5521. cxx*)
  5522. case $host in
  5523. osf3*)
  5524. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5525. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5526. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5527. ;;
  5528. *)
  5529. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5530. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5531. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5532. echo "-hidden">> $lib.exp~
  5533. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  5534. $RM $lib.exp'
  5535. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5536. ;;
  5537. esac
  5538. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5539. # Commands to make compiler produce verbose output that lists
  5540. # what "hidden" libraries, object files and flags are used when
  5541. # linking a shared library.
  5542. #
  5543. # There doesn't appear to be a way to prevent this compiler from
  5544. # explicitly linking system object files so we need to strip them
  5545. # from the output so that they don't get included in the library
  5546. # dependencies.
  5547. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5548. ;;
  5549. *)
  5550. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5551. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5552. case $host in
  5553. osf3*)
  5554. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5555. ;;
  5556. *)
  5557. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5558. ;;
  5559. esac
  5560. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5561. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5562. # Commands to make compiler produce verbose output that lists
  5563. # what "hidden" libraries, object files and flags are used when
  5564. # linking a shared library.
  5565. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5566. else
  5567. # FIXME: insert proper C++ library support
  5568. _LT_TAGVAR(ld_shlibs, $1)=no
  5569. fi
  5570. ;;
  5571. esac
  5572. ;;
  5573. psos*)
  5574. # FIXME: insert proper C++ library support
  5575. _LT_TAGVAR(ld_shlibs, $1)=no
  5576. ;;
  5577. sunos4*)
  5578. case $cc_basename in
  5579. CC*)
  5580. # Sun C++ 4.x
  5581. # FIXME: insert proper C++ library support
  5582. _LT_TAGVAR(ld_shlibs, $1)=no
  5583. ;;
  5584. lcc*)
  5585. # Lucid
  5586. # FIXME: insert proper C++ library support
  5587. _LT_TAGVAR(ld_shlibs, $1)=no
  5588. ;;
  5589. *)
  5590. # FIXME: insert proper C++ library support
  5591. _LT_TAGVAR(ld_shlibs, $1)=no
  5592. ;;
  5593. esac
  5594. ;;
  5595. solaris*)
  5596. case $cc_basename in
  5597. CC*)
  5598. # Sun C++ 4.2, 5.x and Centerline C++
  5599. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  5600. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5601. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5602. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5603. $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'
  5604. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5605. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5606. case $host_os in
  5607. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5608. *)
  5609. # The compiler driver will combine and reorder linker options,
  5610. # but understands `-z linker_flag'.
  5611. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5612. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5613. ;;
  5614. esac
  5615. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5616. output_verbose_link_cmd='echo'
  5617. # Archives containing C++ object files must be created using
  5618. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5619. # necessary to make sure instantiated templates are included
  5620. # in the archive.
  5621. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5622. ;;
  5623. gcx*)
  5624. # Green Hills C++ Compiler
  5625. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5626. # The C++ compiler must be used to create the archive.
  5627. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5628. ;;
  5629. *)
  5630. # GNU C++ compiler with Solaris linker
  5631. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5632. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5633. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  5634. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5635. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5636. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  5637. # Commands to make compiler produce verbose output that lists
  5638. # what "hidden" libraries, object files and flags are used when
  5639. # linking a shared library.
  5640. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5641. else
  5642. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5643. # platform.
  5644. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5645. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5646. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  5647. # Commands to make compiler produce verbose output that lists
  5648. # what "hidden" libraries, object files and flags are used when
  5649. # linking a shared library.
  5650. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5651. fi
  5652. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5653. case $host_os in
  5654. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5655. *)
  5656. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5657. ;;
  5658. esac
  5659. fi
  5660. ;;
  5661. esac
  5662. ;;
  5663. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5664. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5665. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5666. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5667. runpath_var='LD_RUN_PATH'
  5668. case $cc_basename in
  5669. CC*)
  5670. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5671. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5672. ;;
  5673. *)
  5674. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5675. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5676. ;;
  5677. esac
  5678. ;;
  5679. sysv5* | sco3.2v5* | sco5v6*)
  5680. # Note: We can NOT use -z defs as we might desire, because we do not
  5681. # link with -lc, and that would cause any symbols used from libc to
  5682. # always be unresolved, which means just about no library would
  5683. # ever link correctly. If we're not using GNU ld we use -z text
  5684. # though, which does catch some bad symbols but isn't as heavy-handed
  5685. # as -z defs.
  5686. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5687. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5688. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5689. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5690. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5691. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5692. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5693. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5694. runpath_var='LD_RUN_PATH'
  5695. case $cc_basename in
  5696. CC*)
  5697. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5698. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5699. ;;
  5700. *)
  5701. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5702. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5703. ;;
  5704. esac
  5705. ;;
  5706. tandem*)
  5707. case $cc_basename in
  5708. NCC*)
  5709. # NonStop-UX NCC 3.20
  5710. # FIXME: insert proper C++ library support
  5711. _LT_TAGVAR(ld_shlibs, $1)=no
  5712. ;;
  5713. *)
  5714. # FIXME: insert proper C++ library support
  5715. _LT_TAGVAR(ld_shlibs, $1)=no
  5716. ;;
  5717. esac
  5718. ;;
  5719. vxworks*)
  5720. # FIXME: insert proper C++ library support
  5721. _LT_TAGVAR(ld_shlibs, $1)=no
  5722. ;;
  5723. *)
  5724. # FIXME: insert proper C++ library support
  5725. _LT_TAGVAR(ld_shlibs, $1)=no
  5726. ;;
  5727. esac
  5728. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5729. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5730. _LT_TAGVAR(GCC, $1)="$GXX"
  5731. _LT_TAGVAR(LD, $1)="$LD"
  5732. ## CAVEAT EMPTOR:
  5733. ## There is no encapsulation within the following macros, do not change
  5734. ## the running order or otherwise move them around unless you know exactly
  5735. ## what you are doing...
  5736. _LT_SYS_HIDDEN_LIBDEPS($1)
  5737. _LT_COMPILER_PIC($1)
  5738. _LT_COMPILER_C_O($1)
  5739. _LT_COMPILER_FILE_LOCKS($1)
  5740. _LT_LINKER_SHLIBS($1)
  5741. _LT_SYS_DYNAMIC_LINKER($1)
  5742. _LT_LINKER_HARDCODE_LIBPATH($1)
  5743. _LT_CONFIG($1)
  5744. fi # test -n "$compiler"
  5745. CC=$lt_save_CC
  5746. LDCXX=$LD
  5747. LD=$lt_save_LD
  5748. GCC=$lt_save_GCC
  5749. with_gnu_ld=$lt_save_with_gnu_ld
  5750. lt_cv_path_LDCXX=$lt_cv_path_LD
  5751. lt_cv_path_LD=$lt_save_path_LD
  5752. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5753. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5754. fi # test "$_lt_caught_CXX_error" != yes
  5755. AC_LANG_POP
  5756. ])# _LT_LANG_CXX_CONFIG
  5757. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  5758. # ---------------------------------
  5759. # Figure out "hidden" library dependencies from verbose
  5760. # compiler output when linking a shared library.
  5761. # Parse the compiler output and extract the necessary
  5762. # objects, libraries and library flags.
  5763. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  5764. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5765. # Dependencies to place before and after the object being linked:
  5766. _LT_TAGVAR(predep_objects, $1)=
  5767. _LT_TAGVAR(postdep_objects, $1)=
  5768. _LT_TAGVAR(predeps, $1)=
  5769. _LT_TAGVAR(postdeps, $1)=
  5770. _LT_TAGVAR(compiler_lib_search_path, $1)=
  5771. dnl we can't use the lt_simple_compile_test_code here,
  5772. dnl because it contains code intended for an executable,
  5773. dnl not a library. It's possible we should let each
  5774. dnl tag define a new lt_????_link_test_code variable,
  5775. dnl but it's only used here...
  5776. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  5777. int a;
  5778. void foo (void) { a = 0; }
  5779. _LT_EOF
  5780. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  5781. class Foo
  5782. {
  5783. public:
  5784. Foo (void) { a = 0; }
  5785. private:
  5786. int a;
  5787. };
  5788. _LT_EOF
  5789. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  5790. subroutine foo
  5791. implicit none
  5792. integer*4 a
  5793. a=0
  5794. return
  5795. end
  5796. _LT_EOF
  5797. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  5798. subroutine foo
  5799. implicit none
  5800. integer a
  5801. a=0
  5802. return
  5803. end
  5804. _LT_EOF
  5805. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  5806. public class foo {
  5807. private int a;
  5808. public void bar (void) {
  5809. a = 0;
  5810. }
  5811. };
  5812. _LT_EOF
  5813. ])
  5814. dnl Parse the compiler output and extract the necessary
  5815. dnl objects, libraries and library flags.
  5816. if AC_TRY_EVAL(ac_compile); then
  5817. # Parse the compiler output and extract the necessary
  5818. # objects, libraries and library flags.
  5819. # Sentinel used to keep track of whether or not we are before
  5820. # the conftest object file.
  5821. pre_test_object_deps_done=no
  5822. for p in `eval "$output_verbose_link_cmd"`; do
  5823. case $p in
  5824. -L* | -R* | -l*)
  5825. # Some compilers place space between "-{L,R}" and the path.
  5826. # Remove the space.
  5827. if test $p = "-L" ||
  5828. test $p = "-R"; then
  5829. prev=$p
  5830. continue
  5831. else
  5832. prev=
  5833. fi
  5834. if test "$pre_test_object_deps_done" = no; then
  5835. case $p in
  5836. -L* | -R*)
  5837. # Internal compiler library paths should come after those
  5838. # provided the user. The postdeps already come after the
  5839. # user supplied libs so there is no need to process them.
  5840. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  5841. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5842. else
  5843. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5844. fi
  5845. ;;
  5846. # The "-l" case would never come before the object being
  5847. # linked, so don't bother handling this case.
  5848. esac
  5849. else
  5850. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  5851. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  5852. else
  5853. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  5854. fi
  5855. fi
  5856. ;;
  5857. *.$objext)
  5858. # This assumes that the test object file only shows up
  5859. # once in the compiler output.
  5860. if test "$p" = "conftest.$objext"; then
  5861. pre_test_object_deps_done=yes
  5862. continue
  5863. fi
  5864. if test "$pre_test_object_deps_done" = no; then
  5865. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  5866. _LT_TAGVAR(predep_objects, $1)="$p"
  5867. else
  5868. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  5869. fi
  5870. else
  5871. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  5872. _LT_TAGVAR(postdep_objects, $1)="$p"
  5873. else
  5874. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  5875. fi
  5876. fi
  5877. ;;
  5878. *) ;; # Ignore the rest.
  5879. esac
  5880. done
  5881. # Clean up.
  5882. rm -f a.out a.exe
  5883. else
  5884. echo "libtool.m4: error: problem compiling $1 test program"
  5885. fi
  5886. $RM -f confest.$objext
  5887. # PORTME: override above test on systems where it is broken
  5888. m4_if([$1], [CXX],
  5889. [case $host_os in
  5890. interix[[3-9]]*)
  5891. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5892. # hack all around it, let's just trust "g++" to DTRT.
  5893. _LT_TAGVAR(predep_objects,$1)=
  5894. _LT_TAGVAR(postdep_objects,$1)=
  5895. _LT_TAGVAR(postdeps,$1)=
  5896. ;;
  5897. linux*)
  5898. case `$CC -V 2>&1 | sed 5q` in
  5899. *Sun\ C*)
  5900. # Sun C++ 5.9
  5901. # The more standards-conforming stlport4 library is
  5902. # incompatible with the Cstd library. Avoid specifying
  5903. # it if it's in CXXFLAGS. Ignore libCrun as
  5904. # -library=stlport4 depends on it.
  5905. case " $CXX $CXXFLAGS " in
  5906. *" -library=stlport4 "*)
  5907. solaris_use_stlport4=yes
  5908. ;;
  5909. esac
  5910. if test "$solaris_use_stlport4" != yes; then
  5911. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5912. fi
  5913. ;;
  5914. esac
  5915. ;;
  5916. solaris*)
  5917. case $cc_basename in
  5918. CC*)
  5919. # The more standards-conforming stlport4 library is
  5920. # incompatible with the Cstd library. Avoid specifying
  5921. # it if it's in CXXFLAGS. Ignore libCrun as
  5922. # -library=stlport4 depends on it.
  5923. case " $CXX $CXXFLAGS " in
  5924. *" -library=stlport4 "*)
  5925. solaris_use_stlport4=yes
  5926. ;;
  5927. esac
  5928. # Adding this requires a known-good setup of shared libraries for
  5929. # Sun compiler versions before 5.6, else PIC objects from an old
  5930. # archive will be linked into the output, leading to subtle bugs.
  5931. if test "$solaris_use_stlport4" != yes; then
  5932. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5933. fi
  5934. ;;
  5935. esac
  5936. ;;
  5937. esac
  5938. ])
  5939. case " $_LT_TAGVAR(postdeps, $1) " in
  5940. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5941. esac
  5942. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  5943. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  5944. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5945. fi
  5946. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  5947. [The directories searched by this compiler when creating a shared library])
  5948. _LT_TAGDECL([], [predep_objects], [1],
  5949. [Dependencies to place before and after the objects being linked to
  5950. create a shared library])
  5951. _LT_TAGDECL([], [postdep_objects], [1])
  5952. _LT_TAGDECL([], [predeps], [1])
  5953. _LT_TAGDECL([], [postdeps], [1])
  5954. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  5955. [The library search path used internally by the compiler when linking
  5956. a shared library])
  5957. ])# _LT_SYS_HIDDEN_LIBDEPS
  5958. # _LT_PROG_F77
  5959. # ------------
  5960. # Since AC_PROG_F77 is broken, in that it returns the empty string
  5961. # if there is no fortran compiler, we have our own version here.
  5962. m4_defun([_LT_PROG_F77],
  5963. [
  5964. pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  5965. AC_PROG_F77
  5966. if test -z "$F77" || test "X$F77" = "Xno"; then
  5967. _lt_disable_F77=yes
  5968. fi
  5969. popdef([AC_MSG_ERROR])
  5970. ])# _LT_PROG_F77
  5971. dnl aclocal-1.4 backwards compatibility:
  5972. dnl AC_DEFUN([_LT_PROG_F77], [])
  5973. # _LT_LANG_F77_CONFIG([TAG])
  5974. # --------------------------
  5975. # Ensure that the configuration variables for a Fortran 77 compiler are
  5976. # suitably defined. These variables are subsequently used by _LT_CONFIG
  5977. # to write the compiler configuration to `libtool'.
  5978. m4_defun([_LT_LANG_F77_CONFIG],
  5979. [AC_REQUIRE([_LT_PROG_F77])dnl
  5980. AC_LANG_PUSH(Fortran 77)
  5981. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5982. _LT_TAGVAR(allow_undefined_flag, $1)=
  5983. _LT_TAGVAR(always_export_symbols, $1)=no
  5984. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5985. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5986. _LT_TAGVAR(hardcode_direct, $1)=no
  5987. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5988. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5989. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5990. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5991. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5992. _LT_TAGVAR(hardcode_automatic, $1)=no
  5993. _LT_TAGVAR(inherit_rpath, $1)=no
  5994. _LT_TAGVAR(module_cmds, $1)=
  5995. _LT_TAGVAR(module_expsym_cmds, $1)=
  5996. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5997. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5998. _LT_TAGVAR(no_undefined_flag, $1)=
  5999. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6000. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6001. # Source file extension for f77 test sources.
  6002. ac_ext=f
  6003. # Object file extension for compiled f77 test sources.
  6004. objext=o
  6005. _LT_TAGVAR(objext, $1)=$objext
  6006. # No sense in running all these tests if we already determined that
  6007. # the F77 compiler isn't working. Some variables (like enable_shared)
  6008. # are currently assumed to apply to all compilers on this platform,
  6009. # and will be corrupted by setting them based on a non-working compiler.
  6010. if test "$_lt_disable_F77" != yes; then
  6011. # Code to be used in simple compile tests
  6012. lt_simple_compile_test_code="\
  6013. subroutine t
  6014. return
  6015. end
  6016. "
  6017. # Code to be used in simple link tests
  6018. lt_simple_link_test_code="\
  6019. program t
  6020. end
  6021. "
  6022. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6023. _LT_TAG_COMPILER
  6024. # save warnings/boilerplate of simple test code
  6025. _LT_COMPILER_BOILERPLATE
  6026. _LT_LINKER_BOILERPLATE
  6027. # Allow CC to be a program name with arguments.
  6028. lt_save_CC="$CC"
  6029. lt_save_GCC=$GCC
  6030. CC=${F77-"f77"}
  6031. compiler=$CC
  6032. _LT_TAGVAR(compiler, $1)=$CC
  6033. _LT_CC_BASENAME([$compiler])
  6034. GCC=$G77
  6035. if test -n "$compiler"; then
  6036. AC_MSG_CHECKING([if libtool supports shared libraries])
  6037. AC_MSG_RESULT([$can_build_shared])
  6038. AC_MSG_CHECKING([whether to build shared libraries])
  6039. test "$can_build_shared" = "no" && enable_shared=no
  6040. # On AIX, shared libraries and static libraries use the same namespace, and
  6041. # are all built from PIC.
  6042. case $host_os in
  6043. aix3*)
  6044. test "$enable_shared" = yes && enable_static=no
  6045. if test -n "$RANLIB"; then
  6046. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6047. postinstall_cmds='$RANLIB $lib'
  6048. fi
  6049. ;;
  6050. aix[[4-9]]*)
  6051. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6052. test "$enable_shared" = yes && enable_static=no
  6053. fi
  6054. ;;
  6055. esac
  6056. AC_MSG_RESULT([$enable_shared])
  6057. AC_MSG_CHECKING([whether to build static libraries])
  6058. # Make sure either enable_shared or enable_static is yes.
  6059. test "$enable_shared" = yes || enable_static=yes
  6060. AC_MSG_RESULT([$enable_static])
  6061. _LT_TAGVAR(GCC, $1)="$G77"
  6062. _LT_TAGVAR(LD, $1)="$LD"
  6063. ## CAVEAT EMPTOR:
  6064. ## There is no encapsulation within the following macros, do not change
  6065. ## the running order or otherwise move them around unless you know exactly
  6066. ## what you are doing...
  6067. _LT_COMPILER_PIC($1)
  6068. _LT_COMPILER_C_O($1)
  6069. _LT_COMPILER_FILE_LOCKS($1)
  6070. _LT_LINKER_SHLIBS($1)
  6071. _LT_SYS_DYNAMIC_LINKER($1)
  6072. _LT_LINKER_HARDCODE_LIBPATH($1)
  6073. _LT_CONFIG($1)
  6074. fi # test -n "$compiler"
  6075. GCC=$lt_save_GCC
  6076. CC="$lt_save_CC"
  6077. fi # test "$_lt_disable_F77" != yes
  6078. AC_LANG_POP
  6079. ])# _LT_LANG_F77_CONFIG
  6080. # _LT_PROG_FC
  6081. # -----------
  6082. # Since AC_PROG_FC is broken, in that it returns the empty string
  6083. # if there is no fortran compiler, we have our own version here.
  6084. m4_defun([_LT_PROG_FC],
  6085. [
  6086. pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  6087. AC_PROG_FC
  6088. if test -z "$FC" || test "X$FC" = "Xno"; then
  6089. _lt_disable_FC=yes
  6090. fi
  6091. popdef([AC_MSG_ERROR])
  6092. ])# _LT_PROG_FC
  6093. dnl aclocal-1.4 backwards compatibility:
  6094. dnl AC_DEFUN([_LT_PROG_FC], [])
  6095. # _LT_LANG_FC_CONFIG([TAG])
  6096. # -------------------------
  6097. # Ensure that the configuration variables for a Fortran compiler are
  6098. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6099. # to write the compiler configuration to `libtool'.
  6100. m4_defun([_LT_LANG_FC_CONFIG],
  6101. [AC_REQUIRE([_LT_PROG_FC])dnl
  6102. AC_LANG_PUSH(Fortran)
  6103. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6104. _LT_TAGVAR(allow_undefined_flag, $1)=
  6105. _LT_TAGVAR(always_export_symbols, $1)=no
  6106. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6107. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6108. _LT_TAGVAR(hardcode_direct, $1)=no
  6109. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6110. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6111. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6112. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6113. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6114. _LT_TAGVAR(hardcode_automatic, $1)=no
  6115. _LT_TAGVAR(inherit_rpath, $1)=no
  6116. _LT_TAGVAR(module_cmds, $1)=
  6117. _LT_TAGVAR(module_expsym_cmds, $1)=
  6118. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6119. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6120. _LT_TAGVAR(no_undefined_flag, $1)=
  6121. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6122. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6123. # Source file extension for fc test sources.
  6124. ac_ext=${ac_fc_srcext-f}
  6125. # Object file extension for compiled fc test sources.
  6126. objext=o
  6127. _LT_TAGVAR(objext, $1)=$objext
  6128. # No sense in running all these tests if we already determined that
  6129. # the FC compiler isn't working. Some variables (like enable_shared)
  6130. # are currently assumed to apply to all compilers on this platform,
  6131. # and will be corrupted by setting them based on a non-working compiler.
  6132. if test "$_lt_disable_FC" != yes; then
  6133. # Code to be used in simple compile tests
  6134. lt_simple_compile_test_code="\
  6135. subroutine t
  6136. return
  6137. end
  6138. "
  6139. # Code to be used in simple link tests
  6140. lt_simple_link_test_code="\
  6141. program t
  6142. end
  6143. "
  6144. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6145. _LT_TAG_COMPILER
  6146. # save warnings/boilerplate of simple test code
  6147. _LT_COMPILER_BOILERPLATE
  6148. _LT_LINKER_BOILERPLATE
  6149. # Allow CC to be a program name with arguments.
  6150. lt_save_CC="$CC"
  6151. lt_save_GCC=$GCC
  6152. CC=${FC-"f95"}
  6153. compiler=$CC
  6154. GCC=$ac_cv_fc_compiler_gnu
  6155. _LT_TAGVAR(compiler, $1)=$CC
  6156. _LT_CC_BASENAME([$compiler])
  6157. if test -n "$compiler"; then
  6158. AC_MSG_CHECKING([if libtool supports shared libraries])
  6159. AC_MSG_RESULT([$can_build_shared])
  6160. AC_MSG_CHECKING([whether to build shared libraries])
  6161. test "$can_build_shared" = "no" && enable_shared=no
  6162. # On AIX, shared libraries and static libraries use the same namespace, and
  6163. # are all built from PIC.
  6164. case $host_os in
  6165. aix3*)
  6166. test "$enable_shared" = yes && enable_static=no
  6167. if test -n "$RANLIB"; then
  6168. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6169. postinstall_cmds='$RANLIB $lib'
  6170. fi
  6171. ;;
  6172. aix[[4-9]]*)
  6173. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6174. test "$enable_shared" = yes && enable_static=no
  6175. fi
  6176. ;;
  6177. esac
  6178. AC_MSG_RESULT([$enable_shared])
  6179. AC_MSG_CHECKING([whether to build static libraries])
  6180. # Make sure either enable_shared or enable_static is yes.
  6181. test "$enable_shared" = yes || enable_static=yes
  6182. AC_MSG_RESULT([$enable_static])
  6183. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6184. _LT_TAGVAR(LD, $1)="$LD"
  6185. ## CAVEAT EMPTOR:
  6186. ## There is no encapsulation within the following macros, do not change
  6187. ## the running order or otherwise move them around unless you know exactly
  6188. ## what you are doing...
  6189. _LT_SYS_HIDDEN_LIBDEPS($1)
  6190. _LT_COMPILER_PIC($1)
  6191. _LT_COMPILER_C_O($1)
  6192. _LT_COMPILER_FILE_LOCKS($1)
  6193. _LT_LINKER_SHLIBS($1)
  6194. _LT_SYS_DYNAMIC_LINKER($1)
  6195. _LT_LINKER_HARDCODE_LIBPATH($1)
  6196. _LT_CONFIG($1)
  6197. fi # test -n "$compiler"
  6198. GCC=$lt_save_GCC
  6199. CC="$lt_save_CC"
  6200. fi # test "$_lt_disable_FC" != yes
  6201. AC_LANG_POP
  6202. ])# _LT_LANG_FC_CONFIG
  6203. # _LT_LANG_GCJ_CONFIG([TAG])
  6204. # --------------------------
  6205. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6206. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6207. # to write the compiler configuration to `libtool'.
  6208. m4_defun([_LT_LANG_GCJ_CONFIG],
  6209. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6210. AC_LANG_SAVE
  6211. # Source file extension for Java test sources.
  6212. ac_ext=java
  6213. # Object file extension for compiled Java test sources.
  6214. objext=o
  6215. _LT_TAGVAR(objext, $1)=$objext
  6216. # Code to be used in simple compile tests
  6217. lt_simple_compile_test_code="class foo {}"
  6218. # Code to be used in simple link tests
  6219. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6220. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6221. _LT_TAG_COMPILER
  6222. # save warnings/boilerplate of simple test code
  6223. _LT_COMPILER_BOILERPLATE
  6224. _LT_LINKER_BOILERPLATE
  6225. # Allow CC to be a program name with arguments.
  6226. lt_save_CC="$CC"
  6227. lt_save_GCC=$GCC
  6228. GCC=yes
  6229. CC=${GCJ-"gcj"}
  6230. compiler=$CC
  6231. _LT_TAGVAR(compiler, $1)=$CC
  6232. _LT_TAGVAR(LD, $1)="$LD"
  6233. _LT_CC_BASENAME([$compiler])
  6234. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6235. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6236. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6237. if test -n "$compiler"; then
  6238. _LT_COMPILER_NO_RTTI($1)
  6239. _LT_COMPILER_PIC($1)
  6240. _LT_COMPILER_C_O($1)
  6241. _LT_COMPILER_FILE_LOCKS($1)
  6242. _LT_LINKER_SHLIBS($1)
  6243. _LT_LINKER_HARDCODE_LIBPATH($1)
  6244. _LT_CONFIG($1)
  6245. fi
  6246. AC_LANG_RESTORE
  6247. GCC=$lt_save_GCC
  6248. CC="$lt_save_CC"
  6249. ])# _LT_LANG_GCJ_CONFIG
  6250. # _LT_LANG_RC_CONFIG([TAG])
  6251. # -------------------------
  6252. # Ensure that the configuration variables for the Windows resource compiler
  6253. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6254. # to write the compiler configuration to `libtool'.
  6255. m4_defun([_LT_LANG_RC_CONFIG],
  6256. [AC_REQUIRE([LT_PROG_RC])dnl
  6257. AC_LANG_SAVE
  6258. # Source file extension for RC test sources.
  6259. ac_ext=rc
  6260. # Object file extension for compiled RC test sources.
  6261. objext=o
  6262. _LT_TAGVAR(objext, $1)=$objext
  6263. # Code to be used in simple compile tests
  6264. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6265. # Code to be used in simple link tests
  6266. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6267. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6268. _LT_TAG_COMPILER
  6269. # save warnings/boilerplate of simple test code
  6270. _LT_COMPILER_BOILERPLATE
  6271. _LT_LINKER_BOILERPLATE
  6272. # Allow CC to be a program name with arguments.
  6273. lt_save_CC="$CC"
  6274. lt_save_GCC=$GCC
  6275. GCC=
  6276. CC=${RC-"windres"}
  6277. compiler=$CC
  6278. _LT_TAGVAR(compiler, $1)=$CC
  6279. _LT_CC_BASENAME([$compiler])
  6280. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6281. if test -n "$compiler"; then
  6282. :
  6283. _LT_CONFIG($1)
  6284. fi
  6285. GCC=$lt_save_GCC
  6286. AC_LANG_RESTORE
  6287. CC="$lt_save_CC"
  6288. ])# _LT_LANG_RC_CONFIG
  6289. # LT_PROG_GCJ
  6290. # -----------
  6291. AC_DEFUN([LT_PROG_GCJ],
  6292. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6293. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6294. [AC_CHECK_TOOL(GCJ, gcj,)
  6295. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6296. AC_SUBST(GCJFLAGS)])])[]dnl
  6297. ])
  6298. # Old name:
  6299. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6300. dnl aclocal-1.4 backwards compatibility:
  6301. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6302. # LT_PROG_RC
  6303. # ----------
  6304. AC_DEFUN([LT_PROG_RC],
  6305. [AC_CHECK_TOOL(RC, windres,)
  6306. ])
  6307. # Old name:
  6308. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6309. dnl aclocal-1.4 backwards compatibility:
  6310. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6311. # _LT_DECL_EGREP
  6312. # --------------
  6313. # If we don't have a new enough Autoconf to choose the best grep
  6314. # available, choose the one first in the user's PATH.
  6315. m4_defun([_LT_DECL_EGREP],
  6316. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6317. AC_REQUIRE([AC_PROG_FGREP])dnl
  6318. test -z "$GREP" && GREP=grep
  6319. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6320. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6321. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6322. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6323. AC_SUBST([GREP])
  6324. ])
  6325. # _LT_DECL_OBJDUMP
  6326. # --------------
  6327. # If we don't have a new enough Autoconf to choose the best objdump
  6328. # available, choose the one first in the user's PATH.
  6329. m4_defun([_LT_DECL_OBJDUMP],
  6330. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6331. test -z "$OBJDUMP" && OBJDUMP=objdump
  6332. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6333. AC_SUBST([OBJDUMP])
  6334. ])
  6335. # _LT_DECL_SED
  6336. # ------------
  6337. # Check for a fully-functional sed program, that truncates
  6338. # as few characters as possible. Prefer GNU sed if found.
  6339. m4_defun([_LT_DECL_SED],
  6340. [AC_PROG_SED
  6341. test -z "$SED" && SED=sed
  6342. Xsed="$SED -e 1s/^X//"
  6343. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6344. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6345. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6346. ])# _LT_DECL_SED
  6347. m4_ifndef([AC_PROG_SED], [
  6348. # NOTE: This macro has been submitted for inclusion into #
  6349. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6350. # a released version of Autoconf we should remove this #
  6351. # macro and use it instead. #
  6352. m4_defun([AC_PROG_SED],
  6353. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6354. AC_CACHE_VAL(lt_cv_path_SED,
  6355. [# Loop through the user's path and test for sed and gsed.
  6356. # Then use that list of sed's as ones to test for truncation.
  6357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6358. for as_dir in $PATH
  6359. do
  6360. IFS=$as_save_IFS
  6361. test -z "$as_dir" && as_dir=.
  6362. for lt_ac_prog in sed gsed; do
  6363. for ac_exec_ext in '' $ac_executable_extensions; do
  6364. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6365. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6366. fi
  6367. done
  6368. done
  6369. done
  6370. IFS=$as_save_IFS
  6371. lt_ac_max=0
  6372. lt_ac_count=0
  6373. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6374. # along with /bin/sed that truncates output.
  6375. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6376. test ! -f $lt_ac_sed && continue
  6377. cat /dev/null > conftest.in
  6378. lt_ac_count=0
  6379. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6380. # Check for GNU sed and select it if it is found.
  6381. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6382. lt_cv_path_SED=$lt_ac_sed
  6383. break
  6384. fi
  6385. while true; do
  6386. cat conftest.in conftest.in >conftest.tmp
  6387. mv conftest.tmp conftest.in
  6388. cp conftest.in conftest.nl
  6389. echo >>conftest.nl
  6390. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6391. cmp -s conftest.out conftest.nl || break
  6392. # 10000 chars as input seems more than enough
  6393. test $lt_ac_count -gt 10 && break
  6394. lt_ac_count=`expr $lt_ac_count + 1`
  6395. if test $lt_ac_count -gt $lt_ac_max; then
  6396. lt_ac_max=$lt_ac_count
  6397. lt_cv_path_SED=$lt_ac_sed
  6398. fi
  6399. done
  6400. done
  6401. ])
  6402. SED=$lt_cv_path_SED
  6403. AC_SUBST([SED])
  6404. AC_MSG_RESULT([$SED])
  6405. ])#AC_PROG_SED
  6406. ])#m4_ifndef
  6407. # Old name:
  6408. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  6409. dnl aclocal-1.4 backwards compatibility:
  6410. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  6411. # _LT_CHECK_SHELL_FEATURES
  6412. # ------------------------
  6413. # Find out whether the shell is Bourne or XSI compatible,
  6414. # or has some other useful features.
  6415. m4_defun([_LT_CHECK_SHELL_FEATURES],
  6416. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  6417. # Try some XSI features
  6418. xsi_shell=no
  6419. ( _lt_dummy="a/b/c"
  6420. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6421. = c,a/b,, \
  6422. && eval 'test $(( 1 + 1 )) -eq 2 \
  6423. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6424. && xsi_shell=yes
  6425. AC_MSG_RESULT([$xsi_shell])
  6426. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  6427. AC_MSG_CHECKING([whether the shell understands "+="])
  6428. lt_shell_append=no
  6429. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  6430. >/dev/null 2>&1 \
  6431. && lt_shell_append=yes
  6432. AC_MSG_RESULT([$lt_shell_append])
  6433. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  6434. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6435. lt_unset=unset
  6436. else
  6437. lt_unset=false
  6438. fi
  6439. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  6440. # test EBCDIC or ASCII
  6441. case `echo X|tr X '\101'` in
  6442. A) # ASCII based system
  6443. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6444. lt_SP2NL='tr \040 \012'
  6445. lt_NL2SP='tr \015\012 \040\040'
  6446. ;;
  6447. *) # EBCDIC based system
  6448. lt_SP2NL='tr \100 \n'
  6449. lt_NL2SP='tr \r\n \100\100'
  6450. ;;
  6451. esac
  6452. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  6453. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  6454. ])# _LT_CHECK_SHELL_FEATURES
  6455. # _LT_PROG_XSI_SHELLFNS
  6456. # ---------------------
  6457. # Bourne and XSI compatible variants of some useful shell functions.
  6458. m4_defun([_LT_PROG_XSI_SHELLFNS],
  6459. [case $xsi_shell in
  6460. yes)
  6461. cat << \_LT_EOF >> "$cfgfile"
  6462. # func_dirname file append nondir_replacement
  6463. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  6464. # otherwise set result to NONDIR_REPLACEMENT.
  6465. func_dirname ()
  6466. {
  6467. case ${1} in
  6468. */*) func_dirname_result="${1%/*}${2}" ;;
  6469. * ) func_dirname_result="${3}" ;;
  6470. esac
  6471. }
  6472. # func_basename file
  6473. func_basename ()
  6474. {
  6475. func_basename_result="${1##*/}"
  6476. }
  6477. # func_dirname_and_basename file append nondir_replacement
  6478. # perform func_basename and func_dirname in a single function
  6479. # call:
  6480. # dirname: Compute the dirname of FILE. If nonempty,
  6481. # add APPEND to the result, otherwise set result
  6482. # to NONDIR_REPLACEMENT.
  6483. # value returned in "$func_dirname_result"
  6484. # basename: Compute filename of FILE.
  6485. # value retuned in "$func_basename_result"
  6486. # Implementation must be kept synchronized with func_dirname
  6487. # and func_basename. For efficiency, we do not delegate to
  6488. # those functions but instead duplicate the functionality here.
  6489. func_dirname_and_basename ()
  6490. {
  6491. case ${1} in
  6492. */*) func_dirname_result="${1%/*}${2}" ;;
  6493. * ) func_dirname_result="${3}" ;;
  6494. esac
  6495. func_basename_result="${1##*/}"
  6496. }
  6497. # func_stripname prefix suffix name
  6498. # strip PREFIX and SUFFIX off of NAME.
  6499. # PREFIX and SUFFIX must not contain globbing or regex special
  6500. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6501. # dot (in which case that matches only a dot).
  6502. func_stripname ()
  6503. {
  6504. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  6505. # positional parameters, so assign one to ordinary parameter first.
  6506. func_stripname_result=${3}
  6507. func_stripname_result=${func_stripname_result#"${1}"}
  6508. func_stripname_result=${func_stripname_result%"${2}"}
  6509. }
  6510. # func_opt_split
  6511. func_opt_split ()
  6512. {
  6513. func_opt_split_opt=${1%%=*}
  6514. func_opt_split_arg=${1#*=}
  6515. }
  6516. # func_lo2o object
  6517. func_lo2o ()
  6518. {
  6519. case ${1} in
  6520. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  6521. *) func_lo2o_result=${1} ;;
  6522. esac
  6523. }
  6524. # func_xform libobj-or-source
  6525. func_xform ()
  6526. {
  6527. func_xform_result=${1%.*}.lo
  6528. }
  6529. # func_arith arithmetic-term...
  6530. func_arith ()
  6531. {
  6532. func_arith_result=$(( $[*] ))
  6533. }
  6534. # func_len string
  6535. # STRING may not start with a hyphen.
  6536. func_len ()
  6537. {
  6538. func_len_result=${#1}
  6539. }
  6540. _LT_EOF
  6541. ;;
  6542. *) # Bourne compatible functions.
  6543. cat << \_LT_EOF >> "$cfgfile"
  6544. # func_dirname file append nondir_replacement
  6545. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  6546. # otherwise set result to NONDIR_REPLACEMENT.
  6547. func_dirname ()
  6548. {
  6549. # Extract subdirectory from the argument.
  6550. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  6551. if test "X$func_dirname_result" = "X${1}"; then
  6552. func_dirname_result="${3}"
  6553. else
  6554. func_dirname_result="$func_dirname_result${2}"
  6555. fi
  6556. }
  6557. # func_basename file
  6558. func_basename ()
  6559. {
  6560. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  6561. }
  6562. dnl func_dirname_and_basename
  6563. dnl A portable version of this function is already defined in general.m4sh
  6564. dnl so there is no need for it here.
  6565. # func_stripname prefix suffix name
  6566. # strip PREFIX and SUFFIX off of NAME.
  6567. # PREFIX and SUFFIX must not contain globbing or regex special
  6568. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6569. # dot (in which case that matches only a dot).
  6570. # func_strip_suffix prefix name
  6571. func_stripname ()
  6572. {
  6573. case ${2} in
  6574. .*) func_stripname_result=`$ECHO "X${3}" \
  6575. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  6576. *) func_stripname_result=`$ECHO "X${3}" \
  6577. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  6578. esac
  6579. }
  6580. # sed scripts:
  6581. my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  6582. my_sed_long_arg='1s/^-[[^=]]*=//'
  6583. # func_opt_split
  6584. func_opt_split ()
  6585. {
  6586. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  6587. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  6588. }
  6589. # func_lo2o object
  6590. func_lo2o ()
  6591. {
  6592. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  6593. }
  6594. # func_xform libobj-or-source
  6595. func_xform ()
  6596. {
  6597. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  6598. }
  6599. # func_arith arithmetic-term...
  6600. func_arith ()
  6601. {
  6602. func_arith_result=`expr "$[@]"`
  6603. }
  6604. # func_len string
  6605. # STRING may not start with a hyphen.
  6606. func_len ()
  6607. {
  6608. func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  6609. }
  6610. _LT_EOF
  6611. esac
  6612. case $lt_shell_append in
  6613. yes)
  6614. cat << \_LT_EOF >> "$cfgfile"
  6615. # func_append var value
  6616. # Append VALUE to the end of shell variable VAR.
  6617. func_append ()
  6618. {
  6619. eval "$[1]+=\$[2]"
  6620. }
  6621. _LT_EOF
  6622. ;;
  6623. *)
  6624. cat << \_LT_EOF >> "$cfgfile"
  6625. # func_append var value
  6626. # Append VALUE to the end of shell variable VAR.
  6627. func_append ()
  6628. {
  6629. eval "$[1]=\$$[1]\$[2]"
  6630. }
  6631. _LT_EOF
  6632. ;;
  6633. esac
  6634. ])
  6635. # Helper functions for option handling. -*- Autoconf -*-
  6636. #
  6637. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  6638. # Written by Gary V. Vaughan, 2004
  6639. #
  6640. # This file is free software; the Free Software Foundation gives
  6641. # unlimited permission to copy and/or distribute it, with or without
  6642. # modifications, as long as this notice is preserved.
  6643. # serial 6 ltoptions.m4
  6644. # This is to help aclocal find these macros, as it can't see m4_define.
  6645. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  6646. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  6647. # ------------------------------------------
  6648. m4_define([_LT_MANGLE_OPTION],
  6649. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  6650. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  6651. # ---------------------------------------
  6652. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  6653. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  6654. # saved as a flag.
  6655. m4_define([_LT_SET_OPTION],
  6656. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  6657. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  6658. _LT_MANGLE_DEFUN([$1], [$2]),
  6659. [m4_warning([Unknown $1 option `$2'])])[]dnl
  6660. ])
  6661. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  6662. # ------------------------------------------------------------
  6663. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  6664. m4_define([_LT_IF_OPTION],
  6665. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  6666. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  6667. # -------------------------------------------------------
  6668. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  6669. # are set.
  6670. m4_define([_LT_UNLESS_OPTIONS],
  6671. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  6672. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  6673. [m4_define([$0_found])])])[]dnl
  6674. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  6675. ])[]dnl
  6676. ])
  6677. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  6678. # ----------------------------------------
  6679. # OPTION-LIST is a space-separated list of Libtool options associated
  6680. # with MACRO-NAME. If any OPTION has a matching handler declared with
  6681. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  6682. # the unknown option and exit.
  6683. m4_defun([_LT_SET_OPTIONS],
  6684. [# Set options
  6685. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  6686. [_LT_SET_OPTION([$1], _LT_Option)])
  6687. m4_if([$1],[LT_INIT],[
  6688. dnl
  6689. dnl Simply set some default values (i.e off) if boolean options were not
  6690. dnl specified:
  6691. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  6692. ])
  6693. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  6694. ])
  6695. dnl
  6696. dnl If no reference was made to various pairs of opposing options, then
  6697. dnl we run the default mode handler for the pair. For example, if neither
  6698. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  6699. dnl archives by default:
  6700. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  6701. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  6702. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  6703. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  6704. [_LT_ENABLE_FAST_INSTALL])
  6705. ])
  6706. ])# _LT_SET_OPTIONS
  6707. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  6708. # -----------------------------------------
  6709. m4_define([_LT_MANGLE_DEFUN],
  6710. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  6711. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  6712. # -----------------------------------------------
  6713. m4_define([LT_OPTION_DEFINE],
  6714. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  6715. ])# LT_OPTION_DEFINE
  6716. # dlopen
  6717. # ------
  6718. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  6719. ])
  6720. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  6721. [_LT_SET_OPTION([LT_INIT], [dlopen])
  6722. AC_DIAGNOSE([obsolete],
  6723. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  6724. put the `dlopen' option into LT_INIT's first parameter.])
  6725. ])
  6726. dnl aclocal-1.4 backwards compatibility:
  6727. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  6728. # win32-dll
  6729. # ---------
  6730. # Declare package support for building win32 dll's.
  6731. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  6732. [enable_win32_dll=yes
  6733. case $host in
  6734. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  6735. AC_CHECK_TOOL(AS, as, false)
  6736. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6737. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6738. ;;
  6739. esac
  6740. test -z "$AS" && AS=as
  6741. _LT_DECL([], [AS], [0], [Assembler program])dnl
  6742. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6743. _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  6744. test -z "$OBJDUMP" && OBJDUMP=objdump
  6745. _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  6746. ])# win32-dll
  6747. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  6748. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6749. _LT_SET_OPTION([LT_INIT], [win32-dll])
  6750. AC_DIAGNOSE([obsolete],
  6751. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  6752. put the `win32-dll' option into LT_INIT's first parameter.])
  6753. ])
  6754. dnl aclocal-1.4 backwards compatibility:
  6755. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  6756. # _LT_ENABLE_SHARED([DEFAULT])
  6757. # ----------------------------
  6758. # implement the --enable-shared flag, and supports the `shared' and
  6759. # `disable-shared' LT_INIT options.
  6760. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6761. m4_define([_LT_ENABLE_SHARED],
  6762. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  6763. AC_ARG_ENABLE([shared],
  6764. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  6765. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  6766. [p=${PACKAGE-default}
  6767. case $enableval in
  6768. yes) enable_shared=yes ;;
  6769. no) enable_shared=no ;;
  6770. *)
  6771. enable_shared=no
  6772. # Look at the argument we got. We use all the common list separators.
  6773. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6774. for pkg in $enableval; do
  6775. IFS="$lt_save_ifs"
  6776. if test "X$pkg" = "X$p"; then
  6777. enable_shared=yes
  6778. fi
  6779. done
  6780. IFS="$lt_save_ifs"
  6781. ;;
  6782. esac],
  6783. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  6784. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  6785. [Whether or not to build shared libraries])
  6786. ])# _LT_ENABLE_SHARED
  6787. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  6788. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  6789. # Old names:
  6790. AC_DEFUN([AC_ENABLE_SHARED],
  6791. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  6792. ])
  6793. AC_DEFUN([AC_DISABLE_SHARED],
  6794. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  6795. ])
  6796. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  6797. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  6798. dnl aclocal-1.4 backwards compatibility:
  6799. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  6800. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  6801. # _LT_ENABLE_STATIC([DEFAULT])
  6802. # ----------------------------
  6803. # implement the --enable-static flag, and support the `static' and
  6804. # `disable-static' LT_INIT options.
  6805. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6806. m4_define([_LT_ENABLE_STATIC],
  6807. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  6808. AC_ARG_ENABLE([static],
  6809. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  6810. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  6811. [p=${PACKAGE-default}
  6812. case $enableval in
  6813. yes) enable_static=yes ;;
  6814. no) enable_static=no ;;
  6815. *)
  6816. enable_static=no
  6817. # Look at the argument we got. We use all the common list separators.
  6818. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6819. for pkg in $enableval; do
  6820. IFS="$lt_save_ifs"
  6821. if test "X$pkg" = "X$p"; then
  6822. enable_static=yes
  6823. fi
  6824. done
  6825. IFS="$lt_save_ifs"
  6826. ;;
  6827. esac],
  6828. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  6829. _LT_DECL([build_old_libs], [enable_static], [0],
  6830. [Whether or not to build static libraries])
  6831. ])# _LT_ENABLE_STATIC
  6832. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  6833. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  6834. # Old names:
  6835. AC_DEFUN([AC_ENABLE_STATIC],
  6836. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  6837. ])
  6838. AC_DEFUN([AC_DISABLE_STATIC],
  6839. [_LT_SET_OPTION([LT_INIT], [disable-static])
  6840. ])
  6841. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  6842. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  6843. dnl aclocal-1.4 backwards compatibility:
  6844. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  6845. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  6846. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  6847. # ----------------------------------
  6848. # implement the --enable-fast-install flag, and support the `fast-install'
  6849. # and `disable-fast-install' LT_INIT options.
  6850. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6851. m4_define([_LT_ENABLE_FAST_INSTALL],
  6852. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  6853. AC_ARG_ENABLE([fast-install],
  6854. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  6855. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  6856. [p=${PACKAGE-default}
  6857. case $enableval in
  6858. yes) enable_fast_install=yes ;;
  6859. no) enable_fast_install=no ;;
  6860. *)
  6861. enable_fast_install=no
  6862. # Look at the argument we got. We use all the common list separators.
  6863. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6864. for pkg in $enableval; do
  6865. IFS="$lt_save_ifs"
  6866. if test "X$pkg" = "X$p"; then
  6867. enable_fast_install=yes
  6868. fi
  6869. done
  6870. IFS="$lt_save_ifs"
  6871. ;;
  6872. esac],
  6873. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  6874. _LT_DECL([fast_install], [enable_fast_install], [0],
  6875. [Whether or not to optimize for fast installation])dnl
  6876. ])# _LT_ENABLE_FAST_INSTALL
  6877. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  6878. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  6879. # Old names:
  6880. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  6881. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  6882. AC_DIAGNOSE([obsolete],
  6883. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  6884. the `fast-install' option into LT_INIT's first parameter.])
  6885. ])
  6886. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  6887. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  6888. AC_DIAGNOSE([obsolete],
  6889. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  6890. the `disable-fast-install' option into LT_INIT's first parameter.])
  6891. ])
  6892. dnl aclocal-1.4 backwards compatibility:
  6893. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  6894. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  6895. # _LT_WITH_PIC([MODE])
  6896. # --------------------
  6897. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  6898. # LT_INIT options.
  6899. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  6900. m4_define([_LT_WITH_PIC],
  6901. [AC_ARG_WITH([pic],
  6902. [AS_HELP_STRING([--with-pic],
  6903. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  6904. [pic_mode="$withval"],
  6905. [pic_mode=default])
  6906. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  6907. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  6908. ])# _LT_WITH_PIC
  6909. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  6910. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  6911. # Old name:
  6912. AU_DEFUN([AC_LIBTOOL_PICMODE],
  6913. [_LT_SET_OPTION([LT_INIT], [pic-only])
  6914. AC_DIAGNOSE([obsolete],
  6915. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  6916. put the `pic-only' option into LT_INIT's first parameter.])
  6917. ])
  6918. dnl aclocal-1.4 backwards compatibility:
  6919. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  6920. m4_define([_LTDL_MODE], [])
  6921. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  6922. [m4_define([_LTDL_MODE], [nonrecursive])])
  6923. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  6924. [m4_define([_LTDL_MODE], [recursive])])
  6925. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  6926. [m4_define([_LTDL_MODE], [subproject])])
  6927. m4_define([_LTDL_TYPE], [])
  6928. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  6929. [m4_define([_LTDL_TYPE], [installable])])
  6930. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  6931. [m4_define([_LTDL_TYPE], [convenience])])
  6932. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  6933. #
  6934. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  6935. # Written by Gary V. Vaughan, 2004
  6936. #
  6937. # This file is free software; the Free Software Foundation gives
  6938. # unlimited permission to copy and/or distribute it, with or without
  6939. # modifications, as long as this notice is preserved.
  6940. # serial 6 ltsugar.m4
  6941. # This is to help aclocal find these macros, as it can't see m4_define.
  6942. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  6943. # lt_join(SEP, ARG1, [ARG2...])
  6944. # -----------------------------
  6945. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  6946. # associated separator.
  6947. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  6948. # versions in m4sugar had bugs.
  6949. m4_define([lt_join],
  6950. [m4_if([$#], [1], [],
  6951. [$#], [2], [[$2]],
  6952. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  6953. m4_define([_lt_join],
  6954. [m4_if([$#$2], [2], [],
  6955. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  6956. # lt_car(LIST)
  6957. # lt_cdr(LIST)
  6958. # ------------
  6959. # Manipulate m4 lists.
  6960. # These macros are necessary as long as will still need to support
  6961. # Autoconf-2.59 which quotes differently.
  6962. m4_define([lt_car], [[$1]])
  6963. m4_define([lt_cdr],
  6964. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  6965. [$#], 1, [],
  6966. [m4_dquote(m4_shift($@))])])
  6967. m4_define([lt_unquote], $1)
  6968. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  6969. # ------------------------------------------
  6970. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  6971. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  6972. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  6973. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  6974. # than defined and empty).
  6975. #
  6976. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  6977. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  6978. m4_define([lt_append],
  6979. [m4_define([$1],
  6980. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  6981. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  6982. # ----------------------------------------------------------
  6983. # Produce a SEP delimited list of all paired combinations of elements of
  6984. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  6985. # has the form PREFIXmINFIXSUFFIXn.
  6986. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  6987. m4_define([lt_combine],
  6988. [m4_if(m4_eval([$# > 3]), [1],
  6989. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  6990. [[m4_foreach([_Lt_prefix], [$2],
  6991. [m4_foreach([_Lt_suffix],
  6992. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  6993. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  6994. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  6995. # -----------------------------------------------------------------------
  6996. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  6997. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  6998. m4_define([lt_if_append_uniq],
  6999. [m4_ifdef([$1],
  7000. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7001. [lt_append([$1], [$2], [$3])$4],
  7002. [$5])],
  7003. [lt_append([$1], [$2], [$3])$4])])
  7004. # lt_dict_add(DICT, KEY, VALUE)
  7005. # -----------------------------
  7006. m4_define([lt_dict_add],
  7007. [m4_define([$1($2)], [$3])])
  7008. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7009. # --------------------------------------------
  7010. m4_define([lt_dict_add_subkey],
  7011. [m4_define([$1($2:$3)], [$4])])
  7012. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7013. # ----------------------------------
  7014. m4_define([lt_dict_fetch],
  7015. [m4_ifval([$3],
  7016. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7017. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7018. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7019. # -----------------------------------------------------------------
  7020. m4_define([lt_if_dict_fetch],
  7021. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7022. [$5],
  7023. [$6])])
  7024. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7025. # --------------------------------------------------------------
  7026. m4_define([lt_dict_filter],
  7027. [m4_if([$5], [], [],
  7028. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7029. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7030. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7031. ])
  7032. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7033. #
  7034. # Copyright (C) 2004 Free Software Foundation, Inc.
  7035. # Written by Scott James Remnant, 2004
  7036. #
  7037. # This file is free software; the Free Software Foundation gives
  7038. # unlimited permission to copy and/or distribute it, with or without
  7039. # modifications, as long as this notice is preserved.
  7040. # Generated from ltversion.in.
  7041. # serial 3012 ltversion.m4
  7042. # This file is part of GNU Libtool
  7043. m4_define([LT_PACKAGE_VERSION], [2.2.6])
  7044. m4_define([LT_PACKAGE_REVISION], [1.3012])
  7045. AC_DEFUN([LTVERSION_VERSION],
  7046. [macro_version='2.2.6'
  7047. macro_revision='1.3012'
  7048. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7049. _LT_DECL(, macro_revision, 0)
  7050. ])
  7051. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7052. #
  7053. # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  7054. # Written by Scott James Remnant, 2004.
  7055. #
  7056. # This file is free software; the Free Software Foundation gives
  7057. # unlimited permission to copy and/or distribute it, with or without
  7058. # modifications, as long as this notice is preserved.
  7059. # serial 4 lt~obsolete.m4
  7060. # These exist entirely to fool aclocal when bootstrapping libtool.
  7061. #
  7062. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7063. # which have later been changed to m4_define as they aren't part of the
  7064. # exported API, or moved to Autoconf or Automake where they belong.
  7065. #
  7066. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7067. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7068. # using a macro with the same name in our local m4/libtool.m4 it'll
  7069. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7070. # and doesn't know about Autoconf macros at all.)
  7071. #
  7072. # So we provide this file, which has a silly filename so it's always
  7073. # included after everything else. This provides aclocal with the
  7074. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7075. # because those macros already exist, or will be overwritten later.
  7076. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7077. #
  7078. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7079. # Yes, that means every name once taken will need to remain here until
  7080. # we give up compatibility with versions before 1.7, at which point
  7081. # we need to keep only those names which we still refer to.
  7082. # This is to help aclocal find these macros, as it can't see m4_define.
  7083. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7084. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7085. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7086. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7087. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7088. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7089. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7090. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7091. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7092. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7093. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7094. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7095. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7096. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7097. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7098. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7099. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7100. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7101. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7102. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7103. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7104. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7105. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7106. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7107. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7108. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7109. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7110. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7111. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7112. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7113. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7114. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7115. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7116. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7117. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7118. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7119. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7120. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7121. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7122. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7123. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7124. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7125. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7126. m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  7127. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7128. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7129. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7130. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7131. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7132. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7133. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7134. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7135. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7136. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7137. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7138. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7139. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7140. #
  7141. # This file is free software; the Free Software Foundation
  7142. # gives unlimited permission to copy and/or distribute it,
  7143. # with or without modifications, as long as this notice is preserved.
  7144. # AM_AUTOMAKE_VERSION(VERSION)
  7145. # ----------------------------
  7146. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7147. # generated from the m4 files accompanying Automake X.Y.
  7148. # (This private macro should not be called outside this file.)
  7149. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7150. [am__api_version='1.11'
  7151. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7152. dnl require some minimum version. Point them to the right macro.
  7153. m4_if([$1], [1.11], [],
  7154. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7155. ])
  7156. # _AM_AUTOCONF_VERSION(VERSION)
  7157. # -----------------------------
  7158. # aclocal traces this macro to find the Autoconf version.
  7159. # This is a private macro too. Using m4_define simplifies
  7160. # the logic in aclocal, which can simply ignore this definition.
  7161. m4_define([_AM_AUTOCONF_VERSION], [])
  7162. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7163. # -------------------------------
  7164. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7165. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7166. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7167. [AM_AUTOMAKE_VERSION([1.11])dnl
  7168. m4_ifndef([AC_AUTOCONF_VERSION],
  7169. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7170. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7171. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7172. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7173. #
  7174. # This file is free software; the Free Software Foundation
  7175. # gives unlimited permission to copy and/or distribute it,
  7176. # with or without modifications, as long as this notice is preserved.
  7177. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7178. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7179. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7180. #
  7181. # Of course, Automake must honor this variable whenever it calls a
  7182. # tool from the auxiliary directory. The problem is that $srcdir (and
  7183. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7184. # depending on how configure is run. This is pretty annoying, since
  7185. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7186. # source directory, any form will work fine, but in subdirectories a
  7187. # relative path needs to be adjusted first.
  7188. #
  7189. # $ac_aux_dir/missing
  7190. # fails when called from a subdirectory if $ac_aux_dir is relative
  7191. # $top_srcdir/$ac_aux_dir/missing
  7192. # fails if $ac_aux_dir is absolute,
  7193. # fails when called from a subdirectory in a VPATH build with
  7194. # a relative $ac_aux_dir
  7195. #
  7196. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7197. # are both prefixed by $srcdir. In an in-source build this is usually
  7198. # harmless because $srcdir is `.', but things will broke when you
  7199. # start a VPATH build or use an absolute $srcdir.
  7200. #
  7201. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7202. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7203. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7204. # and then we would define $MISSING as
  7205. # MISSING="\${SHELL} $am_aux_dir/missing"
  7206. # This will work as long as MISSING is not called from configure, because
  7207. # unfortunately $(top_srcdir) has no meaning in configure.
  7208. # However there are other variables, like CC, which are often used in
  7209. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7210. #
  7211. # Another solution, used here, is to always expand $ac_aux_dir to an
  7212. # absolute PATH. The drawback is that using absolute paths prevent a
  7213. # configured tree to be moved without reconfiguration.
  7214. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7215. [dnl Rely on autoconf to set up CDPATH properly.
  7216. AC_PREREQ([2.50])dnl
  7217. # expand $ac_aux_dir to an absolute path
  7218. am_aux_dir=`cd $ac_aux_dir && pwd`
  7219. ])
  7220. # AM_CONDITIONAL -*- Autoconf -*-
  7221. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7222. # Free Software Foundation, Inc.
  7223. #
  7224. # This file is free software; the Free Software Foundation
  7225. # gives unlimited permission to copy and/or distribute it,
  7226. # with or without modifications, as long as this notice is preserved.
  7227. # serial 9
  7228. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7229. # -------------------------------------
  7230. # Define a conditional.
  7231. AC_DEFUN([AM_CONDITIONAL],
  7232. [AC_PREREQ(2.52)dnl
  7233. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7234. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7235. AC_SUBST([$1_TRUE])dnl
  7236. AC_SUBST([$1_FALSE])dnl
  7237. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7238. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7239. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7240. if $2; then
  7241. $1_TRUE=
  7242. $1_FALSE='#'
  7243. else
  7244. $1_TRUE='#'
  7245. $1_FALSE=
  7246. fi
  7247. AC_CONFIG_COMMANDS_PRE(
  7248. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7249. AC_MSG_ERROR([[conditional "$1" was never defined.
  7250. Usually this means the macro was only invoked conditionally.]])
  7251. fi])])
  7252. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  7253. # Free Software Foundation, Inc.
  7254. #
  7255. # This file is free software; the Free Software Foundation
  7256. # gives unlimited permission to copy and/or distribute it,
  7257. # with or without modifications, as long as this notice is preserved.
  7258. # serial 10
  7259. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7260. # written in clear, in which case automake, when reading aclocal.m4,
  7261. # will think it sees a *use*, and therefore will trigger all it's
  7262. # C support machinery. Also note that it means that autoscan, seeing
  7263. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7264. # _AM_DEPENDENCIES(NAME)
  7265. # ----------------------
  7266. # See how the compiler implements dependency checking.
  7267. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7268. # We try a few techniques and use that to set a single cache variable.
  7269. #
  7270. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7271. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7272. # dependency, and given that the user is not expected to run this macro,
  7273. # just rely on AC_PROG_CC.
  7274. AC_DEFUN([_AM_DEPENDENCIES],
  7275. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7276. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7277. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7278. AC_REQUIRE([AM_DEP_TRACK])dnl
  7279. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7280. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7281. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7282. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7283. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7284. [depcc="$$1" am_compiler_list=])
  7285. AC_CACHE_CHECK([dependency style of $depcc],
  7286. [am_cv_$1_dependencies_compiler_type],
  7287. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7288. # We make a subdir and do the tests there. Otherwise we can end up
  7289. # making bogus files that we don't know about and never remove. For
  7290. # instance it was reported that on HP-UX the gcc test will end up
  7291. # making a dummy file named `D' -- because `-MD' means `put the output
  7292. # in D'.
  7293. mkdir conftest.dir
  7294. # Copy depcomp to subdir because otherwise we won't find it if we're
  7295. # using a relative directory.
  7296. cp "$am_depcomp" conftest.dir
  7297. cd conftest.dir
  7298. # We will build objects and dependencies in a subdirectory because
  7299. # it helps to detect inapplicable dependency modes. For instance
  7300. # both Tru64's cc and ICC support -MD to output dependencies as a
  7301. # side effect of compilation, but ICC will put the dependencies in
  7302. # the current directory while Tru64 will put them in the object
  7303. # directory.
  7304. mkdir sub
  7305. am_cv_$1_dependencies_compiler_type=none
  7306. if test "$am_compiler_list" = ""; then
  7307. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7308. fi
  7309. am__universal=false
  7310. m4_case([$1], [CC],
  7311. [case " $depcc " in #(
  7312. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7313. esac],
  7314. [CXX],
  7315. [case " $depcc " in #(
  7316. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7317. esac])
  7318. for depmode in $am_compiler_list; do
  7319. # Setup a source with many dependencies, because some compilers
  7320. # like to wrap large dependency lists on column 80 (with \), and
  7321. # we should not choose a depcomp mode which is confused by this.
  7322. #
  7323. # We need to recreate these files for each test, as the compiler may
  7324. # overwrite some of them when testing with obscure command lines.
  7325. # This happens at least with the AIX C compiler.
  7326. : > sub/conftest.c
  7327. for i in 1 2 3 4 5 6; do
  7328. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7329. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7330. # Solaris 8's {/usr,}/bin/sh.
  7331. touch sub/conftst$i.h
  7332. done
  7333. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7334. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7335. # mode. It turns out that the SunPro C++ compiler does not properly
  7336. # handle `-M -o', and we need to detect this. Also, some Intel
  7337. # versions had trouble with output in subdirs
  7338. am__obj=sub/conftest.${OBJEXT-o}
  7339. am__minus_obj="-o $am__obj"
  7340. case $depmode in
  7341. gcc)
  7342. # This depmode causes a compiler race in universal mode.
  7343. test "$am__universal" = false || continue
  7344. ;;
  7345. nosideeffect)
  7346. # after this tag, mechanisms are not by side-effect, so they'll
  7347. # only be used when explicitly requested
  7348. if test "x$enable_dependency_tracking" = xyes; then
  7349. continue
  7350. else
  7351. break
  7352. fi
  7353. ;;
  7354. msvisualcpp | msvcmsys)
  7355. # This compiler won't grok `-c -o', but also, the minuso test has
  7356. # not run yet. These depmodes are late enough in the game, and
  7357. # so weak that their functioning should not be impacted.
  7358. am__obj=conftest.${OBJEXT-o}
  7359. am__minus_obj=
  7360. ;;
  7361. none) break ;;
  7362. esac
  7363. if depmode=$depmode \
  7364. source=sub/conftest.c object=$am__obj \
  7365. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7366. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7367. >/dev/null 2>conftest.err &&
  7368. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7369. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7370. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7371. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7372. # icc doesn't choke on unknown options, it will just issue warnings
  7373. # or remarks (even with -Werror). So we grep stderr for any message
  7374. # that says an option was ignored or not supported.
  7375. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7376. # icc: Command line warning: ignoring option '-M'; no argument required
  7377. # The diagnosis changed in icc 8.0:
  7378. # icc: Command line remark: option '-MP' not supported
  7379. if (grep 'ignoring option' conftest.err ||
  7380. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7381. am_cv_$1_dependencies_compiler_type=$depmode
  7382. break
  7383. fi
  7384. fi
  7385. done
  7386. cd ..
  7387. rm -rf conftest.dir
  7388. else
  7389. am_cv_$1_dependencies_compiler_type=none
  7390. fi
  7391. ])
  7392. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  7393. AM_CONDITIONAL([am__fastdep$1], [
  7394. test "x$enable_dependency_tracking" != xno \
  7395. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  7396. ])
  7397. # AM_SET_DEPDIR
  7398. # -------------
  7399. # Choose a directory name for dependency files.
  7400. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  7401. AC_DEFUN([AM_SET_DEPDIR],
  7402. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  7403. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  7404. ])
  7405. # AM_DEP_TRACK
  7406. # ------------
  7407. AC_DEFUN([AM_DEP_TRACK],
  7408. [AC_ARG_ENABLE(dependency-tracking,
  7409. [ --disable-dependency-tracking speeds up one-time build
  7410. --enable-dependency-tracking do not reject slow dependency extractors])
  7411. if test "x$enable_dependency_tracking" != xno; then
  7412. am_depcomp="$ac_aux_dir/depcomp"
  7413. AMDEPBACKSLASH='\'
  7414. fi
  7415. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  7416. AC_SUBST([AMDEPBACKSLASH])dnl
  7417. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  7418. ])
  7419. # Generate code to set up dependency tracking. -*- Autoconf -*-
  7420. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  7421. # Free Software Foundation, Inc.
  7422. #
  7423. # This file is free software; the Free Software Foundation
  7424. # gives unlimited permission to copy and/or distribute it,
  7425. # with or without modifications, as long as this notice is preserved.
  7426. #serial 5
  7427. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  7428. # ------------------------------
  7429. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  7430. [{
  7431. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7432. # are listed without --file. Let's play safe and only enable the eval
  7433. # if we detect the quoting.
  7434. case $CONFIG_FILES in
  7435. *\'*) eval set x "$CONFIG_FILES" ;;
  7436. *) set x $CONFIG_FILES ;;
  7437. esac
  7438. shift
  7439. for mf
  7440. do
  7441. # Strip MF so we end up with the name of the file.
  7442. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7443. # Check whether this is an Automake generated Makefile or not.
  7444. # We used to match only the files named `Makefile.in', but
  7445. # some people rename them; so instead we look at the file content.
  7446. # Grep'ing the first line is not enough: some people post-process
  7447. # each Makefile.in and add a new line on top of each file to say so.
  7448. # Grep'ing the whole file is not good either: AIX grep has a line
  7449. # limit of 2048, but all sed's we know have understand at least 4000.
  7450. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7451. dirpart=`AS_DIRNAME("$mf")`
  7452. else
  7453. continue
  7454. fi
  7455. # Extract the definition of DEPDIR, am__include, and am__quote
  7456. # from the Makefile without running `make'.
  7457. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7458. test -z "$DEPDIR" && continue
  7459. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7460. test -z "am__include" && continue
  7461. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7462. # When using ansi2knr, U may be empty or an underscore; expand it
  7463. U=`sed -n 's/^U = //p' < "$mf"`
  7464. # Find all dependency output files, they are included files with
  7465. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7466. # simplest approach to changing $(DEPDIR) to its actual value in the
  7467. # expansion.
  7468. for file in `sed -n "
  7469. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7470. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7471. # Make sure the directory exists.
  7472. test -f "$dirpart/$file" && continue
  7473. fdir=`AS_DIRNAME(["$file"])`
  7474. AS_MKDIR_P([$dirpart/$fdir])
  7475. # echo "creating $dirpart/$file"
  7476. echo '# dummy' > "$dirpart/$file"
  7477. done
  7478. done
  7479. }
  7480. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  7481. # AM_OUTPUT_DEPENDENCY_COMMANDS
  7482. # -----------------------------
  7483. # This macro should only be invoked once -- use via AC_REQUIRE.
  7484. #
  7485. # This code is only required when automatic dependency tracking
  7486. # is enabled. FIXME. This creates each `.P' file that we will
  7487. # need in order to bootstrap the dependency handling code.
  7488. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  7489. [AC_CONFIG_COMMANDS([depfiles],
  7490. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  7491. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  7492. ])
  7493. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  7494. # Free Software Foundation, Inc.
  7495. #
  7496. # This file is free software; the Free Software Foundation
  7497. # gives unlimited permission to copy and/or distribute it,
  7498. # with or without modifications, as long as this notice is preserved.
  7499. # serial 8
  7500. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  7501. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  7502. # Do all the work for Automake. -*- Autoconf -*-
  7503. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  7504. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  7505. #
  7506. # This file is free software; the Free Software Foundation
  7507. # gives unlimited permission to copy and/or distribute it,
  7508. # with or without modifications, as long as this notice is preserved.
  7509. # serial 16
  7510. # This macro actually does too much. Some checks are only needed if
  7511. # your package does certain things. But this isn't really a big deal.
  7512. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  7513. # AM_INIT_AUTOMAKE([OPTIONS])
  7514. # -----------------------------------------------
  7515. # The call with PACKAGE and VERSION arguments is the old style
  7516. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  7517. # and VERSION should now be passed to AC_INIT and removed from
  7518. # the call to AM_INIT_AUTOMAKE.
  7519. # We support both call styles for the transition. After
  7520. # the next Automake release, Autoconf can make the AC_INIT
  7521. # arguments mandatory, and then we can depend on a new Autoconf
  7522. # release and drop the old call support.
  7523. AC_DEFUN([AM_INIT_AUTOMAKE],
  7524. [AC_PREREQ([2.62])dnl
  7525. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  7526. dnl the ones we care about.
  7527. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  7528. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  7529. AC_REQUIRE([AC_PROG_INSTALL])dnl
  7530. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  7531. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  7532. # is not polluted with repeated "-I."
  7533. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  7534. # test to see if srcdir already configured
  7535. if test -f $srcdir/config.status; then
  7536. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  7537. fi
  7538. fi
  7539. # test whether we have cygpath
  7540. if test -z "$CYGPATH_W"; then
  7541. if (cygpath --version) >/dev/null 2>/dev/null; then
  7542. CYGPATH_W='cygpath -w'
  7543. else
  7544. CYGPATH_W=echo
  7545. fi
  7546. fi
  7547. AC_SUBST([CYGPATH_W])
  7548. # Define the identity of the package.
  7549. dnl Distinguish between old-style and new-style calls.
  7550. m4_ifval([$2],
  7551. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  7552. AC_SUBST([PACKAGE], [$1])dnl
  7553. AC_SUBST([VERSION], [$2])],
  7554. [_AM_SET_OPTIONS([$1])dnl
  7555. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  7556. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  7557. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  7558. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  7559. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  7560. _AM_IF_OPTION([no-define],,
  7561. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  7562. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  7563. # Some tools Automake needs.
  7564. AC_REQUIRE([AM_SANITY_CHECK])dnl
  7565. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  7566. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  7567. AM_MISSING_PROG(AUTOCONF, autoconf)
  7568. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  7569. AM_MISSING_PROG(AUTOHEADER, autoheader)
  7570. AM_MISSING_PROG(MAKEINFO, makeinfo)
  7571. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  7572. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  7573. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  7574. # We need awk for the "check" target. The system "awk" is bad on
  7575. # some platforms.
  7576. AC_REQUIRE([AC_PROG_AWK])dnl
  7577. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  7578. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  7579. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  7580. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  7581. [_AM_PROG_TAR([v7])])])
  7582. _AM_IF_OPTION([no-dependencies],,
  7583. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  7584. [_AM_DEPENDENCIES(CC)],
  7585. [define([AC_PROG_CC],
  7586. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  7587. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  7588. [_AM_DEPENDENCIES(CXX)],
  7589. [define([AC_PROG_CXX],
  7590. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  7591. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  7592. [_AM_DEPENDENCIES(OBJC)],
  7593. [define([AC_PROG_OBJC],
  7594. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  7595. ])
  7596. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  7597. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  7598. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  7599. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  7600. AC_CONFIG_COMMANDS_PRE(dnl
  7601. [m4_provide_if([_AM_COMPILER_EXEEXT],
  7602. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  7603. ])
  7604. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  7605. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  7606. dnl mangled by Autoconf and run in a shell conditional statement.
  7607. m4_define([_AC_COMPILER_EXEEXT],
  7608. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  7609. # When config.status generates a header, we must update the stamp-h file.
  7610. # This file resides in the same directory as the config header
  7611. # that is generated. The stamp files are numbered to have different names.
  7612. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  7613. # loop where config.status creates the headers, so we can generate
  7614. # our stamp files there.
  7615. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  7616. [# Compute $1's index in $config_headers.
  7617. _am_arg=$1
  7618. _am_stamp_count=1
  7619. for _am_header in $config_headers :; do
  7620. case $_am_header in
  7621. $_am_arg | $_am_arg:* )
  7622. break ;;
  7623. * )
  7624. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7625. esac
  7626. done
  7627. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  7628. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  7629. #
  7630. # This file is free software; the Free Software Foundation
  7631. # gives unlimited permission to copy and/or distribute it,
  7632. # with or without modifications, as long as this notice is preserved.
  7633. # AM_PROG_INSTALL_SH
  7634. # ------------------
  7635. # Define $install_sh.
  7636. AC_DEFUN([AM_PROG_INSTALL_SH],
  7637. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7638. if test x"${install_sh}" != xset; then
  7639. case $am_aux_dir in
  7640. *\ * | *\ *)
  7641. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  7642. *)
  7643. install_sh="\${SHELL} $am_aux_dir/install-sh"
  7644. esac
  7645. fi
  7646. AC_SUBST(install_sh)])
  7647. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  7648. #
  7649. # This file is free software; the Free Software Foundation
  7650. # gives unlimited permission to copy and/or distribute it,
  7651. # with or without modifications, as long as this notice is preserved.
  7652. # serial 2
  7653. # Check whether the underlying file-system supports filenames
  7654. # with a leading dot. For instance MS-DOS doesn't.
  7655. AC_DEFUN([AM_SET_LEADING_DOT],
  7656. [rm -rf .tst 2>/dev/null
  7657. mkdir .tst 2>/dev/null
  7658. if test -d .tst; then
  7659. am__leading_dot=.
  7660. else
  7661. am__leading_dot=_
  7662. fi
  7663. rmdir .tst 2>/dev/null
  7664. AC_SUBST([am__leading_dot])])
  7665. # Check to see how 'make' treats includes. -*- Autoconf -*-
  7666. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  7667. #
  7668. # This file is free software; the Free Software Foundation
  7669. # gives unlimited permission to copy and/or distribute it,
  7670. # with or without modifications, as long as this notice is preserved.
  7671. # serial 4
  7672. # AM_MAKE_INCLUDE()
  7673. # -----------------
  7674. # Check to see how make treats includes.
  7675. AC_DEFUN([AM_MAKE_INCLUDE],
  7676. [am_make=${MAKE-make}
  7677. cat > confinc << 'END'
  7678. am__doit:
  7679. @echo this is the am__doit target
  7680. .PHONY: am__doit
  7681. END
  7682. # If we don't find an include directive, just comment out the code.
  7683. AC_MSG_CHECKING([for style of include used by $am_make])
  7684. am__include="#"
  7685. am__quote=
  7686. _am_result=none
  7687. # First try GNU make style include.
  7688. echo "include confinc" > confmf
  7689. # Ignore all kinds of additional output from `make'.
  7690. case `$am_make -s -f confmf 2> /dev/null` in #(
  7691. *the\ am__doit\ target*)
  7692. am__include=include
  7693. am__quote=
  7694. _am_result=GNU
  7695. ;;
  7696. esac
  7697. # Now try BSD make style include.
  7698. if test "$am__include" = "#"; then
  7699. echo '.include "confinc"' > confmf
  7700. case `$am_make -s -f confmf 2> /dev/null` in #(
  7701. *the\ am__doit\ target*)
  7702. am__include=.include
  7703. am__quote="\""
  7704. _am_result=BSD
  7705. ;;
  7706. esac
  7707. fi
  7708. AC_SUBST([am__include])
  7709. AC_SUBST([am__quote])
  7710. AC_MSG_RESULT([$_am_result])
  7711. rm -f confinc confmf
  7712. ])
  7713. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  7714. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  7715. # Free Software Foundation, Inc.
  7716. #
  7717. # This file is free software; the Free Software Foundation
  7718. # gives unlimited permission to copy and/or distribute it,
  7719. # with or without modifications, as long as this notice is preserved.
  7720. # serial 6
  7721. # AM_MISSING_PROG(NAME, PROGRAM)
  7722. # ------------------------------
  7723. AC_DEFUN([AM_MISSING_PROG],
  7724. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  7725. $1=${$1-"${am_missing_run}$2"}
  7726. AC_SUBST($1)])
  7727. # AM_MISSING_HAS_RUN
  7728. # ------------------
  7729. # Define MISSING if not defined so far and test if it supports --run.
  7730. # If it does, set am_missing_run to use it, otherwise, to nothing.
  7731. AC_DEFUN([AM_MISSING_HAS_RUN],
  7732. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7733. AC_REQUIRE_AUX_FILE([missing])dnl
  7734. if test x"${MISSING+set}" != xset; then
  7735. case $am_aux_dir in
  7736. *\ * | *\ *)
  7737. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  7738. *)
  7739. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  7740. esac
  7741. fi
  7742. # Use eval to expand $SHELL
  7743. if eval "$MISSING --run true"; then
  7744. am_missing_run="$MISSING --run "
  7745. else
  7746. am_missing_run=
  7747. AC_MSG_WARN([`missing' script is too old or missing])
  7748. fi
  7749. ])
  7750. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7751. #
  7752. # This file is free software; the Free Software Foundation
  7753. # gives unlimited permission to copy and/or distribute it,
  7754. # with or without modifications, as long as this notice is preserved.
  7755. # AM_PROG_MKDIR_P
  7756. # ---------------
  7757. # Check for `mkdir -p'.
  7758. AC_DEFUN([AM_PROG_MKDIR_P],
  7759. [AC_PREREQ([2.60])dnl
  7760. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  7761. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  7762. dnl while keeping a definition of mkdir_p for backward compatibility.
  7763. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  7764. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  7765. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  7766. dnl adjustment using top_builddir (which is defined more often than
  7767. dnl MKDIR_P).
  7768. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  7769. case $mkdir_p in
  7770. [[\\/$]]* | ?:[[\\/]]*) ;;
  7771. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  7772. esac
  7773. ])
  7774. # Helper functions for option handling. -*- Autoconf -*-
  7775. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  7776. #
  7777. # This file is free software; the Free Software Foundation
  7778. # gives unlimited permission to copy and/or distribute it,
  7779. # with or without modifications, as long as this notice is preserved.
  7780. # serial 4
  7781. # _AM_MANGLE_OPTION(NAME)
  7782. # -----------------------
  7783. AC_DEFUN([_AM_MANGLE_OPTION],
  7784. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  7785. # _AM_SET_OPTION(NAME)
  7786. # ------------------------------
  7787. # Set option NAME. Presently that only means defining a flag for this option.
  7788. AC_DEFUN([_AM_SET_OPTION],
  7789. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  7790. # _AM_SET_OPTIONS(OPTIONS)
  7791. # ----------------------------------
  7792. # OPTIONS is a space-separated list of Automake options.
  7793. AC_DEFUN([_AM_SET_OPTIONS],
  7794. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7795. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  7796. # -------------------------------------------
  7797. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7798. AC_DEFUN([_AM_IF_OPTION],
  7799. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  7800. # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
  7801. # Free Software Foundation, Inc.
  7802. #
  7803. # This file is free software; the Free Software Foundation
  7804. # gives unlimited permission to copy and/or distribute it,
  7805. # with or without modifications, as long as this notice is preserved.
  7806. # serial 5
  7807. AC_DEFUN([AM_C_PROTOTYPES],
  7808. [AC_REQUIRE([AC_C_PROTOTYPES])
  7809. if test "$ac_cv_prog_cc_stdc" != no; then
  7810. U= ANSI2KNR=
  7811. else
  7812. U=_ ANSI2KNR=./ansi2knr
  7813. fi
  7814. # Ensure some checks needed by ansi2knr itself.
  7815. AC_REQUIRE([AC_HEADER_STDC])
  7816. AC_CHECK_HEADERS([string.h])
  7817. AC_SUBST([U])dnl
  7818. AC_SUBST([ANSI2KNR])dnl
  7819. _AM_SUBST_NOTMAKE([ANSI2KNR])dnl
  7820. ])
  7821. AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
  7822. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  7823. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  7824. # Free Software Foundation, Inc.
  7825. #
  7826. # This file is free software; the Free Software Foundation
  7827. # gives unlimited permission to copy and/or distribute it,
  7828. # with or without modifications, as long as this notice is preserved.
  7829. # serial 5
  7830. # AM_SANITY_CHECK
  7831. # ---------------
  7832. AC_DEFUN([AM_SANITY_CHECK],
  7833. [AC_MSG_CHECKING([whether build environment is sane])
  7834. # Just in case
  7835. sleep 1
  7836. echo timestamp > conftest.file
  7837. # Reject unsafe characters in $srcdir or the absolute working directory
  7838. # name. Accept space and tab only in the latter.
  7839. am_lf='
  7840. '
  7841. case `pwd` in
  7842. *[[\\\"\#\$\&\'\`$am_lf]]*)
  7843. AC_MSG_ERROR([unsafe absolute working directory name]);;
  7844. esac
  7845. case $srcdir in
  7846. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  7847. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  7848. esac
  7849. # Do `set' in a subshell so we don't clobber the current shell's
  7850. # arguments. Must try -L first in case configure is actually a
  7851. # symlink; some systems play weird games with the mod time of symlinks
  7852. # (eg FreeBSD returns the mod time of the symlink's containing
  7853. # directory).
  7854. if (
  7855. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  7856. if test "$[*]" = "X"; then
  7857. # -L didn't work.
  7858. set X `ls -t "$srcdir/configure" conftest.file`
  7859. fi
  7860. rm -f conftest.file
  7861. if test "$[*]" != "X $srcdir/configure conftest.file" \
  7862. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  7863. # If neither matched, then we have a broken ls. This can happen
  7864. # if, for instance, CONFIG_SHELL is bash and it inherits a
  7865. # broken ls alias from the environment. This has actually
  7866. # happened. Such a system could not be considered "sane".
  7867. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  7868. alias in your environment])
  7869. fi
  7870. test "$[2]" = conftest.file
  7871. )
  7872. then
  7873. # Ok.
  7874. :
  7875. else
  7876. AC_MSG_ERROR([newly created file is older than distributed files!
  7877. Check your system clock])
  7878. fi
  7879. AC_MSG_RESULT(yes)])
  7880. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7881. #
  7882. # This file is free software; the Free Software Foundation
  7883. # gives unlimited permission to copy and/or distribute it,
  7884. # with or without modifications, as long as this notice is preserved.
  7885. # AM_PROG_INSTALL_STRIP
  7886. # ---------------------
  7887. # One issue with vendor `install' (even GNU) is that you can't
  7888. # specify the program used to strip binaries. This is especially
  7889. # annoying in cross-compiling environments, where the build's strip
  7890. # is unlikely to handle the host's binaries.
  7891. # Fortunately install-sh will honor a STRIPPROG variable, so we
  7892. # always use install-sh in `make install-strip', and initialize
  7893. # STRIPPROG with the value of the STRIP variable (set by the user).
  7894. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  7895. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  7896. # Installed binaries are usually stripped using `strip' when the user
  7897. # run `make install-strip'. However `strip' might not be the right
  7898. # tool to use in cross-compilation environments, therefore Automake
  7899. # will honor the `STRIP' environment variable to overrule this program.
  7900. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  7901. if test "$cross_compiling" != no; then
  7902. AC_CHECK_TOOL([STRIP], [strip], :)
  7903. fi
  7904. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  7905. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  7906. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  7907. #
  7908. # This file is free software; the Free Software Foundation
  7909. # gives unlimited permission to copy and/or distribute it,
  7910. # with or without modifications, as long as this notice is preserved.
  7911. # serial 2
  7912. # _AM_SUBST_NOTMAKE(VARIABLE)
  7913. # ---------------------------
  7914. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  7915. # This macro is traced by Automake.
  7916. AC_DEFUN([_AM_SUBST_NOTMAKE])
  7917. # AM_SUBST_NOTMAKE(VARIABLE)
  7918. # ---------------------------
  7919. # Public sister of _AM_SUBST_NOTMAKE.
  7920. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  7921. # Check how to create a tarball. -*- Autoconf -*-
  7922. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  7923. #
  7924. # This file is free software; the Free Software Foundation
  7925. # gives unlimited permission to copy and/or distribute it,
  7926. # with or without modifications, as long as this notice is preserved.
  7927. # serial 2
  7928. # _AM_PROG_TAR(FORMAT)
  7929. # --------------------
  7930. # Check how to create a tarball in format FORMAT.
  7931. # FORMAT should be one of `v7', `ustar', or `pax'.
  7932. #
  7933. # Substitute a variable $(am__tar) that is a command
  7934. # writing to stdout a FORMAT-tarball containing the directory
  7935. # $tardir.
  7936. # tardir=directory && $(am__tar) > result.tar
  7937. #
  7938. # Substitute a variable $(am__untar) that extract such
  7939. # a tarball read from stdin.
  7940. # $(am__untar) < result.tar
  7941. AC_DEFUN([_AM_PROG_TAR],
  7942. [# Always define AMTAR for backward compatibility.
  7943. AM_MISSING_PROG([AMTAR], [tar])
  7944. m4_if([$1], [v7],
  7945. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  7946. [m4_case([$1], [ustar],, [pax],,
  7947. [m4_fatal([Unknown tar format])])
  7948. AC_MSG_CHECKING([how to create a $1 tar archive])
  7949. # Loop over all known methods to create a tar archive until one works.
  7950. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  7951. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  7952. # Do not fold the above two line into one, because Tru64 sh and
  7953. # Solaris sh will not grok spaces in the rhs of `-'.
  7954. for _am_tool in $_am_tools
  7955. do
  7956. case $_am_tool in
  7957. gnutar)
  7958. for _am_tar in tar gnutar gtar;
  7959. do
  7960. AM_RUN_LOG([$_am_tar --version]) && break
  7961. done
  7962. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  7963. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  7964. am__untar="$_am_tar -xf -"
  7965. ;;
  7966. plaintar)
  7967. # Must skip GNU tar: if it does not support --format= it doesn't create
  7968. # ustar tarball either.
  7969. (tar --version) >/dev/null 2>&1 && continue
  7970. am__tar='tar chf - "$$tardir"'
  7971. am__tar_='tar chf - "$tardir"'
  7972. am__untar='tar xf -'
  7973. ;;
  7974. pax)
  7975. am__tar='pax -L -x $1 -w "$$tardir"'
  7976. am__tar_='pax -L -x $1 -w "$tardir"'
  7977. am__untar='pax -r'
  7978. ;;
  7979. cpio)
  7980. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  7981. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  7982. am__untar='cpio -i -H $1 -d'
  7983. ;;
  7984. none)
  7985. am__tar=false
  7986. am__tar_=false
  7987. am__untar=false
  7988. ;;
  7989. esac
  7990. # If the value was cached, stop now. We just wanted to have am__tar
  7991. # and am__untar set.
  7992. test -n "${am_cv_prog_tar_$1}" && break
  7993. # tar/untar a dummy directory, and stop if the command works
  7994. rm -rf conftest.dir
  7995. mkdir conftest.dir
  7996. echo GrepMe > conftest.dir/file
  7997. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  7998. rm -rf conftest.dir
  7999. if test -s conftest.tar; then
  8000. AM_RUN_LOG([$am__untar <conftest.tar])
  8001. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8002. fi
  8003. done
  8004. rm -rf conftest.dir
  8005. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8006. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8007. AC_SUBST([am__tar])
  8008. AC_SUBST([am__untar])
  8009. ]) # _AM_PROG_TAR
  8010. m4_include([acinclude.m4])